:root {
  color-scheme: dark;
  --bg: oklch(17.6% .009 300);
  --surface: oklch(23% .012 300);
  --text: oklch(98% .003 100);
  --muted: oklch(76% .012 300);
  --accent: oklch(91% .19 100);
  --accent-hover: oklch(96% .19 100);
  --line: oklch(100% 0 0 / .14);
  --page-gutter: clamp(24px, 4.3vw, 80px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { font-weight: 600; margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body.cinema-open { overflow: hidden; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
button:disabled { cursor: default; opacity: .3; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; display: block; fill: currentColor; stroke: none; flex: none; }
.skip-link { position: fixed; top: -70px; left: 20px; z-index: 10; padding: 14px; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 12px; }
.site-header { position: absolute; top: 0; z-index: 2; width: 100%; height: 96px; padding: 0 var(--page-gutter); display: flex; align-items: center; gap: 35px; background: linear-gradient(in oklch, oklch(10% .01 300 / .7), transparent); }
.wordmark { display: inline-flex; align-items: baseline; font-size: 32px; font-weight: 900; font-style: italic; line-height: 1; }
.wordmark span { color: var(--accent); transform: translateY(-.18em); }
.nav-chip { display: inline-flex; align-items: center; padding: 12px 20px; min-height: 46px; border-radius: 999px; font-size: 16px; font-weight: 650; background: oklch(100% 0 0 / .07); transition: background .18s, color .18s; }
.nav-chip:hover { background: var(--accent); color: var(--bg); }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 600px; padding: 140px var(--page-gutter) 95px; overflow: hidden; }
.hero-art { position: absolute; inset: 0 0 0 25%; z-index: -1; }
.hero-art video { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; display: block; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg in oklch, var(--bg) 0%, oklch(17.6% .009 300 / .94) 9%, oklch(17.6% .009 300 / .45) 37%, transparent 65%), linear-gradient(0deg in oklch, var(--bg) 0%, oklch(17.6% .009 300 / .75) 9%, transparent 40%); }
.hero-content { width: 490px; max-width: 46vw; }
h1 { margin: 0 0 26px; }
.series-logo { display: block; width: 420px; max-width: 100%; height: auto; filter: brightness(1.5); }
.series-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; font-size: 16px; font-weight: 600; color: var(--muted); }
.hero-description { font-size: 22px; line-height: 1.5; font-weight: 700; margin: 24px 0 30px; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 24px; border-radius: 999px; font-size: 16px; font-weight: 700; background: transparent; transition: background .18s, color .18s; }
.button-primary { padding-left: 16px; padding-right: 36px; background: var(--accent); color: oklch(18% .015 100); }
.button-primary:hover { background: var(--accent-hover); }
.button-secondary { background: oklch(28% .009 300); }
.button-secondary:hover { background: var(--accent); color: var(--bg); }
.resume-caption { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 17px 0 0; }
.icon-button { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0; border-radius: 50%; background: oklch(100% 0 0 / .09); transition: background .18s, color .18s; }
.icon-button:hover:not(:disabled) { background: var(--accent); color: var(--bg); }
.preview-toggle { position: absolute; right: var(--page-gutter); bottom: 82px; width: 44px; height: 44px; background: oklch(12% .01 300 / .6); border: 1px solid oklch(100% 0 0 / .3); backdrop-filter: blur(12px); }
.preview-toggle .icon { width: 20px; height: 20px; }
.episodes-section { position: relative; padding: 0 var(--page-gutter) 64px; margin-top: -20px; }
.episode-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px 24px; }
.bonus-rail { grid-template-columns: repeat(2,minmax(0,1fr)); }
.bonus-card .card-description { display: block; overflow: visible; }
.episode-card { min-width: 0; padding: 0; border-radius: 16px; background: none; text-align: left; }
.thumbnail { aspect-ratio: 16 / 9; border-radius: 16px; position: relative; overflow: hidden; background: var(--surface); transition: box-shadow .2s; }
.thumbnail>img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 55%; transition: transform .3s; }
.thumbnail::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg in oklch, oklch(5% 0 0 / .4), transparent 55%); }
.episode-card:hover .thumbnail, .episode-card:focus-visible .thumbnail { box-shadow: 0 0 0 3px var(--accent); }
.episode-card:hover .thumbnail>img { transform: scale(1.035); }
.card-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--bg); opacity: 0; transition: opacity .2s; z-index: 2; }
.episode-card:hover .card-play, .episode-card:focus-visible .card-play { opacity: 1; }
.duration { position: absolute; right: 12px; bottom: 12px; z-index: 1; padding: 5px 9px; background: oklch(12% .01 300 / .7); border-radius: 6px; font-size: 14px; font-weight: 700; }
.card-copy h3 { margin: 16px 0 9px; font-size: 19px; font-weight: 700; line-height: 1.4; }
.card-description { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.progress-track { position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: oklch(100% 0 0 / .3); z-index: 3; }
.progress-fill { height: 100%; background: var(--accent); }

.format-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 12px; }
.format-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 4px 9px; border-radius: 8px; background: oklch(34% .012 290 / .85); color: var(--text); font-size: 14px; font-weight: 650; }
.format-badge .icon { width: 22px; height: 22px; }
.format-badge .icon:has(use[href="#i-audio"]) { width: 23.4px; height: 18px; }
.series-tabs { display: flex; gap: 34px; align-items: center; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.series-tab { position: relative; padding: 0 0 20px; min-height: 52px; background: none; color: var(--muted); font-size: 22px; font-weight: 650; }
.series-tab:hover { color: var(--text); }
.series-tab[aria-selected="true"] { color: var(--text); }
.series-tab[aria-selected="true"]::after { position: absolute; content: ""; height: 3px; left: 0; right: 0; bottom: -1px; border-radius: 3px 3px 0 0; background: var(--accent); }
.details-panel { display: grid; grid-template-columns: minmax(0,2fr) minmax(220px,1fr); gap: clamp(35px,7vw,110px); padding: 5px 0 30px; min-height: 340px; }
.details-story h2 { font-size: 30px; margin: 0 0 22px; }
.details-story>p { margin: 0; font-size: 21px; line-height: 1.75; font-weight: 600; text-wrap: pretty; }
.details-facts { margin: 0; display: flex; flex-direction: column; gap: 22px; }
.details-facts dt { color: var(--muted); font-size: 16px; margin: 0 0 7px; }
.details-facts dd { margin: 0; font-size: 18px; line-height: 1.45; }
.cinema { position: fixed; inset: 0; z-index: 100; width: 100%; height: 100dvh; overflow: hidden; background: #000; outline: none; isolation: isolate; }
.cinema:fullscreen { width: 100vw; height: 100dvh; }
#video-player { display: block; width: 100%; height: 100%; object-fit: contain; }
#video-player::cue { background: oklch(0% 0 0 / .8); color: white; font-family: inherit; font-size: 23px; font-weight: 700; line-height: 1.4; }
.video-captions { position: absolute; left: max(20px,env(safe-area-inset-left)); right: max(20px,env(safe-area-inset-right)); bottom: 156px; z-index: 2; display: flex; justify-content: center; pointer-events: none; }
#caption-text { display: block; max-width: min(90%,850px); padding: 8px 20px; border-radius: 7px; background: oklch(0% 0 0 / .84); color: white; font-size: 23px; font-weight: 700; line-height: 1.4; text-align: center; white-space: pre-line; text-wrap: pretty; }
.cinema-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg in oklch, oklch(0% 0 0 / .65) 0%, transparent 23%, transparent 68%, oklch(0% 0 0 / .8) 100%); transition: opacity .2s; }
.player-chrome { position: absolute; z-index: 3; transition: opacity .2s; }
.player-top { top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 20px; padding: max(22px,env(safe-area-inset-top)) max(30px,env(safe-area-inset-right)) 20px max(24px,env(safe-area-inset-left)); }
.player-title-group { flex: 1; min-width: 0; }
.player-title-group p { margin: 0 0 5px; color: oklch(80% 0 0); font-size: 15px; }
.player-title-group h2 { margin: 0; font-size: 23px; font-weight: 650; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-icon { width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; color: white; background: transparent; transition: color .15s,background .15s; }
.player-icon .icon { width: 29px; height: 29px; }
.player-icon:hover:not(:disabled) { background: oklch(100% 0 0 / .12); }
.player-icon:disabled { opacity: .25; }
.player-icon[aria-expanded="true"], .player-icon.is-active { color: var(--accent); }
#close-player .icon { width: 30px; height: 30px; }
.player-bottom { left: 0; right: 0; bottom: 0; padding: 15px max(32px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(32px,env(safe-area-inset-left)); }
.timeline { display: flex; align-items: center; gap: 22px; margin: 0 0 9px; }
input[type="range"] { cursor: pointer; accent-color: var(--accent); }
#seek { appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; height: 28px; background: transparent; margin: 0; --played: 0%; }
#seek::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right,var(--accent) var(--played),oklch(100% 0 0 / .35) var(--played)); }
#seek::-moz-range-track { height: 3px; border-radius: 3px; background: oklch(100% 0 0 / .35); }
#seek::-moz-range-progress { height: 3px; background: var(--accent); }
#seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin-top: -4.5px; }
#seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--accent); }
.time-display { color: white; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player-controls,.transport,.playback-options,.volume-control { display: flex; align-items: center; }
.player-controls { justify-content: space-between; gap: 20px; }
.transport { gap: 13px; }
.playback-options { gap: 14px; }
.volume-control { gap: 8px; }
#volume { width: 96px; }
.volume-slider { appearance: none; -webkit-appearance: none; --volume-level: 100%; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.volume-slider::-webkit-slider-runnable-track { height: 5px; border: 0; border-radius: 999px; box-shadow: none; background: linear-gradient(to right,var(--accent) var(--volume-level),oklch(100% 0 0 / .22) var(--volume-level)); }
.volume-slider::-moz-range-track { height: 5px; border: 0; border-radius: 999px; box-shadow: none; background: oklch(100% 0 0 / .22); }
.volume-slider::-moz-range-progress { height: 5px; border: 0; border-radius: 999px; background: var(--accent); }
.volume-slider::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 13px; height: 13px; margin-top: -4px; border: 0; border-radius: 50%; box-shadow: none; background: var(--accent); }
.volume-slider::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; box-shadow: none; background: var(--accent); }
#toggle-play .icon { width: 36px; height: 36px; }
.center-play { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 88px; height: 88px; background: transparent; color: white; border-radius: 50%; filter: drop-shadow(0 3px 18px #0009); }
.center-play .icon { width: 76px; height: 76px; }
.cinema.is-playing .center-play { display: none; }
.cinema.controls-hidden { cursor: none; }
.controls-hidden .player-chrome { opacity: 0; pointer-events: none; }
.controls-hidden .cinema-shade { opacity: 0; }
.controls-hidden .video-captions { bottom: max(56px,calc(env(safe-area-inset-bottom) + 24px)); }
.player-menu { position: absolute; bottom: 125px; right: max(32px,env(safe-area-inset-right)); width: 360px; max-width: calc(100% - 32px); max-height: calc(100dvh - 225px); overflow: auto; z-index: 5; padding: 18px; background: oklch(25% .012 290 / .97); border: 0; border-radius: 28px; box-shadow: 0 18px 65px oklch(0% 0 0 / .4); backdrop-filter: blur(24px); }
.menu-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 16px; padding-left: 7px; }
.menu-heading h3 { font-size: 21px; margin: 0; font-weight: 650; }
.menu-heading .player-icon { width: 44px; height: 44px; background: oklch(100% 0 0 / .07); }
.menu-heading .icon { width: 23px; height: 23px; }
.player-menu p { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 16px 7px 5px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 54px; padding: 12px 14px; border-radius: 16px; font-size: 16px; line-height: 1.4; text-align: left; background: oklch(100% 0 0 / .045); margin-top: 8px; }
.setting-row+.setting-row { border: 0; }
.setting-row .icon { width: 21px; height: 21px; }
button.setting-row:hover:not(:disabled), .autoplay-label:hover { background: oklch(100% 0 0 / .09); }
button.setting-row[aria-expanded="true"] { color: var(--accent); background: oklch(91% .19 100 / .1); }
.menu-volume { display: flex; align-items: center; gap: 12px; padding: 13px 14px 10px 8px; margin-top: 8px; border-radius: 16px; background: oklch(100% 0 0 / .045); }
.volume-setting { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 15px; }
.volume-setting .volume-slider { width: 100%; }
.autoplay-label { cursor: pointer; position: relative; }
.autoplay-label>input { position: absolute; right: 14px; width: 42px; height: 26px; margin: 0; opacity: 0; }
.switch { width: 42px; height: 26px; flex: none; border-radius: 15px; background: oklch(45% .01 300); position: relative; }
.switch::after { content: ""; position: absolute; width: 20px; height: 20px; top: 3px; left: 3px; border-radius: 50%; background: white; transition: transform .2s; }
.autoplay-label input:checked+.switch { background: var(--accent); }
.autoplay-label input:checked+.switch::after { background: var(--bg); transform: translateX(16px); }
.autoplay-label input:focus-visible+.switch { outline: 3px solid var(--accent); outline-offset: 5px; }
.caption-option { position: relative; cursor: pointer; border-radius: 16px; margin-top: 8px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px; min-height: 56px; font-size: 17px; background: oklch(100% 0 0 / .045); text-align: left; }
.caption-option:hover { background: oklch(100% 0 0 / .09); }
.caption-option .icon { width: 22px; height: 22px; opacity: 0; }
.caption-option input:checked+.icon { opacity: 1; }
.caption-option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.player-message { font-size: 15px; color: var(--accent); margin: 8px 0 0; }
.player-message:empty { display: none; }
.playback-error { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; padding: 100px 28px 145px; background: oklch(0% 0 0 / .8); text-align: center; }
.playback-error>p { font-size: 17px; color: var(--muted); margin: 0; }
.cinema.is-ended > .player-chrome,.cinema.is-ended > .center-play,.cinema.is-ended > .video-captions { visibility: hidden; }
.end-screen { position: absolute; inset: 0; z-index: 6; isolation: isolate; overflow: auto; display: flex; flex-direction: column; padding: max(24px,env(safe-area-inset-top)) var(--page-gutter) max(36px,env(safe-area-inset-bottom)); background: var(--bg); }
.end-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; opacity: .5; filter: blur(18px); z-index: -2; }
.end-screen::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg in oklch,var(--bg) 0%,oklch(17.6% .009 300 / .87) 28%,oklch(17.6% .009 300 / .35) 100%),linear-gradient(0deg in oklch,var(--bg),transparent 65%); pointer-events: none; }
.end-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.end-layout { width: 100%; max-width: 1560px; margin: auto; padding: 40px 0; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: clamp(32px,6vw,100px); align-items: center; }
.end-copy { min-width: 0; }
.end-logo { width: clamp(180px,21vw,310px); max-width: 75%; display: block; margin: 0 0 34px; filter: brightness(1.5); }
.end-caption { color: var(--accent); font-size: 20px; margin: 0 0 12px; font-weight: 700; }
.end-meta { font-size: 17px; color: var(--muted); margin: 0 0 10px; }
.end-screen h3 { font-size: clamp(28px,3vw,48px); line-height: 1.16; font-weight: 750; margin: 0 0 20px; text-wrap: balance; }
.end-description { max-width: 640px; margin: 0; font-size: 20px; line-height: 1.55; font-weight: 600; text-wrap: pretty; }
#end-countdown { display: grid; place-items: center; min-width: 42px; height: 34px; padding: 0 10px; border-radius: 999px; background: oklch(0% 0 0 / .1); font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
#end-status { margin: 12px 0 0; font-size: 16px; color: var(--muted); }
#end-status:empty { display: none; }
.countdown-cancel { background: oklch(100% 0 0 / .1); border-radius: 999px; padding: 10px 18px; min-height: 44px; font-size: 16px; }
.countdown-cancel:hover { background: var(--accent); color: var(--bg); }
.end-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.end-actions .button { min-height: 58px; font-size: 17px; }
.end-actions .button-primary { padding-left: 17px; padding-right: 32px; }
.end-actions .button-primary:has(#end-countdown:not([hidden])) { padding-right: 12px; }
.end-art { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 28px; background: var(--surface); box-shadow: 0 24px 70px oklch(0% 0 0 / .25); }
.end-art video { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 55%; }
.end-art .duration { right: 16px; bottom: 16px; font-size: 16px; border-radius: 8px; padding: 6px 12px; }
.video-loading { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 2; }
.video-loading span { width: 38px; height: 38px; border: 3px solid oklch(100% 0 0 / .2); border-top-color: white; border-radius: 50%; animation: loading-spin .8s linear infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
.noscript { padding: 24px; background: var(--accent); color: var(--bg); }
@media (min-width:1600px) { .hero { min-height: 680px; }.hero-content { width: 560px; }.series-logo { width: 460px; }.episode-rail { grid-template-columns: repeat(4,minmax(0,1fr)); }.bonus-rail { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:1050px) { .episode-rail { grid-template-columns: repeat(2,minmax(0,1fr)); }.hero-content { max-width: 53vw; }.hero-art { left: 13%; }.hero-description { font-size: 21px; }.hero { min-height: 570px; }.details-panel { gap: 40px; }.details-story>p { font-size: 19px; } }
@media (max-width:600px) {
  :root { --page-gutter: 22px; }
  html { scroll-padding-top: 20px; }
  .site-header { height: 82px; gap: 24px; padding-top: env(safe-area-inset-top); }
  .wordmark { font-size: 28px; }
  .nav-chip { margin-left: auto; font-size: 15px; padding: 11px 17px; min-height: 44px; }
  .hero { display: block; padding: 285px var(--page-gutter) 45px; min-height: 0; }
  .hero-art { left: 0; height: 370px; }
  .hero-art video { object-position: 57% center; }
  .hero-art::after { background: linear-gradient(0deg in oklch,var(--bg),oklch(17.6% .009 300 / .93) 9%,oklch(17.6% .009 300 / .38) 37%,transparent 65%,oklch(17.6% .009 300 / .55) 100%); }
  .hero-content { width: 100%; max-width: none; }
  h1 { margin-bottom: 22px; }
  .series-logo { width: 290px; filter: brightness(1.7); }
  .series-meta { font-size: 16px; }
  .hero-description { font-size: 20px; line-height: 1.45; margin: 20px 0 25px; }
  .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hero-actions .button { flex: 1; font-size: 15px; min-height: 52px; padding: 0 16px; gap: 8px; white-space: nowrap; }
  .hero-actions .button-primary { padding-left: 13px; padding-right: 24px; }
  .hero-actions .button .icon { width: 22px; height: 22px; }
  .hero-actions .button-secondary { flex: .85; }
  .resume-caption { font-size: 14px; }
  .preview-toggle { top: 221px; bottom: auto; right: var(--page-gutter); }
  .episodes-section { margin-top: 0; padding-bottom: 35px; }
  .series-tabs { margin-bottom: 25px; gap: 30px; }
  .series-tab { font-size: 21px; padding-bottom: 16px; }
  .series-tabs { gap: 24px; }
  .episode-rail { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .card-copy h3 { font-size: 19px; margin-top: 15px; }
  .card-description { font-size: 16px; }
  .card-play { width: 48px; height: 48px; top: auto; left: 12px; bottom: 12px; transform: none; opacity: 1; background: oklch(10% .01 300 / .6); color: white; backdrop-filter: blur(8px); border: 1px solid oklch(100% 0 0 / .35); }
  .details-panel { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .details-story h2 { font-size: 27px; margin-bottom: 18px; }
  .details-story>p { font-size: 18px; line-height: 1.7; }
  .details-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 16px; }
  .details-facts dd { font-size: 16px; }
  .details-facts dt { font-size: 15px; }
  .player-top { padding: max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 12px max(8px,env(safe-area-inset-left)); gap: 9px; }
  .player-title-group p { font-size: 14px; margin-bottom: 4px; }
  .player-title-group h2 { font-size: 18px; }
  .player-icon { width: 44px; height: 44px; }
  .player-icon .icon { width: 27px; height: 27px; }
  .player-bottom { padding: 12px max(16px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
  .timeline { flex-wrap: wrap; gap: 0; margin-bottom: 8px; }
  #seek { flex-basis: 100%; width: 100%; height: 32px; }
  .time-display { font-size: 14px; width: 100%; }
  .player-controls { gap: 4px; }
  .transport,.playback-options { gap: 0; }
  .volume-control { display: none; }
  .player-menu { right: 16px; left: 16px; bottom: 135px; width: auto; max-width: none; max-height: calc(100dvh - 225px); padding: 16px; border-radius: 26px; }
  .center-play { width: 76px; height: 76px; }
  .center-play .icon { width: 68px; height: 68px; }
  #video-player::cue { font-size: 18px; }
  .video-captions { left: 12px; right: 12px; bottom: max(166px,calc(env(safe-area-inset-bottom) + 150px)); }
  #caption-text { max-width: 100%; font-size: 18px; padding: 8px 17px; }
  .end-screen { padding: max(12px,env(safe-area-inset-top)) var(--page-gutter) max(16px,env(safe-area-inset-bottom)); }
  .end-top .wordmark { font-size: 28px; }
  .end-top .icon-button { width: 44px; height: 44px; }
  .end-layout { grid-template-columns: minmax(0,1fr); gap: 18px; padding: 14px 0 0; }
  .end-art { grid-row: 1; aspect-ratio: auto; height: min(22svh,180px); border-radius: 24px; }
  .end-logo { display: none; }
  .end-caption { display: inline; font-size: 16px; margin: 0 10px 0 0; }
  .end-meta { display: inline; font-size: 14px; margin: 0; }
  .end-screen h3 { font-size: 28px; margin: 10px 0; }
  .end-description { font-size: 17px; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .end-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin-top: 18px; }
  .end-actions .button-primary { grid-column: 1/-1; }
  .end-actions:not(:has(#cancel-next:not([hidden]))) .button-secondary { grid-column: 1/-1; }
  .end-actions .button { width: 100%; min-height: 52px; font-size: 16px; }
  .end-actions .button-secondary { padding-inline: 18px; }
  #end-status { font-size: 15px; }
}
@media (max-width:600px) and (max-height:700px) {
  .end-layout { gap: 12px; }
  .end-art { height: 20svh; min-height: 90px; }
  .end-screen h3 { font-size: 24px; margin: 8px 0; }
  .end-description { font-size: 16px; }
  .end-actions { margin-top: 12px; gap: 8px; }
  .end-actions .button { min-height: 48px; }
}
@media (max-height:500px) and (orientation:landscape) {
  .player-top { padding-top: max(7px,env(safe-area-inset-top)); padding-bottom: 7px; }
  .player-title-group p { display: none; }.player-title-group h2 { font-size: 19px; }
  .player-bottom { padding-bottom: max(9px,env(safe-area-inset-bottom)); padding-top: 7px; }
  .timeline { margin-bottom: 2px; }
  .video-captions { bottom: 120px; }
  #caption-text { font-size: 18px; }
  .player-menu { bottom: 100px; max-height: calc(100dvh - 160px); }
  .player-icon { width: 44px; height: 44px; }
  .end-screen { padding: 16px max(24px,env(safe-area-inset-right)) 24px max(24px,env(safe-area-inset-left)); }
  .end-layout { padding: 20px 0 0; gap: 28px; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
  .end-logo { display: none; }.end-screen h3 { font-size: 26px; margin-bottom: 12px; }
  .end-description { font-size: 16px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .end-art { grid-row: auto; aspect-ratio: 1; max-height: 55svh; }
  .end-actions { display: flex; flex-direction: row; gap: 8px; margin-top: 12px; }.end-actions .button { width: auto; min-height: 48px; font-size: 16px; }
}
@media (max-width:360px) { :root { --page-gutter: 18px; }.hero-actions .button { font-size: 14px; padding: 0 12px; }.hero-actions .button-primary { padding-right: 20px; }.hero-description { font-size: 19px; }.player-bottom { padding-left: 12px; padding-right: 12px; }.player-title-group h2 { font-size: 16px; }.player-title-group p { font-size: 13px; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; }*,*::before,*::after { animation:none!important;transition:none!important; } }

.caption-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }.caption-option:has(input:checked) { color: var(--accent); background: oklch(91% .19 100 / .11); }

/* The catalogue uses the same colors, pills and typography as the player. */
.main-nav { display: flex; gap: 10px; align-items: center; }
.main-nav .nav-chip { background: transparent; color: var(--muted); }
.main-nav .nav-chip[aria-current="page"] { background: oklch(100% 0 0 / .12); color: var(--text); }
.main-nav .nav-chip:hover { background: var(--accent); color: var(--bg); }
.home-hero { position: relative; isolation: isolate; display: flex; align-items: end; min-height: 560px; height: min(76svh,760px); padding: 150px var(--page-gutter) 85px; overflow: hidden; }
.home-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.home-art > img { display: block; transform: scale(1.1); width: 100%; height: 100%; object-fit: cover; filter: blur(32px); opacity: .55; }
.home-art > video { position: absolute; inset: 0 0 0 auto; width: 82%; height: 100%; object-fit: cover; object-position: 55% center; }
.home-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg in oklch,var(--bg),oklch(17.6% .009 300 / .85) 20%,oklch(17.6% .009 300 / .3) 50%,transparent 78%),linear-gradient(0deg in oklch,var(--bg),transparent 45%); }
.home-hero-content { width: min(530px,48%); }
.home-hero h1 { margin: 0 0 23px; }
#home-logo { display: block; width: 420px; max-width: 100%; height: auto; filter: brightness(1.5); }
.home-meta { color: var(--muted); font-size: 17px; margin: 0 0 15px; }
.home-description { max-width: 480px; font-size: 24px; line-height: 1.45; font-weight: 700; margin: 0 0 28px; text-wrap: pretty; }
.home-hero-controls { position: absolute; right: var(--page-gutter); bottom: 60px; display: flex; gap: 24px; align-items: center; }
.home-hero-controls > .icon-button { width: 44px; height: 44px; background: oklch(10% 0 0 / .5); backdrop-filter: blur(12px); }
.feature-select { display: flex; align-items: center; gap: 2px; }
.feature-dot { position: relative; width: 36px; height: 44px; background: transparent; border-radius: 999px; }
.feature-dot::before { content: ''; position: absolute; inset: 18px 14px; border-radius: 999px; background: oklch(100% 0 0 / .45); transition: inset .2s,background .2s; }
.feature-dot[aria-pressed="true"]::before { inset-inline: 5px; background: var(--accent); }
.home-hero.is-portrait .home-art > video { width: 82%; object-fit: cover; object-position: center 52%; }
.home-hero.is-portrait .home-art > img { object-position: center 58%; }
.home-hero.is-portrait #home-logo { width: 490px; filter: brightness(1.25); }
.series-library { padding: 0 var(--page-gutter) 70px; position: relative; margin-top: -6px; scroll-margin-top: 32px; }
.series-library > h2 { margin: 0 0 25px; font-size: 27px; font-weight: 750; }
.series-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; max-width: 1440px; }
.series-card { display: block; min-width: 0; border-radius: 22px; }
.series-poster { position: relative; aspect-ratio: 2/3; border-radius: 22px; overflow: hidden; isolation: isolate; background: var(--surface); transition: transform .22s,box-shadow .22s; }
.poster-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s; }
.series-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg in oklch,oklch(10% .02 310 / .98),oklch(10% .02 310 / .5) 18%,transparent 45%); z-index: 1; }
.poster-logo { position: absolute; z-index: 2; width: 85%; left: 7.5%; bottom: 7%; height: auto; filter: brightness(1.65); }
.school-poster .poster-logo,.midnight-poster .poster-logo,.outdoor-poster .poster-logo { filter: brightness(1.25); bottom: 6%; width: 91%; left: 4.5%; }
.poster-open { display: grid; place-items: center; position: absolute; z-index: 3; top: 14px; right: 14px; width: 40px; height: 40px; background: var(--accent); color: var(--bg); border-radius: 50%; opacity: 0; transform: translateX(-5px); transition: opacity .2s,transform .2s; }
.series-card:hover .series-poster,.series-card:focus-visible .series-poster { transform: translateY(-5px); box-shadow: 0 0 0 3px var(--accent),0 16px 40px oklch(0% 0 0 / .25); }
.series-card:hover .poster-art { transform: scale(1.025); }
.series-card:hover .poster-open,.series-card:focus-visible .poster-open { opacity: 1; transform: none; }
.series-card h3 { font-size: 20px; line-height: 1.4; font-weight: 700; margin: 17px 0 6px; }
.series-card p { color: var(--muted); font-size: 16px; margin: 0; line-height: 1.45; }
.hero.is-portrait .hero-art { left: 25%; }
.hero.is-portrait .hero-art video { object-fit: cover; object-position: center 52%; }
.hero.is-portrait .series-logo { filter: brightness(1.25); width: 480px; }
@media (min-width:1600px) { .series-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (max-width:1050px) {
  .home-hero { min-height: 540px; }
  .home-description { font-size: 22px; }
  .series-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
  .home-hero .hero-actions { gap: 10px; }
  .home-hero .button { font-size: 16px; padding-inline: 20px; }
}
@media (max-width:600px) {
  .site-header { gap: 18px; }
  .main-nav { margin-left: auto; gap: 0; }
  .main-nav .nav-chip { font-size: 15px; padding-inline: 12px; margin: 0; }
  .main-nav .nav-chip:last-child { padding-right: 0; }
  .home-hero { height: auto; min-height: 0; display: block; padding: 310px var(--page-gutter) 76px; }
  .home-art { bottom: auto; height: 490px; }
  .home-art > video { width: 100%; object-position: 56% center; }
  .home-art::after { background: linear-gradient(0deg in oklch,var(--bg),oklch(17.6% .009 300 / .85) 17%,oklch(17.6% .009 300 / .12) 60%,oklch(17.6% .009 300 / .35)); }
  .home-hero-content { width: 100%; }
  .home-hero h1 { margin-bottom: 18px; }
  #home-logo { width: 290px; }
  .home-meta { font-size: 16px; margin-bottom: 14px; }
  .home-description { font-size: 21px; line-height: 1.4; margin-bottom: 24px; }
  .home-hero .hero-actions { display: grid; grid-template-columns: .85fr 1.15fr; }
  .home-hero .button { padding-inline: 14px; min-height: 54px; font-size: 15px; }
  .home-hero .button-primary { padding-right: 20px; }
  .home-hero-controls { bottom: 19px; right: var(--page-gutter); gap: 15px; }
  .home-hero.is-portrait .home-art > video { width: 100%; object-fit: cover; object-position: center 38%; }
  .home-hero.is-portrait #home-logo { width: 335px; }
  .series-library { padding-bottom: 42px; margin-top: 0; }
  .series-library > h2 { font-size: 24px; margin-bottom: 20px; }
  .series-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .series-poster { border-radius: 16px; }
  .series-card h3 { font-size: 17px; margin-top: 12px; }
  .series-card p { font-size: 15px; }
  .hero.is-portrait .hero-art { left: 0; }
  .hero.is-portrait .hero-art video { object-fit: cover; object-position: center 38%; }
}
@media (max-width:359px) {
  .site-header { gap: 8px; }
  .main-nav .nav-chip { padding-inline: 9px; font-size: 14px; }
  .home-hero .hero-actions { display: flex; flex-direction: column; align-items: stretch; }
  .home-hero .button { flex: none; width: 100%; }
  .series-grid { gap: 13px; }
  .series-card h3 { font-size: 16px; }
  .series-card p { font-size: 14px; }
}
@media (prefers-reduced-motion:reduce) {
  .series-poster,.poster-art,.poster-open,.feature-dot::before { transition: none; }
  .series-card:hover .series-poster,.series-card:hover .poster-art { transform: none; }
}

.home-hero .button-primary { padding-left: 22px; padding-right: 38px; }
@media (max-width:600px) { .home-hero .button-primary { padding-left: 14px; padding-right: 26px; } }

.parents-link { margin-left: auto; background: transparent; color: var(--muted); }
.parents-link[aria-current="page"] { background: oklch(100% 0 0 / .12); color: var(--text); }
.parents-link:hover { background: var(--accent); color: var(--bg); }
.parents-page { max-width: 1240px; padding: 164px var(--page-gutter) 90px; margin: 0 auto; }
.parents-intro { color: var(--accent); font-size: 20px; margin: 0 0 26px; font-weight: 700; }
.parents-page h1 { max-width: 1000px; margin: 0 0 40px; font-size: clamp(44px,6.2vw,84px); line-height: 1.08; font-weight: 800; text-wrap: balance; }
.manifesto-lead { max-width: 940px; margin: 0; font-size: clamp(25px,3vw,39px); line-height: 1.45; font-weight: 700; text-wrap: pretty; }
.manifesto-block { max-width: 940px; margin-top: clamp(60px,8vw,110px); }
.parents-page h2 { font-size: clamp(32px,4vw,56px); line-height: 1.15; font-weight: 800; margin: 0 0 26px; text-wrap: balance; }
.manifesto-block:first-of-type h2 { color: var(--accent); }
.manifesto-block p,.manifesto-contact p { font-size: clamp(21px,2.4vw,30px); line-height: 1.5; font-weight: 700; margin: 0; text-wrap: pretty; }
.manifesto-block .manifesto-note { margin-top: 25px; color: var(--muted); font-size: clamp(18px,1.7vw,22px); font-weight: 600; }
.manifesto-contact { max-width: 940px; margin-top: 85px; padding: clamp(26px,4vw,48px); border-radius: 28px; background: var(--surface); }
.manifesto-contact .button { margin-top: 28px; min-height: 58px; font-size: 18px; padding: 0 25px 0 30px; }
@media (max-width:600px) {
  .site-header { gap: 8px; }
  .main-nav { margin-left: 0; }
  .main-nav .nav-chip { padding-inline: 8px; }
  .main-nav .nav-chip:last-child { padding-right: 8px; }
  .parents-link { font-size: 15px; padding-inline: 8px; margin-left: auto; }
  .parents-page { padding-top: 125px; padding-bottom: 45px; }
  .parents-intro { font-size: 18px; margin-bottom: 22px; }
  .parents-page h1 { font-size: 44px; margin-bottom: 28px; }
  .manifesto-lead { font-size: 25px; }
  .manifesto-block { margin-top: 60px; }
  .manifesto-block h2 { font-size: 34px; margin-bottom: 22px; }
  .manifesto-contact { margin-top: 60px; }
}
@media (max-width:359px) {
  .site-header .wordmark { font-size: 24px; }
  .main-nav .nav-chip,.parents-link { font-size: 14px; padding-inline: 6px; }
  .parents-page h1 { font-size: 39px; }
  .manifesto-lead { font-size: 23px; }
  .manifesto-block p,.manifesto-contact p { font-size: 20px; }
}

.site-header .nav-chip { white-space: nowrap; }
@media (max-width:359px) { .site-header { gap: 5px; }.main-nav .nav-chip,.parents-link { padding-inline: 4px; }.main-nav .nav-chip:last-child { padding-right: 4px; } }

.contact-address { color: var(--accent); text-underline-offset: 5px; }
.contact-address:hover { text-decoration: underline; }

#parents-email { min-width: 220px; padding-inline: 30px; }
#parents-email.is-copied { background: var(--accent-hover); }
.manifesto-contact .contact-status { margin-top: 14px; min-height: 27px; font-size: 16px; color: var(--muted); }

/* The legal notice keeps the manifesto's generous type and spacing. */
.legal-page-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; color: var(--accent); font-size: clamp(21px,2.4vw,30px); font-weight: 700; line-height: 1.4; text-decoration: underline; text-underline-offset: 6px; }
.legal-page-link .icon { flex: none; width: 26px; height: 26px; }
.legal-page .manifesto-block p,.legal-facts { font-size: clamp(21px,2.4vw,30px); line-height: 1.5; font-weight: 600; }
.legal-page strong { font-weight: 800; }
.legal-page .manifesto-block p + p,.legal-facts + p { margin-top: 24px; }
.legal-facts { margin: 30px 0 0; }
.legal-facts > div + div { margin-top: 24px; }
.legal-facts dt { font-weight: 800; }
.legal-facts dd { margin: 0; }
.legal-page a:not(.button) { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; overflow-wrap: anywhere; }
.legal-page a:hover,.legal-page-link:hover { color: var(--accent-hover); }
.legal-ending { max-width: 940px; margin-top: 70px; padding-top: 36px; border-top: 1px solid var(--line); }
.legal-ending p { font-size: clamp(21px,2.4vw,30px); font-weight: 600; margin: 0 0 28px; line-height: 1.5; }
.legal-ending .button { font-size: 21px; white-space: normal; text-align: center; height: auto; min-height: 58px; padding: 16px 26px; }
@media (max-width:359px) { .legal-page .manifesto-block p,.legal-facts,.legal-ending p { font-size: 20px; } }


body:has(#parents-view:not([hidden])) {
  background-color: oklch(22% .045 265);
  background-image: linear-gradient(155deg in oklch, oklch(9% .008 270), oklch(17% .03 268) 45%, oklch(26% .06 265));
  background-attachment: fixed;
}
.parents-opening { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: end; column-gap: 24px; margin-bottom: 40px; }
.parents-heading { min-width: 0; }
.parents-opening h1 { margin-bottom: 0; }
/* Frame the supplied artwork's transparent side margins without cropping the characters. */
.parents-artwork { width: 100%; aspect-ratio: 1.5; }
.parents-illustration { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width:1000px) {
  .parents-opening { grid-template-columns: minmax(0,1fr); row-gap: 24px; margin-bottom: 34px; }
  .parents-artwork { max-width: 600px; justify-self: center; }
}
@media (max-width:600px) {
  .parents-opening { row-gap: 22px; margin-bottom: 28px; }
  .parents-opening h1 { margin-bottom: 0; }
}
