/* IFP Lyd design tokens. Dannebrog red #C8102E (white on it 5.9:1; on white 5.9:1). On the near-black stage red text needs the lighter tint --red-tint (#FF6B7D, >=6.3:1). */
:root {
  --bg: #fff; --bg2: #f4f4f4; --surface: #fff; --ink: #0b0b0b; --ink2: #5a5a5a; --line: #e2e2e2;
  --red: #C8102E; --red-ink: #C8102E; --red-hover: #A30D25; --on-red: #fff; --red-tint: #FF6B7D;
  --stage: #0b0b0b; --stage2: #1a1a1a; --stage-ink: #fff; --stage-ink2: #b5b5b5; --stage-line: #2c2c2c;
  --focus: #0b57d0; --link: #A80D27;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --r: 10px; --pill: 999px; --gut: 16px; --max: 1240px; --hdr: 64px;
  --shadow: 0 2px 10px rgba(0,0,0,.08);
}
:root[data-theme="dark"] {
  --bg: #0b0b0b; --bg2: #151515; --surface: #1a1a1a; --ink: #f5f5f5; --ink2: #aaa; --line: #2e2e2e;
  --red-ink: #FF6B7D; --red-hover: #A30D25; --stage: #000; --stage2: #161616; --focus: #8ab4f8; --link: #FF8A98;
  --shadow: none; color-scheme: dark;
}
@media (min-width: 720px) { :root { --gut: 28px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
body.has-mini { padding-bottom: 84px; }
img { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--pill); z-index: 100; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--ink2); } .small { font-size: .875rem; }
.dark .muted, .muted-d { color: var(--stage-ink2); }
[hidden] { display: none !important; }
.dark { color: var(--stage-ink); }
main { outline: none; min-height: 60vh; }
kbd { background: var(--bg2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; font: 600 .8rem var(--font); }

/* ---- type ---- */
.h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.06; font-weight: 800; letter-spacing: -.025em; margin: .3em 0 .35em; }
.h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .6em; }
.h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .4em; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.45; max-width: 46rem; color: var(--stage-ink2); margin: 0 0 1.4rem; }
.lede b { color: var(--stage-ink); }
.eyebrow { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--red-ink); }
.dark .eyebrow { color: var(--red-tint); }
.kicker { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); margin-top: .65rem; }
.kicker-d { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--stage-ink2); }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.hbar { display: flex; align-items: center; gap: 10px; height: var(--hdr); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand b { font-weight: 800; color: var(--red-ink); }
.brand-mark { width: 32px; height: 32px; flex: none; display: block; } .brand-mark svg { width: 100%; height: 100%; display: block; }
.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav a { padding: 8px 12px; border-radius: var(--pill); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--bg2); } .nav a.on { color: var(--red-ink); }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--bg2); border-radius: var(--pill); padding: 0 14px; height: 42px; color: var(--ink2); width: min(280px, 34vw); border: 2px solid transparent; }
.search:focus-within { border-color: var(--focus); background: var(--bg); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; height: 100%; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink); flex: none; }
.icon-btn:hover { background: var(--bg2); } .icon-btn.sm { width: 38px; height: 38px; border: 1px solid var(--line); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }
@media (max-width: 1200px) {
  .menu-btn { display: grid; } .brand-name { font-size: .95rem; }
  .nav { display: none; position: absolute; top: var(--hdr); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; margin: 0; padding: 8px var(--gut) 14px; }
  .nav.open { display: flex; } .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .search { width: auto; flex: 1; margin-left: 4px; min-width: 0; }
}
@media (max-width: 440px) { .site-header .brand-name { display: none; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: var(--pill); border: 2px solid transparent; font-weight: 700; text-decoration: none; background: var(--ink); color: var(--bg); line-height: 1; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.red { background: var(--red); color: #fff; } .btn.red:hover { background: #A30D25; }
.btn.red:hover { color: #fff; }
.btn.dark { background: var(--ink); color: var(--bg); } .btn.dark:hover { opacity: .85; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); } .btn.ghost:hover { background: var(--bg2); }
.dark .btn.ghost, .btn.ghost-d { background: transparent; color: #fff; border-color: #fff; } .btn.ghost-d:hover, .dark .btn.ghost:hover { background: rgba(255,255,255,.14); }
.btn.lg { min-height: 52px; padding: 0 28px; font-size: 1.05rem; } .btn.sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.link { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; font-weight: 600; }
.pill-info { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--pill); background: rgba(255,255,255,.12); color: #fff; font-size: .88rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font-weight: 600; text-decoration: none; font-size: .92rem; }
.chip:hover { border-color: var(--ink); } .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips.big { gap: 10px; margin-top: 8px; }
.seg { display: inline-flex; background: var(--bg2); border-radius: var(--pill); padding: 4px; }
.seg-b { border: 0; background: transparent; padding: 0 18px; min-height: 40px; border-radius: var(--pill); font-weight: 700; color: var(--ink2); }
.seg-b[aria-selected="true"] { background: var(--ink); color: var(--bg); }

/* ---- layout ---- */
.sec { padding: 44px 0 8px; } .sec.tight { padding: 28px 0 4px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; } .sec-head .h2 { margin: 0; }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: none; } .more svg { width: 16px; height: 16px; }
.grid { display: grid; gap: 28px 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid.g3, .grid.g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.g3 { grid-template-columns: repeat(3, 1fr); } .grid.g4 { grid-template-columns: repeat(4, 1fr); } }
.two { display: grid; gap: 32px; } @media (min-width: 800px) { .two { grid-template-columns: 1.4fr 1fr; } }
.hero, .page-head { background: var(--stage); color: var(--stage-ink); }
.hero { padding: 40px 0 52px; } .page-head { padding: 36px 0 40px; }
.hero-grid { display: grid; gap: 32px; align-items: center; } @media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } .hero { padding: 64px 0 72px; } }
.feature { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; color: #fff; text-decoration: none; }
.feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; } .feature:hover img { transform: scale(1.02); }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.85)); }
.feat-play { position: absolute; z-index: 2; left: 50%; top: 42%; transform: translate(-50%,-50%); width: 76px; height: 76px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.5)); }
.feat-play svg { width: 100%; height: 100%; }
.feat-cap { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 2px; font-size: 1.15rem; }
.crumb { font-size: .85rem; color: var(--stage-ink2); } .crumb a { color: inherit; }

