/* ==========================================================================
   StreamRocket — front-end styles
   A screening room: warm velvet-black, condensed marquee type (Big Shoulders
   Display) over a quiet grotesk (Hanken Grotesk), and images presented as
   lit screens whose colour spills onto the page. Each title lends its poster
   colour (--app) to buttons and glows. The player is always dark.
   ========================================================================== */

@property --app {
	syntax: '<color>';
	inherits: true;
	initial-value: #22C7C0;
}

@view-transition {
	navigation: auto;
}

/* ---------- Tokens ---------- */

:root {
	--font: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-display: 'Big Shoulders Display', 'Hanken Grotesk', ui-sans-serif, sans-serif;

	--accent: #22C7C0;
	--on-accent: #140F0C;
	--app: var(--accent);
	--on-app: var(--on-accent);

	--ease-out: cubic-bezier(.22, 1, .36, 1);
	--ease-spring: cubic-bezier(.34, 1.45, .64, 1);
	--ease-in: cubic-bezier(.55, 0, .75, .2);

	--gutter: max(18px, env(safe-area-inset-left));
	--nav-h: 60px;
	--rail: 0px;
	--safe-top: env(safe-area-inset-top);
	--safe-bottom: env(safe-area-inset-bottom);

	--r-poster: 10px;
	--r-screen: 20px;
	--r-sheet: 24px;

	--fs-xs: 11.5px;
	--fs-s: 13px;
	--fs-m: 15px;
	--fs-b: 16px;
	--fs-l: 19px;
	--fs-xl: 23px;
	--fs-2xl: 30px;

	transition: --app .8s ease;
}

:root.is-quick-color {
	transition-duration: .3s;
}

:root,
[data-theme="dark"] {
	color-scheme: dark;
	--bg: #0F0B0A;
	--bg-2: #18120F;
	--pill: #251D18;
	--pill-2: #33281F;
	--line: rgba(255, 232, 214, .1);
	--text: #F6EFE9;
	--text-2: #BCAEA3;
	--text-3: #85776C;
	--glass: rgba(18, 13, 11, .74);
	--shadow: 0 24px 60px -18px rgba(0, 0, 0, .8);
	--accent-ink: color-mix(in oklch, var(--accent), white 12%);
	--glow-strength: .72;
	--grain: .075;
}

[data-theme="light"] {
	color-scheme: light;
	--bg: #F5F0EA;
	--bg-2: #FFFCF8;
	--pill: #EAE2D9;
	--pill-2: #DDD2C6;
	--line: rgba(40, 24, 12, .1);
	--text: #1B1410;
	--text-2: #5E5047;
	--text-3: #8E7F74;
	--glass: rgba(250, 246, 241, .8);
	--shadow: 0 24px 60px -22px rgba(60, 36, 16, .3);
	--accent-ink: color-mix(in oklch, var(--accent), black 34%);
	--glow-strength: .5;
	--grain: .05;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background: var(--bg);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--nav-h) + var(--safe-top) + 12px);
}

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	padding-left: var(--rail);
	font-family: var(--font);
	font-size: var(--fs-b);
	line-height: 1.5;
	color: var(--text);
	background: transparent;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	overflow-x: hidden;
	/* Short pages (a small category) still keep the footer at the bottom */
	display: flex;
	flex-direction: column;
}

/* Film grain over everything but the overlays (Colors & Motion > Film grain) */
.grain body::after {
	content: '';
	position: fixed;
	inset: -50%;
	z-index: 70;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	opacity: var(--grain);
	animation: grain 1s steps(1) infinite;
}

[data-theme="light"].grain body::after {
	filter: invert(1);
}

@keyframes grain {
	0% { transform: translate(0, 0); }
	17% { transform: translate(-3%, 2%); }
	33% { transform: translate(2%, -3%); }
	50% { transform: translate(-2%, -1%); }
	67% { transform: translate(3%, 3%); }
	83% { transform: translate(-1%, 3%); }
}

img {
	display: block;
	max-width: 100%;
}

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

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd {
	margin: 0;
}

ol,
ul {
	padding: 0;
	list-style: none;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 8px;
}

[hidden] {
	display: none !important;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.i {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

.main,
.footer {
	position: relative;
	z-index: 1;
}

/* ---------- Small parts: badges, ratings, tags, dots ---------- */

.badge {
	display: inline-flex;
	align-items: center;
	height: 19px;
	padding: 0 6px;
	border-radius: 5px;
	font-size: var(--fs-xs);
	font-weight: 750;
	line-height: 1;
	letter-spacing: .02em;
	color: var(--accent-ink);
	box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 55%, transparent);
	white-space: nowrap;
}

.rate {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: var(--fs-s);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.rate .i {
	width: 13px;
	height: 13px;
	color: var(--accent);
}

/* Age rating as a small outlined plate, like on a cinema listing */
.age {
	display: inline-flex;
	align-items: center;
	height: 20px;
	padding: 0 6px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 750;
	line-height: 1;
	box-shadow: inset 0 0 0 1.5px currentColor;
	opacity: .85;
}

.dot {
	display: inline-block;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: .55;
}

.tag {
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 12px;
	border-radius: 8px;
	font-size: var(--fs-s);
	font-weight: 650;
	box-shadow: inset 0 0 0 1.5px var(--line);
	color: var(--text-2);
}

/* Progress line (continue watching, episodes, title page) */
.progress {
	display: block;
	height: 3px;
	border-radius: 3px;
	background: color-mix(in oklab, #fff 28%, transparent);
	overflow: hidden;
}

.progress-fill {
	display: block;
	width: calc(var(--p, 0) * 100%);
	height: 100%;
	border-radius: inherit;
	background: var(--app);
}

/* ---------- Buttons ---------- */

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	padding: 0 22px;
	border-radius: 12px;
	background: var(--accent);
	color: var(--on-accent);
	font-size: var(--fs-b);
	font-weight: 750;
	white-space: nowrap;
	transition: transform .3s var(--ease-spring), background-color .2s, color .2s, box-shadow .3s;
}

.btn .i {
	width: 22px;
	height: 22px;
	margin-left: -4px;
}

.btn:active {
	transform: scale(.95);
}

/* Play takes the colour of the title on screen */
.btn--play {
	background: var(--app);
	color: var(--on-app);
	box-shadow: 0 14px 34px -14px color-mix(in oklab, var(--app) 90%, transparent);
}

.btn--play .i {
	fill: currentColor;
}

.btn--ghost {
	background: transparent;
	color: var(--text);
	box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--text) 30%, transparent);
}

.btn--xl {
	height: 56px;
	padding: 0 28px;
	font-size: var(--fs-l);
}

@media (hover: hover) {
	.btn--play:hover {
		box-shadow: 0 16px 40px -10px color-mix(in oklab, var(--app) 95%, transparent);
	}

	.btn--ghost:hover {
		background: color-mix(in oklab, var(--text) 10%, transparent);
	}
}

.iconbtn {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	color: inherit;
	transition: background-color .2s, transform .3s var(--ease-spring);
}

.iconbtn .i {
	width: 22px;
	height: 22px;
}

.iconbtn:active {
	transform: scale(.9);
}

@media (hover: hover) {
	.iconbtn:hover {
		background: color-mix(in oklab, var(--text) 9%, transparent);
	}
}

/* Small button (offers) */
.get {
	position: relative;
	display: inline-grid;
	place-items: center;
	flex: none;
	min-width: 76px;
	height: 34px;
	padding: 0 16px;
	border-radius: 10px;
	background: var(--pill);
	color: var(--accent-ink);
	font-size: var(--fs-m);
	font-weight: 750;
	transition: transform .3s var(--ease-spring), background-color .2s, color .2s, box-shadow .3s;
}

.get:active {
	transform: scale(.92);
}

@media (hover: hover) {
	.get:hover {
		background: var(--app);
		color: var(--on-app);
	}
}

/* ---------- Navigation: top bar on phones and tablets, left rail on desktop ---------- */

.nav {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 2px;
	height: calc(var(--nav-h) + var(--safe-top));
	padding: var(--safe-top) calc(var(--gutter) - 8px) 0;
	color: var(--text);
	background-color: transparent;
	transition: background-color .35s, box-shadow .35s, -webkit-backdrop-filter .35s, backdrop-filter .35s;
	view-transition-name: nav;
}

.nav.is-solid {
	background-color: var(--glass);
	-webkit-backdrop-filter: blur(20px) saturate(1.6);
	backdrop-filter: blur(20px) saturate(1.6);
	box-shadow: inset 0 -1px 0 var(--line);
}

.nav-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
	min-width: 0;
	padding: 0 8px;
}

