/* AiAudioHub site: joaomilliet.com's frame (black full-bleed, serif display, spaced labels, glass header) in the
   Communicator's colours (graphite, paper, warm only where it matters), its marks (needle, rails, the dot field).
   Every section is one screen and the page snaps to them; the films live in one carousel per chapter. */
:root {
  --bg: #0b0b0a; --bg2: #121210; --card: #161614; --line: rgba(236, 231, 220, 0.09); --line2: rgba(236, 231, 220, 0.16);
  --fg: #ece7dc; --body: #c4bfb4; --dim: #8f8a80; --faint: #4b4842;
  --warm: #e0a85a; --warm-hi: #f2c486; --blue: #4f8dff;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: calc(clamp(16px, 4vw, 56px) + max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)));
  --head: calc(68px + env(safe-area-inset-top, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-snap-type: y mandatory; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.locked { overflow: hidden; scroll-snap-type: none; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--fg); color: #000; padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.wrap.narrow { width: min(820px, 100%); }
.dim { color: var(--dim); }
.warm { color: var(--warm); }
.serif, em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); }

/* one screen per section */
.screen { position: relative; min-height: 100vh; min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; }
.screen.center { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--head) + 24px) 0 48px; overflow-x: clip; }
@media (max-height: 560px) {
  .screen.center { padding-bottom: 24px; }
  .chapter-index { margin-top: 18px; }
  .chapter-index a { padding: 10px 12px 10px 0; gap: 2px; }
  .chapter-index b { font-size: 17px; }
  .logos { margin-top: 18px; }
  .logos li { padding: 10px 12px 10px 0; }
}

/* the rails: mono, spaced, with the Communicator's needle */
.eyebrow, .rail, .pill, .nav a, .mono { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.rail { color: var(--dim); display: inline-flex; align-items: center; gap: 12px; margin: 0 0 24px; }
.needle { position: relative; width: 16px; height: 10px; display: inline-block; flex: none; }
.needle::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; opacity: .35; }
.needle::before { content: ""; position: absolute; left: calc(50% - .75px); bottom: 0; width: 1.5px; height: 11px; background: currentColor;
  transform-origin: 50% 100%; animation: needle 2.6s ease-in-out infinite; }
@keyframes needle { 0%, 100% { transform: rotate(-30deg); } 30% { transform: rotate(14deg); } 55% { transform: rotate(-8deg); } 80% { transform: rotate(26deg); } }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 28px;
  height: var(--head); padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  transition: background .5s, border-color .5s, backdrop-filter .5s; border-bottom: 1px solid transparent; }
.top.glass { background: rgba(11, 11, 10, .62); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--dim); transition: color .2s; }
.nav a:hover, .nav a.on { color: var(--fg); }
.pill { display: inline-flex; align-items: center; gap: 10px; color: var(--warm); border: 1px solid rgba(224, 168, 90, .35); padding: 8px 14px 8px 12px; border-radius: 999px; transition: border-color .2s, background .2s; white-space: nowrap; }
.pill:hover { border-color: var(--warm); background: rgba(224, 168, 90, .08); }
@media (max-width: 760px) { .nav { gap: 18px; } .nav a:not([href="#films"]) { display: none; } .brand span { display: none; } }

