/* Burrito Brain — one stylesheet. Tokens first. */
:root {
  --paper: #ffffff;
  --ink: #0e1a3c;
  --ink-soft: #4a5570;
  --rule: #d9dce6;
  --cloud: #f2f4f9;
  --gold: #ffc532;
  --gold-ink: #2b2000;
  --navy: #0e1a3c;     /* fixed in both schemes: the only surface gold text sits on */
  --on-navy: #ffc532;
  --laser: #1f5bff;
  /* The moment card (home hero, 2026-10-25): fixed in both schemes, it sits on the navy band. A colour per kind of moment,
     decoration only (shadows, medallion fill, tag border): text never sits on these, so any palette round passes AA. */
  --card: #f5c650; --cream: #fffaf0;
  --k-snl-history: #2f7bff; --k-coined-term: #ae32ff; --k-running-bit: #ff8a1f; --k-behind-the-scenes: #14b8a6;
  --k-lore-origin: #22c55e; --k-lore-callback: #ff4f8b; --k-trivia: #1fc8ff; --k-great-quote: #ff5a36;
  --rainbow: linear-gradient(90deg, #ff3b3b 0 16.6%, #ff9a1f 16.6% 33.3%, #ffd23f 33.3% 50%, #38c96a 50% 66.6%, #2b7bff 66.6% 83.3%, #8a4dff 83.3% 100%);
  --max: 1360px;   /* was 1120 (owner, 2026-10-19: use the width); text columns stay at 68ch, so only grids, the player and the universe grow */
  --font: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1230; --ink: #f5f6fa; --ink-soft: #aeb6cc; --rule: #26305a; --cloud: #141c3f; --laser: #8aa8ff; color-scheme: dark;
  }
}
:root[data-theme="dark"] { --paper: #0b1230; --ink: #f5f6fa; --ink-soft: #aeb6cc; --rule: #26305a; --cloud: #141c3f; --laser: #8aa8ff; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); overflow-x: clip;
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  font-variation-settings: "opsz" 14, "wdth" 100;
}
a { color: var(--laser); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, textarea:focus-visible { outline: 3px solid var(--laser); outline-offset: 2px; }
img, iframe { max-width: 100%; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .4em; font-weight: 800; letter-spacing: -0.01em; font-variation-settings: "opsz" 72, "wdth" 88; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); margin-top: 1.8em; }
h3 { font-size: 1.15rem; font-variation-settings: "opsz" 24, "wdth" 94; }
p { margin: 0 0 1em; max-width: 68ch; overflow-wrap: anywhere; }
small, .soft { color: var(--ink-soft); }
hr { border: 0; border-top: 2px solid var(--ink); margin: 2.5rem 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Masthead: the only place the rainbow appears. */
.mast { border-top: 6px solid; border-image: var(--rainbow) 1; }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.02em; font-variation-settings: "opsz" 48, "wdth" 85; display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand::after { content: "BETA"; background: #ff3a3b; padding: 0 0.25em; }
nav.primary { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
nav.primary a { color: var(--ink); font-weight: 600; }
nav.primary a[aria-current="page"] { border-bottom: 3px solid var(--ink); }
nav.primary .nav-search { display: none; }   /* the masthead box covers wide screens; phones get this link instead */
.search-form { display: flex; gap: 8px; max-width: 40rem; margin: 0 0 8px; }
.search-form input[type="search"] { flex: 1; min-width: 0; font-size: 1.05rem; padding: 10px 12px; }
.results h2 { font-size: 1.25rem; margin-top: 1.6em; }
.results mark { background: var(--gold); color: var(--gold-ink); padding: 0 2px; border-radius: 3px; }
.mast form { display: flex; gap: 6px; }
input[type="search"] { font: inherit; font-size: .95rem; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); min-width: 180px; }
button, .btn { font: inherit; font-weight: 700; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 10px; background: var(--ink); color: var(--paper); cursor: pointer; }
.btn.quiet { background: transparent; color: var(--ink); }

main { padding: 28px 0 60px; }
footer { border-top: 2px solid var(--ink); padding: 28px 0 48px; font-size: .95rem; color: var(--ink-soft); }
footer p { max-width: 80ch; }

/* The pop-up bubble: the one loud element. */
.bubble {
  position: relative; background: var(--gold); color: var(--gold-ink);
  border: 2px solid var(--ink); border-radius: 18px; padding: 16px 18px 14px;
  max-width: 62ch;
}
.bubble::after { content: ""; position: absolute; left: 28px; bottom: -11px; width: 18px; height: 18px; background: var(--gold); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.bubble.right::after { left: auto; right: 28px; }
.bubble h1, .bubble h2, .bubble h3 { color: var(--gold-ink); margin-bottom: .25em; }
.bubble p { color: var(--gold-ink); margin-bottom: .4em; }
.bubble .meta { font-size: .9rem; opacity: .85; }
.bubble.hero { padding: 24px 26px 20px; max-width: 72ch; }
.bubble.hero h1, .bubble.hero h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-top: 0; }

/* Badges: episode number + timestamp are data, so they get a consistent pill. */
.pill { display: inline-block; background: var(--navy); color: var(--on-navy); font-weight: 700; font-size: .82rem; padding: 2px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; vertical-align: middle; line-height: 1.4; }   /* own line-height: inside a heading the pill otherwise inherits 1.08 and renders 18 px tall */
.pill.soft { background: var(--cloud); color: var(--ink); border: 1px solid var(--rule); }
.bubble .fidelity { font-size: .78rem; margin: -4px 0 6px; font-style: italic; }   /* pipeline/extract/judge.py PARTIAL: one claim the transcript does not state */
.pill.fans { background: var(--gold); color: var(--gold-ink); }   /* fan pick: YouTube comments timestamped this moment (pipeline/ingest/comments.py) */
a.pill.fans:hover { background: var(--navy); color: var(--on-navy); }
.popups .bubble.fan { border-left: 4px solid var(--gold); }
/* "Watch the whole thing": a clip the show plays in pieces, offered whole from its official upload (pipeline/transcript/clips.py). */
.popups .bubble.clip { border-left: 4px solid var(--laser); }
.popups .bubble .kind-label { margin: 0 0 4px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--laser); }
.popups .bubble.live .kind-label { color: inherit; }
.clip-frame { aspect-ratio: 16 / 9; background: #000; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; margin: 10px 0; }
.clip-frame[hidden] { display: none; }
.clip-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.clip-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 0; }
.clip-watch { background: var(--laser); border-color: var(--laser); color: #fff; }
.clip-watch:hover { filter: brightness(1.1); }
a.pill:hover { text-decoration: none; background: var(--on-navy); color: var(--navy); }
.t { font-variant-numeric: tabular-nums; }

/* Lists of moments / mentions */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); align-items: start; }
.rows > li > * { min-width: 0; overflow-wrap: anywhere; }
.rows > li:first-child { border-top: 2px solid var(--ink); }
.rows .when { padding-top: 2px; }
.rows .what p { margin: 0 0 .3em; max-width: 70ch; }
.rows q { font-style: italic; color: var(--ink-soft); quotes: "“" "”"; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.heard ul, ul.heard { list-style: none; padding: 0; margin: 4px 0 12px; }
.heard li, ul.heard li { margin: 6px 0; line-height: 1.45; }
.heard button.pill { cursor: pointer; font: inherit; font-size: .82rem; }
.heard-label { margin: 12px 0 0; }
.rows .tags { margin-top: 4px; }
.tag { display: inline-block; font-size: .82rem; padding: 1px 8px; border: 1.5px solid var(--rule); border-radius: 999px; color: var(--ink); background: var(--cloud); }
a.tag:hover { border-color: var(--laser); text-decoration: none; }
.kind { font-size: .85rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .01em; }

/* Episode page layout: player stays put, pop-ups scroll. */
.ep-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (min-width: 1200px) { .ep-layout { gap: 56px; } .popups .bubble { max-width: 62ch; } }
.player { position: sticky; top: 12px; }
.frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--cloud); border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chapters { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chapters button { background: var(--cloud); color: var(--ink); border: 1.5px solid var(--rule); font-weight: 600; font-size: .85rem; padding: 4px 10px; border-radius: 999px; }
.chapters button[aria-current="true"] { background: var(--gold); border-color: var(--ink); color: var(--gold-ink); }
.popups { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.popups .bubble { background: var(--cloud); color: var(--ink); border-color: var(--rule); max-width: none; cursor: pointer; transition: background .15s, border-color .15s; }
@media (min-width: 1200px) { .popups .bubble { max-width: 64ch; } }
.popups .bubble::after { background: var(--cloud); border-color: var(--rule); }
.popups .bubble h3, .popups .bubble p { color: inherit; }
.popups .bubble.live { background: var(--gold); color: var(--gold-ink); border-color: var(--ink); }
.popups .bubble.live::after { background: var(--gold); border-color: var(--ink); }
.popups .bubble.past { opacity: .72; }
.popups .bubble .head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.popups .bubble .head h3 { margin: 0; }
.popups .bubble q { display: block; margin-top: 6px; font-style: italic; opacity: .85; }
.popups .bubble .dyk { margin: 10px 0 2px; padding: 8px 10px; border-left: 3px solid var(--gold); background: rgba(255,197,50,.12); border-radius: 0 8px 8px 0; font-size: .97rem; }
.popups .bubble.live .dyk { background: rgba(14,26,60,.08); border-left-color: var(--ink); }
.dyk-label { font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; margin-right: 4px; }
@media (max-width: 840px) {
  .ep-layout { grid-template-columns: minmax(0, 1fr); }
  .player { position: sticky; top: 0; background: var(--paper); padding-bottom: 8px; z-index: 2; min-width: 0; }
  /* Chapters are one scrolling row here, not a wrapping cloud: with a median 18 (max 39) chapters the pills stood taller than
     the screen and the sticky player hid every pop-up (owner's report, 2026-10-19). */
  .chapters { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; margin-top: 8px; padding-bottom: 6px; gap: 8px; }
  .chapters li { flex: 0 0 auto; scroll-snap-align: start; }
  .chapters button { white-space: nowrap; }
  .player > p { margin-bottom: 0; }
  .popups .bubble { scroll-margin-top: calc(var(--player-h, 0px) + 12px); }
  /* On a phone the player comes right after the title; the summary, term tags, shorts and guests (up to two screens of text
     on a long episode) follow the pop-ups instead of standing between the title and the video. */
  .ep-page { display: flex; flex-direction: column; }
  .ep-page > .ep-intro { order: 2; margin-top: 28px; }
  .ep-page > .ep-more { order: 3; }
  .mast .wrap { gap: 10px; }
  .rows > li { grid-template-columns: 4.4rem 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Index grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 24px; padding: 0; list-style: none; margin: 0; }
.grid li { border-top: 1px solid var(--rule); padding: 10px 0; }
.grid .name { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.grid .def { color: var(--ink-soft); font-size: .95rem; margin: 2px 0 4px; }
.alpha { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 10px 0 20px; font-weight: 700; }
.alpha a { color: var(--ink); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0 18px; }
.filters input[type="search"] { min-width: 260px; }
.count { color: var(--ink-soft); font-size: .95rem; }
.hidden { display: none !important; }

/* Episode list */
.eps { list-style: none; margin: 0; padding: 0; }
.eps li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.eps li > * { min-width: 0; overflow-wrap: anywhere; }
.eps .title { font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.eps .sum { color: var(--ink-soft); margin: 2px 0 0; max-width: 78ch; }

/* Lore entry */
.story { margin-top: 8px; }
.story h2 { font-size: 1.25rem; margin-top: 1.3em; }
.story p { max-width: 70ch; }
.story-note { font-size: .88rem; }
.origin { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 16px 0 8px; }
.ep-group { margin-top: 26px; }
.ep-group h3 { margin-bottom: 6px; }
.ep-group h3 a:not(.pill) { color: var(--ink); }   /* the label pill keeps on-navy text (Steve, 2026-10-18: navy on navy) */

/* Home */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.home-hero .lede { font-size: 1.2rem; max-width: 46ch; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; margin: 18px 0 0; padding: 0; list-style: none; }
.stats li { font-weight: 700; }
.stats li span { display: block; font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
@media (max-width: 840px) { .home-hero { grid-template-columns: 1fr; } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 840px) { .two { grid-template-columns: 1fr; } }
.notice { background: var(--cloud); border-left: 4px solid var(--laser); padding: 10px 14px; border-radius: 0 10px 10px 0; }
details summary { cursor: pointer; font-weight: 600; }
.changelog li { margin-bottom: .5em; }
.changelog details { border-top: 1px solid var(--rule); padding: .5em 0; }
.changelog summary { cursor: pointer; }
.changelog details ul { margin: .5em 0 0; }

/* Contact form */
.form { display: grid; gap: 14px; max-width: 60ch; }
.form label { display: grid; gap: 4px; font-weight: 600; }
.form input[type="text"], .form input[type="email"], .form textarea { font: inherit; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); width: 100%; }
.form textarea { min-height: 160px; resize: vertical; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Home. The hero is a full-bleed band in the week's backdrop colour: copy on the left, a random moment on the right, on
   every screen size. The universe (three.js) gets its own band further down (owner's ask, 2026-10-19). */
.universe-hero { margin: -28px calc(50% - 50vw) 28px; background: var(--t-backdrop, var(--navy)); color: var(--t-on-backdrop, #fff); padding: 44px 0 40px; }
.universe-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.universe-hero h1, .universe-hero .lede { color: inherit; }
.universe-hero .lede { font-size: 1.2rem; max-width: 46ch; }
.universe-hero .stats li span { color: inherit; opacity: .8; }
.universe-hero .btn { background: var(--t-on-backdrop, #fff); color: var(--t-backdrop, var(--navy)); border-color: var(--t-on-backdrop, #fff); }
.universe-hero .btn.quiet { background: transparent; color: inherit; border-color: currentColor; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero-bubble { min-width: 0; }

/* The moment card: artboard G of the 2026-10-24 design round (F adds a still in .mcard-frame). Hard offset shadows in the
   kind's colour; the quote in a cream bubble with a plain tail; the speaker's photo; play in place in the frame slot. */
.mcard { position: relative; --k: var(--k-great-quote); background: var(--card); color: var(--navy); border: 3px solid var(--navy); border-radius: 22px; box-shadow: 8px 8px 0 var(--k); margin-top: 26px; }
.mcard.kind-snl_history { --k: var(--k-snl-history); } .mcard.kind-coined_term { --k: var(--k-coined-term); } .mcard.kind-running_bit { --k: var(--k-running-bit); }
.mcard.kind-behind_the_scenes { --k: var(--k-behind-the-scenes); } .mcard.kind-lore_origin { --k: var(--k-lore-origin); } .mcard.kind-lore_callback { --k: var(--k-lore-callback); }
.mcard.kind-trivia { --k: var(--k-trivia); } .mcard.kind-great_quote { --k: var(--k-great-quote); }
.mcard-frame { aspect-ratio: 16 / 9; background: #000; border-bottom: 3px solid var(--navy); border-radius: 19px 19px 0 0; overflow: hidden; }
.mcard-frame[hidden] { display: none; }
.mcard-frame { position: relative; }
.mcard-frame iframe, .mcard-frame img { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; object-position: top; }
.mcard-frame picture { display: block; height: 100%; }
.mcard-still-credit { position: absolute; right: 10px; bottom: 8px; margin: 0; padding: 3px 9px; border-radius: 10px; background: rgba(14, 26, 60, .85); color: #f5f6fa; font-size: .72rem; }
.mcard-body { padding: 22px 24px 16px; display: grid; gap: 10px; }
.mcard .medallion { position: absolute; right: 16px; top: -26px; width: 76px; height: 76px; border-radius: 50%; background: var(--gold); border: 3px solid var(--navy); box-shadow: 4px 4px 0 var(--k); display: flex; align-items: center; justify-content: center; color: var(--navy); transform: rotate(5deg); }
.mcard .medallion[hidden] { display: none; }
.mcard .medallion svg { width: 46px; height: 46px; }
.mcard-meta { margin: 0; font-size: .9rem; font-weight: 500; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-right: 84px; }
.mcard-tag { padding: 1px 10px; border-radius: 999px; background: var(--cream); color: var(--navy); border: 2px solid var(--k); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.mcard h2 { margin: 0; font-size: clamp(1.5rem, 3.6vw, 2.3rem); color: var(--navy); padding-right: 56px; }
.mcard-text { margin: 0; font-size: 1.08rem; line-height: 1.45; color: var(--navy); }
.mcard-quote { position: relative; margin: 6px 0 14px -6px; background: var(--cream); border: 3px solid var(--navy); border-radius: 22px; padding: 14px 18px; }
.mcard-quote p { margin: 0; font-family: Lora, Georgia, "Times New Roman", serif; font-size: 1.15rem; line-height: 1.4; color: var(--navy); }
.mcard-quote p::before { content: "\201C"; } .mcard-quote p::after { content: "\201D"; }
.mcard-quote::after { content: ""; position: absolute; left: 34px; bottom: -13px; width: 20px; height: 20px; background: var(--cream); border-right: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(45deg); }
.mcard-who { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mcard-photo[hidden] { display: none; }
.mcard-photo img { display: block; width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--navy); box-shadow: 3px 3px 0 var(--k); object-fit: cover; }
.mcard-whom { flex: 1; min-width: 150px; }
.mcard-btns { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mcard-credit[hidden] { display: none; }
.mcard-name { margin: 0; font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.mcard-ep { margin: 0; font-size: .88rem; font-weight: 600; color: var(--navy); }
.mcard-ep a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.mcard-play { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 3px solid var(--navy); border-radius: 22px; background: var(--navy); color: var(--on-navy); box-shadow: 3px 3px 0 var(--k); font-weight: 700; }
.mcard-again { width: 44px; height: 44px; padding: 0; border: 3px solid var(--navy); border-radius: 50%; background: var(--cream); color: var(--navy); box-shadow: 3px 3px 0 var(--k); display: inline-flex; align-items: center; justify-content: center; }
.mcard-play:hover, .mcard-again:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--k); }
.mcard-credit { margin: 0; font-size: .72rem; color: var(--navy); opacity: .8; }
@media (max-width: 480px) {
  .mcard-body { padding: 18px 16px 14px; }
  .mcard .medallion { width: 64px; height: 64px; top: -22px; right: 12px; }
  .mcard .medallion svg { width: 38px; height: 38px; }
  .mcard-photo img { width: 60px; height: 60px; }
}
.latest .btn { margin-top: 4px; }
.universe-band { margin: 36px calc(50% - 50vw); background: var(--t-backdrop, var(--navy)); color: var(--t-on-backdrop, #fff); padding: 36px 0; display: none; }
.universe-band.has-scene, .universe-band.shown { display: block; }
.universe-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 36px; align-items: center; }
.universe-band h2 { margin-top: 0; color: inherit; }
.universe-band a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hero-scene { position: relative; min-width: 0; }
#universe { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 640px; touch-action: pan-y; display: none; overflow: hidden; contain: layout paint; }
.hero-scene.has-scene #universe { display: block; }
.hero-scene.has-scene .scene-fallback { display: none; }
#universe canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; }
#universe .lbl { position: absolute; left: 0; top: 0; font-weight: 700; font-size: .82rem; color: var(--t-on-backdrop, #fff); text-shadow: 0 1px 3px rgba(0,0,0,.7); pointer-events: none; white-space: nowrap; will-change: transform; }
#universe .lbl.hot { font-size: 1rem; color: var(--t-glow-text, #fff); }
.scene-caption { font-size: .9rem; opacity: .8; margin: 8px 0 0; display: none; }
.hero-scene.has-scene .scene-caption { display: block; }
@media (max-width: 840px) { .universe-hero .wrap, .universe-band .wrap { grid-template-columns: 1fr; } #universe { aspect-ratio: 4 / 3; } }

/* Touch and phones: targets a thumb can hit (WCAG 2.5.8 asks 24 px; these land at 32+). */
@media (pointer: coarse), (max-width: 840px) {
  .pill { padding: 7px 11px; }
  .tag { padding: 5px 11px; }
  .chapters button { padding: 8px 12px; }
  .alpha { gap: 4px 2px; }
  .alpha a { display: inline-block; padding: 6px 8px; }
  .mast nav a { display: inline-block; padding: 6px 0; }
  .eps .title, a.name { display: inline-block; padding: 4px 0; }   /* list titles: a line of text is a thin target */
  select { padding: 6px 8px; font: inherit; }
}
@media (max-width: 600px) {
  .eps li { grid-template-columns: 1fr; gap: 4px; }   /* the label pill above the title instead of a 5.5rem column squeezing the text */
  /* Compact masthead: brand and nav only. The search box (the AlmaNick index has its own filter) wrapped the header to
     450 px on a 375 px phone, taller than the episode player it sits above (measured 2026-10-19). */
  .mast .wrap { padding-top: 10px; padding-bottom: 8px; gap: 2px 10px; }
  .mast form { display: none; }
  nav.primary .nav-search { display: inline-block; }
  .brand { font-size: 1.2rem; }
  nav.primary { gap: 14px; font-size: .95rem; width: 100%; }
}

/* Episode video: a poster and a play button until the first tap; the YouTube player (3.7 MB on a phone) loads only then. */
.yt-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; display: block; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; }
.yt-facade .play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; border-radius: 14px; background: var(--gold); box-shadow: 0 2px 12px rgba(0,0,0,.4); }
.yt-facade .play::after { content: ""; position: absolute; left: 29px; top: 14px; border-style: solid; border-width: 11px 0 11px 20px; border-color: transparent transparent transparent var(--navy); }
.yt-facade:hover .play, .yt-facade:focus-visible .play { background: var(--on-navy); }
.popular-label { margin: 18px 0 6px; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.popular { margin-bottom: 4px; }