.nav-logo {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

[data-theme="dark"] .nav-logo--light,
[data-theme="light"] .nav-logo--dark {
	display: none;
}

.nav-name {
	display: none;
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .01em;
	white-space: nowrap;
}

.nav-back {
	display: none;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 12px;
}

.nav-back .i {
	width: 22px;
	height: 22px;
}

.nav-title {
	display: none;
	min-width: 0;
	font-weight: 750;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .3s, transform .4s var(--ease-out);
}

.nav.is-past .nav-title {
	opacity: 1;
	transform: none;
}

.nav-tabs {
	position: relative;
	display: flex;
	flex: 0 1 auto;
	min-width: 0;
	margin-left: 4px;
	overflow-x: auto;
	scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
	display: none;
}

.nav-tabs.is-overflow {
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
	mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}

.nav-tab {
	flex: none;
}

.nav-tab {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 8px;
	font-size: var(--fs-m);
	font-weight: 700;
	color: var(--text-2);
	transition: color .25s;
}

.nav-tab .i {
	display: none;
}

/* The tab you're on isn't a link to anywhere new */
.nav-tab[aria-current="page"] {
	color: var(--text);
	cursor: default;
}

/* The active tab's marker slides between tabs */
.nav-ink {
	position: absolute;
	left: 0;
	bottom: 5px;
	width: var(--w, 0);
	height: 3px;
	border-radius: 3px;
	background: var(--accent);
	transform: translateX(var(--x, 0));
	transition: transform .5s var(--ease-spring), width .5s var(--ease-spring);
	pointer-events: none;
}

.nav-tabs:not(.has-active) .nav-ink {
	opacity: 0;
}

.nav-tools {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-left: auto;
}

.nav-tool {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	transition: background-color .2s, transform .3s var(--ease-spring);
}

.nav-tool .i {
	width: 22px;
	height: 22px;
}

.nav-tool .nav-label {
	display: none;
}

.nav-tool:active,
.nav-back:active {
	transform: scale(.9);
}

@media (hover: hover) {
	.nav-tool:hover,
	.nav-back:hover {
		background: color-mix(in oklab, var(--text) 9%, transparent);
	}

	.nav-tab:hover {
		color: var(--text);
	}
}

.theme-toggle .theme-sun,
[data-theme="light"] .theme-toggle .theme-moon {
	display: none;
}

[data-theme="light"] .theme-toggle .theme-sun {
	display: block;
}

/* Title pages on phones: back, the title (once scrolled past), tools */
.nav--title .nav-brand,
.nav--title .nav-tabs {
	display: none;
}

.nav--title .nav-back {
	display: inline-grid;
}

.nav--title .nav-title {
	display: block;
}

/* ---------- Layout ---------- */

.main {
	flex: 1 0 auto;
	padding-top: calc(var(--nav-h) + var(--safe-top));
	padding-bottom: 24px;
}

.panel {
	padding-bottom: 8px;
}

.shelf {
	margin-top: 36px;
}

.shelf-head {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	padding-inline: var(--gutter);
	margin-bottom: 14px;
}

.shelf-title {
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 800;
	line-height: .95;
	letter-spacing: .005em;
}

.shelf-more {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: var(--fs-m);
	font-weight: 650;
	color: var(--accent-ink);
	white-space: nowrap;
}

.shelf-more .i {
	width: 16px;
	height: 16px;
}

.panel-head {
	padding: 20px var(--gutter) 22px;
}

.panel-title {
	font-family: var(--font-display);
	font-size: 72px;
	font-weight: 900;
	line-height: .82;
	letter-spacing: -.005em;
}

.empty {
	padding: 40px var(--gutter);
	color: var(--text-2);
	text-align: center;
}

/* Genre filter (Movies / Series) and season tabs */
.chips {
	display: flex;
	gap: 8px;
	margin: 20px calc(-1 * var(--gutter)) 0;
	padding: 2px var(--gutter);
	overflow-x: auto;
	scrollbar-width: none;
}

.chips::-webkit-scrollbar {
	display: none;
}

.chip {
	flex: none;
	height: 36px;
	padding: 0 14px;
	border-radius: 10px;
	box-shadow: inset 0 0 0 1.5px var(--line);
	color: var(--text-2);
	font-size: var(--fs-m);
	font-weight: 650;
	white-space: nowrap;
	transition: background-color .25s, color .25s, box-shadow .25s, transform .3s var(--ease-spring);
}

.chip:active {
	transform: scale(.94);
}

.chip[aria-pressed="true"],
.chip[aria-selected="true"] {
	background: var(--accent);
	color: var(--on-accent);
	box-shadow: none;
}

@media (hover: hover) {
	.chip:not([aria-pressed="true"]):not([aria-selected="true"]):hover {
		color: var(--text);
		box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--text) 35%, transparent);
	}
}

/* ---------- Rails (horizontal, swipeable) ---------- */

.rail {
	position: relative;
}

.rail-track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	/* A scrolling row also clips vertically: leave room for the hover lift
	   above and the colour glow below, then give the space back with
	   negative margins so the rows keep their spacing */
	padding: 20px var(--gutter) 56px;
	margin: -16px 0 -42px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.rail-track::-webkit-scrollbar {
	display: none;
}

.rail-track > li {
	flex: none;
	scroll-snap-align: start;
}

.rail-btn {
	display: none;
}

/* ---------- Posters ---------- */

.posters > .poster,
.posters > .soon {
	width: 128px;
}

.poster-link {
	position: relative;
	display: block;
}

.poster-art {
	position: relative;
	display: block;
	aspect-ratio: 2 / 3;
	border-radius: var(--r-poster);
	overflow: hidden;
	background: var(--pill);
	transition: transform .5s var(--ease-spring), box-shadow .5s var(--ease-out);
}

.poster-art::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
	pointer-events: none;
}

.poster-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.poster-art .badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1;
	background: var(--accent);
	color: var(--on-accent);
	box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .5);
}