/* hero */
.hero { height: 100vh; height: 100svh; min-height: 0; overflow: hidden; background: #000; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 62%, rgba(11,11,10,.95) 100%); }
.hero-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(clamp(32px, 7vh, 72px) + env(safe-area-inset-bottom, 0px)); max-width: 640px; }
.hero-title { margin: 0 0 22px; font: 400 clamp(24px, 3vw, 40px)/1.12 var(--sans); letter-spacing: -0.02em; }
.hero-title .dim { color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 500; font-size: 15px; transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-light { background: var(--fg); color: #0b0b0a; }
.btn-light:hover { background: #fff; }
.btn-ghost { border: 1px solid var(--line2); color: var(--fg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-warm { background: var(--warm); color: #0b0b0a; }
.btn-warm:hover { background: var(--warm-hi); }
.play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(48px, 9vh, 96px); width: 1px; height: 64px; background: var(--line2); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--fg); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
/* a phone held upright: the whole 16:9 trailer, not a crop of its middle */
@media (orientation: portrait) and (max-width: 900px) {
  .hero-video { object-fit: contain; object-position: 50% 42%; }
  .hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 58%, rgba(11,11,10,1) 82%); }
  .scroll-cue { display: none; }
}

/* sections */
.field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.say { margin: 0 0 36px; font: 300 clamp(40px, 7.4vw, 112px)/1.02 var(--sans); letter-spacing: -0.035em; max-width: 14ch; }
.say em { color: var(--warm); }
.say .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.22em); transition: opacity .8s var(--ease), filter .8s var(--ease), transform .8s var(--ease); }
.say.in .w { opacity: 1; filter: none; transform: none; }
.display { margin: 0 0 24px; font: 400 clamp(32px, 5vw, 72px)/1.04 var(--sans); letter-spacing: -0.03em; max-width: 18ch; }
.display .serif { font-size: 1.08em; }
.lede { max-width: 58ch; font-size: clamp(17px, 1.6vw, 21px); color: var(--body); margin: 0; }
.lede em { color: var(--fg); font-size: 1.1em; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* how it works: four screens of scroll, one sticky stage; each step is a stop */
.how { position: relative; height: 400vh; height: 400svh; }
.how-snap { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; scroll-snap-stop: always; }
.how-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto 1fr;
  column-gap: clamp(24px, 4vw, 72px); align-items: center; padding: calc(var(--head) + 20px) var(--gutter) 40px; max-width: 1400px; margin: 0 auto; }
.how-head { grid-column: 1 / -1; }
.how-head .display { margin-bottom: 0; font-size: clamp(28px, 3.6vw, 52px); max-width: 26ch; }
.how-canvas { width: 100%; height: 100%; max-height: 62vh; min-height: 0; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.how-steps li { padding: 18px 0; border-top: 1px solid var(--line); opacity: .28; transition: opacity .6s var(--ease); }
.how-steps li.on { opacity: 1; }
.how-steps .n { font: 400 11px var(--mono); letter-spacing: .2em; color: var(--warm); }
.how-steps h3 { margin: 8px 0 6px; font: 400 clamp(22px, 2.2vw, 32px)/1.15 var(--sans); letter-spacing: -0.02em; }
.how-steps p { margin: 0; color: var(--body); max-width: 46ch; }
.how-dots { display: none; }
@media (max-width: 900px), (max-height: 560px) {
  .how-sticky { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto auto; row-gap: 12px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .how-canvas { max-height: none; }
  .how-steps { display: block; position: relative; min-height: 9.5em; }
  .how-steps li { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); border: 0; padding: 0; }
  .how-steps li.on { opacity: 1; transform: none; }
  .how-dots { display: flex; gap: 8px; }
  .how-dots i { width: 22px; height: 2px; background: var(--line2); transition: background .4s; }
  .how-dots i.on { background: var(--warm); }
}
@media (max-height: 560px) and (orientation: landscape) {
  .how-sticky { grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; }
  .how-canvas { grid-row: 2; }
  .how-steps { grid-row: 2; }
  .how-dots { display: none; }
}

/* the films: an index screen, then one screen per chapter, a carousel of tiles */
.chapter-index { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.chapter-index a { display: grid; gap: 6px; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); transition: color .2s; }
.chapter-index .mono { color: var(--warm); }
.chapter-index b { font: 400 20px/1.2 var(--serif); font-style: italic; }
.chapter-index span { color: var(--dim); font-size: 14px; }
.chapter-index a:hover b { color: var(--warm-hi); }
@media (max-width: 900px) { .chapter-index { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .chapter-index { grid-template-columns: 1fr; } .chapter-index a { grid-template-columns: 34px 1fr auto; align-items: baseline; padding: 12px 0; } }

.chapter { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--head) + 16px) 0 calc(28px + env(safe-area-inset-bottom, 0px)); overflow: hidden;
  --tw: min(680px, 44vw, calc((100svh - var(--head) - 300px) * 16 / 9)); }
.chapter-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.chapter-head .mono { color: var(--dim); }
.chapter-head h3 { margin: 0; font: 400 clamp(26px, 3vw, 42px)/1.1 var(--serif); font-style: italic; letter-spacing: -0.01em; }
.chapter-ctl { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.chapter-ctl .count { font: 400 11px var(--mono); letter-spacing: .2em; color: var(--dim); min-width: 4.5em; text-align: right; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; transition: border-color .2s, opacity .2s; }
.arrow:hover { border-color: var(--fg); }
.arrow:disabled { opacity: .25; cursor: default; }
.arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.track { display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 4px var(--gutter) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.track::-webkit-scrollbar { display: none; }
.track::after { content: ""; flex: 0 0 1px; }
.tile { flex: 0 0 var(--tw); scroll-snap-align: start; position: relative; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line);
  cursor: pointer; text-align: left; transition: border-color .3s, transform .5s var(--ease); }
.tile:hover { border-color: var(--line2); }
.tile .media { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.tile video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover video { transform: scale(1.03); }
.tile .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55)); }
.tile .badge { position: absolute; left: 14px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font: 400 10px var(--mono); letter-spacing: .18em; color: var(--fg); }
.tile .badge i { width: 0; height: 0; border-left: 7px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.tile .copy { padding: 16px 20px 20px; display: grid; gap: 6px; }
.tile .ask { margin: 0; font: italic 400 19px/1.3 var(--serif); color: var(--warm-hi); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile h4 { margin: 2px 0 0; font: 500 19px/1.2 var(--sans); letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--body); font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) {
  .chapter { --tw: min(86vw, calc((100svh - var(--head) - 300px) * 16 / 9)); }
  .chapter-head { margin-bottom: 16px; gap: 12px; }
  .chapter-ctl .arrow { display: none; }
  .track { gap: 12px; }
  .tile .copy { padding: 14px 16px 16px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  :root { --head: calc(52px + env(safe-area-inset-top, 0px)); }
  .chapter { --tw: calc((100svh - var(--head) - 170px) * 16 / 9); padding-top: calc(var(--head) + 6px); }
  .chapter-head { margin-bottom: 8px; }
  .tile .copy { padding: 10px 14px 12px; gap: 2px; }
  .tile p, .tile .ask { display: none; }
}

/* works with */
.logos { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.logos li { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.logos b { font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.logos span { color: var(--dim); font-size: 14px; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(2, 1fr); } .logos li { padding: 14px 12px 14px 0; } .logos b { font-size: 16px; } .logos span { font-size: 13px; } }

/* control */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.trio div { border-top: 1px solid var(--line2); padding-top: 20px; }
.trio h3 { margin: 0 0 8px; font: 500 15px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--warm); }
.trio p { margin: 0; color: var(--body); }
@media (max-width: 800px) { .trio { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; } .trio div { padding-top: 14px; } }

/* notify + footer: the last screen */
.notify { display: flex; flex-direction: column; background: radial-gradient(60% 60% at 50% 30%, rgba(79, 141, 255, .10), rgba(0,0,0,0)), var(--bg); }
.notify-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--head) + 24px); padding-bottom: 32px; }
.signup { margin-top: 32px; display: grid; grid-template-columns: 1fr auto; gap: 12px; max-width: 560px; }
.signup input[type="email"] { height: 52px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(236, 231, 220, .04); color: var(--fg);
  padding: 0 22px; font: inherit; font-size: 16px; outline: none; transition: border-color .2s, background .2s; }
