/*
 * Watch online (Appearance → TV & Movie Catalog → Look).
 *
 * Like a streaming service: the title fills the screen, rows scroll sideways,
 * plain heavy type instead of the poster billing. Loaded after main.css and
 * uses its color tokens, so light, dark and the visitor switch work as there.
 */

.look-watch {
	--edge: clamp(1rem, 4vw, 3.5rem);
}

.look-watch :is(h1, h2, h3),
.look-watch .billing {
	font-family: var(--font-body);
	font-stretch: normal;
	font-weight: 750;
	letter-spacing: -0.015em;
}

.look-watch .site-main {
	padding-bottom: 4rem;
}

/* Bar --------------------------------------------------------------------- */

.watch-bar {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 2rem;
	padding: 0.9rem var(--edge);
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}

.watch-bar--over {
	position: absolute;
	inset: 0 0 auto;
	background: linear-gradient(rgb(var(--shade) / 85%), rgb(var(--shade) / 0%));
	border-bottom: 0;
}

.admin-bar .watch-bar--over {
	top: 32px;
}

.watch-bar__name {
	color: var(--ink);
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.watch-bar .custom-logo {
	max-height: 36px;
	width: auto;
}

.watch-bar__nav ul {
	display: flex;
	gap: 1.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.watch-bar__nav a {
	color: var(--muted);
	font-size: 0.95rem;
	text-decoration: none;
}

.watch-bar__nav a:hover,
.watch-bar__nav .current-menu-item > a {
	color: var(--ink);
}

.watch-bar__tools {
	display: flex;
	gap: 0.3rem;
	margin-left: auto;
}

/* Hero -------------------------------------------------------------------- */

.watch-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	min-height: min(86vh, 780px);
	padding: 7rem var(--edge) 4.5rem;
	background: var(--surface);
}

.watch-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgb(var(--shade) / 92%) 0%, rgb(var(--shade) / 55%) 42%, rgb(var(--shade) / 0%) 72%),
		linear-gradient(0deg, var(--bg) 0%, rgb(var(--shade) / 0%) 40%);
}

.watch-hero__text {
	max-width: 640px;
}

.watch-hero__title {
	margin: 0 0 0.8rem;
	font-size: clamp(2.6rem, 6vw, 4.6rem);
	line-height: 1;
	letter-spacing: -0.03em;
}

.watch-hero__title a {
	color: inherit;
	text-decoration: none;
}

.watch-hero__overview {
	margin: 0 0 1.6rem;
	font-size: 1.05rem;
	line-height: 1.55;
}

.watch-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin: 0;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 0.9rem;
}

.chips li {
	padding: 0.15rem 0.65rem;
	border: 1px solid var(--line);
	border-radius: 999px;
}

.chips a {
	color: inherit;
	text-decoration: none;
}

.chips .chips__rating {
	border-color: var(--accent);
	color: var(--accent);
	font-weight: 700;
}

.watch-button {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.8rem 1.5rem;
	border-radius: 8px;
	background: rgb(128 128 128 / 28%);
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
	backdrop-filter: blur(6px);
}

.watch-button--main {
	background: var(--ink);
	color: var(--bg);
}

.watch-button:hover {
	filter: brightness(1.08);
}

/* Rows (the home page sections and the shelves of a title page) ------------ */

.watch-rows,
.watch-body {
	padding-top: 1rem;
}

.look-watch .shelf {
	margin-block: 2.4rem;
}

.look-watch .shelf__head {
	margin: 0 var(--edge) 0.9rem;
}

.look-watch .shelf__title {
	font-size: 1.3rem;
}

.look-watch .shelf__more {
	color: var(--muted);
	font-size: 0.9rem;
}

.look-watch .shelf__row {
	grid-auto-columns: 168px;
	gap: 0.9rem;
	padding: 0.2rem var(--edge) 1rem;
	scroll-padding-inline: var(--edge);
	scrollbar-width: none;
}

.look-watch .shelf__row::-webkit-scrollbar {
	display: none;
}

.look-watch .shelf__row--wide {
	grid-auto-columns: 320px;
}

.look-watch .shelf__row--people {
	grid-auto-columns: 140px;
}

.look-watch .poster {
	border-radius: 8px;
}

.look-watch .container .shelf__head,
.look-watch .container .shelf__row {
	margin-inline: 0;
	padding-inline: 0;
}

/* Watch links right under the hero ---------------------------------------- */

.watch-where {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 1rem 2rem;
	margin: -2rem var(--edge) 0;
	padding: 1.2rem 1.4rem;
	border-radius: 12px;
	background: var(--surface);
}

.watch-where h2 {
	margin: 0;
	font-size: 1.05rem;
}

.watch-where__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.watch-source {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.55rem 0.9rem;
	border-radius: 8px;
	background: var(--raised);
	color: var(--ink);
	font-size: 0.9rem;
	text-decoration: none;
}

.watch-source:hover {
	outline: 2px solid var(--accent);
}

.watch-source__label {
	font-weight: 600;
}

.watch-source__meta {
	color: var(--muted);
	font-size: 0.85rem;
}

/* Episodes of the latest season -------------------------------------------- */

.watch-season,
.look-watch .watch-body > .links,
.look-watch .watch-body > .trailer,
.look-watch .watch-body > .ad {
	margin: 2.6rem var(--edge) 0;
}

.watch-tabs ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.4rem;
	padding: 0;
	list-style: none;
}

.watch-tabs a {
	display: block;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	background: var(--surface);
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.watch-tabs a[aria-current] {
	background: var(--ink);
	color: var(--bg);
}

.episodes--watch {
	display: grid;
	gap: 0.3rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.watch-episode__link {
	display: grid;
	grid-template-columns: 2.2rem 240px 1fr;
	align-items: center;
	gap: 1.2rem;
	padding: 0.8rem;
	border-radius: 10px;
	color: var(--ink);
	text-decoration: none;
}

.watch-episode__link:hover {
	background: var(--surface);
}

.watch-episode__number {
	color: var(--muted);
	font-size: 1.4rem;
	font-weight: 700;
	text-align: center;
}

.watch-episode__text {
	display: grid;
	gap: 0.3rem;
}

.watch-episode__title {
	font-size: 1.05rem;
	font-weight: 650;
}

.watch-episode__meta,
.watch-episode__overview {
	color: var(--muted);
	font-size: 0.9rem;
}

/* Phones ------------------------------------------------------------------ */

@media (max-width: 780px) {
	.watch-bar {
		gap: 1rem;
	}

	.watch-bar__nav {
		display: none;
	}

	.watch-hero {
		min-height: 74vh;
		padding-bottom: 3rem;
	}

	.watch-hero::after {
		background: linear-gradient(0deg, var(--bg) 6%, rgb(var(--shade) / 70%) 55%, rgb(var(--shade) / 25%) 100%);
	}

	.look-watch .shelf__row {
		grid-auto-columns: 128px;
	}

	.look-watch .shelf__row--wide {
		grid-auto-columns: 260px;
	}

	.watch-where {
		grid-template-columns: 1fr;
		margin-top: 1rem;
	}

	.watch-episode__link {
		grid-template-columns: 120px 1fr;
		gap: 0.8rem;
		padding: 0.6rem 0;
	}

	.watch-episode__number,
	.watch-episode__overview {
		display: none;
	}
}