/* In rows the poster speaks for itself; the name stays for screen readers */
.rail .poster-name,
.rail .poster-sub {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.poster-name {
	display: block;
	margin-top: 10px;
	font-size: var(--fs-m);
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.poster-sub {
	display: block;
	margin-top: 2px;
	font-size: var(--fs-s);
	color: var(--text-2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.poster-link:active .poster-art,
.rank-link:active .poster-art {
	transform: scale(.96);
}

/* Hover: the poster lifts and glows in its own colour (set by sr.js) */
@media (hover: hover) {
	.poster-link:hover .poster-art,
	.rank-link:hover .poster-art {
		transform: translateY(-6px) scale(1.03);
		box-shadow: 0 22px 44px -14px var(--glow, rgba(0, 0, 0, .75));
	}

	.poster-link:hover .poster-name {
		color: var(--accent-ink);
	}
}

/* Grid (Movies / Series tabs) */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 22px 12px;
	padding-inline: var(--gutter);
}

.grid > .poster.is-in,
.grid > .soon.is-in {
	animation: rise .5s var(--ease-out) both;
	animation-delay: calc(var(--n, 0) * 25ms);
	opacity: 0;
	transform: translateY(10px);
}

/* Top 10: tall solid marquee numerals fading out like falling light, the
   poster laid over each number's right edge */
.ranks {
	gap: 4px;
}

.rank-link {
	position: relative;
	display: flex;
	align-items: flex-end;
}

.rank-no {
	flex: none;
	position: relative;
	z-index: 0;
	/* Numbers as tall as the posters; narrow ones (1) keep a minimum width */
	min-width: .36em;
	margin: -.1em -20px -.16em 0;
	font-family: var(--font-display);
	font-size: 229px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.03em;
	text-align: right;
	background: linear-gradient(180deg, color-mix(in oklab, var(--text) 88%, transparent) 12%, color-mix(in oklab, var(--text) 30%, transparent) 62%, transparent 86%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	user-select: none;
}

.rank:nth-child(-n+3) .rank-no {
	background-image: linear-gradient(180deg, var(--accent) 12%, color-mix(in oklab, var(--accent) 40%, transparent) 62%, transparent 86%);
}

.rank .poster-art {
	position: relative;
	z-index: 1;
	flex: none;
	width: 116px;
	box-shadow: -16px 12px 30px -14px rgba(0, 0, 0, .8);
}

/* Coming soon: identical placeholder cards that top up rows and grids
   too short to reach the edge of the screen (added by sr.js) */
.soon {
	user-select: none;
}

.soon-art {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px;
	background: none;
	color: var(--text-3);
	text-align: center;
}

.soon-art::after {
	box-shadow: inset 0 0 0 1px var(--line);
}

.soon-art .i {
	width: 28px;
	height: 28px;
}

.soon-text {
	font-size: var(--fs-s);
	font-weight: 650;
	line-height: 1.25;
}

.rank.soon .rank-no {
	background-image: linear-gradient(180deg, color-mix(in oklab, var(--text) 30%, transparent) 12%, color-mix(in oklab, var(--text) 10%, transparent) 62%, transparent 86%);
}

@media (hover: hover) {
	.soon .rank-link:hover .poster-art {
		transform: none;
		box-shadow: -16px 12px 30px -14px rgba(0, 0, 0, .8);
	}
}

/* Continue watching: wide frames with the progress line */
.wides > .wide {
	width: 256px;
}

.wide-link {
	display: block;
}

.wide-art {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	overflow: hidden;
	background: var(--pill);
	transition: transform .45s var(--ease-spring);
}

.wide-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wide-art::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 50%, rgba(8, 5, 4, .72));
}

.wide-play {
	position: absolute;
	left: 12px;
	bottom: 16px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #140F0C;
	transition: transform .35s var(--ease-spring);
}

.wide-play .i {
	width: 18px;
	height: 18px;
	margin-left: 2px;
	fill: currentColor;
}

.wide-art .progress {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 8px;
}

.wide-name {
	display: block;
	margin-top: 10px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wide-sub {
	display: block;
	margin-top: 2px;
	font-size: var(--fs-s);
	color: var(--text-2);
}

.wide-link:active .wide-art {
	transform: scale(.97);
}

@media (hover: hover) {
	.wide-link:hover .wide-play {
		transform: scale(1.12);
	}
}

/* ---------- Stage (homepage hero) ----------
   Phones: a deck of posters, neighbours peeking, the front one lit.
   Tablets and up: one wide screen per title, its light spilling around it. */

.stage {
	--card: min(62vw, 300px);
	position: relative;
	margin-top: calc(-1 * (var(--nav-h) + var(--safe-top)));
	padding-top: calc(var(--nav-h) + var(--safe-top) + 6px);
	overflow: hidden;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}

.stage-deck {
	position: relative;
	height: calc(var(--card) * 1.5 + 196px);
}

.slide {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* One layer of glows behind every card, so they crossfade on their own time */
.stage-glows {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* Glows are painted once by sr.js into a tiny pre-blurred canvas that the
   browser scales up; a soft ellipse fades the edges. No live CSS blur:
   Chrome rasterises large blurs only around the visible area and drops
   parts of them while the page scrolls. */
.slide-glow,
.tscreen-glow {
	-webkit-mask-image: radial-gradient(closest-side, #000 25%, rgba(0, 0, 0, .55) 62%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 25%, rgba(0, 0, 0, .55) 62%, transparent 100%);
	pointer-events: none;
}

.slide-glow img,
.tscreen-glow img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
}

.slide-glow canvas,
.tscreen-glow canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.slide-glow {
	position: absolute;
	top: -12%;
	left: 50%;
	width: calc(var(--card) * 1.9);
	aspect-ratio: 2 / 3;
	margin-left: calc(var(--card) * -.95);
	opacity: 0;
	transform: scale(.9);
	transition: opacity 1.4s ease, transform 1.6s var(--ease-out);
}

.slide-glow.is-on {
	opacity: var(--glow-strength);
	transform: none;
}

.slide-frame {
	position: absolute;
	top: 18px;
	left: 50%;
	z-index: calc(10 - var(--ad, 0));
	width: var(--card);
	aspect-ratio: 2 / 3;
	margin-left: calc(var(--card) / -2);
	border-radius: 18px;
	overflow: hidden;
	background: var(--pill);
	box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08);
	opacity: calc(1 - var(--ad, 0) * .5);
	transform: translateX(calc(var(--d, 0) * (var(--card) + 12px))) scale(calc(1 - var(--ad, 0) * .14));
	transition: transform .7s var(--ease-out), opacity .5s ease;
	pointer-events: auto;
}

.slide-art,
.slide-art img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.slide-body {
	position: absolute;
	top: calc(var(--card) * 1.5 + 34px);
	left: var(--gutter);
	right: var(--gutter);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.slide-kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--fs-s);
	font-weight: 700;
	color: var(--text-2);
}

.slide-name {
	margin-top: 4px;
	font-family: var(--font-display);
	font-size: 38px;
	font-weight: 800;
	line-height: .92;
	letter-spacing: .005em;
	overflow-wrap: anywhere;
	text-wrap: balance;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.slide-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 9px;
	margin-top: 8px;
	font-size: var(--fs-s);
	font-weight: 600;
	color: var(--text-2);
}

.slide-blurb {
	display: none;
}

.slide-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

/* Text of the front title rises in, staggered */
.slide-body > * {
	opacity: 0;
	transform: translateY(14px);
}

.slide.is-active .slide-body > * {
	opacity: 1;
	transform: none;
	transition: opacity .6s ease, transform .8s var(--ease-out);
	pointer-events: auto;
}

.slide.is-active .slide-name { transition-delay: .06s; }
.slide.is-active .slide-meta { transition-delay: .12s; }
.slide.is-active .slide-blurb { transition-delay: .17s; }
.slide.is-active .slide-actions { transition-delay: .22s; }

.slide.is-leaving .slide-body > * {
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity .25s ease, transform .35s ease;
}

.js .stage:not(.is-ready) .slide.is-active .slide-body > *,
.js .stage:not(.is-ready) .slide-frame {
	opacity: 0;
	transform: translateY(18px);
	transition: none;
}

.js .stage:not(.is-ready) .timer.is-active .timer-fill {
	animation: none;
}

.stage-lineup {
	display: flex;
	justify-content: center;
	gap: 6px;
	padding: 4px var(--gutter) 0;
}

.timer {
	padding: 8px 0;
}

.timer-thumb,
.timer-text {
	display: none;
}

.timer-bar {
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 4px;
	background: color-mix(in oklab, var(--text) 25%, transparent);
	overflow: hidden;
	transition: width .5s var(--ease-out);
}

.timer.is-active .timer-bar {
	width: 30px;
}

.timer-fill {
	display: block;
	height: 100%;
	width: 100%;
	border-radius: inherit;
	background: var(--text);
	transform: scaleX(0);
	transform-origin: left;
}

.timer.is-active .timer-fill {
	animation: fill var(--spot-interval, 7s) linear forwards;
}

.stage.is-paused .timer.is-active .timer-fill {
	animation-play-state: paused;
}

.stage.is-still .timer.is-active .timer-fill {
	animation: none;
	transform: scaleX(1);
}

@keyframes fill {
	to { transform: scaleX(1); }
}

/* ---------- Title page ----------
   Phones: the screen, then poster beside the name, then everything else.
   Desktop: a sticky poster column beside the screen and the story. */

.main--title {
	padding-top: calc(var(--nav-h) + var(--safe-top) + 4px);
}

.tpage {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	grid-template-areas:
		"screen screen"
		"poster head"
		"actions actions"
		"genres genres"
		"about about"
		"episodes episodes"
		"info info";
	column-gap: 16px;
	padding-inline: var(--gutter);
}

.tside {
	display: contents;
}

.tscreen-wrap {
	grid-area: screen;
	position: relative;
}

.tscreen-glow {
	position: absolute;
	inset: -8% -9% -32%;
	opacity: var(--glow-strength);
}

.tscreen {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--r-screen);
	overflow: hidden;
	background: var(--pill);
	box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.tscreen-art {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease-out), filter .6s;
}

.tscreen::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(70% 70% at 50% 50%, transparent 40%, rgba(8, 5, 4, .45));
	pointer-events: none;
}

.tscreen-play {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	margin: -38px 0 0 -38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6), 0 20px 40px -12px rgba(0, 0, 0, .6);
	transition: transform .45s var(--ease-spring), background-color .3s, color .3s, box-shadow .3s;
}

.tscreen-play .i {
	width: 30px;
	height: 30px;
	margin-left: 4px;
	fill: currentColor;
}

.tscreen:active .tscreen-play {
	transform: scale(.92);
}

@media (hover: hover) {
	.tscreen:hover .tscreen-play {
		transform: scale(1.1);
		background: var(--app);
		color: var(--on-app);
		box-shadow: 0 20px 50px -10px color-mix(in oklab, var(--app) 80%, transparent);
	}

	.tscreen:hover .tscreen-art {
		transform: scale(1.03);
	}
}

.tposter {
	grid-area: poster;
	align-self: end;
	margin-top: 20px;
}

.tposter .poster-art {
	view-transition-name: poster;
	box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8);
}

.thead {
	grid-area: head;
	align-self: end;
	min-width: 0;
	margin-top: 20px;
}

.thero-kind {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--fs-s);
	font-weight: 700;
	color: var(--text-2);
}

.thero-name {
	margin-top: 4px;
	font-family: var(--font-display);
	font-size: 42px;
	font-weight: 800;
	line-height: .9;
	letter-spacing: .005em;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

.thero-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 9px;
	margin-top: 10px;
	font-size: var(--fs-s);
	font-weight: 600;
	color: var(--text-2);
}

.tactions {
	grid-area: actions;
	margin-top: 20px;
}

.tactions .btn {
	width: 100%;
}

.thero-progress {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
	font-size: var(--fs-s);
	font-weight: 600;
	color: var(--text-2);
}

.thero-progress .progress {
	flex: 1;
	background: color-mix(in oklab, var(--text) 14%, transparent);
}

.tgenres {
	grid-area: genres;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.tabout {
	grid-area: about;
	margin-top: 22px;
}

.episodes {
	grid-area: episodes;
	margin-top: 34px;
}

.episodes .shelf-head {
	flex-wrap: wrap;
	padding-inline: 0;
}

.tinfo {
	grid-area: info;
	margin-top: 34px;
}

.chips--seasons {
	margin: 0;
	padding: 0;
	flex-basis: 100%;
}

/* Episodes */
.eps {
	display: grid;
	gap: 4px;
}

.ep-link {
	display: grid;
	grid-template-columns: 148px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	width: calc(100% + 12px);
	padding: 6px;
	margin: 0 -6px;
	border-radius: 14px;
	text-align: left;
	transition: background-color .2s;
}

.ep-still {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: var(--pill);
}

.ep-still img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s var(--ease-out);
}

.ep-play {
	position: absolute;
	left: 50%;
	top: 50%;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: -19px 0 0 -19px;
	border-radius: 50%;
	background: rgba(12, 8, 6, .45);
	color: #fff;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6);
	transition: transform .35s var(--ease-spring), background-color .2s;
}

.ep-play .i {
	width: 18px;
	height: 18px;
	margin-left: 2px;
	fill: currentColor;
}

.ep-still .progress {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 6px;
}

.ep-text {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: baseline;
	column-gap: 10px;
	min-width: 0;
}

.ep-no {
	grid-row: 1 / 3;
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	color: var(--text-3);
	font-variant-numeric: tabular-nums;
}