.signup input[type="email"]:focus { border-color: var(--fg); background: rgba(236, 231, 220, .07); }
.signup .btn { height: 52px; }
.form-note { grid-column: 1 / -1; margin: 4px 0 0 22px; font-size: 14px; color: var(--dim); min-height: 1.4em; }
.form-note.ok { color: var(--warm); }
.form-note.err { color: #e08b74; }
@media (max-width: 520px) { .signup { grid-template-columns: 1fr; } .form-note { margin-left: 4px; } }
.foot { border-top: 1px solid var(--line); padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; align-items: center; }
.foot-row span { display: inline-flex; align-items: center; gap: 10px; }
.foot-row img { border-radius: 5px; }
.foot a { border-bottom: 1px solid var(--line2); }

/* ---------------------------------------------------------------- the film player */
.player { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: #070706;
  opacity: 0; transition: opacity .35s var(--ease); }
.player.open { opacity: 1; }
.player[hidden] { display: none; }
.player-bar { flex: none; display: flex; align-items: center; gap: 16px; padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter) 12px; border-bottom: 1px solid var(--line); }
.player-where { min-width: 0; display: grid; gap: 2px; }
.player-where .mono { color: var(--warm); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-where h3 { margin: 0; font: 400 clamp(17px, 2vw, 22px)/1.2 var(--sans); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-nav { margin-left: auto; display: flex; gap: 8px; flex: none; }
.pbtn { height: 40px; min-width: 40px; border-radius: 999px; border: 1px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 10px; transition: border-color .2s, background .2s; }
.pbtn:hover, .pbtn[aria-expanded="true"] { border-color: var(--fg); }
.pbtn:disabled { opacity: .3; cursor: default; }
.pbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pbtn.wide span { font: 400 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
#playerFull { display: none; }
.player-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.player-stage { position: relative; width: min(1200px, 100% - 2 * var(--gutter), (100svh - 180px) * 16 / 9); margin: 24px auto 0; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.player-stage video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-stage:fullscreen { width: 100vw; height: 100vh; border-radius: 0; display: grid; place-items: center; }
.player-stage:fullscreen video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
.player-body { width: min(1200px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 20px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.player-ask { margin: 0 0 6px; font: italic 400 clamp(22px, 2.4vw, 30px)/1.25 var(--serif); color: var(--warm-hi); }
.player-text { margin: 0; color: var(--body); max-width: 72ch; }
.player-how { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.player-how h4 { margin: 0 0 12px; font: 400 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.player-how ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.player-how ol button { width: 100%; display: grid; grid-template-columns: 52px 1fr; gap: 6px; text-align: left; padding: 8px 10px 8px 0; border-radius: 8px; color: var(--body); transition: color .2s, background .2s; }
.player-how ol button:hover { color: var(--fg); background: rgba(236, 231, 220, .04); }
.player-how ol button.on { color: var(--fg); }
.player-how ol button.on .t { color: var(--warm-hi); }
.player-how ol .t { font: 400 11px/1.9 var(--mono); color: var(--warm); letter-spacing: .06em; }
.player-how ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.player-how ul li { font: italic 400 20px/1.35 var(--serif); color: var(--fg); }
.player-hint { margin: 26px 0 0; color: var(--faint); font-size: 10px; }
@media (max-width: 760px) {
  .player-how { grid-template-columns: 1fr; gap: 22px; }
  .pbtn.wide span { display: none; }
  #playerFull { display: inline-flex; }
  .player-stage { width: 100%; margin-top: 0; border-radius: 0; }
  .player-hint { display: none; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .player-stage { width: min(100%, (100svh - 70px) * 16 / 9); margin-top: 8px; }
  #playerFull { display: inline-flex; }
}
/* up next */
.upnext { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px;
  background: rgba(5, 5, 4, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.upnext[hidden] { display: none; }
.upnext .mono { color: var(--warm); }
.upnext strong { font: 400 clamp(22px, 3vw, 36px)/1.15 var(--sans); letter-spacing: -0.02em; }
.upnext-act { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.upnext-ring { width: 40px; height: 40px; transform: rotate(-90deg); }
.upnext-ring circle { fill: none; stroke: var(--line2); stroke-width: 2; }
.upnext-ring #upNextArc { stroke: var(--warm); stroke-dasharray: 113.1; stroke-dashoffset: 113.1; }
.upnext.go #upNextArc { transition: stroke-dashoffset 6s linear; stroke-dashoffset: 0; }
/* all films */
.player-list { position: absolute; inset: auto 0 0 0; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 3; overflow-y: auto; background: rgba(11, 11, 10, .97);
  padding: 20px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.player-list[hidden] { display: none; }
.player-list section { max-width: 1200px; margin: 0 auto 22px; }
.player-list h5 { margin: 0 0 10px; font: italic 400 22px var(--serif); color: var(--fg); }
.player-list ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.player-list button { width: 100%; display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; text-align: left; padding: 6px; border-radius: 10px; border: 1px solid transparent; transition: border-color .2s, background .2s; }
.player-list button:hover { background: rgba(236, 231, 220, .04); }
.player-list button[aria-current="true"] { border-color: var(--warm); }
.player-list img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: #000; }
.player-list .n { display: block; font: 400 10px var(--mono); letter-spacing: .16em; color: var(--dim); }
.player-list b { font-weight: 500; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal, .say .w { opacity: 1; transform: none; filter: none; }
}
