/* Film page (/film): "Classdesk in 45 Sekunden", a short interactive film with sound.
   Its own stylesheet like landing.css (whose .chalk/.hl/.brand mean other things); fonts are the self-hosted ones. */

@font-face { font-family: "Gabarito"; src: url("../fonts/gabarito-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gabarito"; src: url("../fonts/gabarito-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Gabarito"; src: url("../fonts/gabarito-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Gabarito"; src: url("../fonts/gabarito-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Gabarito"; src: url("../fonts/gabarito-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka-latin-ext.woff2") format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Layout: a 16:9 chalkboard "film" (fixed 1600×900 stage, scaled) with player controls, then audience links.
   Page colors follow the viewer's theme; the stage keeps the Classdesk board look in both. */
:root {
  --bg: #f6f2e9; --surface: #ffffff; --surface-2: #ece6d8; --ink: #0e1f19; --muted: #47574f; --line: #d9d1c0;
  --accent: #123f31; --accent-text: #123f31; --sun: #ffcb2e; --sun-ink: #0e1f19; --coral: #e8553b; --focus: #1f6fd1;
  /* stage-only, same in both themes */
  --board: #123f31; --board-2: #0c2f24; --chalk: #f6f2e9; --chalk-dim: #b9cbc2; --screen: #efe9dc; --card: #ffffff;
  --card-ink: #0e1f19; --card-muted: #5a6a62; --sky: #7cc4f5; --mint: #8fd6b4;
  --display: "Gabarito", system-ui, sans-serif; --logo-edge: transparent; --kid: "Fredoka", "Gabarito", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0a1612; --surface: #11221c; --surface-2: #172c25; --ink: #eef3ef; --muted: #a9bab2; --line: #24392f;
  --accent: #174e3d; --accent-text: #8fd6b4; --focus: #7db4ff; --logo-edge: #f6f2e9; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0a1612; --surface: #11221c; --surface-2: #172c25; --ink: #eef3ef; --muted: #a9bab2; --line: #24392f;
  --accent: #174e3d; --accent-text: #8fd6b4; --focus: #7db4ff; --logo-edge: #f6f2e9; color-scheme: dark; }

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--sun); color: var(--sun-ink); padding: 12px 18px; border-radius: 12px; font-weight: 700; }
.skip:focus { left: 16px; }

/* Header and footer, in the landing page's shape */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap, .foot .wrap { max-width: 1120px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.top .wrap { min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.45rem; letter-spacing: -.03em; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-dot { color: var(--coral); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-login { color: var(--ink); font-weight: 600; text-decoration: none; padding: 12px 10px; border-radius: 999px; }
.top-login:hover { text-decoration: underline; }
.btn-top { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--sun); color: var(--sun-ink); font-weight: 600; text-decoration: none; }
.btn-top:hover { transform: translateY(-1px); }
.foot { border-top: 1px solid var(--line); padding-block: 32px 48px; }
.foot .wrap { flex-wrap: wrap; gap: 16px 40px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 12px 0; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot small { color: var(--muted); font-size: .95rem; }
@media (max-width: 480px) { .top-login { display: none; } }
body { background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.55 var(--display); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.page { max-width: 1120px; margin-inline: auto; padding-block: 40px 56px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid; gap: 28px; }
.intro { display: grid; gap: 8px; }
.eyebrow { margin: 0; font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eyebrow b { color: var(--coral); }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.05; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.lede { margin: 0; color: var(--muted); max-width: 60ch; font-size: 1.15rem; }

/* ---------- Player ---------- */
.player { display: grid; gap: 12px; }
.frame { position: relative; width: 100%; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 22px; overflow: hidden;
  background: var(--board); box-shadow: 0 30px 60px -30px rgba(10, 30, 22, .55); }
/* fullscreen takes the whole player, so the timeline and buttons stay in reach */
.player:fullscreen { background: var(--bg); grid-template-rows: minmax(0, 1fr); grid-auto-rows: auto; align-content: stretch;
  padding-block: 16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.player:fullscreen .frame { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 14px; box-shadow: none; }
.stage { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; overflow: hidden;
  color: var(--chalk); font-family: var(--display);
  background:
    radial-gradient(60% 50% at 18% 22%, rgba(246, 242, 233, .07), transparent 70%),
    radial-gradient(50% 40% at 82% 78%, rgba(246, 242, 233, .05), transparent 70%),
    radial-gradient(rgba(246, 242, 233, .05) 1.4px, transparent 1.6px) 0 0 / 28px 28px,
    linear-gradient(160deg, var(--board), var(--board-2)); }
.scene { position: absolute; inset: 0; visibility: hidden; }
.abs { position: absolute; margin: 0; }
.chalk { color: var(--chalk); text-shadow: 0 0 1px rgba(246, 242, 233, .55), 0 0 14px rgba(246, 242, 233, .08); padding-block: .12em; white-space: nowrap; }
.hl { position: relative; z-index: 0; }
.hl::after { content: ""; position: absolute; left: -.05em; right: -.05em; bottom: .1em; height: .26em; background: var(--sun); z-index: -1;
  border-radius: .08em; transform: skew(-8deg) scaleX(var(--u, 0)); transform-origin: left; }
.scene-title { left: 160px; top: 34px; font-size: 52px; font-weight: 600; }

/* Scene 1 */
.s1-clock { left: 160px; top: 150px; font-size: 150px; font-weight: 500; color: var(--chalk-dim); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.s1-clock .sec { font-size: 70px; color: rgba(185, 203, 194, .6); }
.s1-l1 { left: 160px; top: 390px; font-size: 92px; font-weight: 400; }
.s1-l2 { left: 160px; top: 510px; font-size: 132px; font-weight: 600; letter-spacing: -.01em; }

/* Scene 2: browser tabs */
.tab { position: absolute; left: 0; top: 0; width: 380px; height: 250px; border-radius: 16px; background: var(--card); color: var(--card-ink);
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .6); overflow: hidden; display: grid; grid-template-rows: 44px 1fr; }
.tab-bar { display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #e4ddcd; }
.tab-bar i { width: 11px; height: 11px; border-radius: 50%; background: #c9bfa9; }
.tab-bar span { margin-left: 8px; flex: 1; min-width: 0; padding: 4px 12px; border-radius: 999px; background: #fff; font-size: 17px; color: var(--card-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-body { display: grid; place-items: center; align-content: center; gap: 6px; padding: 14px; }
.tab-body .big { font-size: 84px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.tab-body small { font-size: 18px; color: var(--card-muted); }
.tab-lines { width: 100%; display: grid; gap: 12px; }
.tab-lines b { display: block; height: 22px; border-radius: 6px; background: #ddd5c4; }
.tab-lines b:first-child { height: 34px; width: 70%; background: #cfc5ae; }
.tab-grid { width: 100%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tab-grid b { height: 30px; border-radius: 5px; background: #e6dfd0; }
.tab-grid b:nth-child(3n) { background: #f3c7bd; } .tab-grid b:nth-child(7n) { background: #cfe5f6; }
.tab-bars { display: flex; align-items: end; gap: 8px; height: 120px; }
.tab-bars b { width: 22px; border-radius: 5px; background: var(--coral); }
.s2-cap { left: 110px; top: 780px; font-size: 56px; font-weight: 600; }
.s2-cap .q { color: var(--sun); }

/* Board mock (classdesk screen) */
.screen { position: absolute; border-radius: 26px; background: var(--screen); color: var(--card-ink); overflow: hidden;
  box-shadow: 0 0 0 6px rgba(246, 242, 233, .14), 0 40px 70px -30px rgba(0, 0, 0, .7); }
.screen-head { position: absolute; left: 0; right: 0; top: 0; height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; background: var(--board-2); color: var(--chalk); font-size: 26px; font-weight: 600; }
.screen-head .live { display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.screen-head .live i { width: 12px; height: 12px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(143, 214, 180, .6); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 12px rgba(143, 214, 180, 0); } 100% { box-shadow: 0 0 0 0 rgba(143, 214, 180, 0); } }
.w { position: absolute; border-radius: 22px; background: var(--card); box-shadow: 0 10px 24px -14px rgba(14, 31, 25, .45);
  display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; transform-origin: center; }
.w-label { position: absolute; left: 22px; top: 16px; font-size: 20px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--card-muted); }
.w-text { font: 500 74px/1 var(--kid); color: var(--card-ink); }
.ring { width: 220px; height: 220px; position: relative; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring .t { font: 600 62px/1 var(--kid); font-variant-numeric: tabular-nums; }
.ampel { display: flex; gap: 26px; align-items: center; margin-top: 30px; }
.ampel-box { width: 112px; padding: 14px; border-radius: 26px; background: #1c2b25; display: grid; gap: 14px; }
.ampel-box i { width: 84px; height: 84px; border-radius: 50%; display: block; }
.vol { width: 22px; height: 280px; border-radius: 11px; background: #e6dfd0; position: relative; overflow: hidden; }
.vol b { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 11px; background: var(--mint); }
.pick { border: 0; cursor: pointer; font: inherit; color: inherit; }
.pick[aria-disabled="true"] { cursor: default; }
.slot { position: relative; width: 380px; height: 170px; border-radius: 20px; background: var(--screen); display: grid; place-items: center; overflow: hidden; }
.slot .burst { position: absolute; inset: 0; background: var(--sun); transform-origin: center; border-radius: 20px; }
.slot .name { position: relative; font: 600 104px/1 var(--kid); color: var(--card-ink); }
.pick-hint { font-size: 24px; font-weight: 500; color: var(--card-muted); }
.work svg { width: 130px; height: 100px; }
.work .lbl { font: 500 52px/1 var(--kid); }
.note { position: absolute; left: 30px; bottom: 30px; padding: 10px 18px; border-radius: 14px; background: var(--board-2); color: var(--chalk); font-size: 24px; font-weight: 500; white-space: nowrap; }

/* Scene 4: chat */
.chat { position: absolute; left: 160px; top: 120px; width: 580px; height: 680px; border-radius: 26px; background: var(--card); color: var(--card-ink);
  overflow: hidden; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7); }
.chat-head { height: 76px; display: flex; align-items: center; gap: 14px; padding: 0 24px; border-bottom: 2px solid #ece6d8; font-size: 26px; font-weight: 600; }
.chat-head small { margin-left: auto; font-size: 18px; font-weight: 600; color: var(--card-muted); display: inline-flex; align-items: center; gap: 8px; }
.chat-head small i { width: 10px; height: 10px; border-radius: 50%; background: #2f9e6c; }
.msg { position: absolute; max-width: 470px; padding: 16px 22px; border-radius: 22px; font-size: 28px; line-height: 1.3; }
.msg.me { right: 24px; top: 104px; background: var(--board); color: var(--chalk); border-bottom-right-radius: 6px; }
.msg.ai { left: 24px; top: 330px; background: #f1ece1; border-bottom-left-radius: 6px; }
.tool { position: absolute; left: 24px; top: 250px; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 12px;
  border: 2px dashed #d6cdb9; font-size: 21px; font-weight: 600; color: var(--card-muted); }
.tool .st { width: 26px; height: 26px; display: grid; place-items: center; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #d6cdb9; border-top-color: var(--board); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chips { position: absolute; left: 24px; top: 520px; width: 532px; display: flex; gap: 12px; }
.chip { flex: 1; min-height: 72px; padding: 10px 16px; border-radius: 18px; border: 2px solid var(--board); background: #fff; color: var(--board);
  font: 600 22px/1.2 var(--display); cursor: pointer; text-align: left; }
.chip[aria-disabled="true"] { cursor: default; }
.chip:hover:not([aria-disabled="true"]) { background: var(--sun); }
.chat-input { position: absolute; left: 24px; right: 24px; bottom: 24px; height: 56px; border-radius: 16px; background: #f1ece1;
  display: flex; align-items: center; padding: 0 20px; font-size: 22px; color: var(--card-muted); }
.groups { position: absolute; left: 24px; top: 170px; right: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grp { border-radius: 20px; background: var(--card); overflow: hidden; box-shadow: 0 10px 24px -14px rgba(14, 31, 25, .45); transform-origin: center; }
.grp h4 { margin: 0; padding: 10px 18px; font: 600 24px/1.2 var(--display); }
.grp p { margin: 0; padding: 12px 18px 16px; font: 500 28px/1.35 var(--kid); }
.s4-note { left: 160px; top: 818px; font-size: 32px; font-weight: 400; color: var(--chalk-dim); }

/* Onboarding scene */
.shot { position: absolute; border-radius: 10px; background: #fff; color: #2a2f2c; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .6); overflow: hidden; transform-origin: center; }
.shot-h { height: 40px; display: flex; align-items: center; padding: 0 14px; background: #e9e6df; font-size: 17px; font-weight: 500; color: #55605a; }
.tt { display: grid; grid-template-columns: 56px repeat(5, 1fr); grid-auto-rows: 40px; font-size: 16px; }
.tt span { display: grid; place-items: center; border-right: 1px solid #e3ded3; border-bottom: 1px solid #e3ded3; }
.cl { display: grid; grid-template-columns: 44px 128px 110px 98px; grid-auto-rows: 34px; padding: 0 10px; font-size: 16px; }
.cl span { display: flex; align-items: center; padding: 0 8px; border-bottom: 1px solid #e3ded3; white-space: nowrap; overflow: hidden; }
.tt .h, .cl .h { font-weight: 600; color: #6b756f; font-size: 14px; }
.cover { position: absolute; background: #1c2b25; border-radius: 4px; transform-origin: top; transform: scaleY(0); }
.cover-tag { position: absolute; left: 62px; top: 176px; transform: rotate(-4deg); padding: 6px 14px; border-radius: 8px; background: var(--coral); color: #fff; font-size: 20px; font-weight: 600; }
.att { display: flex; gap: 8px; margin-bottom: 10px; }
.att b { display: block; width: 84px; height: 56px; border-radius: 8px;
  background: repeating-linear-gradient(0deg, rgba(246, 242, 233, .45) 0 2px, transparent 2px 12px), rgba(246, 242, 233, .16); }
.ob-sec { position: absolute; left: 24px; font-size: 18px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--card-muted); }
.ob-tt { position: absolute; left: 24px; right: 24px; top: 118px; display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 38px; gap: 5px; }
.ob-tt span { display: grid; place-items: center; border-radius: 8px; font: 500 16px/1 var(--kid); color: var(--card-ink); }
.ob-kids { position: absolute; left: 24px; right: 24px; top: 382px; display: flex; flex-wrap: wrap; gap: 8px; }
.ob-kids span { padding: 7px 12px; border-radius: 999px; background: var(--card); font: 500 18px/1 var(--kid); box-shadow: 0 4px 10px -6px rgba(14, 31, 25, .4); transform-origin: center; }
.ob-note { left: 120px; top: 802px; display: flex; align-items: center; gap: 14px; font-size: 28px; font-weight: 400; }
.ob-note i { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--coral); }

/* Scene 5 */
.s5-title { left: 160px; top: 110px; font-size: 76px; font-weight: 600; letter-spacing: -.01em; }
.s5-row { left: 160px; display: flex; align-items: center; gap: 30px; font-size: 54px; font-weight: 400; }
.s5-row svg { width: 72px; height: 72px; flex: none; }
.s5-row path { fill: none; stroke: var(--sun); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.s5-foot { left: 160px; top: 740px; font-size: 40px; font-weight: 400; color: var(--chalk-dim); display: flex; align-items: center; gap: 16px; }
.s5-foot i { width: 18px; height: 18px; border-radius: 50%; background: var(--coral); }

/* Scene 6 */
.s6-logo { left: 690px; top: 120px; width: 220px; height: 220px; }
.s6-word { left: 0; right: 0; top: 340px; text-align: center; font-size: 150px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.s6-word b { color: var(--coral); }
.s6-tag { left: 0; right: 0; top: 540px; text-align: center; font-size: 46px; font-weight: 400; color: var(--chalk-dim); }
.s6-cta { left: 0; right: 0; top: 660px; display: flex; justify-content: center; gap: 24px; }
.btn-st { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 92px; padding: 0 46px; border-radius: 999px;
  font: 600 36px/1 var(--display); text-decoration: none; cursor: pointer; border: 3px solid transparent; }
.btn-st.sun { background: var(--sun); color: var(--sun-ink); box-shadow: 0 16px 40px -12px rgba(255, 190, 0, .8); }
.btn-st.ghost { background: transparent; color: var(--chalk); border-color: rgba(246, 242, 233, .6); }
.btn-st:hover { transform: translateY(-2px); }
.btn-st svg { width: 36px; height: 36px; }

/* Poster */
.poster { position: absolute; inset: 0; z-index: 20; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; color: var(--chalk); font-family: var(--display);
  background:
    radial-gradient(rgba(246, 242, 233, .05) 1.4px, transparent 1.6px) 0 0 / 28px 28px,
    linear-gradient(160deg, var(--board), var(--board-2)); }
.poster .brand { position: absolute; left: 110px; top: 80px; display: flex; align-items: center; gap: 18px; color: var(--chalk); font-size: 48px; font-weight: 600; letter-spacing: -.02em; }
.poster .brand svg { width: 72px; height: 72px; }
.poster .brand b { color: var(--coral); }
.poster .p1 { position: absolute; left: 110px; top: 300px; font-size: 120px; font-weight: 400; line-height: 1; }
.poster .p2 { position: absolute; left: 110px; top: 440px; font-size: 168px; font-weight: 600; letter-spacing: -.015em; line-height: 1; }
.poster .p2 .hl { --u: 1; }
.poster .meta { position: absolute; left: 110px; top: 690px; font-size: 34px; font-weight: 400; color: var(--chalk-dim); }
.poster .play { position: absolute; right: 150px; top: 330px; width: 220px; height: 220px; border-radius: 50%; background: var(--sun); display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(255, 203, 46, .5), 0 24px 50px -16px rgba(255, 190, 0, .7); animation: beckon 2.2s infinite; }
.poster .play svg { width: 92px; height: 92px; margin-left: 14px; }
.poster:hover .play { transform: scale(1.04); }
@keyframes beckon { 70% { box-shadow: 0 0 0 40px rgba(255, 203, 46, 0), 0 24px 50px -16px rgba(255, 190, 0, .7); } 100% { box-shadow: 0 0 0 0 rgba(255, 203, 46, 0), 0 24px 50px -16px rgba(255, 190, 0, .7); } }

/* Play/pause feedback on the stage */
.frame.started { cursor: pointer; }
.ovl { position: absolute; inset: 0; z-index: 15; display: grid; place-items: center; pointer-events: none; }
.ovl-btn { width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center; background: rgba(12, 47, 36, .6); color: var(--chalk);
  box-shadow: 0 0 0 3px rgba(246, 242, 233, .35); opacity: 0; transform: scale(.8); transition: opacity .2s, transform .25s; }
.ovl-btn svg { width: 96px; height: 96px; margin-left: 10px; }
.ovl.paused .ovl-btn { opacity: 1; transform: none; }
.ovl.flash .ovl-btn { animation: flash .6s ease-out forwards; }
@keyframes flash { 0% { opacity: .95; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.35); } }

/* Interaction hotspot */
.hot { position: absolute; z-index: 10; pointer-events: none; display: none; }
.hot.on { display: block; }
.hot .rg { position: absolute; inset: -14px; border-radius: 30px; border: 6px solid var(--sun); animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse { 50% { inset: -24px; opacity: .45; } }
.hot .lb { position: absolute; left: 50%; bottom: calc(100% + 34px); transform: translateX(-50%); padding: 16px 26px; border-radius: 18px;
  background: var(--sun); color: var(--sun-ink); font-size: 32px; font-weight: 600; white-space: nowrap; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); }
.hot .lb::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -14px; border: 14px solid transparent; border-top-color: var(--sun); }
.hot.below .lb { bottom: auto; top: calc(100% + 34px); }
.hot.below .lb::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--sun); }

/* Controls */
.controls { display: flex; align-items: center; gap: 14px; }
.ctl { flex: none; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; }
.ctl:hover { background: var(--surface-2); }
.ctl svg { width: 22px; height: 22px; }
.ctl.main { position: relative; width: 60px; height: 60px; background: var(--sun); color: var(--sun-ink); border-color: transparent;
  box-shadow: 0 8px 20px -10px rgba(214, 150, 0, .9); transition: transform .15s; }
.ctl.main:hover { background: var(--sun); transform: scale(1.06); }
.ctl.main:active { transform: scale(.94); }
.ctl.main .pi { position: absolute; width: 26px; height: 26px; opacity: 0; transform: scale(.5) rotate(-45deg);
  transition: opacity .18s, transform .28s cubic-bezier(.3, 1.4, .5, 1); }
.ctl.main .pi.on { opacity: 1; transform: none; }
.vol-ctl { display: flex; align-items: center; gap: 2px; padding-right: 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.vol-ctl .ctl { border: 0; background: none; }
.vol-ctl .ctl:hover { background: var(--surface-2); }
#fsBtn path { transition: opacity .15s; }
#fsBtn .fs-out, #fsBtn[data-fs="1"] .fs-in { opacity: 0; }
#fsBtn[data-fs="1"] .fs-out { opacity: 1; }
/* speaker: 0 = crossed out, 1 = one wave (below about half), 2 = two waves */
#muteBtn path { transition: opacity .15s; }
#muteBtn .wx, #muteBtn[data-level="0"] .w1, #muteBtn[data-level="0"] .w2, #muteBtn[data-level="1"] .w2 { opacity: 0; }
#muteBtn[data-level="0"] .wx { opacity: 1; }
#volume { -webkit-appearance: none; appearance: none; width: 96px; height: 44px; margin: 0; background: transparent; cursor: pointer; }
#volume::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent-text) var(--v, 80%), var(--line) var(--v, 80%)); }
#volume::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent-text) var(--v, 80%), var(--line) var(--v, 80%)); }
#volume::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: var(--accent-text); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
#volume::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--accent-text); border: 3px solid var(--surface); }
#volume:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.time { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 92px; }
.scrub { position: relative; height: 36px; display: flex; align-items: center; }
.track { width: 100%; display: flex; height: 6px; transition: height .15s; }
.scrub:hover .track, .scrub.drag .track { height: 10px; }
.seg { position: relative; height: 100%; background: var(--line); overflow: hidden; }
.seg:first-child { border-radius: 6px 0 0 6px; }
.seg:last-child { border-radius: 0 6px 6px 0; }
.seg:not(:first-child)::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--bg); z-index: 3; }
.seg i { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--accent-text) 30%, transparent); }
.seg b { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent-text); z-index: 1; }
.seg.gated::after { content: ""; position: absolute; z-index: 2; top: 50%; margin-top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); left: var(--g); }
.scrub input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.scrub:has(input:focus-visible) .track { outline: 3px solid var(--focus); outline-offset: 6px; border-radius: 6px; }
.head { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--accent-text);
  box-shadow: 0 0 0 3px var(--bg); transform: scale(0); transition: transform .15s; pointer-events: none; z-index: 4; }
.scrub:hover .head, .scrub.drag .head, .scrub:has(input:focus-visible) .head { transform: scale(1); }
.tip { position: absolute; bottom: calc(100% + 4px); left: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 1px;
  padding: 6px 10px; border-radius: 10px; background: var(--ink); color: var(--bg); font: 500 .85rem/1.2 var(--display); font-variant-numeric: tabular-nums;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 5; }
.tip b { font-weight: 600; font-size: .78rem; opacity: .8; }
.scrub.hovering .tip { opacity: 1; }
.gatebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-radius: 16px; background: var(--sun); color: var(--sun-ink); font-weight: 700; }
.gatebar span { flex: 1; min-width: 0; }
.gatebar button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--sun-ink); background: transparent; color: var(--sun-ink); font: 700 1rem var(--display); cursor: pointer; }
.grow { flex: 1; }
.timeline { display: grid; gap: 0; }
.chapters { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.chapters li { min-width: 0; }
.chapters button { width: 100%; min-height: 44px; display: grid; align-content: start; gap: 1px; text-align: left; padding: 2px 2px 6px; border: 0; border-radius: 8px;
  background: none; color: var(--muted); font: 500 .92rem/1.2 var(--display); cursor: pointer; }
.chapters button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapters button small { font-size: .8rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.chapters button[aria-current="true"], .chapters button:hover { color: var(--ink); }
.chapters button[aria-current="true"] span { text-decoration: underline 2px var(--sun); text-underline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Audience links ---------- */
.fit { display: grid; gap: 18px; padding-top: 12px; }
.fit h2 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
.fit > p { margin: 0; color: var(--muted); max-width: 60ch; }
.fit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.fit-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 20px 22px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .15s, border-color .15s; min-width: 0; }
.fit-card:hover { transform: translateY(-2px); border-color: var(--accent-text); }
.fit-card .who { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fit-card h3 { margin: 0; font-size: 1.3rem; line-height: 1.2; font-weight: 600; }
.fit-card p { margin: 0; color: var(--muted); }
.fit-card .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-text); }
.fit-card .go svg { width: 18px; height: 18px; transition: transform .15s; }
.fit-card:hover .go svg { transform: translateX(3px); }

@media (max-width: 560px) {
  .time { min-width: 0; font-size: .9rem; }
  .ctl.fs { display: none; }
  #volume { width: 64px; }
  .vol-ctl { padding-right: 10px; }
  .chapters button { font-size: .78rem; }
  .chapters button small { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hot .rg, .poster .play, .screen-head .live i, .spin { animation: none; }
  .fit-card, .fit-card .go svg { transition: none; }
}