.ep-name {
	font-weight: 700;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.ep-dur {
	font-size: var(--fs-s);
	color: var(--text-2);
}

.ep.is-current .ep-no,
.ep.is-current .ep-name {
	color: var(--accent-ink);
}

@media (hover: hover) {
	.ep-link:hover {
		background: color-mix(in oklab, var(--text) 5%, transparent);
	}

	.ep-link:hover .ep-play {
		transform: scale(1.12);
		background: var(--app);
		color: var(--on-app);
		box-shadow: none;
	}

	.ep-link:hover .ep-still img {
		transform: scale(1.05);
	}
}

/* About + information */
.rich {
	font-size: var(--fs-b);
	line-height: 1.65;
	color: var(--text-2);
	max-width: 68ch;
	overflow-wrap: anywhere;
}

.rich > * + * {
	margin-top: .8em;
}

.rich h2,
.rich h3,
.rich h4 {
	font-size: var(--fs-l);
	font-weight: 750;
	line-height: 1.3;
	color: var(--text);
}

.rich strong {
	color: var(--text);
	font-weight: 700;
}

.rich ul,
.rich ol {
	padding-left: 1.2em;
}

.rich ul {
	list-style: disc;
}

.rich ol {
	list-style: decimal;
}

.rich li + li {
	margin-top: .35em;
}

.rich a {
	color: var(--accent-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rich.is-clamped {
	max-height: 8.4em;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 50%, transparent);
	mask-image: linear-gradient(#000 50%, transparent);
}

.more {
	margin-top: 10px;
	font-weight: 700;
	color: var(--accent-ink);
}

.info-list > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
	font-size: var(--fs-m);
}

.info-list > div:first-child {
	border-top: 1px solid var(--line);
}

.info-list dt {
	color: var(--text-2);
}

.info-list dd {
	font-weight: 650;
	text-align: right;
}

/* Sticky Play bar once the main button scrolls away */
.dock {
	position: fixed;
	inset: auto 0 0;
	z-index: 45;
	padding: 0 12px calc(var(--safe-bottom) + 10px);
	transform: translateY(140%);
	transition: transform .5s var(--ease-out);
	pointer-events: none;
}

.dock.is-on {
	transform: none;
}

.dock-in {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 560px;
	margin: 0 auto;
	padding: 8px;
	border-radius: 18px;
	background: var(--glass);
	-webkit-backdrop-filter: blur(24px) saturate(1.8);
	backdrop-filter: blur(24px) saturate(1.8);
	box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
	pointer-events: auto;
}

.dock-poster {
	flex: none;
	width: 36px;
	aspect-ratio: 2 / 3;
	border-radius: 6px;
	overflow: hidden;
	background: var(--pill);
}

.dock-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dock-text {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.dock-name {
	font-weight: 750;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dock-sub {
	font-size: var(--fs-s);
	color: var(--text-2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dock .btn {
	height: 42px;
	padding: 0 18px;
	font-size: var(--fs-m);
}

.dock .btn .i {
	width: 18px;
	height: 18px;
}

/* ---------- Player ---------- */

/* Always dark: the shared parts inside (offer rows, buttons) read these */
.player {
	--text: #fff;
	--text-2: rgba(255, 255, 255, .74);
	--text-3: rgba(255, 255, 255, .5);
	--pill: rgba(255, 255, 255, .12);
	--pill-2: rgba(255, 255, 255, .2);
	--line: rgba(255, 255, 255, .12);
	--bg-2: rgba(255, 255, 255, .05);
	--accent-ink: color-mix(in oklch, var(--accent), white 22%);
	--pgut: max(16px, env(safe-area-inset-left));
	color-scheme: dark;
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	background: #000;
	color: var(--text);
	opacity: 0;
	transition: opacity .35s ease;
	overscroll-behavior: contain;
	touch-action: manipulation;
}

.player.is-open {
	opacity: 1;
}

.player-stage {
	position: relative;
	flex: 1;
	min-height: 0;
	display: grid;
	place-items: center;
	overflow: hidden;
	background: #000;
}

.player-video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
	transition: filter .8s ease, transform 1.2s var(--ease-out);
}

.player-embed {
	display: none;
	position: absolute;
	inset: 0;
}

.player-embed iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Embeds keep their own controls: our bar sits above the frame, never over it */
.player.is-embed .player-video {
	display: none;
}

.player.is-embed .player-embed {
	display: block;
}

.player.is-embed .player-stage {
	margin-top: calc(var(--safe-top) + 64px);
}

.player.is-embed .player-bottom {
	display: none;
}

.player.is-embed .player-top {
	background: none;
	padding-bottom: 8px;
}

.player.is-embed .player-ui {
	opacity: 1;
}

/* Cover: the backdrop with one big Play, until playback starts */
.player-cover {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 100%;
	cursor: pointer;
}

.player-cover-art {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .55;
}

.player-cover-btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: var(--app);
	color: var(--on-app);
	box-shadow: 0 20px 60px -10px color-mix(in oklab, var(--app) 80%, transparent);
	transition: transform .4s var(--ease-spring);
}

.player-cover-btn::before {
	content: '';
	position: absolute;
	inset: -10px;
	border-radius: 50%;
	box-shadow: 0 0 0 2px color-mix(in oklab, var(--app) 60%, transparent);
	animation: ping 2.2s var(--ease-out) infinite;
}

.player-cover-btn .i {
	width: 36px;
	height: 36px;
	margin-left: 5px;
	fill: currentColor;
}

.player-cover:active .player-cover-btn {
	transform: scale(.92);
}

@media (hover: hover) {
	.player-cover:hover .player-cover-btn {
		transform: scale(1.08);
	}
}

.player.is-started .player-cover {
	display: none;
}

/* Locked embed: the cover returns, blurred, behind the lock card */
.player.is-embed.is-locked .player-cover {
	display: grid;
	pointer-events: none;
}

.player.is-embed.is-locked .player-cover-art {
	filter: blur(24px) saturate(1.3);
	transform: scale(1.1);
	opacity: .5;
}

.player.is-embed.is-locked .player-cover-btn {
	display: none;
}

.player-spin {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	width: 54px;
	height: 54px;
	margin: -27px 0 0 -27px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, .9);
	border-right-color: transparent;
	opacity: 0;
	animation: spin .8s linear infinite;
	transition: opacity .2s;
	pointer-events: none;
}

.player.is-waiting.is-started:not(.is-locked) .player-spin {
	opacity: 1;
	transition-delay: .3s;
}

/* A quick glyph in the middle for taps and keys (play, pause, ±10 s) */
.player-flash {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	margin: -38px 0 0 -38px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .45);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	opacity: 0;
	pointer-events: none;
}

.player-flash .i {
	width: 34px;
	height: 34px;
	fill: currentColor;
}

.player-flash.is-on {
	animation: flash .6s var(--ease-out);
}

@keyframes flash {
	0% { opacity: 1; transform: scale(.8); }
	100% { opacity: 0; transform: scale(1.3); }
}

/* Controls overlay */
.player-ui {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	transition: opacity .35s ease;
}

.player-ui > * {
	pointer-events: auto;
}

.player.is-playing.is-idle:not(.is-locked) .player-ui {
	opacity: 0;
}

.player.is-playing.is-idle:not(.is-locked) .player-ui > * {
	pointer-events: none;
}

.player.is-playing.is-idle:not(.is-locked):not(.is-embed) {
	cursor: none;
}

.player-top {
	position: absolute;
	inset: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: calc(var(--safe-top) + 10px) var(--pgut) 44px;
	background: linear-gradient(180deg, rgba(0, 0, 0, .72), transparent);
}

.player-close {
	background: rgba(255, 255, 255, .1);
}

.player-heading {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.player-title {
	font-weight: 750;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.player-episode {
	font-size: var(--fs-s);
	color: var(--text-2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.player-episode:empty {
	display: none;
}

.player-unmute,
.player-countdown,
.player-top .pbtn--next {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	font-size: var(--fs-s);
	font-weight: 700;
	white-space: nowrap;
}

.player-unmute {
	background: #fff;
	color: #140F0C;
	animation: rise .4s var(--ease-out) both;
	opacity: 0;
	transform: translateY(-6px);
}

.player-unmute .i {
	width: 18px;
	height: 18px;
}

/* Embeds: time left in the free preview, as a filling ring */
.player-countdown {
	font-variant-numeric: tabular-nums;
}

.player-countdown svg {
	width: 18px;
	height: 18px;
	transform: rotate(-90deg);
}

.player-countdown circle {
	fill: none;
	stroke-width: 3;
}

.player-countdown .ring-bg {
	stroke: rgba(255, 255, 255, .25);
}

.player-countdown .ring {
	stroke: var(--app);
	stroke-linecap: round;
	stroke-dasharray: 44;
	stroke-dashoffset: calc(44 * (1 - var(--k, 0)));
	transition: stroke-dashoffset 1s linear;
}

.player-bottom {
	position: absolute;
	inset: auto 0 0;
	padding: 56px var(--pgut) calc(var(--safe-bottom) + 10px);
	background: linear-gradient(0deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .35) 60%, transparent);
}

/* The timeline: free part, the lock pin, and the locked rest hatched */
.player-bar {
	--played: 0%;
	--buffered: 0%;
	--lock: 100%;
	--hover: 0%;
	position: relative;
	display: flex;
	align-items: center;
	height: 30px;
	cursor: pointer;
	touch-action: none;
	border-radius: 6px;
}

.player-bar-track {
	position: relative;
	flex: 1;
	height: 4px;
	border-radius: 4px;
	background: rgba(255, 255, 255, .22);
	transition: height .2s var(--ease-out);
}

.player-bar:hover .player-bar-track,
.player-bar.is-dragging .player-bar-track {
	height: 6px;
}

.player-bar-buffered,
.player-bar-played,
.player-bar-locked {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	border-radius: inherit;
}

.player-bar-buffered {
	width: var(--buffered);
	background: rgba(255, 255, 255, .28);
}

.player-bar-played {
	width: var(--played);
	background: var(--app);
	box-shadow: 0 0 12px color-mix(in oklab, var(--app) 70%, transparent);
}

.player-bar-locked {
	left: var(--lock);
	right: 0;
	border-radius: 0 4px 4px 0;
	background:
		repeating-linear-gradient(-55deg, rgba(255, 255, 255, .34) 0 2px, transparent 2px 6px),
		rgba(0, 0, 0, .35);
}

.player-bar-lock {
	position: absolute;
	left: var(--lock);
	top: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	margin: -12px 0 0 -12px;
	border-radius: 50%;
	background: #fff;
	color: #140F0C;
	box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .6);
	pointer-events: none;
}

.player-bar-lock .i {
	width: 13px;
	height: 13px;
}

/* Approaching the lock: the pin starts to pulse in the title's colour */
.player-bar.is-near .player-bar-lock::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--app);
	animation: pin-ping 1.4s var(--ease-out) infinite;
	z-index: -1;
}

@keyframes pin-ping {
	to { transform: scale(2); opacity: 0; }
}

.player-bar.is-bump .player-bar-lock {
	animation: bump .5s var(--ease-out);
}

@keyframes bump {
	30% { transform: scale(1.45); }
	60% { transform: scale(.9); }
}

.player.is-free .player-bar-locked,
.player.is-free .player-bar-lock {
	display: none;
}

.player-bar-knob {
	position: absolute;
	left: var(--played);
	top: 50%;
	z-index: 2;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
	transform: scale(0);
	transition: transform .2s var(--ease-spring);
	pointer-events: none;
}

.player-bar:hover .player-bar-knob,
.player-bar.is-dragging .player-bar-knob,
.player-bar:focus-visible .player-bar-knob {
	transform: none;
}

.player-bar-tip {
	position: absolute;
	left: var(--hover);
	bottom: 30px;
	padding: 5px 9px;
	border-radius: 8px;
	background: rgba(0, 0, 0, .85);
	font-size: var(--fs-s);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	transform: translateX(-50%);
	opacity: 0;
	transition: opacity .15s;
	pointer-events: none;
	white-space: nowrap;
}

.player-bar-tip.is-locked {
	background: #fff;
	color: #140F0C;
}

.player-bar:hover .player-bar-tip,
.player-bar.is-dragging .player-bar-tip {
	opacity: 1;
}

.player-controls {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-top: 4px;
}

.pbtn {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	transition: background-color .2s, transform .3s var(--ease-spring);
}

.pbtn .i {
	width: 26px;
	height: 26px;
}

.pbtn--main .i {
	width: 30px;
	height: 30px;
	fill: currentColor;
}

.pbtn:active {
	transform: scale(.88);
}

@media (hover: hover) {
	.pbtn:hover {
		background: rgba(255, 255, 255, .12);
	}
}

.player.is-playing .show-paused,
.player:not(.is-playing) .show-playing,
.player.is-muted .show-sound,
.player:not(.is-muted) .show-muted,
.player.is-full .show-window,
.player:not(.is-full) .show-full {
	display: none;
}

.pvol {
	display: flex;
	align-items: center;
}

.pvol-range {
	display: none;
}

.player-time {
	margin-left: 8px;
	font-size: var(--fs-s);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--text-2);
	white-space: nowrap;
}

.pspace {
	flex: 1;
}

.pbtn--next {
	display: inline-flex;
	align-items: center;
	width: auto;
	padding: 0 12px;
	border-radius: 999px;
	gap: 8px;
	font-size: var(--fs-s);
	font-weight: 700;
}

.pbtn--next span {
	display: none;
}

.player:not(.can-full) [data-p="fullscreen"] {
	display: none;
}

/* The lock: frame blurs away, a card rises with what to do next */
.player.is-locked .player-video {
	filter: blur(22px) brightness(.45) saturate(1.2);
	transform: scale(1.08);
}

.player-lock {
	position: absolute;
	inset: 0;
	z-index: 6;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: calc(var(--safe-top) + 70px) 12px calc(var(--safe-bottom) + 12px);
	background: radial-gradient(90% 70% at 50% 100%, color-mix(in oklab, var(--app) 26%, transparent), transparent 70%);
	opacity: 0;
	transition: opacity .5s ease;
}

.player-lock.is-in {
	opacity: 1;
}

.lock-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(100%, 460px);
	max-height: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 30px 20px 20px;
	border-radius: 30px;
	background: rgba(26, 19, 16, .8);
	-webkit-backdrop-filter: blur(30px) saturate(1.6);
	backdrop-filter: blur(30px) saturate(1.6);
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .1);
	text-align: center;
	transform: translateY(40px) scale(.97);
	transition: transform .7s var(--ease-spring);
	scrollbar-width: thin;
}