/* ---- cards ---- */
.card { display: block; text-decoration: none; color: var(--ink); }
.thumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: #222; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .thumb img { transform: scale(1.04); }
.ctitle { display: block; font-weight: 700; font-size: 1.05rem; line-height: 1.28; margin-top: .2rem; letter-spacing: -.01em; }
.card:hover .ctitle { text-decoration: underline; text-underline-offset: 3px; }
.badge { position: absolute; right: 8px; bottom: 10px; background: rgba(0,0,0,.82); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; line-height: 1.5; }
.badge.done { left: 8px; right: auto; top: 8px; bottom: auto; width: 26px; height: 26px; padding: 0; border-radius: 50%; background: #1f8a4c; display: grid; place-items: center; } .badge.done svg { width: 15px; height: 15px; }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.35); } .bar i { display: block; height: 100%; background: var(--red); }
.playhint { position: absolute; left: 10px; bottom: 12px; width: 40px; height: 40px; z-index: 3; opacity: 0; transform: scale(.85); transition: .2s; }
.playhint svg { width: 100%; height: 100%; } .card:hover .playhint, .card:focus-visible .playhint { opacity: 1; transform: none; }
.bignum { position: absolute; left: 14px; top: 2px; font-size: 5.5rem; font-weight: 800; line-height: 1; color: rgba(255,255,255,.88); letter-spacing: -.04em; }
.chcard .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,.25), transparent 60%); }
.chcard .bignum, .chcard .badge, .chcard .bar { z-index: 2; }
.chtabs { display: flex; gap: 6px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: none; } .chtabs a { flex: none; padding: 8px 16px; border-radius: var(--pill); text-decoration: none; color: var(--ink); font-weight: 700; border: 1.5px solid var(--line); } .chtabs a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.outline details { border-bottom: 1px solid var(--line); } .outline summary { display: flex; justify-content: space-between; gap: 12px; padding: 16px 4px; cursor: pointer; list-style-position: inside; }
.outline ol { margin: 0 0 14px; padding-left: 28px; } .outline li { display: flex; justify-content: space-between; padding: 6px 0; }

