/* t396: recommendation *card* grids only. Not the video-page live-rooms sidebar rail (t389). */
html body:not(#ph396) .phspb-recommended-streams,
html body:not(#ph396) .phlc-section-other_rooms,
html body:not(#ph396) .phlc-directory,
html body:not(#ph396) section.phvhseo-room-links,
html body:not(#ph396) section.phvv-related,
html body:not(#ph396) .phvv-related-grid-mount,
html body:not(#ph396) *:has(> .phlc-grid-other_rooms),
html body:not(#ph396) *:has(> .phvv-grid):not(aside):not(.phvv-live-streams-sidebar):not([class*="sidebar"]) {
	container-type: inline-size;
	container-name: ph396;
}
html body:not(#ph396) .phspb-recommended-streams .phlc-grid,
html body:not(#ph396) .phspb-recommended-streams .phlc-recommended-grid,
html body:not(#ph396) .phspb-recommended-streams .phspb-recommended-popular-grid,
html body:not(#ph396) .phlc-grid-other_rooms,
html body:not(#ph396) .phvhseo-room-links .phvv-grid,
html body:not(#ph396) .phvv-related .phvv-grid,
html body:not(#ph396) .phvv-related-grid-mount .phvv-grid {
	display: grid !important;
	grid-auto-flow: row !important;
	align-items: stretch !important;
	min-width: 0 !important;
}
html body:not(#ph396) .phspb-recommended-streams .phlc-card,
html body:not(#ph396) .phlc-grid-other_rooms .phlc-card,
html body:not(#ph396) .phvhseo-room-links .phvv-card,
html body:not(#ph396) .phvv-related .phvv-card {
	min-width: 0 !important;
}
html body:not(#ph396) .phspb-recommended-streams .phlc-thumb-wrap,
html body:not(#ph396) .phlc-grid-other_rooms .phlc-thumb-wrap,
html body:not(#ph396) .phvhseo-room-links .phvv-thumb,
html body:not(#ph396) .phvv-related .phvv-thumb {
	aspect-ratio: 16 / 9 !important;
}
@container (max-width: 559px) {
	.phlc-grid:not(#ph396),
	.phlc-recommended-grid:not(#ph396),
	.phspb-recommended-popular-grid:not(#ph396),
	.phlc-grid-other_rooms:not(#ph396),
	.phvv-grid:not(#ph396) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 16px 10px !important;
	}
	.phlc-grid:not(#ph396):has(> :nth-last-child(1):nth-child(2n+1)) > :nth-last-child(-n+1),
	.phlc-recommended-grid:not(#ph396):has(> :nth-last-child(1):nth-child(2n+1)) > :nth-last-child(-n+1),
	.phspb-recommended-popular-grid:not(#ph396):has(> :nth-last-child(1):nth-child(2n+1)) > :nth-last-child(-n+1),
	.phlc-grid-other_rooms:not(#ph396):has(> :nth-last-child(1):nth-child(2n+1)) > :nth-last-child(-n+1),
	.phvv-grid:not(#ph396):has(> :nth-last-child(1):nth-child(2n+1)) > :nth-last-child(-n+1) {
		display: none !important;
	}
}
@container (min-width: 560px) and (max-width: 899px) {
	.phlc-grid:not(#ph396),
	.phlc-recommended-grid:not(#ph396),
	.phspb-recommended-popular-grid:not(#ph396),
	.phlc-grid-other_rooms:not(#ph396),
	.phvv-grid:not(#ph396) {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 16px 10px !important;
	}
	.phlc-grid:not(#ph396):has(> :nth-last-child(1):nth-child(3n+1)) > :nth-last-child(-n+1),
	.phlc-recommended-grid:not(#ph396):has(> :nth-last-child(1):nth-child(3n+1)) > :nth-last-child(-n+1),
	.phspb-recommended-popular-grid:not(#ph396):has(> :nth-last-child(1):nth-child(3n+1)) > :nth-last-child(-n+1),
	.phlc-grid-other_rooms:not(#ph396):has(> :nth-last-child(1):nth-child(3n+1)) > :nth-last-child(-n+1),
	.phvv-grid:not(#ph396):has(> :nth-last-child(1):nth-child(3n+1)) > :nth-last-child(-n+1) {
		display: none !important;
	}
	.phlc-grid:not(#ph396):has(> :nth-last-child(1):nth-child(3n+2)) > :nth-last-child(-n+2),
	.phlc-recommended-grid:not(#ph396):has(> :nth-last-child(1):nth-child(3n+2)) > :nth-last-child(-n+2),
	.phspb-recommended-popular-grid:not(#ph396):has(> :nth-last-child(1):nth-child(3n+2)) > :nth-last-child(-n+2),
	.phlc-grid-other_rooms:not(#ph396):has(> :nth-last-child(1):nth-child(3n+2)) > :nth-last-child(-n+2),
	.phvv-grid:not(#ph396):has(> :nth-last-child(1):nth-child(3n+2)) > :nth-last-child(-n+2) {
		display: none !important;
	}
}
@container (min-width: 900px) and (max-width: 1199px) {
	.phlc-grid:not(#ph396),
	.phlc-recommended-grid:not(#ph396),
	.phspb-recommended-popular-grid:not(#ph396),
	.phlc-grid-other_rooms:not(#ph396),
	.phvv-grid:not(#ph396) {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		gap: 22px 16px !important;
	}
	.phlc-grid:not(#ph396):has(> :nth-last-child(1):nth-child(4n+1)) > :nth-last-child(-n+1),
	.phlc-recommended-grid:not(#ph396):has(> :nth-last-child(1):nth-child(4n+1)) > :nth-last-child(-n+1),
	.phspb-recommended-popular-grid:not(#ph396):has(> :nth-last-child(1):nth-child(4n+1)) > :nth-last-child(-n+1),
	.phlc-grid-other_rooms:not(#ph396):has(> :nth-last-child(1):nth-child(4n+1)) > :nth-last-child(-n+1),
	.phvv-grid:not(#ph396):has(> :nth-last-child(1):nth-child(4n+1)) > :nth-last-child(-n+1) {
		display: none !important;
	}
	.phlc-grid:not(#ph396):has(> :nth-last-child(1):nth-child(4n+2)) > :nth-last-child(-n+2),
	.phlc-recommended-grid:not(#ph396):has(> :nth-last-child(1):nth-child(4n+2)) > :nth-last-child(-n+2),
	.phspb-recommended-popular-grid:not(#ph396):has(> :nth-last-child(1):nth-child(4n+2)) > :nth-last-child(-n+2),
	.phlc-grid-other_rooms:not(#ph396):has(> :nth-last-child(1):nth-child(4n+2)) > :nth-last-child(-n+2),
	.phvv-grid:not(#ph396):has(> :nth-last-child(1):nth-child(4n+2)) > :nth-last-child(-n+2) {
		display: none !important;
	}
	.phlc-grid:not(#ph396):has(> :nth-last-child(1):nth-child(4n+3)) > :nth-last-child(-n+3),
	.phlc-recommended-grid:not(#ph396):has(> :nth-last-child(1):nth-child(4n+3)) > :nth-last-child(-n+3),
	.phspb-recommended-popular-grid:not(#ph396):has(> :nth-last-child(1):nth-child(4n+3)) > :nth-last-child(-n+3),
	.phlc-grid-other_rooms:not(#ph396):has(> :nth-last-child(1):nth-child(4n+3)) > :nth-last-child(-n+3),
	.phvv-grid:not(#ph396):has(> :nth-last-child(1):nth-child(4n+3)) > :nth-last-child(-n+3) {
		display: none !important;
	}
}
@container (min-width: 1200px) {
	.phlc-grid:not(#ph396),
	.phlc-recommended-grid:not(#ph396),
	.phspb-recommended-popular-grid:not(#ph396),
	.phlc-grid-other_rooms:not(#ph396),
	.phvv-grid:not(#ph396) {
		grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
		gap: 22px 16px !important;
	}
	.phlc-grid:not(#ph396):has(> :nth-last-child(1):nth-child(5n+1)) > :nth-last-child(-n+1),
	.phlc-recommended-grid:not(#ph396):has(> :nth-last-child(1):nth-child(5n+1)) > :nth-last-child(-n+1),
	.phspb-recommended-popular-grid:not(#ph396):has(> :nth-last-child(1):nth-child(5n+1)) > :nth-last-child(-n+1),
	.phlc-grid-other_rooms:not(#ph396):has(> :nth-last-child(1):nth-child(5n+1)) > :nth-last-child(-n+1),
	.phvv-grid:not(#ph396):has(> :nth-last-child(1):nth-child(5n+1)) > :nth-last-child(-n+1) {
		display: none !important;
	}
	.phlc-grid:not(#ph396):has(> :nth-last-child(1):nth-child(5n+2)) > :nth-last-child(-n+2),
	.phlc-recommended-grid:not(#ph396):has(> :nth-last-child(1):nth-child(5n+2)) > :nth-last-child(-n+2),
	.phspb-recommended-popular-grid:not(#ph396):has(> :nth-last-child(1):nth-child(5n+2)) > :nth-last-child(-n+2),
	.phlc-grid-other_rooms:not(#ph396):has(> :nth-last-child(1):nth-child(5n+2)) > :nth-last-child(-n+2),
	.phvv-grid:not(#ph396):has(> :nth-last-child(1):nth-child(5n+2)) > :nth-last-child(-n+2) {
		display: none !important;
	}
	.phlc-grid:not(#ph396):has(> :nth-last-child(1):nth-child(5n+3)) > :nth-last-child(-n+3),
	.phlc-recommended-grid:not(#ph396):has(> :nth-last-child(1):nth-child(5n+3)) > :nth-last-child(-n+3),
	.phspb-recommended-popular-grid:not(#ph396):has(> :nth-last-child(1):nth-child(5n+3)) > :nth-last-child(-n+3),
	.phlc-grid-other_rooms:not(#ph396):has(> :nth-last-child(1):nth-child(5n+3)) > :nth-last-child(-n+3),
	.phvv-grid:not(#ph396):has(> :nth-last-child(1):nth-child(5n+3)) > :nth-last-child(-n+3) {
		display: none !important;
	}
	.phlc-grid:not(#ph396):has(> :nth-last-child(1):nth-child(5n+4)) > :nth-last-child(-n+4),
	.phlc-recommended-grid:not(#ph396):has(> :nth-last-child(1):nth-child(5n+4)) > :nth-last-child(-n+4),
	.phspb-recommended-popular-grid:not(#ph396):has(> :nth-last-child(1):nth-child(5n+4)) > :nth-last-child(-n+4),
	.phlc-grid-other_rooms:not(#ph396):has(> :nth-last-child(1):nth-child(5n+4)) > :nth-last-child(-n+4),
	.phvv-grid:not(#ph396):has(> :nth-last-child(1):nth-child(5n+4)) > :nth-last-child(-n+4) {
		display: none !important;
	}
}
@supports not (container-type: inline-size) {
	html body:not(#ph396) .phspb-recommended-streams .phlc-grid,
	html body:not(#ph396) .phspb-recommended-streams .phlc-recommended-grid,
	html body:not(#ph396) .phspb-recommended-streams .phspb-recommended-popular-grid,
	html body:not(#ph396) .phlc-grid-other_rooms,
	html body:not(#ph396) .phvhseo-room-links .phvv-grid,
	html body:not(#ph396) .phvv-related .phvv-grid,
	html body:not(#ph396) .phvv-related-grid-mount .phvv-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 16px 10px !important;
	}
	@media (min-width: 760px) {
		html body:not(#ph396) .phspb-recommended-streams .phlc-grid,
		html body:not(#ph396) .phspb-recommended-streams .phlc-recommended-grid,
		html body:not(#ph396) .phspb-recommended-streams .phspb-recommended-popular-grid,
		html body:not(#ph396) .phlc-grid-other_rooms,
		html body:not(#ph396) .phvhseo-room-links .phvv-grid,
		html body:not(#ph396) .phvv-related .phvv-grid,
		html body:not(#ph396) .phvv-related-grid-mount .phvv-grid {
			grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		}
	}
	@media (min-width: 1200px) {
		html body:not(#ph396) .phspb-recommended-streams .phlc-grid,
		html body:not(#ph396) .phspb-recommended-streams .phlc-recommended-grid,
		html body:not(#ph396) .phspb-recommended-streams .phspb-recommended-popular-grid,
		html body:not(#ph396) .phlc-grid-other_rooms,
		html body:not(#ph396) .phvhseo-room-links .phvv-grid,
		html body:not(#ph396) .phvv-related .phvv-grid,
		html body:not(#ph396) .phvv-related-grid-mount .phvv-grid {
			grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
			gap: 22px 16px !important;
		}
	}
	@media (min-width: 1600px) {
		html body:not(#ph396) .phspb-recommended-streams .phlc-grid,
		html body:not(#ph396) .phspb-recommended-streams .phlc-recommended-grid,
		html body:not(#ph396) .phspb-recommended-streams .phspb-recommended-popular-grid,
		html body:not(#ph396) .phlc-grid-other_rooms,
		html body:not(#ph396) .phvhseo-room-links .phvv-grid,
		html body:not(#ph396) .phvv-related .phvv-grid,
		html body:not(#ph396) .phvv-related-grid-mount .phvv-grid {
			grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
			gap: 22px 16px !important;
		}
	}
}