.player-lock.is-in .lock-card {
	transform: none;
}

.player-lock.is-in .lock-card.is-nudged {
	animation: nudge .45s var(--ease-out);
}

@keyframes nudge {
	20%, 60% { transform: translateX(-6px); }
	40%, 80% { transform: translateX(6px); }
}

.lock-card > * {
	flex-shrink: 0;
}

.lock-badge {
	position: relative;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	transition: background-color .4s, color .4s;
}

/* A slow scanning ring while locked; a steady glow once unlocked */
.lock-badge::before {
	content: '';
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, transparent 0 62%, color-mix(in oklab, var(--app) 90%, #fff) 100%);
	-webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
	mask: radial-gradient(closest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
	animation: spin 2.6s linear infinite;
}

.lock {
	width: 26px;
	height: 26px;
	overflow: visible;
}

.lock-shackle {
	transform-box: view-box;
	transform-origin: 16px 11px;
	transition: transform .6s var(--ease-spring);
}

.lock-title {
	margin-top: 16px;
	font-family: var(--font-display);
	font-size: 34px;
	font-weight: 800;
	letter-spacing: .005em;
	line-height: 1.12;
	text-wrap: balance;
}

.lock-text {
	max-width: 36ch;
	margin-top: 8px;
	font-size: var(--fs-m);
	color: var(--text-2);
	text-wrap: balance;
}

.lock-go {
	width: 100%;
	margin-top: 22px;
	height: 54px;
	font-size: var(--fs-l);
	background: var(--app);
	color: var(--on-app);
	box-shadow: 0 16px 40px -14px color-mix(in oklab, var(--app) 85%, transparent);
	overflow: hidden;
}

.lock-go::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%);
	transform: translateX(-120%);
	animation: sweep 2.8s var(--ease-out) 1s infinite;
}

.lock-offers {
	width: 100%;
	margin-top: 22px;
	transition: opacity .4s, transform .5s var(--ease-out);
}

.lock-how {
	font-size: var(--fs-s);
	color: var(--text-2);
	text-wrap: balance;
}

.lock-status {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	font-size: var(--fs-s);
	color: var(--text-2);
	text-wrap: balance;
}

.lock-dot {
	position: relative;
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--app);
}

.lock-dot::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--app);
	animation: ping 1.8s var(--ease-out) infinite;
}

.lock-help {
	margin-top: 10px;
	font-size: var(--fs-xs);
	line-height: 1.5;
	color: var(--text-3);
	text-wrap: balance;
}

.lock-help:empty {
	display: none;
}

.lock-again {
	margin-top: 16px;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: var(--fs-s);
	font-weight: 650;
	color: var(--text-2);
}

@media (hover: hover) {
	.lock-again:hover {
		color: #fff;
	}
}

/* Unlocked: the shackle springs open, the ring settles into a glow */
.player-lock.is-unlocked .lock-badge {
	background: var(--app);
	color: var(--on-app);
}

.player-lock.is-unlocked .lock-badge::before {
	background: var(--app);
	animation: none;
	filter: drop-shadow(0 0 10px var(--app));
}

.player-lock.is-unlocked .lock-shackle {
	transform: translateY(-2.5px) rotate(32deg);
}

/* The status line still announces the unlock to screen readers */
.player-lock.is-unlocked .lock-status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.player-lock.is-unlocked .offers,
.player-lock.is-unlocked .lock-text,
.player-lock.is-unlocked .lock-how,
.player-lock.is-unlocked .lock-help,
.player-lock.is-unlocked .lock-again,
.player-lock.is-unlocked .offers-empty {
	display: none;
}

/* Offers inside the lock card */
.offers {
	margin-top: 14px;
	padding: 4px 12px;
	border-radius: 20px;
	background: var(--bg-2);
	box-shadow: inset 0 0 0 1px var(--line);
	text-align: left;
}

.offers:empty {
	display: none;
}

.row {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 0;
}

.row + .row::before {
	content: '';
	position: absolute;
	top: 0;
	left: 62px;
	right: 0;
	height: 1px;
	background: var(--line);
}

.row-link {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
}

.row-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.row-name {
	font-size: var(--fs-m);
	font-weight: 650;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.row-sub {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: var(--fs-s);
	color: var(--text-2);
	white-space: nowrap;
	overflow: hidden;
}

.offer-icon {
	position: relative;
	flex: none;
	width: 50px;
	aspect-ratio: 1;
	border-radius: 23%;
	overflow: hidden;
	background: var(--pill);
}

.offer-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.offer-text {
	font-size: var(--fs-s);
	line-height: 1.4;
	color: var(--text-2);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

/* The network ranks offers for the visitor; the first gets the title's colour */
.offers .offer:first-child .offer-go:not(.is-started) {
	background: var(--app);
	color: var(--on-app);
	box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--app) 85%, transparent);
}

/* Opened offer: the label gives way to a spinner while the network confirms */
.offer-go.is-started {
	background: transparent;
	color: var(--app);
	box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--app) 45%, transparent);
}

.offer-go.is-started .get-label {
	opacity: 0;
}

.offer-go.is-started::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2.5px solid currentColor;
	border-right-color: transparent;
	animation: spin .7s linear infinite;
}

.sk {
	display: block;
	width: 80%;
	height: 11px;
	border-radius: 6px;
	background: var(--pill);
}

.sk--title {
	width: 46%;
	height: 14px;
	margin-bottom: 4px;
}

.offer--skeleton .offer-icon,
.offer--skeleton .sk {
	background: linear-gradient(90deg, var(--pill) 30%, var(--pill-2) 50%, var(--pill) 70%);
	background-size: 300% 100%;
	animation: shimmer 1.4s linear infinite;
}

.offer--skeleton .row-text {
	flex: 1;
}

@keyframes shimmer {
	from { background-position: 100% 0; }
	to { background-position: -50% 0; }
}

.offers-empty {
	padding: 22px 0 6px;
	font-size: var(--fs-m);
	color: var(--text-2);
	text-align: center;
	text-wrap: balance;
}

.burst {
	position: fixed;
	inset: 0;
	z-index: 130;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* Up next (series) */
.player-next {
	position: absolute;
	right: var(--pgut);
	bottom: calc(var(--safe-bottom) + 118px);
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 14px;
	width: min(calc(100% - 2 * var(--pgut)), 440px);
	padding: 10px;
	border-radius: 20px;
	background: rgba(26, 19, 16, .82);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .1);
	animation: next-in .6s var(--ease-spring) both;
}