/* ---- timeline ---- */
.tl-tools { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0 10px; } .zoom { display: flex; gap: 6px; }
.tl-scroll { overflow-x: auto; padding: 8px 0 16px; scroll-snap-type: x proximity; border-radius: var(--r); background: var(--bg2); scrollbar-width: thin; }
.tl-track { --w: 176px; display: flex; position: relative; width: max-content; padding: 0 20px; }
.tl-track::before { content: ""; position: absolute; left: 0; right: 0; top: 52px; height: 4px; background: var(--line); }
:root[data-theme="dark"] .tl-track::before { background: #3a3a3a; }
.era { position: relative; width: var(--w); flex: none; scroll-snap-align: center; background: none; border: 0; padding: 12px 8px 8px; text-align: center; border-radius: var(--r); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.era-date { font-size: .8rem; font-weight: 800; letter-spacing: .02em; color: var(--ink2); height: 20px; }
.era-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 4px solid #8a8a8a; position: relative; z-index: 1; transition: .2s; }
.era-label { font-weight: 700; font-size: .92rem; line-height: 1.25; min-height: 2.5em; padding: 0 4px; }
.era:hover .era-dot { border-color: var(--ink); }
.era[aria-selected="true"] .era-dot { background: var(--red); border-color: var(--red); transform: scale(1.35); box-shadow: 0 0 0 6px rgba(200,16,46,.25); }
.era[aria-selected="true"] .era-date, .era[aria-selected="true"] .era-label { color: var(--red-ink); }
.tl-card { display: grid; gap: 0; margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.tl-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; } .tl-body { padding: 20px; display: grid; gap: 4px; align-content: start; } .tl-body p { margin: 0 0 12px; }
@media (min-width: 760px) { .tl-card { grid-template-columns: 340px 1fr; } .tl-card img { height: 100%; aspect-ratio: auto; min-height: 200px; } .tl-body { padding: 26px 30px; } }
#eraCards { margin-top: 12px; } .tl .h2 { margin-top: 40px; }

/* ---- episode stage ---- */
.stage { padding: 0; background: var(--stage); color: var(--stage-ink); }
.stage-in { display: grid; gap: 14px; padding-top: 14px; padding-bottom: 20px; grid-template-columns: 1fr; }
.stage-top { grid-column: 1 / -1; }
.imgpanel { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #151515; border: 1px solid var(--stage-line); }
.imgpanel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; } .imgpanel img.show { opacity: 1; }
.img-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--stage-ink2); font-size: .9rem; opacity: 0; transition: opacity .4s; }
.capline { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 10px 2px 0; font-size: .88rem; min-height: 3em; }
.cap { color: var(--stage-ink); font-weight: 600; } .credit { color: var(--stage-ink2); } .pageref { color: var(--stage-ink2); white-space: nowrap; font-weight: 600; }
.stage-media.collapsed .imgpanel, .stage-media.collapsed .capline { display: none; }
.tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.tab { border: 0; background: transparent; color: var(--stage-ink2); font-weight: 700; min-height: 40px; padding: 0 16px; border-radius: var(--pill); }
.tab[aria-selected="true"], .tab[aria-pressed="true"] { background: #fff; color: #000; } .tab:hover { color: #fff; } .tab[aria-selected="true"]:hover { color: #000; }
.imgtoggle { margin-left: auto; display: none; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--pill); font-weight: 700; border: 1.5px solid #666; background: transparent; color: #fff; } .imgtoggle svg { width: 18px; height: 18px; } .imgtoggle[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
.tr-wrap { position: relative; }
.transcript { height: 360px; overflow-y: auto; padding: 12px 6px 40vh 10px; scroll-behavior: auto; border-radius: 12px; background: var(--stage2); mask-image: linear-gradient(transparent, #000 8%, #000 90%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 90%, transparent); }
.cue { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 10px; color: var(--stage-ink); font-size: 1.28rem; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; color: #c9c9c9; transition: color .25s, background .25s; }
.cue:hover { color: #fff; background: rgba(255,255,255,.06); } .cue.past { color: #a8a8a8; } .cue.active { color: #fff; background: rgba(255,255,255,.09); box-shadow: inset 4px 0 0 var(--red-tint); }
.cue .da { display: block; margin-top: 6px; font-size: .95rem; font-weight: 500; color: #b4b4b4; font-style: italic; } .cue.active .da { color: #e8e8e8; }
.cue .tag { display: flex; width: max-content; align-items: center; gap: 5px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: #ffb4ad; border: 1px solid #7a3b36; border-radius: 6px; padding: 1px 8px; margin-bottom: 6px; }
.cue .tag.ok { color: #8fe0ad; border-color: #2f6b47; } .cue .tag svg { width: 12px; height: 12px; }
.cue.question { border-left: 4px solid #7a3b36; margin-left: 2px; } .cue.option { margin-left: 22px; width: calc(100% - 22px); font-weight: 600; font-size: 1.12rem; }
.cue.answer { border-left: 4px solid #2f6b47; margin-left: 2px; } .cue.quizhead { font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; color: #ffb4ad; }
.cue.question.active { box-shadow: inset 4px 0 0 var(--red-tint); } .cue.answer.active { box-shadow: inset 4px 0 0 #3fbf74; }
.jump { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; background: var(--red); color: #fff; border: 0; min-height: 40px; padding: 0 18px; border-radius: var(--pill); font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.gallery { height: 360px; overflow-y: auto; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); align-content: start; padding: 10px; background: var(--stage2); border-radius: 12px; }
.gitem { position: relative; border: 2px solid transparent; background: #111; border-radius: 10px; overflow: hidden; padding: 0; text-align: left; color: #fff; } .gitem.on { border-color: var(--red-tint); }
.gitem img { aspect-ratio: 16/9; object-fit: cover; width: 100%; } .gt { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.8); border-radius: 6px; padding: 0 7px; font-size: .75rem; font-weight: 700; }
.gc { display: block; padding: 8px 10px 0; font-size: .85rem; font-weight: 600; } .gp { display: block; padding: 0 10px 8px; font-size: .75rem; color: var(--stage-ink2); }
.blocked { padding: 24px; display: grid; gap: 10px; justify-items: start; } .blocked p { color: var(--stage-ink2); margin: 0; }
.controls { grid-column: 1 / -1; background: var(--stage2); border-radius: 14px; padding: 14px 16px 12px; display: grid; gap: 8px; }
.now { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; } .ptitle { margin: 2px 0 0; font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.status { display: inline-flex; gap: 5px; align-items: center; background: #1f8a4c; color: #fff; font-weight: 700; font-size: .8rem; padding: 3px 10px; border-radius: var(--pill); white-space: nowrap; } .status svg { width: 14px; height: 14px; } .status[hidden] { display: none; }
.seek { display: flex; align-items: center; gap: 10px; } .seek .t { font-variant-numeric: tabular-nums; font-size: .82rem; color: var(--stage-ink2); min-width: 3.1em; } .seek .t:last-child { text-align: right; }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 28px; background: transparent; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--red-tint) var(--p, 0%), #4a4a4a var(--p, 0%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: #4a4a4a; } input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--red-tint); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; margin-top: -7px; border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; }
.btnrow { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; } .btnrow.sub { gap: 8px; }
.ctl { width: 52px; height: 52px; border-radius: 50%; border: 0; background: transparent; color: #fff; display: grid; place-items: center; } .ctl svg { width: 30px; height: 30px; } .ctl:hover { background: rgba(255,255,255,.12); }
.ctl.big { width: 68px; height: 68px; background: none; color: #fff; padding: 0; } .ctl.big svg { width: 100%; height: 100%; } .ctl.big:hover { background: none; filter: brightness(1.12); }
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border-radius: var(--pill); border: 1.5px solid #555; background: transparent; color: #fff; font-weight: 700; font-size: .9rem; } .pill svg { width: 18px; height: 18px; }
.pill:hover:not(:disabled) { border-color: #fff; } .pill.on { background: #fff; color: #000; border-color: #fff; } .pill:disabled { opacity: .35; cursor: default; }
.pill.sm { min-height: 40px; font-size: .84rem; padding: 0 14px; } .pill.sel { padding: 0; position: relative; } .pill.sel select { background: transparent; color: #fff; border: 0; font: inherit; height: 100%; padding: 0 14px; min-height: 37px; border-radius: var(--pill); } .pill.sel option { color: #000; }
.notice { margin: 0; min-height: 1.4em; color: var(--stage-ink2); text-align: center; }
.plist { list-style: none; margin: 0; padding: 0; } .plist li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); } .plist a { font-weight: 700; text-decoration: none; color: var(--ink); } .plist a[aria-current] { color: var(--red-ink); }
@media (min-width: 900px) {
  .stage-in { grid-template-columns: 1.15fr 1fr; gap: 20px 32px; padding-top: 20px; padding-bottom: 32px; }
  .transcript, .gallery { height: min(520px, calc(100vh - 360px)); min-height: 340px; }
  .stage-media { align-self: start; position: sticky; top: calc(var(--hdr) + 14px); }
  .cue { font-size: 1.4rem; } .cue.option { font-size: 1.2rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899px) {
  .imgtoggle { display: inline-flex; }
  .on-episode .stage-in { height: calc(100dvh - var(--hdr)); grid-template-rows: auto minmax(0, 1fr) auto; padding-top: 6px; padding-bottom: 8px; gap: 6px; }
  .on-episode .stage-top { display: none; }
  .imgpanel { aspect-ratio: auto; height: clamp(120px, 20dvh, 190px); }
  .stage-media { min-width: 0; } .capline { padding-top: 6px; font-size: .8rem; min-height: 0; } .capline .credit { display: none; }
  .stage-text { display: flex; flex-direction: column; min-height: 0; } .tr-wrap { flex: 1; min-height: 0; display: block; }
  .tr-wrap .transcript, .tr-wrap .gallery { position: absolute; inset: 0; height: auto; } .transcript { padding-bottom: 90px; } .transcript, .gallery { height: 100%; min-height: 120px; max-height: none; }
  .stage-in { position: relative; } .cue { font-size: 1.15rem; padding: 8px 10px; }
  .controls { padding: 8px 12px 10px; gap: 4px; } .ptitle { font-size: 1rem; } .btnrow { gap: 4px; flex-wrap: nowrap; } .ctl { width: 52px; height: 52px; } .ctl.big { width: 64px; height: 64px; } .pill { padding: 0 12px; }
    .btnrow.sub { flex-wrap: wrap; justify-content: center; gap: 6px; } .btnrow.sub .pill { padding: 0 11px; } .btnrow.sub .x { display: none; }
  .on-episode .stage-in.withchip { grid-template-rows: auto auto minmax(0, 1fr) auto; } .on-episode .stage-top.has-chip { display: flex; } .stage-media.noimg .imgpanel, .stage-media.noimg .capline { display: none; }
}

/* ---- mini player ---- */
.mini { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #111; color: #fff; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 20px rgba(0,0,0,.3); }
.mini[hidden] { display: none; } .mini-bar { height: 3px; background: #444; } .mini-bar i { display: block; height: 100%; background: var(--red-tint); width: 0; }
.mini-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.mini-info { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: #fff; } .mini-info img { width: 64px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; flex: none; }
.mini-info span { display: grid; min-width: 0; } .mini-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.mini-ctl { display: flex; align-items: center; gap: 2px; flex: none; } .mini .ctl { width: 48px; height: 48px; } .mini .ctl.big { width: 52px; height: 52px; } .mini-mark { width: 44px; height: 44px; flex: none; display: block !important; } .mini-mark svg { width: 100%; height: 100%; }


/* ---- misc pages ---- */
.callout { padding: 14px 18px; border-radius: var(--r); background: var(--bg2); border-left: 5px solid var(--ink2); margin: 0 0 22px; } .callout.ok { border-color: #1f8a4c; } .callout.warn { border-color: var(--red); }
.dl-ch { margin: 0 0 34px; } .dl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.dl-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); } @media (max-width: 640px) { .dl-row { grid-template-columns: 1fr auto; } .dl-row > .muted { grid-column: 2; grid-row: 1; } .dl-row .btn { grid-column: 1 / -1; justify-content: center; } }
.dl-files summary { cursor: pointer; padding: 12px 0; font-weight: 600; } .dl-files ul { list-style: none; margin: 0; padding: 0 0 8px; } .dl-files li { display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px; padding: 6px 0; font-size: .9rem; border-bottom: 1px dashed var(--line); word-break: break-all; }
.meter { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 10px 0 6px; } .meter i { display: block; height: 100%; background: var(--red); } .meter.big { height: 12px; max-width: 520px; background: #333; }
.stat { display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); } .stat:hover { border-color: var(--ink); }
.results { list-style: none; margin: 0 0 26px; padding: 0; } .results li { border-bottom: 1px solid var(--line); } .results a { display: flex; gap: 12px; align-items: center; padding: 14px 4px; text-decoration: none; color: var(--ink); flex-wrap: wrap; }
.tagp { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--bg2); padding: 3px 9px; border-radius: var(--pill); } .prow { display: flex; gap: 8px; align-items: center; } .prow a { flex: 1; display: grid; gap: 0; } .prow .pill { color: var(--ink); border-color: var(--line); }
mark { background: #ffe58a; color: #000; padding: 0 2px; }
.prose { max-width: 52rem; } .prose p, .prose li { color: var(--ink); } .prose ul { padding-left: 1.2rem; } .prose li { margin: .4rem 0; }
.tablewrap { overflow-x: auto; } table { border-collapse: collapse; width: 100%; font-size: .9rem; margin: 0 0 20px; } th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; } th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); }
code { background: var(--bg2); padding: 1px 6px; border-radius: 5px; font-size: .88em; }
.site-footer { margin-top: 72px; background: var(--bg2); padding: 36px 0 44px; border-top: 1px solid var(--line); position: relative; }
.foot-grid { display: grid; gap: 20px; margin-bottom: 14px; } @media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr auto; } } .foot-grid nav { display: flex; gap: 8px 22px; flex-wrap: wrap; align-content: start; } .foot-grid nav a { color: var(--ink); font-weight: 600; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---- consent + toast ---- */
.consent { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: center; pointer-events: none; padding-bottom: env(safe-area-inset-bottom); } .consent[hidden] { display: none; }
.consent-in { pointer-events: auto; max-width: 720px; width: 100%; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: 0 10px 40px rgba(0,0,0,.28); max-height: 86vh; overflow: auto; }
.consent h2 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; } .consent p { margin: 0 0 12px; font-size: .92rem; color: var(--ink2); } .crow { display: flex; gap: 8px; flex-wrap: wrap; } .crow .btn { flex: 1 1 130px; justify-content: center; }
.cm { display: grid; gap: 8px; margin-bottom: 14px; } .sw { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; } .sw input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--red); } .sw span { display: grid; } .sw small { color: var(--ink2); }
.toast { position: fixed; z-index: 95; left: 50%; top: calc(var(--hdr) + 12px); transform: translate(-50%, -14px); background: #111; color: #fff; padding: 12px 20px; border-radius: var(--pill); font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: .3s; max-width: 92vw; text-align: center; } .toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } .imgpanel img { transition: none; } }

/* =================== IFP Lyd additions =================== */
.mt { margin-top: 40px; } .mt-s { margin-top: 14px; }
.h4 { font-size: 1rem; font-weight: 700; margin: 18px 0 4px; }
.muted-n { opacity: .85; }

/* tiles = thumbnails without photo: dark panel with the offset cross motif */
.tile { --tile: hsl(350, 22%, 13%); background: linear-gradient(135deg, var(--tile), #0b0b0b); }
.tile.ch2 { --tile: hsl(215, 24%, 14%); } .tile.ch3 { --tile: hsl(150, 20%, 12%); } .tile.ch4 { --tile: hsl(35, 24%, 13%); } .tile.ch5 { --tile: hsl(280, 20%, 14%); } .tile.ch6 { --tile: hsl(185, 22%, 12%); }
.tile-cross { position: absolute; inset: 0; opacity: .75;
  background: linear-gradient(#7d0c20, #7d0c20) 33% 0 / 7% 100% no-repeat, linear-gradient(#7d0c20, #7d0c20) 0 50% / 100% 13% no-repeat; }
.tile.has-img .tile-cross { display: none; }
.imgpanel.tile .tile-cross { opacity: .55; }
.img-empty { flex-direction: column; gap: 8px; } .img-empty { display: flex; align-items: center; justify-content: center; }
.ie-mark { width: 44px; height: 44px; display: block; opacity: .9; } .ie-mark svg { width: 100%; height: 100%; }
.feature .thumb { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.bigdate { position: absolute; left: 14px; bottom: 10px; z-index: 2; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1; } .bigdate small { font-size: 1rem; font-weight: 700; color: #ddd; }
.erac .thumb { aspect-ratio: 16/8; }

/* edition + update notes */
.based { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; font-size: .92rem; line-height: 1.45; } .based svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.dark .based { color: var(--stage-ink2); } .dark .based i { color: var(--stage-ink); }
.hero-ed { margin-top: 22px; } .based-d { margin: 0 0 14px; }
.edbox { margin: 30px 0 8px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg2); } .edbox .based { margin-bottom: 8px; }
.upd { margin: 0 0 14px; color: var(--ink2); max-width: 46rem; } .dark .upd { color: var(--stage-ink2); } .upd b { color: var(--ink); } .dark .upd b { color: #fff; }
.ep-sub { margin: -4px 0 14px; } .eplink { color: var(--ink); text-decoration: none; } .eplink:hover { text-decoration: underline; }
.topic { margin: 0 0 28px; } .chip-k { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); margin-right: 8px; } .chip[aria-pressed="true"] .chip-k { color: inherit; }
.chips.big .chip { min-height: 44px; }
.quizpromo { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 26px; border-radius: 16px; background: var(--stage); color: var(--stage-ink); } .quizpromo .h2 { margin: 6px 0; } .quizpromo .muted { color: var(--stage-ink2); max-width: 40rem; margin: 0; } .quizpromo .eyebrow { color: var(--red-tint); }

/* timeline additions */
.era-en { font-size: .78rem; color: var(--ink2); line-height: 1.2; padding: 0 4px; }
.tl-card { display: grid; grid-template-columns: 1fr; } .tl-date { background: var(--stage); color: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 18px; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; position: relative; background-image: linear-gradient(#7d0c20, #7d0c20), linear-gradient(#7d0c20, #7d0c20); background-size: 7% 100%, 100% 13%; background-position: 33% 0, 0 50%; background-repeat: no-repeat; } .tl-date span { position: relative; text-shadow: 0 0 8px #000, 0 0 3px #000; } .tl-date .dash { opacity: .7; }
@media (min-width: 760px) { .tl-card { grid-template-columns: 300px 1fr; } .tl-date { flex-direction: column; font-size: 2.4rem; gap: 0; } }

/* stage extras */
.stage-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.chip-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px 0 12px; border-radius: var(--pill); background: var(--red); color: #fff; font-weight: 800; text-decoration: none; border: 2px solid #fff; } .chip-back svg { width: 18px; height: 18px; } .chip-back:hover { background: var(--red-hover); }
.stage-top .pill { white-space: nowrap; }
.tr-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; color: var(--stage-ink2); } .tr-tools[hidden] { display: none; }
.tr-note { display: flex; gap: 6px; align-items: center; } .tr-note svg { width: 14px; height: 14px; flex: none; }
.swbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 8px; border-radius: var(--pill); border: 1.5px solid #666; background: transparent; color: #fff; font-weight: 700; font-size: .82rem; white-space: nowrap; }
.swbtn .knob { width: 28px; height: 16px; border-radius: 8px; background: #555; position: relative; transition: background .2s; } .swbtn .knob::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .2s; }
.swbtn[aria-pressed="true"] { border-color: #fff; } .swbtn[aria-pressed="true"] .knob { background: var(--red); } .swbtn[aria-pressed="true"] .knob::after { transform: translateX(12px); }
.tr-load { padding: 16px 12px; margin: 0; }
.cue.masked { cursor: default; color: #c9c9c9; border-left: 4px dashed #777; margin-left: 2px; display: block; } .cue.masked:hover { background: none; }
.cue.masked.active { color: #fff; background: rgba(255,255,255,.09); box-shadow: none; border-left-color: var(--red-tint); }
.cue .tag.lock { color: #ddd; border-color: #666; } .cue .tag svg { width: 12px; height: 12px; }
.mtxt { display: block; font-size: 1rem !important; font-weight: 600; color: var(--stage-ink2); margin: 2px 0 8px; }
.revbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--pill); border: 1.5px solid #888; background: transparent; color: #fff; font-weight: 700; font-size: .88rem; } .revbtn svg { width: 16px; height: 16px; } .revbtn:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.cue .da .dl { font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-right: 6px; color: var(--stage-ink2); }
.cue.qnum { font-size: .95rem; padding-bottom: 0; } .cue.qnum .tag { margin: 0; }
.gc, .gp { overflow-wrap: anywhere; }
.credlist { padding-left: 1.1rem; margin: 0; }
.pill.on { background: #fff; color: #000; border-color: #fff; } .pill.light { color: var(--ink); border-color: var(--line); background: var(--bg); } .pill.light[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.notice { text-wrap: balance; }

/* downloads, search, about */
.dl-row .btn.is-off { opacity: .55; border-style: dashed; cursor: default; }
.bigsearch { display: flex; gap: 10px; margin: 0 0 24px; flex-wrap: wrap; } .bigsearch input { flex: 1 1 240px; min-height: 52px; border-radius: var(--pill); border: 2px solid var(--line); background: var(--bg); color: var(--ink); padding: 0 20px; font: inherit; font-size: 1.05rem; } .bigsearch input:focus { border-color: var(--focus); outline: none; }
.hit { flex: 1 1 320px; } .results .tagp { flex: none; font-variant-numeric: tabular-nums; }
.cite { padding: 14px 18px; background: var(--bg2); border-radius: var(--r); border-left: 5px solid var(--red); user-select: all; }
.prose h2 { margin-top: 1.6em; } .prose .callout { margin-top: 14px; }

/* quiz hub */
.qsummary { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; padding: 14px 18px; background: var(--bg2); border-radius: var(--r); margin-bottom: 8px; }
.resume { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.qch { border: 1px solid var(--line); border-radius: 14px; margin: 14px 0; overflow: hidden; background: var(--surface); } .qch summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px 18px; cursor: pointer; min-height: 56px; } .qch[open] summary { border-bottom: 1px solid var(--line); background: var(--bg2); }
.qch > *:not(summary) { margin-left: 18px; margin-right: 18px; } .qch > :last-child { margin-bottom: 14px; }
.qmix { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qlist { list-style: none; margin: 0 18px; padding: 0; } .qrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); } .qrow:last-child { border-bottom: 0; }

/* quiz run */
.quizpage { background: var(--bg); min-height: calc(100dvh - var(--hdr)); padding-bottom: 120px; }
.qw { max-width: 760px; padding-top: 18px; }
.qtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.qback { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: none; } .qback svg { width: 18px; height: 18px; } .qback:hover { text-decoration: underline; }
.qscope { margin: 4px 0 10px; }
.qprog { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; } .qprog .meter { margin: 0; }
.qtext { font-size: clamp(1.4rem, 4.6vw, 2rem); line-height: 1.22; font-weight: 800; letter-spacing: -.02em; margin: 22px 0 10px; outline: none; }
.qda { margin: 0 0 14px; padding: 10px 14px; background: var(--bg2); border-left: 4px solid var(--red); border-radius: 8px; font-style: italic; } .qda .dl, .qdat { font-style: normal; }
.qda .dl { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin-right: 6px; }
.qopts { display: grid; gap: 12px; margin: 16px 0 6px; }
.qopt { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; min-height: 68px; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.12rem; font-weight: 600; line-height: 1.3; transition: border-color .15s, background .15s; }
.qopt:hover:not([aria-disabled]) { border-color: var(--ink); } .qopt[aria-disabled] { cursor: default; }
.ql { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--bg2); border: 2px solid var(--line); }
.qt { flex: 1; display: grid; gap: 4px; } .qdat { font-size: .92rem; font-weight: 500; color: var(--ink2); font-style: italic; }
.qmark { flex: none; width: 30px; height: 30px; } .qmark svg { width: 100%; height: 100%; }
.qopt.right { border-color: #1b7a42; background: #e8f6ee; } .qopt.right .ql { background: #1b7a42; color: #fff; border-color: #1b7a42; } .qopt.right .qmark { color: #1b7a42; }
.qopt.wrong { border-color: var(--red); background: #fdecef; } .qopt.wrong .ql { background: var(--red); color: #fff; border-color: var(--red); } .qopt.wrong .qmark { color: var(--red); }
.qopt.dim { opacity: .6; }
:root[data-theme="dark"] .qopt.right { background: #10281a; border-color: #3fbf74; } :root[data-theme="dark"] .qopt.right .ql { background: #2b9e5c; border-color: #2b9e5c; } :root[data-theme="dark"] .qopt.right .qmark { color: #6fdc9b; }
:root[data-theme="dark"] .qopt.wrong { background: #2b0f15; border-color: var(--red-tint); } :root[data-theme="dark"] .qopt.wrong .qmark { color: var(--red-tint); }
.qhint { margin: 6px 0 14px; } @media (hover: none) { .qhint { display: none; } }
.fb { padding: 16px 18px; border-radius: 14px; margin: 8px 0 0; border: 1px solid var(--line); background: var(--bg2); } .fb.ok { border-color: #1b7a42; } .fb.bad { border-color: var(--red); }
.fb p { margin: 0 0 8px; } .fb-h { display: flex; align-items: flex-start; gap: 8px; font-size: 1.05rem; } .fb-h svg { width: 22px; height: 22px; flex: none; } .fb.ok .fb-h svg { color: #1b7a42; } .fb.bad .fb-h svg { color: var(--red); }
:root[data-theme="dark"] .fb.ok .fb-h svg { color: #6fdc9b; } :root[data-theme="dark"] .fb.bad .fb-h svg { color: var(--red-tint); }
.fb-da { font-style: italic; color: var(--ink2); } .fb-ap { color: var(--ink2); font-size: .92rem; }
.learnq { margin: 10px 0 12px; padding: 8px 14px; border-left: 4px solid var(--ink2); font-size: .95rem; } .learnq .small { display: block; margin-bottom: 2px; }
.qnav { position: sticky; bottom: 0; z-index: 20; margin: 18px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 22%); display: flex; justify-content: center; }
.qnav .btn { width: 100%; justify-content: center; max-width: 760px; } .qpick { padding: 14px 0; }
.has-mini .qnav { bottom: 84px; }
.qsum { text-align: center; padding: 20px 0; } .qscore { font-size: 2.2rem; font-weight: 800; margin: 6px 0 12px; outline: none; } .qscore .big { font-size: clamp(3.5rem, 16vw, 6rem); letter-spacing: -.04em; color: var(--red-ink); }
.meter.big2 { height: 14px; max-width: 420px; margin: 0 auto 14px; } .lede2 { font-size: 1.1rem; margin: 0 0 20px; } .qsum .row { justify-content: center; }
.missed { list-style: none; padding: 0; margin: 0; } .missed li { padding: 14px 0; border-bottom: 1px solid var(--line); } .missed p { margin: 0 0 6px; }
.ql-load { padding: 40px 0; }

@media (max-width: 380px) { .qopt { font-size: 1.02rem; padding: 10px 12px; gap: 10px; } .ql { width: 34px; height: 34px; } }
@media (max-width: 899px) { .tr-note { display: none; } .tr-tools { justify-content: flex-end; margin-bottom: 4px; } }
.wrap.sec { padding-left: var(--gut); padding-right: var(--gut); }
.crumb { display: block; margin-bottom: 10px; }
@media (min-width: 900px) { .transcript, .gallery { height: clamp(300px, calc(100dvh - 500px), 560px); min-height: 300px; } }
@media (max-width: 899px) {
  .on-episode .ptitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100vw - 150px); }
  .imgpanel { height: clamp(96px, 15dvh, 140px); }
  .btnrow.sub #prev span, .btnrow.sub #next span { display: none; } .btnrow.sub #prev, .btnrow.sub #next { padding: 0; width: 44px; justify-content: center; }
  .on-episode .controls .kicker-d { display: block; }
}
.stage-in { grid-template-columns: minmax(0, 1fr); } @media (min-width: 900px) { .stage-in { grid-template-columns: 1.15fr 1fr; } }
.stage-media, .stage-text, .controls { min-width: 0; }
@media (max-width: 400px) { #rep span { display: none; } #rep { padding: 0; width: 44px; justify-content: center; } .btnrow .ctl { width: 46px; height: 46px; } .btnrow .ctl.big { width: 60px; height: 60px; } .btnrow { gap: 2px; } }
.gnote { grid-column: 1 / -1; margin: 4px 2px 0; color: var(--stage-ink2); }
@media (max-width: 380px) { .tab { padding: 0 11px; } .imgtoggle { padding: 0 11px; } .imgtoggle span { display: none; } }
.legal { padding-left: 1.3rem; } .legal li { margin: .7rem 0; }
@media (max-width: 899px) { .btnrow.sub { flex-wrap: nowrap; } .btnrow.sub .pill.sel { flex: 1 1 auto; min-width: 0; } .btnrow.sub .pill.sel select { width: 100%; } .btnrow.sub #quiz { flex: none; } }

.pill.sel { overflow: hidden; } @media (max-width: 899px) { .btnrow.sub .pill.sel { flex: 0 1 108px; } .btnrow.sub .pill.sel select { min-width: 0; width: 100%; padding: 0 8px; } }
/* round 2 */
.snap { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.anim-btn { position: absolute; z-index: 3; right: 8px; top: 8px; min-height: 32px; padding: 0 12px; border-radius: var(--pill); border: 1.5px solid #fff; background: rgba(0,0,0,.72); color: #fff; font-weight: 700; font-size: .8rem; }
.anim-btn:hover { background: #000; } .anim-btn[hidden] { display: none; }
.ai-note { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--line); border-left: 5px solid var(--red); background: var(--bg2); } .ai-note .ai, .ai-note p { margin: 0; }
.ai-line { margin: 0; text-align: center; color: var(--stage-ink2); } .ai-line a { color: #fff; }
.field { display: grid; gap: 4px; margin: 0 0 14px; } .field label { font-weight: 700; }
.field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--ink2); border-radius: 12px; padding: 10px 12px; min-height: 44px; } .field textarea { resize: vertical; }
.hint { margin: 0; font-size: .875rem; color: var(--ink2); }
.rf-set { border: 0; padding: 0; margin: 0; min-width: 0; } .rf-set:disabled { opacity: .6; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fmsg { min-height: 1.5em; margin: 10px 0 0; font-weight: 600; } .fmsg.bad { color: var(--red-ink); } .fmsg.good { color: #1b7a42; } :root[data-theme="dark"] .fmsg.good { color: #6fdc9b; }
.ts-box { margin: 6px 0 14px; min-height: 0; }
.rep { gap: 40px; } .rep-tools { display: flex; gap: 14px; flex-wrap: wrap; } .rep-tools .field { margin-bottom: 10px; flex: 1 1 160px; }
.reports { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; } .rcard article { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); }
.rmeta { margin: 0 0 8px; color: var(--ink2); font-size: .9rem; } .rlab { margin: 8px 0 0; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); } .rtxt { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.vote { display: flex; gap: 10px; margin-top: 12px; } .vbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 64px; padding: 0 16px; justify-content: center; border-radius: var(--pill); border: 2px solid var(--ink2); background: var(--bg); color: var(--ink); font-weight: 700; } .vbtn svg { width: 18px; height: 18px; } .vbtn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); } .vbtn:hover { border-color: var(--ink); }
.modal-back { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; } .modal { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 22px; max-width: 420px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.feat dt { font-weight: 800; margin-top: 16px; } .feat dd { margin: 4px 0 0; }
.howcard { display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg2); margin-bottom: 16px; } .howcard .h2 { margin: 0 0 6px; } .howcard p { margin: 0; max-width: 42rem; color: var(--ink2); }
.footai { margin: 10px 0; padding: 10px 14px; border-left: 5px solid var(--red); background: var(--surface); border-radius: 8px; font-size: .9rem; }

/* round 2b: flag controls, dark-area links, tablist */
.dark a:not([class]) { color: #ff9aa7; }
.tabs { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; } .tabs .tablist { display: flex; gap: 6px; }
.cuerow { position: relative; }
.flagbtn { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #9a9a9a; background: #0b0b0b; color: #fff; display: grid; place-items: center; padding: 0; opacity: 0; transition: opacity .15s; }
.flagbtn svg { width: 18px; height: 18px; }
.cuerow:hover .flagbtn, .cuerow:focus-within .flagbtn, .flagbtn:focus-visible, .cuerow.flagged .flagbtn { opacity: 1; }
@media (hover: none) { .flagbtn { opacity: .75; } }
.cuerow.flagged .flagbtn { border-color: var(--red-tint); color: var(--red-tint); }
.fmark { position: absolute; right: 50px; top: 14px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--red-tint); } .fmark[hidden] { display: none; }
.cuerow .cue { padding-right: 56px; }
.flag-pill svg { width: 16px; height: 16px; }
@media (max-width: 899px) { .btnrow.sub { flex-wrap: wrap !important; } .flag-pill span { display: none; } .flag-pill { width: 44px; padding: 0; justify-content: center; } .btnrow.sub .pill.sel { flex: 0 1 100px !important; } }
.crumb a, .crumb span { display: inline-flex; align-items: center; min-height: 28px; }
.eplink { display: inline-block; padding: 3px 0; }
.dl-files li a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 32px; }

/* parked-flag leftovers replaced by the GitHub report link */
.flagbtn { width: auto !important; height: 32px !important; padding: 0 12px !important; border-radius: var(--pill) !important; font-size: .8rem; font-weight: 700; text-decoration: none; display: inline-flex !important; align-items: center; justify-content: center; }
.cuerow .cue { padding-right: 96px; }
@media (max-width: 899px) { .flag-pill span { display: none; } .flag-pill { width: 44px; padding: 0; justify-content: center; } }
.seekwrap { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; } .seekwrap input[type=range] { width: 100%; }
a.pill { text-decoration: none; }
/* timeline cards: keep the dates readable on bright illustrations */
.erac .thumb.has-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(transparent, rgba(0,0,0,.72)); z-index: 1; pointer-events: none; }
.erac .bigdate { text-shadow: 0 1px 6px rgba(0,0,0,.6); }

/* quiz hub: weak spots module */
.weak { border: 2px solid var(--red); border-radius: 14px; padding: 18px 20px; margin: 0 0 22px; background: var(--card, transparent); }
.weak .h3 { margin: 0 0 8px; }
.weaklist { margin: 8px 0 14px; padding-left: 1.3em; display: grid; gap: 6px; }
.weaklist li { line-height: 1.4; }

/* phone and tablet player: normal page flow, so nothing overlaps (the old fixed-height layout broke on short screens) */
@media (max-width: 899px) {
  .on-episode .stage-in { display: flex; flex-direction: column; height: auto; gap: 12px; padding-top: 10px; padding-bottom: 28px; position: static; }
  .stage-media { position: static; }
  .imgpanel { height: auto; aspect-ratio: 16 / 9; }
  .capline { display: block; font-size: .9rem; line-height: 1.4; padding-top: 8px; }
  .capline .pageref { display: block; margin-top: 2px; white-space: normal; }
  .stage-text { display: block; }
  .tr-wrap { position: relative; display: block; flex: none; height: clamp(280px, 48dvh, 480px); }
  .tr-wrap .transcript, .tr-wrap .gallery { position: absolute; inset: 0; height: 100%; min-height: 0; }
  .controls { position: static; }
  .btnrow.sub { flex-wrap: wrap !important; justify-content: center; }
  .btnrow.sub .pill.sel { flex: 0 1 120px; }
  .cue { font-size: 1.1rem; }
}

/* ---- phone player v2: docked bar + "More" sheet (max-width 899px only; desktop keeps the old layout) ---- */
.more-btn { display: none; }
.sheet, .sheet-panel, .sheet-body { display: contents; }
.sheet-back, .sheet-head, .sheet-grip { display: none; }
.swbtn .sh { display: none; }
@media (max-width: 899px) {
  :root { --dock-b: calc(env(safe-area-inset-bottom, 0px) + 10px); --sheet-pb: calc(env(safe-area-inset-bottom, 0px) + 16px); }
  @supports (-webkit-touch-callout: none) { :root { --dock-b: calc(env(safe-area-inset-bottom, 0px) + 64px); --sheet-pb: calc(env(safe-area-inset-bottom, 0px) + 72px); } }
  body.on-episode { padding-bottom: calc(var(--dock-h, 130px) + var(--dock-b) + 16px); }
  .on-episode .stage-in { gap: 8px; padding-top: 8px; padding-bottom: 12px; }
  /* compact picture, one-row tabs */
  .imgpanel { aspect-ratio: auto; height: clamp(96px, 34vw, 190px); }
  .capline { display: block; font-size: .82rem; line-height: 1.35; padding-top: 5px; min-height: 0; }
  .capline .cap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .capline .pageref { display: inline; margin: 0; font-weight: 500; }
  .anim-btn { min-height: 32px; padding: 0 12px; font-size: .75rem; }
  .stage-text { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 6px; }
  .stage-text .tabs { display: contents; }
  .stage-text .tablist { order: 1; margin: 0; }
  .stage-text .tr-tools { order: 2; margin: 0 0 0 auto; }
  .stage-text .imgtoggle { order: 3; margin: 0; min-height: 40px; min-width: 40px; padding: 0; justify-content: center; } .stage-text .imgtoggle span { display: none; }
  .stage-text .tr-wrap { order: 4; flex: 0 0 100%; width: 100%; }
  .tab { min-height: 40px; padding: 0 14px; }
  .swbtn { min-height: 40px; }
  @media (max-width: 480px) { .swbtn .lg { display: none; } .swbtn .sh { display: inline; } }
  .tr-wrap { height: var(--tr-h, clamp(240px, 52svh, 520px)); }
  .transcript { padding-bottom: 40px; }
  /* docked bar */
  .controls { position: fixed; left: 8px; right: 8px; bottom: var(--dock-b); z-index: 45; padding: 6px 10px 8px; gap: 0; border: 1px solid var(--stage-line); border-radius: 18px; background: var(--stage2); box-shadow: 0 6px 24px rgba(0,0,0,.45); }
  .controls .now { align-items: center; min-height: 22px; }
  .on-episode .controls .kicker-d { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .on-episode .ptitle { margin: 0; font-size: .95rem; max-width: calc(100vw - 52px); }
  .controls .statuses { display: none; }
  .controls .seek { gap: 8px; }
  .controls .seek .t { min-width: 2.9em; font-size: .78rem; }
  input[type=range] { height: 36px; }
  .controls .btnrow.main { flex-wrap: nowrap; justify-content: space-between; gap: 2px; }
  .controls .btnrow.main .pill { min-height: 44px; padding: 0 10px; font-size: .84rem; }
  .controls #rate { min-width: 56px; justify-content: center; }
  .controls .btnrow.main .ctl { width: 48px; height: 48px; flex: none; }
  .controls .btnrow.main .ctl.big { width: 56px; height: 56px; }
  .more-btn { display: inline-flex; flex: none; }
  .controls .notice { display: none; }
  .stage-in > .notice, .stage-in .notice#note { display: block; }
  #note:empty { display: none !important; }
  .stage-in > #note { margin: 4px 2px 0; text-align: left; }
  .ai-line { margin: 4px 2px 0; text-align: left; font-size: .8rem; }
  /* jump pill sits just above the bar */
  .jump { position: fixed; bottom: calc(var(--dock-h, 130px) + var(--dock-b) + 10px); z-index: 46; }
  /* the sheet */
  .sheet { display: none; }
  .sheet.open { display: block; position: fixed; inset: 0; z-index: 70; }
  .sheet.open .sheet-back { display: block; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
  .sheet.open .sheet-panel { display: block; position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; overscroll-behavior: contain; background: var(--stage2); color: var(--stage-ink); border-radius: 20px 20px 0 0; border-top: 1px solid var(--stage-line); padding: 6px 16px var(--sheet-pb); box-shadow: 0 -8px 30px rgba(0,0,0,.5); }
  .sheet.open .sheet-grip { display: block; width: 44px; height: 5px; border-radius: 3px; background: #666; margin: 4px auto 8px; padding: 0; }
  .sheet.open .sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
  .sheet-title { margin: 2px 0 0; font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
  .sheet.open .sheet-body { display: block; }
  .sheet .btnrow.sub { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
  .sheet .btnrow.sub .pill, .sheet .btnrow.sub .pill.sel { min-height: 48px; width: auto; flex: none !important; justify-content: center; padding: 0 12px; font-size: .9rem; }
  .sheet .btnrow.sub .pill.sel select { width: 100%; font-size: .9rem; text-align-last: center; }
  .sheet .btnrow.sub #prev span, .sheet .btnrow.sub #next span { display: inline; }
  .sheet .btnrow.sub #prev, .sheet .btnrow.sub #next { width: auto; padding: 0 12px; }
  .sheet .btnrow.sub .x { display: inline; }
  .sheet .btnrow.sub .flag-pill { width: auto; grid-column: 1 / -1; }
  .sheet .btnrow.sub .flag-pill span { display: inline; }
  .sheet .btnrow.sub #quiz { order: 1; } .sheet .btnrow.sub .sel { order: 2; } .sheet .btnrow.sub #rep { order: 3; } .sheet .btnrow.sub #fin { order: 4; }
  .sheet .btnrow.sub #prev { order: 5; } .sheet .btnrow.sub #next { order: 6; } .sheet .btnrow.sub .flag-pill { order: 7; }
  .sheet .btnrow.sub #rep span { display: inline; }
}
@media (max-width: 899px) and (max-height: 480px) {
  .controls { padding: 4px 10px; }
  .controls .now { display: none; }
  .controls { display: flex; align-items: center; gap: 6px; }
  .controls .seek { flex: 1 1 auto; min-width: 0; } .controls .btnrow.main { flex: none; gap: 2px; }
  .controls .btnrow.main .pill { min-height: 40px; } .controls .btnrow.main .ctl { width: 42px; height: 42px; } .controls .btnrow.main .ctl.big { width: 48px; height: 48px; }
  .sheet .btnrow.sub { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 360px) {
  .controls { left: 6px; right: 6px; padding: 6px 8px 8px; }
  .controls .btnrow.main .more-btn span { display: none; } .controls .btnrow.main .more-btn { width: 48px; padding: 0; justify-content: center; }
  .controls #rate { min-width: 48px; padding: 0 6px; } .controls .btnrow.main .ctl { width: 44px; height: 44px; }
  .controls .seek .t { min-width: 2.6em; }
  .tab { padding: 0 11px; }
}
@media (max-width: 899px) {
  .sheet .btnrow.sub #rep { width: auto; padding: 0 12px; justify-content: center; }
  .sheet .btnrow.sub #rep span { display: inline; }
}
@media (max-width: 480px) { .stage-text .tab { padding: 0 12px; } .stage-text .swbtn { padding: 0 10px 0 7px; gap: 6px; } }
