@font-face {
  font-family: Oswald;
  src: url("./assets/fonts/oswald-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
}

    /* COLOR GUIDE: edit these values to change the site's main palette. */
    :root {
      color-scheme: dark;
      --night: #07142c;
      --ocean-deep: #06152f;
      --ocean-mid: #09285a;
      --ocean-blue: #0d3472;
      --ocean-cobalt: #15509b;
      --deep: #172151;
      --panel: rgba(37, 43, 94, .88);
      --line: rgba(120, 226, 255, .32);
      --text: #fffaff;
      --muted: #d8d8f4;
      --aqua: #89fff2;
      --pink: #ffb0ee;
      --violet: #c6a5ff;
      --gold: #fff0ad;
      --glass-rim: rgba(75, 157, 247, .62);
      --glass-tint: rgba(56, 143, 229, .32);
      --radius-sharp: 4px;
      --space-2: 8px;
      --space-3: 12px;
      --space-4: 16px;
      --site-font: "Source Sans 3", system-ui, sans-serif;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      position: relative;
      isolation: isolate;
      min-width: 320px;
      min-height: 100vh;
      margin: 0;
      overflow-x: hidden;
      color: var(--text);
      background-color: #07142c;
      font: 14px/1.45 var(--site-font);
    }

    .ambient-video {
      position: fixed;
      z-index: -1;
      inset: 0;
      overflow: hidden;
      pointer-events: none;
      background: #07142c url("./assets/original-ocean.webp") center / cover no-repeat;
    }
    .ambient-video iframe {
      position: absolute;
      top: 50%;
      left: 50%;
      width: max(100vw, 177.78vh);
      height: max(100vh, 56.25vw);
      border: 0;
      transform: translate(-50%, -50%);
      opacity: 0;
    }
    .ambient-video.is-playing iframe {
      opacity: 1;
      transition: opacity .35s ease;
    }
    @media (prefers-reduced-motion: reduce) {
      .ambient-video iframe { display: none; }
    }
    body { background:#07142c; }
    button, a { color: inherit; font: inherit; }
    button { cursor: pointer; }
    a { text-decoration: none; }
    :focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
    [hidden] { display: none !important; }

    /* The shell keeps the desktop player and both sidebars in one stable frame. */
    .shell { min-height: 100svh; position: relative; isolation: isolate; }
    .shell::before {
      position: fixed;
      z-index: -1;
      inset: 0;
      content: "";
      pointer-events: none;
      opacity: .3;
      background:
        radial-gradient(circle at 8% 29%, #4e8fe6b8 0 1px, #3c79d277 2px, transparent 6px),
        radial-gradient(circle at 89% 17%, #4a88e4d9 0 1px, #2869c688 2px, transparent 7px),
        radial-gradient(circle at 74% 83%, #4381d5b8 0 1px, #2059ae88 2px, transparent 7px),
        radial-gradient(circle at 20% 78%, #3f7cdaa8 0 1px, #285daf77 2px, transparent 6px),
        radial-gradient(circle at 50% 8%, #4a8de0bb 0 1px, #2c64bd77 2px, transparent 6px);
      animation: bubble-drift 9s ease-in-out infinite alternate;
    }
    .topbar {
      position: relative;
      z-index: 2;
      height: 62px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: min(1480px, 100%);
      margin: 0 auto;
      padding: 0 22px;
      border-bottom: 1px solid #bffaff55;
      background: linear-gradient(180deg, rgba(24,80,163,.2), transparent);
      box-shadow: 0 1px #70e9e412;
    }
    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      border: 0;
      padding: 0;
      background: transparent;
      font: 1.16rem var(--site-font);
      letter-spacing: .16em;
    }
    .brand-logo {
      display: block;
      width: 36px;
      height: 36px;
      flex: none;
      object-fit: contain;
    }
    .top-actions { display: flex; align-items: center; gap: 12px; }
    .status {
      display: flex;
      align-items: center;
      gap: 7px;
      color: var(--muted);
      font-size: .63rem;
      letter-spacing: .13em;
      text-transform: uppercase;
    }
    .status-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--aqua);
      box-shadow: 0 0 4px var(--aqua);
      animation: pulse 2s ease-in-out infinite;
    }
    .sound-toggle {
      --button-tint: var(--aqua);
      border-radius: var(--radius-sharp);
      padding: 7px 12px;
      color: var(--text);
      font-size: .62rem;
    }
    .sound-toggle[aria-pressed="true"] { color: var(--aqua); border-color: #9af7e877; }

    .layout {
      width: min(1480px, 100%);
      min-height: calc(100svh - 62px);
      margin: 0 auto;
      padding: clamp(28px, 8svh, 72px) 20px 24px;
      display: grid;
      grid-template-columns: minmax(0, 205px) minmax(0, 1fr) minmax(0, 174px);
      grid-template-areas: "left stage nav";
      align-items: stretch;
      align-content: start;
      gap: var(--space-4);
    }
    .rail { min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
    .nav-rail { grid-area: nav; align-self: stretch; padding-top: 0; }
    .left-rail { grid-area: left; display: grid; height: 100%; min-height: 0; grid-template-rows: minmax(220px, 1fr) auto auto; }
    .left-rail > * { width:100%; min-width:0; }
    .glass {
      border: 1px solid rgba(147, 200, 255, .54);
      border-radius: var(--radius-sharp);
      background:
        linear-gradient(180deg, rgba(63, 122, 201, .18), transparent 19%),
        radial-gradient(ellipse at 15% 0%, rgba(25, 85, 177, .3), transparent 48%),
        linear-gradient(145deg, rgba(8, 39, 91, .84), rgba(5, 23, 57, .91) 58%, rgba(8, 42, 96, .86));
      box-shadow: inset 0 1px 0 rgba(226, 246, 255, .55), inset 0 -12px 24px rgba(3, 13, 39, .34), 0 10px 26px rgba(2, 10, 29, .3);
      -webkit-backdrop-filter: blur(10px) saturate(145%);
      backdrop-filter: blur(10px) saturate(145%);
    }
    .series-card {
      min-height: 220px;
      display: grid;
      align-self:stretch;
      place-items: center;
      padding: 14px;
      border-radius: var(--radius-sharp);
      text-align: center;
      background:
        radial-gradient(circle at 50% 38%, rgba(30,102,208,.38) 0 2%, transparent 34%),
        radial-gradient(ellipse at 20% 0%, rgba(18,79,174,.34), transparent 42%),
        linear-gradient(145deg, rgba(8,44,101,.8), rgba(6,29,73,.88) 52%, rgba(5,20,52,.92));
      box-shadow: inset 0 2px 0 rgba(255,255,255,.46), inset 0 -8px 16px #15134488, 0 8px 18px #080b3155;
    }
    .series-card button { width: 100%; min-width: 0; height: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; padding: 0; background: none; cursor: pointer; transition: transform .3s ease, filter .3s ease; }
    .series-card:has(button:hover) { box-shadow:0 14px 32px rgba(29,111,205,.22) !important; }
    .series-logo { display: block; width: 58px; height: 58px; object-fit: contain; }
    .series-summary { max-width: 30ch; margin: 8px 0 0; color: rgba(227,239,255,.82); font-size: .68rem; line-height: 1.5; }
    .series-name { display: block; margin-top: 8px; font: 1.1rem var(--site-font); letter-spacing: .16em; }
    .series-caption { display: block; margin-top: 2px; color: var(--muted); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; }
    .section-label {
      margin: 0 0 9px;
      color: var(--aqua);
      font-size: .62rem;
      font-weight: 700;
      letter-spacing: .14em;
      text-transform: uppercase;
    }
    .cast-card { width: 100%; padding: 12px; color: var(--text); text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, filter .18s ease; }
    .cast-card:hover { transform: translateY(-2px); border-color: #ff9fcf9c; filter: brightness(1.12); }
    .cast-icons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
    .cast-icon {
      position:relative;
      overflow:hidden;
      aspect-ratio: 1;
      display: grid;
      place-items: center;
      border: 1px solid rgba(116, 205, 224, .72);
      border-radius: var(--radius-sharp);
      color: #211d43;
      background: linear-gradient(145deg, rgba(31,94,188,.62), transparent 34%), var(--icon-color);
      font: 1rem var(--site-font);
      box-shadow: 0 2px 7px rgba(1, 9, 25, .32);
      transition: transform .18s ease, box-shadow .18s ease;
    }
    .cast-icon img { position:absolute; inset:0; width:100%; height:100%; max-width:none; object-fit:cover; object-position:center 9%; border-radius:inherit; }
    .cast-hint { margin: 8px 0 0; color: var(--muted); font-size: .64rem; }
    /* Square festival artwork keeps the award visible in the compact side rail. */
    .laurel {
      width: 100%;
      aspect-ratio: 1;
      min-height: 0;
      margin: 0;
      overflow: hidden;
      padding: 4px;
      border-color: rgba(91,157,220,.18);
      border-radius: var(--radius-sharp);
      background: rgba(17,43,77,.3);
      box-shadow: 0 12px 30px rgba(1,9,25,.28);
    }
    .laurel img {
      display: block;
      width: 100%;
      height: 100%;
      border-radius: var(--radius-sharp);
      object-fit: cover;
      filter:brightness(.48) saturate(.62) contrast(1.16);
      mix-blend-mode:screen;
    }
    .poster-button { display:block; width:100%; height:100%; padding:0; border:0; background:none; cursor:zoom-in; }
    .poster-button:focus-visible { outline:2px solid #65c9ff; outline-offset:3px; border-radius: var(--radius-sharp); }
    .poster-button img { transition:transform .38s cubic-bezier(.2,.7,.2,1), filter .38s ease; }
     .poster-button:hover { box-shadow:inset 0 0 24px rgba(65,166,255,.35); }

    .stage { grid-area: stage; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
    .player {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      max-height: 64svh;
      overflow: hidden;
      border: 3px solid #d7ffff;
      border-radius: var(--radius-sharp);
      background:
        radial-gradient(ellipse at 50% 45%, rgba(34,99,199,.48) 0 2%, transparent 24%),
        radial-gradient(ellipse at 72% 84%, rgba(15,68,150,.48) 0 2%, transparent 28%),
        linear-gradient(145deg, #0b2b61, #06142c 72%);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.92),
        0 0 0 2px #ba9fff82,
        0 10px 28px #09081799;
    }

    .player iframe { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; border: 0; }
    .player-poster {
      position: absolute;
      z-index: 1;
      inset: 0;
      width: 100%;
      height: 100%;
      display: grid;
      place-items: center;
      overflow: hidden;
      border: 0;
      padding: 0;
      background:
        radial-gradient(ellipse at 50% 44%, rgba(24, 80, 168, .42), transparent 40%),
        radial-gradient(circle at 18% 24%, rgba(35, 101, 197, .2), transparent 14%),
        linear-gradient(145deg, #0a285d, #04132d 70%);
      cursor: pointer;
    }
    .player-poster img { width: 100%; height: 100%; object-fit: cover; }
    .player-poster img.is-unavailable { visibility: hidden; }
    .player-play-icon {
      position: absolute;
      width: 68px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 11px;
      color: white;
      background: #f03;
      box-shadow: 0 4px 16px rgba(0,0,0,.38);
      transition: transform .18s ease, filter .18s ease;
    }
    .player-play-icon svg { width: 28px; height: 28px; }
    .player-poster:hover .player-play-icon { transform: scale(1.07); filter: brightness(1.08); }
    .player-poster:focus-visible { outline: 3px solid var(--aqua); outline-offset: -5px; }
    .player-message {
      position: absolute;
      z-index: 2;
      right: 12px;
      bottom: 12px;
      left: 12px;
      width: fit-content;
      max-width: calc(100% - 24px);
      margin: 0 auto;
      padding: 8px 13px;
      border: 1px solid #f5e9ff;
      border-radius: var(--radius-sharp);
      color: #fffaff;
      background: linear-gradient(145deg, rgba(20,79,168,.44), #071b45);
      box-shadow: inset 0 1px 2px #70e9e4a8, 0 3px 8px #05092588;
      font-size: .65rem;
      text-align: center;
      backdrop-filter: blur(9px);
      pointer-events: none;
    }
    .episode-info {
      min-height: 86px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 14px;
      padding: var(--space-3) var(--space-4);
      border: 1px solid #dffeffbb;
      border-radius: var(--radius-sharp);
      background:
        radial-gradient(ellipse at 6% 0%, rgba(31,91,177,.48) 0 2%, transparent 22%),
        radial-gradient(ellipse at 100% 90%, rgba(13,59,137,.55) 0 2%, transparent 26%),
        linear-gradient(115deg, #0b3478, #08285f 58%, #061c46);
      box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -6px 12px #14143e80, 0 8px 18px #070b3155;
    }
    .episode-info-copy { min-width: 0; }
    .eyebrow { margin: 0 0 4px; color: var(--aqua); font-size: .6rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
    .episode-info h1 { margin: 0; font: clamp(1.2rem, 2.3vw, 1.8rem)/1.08 var(--site-font); }
    .episode-info p:last-child { margin: 5px 0 0; color: var(--muted); font-size: .85rem; }
    .watch-button {
      --button-tint: var(--violet);
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
      border-radius: var(--radius-sharp);
      color: white;
      font-size: .62rem;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .watch-button:hover { filter: brightness(1.05); transform: translateY(0); }
    .episode-youtube-link { margin-top: 14px; }

    .nav-rail { display: flex; flex-direction: column; gap: 9px; align-self: stretch; padding-top: 0; }
    .nav-button {
      --button-tint: var(--accent, var(--aqua));
      min-height: 60px;
      display: flex;
      align-items: center;
      gap: 8px;
      border-radius: var(--radius-sharp);
      padding: 8px 11px;
      color: var(--text);
      text-align: left;
    }
    .nav-button:hover { transform: translateX(-1px); border-color: #9af7e899; filter: brightness(1.04); }
    .nav-button[aria-pressed="true"] { border-color: #9af7e899; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 8px rgba(5,14,45,.28); }
    .nav-icon {
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      border: 0;
      border-radius: 0;
      color: var(--accent);
      background: transparent;
      box-shadow: 0 5px 14px rgba(3,13,35,.28);
    }
    .nav-icon svg { width: 19px; }
    .nav-button strong { display: block; font: 1rem var(--site-font); }
    .nav-button small { display: block; margin-top: 2px; color: var(--muted); font-size: .59rem; }
    .nav-button:nth-child(1) { --accent: var(--aqua); }
    .nav-button:nth-child(2) { --accent: var(--pink); }
    .nav-button:nth-child(3) { --accent: var(--violet); }
    .nav-button:nth-child(4) { --accent: var(--gold); }

    /* One movable information window stays above the playing video. */
    .modal {
      position: fixed;
      z-index: 20;
      top: 50%;
      left: 50%;
      width: min(560px, calc(100vw - 28px));
      max-height: min(86svh, 820px);
      min-width:280px;
      min-height:220px;
      max-width: min(92vw, 1100px);
      display: flex;
      flex-direction: column;
      overflow: auto;
      resize: both;
      border: 1.5px solid #69e8e699;
      border-radius: var(--radius-sharp);
      background:
        radial-gradient(ellipse at 12% 0%, rgba(29,94,192,.42) 0 2%, transparent 22%),
        radial-gradient(ellipse at 95% 100%, rgba(13,55,133,.5) 0 2%, transparent 28%),
        linear-gradient(145deg, rgba(8, 39, 91, .97), rgba(5, 20, 51, .98));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.46), 0 18px 56px #080715c7;
      transform: translate(-50%, -50%);
      -webkit-backdrop-filter: blur(28px) saturate(165%);
      backdrop-filter: blur(28px) saturate(165%);
    }
    .modal[hidden] { display: none; }
    .modal:not([hidden]) { animation: window-in .16s ease-out; }
    .modal-header {
      min-height: 52px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 8px 12px 8px 17px;
      border-bottom: 1px solid #62dfe26e;
      background: radial-gradient(ellipse at 16% 0%, rgba(38,101,192,.28), transparent 58%), linear-gradient(100deg, #0c367a, #09285f 62%, #071d47);
      box-shadow: inset 0 2px 0 #53dfe744, 0 2px 10px #090c3855;
      cursor: grab;
      touch-action: none;
      user-select: none;
    }
    .modal-header:active { cursor: grabbing; }
    .modal-heading { display: flex; align-items: center; gap: 9px; font: 1rem var(--site-font); }
    .drag-mark { color: var(--aqua); font: 1rem var(--site-font); letter-spacing: -.1em; }
    .modal-close {
      width: 32px;
      height: 32px;
      display: grid;
      place-items: center;
      border: 1px solid #82e9e6ca;
      border-radius: 50%;
      color: var(--text);
      background: linear-gradient(145deg, rgba(37,103,197,.62), #071a42);
      box-shadow: inset 0 1px 2px #70e9e4b8, 0 3px 8px #080b3155;
      font-size: 1rem;
    }
    .modal-body { overflow:auto; padding:16px; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#56b8f2 rgba(9,28,61,.42); }
    .modal-body::-webkit-scrollbar { width:9px; }
    .modal-body::-webkit-scrollbar-track { margin:8px 2px; border:1px solid rgba(91,157,220,.16); border-radius:99px; background:rgba(5,20,48,.42); }
    .modal-body::-webkit-scrollbar-thumb { border:2px solid rgba(8,27,58,.78); border-radius:99px; background:linear-gradient(180deg,#174d9c,#0b3473 55%,#061b43); box-shadow:0 0 9px rgba(65,166,255,.24); }
    .poster-view { display:block; width:100%; height:auto; max-height:calc(100svh - 170px); object-fit:contain; margin:auto; border-radius: var(--radius-sharp); }
    .modal:has(.poster-view) { width:min(820px,calc(100vw - 28px)); }
    .modal-title { margin: 0; font: 1.55rem/1.1 var(--site-font); }
    .modal-lede { margin: 6px 0 14px; color: var(--muted); font-size: .76rem; }
    .modal-note { margin: 12px 0 0; color: var(--muted); font-size: .68rem; }

    .episode-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .episode-card {
      position: relative;
      min-width: 0;
      min-height: 60px;
      display: grid;
      grid-template-columns: 36px minmax(0, 1fr) 10px;
      align-items: center;
      gap: 10px;
      padding: 7px 14px 7px 8px;
      text-align: left;
    }
    .episode-number {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border: 1px solid #c6f9ff50;
      border-radius: 50%;
      color: #e8fbff;
      background: #041c367a;
      font: 600 .74rem var(--site-font);
      font-variant-numeric: tabular-nums;
    }
    .episode-card strong { display: block; font: 600 .92rem/1.2 var(--site-font); }
    .episode-card small { display: block; margin-top: 3px; color: #c6ffef; font: 600 .66rem/1.15 var(--site-font); }
    .episode-card .episode-current { display: none; }
    .episode-card[aria-current="true"] .episode-current { display: block; }
    .episode-play-icon {
      width: 9px;
      height: 11px;
      background: #e4fff5;
      clip-path: polygon(0 0, 100% 50%, 0 100%);
    }

    .character-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .character-card {
      display: grid;
      grid-template-columns: 72px minmax(0, 1fr);
      align-items: center;
      gap: 10px;
      border: 1px solid rgba(91,157,220,.22);
      border-radius: var(--radius-sharp);
      padding: 10px;
      background: rgba(9, 24, 53, .58);
      box-shadow: 0 8px 20px rgba(0, 6, 19, .2);
      text-align: left;
      transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    }
    .character-card:hover { border-color: #ff9fcf9c; transform: translateY(-2px); }
    .portrait {
      width: 72px;
      height: 76px;
      aspect-ratio: 1;
      display: grid;
      place-items: center;
      overflow: hidden;
      border: 1px solid rgba(112, 210, 224, .76);
      border-radius: var(--radius-sharp);
      color: white;
      background: linear-gradient(145deg, rgba(24,79,160,.34), rgba(5,19,47,.9)), var(--portrait-bg);
      box-shadow: 0 3px 10px rgba(0, 6, 19, .3);
      font: 1.3rem var(--site-font);
    }
    .portrait img { width:100%; height:100%; object-fit:cover; object-position:center 8%; transform:none; }
    .portrait img[alt="Yunoire"] { object-position:center 4%; }
    .portrait img[alt="Charlotte"] { object-position:center 10%; }
    .portrait img[alt="Apollo"] { object-position:center 7%; }
    .character-detail .portrait { width: 132px; height: 146px; }
    .character-card strong { display: block; font: .95rem var(--site-font); }
    .character-card small { display: block; margin-top: 4px; color: var(--muted); font-size: .62rem; line-height: 1.4; }

    .social-link, .contact-link { color: var(--aqua); text-decoration: underline; text-underline-offset: 3px; }
    button.social-link { display:inline-flex; align-items:center; min-height:34px; margin:0; padding:6px 10px; border:1px solid rgba(150,210,255,.45); border-radius: var(--radius-sharp); background:rgba(30,81,130,.28); text-decoration:none; cursor:pointer; }
    .about-copy { max-width: 60ch; color: #e9e4f8; font: 1.05rem/1.6 var(--site-font); }
    .fact-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
    .fact { border: 1px solid var(--line); border-radius: var(--radius-sharp); padding: 6px 9px; color: var(--aqua); font-size: .61rem; }
    .character-detail { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 16px; margin-top: 14px; }
    .contact-box { border: 1px solid var(--line); border-radius: var(--radius-sharp); padding: 14px; background: linear-gradient(135deg, #0b2d68, #061936); }
    .contact-box p { margin-top: 0; color: var(--muted); font-size: .78rem; }
    .contact-box a { display: inline-block; margin: 5px 12px 3px 0; }

    .mobile-series-intro { display:none; }
    .mobile-laurel { display:none; }
    .mobile-nav { display: none; }
    .footer { position: absolute; right: 0; bottom: 7px; left: 0; width: min(1480px, 100%); margin: 0 auto; padding: 0 18px; color: #aaa6c4; text-align: center; font-size: .58rem; }

    @keyframes pulse { 50% { opacity: .45; } }
    @keyframes float { 50% { transform: translateY(-5px); } }
    @keyframes bubble-drift { to { transform: translateY(-12px); } }
    @keyframes window-in { from { opacity: 0; scale: .97; } to { opacity: 1; scale: 1; } }
     @media (max-width: 980px) {
      .topbar { height: 54px; }
      .nav-button { padding: 7px; gap: 7px; }
      .nav-icon { width: 30px; height: 30px; }
      .nav-button strong { font-size: .9rem; }
      .laurel { padding: 4px; }
      .episode-info { min-height: 72px; padding: 10px; }
    }
    @media (max-width: 820px) {
      .status { display: none; }
      .layout { display:flex; flex-direction:column; align-items:stretch; }
      .left-rail, .nav-rail { display: none; }
      .stage { width:100%; }
      .mobile-series-intro {
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
        width:100%;
        margin-top:12px;
        padding:13px 14px;
        color:var(--text);
        text-align:left;
        background:rgba(8,22,48,.46);
        border-color:rgba(91,157,220,.24);
      }
      .mobile-series-intro-copy { min-width:0; }
      .mobile-series-intro strong { display:block; font:1rem/1.2 var(--site-font); }
      .mobile-series-intro small { display:block; margin-top:4px; color:var(--muted); font-size:.65rem; line-height:1.45; }
      .mobile-series-intro svg { width:18px; height:18px; flex:0 0 auto; color:#81c8ff; }
      .mobile-laurel { display:flex; flex:0 0 auto; align-items:center; gap:12px; width:100%; margin:12px auto 16px; padding:10px; text-align:left; color:var(--text); background:rgba(8,22,48,.48); border:1px solid rgba(91,157,220,.24); }
      .mobile-laurel img { width:56px; height:56px; object-fit:cover; filter:brightness(.55) saturate(.65); }
      .mobile-laurel strong,.mobile-laurel small { display:block; }
      .mobile-laurel small { margin-top:3px; color:var(--muted); font-size:.68rem; }
      .mobile-laurel-arrow { width:20px; height:20px; margin-left:auto; flex:0 0 auto; color:#75baff; }
      .player-message { bottom: 8px; font-size: .58rem; }
      .episode-info { display:grid; align-items:center; }
      .eyebrow { margin-bottom: 3px; font-size: .51rem; }
      .episode-info h1 { line-height:1.15; }
      .episode-info p:last-child { margin-top:3px; }
      .watch-button { max-width:100px; white-space:normal; text-align:center; padding:7px 8px; font-size:.52rem; }
      /* Dock placement; visual treatment lives in the final handheld section. */
      .mobile-nav {
        position:fixed;
        z-index:10;
        right:12px;
        bottom:calc(10px + env(safe-area-inset-bottom));
        left:12px;
        display:grid;
      }
      .mobile-nav button {
        --button-tint:var(--accent,var(--aqua));
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
      }
      .mobile-nav button:nth-child(1) { --accent: var(--aqua); }
      .mobile-nav button:nth-child(2) { --accent: var(--pink); }
      .mobile-nav button:nth-child(3) { --accent: var(--violet); }
      .mobile-nav button:nth-child(4) { --accent: var(--gold); }
      .modal {
        resize:none;
        top: 56px;
        bottom: calc(76px + env(safe-area-inset-bottom));
        left: 50%;
        width: calc(100vw - 20px);
        max-height: none;
        min-height: 0;
        transform: translateX(-50%);
        border-radius: var(--radius-sharp);
      }
      .modal-body { min-height: 0; flex: 1; overflow-y: auto; padding: 14px; }
      .modal-header { min-height: 44px; }
      .modal-body { padding: 12px; }
      .modal-title { font-size: 1.35rem; }
      .modal-lede { margin: 5px 0 11px; font-size: .68rem; }
      .episode-list, .character-grid { grid-template-columns: 1fr; }
      .character-detail { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
      .character-detail .portrait { width: 96px; height: 116px; }
      .footer { display:none; }
      }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
      }
  
    /* Reusable glossy button finish: one sharp catch-light and a compact colored shadow. */
    .gloss-button {
      --button-tint: var(--glass-tint);
      position: relative;
      isolation: isolate;
      overflow: hidden;
      border: 1px solid var(--glass-rim);
      background:
        linear-gradient(180deg, rgba(101,160,232,.72) 0 1px, rgba(54,119,202,.45) 2px, transparent 7px),
        radial-gradient(ellipse 90% 70% at 50% -4%, rgba(35,101,195,.3), transparent 64%),
        linear-gradient(180deg, rgba(18,67,145,.58), rgba(9,38,88,.72) 42%, rgba(5,20,50,.86));
      box-shadow:
        inset 0 1px 0 rgba(245,252,255,.98),
        inset 0 0 0 1px rgba(162,215,255,.24),
        inset 0 -1px 0 rgba(4,18,49,.7),
        0 3px 9px rgba(2,12,34,.34);
      -webkit-backdrop-filter: blur(5px) saturate(135%);
      backdrop-filter: blur(5px) saturate(135%);
      transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    }
    .gloss-button:active {
      transform: translateY(1px);
      filter: brightness(.98);
      transition-duration: .08s;
    }
    /* One deliberate corner system: sharp 4px edges for all boxed UI surfaces. */
    .glass, .series-card, .cast-card, .laurel, .player, .episode-info,
    .nav-button, .gloss-button, .modal, .character-card,
    .contact-box {
      border-radius: var(--radius-sharp);
      border-width:1px;
    }
    .cast-icon:nth-child(2) img { object-position:center 4%; }

    /* Classic glass finish: one quiet edge, translucent fill, soft lift. */
    .glass, .gloss-button, .player, .episode-info, .modal, .character-card,
    .contact-box {
      border:1px solid rgba(91,157,220,.12);
      box-shadow:0 12px 30px rgba(1,9,25,.28);
      -webkit-backdrop-filter:blur(14px) saturate(125%);
      backdrop-filter:blur(14px) saturate(125%);
    }
    .gloss-button { background: rgba(17,43,77,.28); }
    .series-card {
      border:1px solid rgba(116,172,232,.3);
      background:rgba(24,42,91,.38);
      box-shadow:0 12px 30px rgba(1,9,25,.3);
      -webkit-backdrop-filter:blur(16px) saturate(125%);
      backdrop-filter:blur(16px) saturate(125%);
    }
    .player { border-color: rgba(91,157,220,.2); }

    /* Dark liquid glass: let the moving ocean show through the interface. */
    .topbar { background: rgba(3,12,29,.48); backdrop-filter: blur(18px) saturate(135%); }
    .episode-info {
      background:rgba(8,22,48,.48);
      border-color:rgba(91,157,220,.24);
      -webkit-backdrop-filter:blur(18px) saturate(140%);
      backdrop-filter:blur(18px) saturate(140%);
      box-shadow:0 10px 28px rgba(0,6,19,.3);
    }
    .mobile-nav {
      background:rgba(7,19,43,.58);
      border-color:rgba(91,157,220,.28);
      -webkit-backdrop-filter:blur(22px) saturate(145%);
      backdrop-filter:blur(22px) saturate(145%);
      box-shadow:0 12px 32px rgba(0,5,18,.38);
    }
    .mobile-nav button { background: rgba(27,51,91,.28); border-color: rgba(112,171,231,.14); }
    .sound-toggle { background: rgba(14,35,67,.48); backdrop-filter: blur(12px); }

    /* Shared interaction states: a small lift and a cool blue glass response. */
    @media (hover:hover) and (pointer:fine) {
      .nav-button, .character-card, .series-card, .cast-card,
      .poster-button, .watch-button, .mobile-nav button, .sound-toggle {
        transition:transform .22s ease, border-color .22s ease, background-color .22s ease, box-shadow .22s ease, filter .22s ease;
      }
      .nav-button:hover, .character-card:hover,
      .watch-button:hover, .mobile-nav button:hover, .sound-toggle:hover {
        transform:translateY(-2px);
        border-color:rgba(95,176,255,.48);
        background-color:rgba(43,92,145,.3);
        box-shadow:0 8px 20px rgba(0,13,36,.34);
      }
      .cast-card:hover { transform: translateY(-2px); border-color: rgba(95,176,255,.48); }
      .series-card button:hover { transform: translateY(-2px); filter: brightness(1.08); }
      .gloss-button:hover { filter: saturate(1.22) brightness(1.08); }
      .poster-button:hover img { transform: scale(1.035); filter: brightness(.66) saturate(.82) contrast(1.12); }
      }
    .nav-button:focus-visible, .episode-card:focus-visible, .character-card:focus-visible,
    .poster-button:focus-visible, .series-card button:focus-visible, .cast-card:focus-visible {
      outline:2px solid rgba(102,190,255,.88);
      outline-offset:3px;
    }
    .nav-button:active, .character-card:active,
    .poster-button:active, .mobile-nav button:active { transform:scale(.985); }


    .instagram-preview { display:flex; align-items:center; gap:14px; margin:18px 0 12px; padding:16px; border:1px solid rgba(91,157,220,.22); border-radius: var(--radius-sharp); background:rgba(7,20,45,.42); }
    .instagram-mark { width:48px; height:48px; display:grid; place-items:center; flex:none; border:1px solid rgba(111,185,244,.32); border-radius:50%; color:#a6d9ff; font-size:2rem; line-height:1; }
    .instagram-preview strong,.instagram-preview small { display:block; }
    .instagram-preview small { margin-top:4px; color:var(--muted); font-size:.72rem; }
    .instagram-visit { display:inline-flex; align-items:center; gap:10px; padding:9px 12px; border:1px solid rgba(91,157,220,.26); border-radius: var(--radius-sharp); background:rgba(17,43,77,.32); }

    /* Tablet and compact desktop: keep the video roomy and give the side cards their own row. */
    @media (821px <= width < 1180px) {
      .layout {
        width: min(1180px, 100%);
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) 170px;
        grid-template-areas:
          "stage nav"
          "left left";
        align-items: start;
        gap: 12px;
        padding: clamp(24px, 5svh, 48px) 18px 30px;
      }
      .left-rail {
        display: grid;
        height: auto;
        min-height: 0;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(160px, .85fr);
        grid-template-rows: auto;
        align-items: stretch;
        gap: 12px;
      }
      .series-card { min-height: 220px; height: auto; }
      .series-card button { height: 100%; }
      .cast-card { min-height: 0; }
      .laurel { width: min(100%, 220px); height: auto; aspect-ratio: 1; align-self: center; justify-self: center; }
      .nav-rail { gap: 10px; }
      .nav-button { min-height: 58px; }
    }

/* Character archive dossier sections */
.dossier-tabs { display:flex; gap:7px; margin:12px 0 10px; }
.dossier-tab { border:1px solid rgba(75,157,247,.42); border-radius: var(--radius-sharp); padding:7px 10px; color:var(--muted); background:linear-gradient(145deg,#0b2d68,#061936); font:600 .68rem var(--site-font); cursor:pointer; }
.dossier-tab.is-active { color:var(--text); border-color:#3984e8; background:linear-gradient(145deg,#124080,#092654); }
.dossier-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0; }
.dossier-facts div { padding:10px; border:1px solid rgba(75,157,247,.28); border-radius: var(--radius-sharp); background:linear-gradient(145deg,rgba(11,45,104,.78),rgba(6,25,54,.92)); }
.dossier-facts dt { color:var(--aqua); font-size:.62rem; letter-spacing:.08em; text-transform:uppercase; }
.dossier-facts dd { margin:4px 0 0; font: .9rem var(--site-font); }
.dossier-zodiac { display:block; margin-top:3px; color:var(--muted); font: .7rem var(--site-font); }

.player-play-icon {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(111, 180, 255, .7);
  border-radius: 50%;
  background: rgba(7, 30, 70, .78);
  box-shadow: 0 3px 18px rgba(0, 5, 20, .48), inset 0 1px 0 rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
}
.player-play-icon svg { width: 20px; height: 20px; }


/* Mobile console treatment: one series screen, clear playback panel, and system dock. */
@media (max-width: 820px) {
  .topbar {
    height:60px;
    padding-inline:14px;
    border-bottom-color:rgba(88,178,221,.32);
    background:linear-gradient(180deg,rgba(5,18,39,.94),rgba(4,13,29,.78));
  }
  .brand { gap:8px; font-size:1rem; letter-spacing:.14em; }
  .brand-logo { width:32px; height:32px; }
  .top-actions { gap:8px; }
  .status { font-size:.48rem; letter-spacing:.08em; }
  .sound-toggle { padding:7px 9px; font-size:.55rem; }
  .layout { min-height:0; }
  .player {
    aspect-ratio:16 / 9;
    max-height:none;
    border:1px solid rgba(91,157,220,.36);
    border-radius: var(--radius-sharp);
    background:rgba(3,11,25,.92);
    box-shadow:0 10px 24px rgba(0,4,15,.38);
  }
  .episode-info {
    border-color:rgba(91,157,220,.26);
    border-radius: var(--radius-sharp);
    background:rgba(7,20,43,.72);
    box-shadow:0 8px 18px rgba(0,5,19,.24);
  }
  .episode-info p:last-child { max-width:42ch; }
  .watch-button {
    max-width:none;
    min-height:38px;
    padding:8px 10px;
    border-color:rgba(91,157,220,.25);
    border-radius: var(--radius-sharp);
    font-size:.53rem;
    white-space:nowrap;
  }
  .mobile-series-intro {
    margin-top:2px;
    padding:12px 13px;
    border-color:rgba(91,157,220,.24);
    border-radius: var(--radius-sharp);
    background:linear-gradient(100deg,rgba(8,24,50,.84),rgba(10,33,60,.68));
    box-shadow:0 8px 18px rgba(0,5,19,.2);
  }
  .mobile-series-intro strong { font-family:var(--site-font); font-weight:700; }
  .mobile-series-intro small { font-size:.67rem; }
  .mobile-laurel {
    margin:0 auto 8px;
    border-color:rgba(91,157,220,.22);
    border-radius: var(--radius-sharp);
    background:rgba(7,20,43,.68);
  }
  /* Dock placement; visual styling is maintained in the final mobile section. */
  .mobile-nav {
    right:10px;
    left:10px;
  }


}


/* Sidebars use a neutral ocean-smoke glass; color stays in the small icons. */
.left-rail > .glass {
  border-color:rgba(126,158,184,.16);
  background:linear-gradient(145deg,rgba(12,20,31,.56),rgba(3,8,17,.52));
  box-shadow:0 10px 24px rgba(0,3,10,.22),inset 0 1px 0 rgba(191,221,238,.035);
  -webkit-backdrop-filter:blur(14px) saturate(90%);
  backdrop-filter:blur(14px) saturate(90%);
}
.nav-button {
  border-color:rgba(126,158,184,.14);
  background:linear-gradient(145deg,rgba(12,20,31,.58),rgba(3,8,17,.52));
  box-shadow:0 7px 18px rgba(0,3,10,.2),inset 0 1px 0 rgba(191,221,238,.03);
  -webkit-backdrop-filter:blur(13px) saturate(90%);
  backdrop-filter:blur(13px) saturate(90%);
}
.nav-button:hover,
.nav-button[aria-pressed="true"] {
  border-color:rgba(117,190,194,.3);
  background:linear-gradient(145deg,rgba(18,31,40,.68),rgba(4,12,21,.62));
  box-shadow:0 8px 18px rgba(0,3,10,.24),inset 0 1px 0 rgba(191,221,238,.04);
}

/* One ripple layer handles taps, held touches, and reduced-motion fallback. */
.background-ripple {
  position:fixed;
  z-index:15;
  top:var(--ripple-y);
  left:var(--ripple-x);
  width:clamp(6rem,12vw,8rem);
  aspect-ratio:1;
  overflow:visible;
  border:0;
  border-radius:50%;
  pointer-events:none;
  mix-blend-mode:screen;
  background:none;
  transform:translate(-50%,-50%);
  transition:opacity .62s ease-out;
}
.background-ripple .ripple-ring {
  position:absolute;
  inset:0;
  border:1px solid rgba(111,204,225,.38);
  border-top-color:rgba(185,242,241,.66);
  border-right-color:rgba(104,182,216,.36);
  border-bottom-color:rgba(61,132,188,.22);
  border-left-color:rgba(91,173,211,.3);
  border-radius:50% 48% 53% 47% / 48% 52% 47% 53%;
  opacity:0;
  transform:scale(.08,.06) rotate(-2deg);
  animation:ripple-front 1.76s cubic-bezier(.2,.58,.34,1) both;
}
.background-ripple .ripple-ring--2 { animation-delay:.18s; }
.background-ripple .ripple-ring--3 { animation-delay:.36s; }
@keyframes ripple-front {
  0% { opacity:0; transform:scale(.08,.06) rotate(-2deg); border-radius:50% 48% 53% 47% / 48% 52% 47% 53%; }
  11% { opacity:.72; }
  58% { opacity:.4; }
  100% { opacity:0; transform:scale(2.18,1.72) rotate(3deg); border-radius:47% 53% 48% 52% / 52% 47% 53% 48%; }
}
.background-ripple--static {
  opacity:.86;
  transform:translate(-50%,-50%);
  transition:opacity .2s ease-out;
}
.background-ripple--static .ripple-ring {
  animation:none;
  opacity:.35;
  transform:scale(.9,.74);
}
.background-ripple--held {
  width:clamp(7rem,14vw,10rem);
  opacity:1;
}
.background-ripple--held .ripple-ring {
  animation:held-wave 2.8s cubic-bezier(.2,.58,.34,1) infinite;
}
.background-ripple--held .ripple-ring--2 { animation-delay:.72s; }
.background-ripple--held .ripple-ring--3 { animation-delay:1.44s; }
@keyframes held-wave {
  0% { opacity:0; transform:scale(.08,.06) rotate(-2deg); }
  12% { opacity:.58; }
  100% { opacity:0; transform:scale(2.05,1.62) rotate(3deg); }
}
.background-ripple--release {
  opacity:0;
}
.background-ripple--release .ripple-ring {
  animation:none;
  opacity:0;
  transition:opacity .48s ease-out;
}


/* Search-readable synopsis, kept as simple editorial text instead of another glass card. */
.series-copy {
  max-width: 70ch;
  padding: 2px 14px 14px;
  color: rgba(222, 234, 247, .82);
}
.series-copy h2 {
  margin: 0;
  color: var(--text);
  font: clamp(1.05rem, 1.6vw, 1.35rem)/1.2 var(--site-font);
}
.series-copy p:not(.eyebrow) {
  margin: 7px 0 0;
  font-size: .72rem;
  line-height: 1.6;
}
@media (max-width: 820px) {
  .series-copy { padding: 2px 12px 12px; }
  .series-copy h2 { font-size: 1.12rem; }
}

/* ================================================
   ETHEREAL Y2K THEME — visual refinements
   Keep future visual changes in this section.
   The layout and interaction foundation is above.
   ================================================ */
/* Seafoam / Ethereal Y2K
   Understated early-internet fantasy: ocean first, interface second.
   The visual theme is maintained at the end of this stylesheet. */
:root {
  --aqua:#b5e8e6;
  --glass-rim:rgba(170,205,222,.22);
  --radius-sharp:5px;
}
body { background:#061329; }
.shell::before {
  opacity:.23;
  background:
    radial-gradient(circle at 12% 28%,#b8dfff 0 1px,transparent 4px),
    radial-gradient(circle at 86% 17%,#d1e8ff 0 1px,transparent 4px),
    radial-gradient(circle at 76% 81%,#9fd8e7 0 1px,transparent 4px);
}
.topbar {
  background:linear-gradient(180deg,rgba(7,25,49,.54),rgba(5,20,42,.22));
  border-bottom:1px solid rgba(172,212,231,.19);
  box-shadow:none;
}
.brand { color:#e9f5ff; letter-spacing:.17em; text-shadow:0 1px 12px rgba(114,191,210,.15); }
.glass,.left-rail > .glass,.series-card,.nav-button,.episode-info,.modal,.contact-box,.character-card {
  border:1px solid rgba(167,203,223,.2);
  border-radius:5px;
  background:linear-gradient(150deg,rgba(30,67,105,.34),rgba(4,19,45,.54) 65%);
  box-shadow:inset 0 1px rgba(220,246,255,.12),0 9px 24px rgba(0,6,25,.24);
  -webkit-backdrop-filter:blur(13px) saturate(112%);
  backdrop-filter:blur(13px) saturate(112%);
}
.series-card { background:linear-gradient(150deg,rgba(22,62,101,.36),rgba(5,19,46,.57)); }
.series-name { letter-spacing:.18em; text-shadow:none; }
.series-caption,.section-label,.eyebrow { color:#b6e2e4; letter-spacing:.13em; }
.gloss-button,.nav-button,.mobile-nav button,.dossier-tab {
  border:1px solid rgba(157,199,222,.22);
  border-radius:5px;
  background:linear-gradient(180deg,rgba(91,145,183,.21),rgba(10,40,78,.38) 38%,rgba(5,23,51,.52));
  box-shadow:inset 0 1px rgba(228,250,255,.18),0 4px 12px rgba(0,8,30,.17);
}
.nav-icon { border:0; border-radius:0; background:transparent; box-shadow:none; }
.nav-button[aria-pressed="true"],.mobile-nav button[aria-pressed="true"] {
  border-color:rgba(172,228,230,.46);
  background:linear-gradient(145deg,rgba(50,108,136,.4),rgba(5,31,64,.55));
  box-shadow:inset 2px 0 rgba(173,231,232,.58);
}
.player { border:1px solid rgba(193,227,239,.45); border-radius:5px; }
.player-play-icon {
  width:52px;height:52px;border-radius:50%;
  border:1px solid rgba(222,247,250,.65);
  color:#f2ffff;
  background:rgba(6,38,74,.75);
  box-shadow:0 4px 20px rgba(0,8,27,.4),inset 0 1px rgba(255,255,255,.2);
}
.episode-info { background:linear-gradient(120deg,rgba(18,58,99,.48),rgba(4,22,52,.58)); }
.watch-button { color:#f0f9ff; }
.modal {
  border-radius:6px;
  background:linear-gradient(145deg,rgba(12,44,81,.96),rgba(4,18,43,.97));
}
.modal-header {
  border-radius:5px 5px 0 0;
  background:linear-gradient(180deg,rgba(71,130,163,.32),rgba(10,43,81,.77));
}
.modal-close { border-radius:50%; }
.cast-icon { border-color:rgba(182,220,232,.32); border-radius:4px; }
.series-copy h2,.episode-info h1 { text-shadow:none; }
:focus-visible { outline:2px solid #bce9e7; outline-offset:3px; }
@media (hover:hover) and (pointer:fine) {
  .gloss-button:hover,.nav-button:hover {
    border-color:rgba(181,229,230,.5);
    background-color:rgba(34,78,110,.28);
    box-shadow:inset 0 1px rgba(245,255,255,.24),0 7px 19px rgba(0,8,32,.27);
  }
}
@media (max-width:820px) {
  .topbar { background:rgba(5,20,43,.75); }
  .episode-info,.mobile-series-intro,.mobile-laurel { border-radius:5px; }
  .modal { border-radius:6px; }
}
@media (prefers-reduced-motion:reduce) { .shell::before { animation:none; } }



/* Pass 2 — composition before ornament.
   Video remains the focal point; supporting rails are visually quieter. */
:root {
  --text:#f0f5fa;
  --muted:#b9cbd9;
  --line:rgba(183,211,228,.2);
}
body { font-size:14px; line-height:1.55; }
.layout { align-items:start; }
.stage { min-width:0; }
.player {
  overflow:hidden;
  background:#020b1c;
  border-color:rgba(211,233,241,.4);
  box-shadow:0 18px 50px rgba(0,7,24,.52);
}
.player-poster img { display:block; }
.episode-info {
  border-color:rgba(166,202,223,.17);
  box-shadow:none;
  padding-block:18px;
}
.episode-info h1 {
  color:#f4f8ff;
  letter-spacing:-.015em;
  line-height:1.13;
}
.episode-info .eyebrow { color:#a5d9dd; }
.episode-info p:not(.eyebrow) { color:#c2d0dd; }
.series-copy {
  max-width:68ch;
  color:#c5d3df;
}
.series-copy h2 { color:#edf5fa; letter-spacing:-.01em; }
.left-rail .series-card,.left-rail .cast-card,.left-rail .laurel,
.nav-rail .nav-button {
  box-shadow:none;
  border-color:rgba(163,197,217,.14);
  background:rgba(5,24,50,.38);
}
.left-rail .series-card:hover,.left-rail .cast-card:hover,
.nav-rail .nav-button:hover {
  border-color:rgba(177,218,228,.38);
  background:rgba(19,53,82,.5);
}
.nav-rail .nav-button { gap:12px; }
.nav-rail .nav-button strong { color:#e8f1f8; font-weight:600; }
.nav-rail .nav-button small { color:#aebfce; }
.nav-rail .nav-icon { opacity:.82; }
.cast-card .cast-hint,.series-card .series-summary { color:#bacbd9; }
.gloss-button {
  text-shadow:none;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.watch-button {
  background:linear-gradient(180deg,rgba(134,193,208,.3),rgba(22,74,106,.56));
  border-color:rgba(184,232,236,.5);
  color:#f3fcff;
  font-weight:700;
}
.watch-button:hover { border-color:rgba(223,249,251,.8); }
.modal { box-shadow:0 24px 85px rgba(0,5,23,.65); }
.modal-header { border-bottom:1px solid rgba(192,223,235,.22); }
@media (prefers-reduced-motion:reduce) {
  .gloss-button { transition:none; }
}

/* Pass 3: proportion, responsive reading sizes and a coherent handheld dock. */
@media (min-width:1180px) {
  .layout {
    width:min(1540px,100%);
    grid-template-columns:minmax(178px,205px) minmax(0,1fr) minmax(155px,174px);
    gap:clamp(12px,1.6vw,24px);
    padding:clamp(24px,4svh,48px) clamp(16px,2.2vw,32px) 28px;
  }
  .left-rail { height:auto; grid-template-rows:auto auto auto; align-content:start; }
  .left-rail .series-card { min-height:220px; }
  .stage { gap:12px; }
  .player { max-height:54svh; }
  .nav-rail { align-self:start; }
  .nav-rail .nav-button { padding:12px 10px; }
}
@media (max-width:820px) {
  .layout {
    width:min(620px,100%);
    padding:14px 12px calc(108px + env(safe-area-inset-bottom));
    gap:14px;
  }
  .stage { gap:10px; }
  .episode-info {
    padding:14px;
    gap:12px;
  }
  .episode-info .eyebrow { font-size:.69rem; letter-spacing:.09em; }
  .episode-info h1 { font-size:clamp(1.15rem,4.6vw,1.5rem); }
  .watch-button { max-width:112px; padding:10px; font-size:.73rem; }
  .mobile-series-intro { margin-top:0; padding:14px; }
  .mobile-series-intro strong { font-size:1.05rem; }
  .mobile-series-intro small { font-size:.76rem; line-height:1.5; }

}
@media (max-width:380px) {
  .episode-info { grid-template-columns:minmax(0,1fr); }
  .watch-button { justify-self:start; }
}

/* Pass 4 — type scale and accessible interactions.
   Tokens make visual refinements predictable without changing site behavior. */
:root {
  --type-xs:.75rem;
  --type-sm:.875rem;
  --type-md:1rem;
  --type-lg:clamp(1.15rem,1.6vw,1.4rem);
  --reading-line-height:1.6;
  --focus-ring:#c6f2f0;
}
.series-copy p:not(.eyebrow) {
  font-size:var(--type-md);
  line-height:var(--reading-line-height);
}
.series-copy h2 { font-size:var(--type-lg); line-height:1.25; }
.series-summary,.cast-hint { line-height:1.55; }
.nav-rail .nav-button small { font-size:var(--type-xs); line-height:1.4; }
.episode-info p:not(.eyebrow) { line-height:1.5; }
:where(button,a,[tabindex]):focus-visible {
  outline:2px solid var(--focus-ring);
  outline-offset:3px;
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
}

/* Pass 5 — practical controls and restrained surface treatment. */
:root {
  --surface-edge:rgba(169,208,225,.18);
  --surface-edge-active:rgba(189,235,237,.5);
}
.nav-rail .nav-button,
.left-rail .cast-card,
.watch-button,
.mobile-nav button {
  -webkit-tap-highlight-color:transparent;
}
.nav-rail .nav-button:focus-visible,
.left-rail .cast-card:focus-visible,
.watch-button:focus-visible,
.mobile-nav button:focus-visible {
  outline:2px solid var(--focus-ring);
  outline-offset:3px;
}
.nav-rail .nav-button[aria-pressed="true"] {
  border-color:var(--surface-edge-active);
  box-shadow:inset 2px 0 rgba(173,231,232,.58);
}
/* Mobile interface — maintain all handheld overrides together.
   Desktop modal dragging is handled separately in app.js. */
@media (max-width:820px) {
  .modal {
    position:fixed;
    top:calc(56px + env(safe-area-inset-top));
    bottom:calc(82px + env(safe-area-inset-bottom));
    left:10px;
    right:10px;
    width:auto;
    min-width:0;
    max-width:none;
    min-height:0;
    max-height:none;
    transform:none;
    resize:none;
    overflow:hidden;
    display:flex;
    flex-direction:column;
  }
  .modal-header {
    flex:0 0 auto;
    min-height:50px;
    cursor:default;
    touch-action:auto;
  }
  .modal-body {
    min-height:0;
    flex:1 1 auto;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    padding:clamp(14px,4vw,20px);
  }
  .modal-close { min-width:40px; min-height:40px; }

  .layout {
    padding-bottom:calc(104px + env(safe-area-inset-bottom));
  }
  .mobile-nav {
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:4px;
    padding:6px;
    border:1px solid rgba(174,218,230,.24);
    border-radius:12px;
    background:rgba(4,19,40,.96);
    box-shadow:0 14px 38px rgba(0,6,24,.48),inset 0 1px rgba(235,252,255,.1);
    -webkit-backdrop-filter:blur(18px) saturate(92%);
    backdrop-filter:blur(18px) saturate(92%);
  }
  .mobile-nav button {
    position:relative;
    min-width:0;
    min-height:58px;
    padding:7px 2px 6px;
    gap:5px;
    border:1px solid transparent;
    border-radius:7px;
    background:transparent;
    box-shadow:none;
    color:#c3d5e2;
    font-size:.75rem;
    font-weight:600;
    line-height:1.15;
    letter-spacing:.01em;
    transition:background .18s ease,border-color .18s ease,transform .18s ease;
  }
  .mobile-nav svg {
    width:21px;
    height:21px;
    flex:none;
    color:currentColor;
    opacity:.9;
  }
  .mobile-nav button[aria-pressed="true"] {
    color:#f1ffff;
    border-color:rgba(184,235,236,.3);
    background:linear-gradient(180deg,rgba(75,137,155,.3),rgba(19,63,88,.25));
    box-shadow:inset 0 -2px rgba(182,235,231,.68);
  }
  .mobile-nav button:active { background:rgba(86,150,168,.25); }
  .mobile-nav button:focus-visible { outline-offset:-2px; }
  .modal-body { overscroll-behavior:contain; }
  .modal-header .drag-mark { display:none; }
  .modal-heading { min-width:0; }
  #modalHeading { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .episode-list,.character-grid { gap:10px; }
  .character-card {
    min-height:68px;
    border-color:rgba(167,208,225,.22);
    border-radius:7px;
    background:rgba(18,51,82,.42);
    box-shadow:inset 0 1px rgba(220,244,255,.07);
  }
  /* Handheld reading scale: keep type adjustments with the layout they serve. */
  .series-copy p:not(.eyebrow) { font-size:.95rem; }
  .episode-info p:last-child { font-size:.78rem; }
  .character-card:active { background:rgba(41,91,121,.52); }
}
@media (max-width:380px) {
  .modal { left:8px;right:8px; }
}
@media (max-width:360px) {
  .mobile-nav button { font-size:.68rem; }
  .mobile-nav svg { width:19px;height:19px; }
}
@media (prefers-reduced-motion:reduce) {
  .character-card { transition:none; }
}

.sound-toggle.pearl, .watch-button.pearl { position: relative; }
.sound-toggle.pearl { padding-inline: 12px; font-size: .72rem; }
.watch-button.pearl {
  min-height: 40px;
  max-width: none;
  font: 600 .82rem/1.2 var(--site-font);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.nav-rail .nav-button.pearl {
  position: relative;
  gap: 7px;
  padding-inline: 10px;
}
.nav-rail .nav-button.pearl[aria-pressed="true"],
.episode-list .episode-card.pearl[aria-current="true"] {
  --control-tint: #1c695eaa;
  border-color: #a4efdbb0;
}
.pearl:active { scale: .97; }
@media (hover: hover) {
  :is(.nav-button, .watch-button, .sound-toggle).pearl:hover,
  .episode-list .episode-card.pearl:hover,
  .player-poster:hover .player-play-icon.pearl {
    transform: none;
    border-color: #b7fce1b0;
    --control-tint: #194f5bb0;
  }
}
@media (pointer: coarse) {
  .watch-button.pearl, .sound-toggle.pearl { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .pearl:active { scale: 1; }
}

.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  pointer-events: none;
}
.cursor-trail i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, white, #b6fff1 22%, #40d5ce99 50%, #227bba55 72%, #76ffdecc 95%);
  box-shadow: 0 0 5px #55e8d680;
  animation: trail-bubble .28s ease-out both;
}
@keyframes trail-bubble {
  from { opacity: .9; transform: translate(-50%, -50%); }
  to { opacity: 0; transform: translate(-50%, -7px) scale(.3); }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-trail { display: none; }
}

/* The screening room uses the same chrome on the masthead, player and archive. */
:root {
  --pearl-radius: 8px;
  --frame-line: #75c2c789;
  --glass-edge: rgba(180, 244, 231, .30);
  --glass-filter: blur(18px) saturate(120%);
  --glass-shadow: inset 0 1px #e3fff533, inset 0 -1px #66d7c11f, 0 8px 24px #000c1833;
  --glass-panel: linear-gradient(130deg, #97d8de16, transparent 50%, #36baab12), rgba(4, 22, 34, .55);
}
.topbar {
  height: auto;
  min-height: 108px;
  width: min(1200px, calc(100% - 64px));
  padding: 20px 0;
  gap: 18px;
  border-color: var(--frame-line);
  background: transparent;
}
.brand { gap: 12px; }
.brand-logo { width: clamp(40px, 5vw, 64px); height: auto; }
.wordmark {
  flex: none;
  font: 700 clamp(2.6rem, 5.4vw, 5.2rem)/1.16 Oswald, "Arial Narrow", sans-serif;
  letter-spacing: -.048em;
  padding-inline: .03em .06em;
  color: #d4fff6;
  background: linear-gradient(#fff 14%, #bee9ef 46%, #71b6cb 50%, #c4fff1 86%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.mast-orbit {
  position: relative;
  flex: 1;
  height: 60px;
  overflow: hidden;
  background-image: linear-gradient(#90d6da21 1px, transparent 1px), linear-gradient(90deg,#90d6da21 1px,transparent 1px);
  background-size: 16px 16px;
  mask-image: linear-gradient(90deg, transparent, black 18%, black 84%, transparent);
}
.mast-orbit i,.mast-orbit b {
  position: absolute;
  top: 50%;
  left: 57%;
  width: 108px;
  height: 24px;
  border: 1px solid #aaf5eab0;
  border-radius: 50%;
  transform: translate(-50%,-50%) rotate(-16deg);
}
.mast-orbit b { width: 54px; height: 45px; transform: translate(-50%,-50%) rotate(30deg); }
.top-actions { flex-direction: column; align-items: flex-end; gap: 6px; }
.status { color: #bfdddF; font-size: .68rem; }
.layout {
  width: min(1200px, calc(100% - 64px));
  min-height: 0;
  margin: 0 auto;
  padding: clamp(20px,4vh,44px) 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(235px, 1fr);
  grid-template-areas: "stage collection";
  gap: clamp(18px,2.4vw,38px);
  align-items: start;
}
.stage {
  padding: 0;
  gap: 0;
  border: 1px solid var(--glass-edge);
  border-radius: 5px;
  background: var(--glass-panel);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 35px;
  margin: 0;
  padding: 0 11px;
  color: #efffff;
  background: transparent;
  border-radius: 4px 4px 0 0;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px #071d2e;
}
.screen-light {
  width: 10px; height: 10px; border: 1px solid #185464; border-radius: 50%;
  background: radial-gradient(circle at 32% 25%,white,#a1ffe8 27%,#21a799 68%,#0b6674);
}
.bar-grip { flex: 1; height: 1px; background: linear-gradient(90deg,#b1eae543,transparent); }
.stage .player { border: 0; border-radius: 0; aspect-ratio: 16 / 9; max-height: none; box-shadow: none; }
.player-poster .player-play-icon.pearl {
  --pearl-radius: 8px;
  bottom: var(--play-inset); left: var(--play-inset);
  width: auto; height: 40px; padding: 0 14px 0 10px;
  display: inline-flex; gap: 6px;
  font-size: .95rem;
}
.stage .episode-info {
  min-height: 0; padding: clamp(14px,2vw,28px); border: 0; border-radius: 0 0 2px 2px;
  background: #05172528; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.episode-info h1 { font-weight: 500; font-size: clamp(1.65rem,3.35vw,3.2rem); line-height: 1.15; }
.episode-info p:not(.eyebrow) { font-size: 1rem; color: #d1e3e5; }
.collection { grid-area: collection; display: grid; gap: 18px; min-width: 0; }
.collection .series-copy { margin: 0; padding: 12px 16px 16px; max-width: none; background: var(--glass-panel); border: 1px solid var(--glass-edge); border-radius: 5px; box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter); }
.section-rule { display: flex; align-items: center; gap: 12px; }
.section-rule::after { content: ""; flex: 1; height: 1px; background: var(--frame-line); }
.section-rule .eyebrow { margin: 0; font-size: .73rem; color: #a1e9d7; }
.series-copy h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); margin: 6px 0 10px; line-height: 1.05; }
.collection .series-copy p:not(.eyebrow) { color: #e0e9ed; font-size: 1.05rem; line-height: 1.55; margin: 0; }
.about-link { background: transparent; border: 0; border-bottom: 1px solid #85bdba; padding: 5px 0 2px; margin-top: 6px; color: #b7ffee; }
.collection .nav-rail { grid-area: auto; gap: 6px; }
.nav-rail .nav-button.pearl { min-height: 48px; padding: 8px 12px; gap: 12px; }
.nav-rail .nav-button strong { font-size: 1.06rem; }
.nav-rail .nav-button small { font-size: .72rem; }
.nav-button .cast-icons { margin-left: auto; display: flex; gap: 0; }
.cast-icons .cast-icon { width: 23px; border-radius: 100%; margin-left: -5px; background: #194059; }
.collection .mobile-laurel {
  display: flex; align-items: center; gap: 12px; width: 100%; margin: 0;
  padding: 6px 12px 6px 6px; border: 1px solid var(--frame-line); color: #dceff0; text-align: left; background: var(--glass-panel);
}
.mobile-laurel img { width: 46px; height: 46px; object-fit: cover; filter: none; }
.mobile-laurel strong,.mobile-laurel small { display: block; }
.mobile-laurel small { color: #c2d7dd; }
.mobile-laurel-arrow { width: 16px; height: 16px; margin-left: auto; }
.modal { border-color: var(--glass-edge); background: linear-gradient(135deg,#56939d29,transparent 65%),#051624d6; }
.modal-header { background: #a6f2df09; border-bottom: 1px solid var(--glass-edge); box-shadow: none; }
.modal-header .modal-heading { color: white; text-shadow: 0 1px 2px #103744; }
.footer { width: min(1200px,calc(100% - 64px)); margin: 0 auto; border-top: 1px solid var(--frame-line); }
@media (max-width: 820px) {
  .topbar,.layout { width: min(620px,calc(100% - 24px)); }
  .topbar { min-height: 70px; padding: 10px 0; gap: 8px; }
  .brand { gap: 6px; }
  .brand-logo { width: 32px; }
  .mast-orbit { height: 40px; }
  .mast-orbit i { width: 66px; }
  .mast-orbit b { width: 32px; height: 29px; }
  .layout { display: flex; gap: 18px; padding: 16px 0 calc(100px + env(safe-area-inset-bottom)); }

  .screen-bar { margin: 0; min-height: 30px; font-size: .73rem; }
  .collection { gap: 16px; }
  .collection .nav-rail { display: none; }
  .stage .episode-info { gap: 12px; }
  .mobile-nav { border-radius: 6px; border-color: var(--glass-edge); background: #08202ecc; }
  .mobile-nav button { border-radius: 4px; border-color: #80d1c344; background: #7abfbc13; }
}
@media (max-width: 400px) {
  .stage .episode-info { grid-template-columns: minmax(0,1fr); }
}
@media (forced-colors: active) {
  .wordmark { -webkit-text-fill-color: ButtonText; }
}


/* Reading surfaces inside the floating information window. */
.modal :is(.character-card, .contact-box, .instagram-preview, .dossier-facts div, .dossier-tab, .modal-close) {
  background: #aacfc810;
  border-color: var(--glass-edge);
  box-shadow: none;
}
.modal .dossier-tab.is-active { background: #70c9b42c; border-color: #a3e4d997; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-panel: #0b2433ed; }
  .nav-rail .nav-button.pearl, .mobile-nav { background-color: #102c3a; }
}

/* Liquid glass. The displacement map bends the backdrop near the edges;
   the text and icons sit on the undistorted front face. */
.glass-filters { position: absolute; overflow: hidden; pointer-events: none; }
.shell .pearl {
  --control-tint: rgba(10, 44, 56, .66);
  --light-x: 24%;
  --light-y: 0%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f3fffe;
  border: 1px solid #b4f0e45e;
  border-radius: var(--pearl-radius);
  background:
    radial-gradient(ellipse 65px 34px at var(--light-x) var(--light-y), #dbfffa26, transparent),
    linear-gradient(115deg, #80b7f426, transparent 45%, #63e0bb1f), var(--control-tint);
  box-shadow: inset 0 1px 2px #efffff25, inset 0 -2px 5px #64d8c41f, 0 3px 10px #010b153d;
  -webkit-backdrop-filter: blur(3px) saturate(140%);
  backdrop-filter: blur(3px) saturate(140%);
  text-shadow: 0 1px 2px #01121b80;
}
@supports (backdrop-filter: url("#glass-rim")) {
  .shell .pearl { backdrop-filter: url("#glass-rim") blur(1px) saturate(140%); }
}
/* Only the thin rim receives the bright reflection. */
.pearl::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68px 28px at var(--light-x) var(--light-y), #f1fffd, transparent),
    linear-gradient(145deg, #c0fff3af, #8adae92b 28%, transparent 52%, #96efce99 86%, #e4fff5c2);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.shell .pearl:is([aria-pressed="true"],[aria-selected="true"],[aria-current="true"]) {
  --control-tint: #195e5bbd;
  border-color: #b5ffe3b8;
}
.shell .pearl:focus-visible { outline: 2px solid #c6fff0; outline-offset: 2px; }
.player-poster { --play-inset: clamp(10px,2vw,24px); container-type: size; }
.player-poster .player-play-icon.pearl {
  position: absolute;
  --pearl-radius: 9px;
  --control-tint: #0b384d80;
  font-weight: 600;
}
/* Reproject the active poster at the same crop, then magnify it inside the play lens. */
.poster-lens {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transform: scale(1.16);
  overflow: hidden;
}
.poster-lens::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--play-inset) - 1px);
  bottom: calc(-1 * var(--play-inset) - 1px);
  width: 100cqw;
  height: 100cqh;
  background: var(--poster-image, none) center / cover no-repeat;
}
.poster-lens::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at var(--light-x) var(--light-y), #d7fff735, transparent 58%),
    linear-gradient(120deg, #0865818a, #042735a8 55%, #226b60a8);
}
.stage, .collection .series-copy, .modal, .mobile-nav {
  box-shadow: var(--glass-shadow);
}
@media (prefers-reduced-transparency: reduce) {
  .shell .pearl, .stage, .collection .series-copy, .modal, .mobile-nav {
    background: #102c38;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .poster-lens, .pearl::after { display: none; }
}
@media (forced-colors: active) {
  .pearl::after, .poster-lens { display: none; }
}