@keyframes next-in {
	from { opacity: 0; transform: translateY(20px) scale(.96); }
}

.player-next-art {
	flex: none;
	width: 112px;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: var(--pill);
}

.player-next-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.player-next-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
}

.player-next-kicker {
	font-size: var(--fs-s);
	color: var(--text-2);
	font-variant-numeric: tabular-nums;
}

.player-next-name {
	font-weight: 700;
	line-height: 1.2;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.player-next-go {
	height: 40px;
	padding: 0 16px;
	font-size: var(--fs-s);
	background: #fff;
	color: #140F0C;
	overflow: hidden;
	isolation: isolate;
}

.player-next-go::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in oklab, var(--app) 45%, #fff);
	transform: scaleX(0);
	transform-origin: left;
}

.player-next-go.is-counting::before {
	animation: fill 8s linear forwards;
}

.player-next-go .i {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* ---------- Search sheet ---------- */

.search {
	position: fixed;
	inset: 0;
	z-index: 80;
}

.search-scrim {
	position: absolute;
	inset: 0;
	background: rgba(6, 4, 12, .6);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity .35s;
}

.search.is-open .search-scrim {
	opacity: 1;
}

.search-panel {
	position: absolute;
	inset: calc(var(--safe-top) + 10px) 0 0;
	display: flex;
	flex-direction: column;
	border-radius: var(--r-sheet) var(--r-sheet) 0 0;
	background: var(--bg-2);
	box-shadow: var(--shadow);
	transform: translateY(104%);
	transition: transform .55s var(--ease-out);
	overflow: hidden;
}

.search.is-open .search-panel {
	transform: none;
}

.search-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px 12px 12px var(--gutter);
}

.search-field {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	height: 50px;
	padding: 0 16px;
	border-radius: 16px;
	background: var(--pill);
	color: var(--text-3);
	transition: box-shadow .2s;
}

.search-field:focus-within {
	box-shadow: 0 0 0 2px var(--accent);
}

.search-field input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: 0;
	outline: 0;
	background: none;
	color: var(--text);
	font: inherit;
	font-size: 17px;
}

.search-field input::placeholder {
	color: var(--text-3);
}

.search-field input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.search-body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 6px var(--gutter) calc(var(--safe-bottom) + 24px);
}

.search-caption {
	margin: 8px 0 4px;
	font-size: var(--fs-s);
	font-weight: 600;
	color: var(--text-3);
}

.hit {
	opacity: 0;
	transform: translateY(8px);
	animation: rise .45s var(--ease-out) forwards;
	animation-delay: calc(var(--n, 0) * 28ms);
}

.search-results .hit + .hit::before {
	left: 58px;
}

.hit .row-link {
	border-radius: 12px;
}

.hit.is-focus .row-link,
.hit .row-link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
}

.hit mark {
	background: none;
	color: var(--accent-ink);
}

.thumb {
	flex: none;
	width: 46px;
	aspect-ratio: 2 / 3;
	border-radius: 8px;
	overflow: hidden;
	background: var(--pill);
}

.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (hover: hover) {
	.hit .row-link:hover .row-name {
		color: var(--accent-ink);
	}
}

.search-empty {
	padding: 48px 0;
	text-align: center;
	color: var(--text-2);
	text-wrap: balance;
}

/* ---------- Splash (first visit in a session) ---------- */

.splash {
	display: none;
}

.is-splash .splash {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	overflow: hidden;
	background: #0F0B0A;
	color: #fff;
	animation: splash-out .75s var(--ease-in) 1.15s forwards;
}

.splash-mark {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	animation: splash-in .7s var(--ease-spring) .15s both;
}

.splash-logo {
	width: 72px;
	height: 72px;
	object-fit: contain;
}

.splash-name {
	font-family: var(--font-display);
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .02em;
}

/* A projector beam opens up behind the mark */
.splash-beam {
	position: absolute;
	left: 50%;
	top: -10%;
	width: 160vmax;
	height: 120%;
	margin-left: -80vmax;
	background: conic-gradient(from 180deg at 50% 0%, transparent 168deg, color-mix(in oklab, var(--accent) 45%, transparent) 180deg, transparent 192deg);
	transform-origin: 50% 0;
	opacity: 0;
	animation: beam 1.3s var(--ease-out) forwards;
	filter: blur(6px);
}

@keyframes beam {
	0% { opacity: 0; transform: scaleX(.2); }
	40% { opacity: 1; }
	100% { opacity: .7; transform: scaleX(1.6); }
}

@keyframes splash-in {
	from { opacity: 0; transform: scale(.85) translateY(10px); }
}

@keyframes splash-out {
	to { opacity: 0; transform: scale(1.04); visibility: hidden; }
}

/* ---------- Toast ---------- */

.toast {
	position: fixed;
	left: 50%;
	bottom: calc(var(--safe-bottom) + 28px);
	z-index: 120;
	padding: 12px 18px;
	border-radius: 12px;
	background: var(--text);
	color: var(--bg);
	font-size: var(--fs-m);
	font-weight: 700;
	transform: translate(-50%, 20px);
	opacity: 0;
	transition: opacity .3s, transform .45s var(--ease-spring);
}

.toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---------- Footer ---------- */

.footer {
	padding: 56px var(--gutter) calc(var(--safe-bottom) + 36px);
	color: var(--text-3);
	font-size: 12.5px;
	line-height: 1.6;
}

.page-title .footer {
	padding-bottom: calc(var(--safe-bottom) + 96px);
}

.footer-in {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 10px 48px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.footer-text {
	max-width: 70ch;
	text-wrap: pretty;
}

.footer-meta {
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--text-2);
	white-space: nowrap;
}

/* ---------- 404: no signal ---------- */

.lost {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100dvh;
	padding: calc(var(--nav-h) + var(--safe-top) + 24px) var(--gutter) 60px;
	text-align: center;
}

/* Test-card colour bars, the picture of a channel with nothing on it */
.lost-bars {
	display: flex;
	width: min(280px, 72vw);
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7);
	position: relative;
}

.lost-bars span {
	flex: 1;
}

.lost-bars span:nth-child(1) { background: #C0C0C0; }
.lost-bars span:nth-child(2) { background: #C0C000; }
.lost-bars span:nth-child(3) { background: #00C0C0; }
.lost-bars span:nth-child(4) { background: #00C000; }
.lost-bars span:nth-child(5) { background: #C000C0; }
.lost-bars span:nth-child(6) { background: #C00000; }
.lost-bars span:nth-child(7) { background: #0000C0; }

.lost-bars::after {
	content: '';
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 4px);
	animation: roll 4s linear infinite;
}

@keyframes roll {
	to { background-position: 0 40px; }
}

.lost-code {
	margin-top: 26px;
	font-family: var(--font-display);
	font-size: 120px;
	font-weight: 900;
	line-height: .8;
	letter-spacing: .02em;
	color: var(--text);
}

.lost-title {
	max-width: 520px;
	margin-top: 18px;
	font-family: var(--font-display);
	font-size: 36px;
	font-weight: 800;
	line-height: 1;
	text-wrap: balance;
}

.lost-text {
	max-width: 440px;
	margin: 12px 0 28px;
	color: var(--text-2);
	text-wrap: pretty;
}

/* ---------- Mobile-only gate (desktop visitors) ---------- */

.blocked {
	position: relative;
	z-index: 1;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 48px;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 48px var(--gutter);
	text-align: center;
	background: radial-gradient(70% 60% at 70% 50%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%);
}

.blocked-copy {
	max-width: 460px;
}

.blocked-title {
	font-family: var(--font-display);
	font-size: 48px;
	font-weight: 820;
	letter-spacing: -.03em;
	line-height: 1.02;
	text-wrap: balance;
}

.blocked-text {
	margin-top: 16px;
	font-size: var(--fs-l);
	color: var(--text-2);
	text-wrap: pretty;
}

.blocked-hint {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 24px;
	font-size: var(--fs-m);
	color: var(--text-3);
	text-align: left;
}

.phone {
	position: relative;
	width: 240px;
	height: 480px;
	padding: 12px;
	border-radius: 46px;
	background: #1E1714;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), var(--shadow);
}

.phone::before {
	content: '';
	position: absolute;
	top: 22px;
	left: 50%;
	width: 70px;
	height: 20px;
	margin-left: -35px;
	border-radius: 20px;
	background: #080605;
	z-index: 2;
}

.phone-screen {
	position: relative;
	display: grid;
	place-items: center;
	height: 100%;
	border-radius: 36px;
	background: radial-gradient(circle at 50% 40%, color-mix(in oklab, var(--accent) 30%, #0F0B0A), #0F0B0A 75%);
	overflow: hidden;
}

.qr {
	width: 156px;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 0 0 6px rgba(255, 255, 255, .08);
}

.qr svg {
	display: block;
	width: 100%;
	height: auto;
}

.scanline {
	position: absolute;
	left: 30px;
	right: 30px;
	top: 30%;
	height: 2px;
	border-radius: 2px;
	background: var(--accent);
	box-shadow: 0 0 16px 3px var(--accent);
	animation: scan 2.6s ease-in-out infinite alternate;
}

@keyframes scan {
	from { transform: translateY(-40px); }
	to { transform: translateY(150px); }
}

/* ---------- Shared keyframes ---------- */

@keyframes spin {
	to { transform: rotate(360deg); }
}

@keyframes rise {
	to { opacity: 1; transform: none; }
}

@keyframes ping {
	to { transform: scale(3.2); opacity: 0; }
}

@keyframes sweep {
	to { transform: translateX(120%); }
}

/* ---------- View transitions ---------- */

::view-transition-group(poster) {
	animation-duration: .55s;
	animation-timing-function: cubic-bezier(.2, .85, .25, 1);
}

::view-transition-image-pair(poster) {
	border-radius: 12px;
	overflow: hidden;
}

::view-transition-old(root) {
	animation: vt-fade-out .22s ease both;
}

::view-transition-new(root) {
	animation: vt-rise-in .42s var(--ease-out) both;
}

@keyframes vt-fade-out {
	to { opacity: 0; }
}

@keyframes vt-rise-in {
	from { opacity: 0; transform: translateY(24px); }
}

/* Tab switch: only the content area slides */
.tab-vt .main {
	view-transition-name: panel;
}

.tab-vt::view-transition-old(root),
.tab-vt::view-transition-new(root) {
	animation: none;
}

.tab-vt::view-transition-old(panel) {
	animation: vt-slide-out .18s var(--ease-in) both;
}

.tab-vt::view-transition-new(panel) {
	animation: vt-slide-in .46s var(--ease-out) .12s both;
}

@keyframes vt-slide-out {
	to { opacity: 0; transform: translateX(calc(var(--dir, 1) * -40px)); }
}

@keyframes vt-slide-in {
	from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 60px)); }
}

/* Theme switch: the new theme spreads out from the toggle as a circle */
.theme-vt::view-transition-old(root) {
	animation: none;
}

.theme-vt::view-transition-new(root) {
	animation: theme-reveal .7s var(--ease-out) both;
}

.theme-vt::view-transition-group(nav) {
	animation: none;
}

.theme-vt::view-transition-old(nav) {
	animation: none;
	opacity: 0;
}

.theme-vt::view-transition-new(nav) {
	animation: none;
}

@keyframes theme-reveal {
	from { clip-path: circle(0 at var(--vt-x, 90%) var(--vt-y, 0)); }
	to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 90%) var(--vt-y, 0)); }
}

/* ---------- Phones in landscape: the player uses every pixel ---------- */

@media (max-height: 500px) and (orientation: landscape) {
	.player-top {
		padding-top: 8px;
		padding-bottom: 30px;
	}

	.player-bottom {
		padding-top: 30px;
		padding-bottom: 6px;
	}

	.player.is-embed .player-stage {
		margin-top: 56px;
	}

	.player-lock {
		align-items: center;
		padding-top: 12px;
	}

	.lock-card {
		padding-top: 20px;
	}

	.lock-badge {
		width: 48px;
		height: 48px;
	}

	.player-next {
		bottom: 90px;
	}
}

/* ---------- Tablet (≥ 700px) ---------- */

@media (min-width: 700px) {
	:root {
		--gutter: 32px;
		--nav-h: 68px;
		--r-screen: 24px;
	}

	.player {
		--pgut: 28px;
	}

	.nav-name {
		display: block;
	}

	.nav-tabs {
		margin-left: 18px;
	}

	.nav-tab {
		padding: 0 14px;
		font-size: var(--fs-b);
	}

	/* The stage becomes one wide screen */
	.stage {
		margin-top: 0;
		padding: 16px var(--gutter) 0;
		overflow: visible;
	}

	.stage-deck {
		height: clamp(400px, 60vw, 560px);
	}

	.slide {
		z-index: 1;
		visibility: hidden;
		transition: visibility 0s linear 1.6s;
	}

	.slide.is-leaving {
		visibility: visible;
	}

	.slide.is-active {
		z-index: 2;
		visibility: visible;
		transition-delay: 0s;
	}

	.slide-glow {
		inset: -8% -8% -28%;
		width: auto;
		margin: 0;
		aspect-ratio: auto;
	}

	.slide-frame {
		inset: 0;
		z-index: 1;
		width: auto;
		margin: 0;
		aspect-ratio: auto;
		border-radius: var(--r-screen);
		background: transparent;
		opacity: 1;
		transform: none;
		transition: none;
		pointer-events: none;
	}

	.slide.is-active .slide-frame {
		pointer-events: auto;
	}

	/* Each new title comes into focus, like a projector's lens */
	.slide-art img {
		opacity: 0;
		transform: scale(1.06);
		filter: blur(8px);
		transition: opacity .9s ease, transform 1.6s var(--ease-out), filter 1.1s var(--ease-out);
	}

	.slide.is-active .slide-art img {
		opacity: 1;
		transform: none;
		filter: none;
	}

	/* The screen being replaced holds still until the new one covers it */
	.slide.is-leaving .slide-art img,
	.slide.is-leaving .slide-frame::after {
		opacity: 1;
		transform: none;
		filter: none;
		transition: none;
	}

	.js .stage:not(.is-ready) .slide-frame {
		opacity: 1;
		transform: none;
	}

	.js .stage:not(.is-ready) .slide-art img {
		opacity: 0;
		transform: scale(1.06);
		filter: blur(8px);
	}

	.slide-frame::after {
		content: '';
		position: absolute;
		inset: 0;
		background:
			linear-gradient(90deg, rgba(10, 6, 5, .85) 0%, rgba(10, 6, 5, .55) 32%, transparent 62%),
			linear-gradient(0deg, rgba(10, 6, 5, .7) 0%, transparent 45%);
		opacity: 0;
		transition: opacity .9s ease;
	}

	.slide.is-active .slide-frame::after {
		opacity: 1;
	}

	.slide-body {
		top: auto;
		left: 40px;
		right: auto;
		bottom: 40px;
		z-index: 2;
		width: min(560px, 62%);
		align-items: flex-start;
		text-align: left;
		color: #fff;
	}

	.slide-kicker,
	.slide-meta,
	.slide-blurb {
		color: rgba(255, 255, 255, .8);
	}

	.slide-kicker .badge {
		color: #fff;
		box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
	}

	.slide-name {
		font-size: 64px;
		color: #fff;
	}

	.slide-meta {
		justify-content: flex-start;
		font-size: var(--fs-m);
	}

	.slide-blurb {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
		margin-top: 12px;
		max-width: 48ch;
		line-height: 1.5;
	}

	.slide-actions {
		margin-top: 22px;
	}

	.slide-actions .btn--ghost {
		color: #fff;
		box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}

	/* Tablets keep the small dots under the screen */
	.stage-lineup {
		padding-top: 14px;
	}

	.panel-title {
		font-size: 104px;
	}

	.shelf-title {
		font-size: 36px;
	}

	.posters > .poster,
	.posters > .soon {
		width: 158px;
	}

	.grid {
		grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
		gap: 28px 16px;
	}

	.rank-no {
		font-size: 280px;
		margin-right: -24px;
	}

	.rank .poster-art {
		width: 142px;
	}

	.wides > .wide {
		width: 320px;
	}

	/* Title page */
	.tpage {
		grid-template-columns: 170px minmax(0, 1fr);
		column-gap: 28px;
	}

	.tposter {
		margin-top: 28px;
	}

	.thead {
		margin-top: 28px;
	}

	.thero-name {
		font-size: 72px;
	}

	.thero-meta {
		font-size: var(--fs-m);
	}

	.tactions .btn {
		width: auto;
		min-width: 240px;
	}

	.tscreen-play {
		width: 92px;
		height: 92px;
		margin: -46px 0 0 -46px;
	}

	.tscreen-play .i {
		width: 36px;
		height: 36px;
	}

	.ep-link {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 20px;
	}

	.ep-name {
		font-size: var(--fs-l);
	}

	.lost-code {
		font-size: 180px;
	}

	.player-next {
		bottom: 128px;
	}

	.lock-card {
		padding: 34px 28px 24px;
	}
}

/* ---------- Desktop (≥ 1024px): the navigation becomes a left rail ---------- */

@media (min-width: 1024px) {
	:root {
		--rail: 92px;
		--nav-h: 0px;
		--gutter: max(44px, calc((100vw - var(--rail) - 1360px) / 2));
	}

	.player {
		--pgut: 36px;
	}

	html {
		scroll-padding-top: 24px;
	}

	.nav {
		inset: 0 auto 0 0;
		width: var(--rail);
		height: auto;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 22px 12px 18px;
		background-color: color-mix(in oklab, var(--bg-2) 88%, transparent);
		-webkit-backdrop-filter: blur(20px);
		backdrop-filter: blur(20px);
		box-shadow: inset -1px 0 0 var(--line);
	}

	.nav.is-solid {
		background-color: color-mix(in oklab, var(--bg-2) 88%, transparent);
		box-shadow: inset -1px 0 0 var(--line);
	}

	.nav-brand {
		justify-content: center;
		padding: 0;
		margin-bottom: 28px;
	}

	.nav-logo {
		width: 44px;
		height: 44px;
	}

	.nav-name {
		display: none;
	}

	.nav--title .nav-brand {
		display: flex;
		margin-bottom: 14px;
	}

	.nav--title .nav-back {
		align-self: center;
		margin-bottom: 14px;
		box-shadow: inset 0 0 0 1.5px var(--line);
	}

	.nav--title .nav-title {
		display: none;
	}

	.nav-tabs,
	.nav--title .nav-tabs {
		display: flex;
		flex-direction: column;
		gap: 4px;
		margin: 0 -12px;
		padding: 0 12px;
		overflow-x: hidden;
		overflow-y: auto;
	}

	.nav-tabs.is-overflow {
		-webkit-mask-image: none;
		mask-image: none;
	}

	.nav-tab {
		flex-direction: column;
		justify-content: center;
		gap: 6px;
		height: 68px;
		padding: 0;
		border-radius: 14px;
		font-size: 12px;
		font-weight: 700;
		transition: color .25s, background-color .2s;
	}

	.nav-tab .i {
		display: block;
		width: 25px;
		height: 25px;
	}

	.nav-tab[aria-current="page"] .i {
		color: var(--accent);
		fill: currentColor;
		fill-opacity: .18;
	}

	@media (hover: hover) {
		.nav-tab:not([aria-current="page"]):hover {
			background: color-mix(in oklab, var(--text) 6%, transparent);
		}
	}

	/* Marker: a bar on the rail's edge beside the active tab */
	.nav-ink {
		left: 0;
		top: 0;
		bottom: auto;
		width: 3px;
		height: var(--h, 0);
		border-radius: 0 3px 3px 0;
		transform: translateY(var(--y, 0));
		transition: transform .5s var(--ease-spring), height .5s var(--ease-spring);
	}

	.nav-tools {
		flex-direction: column;
		gap: 4px;
		margin: auto 0 0;
	}

	.nav-tool {
		width: 100%;
		height: 56px;
		border-radius: 14px;
	}

	.nav-tool[data-search-open] {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		height: 68px;
		font-size: 12px;
		font-weight: 700;
		color: var(--text-2);
	}

	.nav-tool[data-search-open] .nav-label {
		display: block;
	}

	.main {
		padding-top: 0;
	}

	.main--title {
		padding-top: 28px;
	}

	.dock {
		padding-left: calc(var(--rail) + 12px);
		padding-bottom: 20px;
	}

	.footer,
	.page-title .footer {
		padding-bottom: 40px;
	}

	.toast {
		left: calc(50% + var(--rail) / 2);
		bottom: 40px;
	}

	/* Programme entries: poster thumbnail, name and meta */
	.stage-lineup {
		justify-content: flex-start;
		gap: 12px;
		padding: 22px 0 0;
	}

	.timer {
		display: flex;
		flex-direction: column;
		gap: 8px;
		width: 58px;
		padding: 0;
		opacity: .5;
		transition: opacity .3s, transform .45s var(--ease-spring);
	}

	.timer:hover {
		opacity: .85;
	}

	.timer.is-active {
		opacity: 1;
		transform: translateY(-4px);
	}

	.timer-thumb {
		display: block;
		aspect-ratio: 2 / 3;
		border-radius: 7px;
		overflow: hidden;
		box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .7);
	}

	.timer.is-active .timer-thumb {
		box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--app);
	}

	.timer-thumb img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.timer-bar,
	.timer.is-active .timer-bar {
		width: 100%;
		height: 3px;
	}

	/* Stage: a tall screen with the programme beside it; the next row
	   still in view */
	.stage {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 268px;
		column-gap: 20px;
		padding-top: 28px;
	}

	.stage-deck {
		height: clamp(440px, calc(100vh - 300px), 700px);
	}

	.stage-lineup {
		flex-direction: column;
		justify-content: center;
		gap: 4px;
		padding: 0;
	}

	.timer,
	.timer.is-active {
		position: relative;
		flex-direction: row;
		align-items: center;
		gap: 14px;
		width: auto;
		padding: 8px;
		border-radius: 14px;
		text-align: left;
		transform: none;
		transition: opacity .3s, background-color .3s;
	}

	.timer {
		opacity: .62;
	}

	.timer:hover {
		opacity: .9;
	}

	.timer.is-active {
		opacity: 1;
		background: color-mix(in oklab, var(--text) 7%, transparent);
	}

	.timer-thumb {
		flex: none;
		width: 46px;
	}

	.timer-text {
		display: flex;
		flex-direction: column;
		min-width: 0;
		padding-bottom: 6px;
	}

	.timer-name {
		font-family: var(--font-display);
		font-size: 22px;
		font-weight: 800;
		line-height: 1;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.timer-sub {
		margin-top: 4px;
		font-size: var(--fs-s);
		color: var(--text-2);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	/* The countdown to the next title runs under the active entry */
	.timer-bar,
	.timer.is-active .timer-bar {
		position: absolute;
		left: 68px;
		right: 14px;
		bottom: 12px;
		width: auto;
		height: 2px;
		opacity: 0;
	}

	.timer.is-active .timer-bar {
		opacity: 1;
	}

	.slide-body {
		left: 56px;
		bottom: 56px;
		width: min(600px, 52%);
	}

	.slide-name {
		font-size: 96px;
		line-height: .88;
	}

	.slide-blurb {
		font-size: var(--fs-l);
	}

	.slide-actions .btn {
		height: 54px;
		padding: 0 26px;
		font-size: var(--fs-l);
	}

	/* Rails get arrow buttons */
	.rail-btn {
		position: absolute;
		top: calc(50% - 12px);
		z-index: 2;
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		margin-top: -22px;
		border-radius: 12px;
		background: var(--glass);
		-webkit-backdrop-filter: blur(16px);
		backdrop-filter: blur(16px);
		box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
		opacity: 0;
		transform: scale(.85);
		transition: opacity .25s, transform .35s var(--ease-spring);
	}

	.rail-btn .i {
		width: 20px;
		height: 20px;
	}

	.rail-btn--prev {
		left: calc(var(--gutter) - 22px);
	}

	.rail-btn--next {
		right: calc(var(--gutter) - 22px);
	}

	.rail:hover .rail-btn:not([disabled]) {
		opacity: 1;
		transform: none;
	}

	.rail-btn[disabled] {
		pointer-events: none;
	}

	.rail-track {
		gap: 18px;
	}

	.posters > .poster,
	.posters > .soon {
		width: 184px;
	}

	.rank-no {
		font-size: 324px;
		margin-right: -28px;
	}

	.rank .poster-art {
		width: 164px;
	}

	.wides > .wide {
		width: 360px;
	}

	.grid {
		grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
		gap: 34px 20px;
	}

	.panel-head {
		padding-top: 44px;
		padding-bottom: 30px;
	}

	.panel-title {
		font-size: 150px;
	}

	.chips {
		flex-wrap: wrap;
		margin-inline: 0;
		padding-inline: 0;
	}

	.shelf {
		margin-top: 48px;
	}

	.shelf-title {
		font-size: 40px;
	}

	/* Title page: sticky poster column beside the screen and the story */
	.tpage {
		grid-template-columns: 280px minmax(0, 1fr);
		grid-template-rows: auto auto auto auto auto 1fr;
		grid-template-areas:
			"side screen"
			"side head"
			"side genres"
			"side about"
			"side episodes"
			"side .";
		column-gap: 52px;
	}

	.tside {
		display: block;
		grid-area: side;
		position: sticky;
		top: 28px;
		align-self: start;
	}

	.tposter {
		margin: 0;
	}

	.tposter .poster-art {
		border-radius: 14px;
		box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85);
	}

	.tactions {
		margin-top: 20px;
	}

	.tactions .btn {
		width: 100%;
		min-width: 0;
	}

	.tinfo {
		margin-top: 26px;
	}

	.thead {
		margin-top: 34px;
	}

	.thero-name {
		font-size: 104px;
		line-height: .86;
	}

	.thero-meta {
		margin-top: 14px;
		font-size: var(--fs-b);
	}

	.tabout {
		margin-top: 26px;
	}

	.rich {
		font-size: var(--fs-l);
	}

	.eps {
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
		gap: 26px 20px;
	}

	.ep-link {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		width: 100%;
		padding: 0;
		margin: 0;
		border-radius: 0;
	}

	.ep-still {
		border-radius: 12px;
	}

	.ep-play {
		width: 52px;
		height: 52px;
		margin: -26px 0 0 -26px;
	}

	.ep-play .i {
		width: 22px;
		height: 22px;
	}

	.ep-name {
		font-size: var(--fs-b);
	}

	@media (hover: hover) {
		.ep-link:hover {
			background: none;
		}
	}

	/* Player: wider controls, a volume slider and labelled buttons */
	.pvol-range {
		display: block;
		width: 0;
		margin-left: 2px;
		opacity: 0;
		accent-color: #fff;
		transition: width .3s var(--ease-out), opacity .2s;
	}

	.pvol:hover .pvol-range,
	.pvol:focus-within .pvol-range {
		width: 90px;
		opacity: 1;
	}

	.pbtn--next span {
		display: inline;
	}

	.player-bottom {
		padding-bottom: 20px;
	}

	.player-lock {
		align-items: center;
	}

	.lock-card {
		width: 480px;
	}

	.player-next {
		bottom: 126px;
	}

	.blocked {
		grid-template-columns: minmax(0, 480px) auto;
		gap: 96px;
		justify-content: center;
		align-items: center;
		text-align: left;
	}

	.blocked-title {
		font-size: 64px;
	}

	.phone {
		width: 280px;
		height: 560px;
	}

	.qr {
		width: 184px;
	}

	/* Search on desktop: a centred panel instead of a bottom sheet. It sets
	   its own padding: the page gutter grows with the screen width */
	.search-panel {
		--gutter: 24px;
		inset: 80px 0 auto;
		left: var(--rail);
		width: min(680px, calc(100% - var(--rail) - 80px));
		max-height: calc(100vh - 160px);
		margin: 0 auto;
		border-radius: var(--r-sheet);
		transform: translateY(-16px) scale(.98);
		opacity: 0;
		transition: transform .45s var(--ease-out), opacity .25s;
	}

	.search.is-open .search-panel {
		opacity: 1;
	}
}

/* Short desktop screens: tighter stage */
@media (min-width: 1024px) and (max-height: 820px) {
	/* A compact programme so it stays as tall as the screen */
	.stage-lineup {
		gap: 2px;
	}

	.timer,
	.timer.is-active {
		gap: 12px;
		padding: 5px 8px;
	}

	.timer-thumb {
		width: 38px;
	}

	.timer-name {
		font-size: 19px;
	}

	.timer-sub {
		margin-top: 2px;
		font-size: 12px;
	}

	.timer-bar,
	.timer.is-active .timer-bar {
		left: 58px;
		bottom: 8px;
	}

	.slide-body {
		bottom: 40px;
	}

	.slide-name {
		font-size: 76px;
	}

	.slide-blurb {
		display: none;
	}
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}

	.grain body::after {
		animation: none !important;
	}

	.is-splash .splash {
		display: none;
	}

	::view-transition-group(*),
	::view-transition-old(*),
	::view-transition-new(*) {
		animation: none !important;
	}
}
