:root {
  color-scheme: dark;
  --ink: #07090f;
  --ink-soft: #0c1019;
  --surface: #121722;
  --surface-2: #171e2b;
  --surface-3: #202938;
  --text: #f5f7fb;
  --muted: #9da9b9;
  --dim: #6f7c8e;
  --line: rgba(220, 232, 245, 0.12);
  --line-strong: rgba(220, 232, 245, 0.22);
  --mint: #a6f5cf;
  --mint-deep: #3ecf91;
  --sky: #8ccfff;
  --violet: #c1abff;
  --gold: #ffd584;
  --rose: #ff9daf;
  --danger: #ff8b93;
  --focus: #d9ffed;
  --header-height: 68px;
  --sidebar-width: 196px;
  --content-max: 1540px;
  --home-gutter: clamp(20px, 3vw, 40px);
  --home-hero-height: clamp(440px, 54vh, 520px);
  --home-card-width: clamp(154px, 10.3vw, 178px);
  --home-rail-gap: 14px;
  --home-section-gap: 36px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Version 29: consolidated device-local library, authoritative search, and episode navigation. */
.header-search-link {
  justify-self: center;
  min-width: 11rem;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(196, 222, 255, 0.18);
  border-radius: 999px;
  background: rgba(11, 18, 31, 0.74);
  color: var(--text);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.header-search-link:hover,
.header-search-link:focus-visible {
  border-color: rgba(130, 232, 208, 0.58);
  background: rgba(20, 34, 52, 0.92);
}

.library-entry {
  min-width: 0;
}

.library-entry-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 2px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.library-clear {
  margin-inline-start: auto;
}

.playback-stage {
  min-height: 0;
}

.playback-stage-series {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 23%);
  gap: 14px;
  align-items: stretch;
}

.playback-navigator {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(196, 222, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(150deg, rgba(31, 45, 66, 0.9), rgba(9, 15, 26, 0.94)),
    rgba(8, 14, 24, 0.94);
  overflow: hidden;
}

.playback-navigator-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.playback-navigator-heading select {
  width: 100%;
  min-height: 36px;
  padding: 6px 30px 6px 10px;
  border: 1px solid rgba(196, 222, 255, 0.2);
  border-radius: 10px;
  background: rgba(4, 9, 17, 0.8);
  color: var(--text);
}

.playback-episode-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.playback-episode-actions .button {
  min-width: 0;
  white-space: normal;
}

.playback-episode-list {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  align-content: start;
  gap: 7px;
  padding-right: 3px;
}

.playback-episode {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
}

.playback-episode:hover,
.playback-episode:focus-visible {
  border-color: rgba(130, 232, 208, 0.42);
  background: rgba(130, 232, 208, 0.08);
}

.playback-episode.active {
  border-color: rgba(130, 232, 208, 0.64);
  background: linear-gradient(120deg, rgba(130, 232, 208, 0.14), rgba(129, 153, 255, 0.08));
}

.playback-episode img,
.episode-still-fallback {
  width: 72px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.episode-still-fallback {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.playback-episode strong,
.playback-episode small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playback-episode strong {
  font-size: 0.78rem;
}

.playback-episode small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.playback-current {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (min-width: 1200px) and (min-height: 760px) {
  .search-view {
    height: calc(100svh - 104px);
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 10px;
    overflow: hidden;
    padding-block: 14px;
  }

  .search-view .page-heading {
    margin-bottom: 0;
  }

  .search-view .search-hero {
    min-height: 48px;
    padding-block: 6px;
  }

  .search-view .catalog-filters {
    margin: 0;
    padding-block: 10px;
  }

  .search-view #searchResultsRegion {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding-right: 5px;
  }

  .search-view + .app-footer,
  .playback-immersive-shell .app-footer {
    display: none;
  }

  .playback-immersive-shell .playback-view {
    height: calc(100svh - 86px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding-block: 10px;
    overflow: hidden;
  }

  .playback-immersive-shell .playback-stage,
  .playback-immersive-shell .player-shell {
    min-height: 0;
    height: 100%;
  }

  .playback-immersive-shell .playback-info {
    min-height: 64px;
    padding: 9px 14px;
  }
}

.home-v36-qa-proof {
  position: fixed;
  z-index: 10000;
  top: 10px;
  right: 10px;
  width: min(360px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid rgba(124, 246, 218, 0.38);
  border-radius: 14px;
  background: rgba(5, 10, 18, 0.94);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.52);
  color: #f3f7fb;
  font: 12px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  backdrop-filter: blur(14px);
}

.home-v36-qa-proof strong {
  display: block;
  margin-bottom: 8px;
  color: #7cf6da;
  font: 700 13px/1.3 Inter, system-ui, sans-serif;
  letter-spacing: 0.02em;
}

.home-v36-qa-proof dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3px 10px;
  margin: 0;
}

.home-v36-qa-proof dt {
  color: #aab6c5;
}

.home-v36-qa-proof dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #ffffff;
}

@media (max-width: 1199px) {
  .playback-stage-series {
    grid-template-columns: 1fr;
  }

  .playback-navigator {
    max-height: 420px;
  }
}

@media (max-width: 720px) {
  .header-search-link {
    display: none;
  }

  .playback-episode-actions {
    grid-template-columns: 1fr;
  }
}

/* Premium public landing composition. The product tableau is intentionally
   static and provider-free: it never depends on catalog, image, or playback
   data and therefore cannot render an authenticated-catalog failure. */
.lumen-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.78fr);
  grid-template-rows: auto minmax(180px, 1fr) auto;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(18, 24, 34, 0.96), rgba(8, 12, 19, 0.98)),
    var(--surface);
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.42);
  isolation: isolate;
}

.lumen-stage::before {
  position: absolute;
  z-index: -1;
  inset: -30% 35% 12% -18%;
  content: "";
  background:
    radial-gradient(circle at 46% 50%, rgba(166, 245, 207, 0.22), transparent 24%),
    radial-gradient(circle at 60% 44%, rgba(193, 171, 255, 0.17), transparent 46%);
  filter: blur(5px);
}

.lumen-stage-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(226, 234, 242, 0.52);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.61rem;
  letter-spacing: 0.13em;
}

.lumen-orbit {
  position: relative;
  grid-row: 2;
  display: grid;
  place-items: center;
  min-height: 245px;
}

.lumen-ring,
.lumen-core {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.lumen-ring-outer {
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid rgba(166, 245, 207, 0.18);
  box-shadow: inset 0 0 70px rgba(166, 245, 207, 0.045);
}

.lumen-ring-inner {
  width: 38%;
  aspect-ratio: 1;
  border: 1px solid rgba(193, 171, 255, 0.27);
}

.lumen-core {
  width: 15%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 34% 30%, #fff 0 5%, #a6f5cf 14%, rgba(91, 201, 151, 0.72) 34%, rgba(117, 93, 186, 0.18) 64%, transparent 72%);
  box-shadow: 0 0 58px rgba(166, 245, 207, 0.38);
}

.lumen-stage-copy {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  padding: 26px 30px 26px 0;
}

.lumen-stage-copy > span {
  display: block;
  margin-bottom: 10px;
  color: var(--mint);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lumen-stage-copy strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.lumen-stage-copy small {
  display: block;
  max-width: 32ch;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.lumen-capabilities {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
}

.lumen-capabilities li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  padding: 17px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.lumen-capabilities li:last-child {
  border-right: 0;
}

.lumen-capabilities span {
  grid-row: 1 / 3;
  color: rgba(226, 234, 242, 0.38);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.61rem;
}

.lumen-capabilities strong {
  font-size: 0.8rem;
  letter-spacing: -0.015em;
}

.lumen-capabilities small {
  color: var(--muted);
  font-size: 0.67rem;
}

@media (min-width: 921px) {
  .public-landing-shell {
    background:
      radial-gradient(circle at 78% 17%, rgba(101, 70, 168, 0.1), transparent 28%),
      radial-gradient(circle at 14% 74%, rgba(87, 179, 139, 0.07), transparent 24%),
      var(--page);
  }

  .public-landing-shell .landing-main {
    grid-template-columns: minmax(0, 1.48fr) minmax(0, 0.96fr) minmax(220px, 0.68fr);
    grid-template-rows: minmax(0, 1.62fr) minmax(0, 0.92fr);
    gap: 0 24px;
    padding: 10px 0 12px;
  }

  .public-landing-shell .landing-hero {
    position: relative;
    gap: clamp(30px, 4.4vw, 70px);
    padding: 5px 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .public-landing-shell .landing-hero::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 28%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(166, 245, 207, 0.68));
  }

  .public-landing-shell .landing-copy h1 {
    max-width: 780px;
    font-size: clamp(3rem, 4.45vw, 5.15rem);
  }

  .public-landing-shell .landing-showcase {
    width: min(100%, 650px);
  }

  .public-landing-shell .lumen-stage {
    min-height: 0;
    height: clamp(318px, 36vh, 390px);
    border-radius: 22px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  }

  .public-landing-shell .lumen-stage-header {
    padding: 12px 16px;
    font-size: 0.53rem;
  }

  .public-landing-shell .lumen-orbit {
    min-height: 0;
  }

  .public-landing-shell .lumen-stage-copy {
    padding: 18px 22px 18px 0;
  }

  .public-landing-shell .lumen-stage-copy strong {
    font-size: clamp(1.45rem, 2.25vw, 2.35rem);
  }

  .public-landing-shell .lumen-capabilities li {
    padding: 11px 14px;
  }

  .public-landing-shell .landing-proof,
  .public-landing-shell .landing-privacy,
  .public-landing-shell .landing-cta {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 18px 0 8px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: none;
  }

  .public-landing-shell .landing-proof,
  .public-landing-shell .landing-privacy {
    padding-right: 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
  }

  .public-landing-shell .landing-proof {
    display: grid;
    align-content: start;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .public-landing-shell .landing-proof > h2,
  .public-landing-shell .landing-privacy h2,
  .public-landing-shell .landing-cta h2 {
    max-width: none;
    margin-bottom: 8px;
    font-size: clamp(1.22rem, 1.65vw, 1.72rem);
  }

  .public-landing-shell .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  .public-landing-shell .feature-card,
  .public-landing-shell .feature-card + .feature-card {
    display: block;
    min-height: 0;
    padding: 10px 12px 0 0;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.075);
  }

  .public-landing-shell .feature-card + .feature-card {
    padding-left: 12px;
  }

  .public-landing-shell .feature-card:last-child {
    border-right: 0;
  }

  .public-landing-shell .feature-number {
    margin: 0 0 8px;
  }

  .public-landing-shell .feature-card h3 {
    margin-bottom: 5px;
    font-size: 0.88rem;
  }

  .public-landing-shell .feature-card p {
    font-size: 0.68rem;
    line-height: 1.38;
  }

  .public-landing-shell .landing-privacy {
    grid-template-columns: 66px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .public-landing-shell .privacy-orbit {
    width: 66px;
  }

  .public-landing-shell .landing-privacy p:not(.eyebrow) {
    margin-bottom: 8px;
    font-size: 0.7rem;
    line-height: 1.4;
  }

  .public-landing-shell .landing-cta {
    align-content: center;
    justify-items: start;
    padding-left: 2px;
    text-align: left;
  }

  .public-landing-shell .landing-cta::before {
    display: block;
    width: 38px;
    height: 2px;
    margin-bottom: 12px;
    content: "";
    background: linear-gradient(90deg, var(--mint), var(--violet));
  }

  .public-landing-shell .landing-cta > p:not(.eyebrow) {
    margin-bottom: 11px;
    font-size: 0.71rem;
    line-height: 1.4;
  }
}

/* Version 29 final cascade overrides. */
.header-search-link {
  justify-self: center;
  min-width: 11rem;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(196, 222, 255, 0.18);
  border-radius: 999px;
  background: rgba(11, 18, 31, 0.74);
  color: var(--text);
}
.library-entry { min-width: 0; }
.library-entry-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 2px 0; color: var(--muted); font-size: .82rem; }
.library-clear { margin-inline-start: auto; }
.playback-stage { min-height: 0; }
.playback-stage-series { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 23%); gap: 14px; align-items: stretch; }
.playback-navigator { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 10px; padding: 14px; border: 1px solid rgba(196, 222, 255, .14); border-radius: 18px; background: linear-gradient(150deg, rgba(31,45,66,.9), rgba(9,15,26,.94)); overflow: hidden; }
.playback-navigator-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.playback-navigator-heading select { width: 100%; min-height: 36px; padding: 6px 30px 6px 10px; border: 1px solid rgba(196,222,255,.2); border-radius: 10px; background: rgba(4,9,17,.8); color: var(--text); }
.playback-episode-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.playback-episode-actions .button { min-width: 0; white-space: normal; }
.playback-episode-list { min-height: 0; overflow: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 7px; padding-right: 3px; }
.playback-episode { min-width: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 9px; padding: 7px; border: 1px solid transparent; border-radius: 12px; background: rgba(255,255,255,.035); color: var(--text); text-align: left; }
.playback-episode:hover, .playback-episode:focus-visible { border-color: rgba(130,232,208,.42); background: rgba(130,232,208,.08); }
.playback-episode.active { border-color: rgba(130,232,208,.64); background: linear-gradient(120deg, rgba(130,232,208,.14), rgba(129,153,255,.08)); }
.playback-episode img, .episode-still-fallback { width: 72px; aspect-ratio: 16/9; border-radius: 8px; object-fit: cover; background: rgba(255,255,255,.06); }
.episode-still-fallback { display: grid; place-items: center; color: var(--muted); }
.playback-episode strong, .playback-episode small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playback-episode strong { font-size: .78rem; }
.playback-episode small { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.playback-current { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }

@media (min-width: 1200px) and (min-height: 760px) {
  .search-view { height: calc(100svh - 104px); display: grid; grid-template-rows: auto auto auto minmax(0,1fr); gap: 10px; overflow: hidden; padding-block: 14px; }
  .search-view .page-heading { margin-bottom: 0; }
  .search-view .search-hero { min-height: 48px; padding-block: 6px; }
  .search-view .catalog-filters { margin: 0; padding-block: 10px; }
  .search-view #searchResultsRegion { min-height: 0; overflow: auto; overscroll-behavior: contain; padding-right: 5px; }
  .search-view + .app-footer { display: none; }
  .playback-immersive-shell .app-footer { display: none; }
  .playback-immersive-shell .playback-view { height: calc(100svh - 86px); grid-template-rows: auto minmax(0,1fr) auto; gap: 10px; padding-block: 10px; overflow: hidden; }
  .playback-immersive-shell .playback-stage, .playback-immersive-shell .player-shell { min-height: 0; height: 100%; }
  .playback-immersive-shell .playback-info { min-height: 64px; padding: 9px 14px; }
}
@media (max-width: 1199px) { .playback-stage-series { grid-template-columns: 1fr; } .playback-navigator { max-height: 420px; } }
@media (max-width: 720px) { .header-search-link { display: none; } .playback-episode-actions { grid-template-columns: 1fr; } }

@media (max-width: 920px) {
  .lumen-stage {
    min-height: 390px;
  }
}

@media (max-width: 620px) {
  .lumen-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 190px auto auto;
    min-height: 0;
    border-radius: 20px;
  }

  .lumen-orbit {
    grid-row: 2;
    min-height: 190px;
  }

  .lumen-stage-copy {
    grid-column: 1;
    grid-row: 3;
    padding: 0 22px 20px;
  }

  .lumen-capabilities {
    grid-row: 4;
  }

  .lumen-capabilities li {
    grid-template-columns: 1fr;
    padding: 13px 10px;
  }

  .lumen-capabilities span {
    grid-row: auto;
  }
}

/* Premium public-document system. These rules apply only to the seven
   editorial information surfaces; the landing and signed-in application keep
   their established presentation. */
.public-editorial-document-shell {
  --document-accent-rgb: 166, 245, 207;
  --document-accent: var(--mint);
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 18%, rgba(var(--document-accent-rgb), 0.08), transparent 34%),
    radial-gradient(circle at 88% 84%, rgba(151, 168, 255, 0.055), transparent 36%),
    linear-gradient(180deg, #080a11 0%, #0a0c14 52%, #07090f 100%);
}

.public-editorial-document-shell .public-header {
  border-bottom-color: rgba(var(--document-accent-rgb), 0.12);
  background: rgba(8, 10, 17, 0.86);
  backdrop-filter: blur(18px);
}

.public-editorial-document-shell .public-footer {
  border-top-color: rgba(var(--document-accent-rgb), 0.12);
  background: linear-gradient(180deg, rgba(12, 14, 23, 0.72), rgba(7, 9, 15, 0.94));
}

.public-editorial-document-shell .document-page {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 24px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 68px;
}

.public-editorial-document-shell .document-page::before {
  position: absolute;
  z-index: -1;
  top: 8%;
  left: -10%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--document-accent-rgb), 0.075), transparent 68%);
  content: "";
  pointer-events: none;
}

.public-editorial-document-shell .document-page-privacy {
  --document-accent-rgb: 166, 245, 207;
  --document-accent: var(--mint);
}

.public-editorial-document-shell .document-page-terms {
  --document-accent-rgb: 255, 213, 132;
  --document-accent: var(--gold);
}

.public-editorial-document-shell .document-page-credits {
  --document-accent-rgb: 1, 180, 228;
  --document-accent: #5ed8f2;
}

.public-editorial-document-shell .document-page-accessibility {
  --document-accent-rgb: 188, 175, 255;
  --document-accent: #c9beff;
}

.public-editorial-document-shell .document-page-support {
  --document-accent-rgb: 123, 208, 255;
  --document-accent: #8bd8ff;
}

.public-editorial-document-shell .document-page-security {
  --document-accent-rgb: 151, 168, 255;
  --document-accent: #aab7ff;
}

.public-editorial-document-shell .document-page-account-deletion {
  --document-accent-rgb: 255, 157, 145;
  --document-accent: #ffafa5;
}

.public-editorial-document-shell .document-hero {
  position: relative;
  max-width: none;
  padding: 24px 0 28px 30px;
  border-left: 1px solid rgba(var(--document-accent-rgb), 0.5);
}

.public-editorial-document-shell .document-hero::before,
.public-editorial-document-shell .document-hero::after {
  position: absolute;
  left: -3px;
  width: 5px;
  border-radius: 999px;
  background: var(--document-accent);
  box-shadow: 0 0 24px rgba(var(--document-accent-rgb), 0.38);
  content: "";
}

.public-editorial-document-shell .document-hero::before {
  top: 30px;
  height: 46px;
}

.public-editorial-document-shell .document-hero::after {
  top: 82px;
  height: 8px;
  opacity: 0.42;
}

.public-editorial-document-shell .document-hero .eyebrow {
  margin-bottom: 14px;
  color: var(--document-accent);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.public-editorial-document-shell .document-hero h1 {
  max-width: 650px;
  margin: 0 0 16px;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  font-weight: 680;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.public-editorial-document-shell .document-hero .lede {
  max-width: 620px;
  margin: 0;
  color: color-mix(in srgb, var(--text) 72%, var(--muted));
  font-size: 1rem;
  line-height: 1.58;
}

.public-editorial-document-shell .document-hero .badge {
  margin-top: 18px;
  border-color: rgba(var(--document-accent-rgb), 0.25);
  background: rgba(var(--document-accent-rgb), 0.08);
  color: var(--document-accent);
}

.public-editorial-document-shell .document-layout {
  display: grid;
  gap: 14px;
}

.public-editorial-document-shell .document-layout > aside {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  height: auto;
  padding-bottom: 12px;
  overflow: visible;
  border-bottom: 1px solid rgba(var(--document-accent-rgb), 0.18);
  color: var(--dim);
  font-size: 0.68rem;
  line-height: 1.25;
  white-space: normal;
}

.public-editorial-document-shell .document-layout > aside p {
  margin: 0 6px 0 0;
  color: var(--document-accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.public-editorial-document-shell .document-layout > aside span {
  position: relative;
  color: var(--muted);
}

.public-editorial-document-shell .document-layout > aside span + span::before {
  margin-right: 16px;
  color: rgba(var(--document-accent-rgb), 0.42);
  content: "/";
}

.public-editorial-document-shell .document-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 0 28px;
}

.public-editorial-document-shell .document-sections section,
.public-editorial-document-shell .document-sections section:last-child {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: start;
  gap: 5px 12px;
  min-height: 0;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.public-editorial-document-shell .document-sections section:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid rgba(var(--document-accent-rgb), 0.12);
}

.public-editorial-document-shell .document-number {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 1px 0 0;
  border: 1px solid rgba(var(--document-accent-rgb), 0.3);
  border-radius: 50%;
  color: var(--document-accent);
  font-size: 0.62rem;
  font-weight: 820;
  letter-spacing: 0.04em;
}

.public-editorial-document-shell .document-sections h2 {
  margin: 0;
  font-size: clamp(1.02rem, 1.4vw, 1.28rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.public-editorial-document-shell .document-sections p {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.46;
}

.public-editorial-document-shell .document-page-terms .document-sections section:last-child {
  grid-column: 1 / -1;
  grid-template-columns: 34px minmax(160px, 0.34fr) minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: start;
  padding-right: 0;
  padding-left: 0;
  border-left: 0;
}

.public-editorial-document-shell .document-page-terms .document-sections section:last-child .document-number {
  grid-row: 1;
}

.public-editorial-document-shell .document-page-credits .document-sections,
.public-editorial-document-shell .document-page-support .document-sections {
  grid-template-columns: 1fr;
}

.public-editorial-document-shell .document-page-credits .document-sections section,
.public-editorial-document-shell .document-page-support .document-sections section {
  grid-template-columns: 34px minmax(160px, 0.38fr) minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: start;
  gap: 12px;
  padding: 14px 0;
  border-left: 0;
}

.public-editorial-document-shell .document-page-credits .document-sections .document-number,
.public-editorial-document-shell .document-page-support .document-sections .document-number {
  grid-row: 1;
}

.public-editorial-document-shell .document-page-security .document-sections section {
  border-top-color: rgba(var(--document-accent-rgb), 0.2);
}

.public-editorial-document-shell .catalog-attribution {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid rgba(var(--document-accent-rgb), 0.22);
  border-bottom: 1px solid rgba(var(--document-accent-rgb), 0.12);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(var(--document-accent-rgb), 0.05), transparent 72%);
}

.public-editorial-document-shell .catalog-attribution-mark {
  display: grid;
  min-height: 54px;
  place-items: center;
  padding: 7px;
  border: 1px solid rgba(var(--document-accent-rgb), 0.16);
  border-radius: 12px;
  background: rgba(3, 14, 24, 0.55);
  color: var(--dim);
  font-size: 0.56rem;
  line-height: 1.2;
}

.public-editorial-document-shell .catalog-attribution-mark img {
  width: 52px;
}

.public-editorial-document-shell .catalog-attribution h2 {
  margin-bottom: 3px;
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.public-editorial-document-shell .catalog-attribution p {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.34;
}

.public-editorial-document-shell .catalog-attribution .source-license-notice + .source-license-notice {
  margin-top: 3px;
}

.public-editorial-document-shell .document-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid rgba(var(--document-accent-rgb), 0.16);
  border-radius: 0;
  background: transparent;
}

.public-editorial-document-shell .document-next h2 {
  margin: 0 0 2px;
  font-size: 1rem;
}

.public-editorial-document-shell .document-next p {
  margin: 0;
  font-size: 0.75rem;
}

.public-editorial-document-shell .document-next .button {
  min-height: 40px;
  padding-inline: 15px;
  font-size: 0.8rem;
}

.public-editorial-document-shell .deletion-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.public-editorial-document-shell .deletion-options article {
  display: grid;
  grid-template-columns: 36px minmax(150px, 0.4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 0;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid rgba(var(--document-accent-rgb), 0.22);
  border-radius: 0;
  background: transparent;
}

.public-editorial-document-shell .deletion-options article:last-child {
  border-bottom: 1px solid rgba(var(--document-accent-rgb), 0.12);
}

.public-editorial-document-shell .deletion-options .option-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(var(--document-accent-rgb), 0.3);
  border-radius: 50%;
  color: var(--document-accent);
  font-size: 0.64rem;
  font-weight: 820;
}

.public-editorial-document-shell .deletion-options h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.public-editorial-document-shell .deletion-options p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.public-editorial-document-shell .deletion-options .button {
  align-self: center;
  min-height: 40px;
  white-space: nowrap;
}

.public-editorial-document-shell .document-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid rgba(var(--document-accent-rgb), 0.16);
  border-radius: 0;
  background: transparent;
}

.public-editorial-document-shell .document-note > .icon {
  color: var(--document-accent);
}

.public-editorial-document-shell .document-note h2 {
  margin-bottom: 2px;
}

.public-editorial-document-shell .document-note p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

@media (min-width: 1200px) {
  .public-editorial-document-shell {
    display: grid;
    grid-template-rows: 62px minmax(0, 1fr) 70px;
    height: 100svh;
    min-height: 720px;
    overflow: clip;
  }

  .public-editorial-document-shell .public-header {
    min-height: 62px;
  }

  .public-editorial-document-shell .public-footer {
    grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.7fr) minmax(190px, 0.72fr);
    align-items: center;
    gap: 16px;
    min-height: 70px;
    padding: 8px 0;
  }

  .public-editorial-document-shell .public-footer > div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .public-editorial-document-shell .public-footer > div p,
  .public-editorial-document-shell .footer-note {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .public-editorial-document-shell .public-footer nav {
    justify-content: center;
    gap: 3px 16px;
  }

  .public-editorial-document-shell .public-footer a {
    min-height: 32px;
    font-size: 0.74rem;
  }

  .public-editorial-document-shell .footer-note {
    grid-column: auto;
    text-align: right;
  }

  .public-editorial-document-shell .document-page {
    grid-template-columns: minmax(350px, 0.78fr) minmax(0, 1.48fr);
    grid-template-rows: minmax(0, 1fr) auto;
    column-gap: clamp(52px, 5.6vw, 104px);
    row-gap: 6px;
    width: min(1540px, calc(100% - 72px));
    min-height: 0;
    margin: 0 auto;
    padding: 10px 0 8px;
    overflow: clip;
  }

  .public-editorial-document-shell .document-page::before {
    top: 13%;
    width: min(46vw, 700px);
    height: min(74%, 700px);
    aspect-ratio: auto;
  }

  .public-editorial-document-shell .document-sections section,
  .public-editorial-document-shell .document-sections section:last-child {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .public-editorial-document-shell .document-page-credits .document-sections section,
  .public-editorial-document-shell .document-page-support .document-sections section {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .public-editorial-document-shell .catalog-attribution {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .public-editorial-document-shell .document-hero {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .public-editorial-document-shell .document-hero h1 {
    font-size: clamp(2.8rem, 3.7vw, 4.35rem);
  }

  .public-editorial-document-shell .document-layout {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-height: 0;
  }

  .public-editorial-document-shell .document-next {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .public-editorial-document-shell .document-page-terms,
  .public-editorial-document-shell .document-page-credits {
    grid-template-rows: minmax(0, 1fr) auto auto;
  }

  .public-editorial-document-shell .document-page-terms .catalog-attribution,
  .public-editorial-document-shell .document-page-credits .catalog-attribution {
    grid-column: 1;
    grid-row: 2;
  }

  .public-editorial-document-shell .document-page-terms .document-layout,
  .public-editorial-document-shell .document-page-credits .document-layout {
    grid-row: 1 / span 2;
  }

  .public-editorial-document-shell .document-page-terms .document-next,
  .public-editorial-document-shell .document-page-credits .document-next {
    grid-row: 3;
  }

  .public-editorial-document-shell .document-page-account-deletion {
    grid-template-columns: minmax(350px, 0.78fr) minmax(0, 1.48fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .public-editorial-document-shell .document-page-account-deletion .deletion-options {
    grid-column: 2;
    grid-row: 1;
    align-content: center;
  }

  .public-editorial-document-shell .document-page-account-deletion .document-note {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 1199px) {
  .public-editorial-document-shell .document-page {
    width: min(980px, calc(100% - 48px));
  }

  .public-editorial-document-shell .document-hero {
    padding-top: 10px;
  }

  .public-editorial-document-shell .document-hero h1 {
    font-size: clamp(2.6rem, 7vw, 4.8rem);
  }
}

@media (max-width: 680px) {
  .public-editorial-document-shell .document-page {
    gap: 18px;
    width: calc(100% - 32px);
    padding: 34px 0 52px;
  }

  .public-editorial-document-shell .document-hero {
    padding: 8px 0 24px 18px;
  }

  .public-editorial-document-shell .document-hero h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .public-editorial-document-shell .document-hero .lede {
    font-size: 0.92rem;
  }

  .public-editorial-document-shell .document-layout > aside {
    display: flex;
  }

  .public-editorial-document-shell .document-sections,
  .public-editorial-document-shell .document-page-credits .document-sections,
  .public-editorial-document-shell .document-page-support .document-sections {
    grid-template-columns: 1fr;
  }

  .public-editorial-document-shell .document-sections section,
  .public-editorial-document-shell .document-sections section:nth-child(even),
  .public-editorial-document-shell .document-page-terms .document-sections section:last-child,
  .public-editorial-document-shell .document-page-credits .document-sections section,
  .public-editorial-document-shell .document-page-support .document-sections section {
    grid-column: auto;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 5px 10px;
    padding: 16px 0;
    border-left: 0;
  }

  .public-editorial-document-shell .document-page-terms .document-sections section:last-child .document-number,
  .public-editorial-document-shell .document-page-credits .document-sections .document-number,
  .public-editorial-document-shell .document-page-support .document-sections .document-number {
    grid-row: 1 / 3;
  }

  .public-editorial-document-shell .catalog-attribution {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .public-editorial-document-shell .document-next {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-editorial-document-shell .deletion-options article {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .public-editorial-document-shell .deletion-options h2,
  .public-editorial-document-shell .deletion-options p,
  .public-editorial-document-shell .deletion-options .button {
    grid-column: 2;
  }

  .public-editorial-document-shell .deletion-options .button {
    justify-self: start;
  }
}

/* Version 33: fluid signed-in application shell.
   Public surfaces retain their established editorial system. */
.app-shell {
  --app-fluid-gutter: clamp(18px, 2.25vw, 44px);
  padding-left: 0;
  background:
    radial-gradient(circle at 7% 7%, rgba(166, 245, 207, 0.045), transparent 28rem),
    radial-gradient(circle at 91% 31%, rgba(151, 168, 255, 0.04), transparent 34rem),
    var(--background);
}

.app-shell .app-header {
  grid-template-columns: auto auto minmax(240px, 1fr) auto;
  gap: clamp(14px, 1.5vw, 28px);
  padding-inline: var(--app-fluid-gutter);
  border-bottom-color: rgba(255, 255, 255, 0.095);
  background:
    linear-gradient(90deg, rgba(166, 245, 207, 0.025), transparent 28%, rgba(151, 168, 255, 0.025)),
    rgba(7, 9, 15, 0.9);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.app-top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: max-content;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.app-top-nav-link {
  position: relative;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 720;
  letter-spacing: -0.01em;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.app-top-nav-link:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.app-top-nav-link.active {
  background: linear-gradient(135deg, rgba(166, 245, 207, 0.16), rgba(151, 168, 255, 0.08));
  color: var(--mint);
  box-shadow: inset 0 0 0 1px rgba(166, 245, 207, 0.1), 0 7px 24px rgba(62, 207, 145, 0.07);
}

.app-top-nav-link:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.app-shell .app-header .header-search-authoritative {
  justify-self: stretch;
  width: 100%;
  max-width: none;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.app-shell .app-header .header-search-authoritative:focus-within {
  border-color: rgba(166, 245, 207, 0.44);
  background: rgba(11, 18, 25, 0.86);
  box-shadow: 0 0 0 3px rgba(166, 245, 207, 0.07), 0 10px 30px rgba(0, 0, 0, 0.18);
}

.app-shell .app-main {
  width: 100%;
}

.app-shell .page-view,
.app-shell .home-rails,
.app-shell .details-body,
.app-shell .playback-view,
.app-shell .app-footer {
  width: calc(100% - (var(--app-fluid-gutter) * 2));
  max-width: none;
}

.app-shell .home-rails {
  gap: clamp(30px, 3.2vw, 50px);
}

.app-shell .hero-content,
.app-shell .details-hero-content {
  margin-left: var(--app-fluid-gutter);
}

.app-shell .hero-content {
  width: min(820px, calc(100% - (var(--app-fluid-gutter) * 2)));
}

.app-shell .details-hero-content {
  width: min(960px, calc(100% - (var(--app-fluid-gutter) * 2)));
}

.app-shell .content-rail::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 34px;
  height: calc(100% - 74px);
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(7, 9, 15, 0.52));
  opacity: 0.62;
}

.app-shell .card-rail {
  cursor: grab;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
}

.app-shell .card-rail.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.app-shell .card-rail:focus-visible {
  outline: 2px solid rgba(166, 245, 207, 0.72);
  outline-offset: 5px;
}

.app-shell .rail-navigation,
.app-shell .rail-nav-button {
  display: none;
}

.details-series-scroll-shell {
  min-height: 100vh;
  overflow: visible;
}

.details-series-scroll-shell .app-main,
.details-series-scroll-shell .details-view,
.details-series-scroll-shell .details-body,
.details-series-scroll-shell .details-body > [role="tabpanel"],
.details-series-scroll-shell .episodes-layout,
.details-series-scroll-shell .season-list,
.details-series-scroll-shell .episode-list {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
}

.details-series-scroll-shell .details-view {
  display: block;
}

.details-series-scroll-shell .details-body {
  padding-block: 20px 76px;
}

.details-series-scroll-shell .episodes-layout {
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 3vw, 48px);
}

.details-series-scroll-shell .season-list {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(21, 28, 40, 0.78), rgba(10, 13, 21, 0.72));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.details-series-scroll-shell .season-list button {
  min-height: 48px;
}

.details-series-scroll-shell .episode-list {
  align-content: start;
}

.details-series-scroll-shell .episode-card {
  border-color: rgba(255, 255, 255, 0.075);
  background: linear-gradient(135deg, rgba(17, 22, 32, 0.82), rgba(11, 14, 22, 0.68));
}

@media (min-width: 921px) and (max-width: 1320px) {
  .app-shell {
    --app-fluid-gutter: clamp(16px, 1.7vw, 24px);
  }

  .app-shell .app-header {
    grid-template-columns: auto auto minmax(190px, 1fr) auto;
    gap: 10px;
  }

  .app-shell .app-header > .brand .brand-word {
    display: none;
  }

  .app-top-nav-link {
    padding-inline: 11px;
  }
}

@media (max-width: 920px) {
  .app-shell {
    --app-fluid-gutter: clamp(14px, 3vw, 24px);
  }

  .app-shell .app-header {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
  }

  .app-top-nav {
    display: none;
  }

  .app-shell .page-view,
  .app-shell .home-rails,
  .app-shell .details-body,
  .app-shell .playback-view,
  .app-shell .app-footer {
    width: calc(100% - (var(--app-fluid-gutter) * 2));
  }

  .details-series-scroll-shell .episodes-layout {
    grid-template-columns: 1fr;
  }

  .details-series-scroll-shell .season-list {
    position: static;
    grid-auto-columns: minmax(150px, 1fr);
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .details-series-scroll-shell .season-list h2 {
    display: none;
  }
}

@media (max-width: 680px) {
  .app-shell .app-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .app-shell .app-header > .brand {
    justify-self: center;
  }

  .app-shell .details-hero-content {
    margin-left: auto;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  width: 100%;
  min-height: 100%;
  background:
    radial-gradient(circle at 82% 14%, rgba(101, 70, 168, 0.16), transparent 30%),
    radial-gradient(circle at 10% 82%, rgba(87, 179, 139, 0.12), transparent 28%),
    linear-gradient(180deg, #0b101b 0%, #080c15 58%, #0a0f19 100%);
  scroll-behavior: smooth;
  scrollbar-color: rgba(166, 245, 207, 0.34) rgba(255, 255, 255, 0.025);
  scrollbar-width: thin;
}

html.scroll-reset-active,
html.scroll-reset-active * {
  scroll-behavior: auto !important;
}

html.scroll-reset-active .card-rail {
  scroll-snap-type: none;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.025); }
::-webkit-scrollbar-thumb { border: 2px solid var(--ink); border-radius: 999px; background: rgba(166, 245, 207, 0.3); }
::-webkit-scrollbar-thumb:hover { background: rgba(166, 245, 207, 0.48); }

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 82% 14%, rgba(101, 70, 168, 0.16), transparent 30%),
    radial-gradient(circle at 10% 82%, rgba(87, 179, 139, 0.12), transparent 28%),
    linear-gradient(180deg, #0b101b 0%, #080c15 58%, #0a0f19 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

#appRoot {
  width: 100%;
  min-height: 100svh;
  background:
    radial-gradient(circle at 82% 14%, rgba(101, 70, 168, 0.16), transparent 30%),
    radial-gradient(circle at 10% 82%, rgba(87, 179, 139, 0.12), transparent 28%),
    linear-gradient(180deg, #0b101b 0%, #080c15 58%, #0a0f19 100%);
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--mint);
  color: var(--ink);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 300;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--focus);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.connection-notice {
  position: fixed;
  z-index: 220;
  top: 12px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(700px, calc(100vw - 28px));
  padding: 11px 12px 11px 16px;
  border: 1px solid rgba(255, 213, 132, 0.35);
  border-radius: 999px;
  background: rgba(31, 27, 18, 0.96);
  box-shadow: var(--shadow);
  color: #ffe8b9;
  transform: translateX(-50%);
}

.connection-notice > span:first-child {
  color: var(--gold);
}

.connection-notice > span:nth-of-type(2) {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connection-notice button {
  min-width: 44px;
  min-height: 44px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: max-content;
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.brand-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(166, 245, 207, 0.7);
  border-radius: 50%;
  box-shadow: inset 0 0 18px rgba(166, 245, 207, 0.2), 0 0 20px rgba(166, 245, 207, 0.12);
}

.brand-symbol::before,
.brand-symbol::after,
.brand-symbol span {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.brand-symbol::before {
  width: 15px;
  height: 15px;
  background: var(--mint);
  filter: blur(5px);
}

.brand-symbol::after {
  width: 5px;
  height: 5px;
  background: #fff;
  box-shadow: 0 0 8px #fff;
}

.brand-symbol span {
  width: 40px;
  height: 11px;
  border-top: 1px solid rgba(166, 245, 207, 0.55);
  transform: rotate(-24deg);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.65;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.1em;
  height: 1.1em;
  line-height: 1;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.18em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-weight: 780;
  line-height: 1.1;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button.primary {
  background: var(--mint);
  color: #06110c;
  box-shadow: 0 12px 36px rgba(62, 207, 145, 0.16);
}

.button.primary:hover:not(:disabled) {
  background: #c4ffe2;
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.button.glass {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(10, 14, 20, 0.6);
  backdrop-filter: blur(14px);
}

.button.quiet {
  background: transparent;
  color: var(--muted);
}

.button.quiet:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.button.danger {
  border-color: rgba(255, 139, 147, 0.35);
  background: rgba(255, 139, 147, 0.12);
  color: #ffc2c6;
}

.button.large {
  min-height: 52px;
  padding-inline: 22px;
}

.button.compact {
  min-height: 44px;
  padding: 8px 13px;
  font-size: 0.88rem;
}

.button.full {
  width: 100%;
}

.button.icon-only-large {
  width: 52px;
  padding: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  cursor: pointer;
}

.icon-button > span:not(.icon) {
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #c4ccd7;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.badge-mint { border-color: rgba(166, 245, 207, 0.28); background: rgba(166, 245, 207, 0.1); color: var(--mint); }
.badge-sky { border-color: rgba(140, 207, 255, 0.28); background: rgba(140, 207, 255, 0.1); color: var(--sky); }
.badge-violet { border-color: rgba(193, 171, 255, 0.28); background: rgba(193, 171, 255, 0.1); color: var(--violet); }
.badge-gold { border-color: rgba(255, 213, 132, 0.28); background: rgba(255, 213, 132, 0.1); color: var(--gold); }

.text-link,
.arrow-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.text-link:hover,
.arrow-link:hover {
  color: var(--text);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
}

/* Public website */
.public-shell {
  min-height: 100vh;
}

.public-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1440px, calc(100% - 64px));
  min-height: 82px;
  margin: 0 auto;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.public-menu-button {
  display: none;
}

.landing-main {
  overflow: clip;
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  width: min(1440px, calc(100% - 64px));
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 70px 0 100px;
}

.landing-glow {
  position: absolute;
  z-index: -1;
  top: -240px;
  right: -180px;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 214, 168, 0.2), rgba(112, 214, 168, 0.04) 38%, transparent 70%);
  filter: blur(2px);
}

.landing-copy h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 6.2vw, 7rem);
  font-weight: 760;
  letter-spacing: -0.072em;
  line-height: 0.95;
}

.landing-lede {
  max-width: 650px;
  margin-bottom: 30px;
  color: #b2bdca;
  font-size: clamp(1.04rem, 1.7vw, 1.28rem);
  line-height: 1.7;
}

.trust-list {
  display: grid;
  gap: 10px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 0.9rem;
}

.landing-showcase {
  position: relative;
  perspective: 1400px;
}

.landing-showcase::before,
.landing-showcase::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 50%;
}

.landing-showcase::before {
  top: -8%;
  right: 8%;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(166, 245, 207, 0.15);
}

.landing-showcase::after {
  right: -8%;
  bottom: -16%;
  width: 54%;
  aspect-ratio: 1;
  background: rgba(74, 45, 129, 0.18);
  filter: blur(70px);
}

.showcase-window {
  width: 100%;
  aspect-ratio: 1.24;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: #0c1017;
  box-shadow: -20px 44px 120px rgba(0, 0, 0, 0.5);
  transform: rotateY(-8deg) rotateX(2deg);
}

.showcase-toolbar {
  display: flex;
  gap: 6px;
  height: 34px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.showcase-toolbar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.showcase-feature {
  display: grid;
  align-content: end;
  min-height: 55%;
  padding: 36px;
  background-blend-mode: screen, normal;
}

.showcase-feature strong {
  margin-bottom: 4px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  letter-spacing: -0.055em;
}

.showcase-feature small {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.68);
}

.showcase-kicker {
  color: var(--mint);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.showcase-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 20px 24px;
}

.showcase-poster {
  display: grid;
  align-items: end;
  aspect-ratio: 0.72;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.63rem;
  font-weight: 800;
  line-height: 1.15;
}

.landing-proof,
.landing-privacy,
.landing-cta {
  width: min(1260px, calc(100% - 64px));
  margin: 0 auto;
}

.landing-proof {
  padding: 120px 0;
}

.landing-proof > h2,
.landing-privacy h2,
.landing-cta h2 {
  max-width: 880px;
  margin-bottom: 50px;
  font-size: clamp(2.3rem, 4.5vw, 4.5rem);
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.feature-card {
  min-height: 280px;
  padding: 38px 34px 38px 0;
  border-right: 1px solid var(--line);
}

.feature-card + .feature-card {
  padding-left: 34px;
}

.feature-card:last-child {
  border-right: 0;
}

.feature-number,
.document-number,
.option-number {
  display: block;
  margin-bottom: 58px;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.72rem;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.feature-card p {
  max-width: 36ch;
  color: var(--muted);
  line-height: 1.7;
}

.landing-privacy {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(50px, 8vw, 130px);
  min-height: 680px;
  padding: 90px 0;
}

.privacy-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: min(460px, 80vw);
  aspect-ratio: 1;
  margin: auto;
  border: 1px solid rgba(166, 245, 207, 0.18);
  border-radius: 50%;
  box-shadow: inset 0 0 100px rgba(61, 137, 106, 0.08);
}

.privacy-orbit::before,
.privacy-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.privacy-orbit::before {
  width: 56%;
  height: 56%;
  border: 1px solid rgba(193, 171, 255, 0.22);
}

.privacy-orbit::after {
  width: 22%;
  height: 22%;
  background: radial-gradient(circle at 35% 32%, #fff, var(--mint) 14%, rgba(62, 207, 145, 0.3) 46%, transparent 72%);
  box-shadow: 0 0 90px rgba(166, 245, 207, 0.32);
}

.privacy-orbit span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 18px var(--violet);
}

.privacy-orbit span:nth-child(1) { top: 11%; left: 49%; }
.privacy-orbit span:nth-child(2) { right: 12%; bottom: 25%; background: var(--sky); }
.privacy-orbit span:nth-child(3) { bottom: 16%; left: 18%; background: var(--gold); }

.landing-privacy h2 {
  margin-bottom: 26px;
}

.landing-privacy p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.landing-cta {
  display: grid;
  justify-items: center;
  margin-block: 100px;
  padding: 90px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 120%, rgba(166, 245, 207, 0.22), transparent 42%),
    rgba(255, 255, 255, 0.025);
  text-align: center;
}

.landing-cta h2 {
  margin-bottom: 14px;
}

.landing-cta > p:not(.eyebrow) {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.06rem;
}

.public-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.public-footer > div p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.public-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

.public-footer a,
.app-footer a,
.auth-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-note {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 0.78rem;
}

/* App shell */
.app-shell {
  min-height: 100vh;
  padding-top: var(--header-height);
  padding-left: var(--sidebar-width);
}

.app-header {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(280px, 640px) 1fr;
  align-items: center;
  height: var(--header-height);
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 9, 15, 0.86);
  backdrop-filter: blur(24px);
}

.app-menu-button {
  display: none;
}

.header-search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 620px);
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.header-search-shell:focus-within {
  border-color: rgba(166, 245, 207, 0.45);
  background: rgba(255, 255, 255, 0.065);
}

.header-search-shell input {
  min-width: 0;
  min-height: 44px;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-search-shell input::placeholder {
  color: var(--dim);
}

.header-search-shell kbd {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--dim);
  font-size: 0.72rem;
}

.header-actions {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-weight: 750;
}

.profile-trigger::before {
  width: 24px;
  height: 24px;
  margin-right: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--mint) 14%, #4f9474 52%, #17291f 72%);
  content: "";
}

.profile-trigger .icon {
  width: 14px;
  height: 14px;
  margin-left: 8px;
  color: var(--dim);
}

.profile-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  width: 300px;
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: rgba(15, 19, 28, 0.98);
  box-shadow: var(--shadow);
}

.popover-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 10px 13px;
}

.popover-heading > div {
  display: grid;
}

.popover-heading span:last-child {
  color: var(--muted);
  font-size: 0.76rem;
}

.profile-popover hr {
  width: 100%;
  margin: 6px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.menu-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 7px 9px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.menu-item:hover,
.menu-item.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.sidebar {
  position: fixed;
  z-index: 70;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  padding: 24px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 9, 15, 0.78);
}

.sidebar nav {
  display: grid;
  gap: 5px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 45px;
  padding: 0 13px;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 680;
  text-align: left;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.sidebar-link.active {
  background: rgba(166, 245, 207, 0.1);
  color: var(--mint);
}

.sidebar-link .icon {
  width: 24px;
  color: currentColor;
}

.sidebar-spacer {
  flex: 1;
}

.local-mode-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding: 11px;
  border: 1px solid rgba(166, 245, 207, 0.14);
  border-radius: 12px;
  background: rgba(166, 245, 207, 0.045);
}

.local-mode-chip > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-deep);
  box-shadow: 0 0 12px rgba(62, 207, 145, 0.5);
}

.local-mode-chip > div {
  display: grid;
}

.local-mode-chip strong { font-size: 0.78rem; }
.local-mode-chip small { color: var(--dim); font-size: 0.68rem; }

.app-main {
  min-width: 0;
  min-height: calc(100vh - var(--header-height));
}

.mobile-dock,
.mobile-menu-layer {
  display: none;
}

.page-view {
  width: min(var(--content-max), calc(100% - (var(--home-gutter) * 2)));
  margin: 0 auto;
  padding: 58px 0 90px;
}

.media-grid-page {
  padding: 42px 0 72px;
}

.media-grid-page .page-heading {
  margin-bottom: 28px;
}

.media-grid-page > .segmented-control,
.media-grid-page > .tab-list {
  margin-bottom: 24px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
}

.page-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.page-heading .lede {
  margin-bottom: 0;
}

.page-heading-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--content-max), calc(100% - 72px));
  margin: 60px auto 0;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.78rem;
}

.app-footer > div,
.app-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.app-footer a {
  color: var(--muted);
}

.tmdb-footer-credit {
  flex: 1 1 100%;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.tmdb-footer-credit img {
  display: block;
  width: 52px;
  height: auto;
  flex: 0 0 auto;
}

.tmdb-footer-credit p {
  max-width: 520px;
  margin: 0;
  color: var(--dim);
  font-size: 0.72rem;
  line-height: 1.45;
}

/* Artwork is entirely CSS-generated. */
.art-aurora { background: radial-gradient(circle at 68% 24%, rgba(214, 255, 235, 0.9) 0 1%, transparent 13%), radial-gradient(circle at 72% 28%, rgba(77, 229, 179, 0.44), transparent 31%), linear-gradient(140deg, #07151c 0%, #14384c 48%, #553274 100%); }
.art-indigo { background: radial-gradient(circle at 68% 20%, rgba(217, 208, 255, 0.75), transparent 8%), linear-gradient(145deg, #090c20 4%, #272458 50%, #61397a 100%); }
.art-ember { background: radial-gradient(circle at 70% 30%, rgba(255, 206, 126, 0.68), transparent 14%), linear-gradient(145deg, #1b0d12, #6f2633 55%, #d26945); }
.art-frost { background: radial-gradient(circle at 64% 22%, rgba(230, 250, 255, 0.78), transparent 10%), linear-gradient(145deg, #08121b, #1d4d68 52%, #8cb8c5); }
.art-sunset { background: radial-gradient(circle at 70% 28%, rgba(255, 236, 181, 0.9), transparent 12%), linear-gradient(145deg, #31172a, #9f4a5c 55%, #f6a96c); }
.art-rose { background: radial-gradient(circle at 70% 22%, rgba(255, 223, 231, 0.76), transparent 11%), linear-gradient(145deg, #1a101d, #6f395e 48%, #cc7587); }
.art-mint { background: radial-gradient(circle at 68% 24%, rgba(245, 255, 215, 0.9), transparent 11%), linear-gradient(145deg, #071813, #176e5a 50%, #8ccf87); }
.art-sky { background: radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.82), transparent 8%), linear-gradient(145deg, #0b1830, #386ca8 52%, #88c8e8); }
.art-crimson { background: radial-gradient(circle at 72% 28%, rgba(255, 192, 190, 0.56), transparent 10%), linear-gradient(145deg, #16080c, #5b1728 52%, #9e253c); }
.art-gold { background: radial-gradient(circle at 68% 24%, rgba(255, 255, 217, 0.95), transparent 12%), linear-gradient(145deg, #21160a, #93601e 52%, #e4bb58); }
.art-forest { background: radial-gradient(circle at 70% 22%, rgba(208, 255, 207, 0.64), transparent 9%), linear-gradient(145deg, #06120d, #1f5139 50%, #78995d); }
.art-teal { background: radial-gradient(circle at 70% 26%, rgba(203, 255, 244, 0.58), transparent 10%), linear-gradient(145deg, #071316, #1e5960 50%, #639d9f); }

.art-aurora { --art-accent: rgba(166, 245, 207, 0.42); --art-tilt: -18deg; }
.art-indigo { --art-accent: rgba(193, 171, 255, 0.38); --art-tilt: 22deg; }
.art-ember { --art-accent: rgba(255, 185, 116, 0.42); --art-tilt: -32deg; }
.art-frost { --art-accent: rgba(181, 235, 255, 0.4); --art-tilt: 14deg; }
.art-sunset { --art-accent: rgba(255, 213, 132, 0.4); --art-tilt: -9deg; }
.art-rose { --art-accent: rgba(255, 157, 175, 0.42); --art-tilt: 28deg; }
.art-mint { --art-accent: rgba(166, 245, 207, 0.38); --art-tilt: -24deg; }
.art-sky { --art-accent: rgba(140, 207, 255, 0.4); --art-tilt: 17deg; }
.art-crimson { --art-accent: rgba(255, 139, 147, 0.34); --art-tilt: -14deg; }
.art-gold { --art-accent: rgba(255, 213, 132, 0.42); --art-tilt: 25deg; }
.art-forest { --art-accent: rgba(162, 216, 158, 0.36); --art-tilt: -27deg; }
.art-teal { --art-accent: rgba(139, 239, 224, 0.34); --art-tilt: 11deg; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.38fr);
  align-items: center;
  min-height: var(--home-hero-height);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: inherit;
  content: "";
  filter: saturate(0.92);
}

.hero-scrim {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(7, 9, 15, 0.9) 34%, rgba(7, 9, 15, 0.26) 76%, rgba(7, 9, 15, 0.15)), linear-gradient(0deg, var(--ink), transparent 42%);
}

.hero-content {
  width: min(720px, calc(100% - (var(--home-gutter) * 2)));
  margin-left: max(var(--home-gutter), calc((100vw - var(--sidebar-width) - var(--content-max)) / 2));
  padding: 36px 0 46px;
}

.hero-greeting {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 10px;
  font-size: clamp(2.75rem, 5.2vw, 5.4rem);
  font-weight: 720;
  letter-spacing: -0.068em;
  line-height: 0.92;
}

#homeHeroTitle:focus {
  outline: 0;
  box-shadow: none;
}

#homeHeroTitle[data-focus-origin="keyboard"]:focus {
  outline: 0 !important;
  border-radius: 2px;
  box-shadow: 0 0 0 3px var(--focus);
}

.hero-meta {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-synopsis {
  max-width: 590px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.92rem, 1.25vw, 1.04rem);
  line-height: 1.52;
}

.hero .button-row {
  gap: 8px;
}

.hero .button-row .button {
  min-height: 44px;
  padding: 9px 16px;
}

.hero-save-toggle[aria-pressed="true"] {
  border-color: rgba(166, 245, 207, 0.45);
  background: rgba(166, 245, 207, 0.13);
  color: var(--mint);
}

.hero-art-title {
  display: grid;
  place-items: center;
  padding-right: 4vw;
  color: rgba(255, 255, 255, 0.11);
  font-family: Georgia, serif;
  font-size: clamp(10rem, 20vw, 25rem);
  line-height: 1;
  text-shadow: 0 0 100px rgba(255, 255, 255, 0.08);
  user-select: none;
}

.home-rails {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--home-section-gap);
  width: min(var(--content-max), calc(100% - (var(--home-gutter) * 2)));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.content-rail {
  position: relative;
  min-width: 0;
  overflow: visible;
}

.rail-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.rail-heading h2 {
  margin-bottom: 3px;
  overflow: visible;
  font-size: clamp(1.22rem, 1.65vw, 1.62rem);
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.rail-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.rail-heading .arrow-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

.rail-heading-actions,
.rail-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rail-heading-actions {
  flex: 0 0 auto;
}

.rail-nav-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.72);
  color: var(--text);
}

.rail-nav-button > span:not(.icon) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.rail-nav-button:hover:not(:disabled),
.rail-nav-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(19, 25, 41, 0.94);
}

.rail-nav-button:disabled {
  cursor: wait;
  opacity: 0.52;
}

.card-rail {
  display: grid;
  grid-auto-columns: var(--home-card-width);
  grid-auto-flow: column;
  gap: var(--home-rail-gap);
  overflow-x: auto;
  padding: 2px 2px 18px;
  scroll-snap-type: inline proximity;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.card-rail > .title-card {
  scroll-snap-align: start;
}

.title-card {
  position: relative;
  min-width: 0;
}

.poster {
  position: relative;
  position: relative;
  display: grid;
  align-content: end;
  width: 100%;
  aspect-ratio: 0.69;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: border-color 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.poster-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
}

.poster-copy,
.poster-shine {
  position: relative;
  z-index: 1;
}

.poster::before {
  position: absolute;
  top: 12%;
  right: -18%;
  width: 82%;
  aspect-ratio: 1;
  border: 1px solid var(--art-accent, rgba(255, 255, 255, 0.22));
  border-radius: 36% 64% 52% 48% / 42% 36% 64% 58%;
  background:
    linear-gradient(135deg, transparent 46%, var(--art-accent, rgba(255, 255, 255, 0.18)) 47% 49%, transparent 50%),
    radial-gradient(circle at 34% 32%, var(--art-accent, rgba(255, 255, 255, 0.18)), transparent 42%);
  box-shadow: -42px 54px 80px rgba(0, 0, 0, 0.18);
  content: "";
  opacity: 0.82;
  transform: rotate(var(--art-tilt, -18deg));
}

.poster:hover {
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  transform: translateY(-5px);
}

.poster::after {
  position: absolute;
  inset: 36% 0 0;
  background: linear-gradient(transparent, rgba(3, 5, 8, 0.92));
  content: "";
}

.poster-shine {
  position: absolute;
  top: 7%;
  right: 9%;
  width: 32%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
}

.poster-shine::before,
.poster-shine::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.poster-shine::before {
  inset: 24%;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.poster-shine::after {
  top: 44%;
  left: 44%;
  width: 12%;
  height: 12%;
  background: #fff;
  box-shadow: 0 0 16px #fff;
}

.poster-mark {
  position: absolute;
  top: 16%;
  left: 12%;
  color: rgba(255, 255, 255, 0.15);
  font-family: Georgia, serif;
  font-size: clamp(4.5rem, 7vw, 8rem);
  line-height: 1;
}

.poster-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.poster-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(0.8rem, 0.9vw, 0.86rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.poster-copy small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
}

.poster progress {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 8px;
  left: 12px;
  width: calc(100% - 24px);
  height: 3px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  accent-color: var(--mint);
}

.poster progress::-webkit-progress-bar { background: rgba(255, 255, 255, 0.18); }
.poster progress::-webkit-progress-value { background: var(--mint); }

.card-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 11px 4px 0;
}

.card-meta h2,
.card-meta h3 {
  display: -webkit-box;
  margin-bottom: 2px;
  overflow: hidden;
  font-size: clamp(0.86rem, 0.95vw, 0.92rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta p,
.card-synopsis {
  margin: 0;
  color: var(--dim);
  font-size: 0.72rem;
}

@media (min-width: 681px) and (max-width: 1024px) {
  .card-meta h2,
  .card-meta h3 {
    font-size: clamp(0.82rem, 1.8vw, 0.88rem);
    line-height: 1.15;
  }

  .poster-copy strong {
    font-size: clamp(0.78rem, 1.7vw, 0.84rem);
    line-height: 1.15;
  }
}

.round-action {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(7, 9, 15, 0.78);
  color: var(--text);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.round-action > span:not(.icon) { display: none; }
.round-action.saved { border-color: rgba(166, 245, 207, 0.28); background: rgba(166, 245, 207, 0.1); color: var(--mint); }

.card-synopsis {
  display: -webkit-box;
  margin: 10px 4px 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.55;
}

.title-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--home-card-width));
  align-items: start;
  justify-content: start;
  gap: var(--home-rail-gap);
}

.segmented-control,
.tab-list {
  display: flex;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 34px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.segmented-control button,
.tab-list button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 15px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.segmented-control button.active,
.tab-list button.active {
  background: var(--text);
  color: var(--ink);
}

.segmented-control small {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.16);
  font-size: 0.66rem;
}

.search-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 44px;
  padding: 9px 12px 9px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.search-hero:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(166, 245, 207, 0.22), 0 18px 60px rgba(0, 0, 0, 0.18);
}

.search-hero > .icon {
  color: var(--mint);
  font-size: 1.35rem;
}

.search-hero input {
  min-width: 0;
  min-height: 54px;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.search-prompt h2 {
  margin-bottom: 18px;
  font-size: 1.25rem;
}

.genre-cloud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.genre-cloud button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.genre-cloud button:hover {
  border-color: rgba(166, 245, 207, 0.28);
  background: rgba(166, 245, 207, 0.06);
}

.result-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
}

.result-heading h2 { margin: 0; font-size: 1.35rem; }
.result-heading span { color: var(--muted); }

.empty-state {
  display: grid;
  justify-items: center;
  min-height: 360px;
  align-content: center;
  padding: 50px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 22px;
  border: 1px solid rgba(166, 245, 207, 0.22);
  border-radius: 50%;
  background: rgba(166, 245, 207, 0.07);
  color: var(--mint);
  font-size: 1.8rem;
}

.empty-state h2 { margin-bottom: 8px; }
.empty-state p { max-width: 530px; margin-bottom: 20px; color: var(--muted); }

.library-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.summary-metric {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.summary-metric:last-child { border-right: 0; }
.summary-metric strong { font-size: 1.2rem; }
.summary-metric span { color: var(--muted); font-size: 0.78rem; }

/* Details */
.details-view {
  min-height: 100vh;
}

.details-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  min-height: 500px;
  overflow: hidden;
  isolation: isolate;
}

.details-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: inherit;
  content: "";
}

.details-background-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.details-hero-scrim {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(7, 9, 15, 0.88) 40%, rgba(7, 9, 15, 0.14)), linear-gradient(0deg, var(--ink), transparent 48%);
}

.details-hero-content {
  width: min(900px, calc(100% - 64px));
  margin-left: max(36px, calc((100vw - var(--sidebar-width) - var(--content-max)) / 2));
  padding: 34px 0 38px;
}

.details-hero-content > .button:first-child {
  margin-bottom: 22px;
}

.details-hero h1 {
  max-width: 900px;
  margin-bottom: 12px;
  font-size: clamp(2.65rem, 4.2vw, 5rem);
  font-weight: 720;
  letter-spacing: -0.075em;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.metadata-line,
.genre-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.metadata-line {
  margin-bottom: 13px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 700;
}

.details-synopsis {
  display: -webkit-box;
  max-width: 760px;
  margin-bottom: 18px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.73);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.details-art-card {
  display: grid;
  align-content: end;
  align-self: stretch;
  gap: 8px;
  padding: 40px;
  background: linear-gradient(90deg, rgba(7, 9, 15, 0), rgba(7, 9, 15, 0.45));
  color: rgba(255, 255, 255, 0.86);
  user-select: none;
}

.details-art-card span {
  color: var(--mint);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.details-art-card strong {
  max-width: 360px;
  font-size: clamp(1.5rem, 2.2vw, 2.6rem);
  line-height: 1.02;
}

.details-art-card small {
  color: rgba(255, 255, 255, 0.68);
}

.details-body {
  width: min(var(--content-max), calc(100% - 72px));
  margin: 0 auto;
  padding-top: 18px;
  padding-bottom: 70px;
  overflow: visible;
}

.details-tabs {
  margin-inline: 2px;
  margin-bottom: 30px;
  overflow-x: auto;
  overflow-y: hidden;
}

.details-tabs button:focus-visible {
  outline-offset: -3px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  gap: 18px;
}

.story-panel,
.facts-panel,
.settings-group,
.account-list-section,
.account-danger-zone,
.playback-info,
.local-assurance {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.story-panel {
  padding: clamp(28px, 4vw, 52px);
}

.story-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.045em;
}

.story-panel > p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

.facts-panel {
  display: grid;
  align-content: start;
  padding: 12px 24px;
}

.facts-panel > div,
.playback-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.facts-panel > div:last-child,
.playback-facts > div:last-child { border-bottom: 0; }
.facts-panel span,
.playback-facts span { color: var(--muted); }

.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cast-card {
  display: grid;
  justify-items: center;
  min-height: 260px;
  align-content: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.cast-avatar {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
  object-fit: cover;
}

.cast-1 { background: linear-gradient(145deg, #365e69, #172532); }
.cast-2 { background: linear-gradient(145deg, #6a4c79, #241b32); }
.cast-3 { background: linear-gradient(145deg, #705141, #2b211b); }
.cast-4 { background: linear-gradient(145deg, #3e6b54, #172b22); }
.cast-5 { background: linear-gradient(145deg, #735160, #2d1c23); }
.cast-card h3 { margin-bottom: 4px; }
.cast-card p { margin: 0; color: var(--muted); }

.episodes-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
}

.season-list {
  display: grid;
  align-content: start;
  gap: 6px;
}

.season-list h2 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.season-list button {
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 10px 13px;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.season-list button.active {
  background: rgba(166, 245, 207, 0.1);
  color: var(--mint);
}

.season-list small { color: var(--dim); }

.episode-list {
  display: grid;
  gap: 10px;
}

.episode-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.episode-heading h2 { margin-bottom: 0; font-size: 1.8rem; }
.episode-heading > span { color: var(--muted); font-size: 0.8rem; }

.episode-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.episode-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 9px;
  background: #111722;
  color: #fff;
  cursor: pointer;
  isolation: isolate;
}

.episode-still,
.episode-still-placeholder {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
}

.episode-still {
  object-fit: cover;
}

.episode-still-placeholder {
  background:
    radial-gradient(circle at 28% 24%, rgba(166, 245, 207, 0.2), transparent 34%),
    linear-gradient(145deg, #1a2431, #0e131d 65%);
}

.episode-art::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 8, 13, 0.5), transparent 55%), linear-gradient(0deg, rgba(5, 8, 13, 0.72), transparent 58%);
  content: "";
}

.episode-art > .icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(5, 8, 13, 0.64);
  backdrop-filter: blur(6px);
}

.episode-number {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}

.episode-load-state {
  display: grid;
  justify-items: start;
  align-content: center;
  min-height: 138px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.episode-load-state.error {
  border-color: rgba(255, 137, 137, 0.28);
  background: rgba(255, 111, 111, 0.045);
}

.episode-load-state h3 {
  margin-bottom: 6px;
}

.episode-load-state p {
  margin: 0 0 14px;
  color: var(--muted);
}

.episode-title-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.episode-title-line h3 { margin-bottom: 7px; }
.episode-title-line span { color: var(--dim); font-size: 0.76rem; }
.episode-card p { margin: 0; color: var(--muted); font-size: 0.86rem; }

/* Playback */
.playback-view {
  width: min(1400px, calc(100% - 72px));
  margin: 0 auto;
  padding: 34px 0 80px;
}

.playback-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.playback-heading > div {
  text-align: center;
}

.playback-heading .eyebrow { margin-bottom: 3px; }
.playback-heading h1 { margin: 0; font-size: 1.4rem; }
.playback-heading > .badge { justify-self: end; }

.player-shell {
  position: relative;
  display: grid;
  min-height: min(720px, calc(100vh - 210px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.player-vignette {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0 24%, rgba(3, 5, 8, 0.22) 62%, rgba(3, 5, 8, 0.78));
}

.playback-autonext {
  position: absolute;
  left: 16px;
  top: 16px;
  right: auto;
  bottom: auto;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(10, 10, 12, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 0.9rem;
}

.playback-autonext-count {
  font-weight: 600;
}

.player-state {
  display: grid;
  place-items: center;
  width: min(640px, calc(100% - 40px));
  align-self: center;
  justify-self: center;
  text-align: center;
}

.player-state h2 {
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 5vw, 5rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.player-state p:not(.eyebrow) {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.player-start {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  place-items: center;
  gap: 14px;
  min-height: 58px;
  margin-top: 16px;
  padding: 0 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.spinner {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--mint);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.error-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 139, 147, 0.35);
  border-radius: 50%;
  background: rgba(255, 139, 147, 0.13);
  color: var(--danger);
  font-size: 1.8rem;
  font-weight: 900;
}

.player-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(5, 7, 10, 0.66);
  backdrop-filter: blur(16px);
}

.player-control {
  min-height: 44px;
  padding: 7px 11px;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.player-control:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.danger-subtle { color: #ffb8bd; }

.progress-control {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.progress-control input {
  width: 100%;
  accent-color: var(--mint);
}

.player-time {
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
}

.playback-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 40px;
  margin-top: 18px;
  padding: 30px;
}

.playback-info h2 { margin-bottom: 8px; }
.playback-info p { margin: 0; color: var(--muted); line-height: 1.7; }

.vidking-frame,
.vidsrc-frame,
.provider-frame {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  pointer-events: auto;
}

.playback-fullscreen-float {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  bottom: auto;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.playback-fullscreen-float:hover {
  background: rgba(0, 0, 0, 0.78);
}

.playback-fullscreen-float:active {
  transform: scale(0.94);
}

.playback-fullscreen-float:focus-visible {
  outline: 2px solid var(--accent, #7aa2ff);
  outline-offset: 2px;
}

.native-player-mount,
.native-player {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
}

.native-player-mount {
  z-index: 2;
  overflow: hidden;
  background: #000;
}

.native-player {
  border: 0;
  background: #000;
  object-fit: contain;
}

.native-player-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 5, 8, 0.82);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.native-player-mount[data-native-player-state="ready"] .native-player-status {
  opacity: 0;
  visibility: hidden;
}

.native-player-controls {
  position: absolute;
  right: 12px;
  top: calc(0.75rem + 52px);
  bottom: auto;
  z-index: 4;
  display: flex;
  max-width: calc(100% - 24px);
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  pointer-events: auto;
}

.native-player-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.native-player-select {
  max-width: 150px;
  padding: 2px 4px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 5px;
  background: rgba(10, 14, 20, 0.9);
  color: inherit;
  font: inherit;
}

/* Immersive signed-in media surfaces. Desktop keeps the essential title and
   player experiences inside the viewport; tablet and mobile retain the normal
   document flow and may scroll. */
@media (min-width: 1200px) {
  .media-immersive-shell {
    height: 100svh;
    min-height: 0;
    overflow: hidden;
  }

  .media-immersive-shell .app-main {
    height: calc(100svh - var(--header-height));
    min-height: 0;
    overflow: hidden;
  }

  .media-immersive-shell .app-footer {
    display: none;
  }

  .details-immersive-shell .details-view {
    display: grid;
    grid-template-rows: 432px minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .details-immersive-shell .details-hero {
    min-height: 0;
    height: 432px;
  }

  .details-immersive-shell .details-hero-content {
    position: relative;
    z-index: 1;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: min(820px, calc(100% - 56px));
    min-height: 0;
    padding: 14px 0 34px;
    box-sizing: border-box;
  }

  .details-immersive-shell .details-hero-content > .button:first-child {
    margin-bottom: 12px;
  }

  .details-immersive-shell .details-hero h1 {
    max-width: 780px;
    margin-bottom: 9px;
    font-size: clamp(2.5rem, 3.55vw, 4.25rem);
  }

  .details-immersive-shell .metadata-line {
    margin-bottom: 9px;
  }

  .details-immersive-shell .details-synopsis {
    max-width: 720px;
    margin-bottom: 13px;
    line-height: 1.43;
    -webkit-line-clamp: 2;
  }

  .details-immersive-shell .details-hero-content > .button-row {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  .details-immersive-shell .details-art-card {
    padding: 26px 34px;
  }

  .details-immersive-shell .details-body {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(var(--content-max), calc(100% - 56px));
    height: 100%;
    min-height: 0;
    padding: 12px 0 16px;
    overflow: hidden;
  }

  .details-immersive-shell .details-tabs {
    min-height: 44px;
    margin: 0 2px 10px;
  }

  .details-immersive-shell .details-body > [role="tabpanel"] {
    min-height: 0;
    max-height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .details-immersive-shell .overview-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.72fr);
    align-items: start;
    gap: 14px;
  }

  .details-immersive-shell .story-panel {
    align-self: start;
    padding: 20px 24px;
  }

  .details-immersive-shell .story-panel h2 {
    margin-bottom: 10px;
    font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  }

  .details-immersive-shell .story-panel > p:not(.eyebrow) {
    margin-bottom: 14px;
    font-size: 0.94rem;
    line-height: 1.52;
  }

  .details-immersive-shell .facts-panel {
    align-self: start;
    padding: 5px 18px;
  }

  .details-immersive-shell .facts-panel > div {
    padding: 10px 0;
  }

  .details-immersive-shell .cast-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    align-content: start;
  }

  .details-immersive-shell .cast-card {
    min-height: 0;
    padding: 15px 12px;
  }

  .details-immersive-shell .cast-avatar {
    width: 78px;
    height: 78px;
    margin-bottom: 10px;
  }

  .details-immersive-shell .cast-card h3 {
    font-size: 0.94rem;
  }

  .details-immersive-shell .cast-card p {
    font-size: 0.76rem;
  }

  .details-immersive-shell .episodes-layout {
    height: 100%;
    min-height: 0;
  }

  .details-immersive-shell .season-list,
  .details-immersive-shell .episode-list {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .details-immersive-shell .episode-card {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    padding: 9px;
  }

  .playback-immersive-shell .playback-view {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 11px;
    width: min(1500px, calc(100% - 48px));
    height: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: 12px 0 16px;
    overflow: hidden;
  }

  .playback-immersive-shell .playback-heading {
    min-height: 44px;
    margin: 0;
  }

  .playback-immersive-shell .player-shell {
    height: 100%;
    min-height: 0;
    border-radius: 16px;
  }

  .playback-immersive-shell .playback-info {
    grid-template-columns: minmax(0, 1.3fr) minmax(500px, 0.9fr);
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 12px 18px;
  }

  .playback-immersive-shell .playback-info h2 {
    margin-bottom: 4px;
    font-size: 1rem;
  }

  .playback-immersive-shell .playback-info p {
    font-size: 0.78rem;
    line-height: 1.42;
  }

  .playback-immersive-shell .playback-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .playback-immersive-shell .playback-facts > div {
    display: grid;
    justify-content: start;
    gap: 2px;
    padding: 2px 12px;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }

  .playback-immersive-shell .playback-facts strong,
  .playback-immersive-shell .playback-facts span {
    font-size: 0.75rem;
  }
}

/* Profiles, account, settings */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.profile-card.active { border-color: rgba(166, 245, 207, 0.3); }

.profile-select {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 132px;
  padding: 24px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.profile-select h2 { margin-bottom: 3px; font-size: 1.25rem; }
.profile-select p { margin: 0; color: var(--muted); font-size: 0.78rem; }

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: #233;
}

.avatar i,
.avatar::before,
.avatar::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.avatar i { width: 18%; height: 18%; background: #fff; box-shadow: 0 0 14px #fff; }
.avatar::before { width: 62%; height: 62%; border: 1px solid rgba(255, 255, 255, 0.3); }
.avatar::after { width: 88%; height: 28%; border-top: 1px solid rgba(255, 255, 255, 0.3); transform: rotate(-24deg); }
.avatar-small { width: 34px; height: 34px; }
.avatar-mint { background: linear-gradient(145deg, #174336, #79c9a2); }
.avatar-sky { background: linear-gradient(145deg, #183d5a, #79b5db); }
.avatar-violet { background: linear-gradient(145deg, #382951, #9a7dcc); }
.avatar-gold { background: linear-gradient(145deg, #59401b, #d7ad5b); }
.avatar-rose { background: linear-gradient(145deg, #5d2939, #d88096); }

.profile-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}

.local-assurance {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding: 24px;
}

.local-assurance > .icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(166, 245, 207, 0.08);
  color: var(--mint);
  font-size: 1.4rem;
}

.local-assurance h2 { margin-bottom: 4px; font-size: 1.05rem; }
.local-assurance p { margin: 0; color: var(--muted); font-size: 0.86rem; }

.account-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(240px, 0.45fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, rgba(166, 245, 207, 0.07), rgba(193, 171, 255, 0.04)), var(--surface);
}

.account-orb {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(166, 245, 207, 0.26);
  border-radius: 50%;
  box-shadow: inset 0 0 36px rgba(166, 245, 207, 0.08);
}

.account-orb span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 28px rgba(166, 245, 207, 0.55);
}

.account-hero h2 { margin-bottom: 5px; font-size: 1.55rem; }
.account-hero p:not(.eyebrow) { margin: 0; color: var(--muted); }

.account-switcher,
.setting-select {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.account-switcher select,
.setting-select select,
.profile-form input[type="text"] {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-3);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.security-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 174px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.security-card > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.security-card h2 { margin: 0; font-size: 1rem; }
.security-card p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.6; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-mint { background: var(--mint-deep); box-shadow: 0 0 10px var(--mint-deep); }
.status-sky { background: var(--sky); box-shadow: 0 0 10px var(--sky); }
.status-violet { background: var(--violet); box-shadow: 0 0 10px var(--violet); }

.account-list-section {
  margin-top: 18px;
  padding: 26px;
}

.account-list-section > header,
.settings-group > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.account-list-section > header h2,
.settings-group > header h2 { margin-bottom: 0; }
.account-list-section > header > span { color: var(--muted); font-size: 0.78rem; }

.account-list {
  display: grid;
}

.account-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.account-list article:last-child { border-bottom: 0; }
.device-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); color: var(--muted); }
.account-list h3 { margin-bottom: 3px; font-size: 0.95rem; }
.account-list p { margin: 0; color: var(--muted); font-size: 0.78rem; }

.account-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 18px;
  padding: 28px;
}

.account-danger-zone h2 { margin-bottom: 5px; }
.account-danger-zone p:not(.eyebrow) { max-width: 700px; margin: 0; color: var(--muted); }

.settings-view {
  max-width: 1120px;
}

.settings-group {
  margin-bottom: 16px;
  padding: 26px;
}

.settings-group > header p { max-width: 600px; margin: 0; color: var(--muted); font-size: 0.86rem; }

.settings-rows {
  display: grid;
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.setting-row:last-child { border-bottom: 0; }
.setting-row > div { display: grid; gap: 3px; }
.setting-row strong { font-size: 0.94rem; }
.setting-row span:not(.switch):not(.badge) { color: var(--muted); font-size: 0.79rem; }

.switch {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 44px;
}

.switch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch i {
  position: absolute;
  inset: 8px 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-3);
  pointer-events: none;
  transition: background 180ms var(--ease);
}

.switch i::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

.switch input:checked + i { background: rgba(166, 245, 207, 0.18); }
.switch input:checked + i::after { background: var(--mint); transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid var(--focus); outline-offset: 3px; }

.setting-select {
  grid-template-columns: minmax(0, 1fr) 220px;
}

.settings-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.settings-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-weight: 700;
}

/* Public documents and auth */
.document-page {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  padding: 90px 0 120px;
}

.document-hero {
  max-width: 900px;
  padding: 50px 0 80px;
}

.document-hero h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 710;
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.document-hero .badge { margin-top: 14px; }

.catalog-attribution {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  margin: 0 0 54px;
  padding: 32px;
  border: 1px solid rgba(1, 180, 228, 0.28);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(13, 37, 63, 0.62), rgba(255, 255, 255, 0.025));
}

.catalog-attribution-mark {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(3, 14, 24, 0.74);
  color: var(--dim);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-attribution-mark img {
  display: block;
  width: min(94px, 100%);
  height: auto;
}

.catalog-attribution h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  letter-spacing: -0.04em;
}

.catalog-attribution p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.catalog-attribution .source-license-notice + .source-license-notice {
  margin-top: 12px;
}

.catalog-attribution .source-license-notice a {
  color: var(--text);
  font-weight: 800;
  text-underline-offset: 0.18em;
}
.document-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 72px;
}

.document-layout > aside {
  display: grid;
  align-content: start;
  gap: 10px;
  position: sticky;
  top: 100px;
  height: max-content;
  color: var(--dim);
  font-size: 0.8rem;
}

.document-layout > aside p {
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 800;
}

.document-sections {
  display: grid;
}

.document-sections section {
  position: relative;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.document-sections section:last-child { border-bottom: 1px solid var(--line); }
.document-number { margin-bottom: 24px; }
.document-sections h2 { margin-bottom: 14px; font-size: clamp(1.5rem, 2.5vw, 2.2rem); letter-spacing: -0.04em; }
.document-sections p { max-width: 760px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }

.document-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 80px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.document-next h2 { margin-bottom: 6px; }
.document-next p { margin: 0; color: var(--muted); }

.deletion-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.deletion-options article {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.deletion-options .option-number { margin-bottom: 78px; }
.deletion-options h2 { font-size: 1.75rem; }
.deletion-options p { flex: 1; color: var(--muted); line-height: 1.7; }
.deletion-options .button { align-self: flex-start; }

.document-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 213, 132, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 213, 132, 0.045);
}

.document-note > .icon { color: var(--gold); font-size: 1.4rem; }
.document-note h2 { margin-bottom: 5px; font-size: 1.05rem; }
.document-note p { margin: 0; color: var(--muted); }

.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(1160px, calc(100% - 64px));
  min-height: calc(100vh - 82px);
  align-items: center;
  gap: clamp(50px, 8vw, 130px);
  margin: 0 auto;
  padding: 60px 0 100px;
}

.auth-visual {
  display: grid;
  justify-items: center;
  gap: 44px;
  color: var(--muted);
  text-align: center;
}

.auth-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: min(440px, 40vw);
  aspect-ratio: 1;
  border: 1px solid rgba(166, 245, 207, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 245, 207, 0.14), transparent 58%);
}

.auth-orbit::before,
.auth-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.auth-orbit::before { width: 58%; height: 58%; border: 1px solid rgba(193, 171, 255, 0.25); }
.auth-orbit::after { width: 16%; height: 16%; background: var(--mint); box-shadow: 0 0 70px rgba(166, 245, 207, 0.45); }
.auth-orbit i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 16px var(--sky); }
.auth-orbit i:nth-child(1) { top: 10%; left: 48%; }
.auth-orbit i:nth-child(2) { right: 10%; bottom: 28%; background: var(--violet); }
.auth-orbit i:nth-child(3) { bottom: 14%; left: 22%; background: var(--gold); }

.auth-card {
  width: min(100%, 500px);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(17, 22, 32, 0.88);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin-bottom: 13px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.auth-copy {
  margin-bottom: 26px;
  color: var(--muted);
  line-height: 1.65;
}

.auth-form,
.profile-form {
  display: grid;
  gap: 18px;
}

.auth-form label:not(.consent-row),
.profile-form > label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.auth-form input[type="email"] {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-3);
}

.consent-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.consent-row input { margin-top: 3px; accent-color: var(--mint); }

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.auth-links a { color: var(--mint); font-size: 0.82rem; }

.auth-boundary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.71rem;
  text-align: center;
}

.auth-actions-stack {
  display: grid;
  gap: 10px;
}

.auth-notice,
.safe-error {
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(166, 245, 207, 0.18);
  border-radius: 9px;
  background: rgba(166, 245, 207, 0.055);
  color: var(--mint);
  font-size: 0.8rem;
}

.safe-error {
  display: grid;
  border-color: rgba(255, 139, 147, 0.2);
  background: rgba(255, 139, 147, 0.06);
  color: #ffc0c5;
}

.safe-error span { color: var(--muted); }

.callback-check {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border: 1px solid rgba(166, 245, 207, 0.3);
  border-radius: 50%;
  background: rgba(166, 245, 207, 0.09);
  color: var(--mint);
  font-size: 2rem;
}

/* System states */
.system-main {
  display: grid;
  min-height: calc(100vh - 82px);
  place-items: center;
  padding: 50px;
}

.system-state {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(820px, calc(100% - 64px));
  min-height: min(620px, calc(100vh - 164px));
  align-content: center;
  margin: 0 auto;
  padding: 70px 30px;
  overflow: hidden;
  text-align: center;
}

.app-main > .system-state {
  min-height: calc(100vh - var(--header-height));
}

.state-orbit {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(620px, 80vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 245, 207, 0.08), transparent 62%);
  transform: translate(-50%, -50%);
}

.state-orbit::before,
.state-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.state-orbit::before { inset: 22%; border: 1px solid rgba(193, 171, 255, 0.1); }
.state-orbit::after { top: 49%; left: 49%; width: 2%; height: 2%; background: var(--mint); box-shadow: 0 0 40px var(--mint); }
.state-code { margin-bottom: 18px; color: var(--mint); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.system-state h1 { max-width: 760px; margin-bottom: 18px; font-size: clamp(3rem, 7vw, 7rem); letter-spacing: -0.075em; line-height: 0.94; }
.system-state .lede { margin-bottom: 28px; text-align: center; }
.system-state small { margin-top: 22px; color: var(--dim); }

/* Modals */
.modal-layer {
  position: fixed;
  z-index: 250;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 7, 0.78);
  cursor: default;
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  padding: clamp(24px, 4vw, 36px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #111620;
  box-shadow: var(--shadow);
}

.modal-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  margin-bottom: 26px;
}

.modal-heading h2 {
  margin-bottom: 7px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.05em;
}

.modal-heading p:not(.eyebrow) { margin: 0; color: var(--muted); }

.profile-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.profile-form legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: rgba(166, 245, 207, 0.32);
  background: rgba(166, 245, 207, 0.055);
}

.choice-card input { accent-color: var(--mint); }
.choice-card span { display: grid; }
.choice-card small { color: var(--muted); }

.accent-options {
  display: flex;
  gap: 12px;
}

.accent-options label {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.accent-options input {
  position: absolute;
  opacity: 0;
}

.accent-options span {
  display: block;
  width: 38px;
  height: 38px;
  border: 3px solid transparent;
  border-radius: 50%;
  cursor: pointer;
}

.accent-options input:checked + span { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px rgba(255, 255, 255, 0.28); }
.accent-options input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 4px; }
.accent-options .accent-mint span { background: var(--mint-deep); }
.accent-options .accent-sky span { background: #5ba8df; }
.accent-options .accent-violet span { background: #8c6bc5; }
.accent-options .accent-gold span { background: #d4a647; }
.accent-options .accent-rose span { background: #d86d88; }

.form-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.form-status.error { color: var(--danger); }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 8px;
}

.danger-modal > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.delete-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.delete-summary .avatar { width: 52px; height: 52px; }
.delete-summary > div { display: grid; }
.delete-summary span { color: var(--muted); font-size: 0.8rem; }

.toast-region {
  position: fixed;
  z-index: 280;
  right: 24px;
  bottom: 24px;
  width: min(390px, calc(100vw - 32px));
}

.toast {
  display: grid;
  gap: 3px;
  padding: 15px 17px;
  border: 1px solid rgba(166, 245, 207, 0.25);
  border-radius: 12px;
  background: rgba(14, 22, 19, 0.97);
  box-shadow: var(--shadow);
}

.toast span { color: var(--muted); font-size: 0.8rem; }
.toast-error { border-color: rgba(255, 139, 147, 0.28); background: rgba(28, 16, 18, 0.97); }

.noscript-shell {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 40px;
  text-align: center;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Compact desktop / tablet */
@media (max-width: 1180px) {
  :root {
    --sidebar-width: 76px;
    --home-card-width: clamp(148px, 15.5vw, 170px);
  }
  .app-header { grid-template-columns: var(--sidebar-width) minmax(240px, 560px) 1fr; padding-inline: 18px; }
  .sidebar { padding-inline: 12px; }
  .sidebar-link { justify-content: center; padding: 0; }
  .sidebar-link span:not(.icon), .local-mode-chip div { display: none; }
  .local-mode-chip { justify-content: center; }
  .landing-hero { grid-template-columns: 1fr 0.85fr; gap: 48px; }
  .showcase-window { transform: none; }
  .hero-content, .details-hero-content { margin-left: 36px; }
}

@media (min-width: 921px) and (max-width: 1180px) {
  .app-header > .brand {
    justify-self: start;
    min-width: 44px;
  }
  .app-header > .brand .brand-word { display: none; }
}

@media (max-width: 920px) {
  :root {
    --header-height: 64px;
    --home-card-width: clamp(150px, 19vw, 176px);
  }
  .app-shell { padding-left: 0; padding-bottom: 102px; }
  .sidebar { display: none; }
  .app-header { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 12px; }
  .app-menu-button { display: grid; }
  .header-search-shell { justify-self: end; width: min(100%, 420px); }
  .mobile-dock { position: fixed; z-index: 90; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 68px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(10, 13, 20, 0.96); box-shadow: var(--shadow); backdrop-filter: blur(22px); }
  .mobile-dock button { display: grid; min-width: 44px; min-height: 54px; justify-items: center; align-content: center; gap: 3px; border-radius: 13px; background: transparent; color: var(--dim); cursor: pointer; font-size: 0.68rem; }
  .mobile-dock button .icon { font-size: 1.05rem; }
  .mobile-dock button.active { background: rgba(166, 245, 207, 0.1); color: var(--mint); }
  .mobile-menu-layer { position: fixed; z-index: 180; inset: 0; display: grid; justify-items: end; }
  .menu-scrim { position: absolute; inset: 0; background: rgba(2, 4, 7, 0.66); backdrop-filter: blur(7px); }
  .mobile-menu { position: relative; width: min(420px, calc(100% - 28px)); height: 100%; padding: 24px; border-left: 1px solid var(--line-strong); background: #0f141e; box-shadow: var(--shadow); }
  .mobile-menu-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
  .mobile-menu-heading h2 { margin: 0; }
  .mobile-menu nav { display: grid; }
  .mobile-menu nav button { display: flex; align-items: center; justify-content: space-between; min-height: 58px; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; text-align: left; }
  .public-menu-button { display: grid; }
  .public-nav { display: none; }
  .landing-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 80px; }
  .landing-copy { max-width: 760px; }
  .landing-showcase { width: min(720px, 100%); justify-self: center; }
  .landing-proof { padding-block: 90px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card + .feature-card { min-height: 220px; padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-number { margin-bottom: 35px; }
  .landing-privacy { grid-template-columns: 1fr; }
  .hero, .details-hero { grid-template-columns: minmax(0, 1fr) minmax(180px, 0.3fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-hero { grid-template-columns: auto minmax(0, 1fr); }
  .account-switcher { grid-column: 1 / -1; }
  .security-grid { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; justify-items: center; }
  .auth-visual { display: none; }
  .auth-card { width: min(100%, 560px); }
}

/* Mobile */
@media (max-width: 680px) {
  :root {
    --header-height: 62px;
    --home-gutter: 14px;
    --home-hero-height: clamp(400px, 56vh, 460px);
    --home-card-width: clamp(132px, 42vw, 154px);
    --home-rail-gap: 10px;
    --home-section-gap: 28px;
  }
  body { font-size: 15px; }
  .public-header, .public-footer, .landing-hero, .landing-proof, .landing-privacy, .landing-cta, .document-page, .auth-page { width: calc(100% - 32px); }
  .public-header { min-height: 68px; }
  .brand-word { font-size: 0.96rem; }
  .brand-symbol { width: 27px; height: 27px; }
  .app-header { grid-template-columns: auto minmax(0, 1fr) auto; padding-inline: 12px; }
  .app-header > .brand { justify-self: center; }
  .app-header .header-search-shell { display: none; }
  .profile-trigger { width: 44px; height: 44px; padding: 0; font-size: 0; }
  .profile-trigger::before { margin: 0; }
  .profile-trigger .icon { display: none; }
  .profile-popover { position: fixed; top: 69px; right: 10px; left: 10px; width: auto; }
  .page-view, .home-rails, .details-body, .playback-view, .app-footer { width: calc(100% - 28px); }
  .page-view { padding: 34px 0 64px; }
  .page-heading { display: grid; margin-bottom: 28px; }
  .page-heading h1 { font-size: clamp(2.3rem, 13vw, 4rem); }
  .page-heading-actions { justify-self: start; }
  .hero { grid-template-columns: 1fr; min-height: var(--home-hero-height); }
  .hero-content { width: calc(100% - 28px); margin: 0 auto; padding: 24px 0 28px; }
  .hero-greeting { align-items: flex-start; flex-direction: column; gap: 5px; margin-bottom: 12px; }
  .hero-greeting > span:not(.badge) { display: none; }
  .hero h1 { margin-bottom: 8px; font-size: clamp(2.2rem, 11vw, 3.5rem); line-height: 0.94; }
  .hero-meta { margin-bottom: 10px; font-size: 0.78rem; }
  .hero-synopsis { display: -webkit-box; margin-bottom: 14px; overflow: hidden; font-size: 0.88rem; line-height: 1.44; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .hero .button-row .button { min-height: 44px; padding: 8px 13px; font-size: 0.82rem; }
  .hero-art-title { position: absolute; z-index: -1; right: -20px; top: 54px; opacity: 0.64; }
  .home-rails { margin-top: 0; gap: var(--home-section-gap); padding-top: 14px; }
  .rail-heading { align-items: center; margin-bottom: 10px; }
  .rail-heading h2 { font-size: 1.16rem; }
  .rail-heading p { font-size: 0.72rem; line-height: 1.35; }
  .card-rail { grid-auto-columns: var(--home-card-width); gap: var(--home-rail-gap); padding-bottom: 14px; }
  .poster { padding: 13px; border-radius: 12px; }
  .poster-copy strong { font-size: clamp(0.76rem, 3.5vw, 0.82rem); line-height: 1.15; }
  .card-meta { grid-template-columns: minmax(0, 1fr); padding-right: 2px; }
  .card-synopsis { display: none; }
  .segmented-control { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; overflow: visible; border-radius: 14px; }
  .segmented-control button { width: 100%; min-width: 0; justify-content: space-between; }
  .segmented-control button:first-child { grid-column: 1 / -1; }
  .genre-cloud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-hero { padding-left: 14px; }
  .library-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-metric:nth-child(2) { border-right: 0; }
  .summary-metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .details-hero { grid-template-columns: 1fr; min-height: 590px; }
  .details-hero { min-height: 520px; }
  .details-hero-content { width: calc(100% - 32px); margin: 0 auto; padding: 24px 0 36px; }
  .details-hero-content > .button:first-child { margin-bottom: 22px; }
  .details-hero h1 { font-size: clamp(2.4rem, 10.5vw, 4rem); }
  .details-art-card { display: none; }
  .details-monogram { position: absolute; z-index: -1; right: -30px; top: 110px; }
  .details-tabs { width: 100%; border-radius: 12px; }
  .story-panel, .facts-panel { padding: 22px; }
  .cast-grid { grid-template-columns: 1fr; }
  .cast-card { min-height: 210px; }
  .episodes-layout { grid-template-columns: 1fr; }
  .season-list { grid-auto-columns: minmax(150px, 1fr); grid-auto-flow: column; overflow-x: auto; }
  .season-list h2 { display: none; }
  .episode-card { grid-template-columns: 1fr; }
  .episode-art { width: 100%; }
  .playback-view { padding-top: 20px; }
  .playback-heading { grid-template-columns: auto minmax(0, 1fr); }
  .playback-heading > div { text-align: left; }
  .playback-heading > .badge { display: none; }
  .player-shell { min-height: 520px; }
  .player-controls { grid-template-columns: auto minmax(70px, 1fr) auto; }
  .player-controls .player-control:nth-of-type(n+2) { display: none; }
  .playback-info { grid-template-columns: 1fr; padding: 22px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-select { min-height: 110px; padding: 18px; }
  .local-assurance { grid-template-columns: auto minmax(0, 1fr); }
  .local-assurance .arrow-link { grid-column: 1 / -1; }
  .account-hero { grid-template-columns: 1fr; }
  .account-orb { width: 64px; height: 64px; }
  .account-list article { grid-template-columns: auto minmax(0, 1fr); padding-block: 12px; }
  .account-list article > :last-child { grid-column: 2; justify-self: start; }
  .account-danger-zone { align-items: flex-start; flex-direction: column; }
  .settings-group { padding: 20px; }
  .settings-group > header { display: grid; }
  .setting-row { min-height: 92px; }
  .setting-select { grid-template-columns: 1fr; padding-block: 14px; }
  .settings-links { grid-template-columns: 1fr; }
  .public-footer { grid-template-columns: 1fr; }
  .public-footer nav { justify-content: flex-start; }
  .landing-hero { gap: 44px; padding: 48px 0 62px; }
  .landing-copy h1 { font-size: clamp(2.7rem, 14vw, 4.5rem); line-height: 0.98; }
  .landing-lede { margin-bottom: 24px; font-size: 1rem; line-height: 1.62; }
  .trust-list { margin-top: 26px; }
  .showcase-feature { padding: 22px; }
  .showcase-rail { gap: 6px; padding: 10px 12px 16px; }
  .showcase-poster { padding: 6px; font-size: 0.5rem; }
  .landing-proof, .landing-privacy { padding-block: 56px; }
  .landing-privacy { min-height: auto; }
  .privacy-orbit { width: min(340px, 80vw); }
  .landing-proof > h2, .landing-privacy h2, .landing-cta h2 { margin-bottom: 30px; font-size: clamp(2rem, 11vw, 3.2rem); }
  .landing-cta { margin-block: 44px; padding: 48px 20px; }
  .document-page { padding-top: 46px; }
  .document-hero { padding-bottom: 54px; }
  .document-hero h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .catalog-attribution { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .document-layout { grid-template-columns: 1fr; gap: 10px; }
  .document-layout > aside { display: none; }
  .document-next { align-items: flex-start; flex-direction: column; }
  .deletion-options { grid-template-columns: 1fr; }
  .deletion-options article { min-height: 330px; }
  .auth-page { padding-top: 34px; }
  .auth-card { padding: 28px 20px; }
  .system-main { padding: 24px 10px; }
  .system-state { width: calc(100% - 20px); min-height: min(470px, calc(100vh - 120px)); padding: 48px 18px; }
  .system-state h1 { font-size: clamp(2.65rem, 14vw, 4.6rem); }
  .system-state .button-row { justify-content: center; width: 100%; }
  .modal-layer { padding: 10px; align-items: end; }
  .modal-card { width: 100%; max-height: calc(100vh - 20px); border-radius: 22px 22px 14px 14px; }
  .modal-actions { display: grid; grid-template-columns: 1fr; }
  .modal-actions .button { width: 100%; }
  .toast-region { right: 16px; bottom: 88px; left: 16px; width: auto; }
  .app-footer { align-items: flex-start; flex-direction: column; margin-bottom: 40px; }
  .app-footer nav { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .hero-synopsis { -webkit-line-clamp: 2; }
  .hero .eyebrow { margin-bottom: 7px; font-size: 0.64rem; }
  .hero h1 { font-size: clamp(2.15rem, 11vw, 3.1rem); }
  .playback-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .playback-heading > .button { justify-self: start; }
  .card-meta h2, .card-meta h3 { font-size: clamp(0.8rem, 4vw, 0.86rem); line-height: 1.15; }
  .round-action { width: 44px; height: 44px; }
  .mobile-dock { right: 8px; left: 8px; }
  .mobile-dock button { font-size: 0.62rem; }
  .mobile-dock button .icon { font-size: 1rem; }
  .showcase-window { border-radius: 18px; }
  .showcase-feature { min-height: 52%; padding: 18px; }
  .showcase-rail { overflow: hidden; }
  .connection-notice > span:nth-of-type(2) { display: none; }
}

@media (max-width: 340px) and (max-height: 650px) {
  :root { --home-hero-height: 360px; }
  .hero-content { padding-block: 18px 22px; }
  .hero-synopsis { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Version 2 final predeploy corrections: loading geometry and bounded facts reflow. */
.app-shell .v2-home-skeleton {
  display: block;
  min-height: 900px;
  padding: 0;
}

.app-shell .v2-home-skeleton .home-loading-hero {
  position: relative;
  width: 100%;
  min-height: clamp(480px, 65svh, 720px);
  margin: calc(-1 * var(--v39-header)) 0 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #0a0e15;
  animation: none;
}

.app-shell .home-skeleton-backdrop {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(7, 10, 15, 0.98) 0%, rgba(7, 10, 15, 0.72) 45%, rgba(7, 10, 15, 0.16) 78%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
}

.app-shell .home-skeleton-copy {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(680px, calc(100% - (2 * var(--v39-gutter))));
  gap: 14px;
  padding: calc(var(--v39-header) + clamp(46px, 8vh, 88px)) 0 clamp(68px, 10vh, 110px);
  margin-left: var(--v39-gutter);
}

.app-shell .home-skeleton-copy .v2-skeleton,
.app-shell .home-skeleton-rail-heading .v2-skeleton { display: block; }
.app-shell .home-skeleton-eyebrow { width: 112px; height: 11px; }
.app-shell .home-skeleton-title { width: min(78%, 520px); height: clamp(48px, 5vw, 72px); margin-block: 2px 4px; }
.app-shell .home-skeleton-meta { width: min(56%, 360px); height: 13px; }
.app-shell .home-skeleton-synopsis { display: grid; max-width: 610px; gap: 9px; margin-top: 6px; }
.app-shell .home-skeleton-line { width: 100%; height: 12px; }
.app-shell .home-skeleton-line.short { width: 68%; }
.app-shell .home-skeleton-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.app-shell .home-skeleton-action { width: 142px; height: 46px; border-radius: 10px; }
.app-shell .home-skeleton-action.primary { width: 104px; }
.app-shell .home-skeleton-action.compact { width: 92px; }
.app-shell .home-skeleton-continue { padding: 30px var(--v39-gutter) 12px; }
.app-shell .home-skeleton-rail-heading { display: grid; gap: 8px; margin-bottom: 16px; }
.app-shell .home-skeleton-heading { width: 224px; height: 24px; }
.app-shell .home-skeleton-subheading { width: 180px; height: 11px; }
.app-shell .v2-home-skeleton .home-loading-rail { gap: 26px var(--catalog-card-gap); }
.app-shell .episode-row-skeleton { min-height: 112px; align-items: center; }
.app-shell .episode-skeleton-copy { display: grid; align-content: center; gap: 10px; height: auto; }
.app-shell .episode-skeleton-title { width: min(62%, 330px); height: 14px; }
.app-shell .episode-skeleton-runtime { width: 84px; height: 10px; }
.app-shell .episode-skeleton-description { width: min(88%, 560px); height: 10px; }
.app-shell .playback-episode-skeletons { display: grid; gap: 7px; }
.app-shell .playback-episode-skeletons .episode-row-skeleton {
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 58px;
  gap: 11px;
  padding: 8px;
  border-radius: 10px;
}
.app-shell .playback-episode-skeletons .episode-skeleton-art { width: 72px; height: 41px; border-radius: 8px; }
.app-shell .playback-episode-skeletons .episode-skeleton-description { display: none; }
.app-shell :is(.episode-still-fallback, .episode-still-placeholder) {
  background: radial-gradient(circle at 72% 22%, rgba(153, 232, 197, 0.2), transparent 34%), linear-gradient(145deg, #202b3b, #10161f 68%);
}
.app-shell .library-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1360px) {
  .app-shell .details-overview-surface,
  .app-shell .details-skeleton-overview { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .app-shell .title-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px clamp(20px, 4vw, 48px); }
  .app-shell .title-fact :is(dt, dd) { overflow-wrap: normal; }
}
@media (max-width: 480px) {
  .app-shell .title-facts { grid-template-columns: 1fr; }
}
html[data-motion="reduce"] .app-shell .v2-skeleton,
html[data-motion="reduce"] .app-shell .home-loading-hero { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .app-shell .v2-skeleton,
  .app-shell .home-loading-hero { animation: none !important; transition: none !important; }
}

.app-shell .episode-row-skeleton {
  min-height: 112px;
  align-items: center;
}
.app-shell .episode-skeleton-copy {
  display: grid;
  align-content: center;
  gap: 10px;
  height: auto;
}
.app-shell .episode-skeleton-title { width: min(62%, 330px); height: 14px; }
.app-shell .episode-skeleton-runtime { width: 84px; height: 10px; }
.app-shell .episode-skeleton-description { width: min(88%, 560px); height: 10px; }
.app-shell .playback-episode-skeletons { display: grid; gap: 7px; }
.app-shell .playback-episode-skeletons .episode-row-skeleton {
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 58px;
  gap: 11px;
  padding: 8px;
  border-radius: 10px;
}
.app-shell .playback-episode-skeletons .episode-skeleton-art { width: 72px; height: 41px; border-radius: 8px; }
.app-shell .playback-episode-skeletons .episode-skeleton-description { display: none; }
.app-shell :is(.episode-still-fallback, .episode-still-placeholder) {
  background:
    radial-gradient(circle at 72% 22%, rgba(153, 232, 197, 0.2), transparent 34%),
    linear-gradient(145deg, #202b3b, #10161f 68%);
}

.app-shell .library-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1360px) {
  .app-shell .details-overview-surface,
  .app-shell .details-skeleton-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .app-shell .title-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px clamp(20px, 4vw, 48px);
  }
  .app-shell .title-fact :is(dt, dd) { overflow-wrap: normal; }
}

@media (max-width: 480px) {
  .app-shell .title-facts { grid-template-columns: 1fr; }
}

html[data-motion="reduce"] .app-shell .v2-skeleton,
html[data-motion="reduce"] .app-shell .home-loading-hero {
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .app-shell .v2-skeleton,
  .app-shell .home-loading-hero {
    animation: none !important;
    transition: none !important;
  }
}

html[data-motion="reduce"] {
  scroll-behavior: auto;
}

html[data-motion="reduce"] *,
html[data-motion="reduce"] *::before,
html[data-motion="reduce"] *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight; }
  .poster, .hero, .details-hero, .player-shell, .showcase-feature, .showcase-poster { background: Canvas; }
}

.hero-background-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.hero-scrim,
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-scrim {
  position: absolute;
}

.ranking-number {
  position: absolute;
  z-index: 3;
  left: 8px;
  top: 8px;
  display: grid;
  min-width: 36px;
  min-height: 36px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.36);
  border-radius: 12px;
  color: #fff;
  background: rgb(4 9 16 / 0.82);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.28);
}

.catalog-filters {
  display: grid;
  gap: 12px;
  margin-block: 18px 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.catalog-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  align-items: end;
}

.catalog-media-selector {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}

.catalog-media-selector button {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.catalog-media-selector button.active {
  background: var(--text);
  color: var(--ink);
}

.catalog-media-selector button:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

.catalog-filter-control {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
}

.catalog-filter-control select,
.catalog-filter-control input[type="number"] {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-strong);
  font: inherit;
}

.catalog-filter-control select option {
  color: #f7f8fb;
  background: #151922;
}

.catalog-filter-check {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
}

.catalog-filter-check input {
  width: 20px;
  height: 20px;
}

.catalog-filter-actions,
.catalog-pager,
.active-filter-list {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.catalog-pager {
  justify-content: center;
  margin-top: 22px;
}

.catalog-status,
.catalog-error,
.data-attribution {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.catalog-error {
  color: var(--danger);
}

.kids-age-limit-field {
  display: grid;
  gap: 7px;
}

.kids-age-limit-field select {
  min-height: 44px;
  padding-inline: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-strong);
}

@media (max-width: 420px) {
  .catalog-filters {
    padding: 11px;
    border-radius: 16px;
  }

  .catalog-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-filter-actions .button {
    flex: 1 1 120px;
  }

  .hero-background-image {
    object-position: 58% center;
  }
}
.kids-review-assurance {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(17, 24, 39, 0.72);
}

.kids-review-assurance h2,
.kids-review-assurance p { margin: 0; }
.kids-review-assurance p { margin-top: .35rem; color: var(--muted); }
.kids-review-grid { display: grid; gap: 1.25rem; min-width: 0; }
.kids-review-error { color: #fecaca; }

.kids-review-card {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(12, 18, 31, .9);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.kids-review-card:focus { outline: 3px solid var(--mint); outline-offset: 3px; }
.kids-review-card.is-approved { border-color: rgba(112, 255, 203, .55); }
.kids-review-card.is-rejected { border-color: rgba(203, 213, 225, .34); }

.kids-review-poster {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(145deg, #213047, #0a0f18);
}

.kids-review-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kids-review-poster .badge { position: absolute; left: .65rem; right: .65rem; bottom: .65rem; justify-content: center; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.kids-review-copy,
.kids-review-form { min-width: 0; }
.kids-review-copy h2 { margin: .2rem 0 .6rem; }
.kids-review-synopsis { color: var(--muted); line-height: 1.6; }

.kids-rating-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin: 1rem 0;
}

.kids-rating-evidence div { padding: .75rem; border: 1px solid var(--line); border-radius: .8rem; }
.kids-rating-evidence dt { color: var(--muted); font-size: .8rem; }
.kids-rating-evidence dd { margin: .3rem 0 0; font-weight: 700; }
.kids-review-form label { display: grid; gap: .4rem; }
.kids-review-form textarea { min-height: 56px; resize: vertical; }
.kids-review-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .75rem; }
.kids-review-actions .button { min-height: 44px; }

@media (max-width: 720px) {
  .kids-review-card { grid-template-columns: 1fr; }
  .kids-review-poster { min-height: 360px; }
  .kids-rating-evidence { grid-template-columns: 1fr; }
  .kids-review-actions .button { flex: 1 1 100%; }
}

/* One-viewport public presentation for desktop. Tablet and mobile retain the
   normal document flow and may scroll. */
@media (min-width: 921px) {
  .public-landing-shell,
  .public-compact-document-shell,
  .public-desktop-document-shell,
  .public-desktop-deletion-shell {
    display: grid;
    grid-template-rows: 58px minmax(0, 1fr) 68px;
    height: 100svh;
    min-height: 720px;
    overflow: clip;
  }

  .public-landing-shell .public-header,
  .public-compact-document-shell .public-header,
  .public-desktop-document-shell .public-header,
  .public-desktop-deletion-shell .public-header {
    min-height: 58px;
  }

  .public-landing-shell .public-footer,
  .public-compact-document-shell .public-footer,
  .public-desktop-document-shell .public-footer,
  .public-desktop-deletion-shell .public-footer {
    grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.6fr) minmax(180px, 0.7fr);
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 7px 0;
  }

  .public-landing-shell .public-footer > div,
  .public-compact-document-shell .public-footer > div,
  .public-desktop-document-shell .public-footer > div,
  .public-desktop-deletion-shell .public-footer > div {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
  }

  .public-landing-shell .public-footer > div p,
  .public-compact-document-shell .public-footer > div p,
  .public-desktop-document-shell .public-footer > div p,
  .public-desktop-deletion-shell .public-footer > div p,
  .public-landing-shell .footer-note,
  .public-compact-document-shell .footer-note,
  .public-desktop-document-shell .footer-note,
  .public-desktop-deletion-shell .footer-note {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .public-landing-shell .public-footer nav,
  .public-compact-document-shell .public-footer nav,
  .public-desktop-document-shell .public-footer nav,
  .public-desktop-deletion-shell .public-footer nav {
    justify-content: center;
    gap: 3px 16px;
  }

  .public-landing-shell .public-footer a,
  .public-compact-document-shell .public-footer a,
  .public-desktop-document-shell .public-footer a,
  .public-desktop-deletion-shell .public-footer a {
    min-height: 32px;
    font-size: 0.74rem;
  }

  .public-landing-shell .footer-note,
  .public-compact-document-shell .footer-note,
  .public-desktop-document-shell .footer-note,
  .public-desktop-deletion-shell .footer-note {
    grid-column: auto;
    text-align: right;
  }

  .public-landing-shell .landing-main {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(220px, 0.75fr);
    grid-template-rows: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 12px;
    width: min(1440px, calc(100% - 48px));
    min-height: 0;
    margin: 0 auto;
    padding: 10px 0 12px;
    overflow: clip;
  }

  .public-landing-shell .landing-hero {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
    gap: clamp(24px, 4vw, 58px);
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 4px 0 8px;
  }

  .public-landing-shell .landing-copy {
    align-self: center;
  }

  .public-landing-shell .eyebrow {
    margin-bottom: 6px;
    font-size: 0.64rem;
  }

  .public-landing-shell .landing-copy h1 {
    max-width: 740px;
    margin-bottom: 10px;
    font-size: clamp(2.6rem, 4.1vw, 4.8rem);
    letter-spacing: -0.06em;
    line-height: 0.94;
  }

  .public-landing-shell .landing-lede {
    max-width: 670px;
    margin-bottom: 13px;
    font-size: clamp(0.84rem, 1.18vw, 1rem);
    line-height: 1.45;
  }

  .public-landing-shell .button.large {
    min-height: 42px;
    padding-inline: 16px;
    font-size: 0.84rem;
  }

  .public-landing-shell .trust-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 12px;
    margin-top: 13px;
  }

  .public-landing-shell .trust-list li {
    align-items: flex-start;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .public-landing-shell .landing-showcase {
    align-self: center;
    width: min(100%, 620px);
    justify-self: end;
  }

  .public-landing-shell .showcase-window {
    display: grid;
    grid-template-rows: 28px minmax(0, 1fr) auto;
    aspect-ratio: 1.7;
    border-radius: 18px;
    transform: none;
  }

  .public-landing-shell .showcase-toolbar {
    height: 28px;
    padding: 10px;
  }

  .public-landing-shell .showcase-feature {
    min-height: 0;
    padding: 18px 22px;
  }

  .public-landing-shell .showcase-feature strong {
    font-size: clamp(1.35rem, 2.4vw, 2.35rem);
  }

  .public-landing-shell .showcase-feature small {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .public-landing-shell .showcase-rail {
    gap: 6px;
    padding: 8px 12px 12px;
  }

  .public-landing-shell .showcase-poster {
    aspect-ratio: 0.9;
    padding: 6px;
    font-size: 0.5rem;
  }

  .public-landing-shell .landing-proof,
  .public-landing-shell .landing-privacy,
  .public-landing-shell .landing-cta {
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
  }

  .public-landing-shell .landing-proof {
    display: grid;
    align-content: start;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .public-landing-shell .landing-proof > h2,
  .public-landing-shell .landing-privacy h2,
  .public-landing-shell .landing-cta h2 {
    max-width: none;
    margin-bottom: 8px;
    font-size: clamp(1.2rem, 1.7vw, 1.65rem);
    letter-spacing: -0.045em;
    line-height: 1.05;
  }

  .public-landing-shell .feature-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    border-top: 0;
  }

  .public-landing-shell .feature-card,
  .public-landing-shell .feature-card + .feature-card {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 2px 8px;
    min-height: 0;
    padding: 7px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .public-landing-shell .feature-card:last-child {
    border-bottom: 0;
  }

  .public-landing-shell .feature-number {
    grid-row: 1 / 3;
    margin: 2px 0 0;
  }

  .public-landing-shell .feature-card h3 {
    margin: 0;
    font-size: 0.92rem;
  }

  .public-landing-shell .feature-card p {
    max-width: none;
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.32;
  }

  .public-landing-shell .landing-privacy {
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .public-landing-shell .privacy-orbit {
    width: 78px;
  }

  .public-landing-shell .landing-privacy p:not(.eyebrow) {
    margin-bottom: 9px;
    font-size: 0.74rem;
    line-height: 1.4;
  }

  .public-landing-shell .landing-privacy .arrow-link {
    font-size: 0.76rem;
  }

  .public-landing-shell .landing-cta {
    align-content: center;
    justify-items: start;
    text-align: left;
    background:
      radial-gradient(circle at 50% 120%, rgba(166, 245, 207, 0.17), transparent 48%),
      rgba(255, 255, 255, 0.025);
  }

  .public-landing-shell .landing-cta > p:not(.eyebrow) {
    margin-bottom: 12px;
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .public-compact-document-shell .document-page {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 10px;
    width: min(1320px, calc(100% - 48px));
    min-height: 0;
    margin: 0 auto;
    padding: 10px 0 12px;
    overflow: hidden;
  }

  .public-compact-document-shell .document-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 3px 16px;
    max-width: none;
    padding: 2px 0 10px;
    border-bottom: 1px solid var(--line);
  }

  .public-compact-document-shell .document-hero .eyebrow {
    grid-row: 1 / 3;
    margin: 0;
    font-size: 0.68rem;
  }

  .public-compact-document-shell .document-hero h1 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: clamp(2rem, 3.3vw, 3.5rem);
    letter-spacing: -0.055em;
    line-height: 0.96;
  }

  .public-compact-document-shell .document-hero .lede {
    grid-column: 2;
    grid-row: 2;
    max-width: 850px;
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .public-compact-document-shell .document-hero .badge {
    grid-column: 3;
    grid-row: 1 / 3;
    margin: 0;
  }

  .public-compact-document-shell .document-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 7px;
    min-height: 0;
  }

  .public-compact-document-shell .document-layout > aside {
    position: static;
    display: flex;
    align-items: center;
    gap: 8px 16px;
    height: auto;
    min-width: 0;
    overflow: hidden;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .public-compact-document-shell .document-layout > aside p {
    margin: 0;
  }

  .public-compact-document-shell .document-layout > aside span {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
  }

  .public-compact-document-shell .document-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 9px;
    min-height: 0;
  }

  .public-compact-document-shell .document-sections section,
  .public-compact-document-shell .document-sections section:last-child {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 4px 10px;
    min-height: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
  }

  .public-compact-document-shell .document-number {
    grid-row: 1 / 3;
    margin: 2px 0 0;
  }

  .public-compact-document-shell .document-sections h2 {
    margin: 0;
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    letter-spacing: -0.03em;
    line-height: 1.12;
  }

  .public-compact-document-shell .document-sections p {
    max-width: none;
    margin: 0;
    font-size: clamp(0.74rem, 0.85vw, 0.86rem);
    line-height: 1.42;
  }

  .public-compact-document-shell .document-next {
    min-height: 64px;
    margin: 0;
    padding: 9px 14px;
    border-radius: 14px;
  }

  .public-compact-document-shell .document-next h2 {
    margin-bottom: 2px;
    font-size: 1rem;
  }

  .public-compact-document-shell .document-next p {
    font-size: 0.76rem;
  }

  .public-compact-document-shell .document-next .button {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 0.8rem;
  }

  .public-desktop-document-shell .document-page,
  .public-desktop-deletion-shell .document-page {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px;
    width: min(1500px, calc(100% - 48px));
    min-height: 0;
    margin: 0 auto;
    padding: 9px 0 11px;
    overflow: clip;
  }

  .public-desktop-document-shell .document-page-terms,
  .public-desktop-document-shell .document-page-credits {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .public-desktop-document-shell .document-hero,
  .public-desktop-deletion-shell .document-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 3px 16px;
    max-width: none;
    padding: 2px 0 8px;
    border-bottom: 1px solid var(--line);
  }

  .public-desktop-document-shell .document-hero .eyebrow,
  .public-desktop-deletion-shell .document-hero .eyebrow {
    grid-row: 1 / 3;
    margin: 0;
    font-size: 0.68rem;
  }

  .public-desktop-document-shell .document-hero h1,
  .public-desktop-deletion-shell .document-hero h1 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: clamp(1.9rem, 2.8vw, 3rem);
    letter-spacing: -0.05em;
    line-height: 0.98;
  }

  .public-desktop-document-shell .document-hero .lede,
  .public-desktop-deletion-shell .document-hero .lede {
    grid-column: 2;
    grid-row: 2;
    max-width: 900px;
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.38;
  }

  .public-desktop-document-shell .document-hero .badge,
  .public-desktop-deletion-shell .document-hero .badge {
    grid-column: 3;
    grid-row: 1 / 3;
    margin: 0;
  }

  .public-desktop-document-shell .catalog-attribution {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    margin: 0;
    padding: 9px 13px;
    border-radius: 14px;
  }

  .public-desktop-document-shell .catalog-attribution-mark {
    min-height: 58px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 0.6rem;
    line-height: 1.25;
  }

  .public-desktop-document-shell .catalog-attribution-mark img {
    width: 58px;
  }

  .public-desktop-document-shell .catalog-attribution h2 {
    margin-bottom: 3px;
    font-size: 1rem;
  }

  .public-desktop-document-shell .catalog-attribution p {
    max-width: none;
    font-size: 0.7rem;
    line-height: 1.28;
  }

  .public-desktop-document-shell .catalog-attribution .source-license-notice + .source-license-notice {
    margin-top: 3px;
  }

  .public-desktop-document-shell .document-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 7px;
    min-height: 0;
  }

  .public-desktop-document-shell .document-layout > aside {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    height: auto;
    min-width: 0;
    color: var(--dim);
    font-size: 0.67rem;
    line-height: 1.25;
  }

  .public-desktop-document-shell .document-layout > aside p {
    margin: 0;
  }

  .public-desktop-document-shell .document-layout > aside span {
    color: var(--muted);
  }

  .public-desktop-document-shell .document-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
  }

  .public-desktop-document-shell .document-page-terms .document-sections {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .public-desktop-document-shell .document-sections section,
  .public-desktop-document-shell .document-sections section:last-child {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 3px 9px;
    min-height: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
  }

  .public-desktop-document-shell .document-number {
    grid-row: 1 / 3;
    margin: 2px 0 0;
  }

  .public-desktop-document-shell .document-sections h2 {
    margin: 0;
    font-size: clamp(0.96rem, 1.15vw, 1.18rem);
    letter-spacing: -0.025em;
    line-height: 1.12;
  }

  .public-desktop-document-shell .document-sections p {
    max-width: none;
    margin: 0;
    font-size: clamp(0.74rem, 0.78vw, 0.84rem);
    line-height: 1.38;
  }

  .public-desktop-document-shell .document-next {
    min-height: 58px;
    margin: 0;
    padding: 7px 13px;
    border-radius: 13px;
  }

  .public-desktop-document-shell .document-next h2 {
    margin-bottom: 1px;
    font-size: 0.96rem;
  }

  .public-desktop-document-shell .document-next p {
    font-size: 0.73rem;
  }

  .public-desktop-document-shell .document-next .button {
    min-height: 38px;
    padding-inline: 13px;
    font-size: 0.78rem;
  }

  .public-desktop-deletion-shell .deletion-options {
    min-height: 0;
    gap: 10px;
  }

  .public-desktop-deletion-shell .deletion-options article {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    min-height: 0;
    padding: 19px 21px;
    border-radius: 15px;
  }

  .public-desktop-deletion-shell .deletion-options .option-number {
    margin: 0 0 8px;
  }

  .public-desktop-deletion-shell .deletion-options h2 {
    margin-bottom: 5px;
    font-size: 1.35rem;
  }

  .public-desktop-deletion-shell .deletion-options p {
    margin: 0 0 10px;
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .public-desktop-deletion-shell .document-note {
    gap: 12px;
    margin: 0;
    padding: 12px 16px;
    border-radius: 13px;
  }

  .public-desktop-deletion-shell .document-note h2 {
    margin-bottom: 2px;
  }

  .public-desktop-deletion-shell .document-note p {
    font-size: 0.78rem;
    line-height: 1.4;
  }
}

/* Final landing overrides intentionally follow the shared one-viewport
   document rules so the editorial presentation cannot regress to cards. */
@media (min-width: 921px) {
  .public-landing-shell {
    background:
      radial-gradient(circle at 78% 17%, rgba(101, 70, 168, 0.1), transparent 28%),
      radial-gradient(circle at 14% 74%, rgba(87, 179, 139, 0.07), transparent 24%),
      var(--page);
  }

  .public-landing-shell .landing-main {
    grid-template-columns: minmax(0, 1.48fr) minmax(0, 0.96fr) minmax(220px, 0.68fr);
    grid-template-rows: minmax(0, 1.62fr) minmax(0, 0.92fr);
    gap: 0 24px;
  }

  .public-landing-shell .landing-hero {
    position: relative;
    gap: clamp(30px, 4.4vw, 70px);
    padding: 5px 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .public-landing-shell .landing-hero::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 28%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(166, 245, 207, 0.68));
  }

  .public-landing-shell .landing-copy h1 {
    max-width: 780px;
    font-size: clamp(3rem, 4.45vw, 5.15rem);
  }

  .public-landing-shell .lumen-stage {
    min-height: 0;
    height: clamp(318px, 36vh, 390px);
    border-radius: 22px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  }

  .public-landing-shell .lumen-stage-header {
    padding: 12px 16px;
    font-size: 0.53rem;
  }

  .public-landing-shell .lumen-orbit {
    min-height: 0;
  }

  .public-landing-shell .lumen-stage-copy {
    padding: 18px 22px 18px 0;
  }

  .public-landing-shell .lumen-stage-copy strong {
    font-size: clamp(1.45rem, 2.25vw, 2.35rem);
  }

  .public-landing-shell .lumen-capabilities li {
    padding: 11px 14px;
  }

  .public-landing-shell .landing-proof,
  .public-landing-shell .landing-privacy,
  .public-landing-shell .landing-cta {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 18px 0 8px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: none;
  }

  .public-landing-shell .landing-proof,
  .public-landing-shell .landing-privacy {
    padding-right: 22px;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
  }

  .public-landing-shell .landing-proof {
    display: grid;
    align-content: start;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .public-landing-shell .landing-proof > h2,
  .public-landing-shell .landing-privacy h2,
  .public-landing-shell .landing-cta h2 {
    max-width: none;
    margin-bottom: 8px;
    font-size: clamp(1.22rem, 1.65vw, 1.72rem);
  }

  .public-landing-shell .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  .public-landing-shell .feature-card,
  .public-landing-shell .feature-card + .feature-card {
    display: block;
    min-height: 0;
    padding: 10px 12px 0 0;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.075);
  }

  .public-landing-shell .feature-card + .feature-card {
    padding-left: 12px;
  }

  .public-landing-shell .feature-card:last-child {
    border-right: 0;
  }

  .public-landing-shell .feature-number {
    margin: 0 0 8px;
  }

  .public-landing-shell .feature-card h3 {
    margin-bottom: 5px;
    font-size: 0.88rem;
  }

  .public-landing-shell .feature-card p {
    font-size: 0.68rem;
    line-height: 1.38;
  }

  .public-landing-shell .landing-privacy {
    grid-template-columns: 66px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .public-landing-shell .privacy-orbit {
    width: 66px;
  }

  .public-landing-shell .landing-privacy p:not(.eyebrow) {
    margin-bottom: 8px;
    font-size: 0.7rem;
    line-height: 1.4;
  }

  .public-landing-shell .landing-cta {
    align-content: center;
    justify-items: start;
    padding-left: 2px;
    text-align: left;
  }

  .public-landing-shell .landing-cta::before {
    display: block;
    width: 38px;
    height: 2px;
    margin-bottom: 12px;
    content: "";
    background: linear-gradient(90deg, var(--mint), var(--violet));
  }

  .public-landing-shell .landing-cta > p:not(.eyebrow) {
    margin-bottom: 11px;
    font-size: 0.71rem;
    line-height: 1.4;
  }
}

/* Version 31 final cascade: the header is always the single authoritative Search input. */
.app-header .header-search-authoritative {
  display: flex;
  justify-self: center;
  width: min(100%, 680px);
  padding-left: 14px;
}

.app-header .header-search-authoritative .header-search-clear {
  min-width: 58px;
  min-height: 34px;
  padding: 5px 10px;
}

.app-header .header-search-authoritative .header-search-clear[hidden] {
  display: none;
}

.catalog-row-loading {
  min-height: 22px;
  margin: 5px 8px 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.player-load-status {
  min-height: 1em;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

@media (min-width: 1200px) and (min-height: 760px) {
  .search-view {
    height: calc(100svh - var(--header-height));
    grid-template-rows: auto auto minmax(0, 1fr);
    align-content: stretch;
    padding-block: 12px;
  }

  .search-view .catalog-filters {
    padding-block: 8px;
  }

  .search-view #searchResultsRegion {
    min-height: 0;
    padding-right: 5px;
    padding-bottom: 12px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .search-view #searchResultsRegion > .empty-state {
    min-height: min(300px, 100%);
  }
}

@media (max-width: 920px) {
  .app-header .header-search-authoritative {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 680px) {
  .app-header.app-header-search-active {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .app-header-search-active > .brand {
    display: none;
  }

  .app-header.app-header-search-active .header-search-shell {
    display: flex;
    min-width: 0;
    padding-inline: 10px 6px;
  }

  .app-header-search-active .header-search-clear {
    min-width: 48px;
    padding-inline: 7px;
  }
}

/* Version 33 final cascade: permanently retire the desktop sidebar inset. */
.app-shell {
  padding-left: 0;
}

/* Version 34 consolidated signed-in system.
   This final scoped layer deliberately owns the authenticated shell so legacy
   sidebar and fixed-canvas rules cannot compete with the current composition. */
.app-shell {
  --v34-canvas: #07090f;
  --v34-canvas-soft: #0b0f18;
  --v34-surface: rgba(18, 23, 34, 0.78);
  --v34-surface-strong: rgba(24, 30, 43, 0.94);
  --v34-border: rgba(183, 203, 224, 0.15);
  --v34-border-active: rgba(137, 246, 199, 0.46);
  --v34-text: #f6f7fb;
  --v34-muted: #9ca8bb;
  --v34-accent: #8ef2c4;
  --v34-accent-2: #a78bfa;
  --v34-focus: #a7f8d4;
  --v34-gutter: clamp(18px, 2.3vw, 46px);
  --v34-radius-sm: 12px;
  --v34-radius-md: 20px;
  --v34-radius-lg: 30px;
  --v34-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  min-height: 100svh;
  padding: 0;
  color: var(--v34-text);
  background:
    radial-gradient(circle at 16% 4%, rgba(87, 237, 186, 0.09), transparent 31%),
    radial-gradient(circle at 88% 18%, rgba(126, 94, 240, 0.09), transparent 34%),
    linear-gradient(180deg, var(--v34-canvas-soft), var(--v34-canvas) 38%);
}

.app-shell :is(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--v34-focus);
  outline-offset: 3px;
}

.app-shell .app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr) auto;
  gap: clamp(14px, 1.7vw, 30px);
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 10px var(--v34-gutter);
  border-bottom: 1px solid var(--v34-border);
  background: rgba(7, 10, 16, 0.82);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px) saturate(1.16);
}

.app-shell .app-header > .brand {
  min-width: max-content;
}

.app-shell .app-top-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.app-shell .app-top-nav-link {
  min-height: 42px;
  padding: 8px 15px;
  color: var(--v34-muted);
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.app-shell .app-top-nav-link:is(:hover, .active) {
  color: var(--v34-text);
  background: rgba(255, 255, 255, 0.07);
}

.app-shell .app-top-nav-link.active {
  box-shadow: inset 0 0 0 1px rgba(142, 242, 196, 0.2), 0 0 24px rgba(77, 220, 164, 0.08);
}

.app-shell .header-search-authoritative {
  justify-self: stretch;
  width: 100%;
  max-width: none;
  min-height: 44px;
  border-color: var(--v34-border);
  background: rgba(15, 19, 29, 0.76);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.app-shell .header-search-authoritative:focus-within {
  border-color: var(--v34-border-active);
  box-shadow: 0 0 0 4px rgba(107, 237, 184, 0.08);
}

.app-shell .profile-trigger {
  min-height: 44px;
  border-color: var(--v34-border);
  background: rgba(255, 255, 255, 0.035);
}

.app-shell .app-main {
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: visible;
}

.app-shell :is(.page-view, .home-rails, .details-body, .playback-view, .app-footer) {
  width: calc(100% - (2 * var(--v34-gutter)));
  max-width: none;
  margin-inline: var(--v34-gutter);
}

.app-shell .page-heading {
  gap: 28px;
  align-items: end;
  margin: 0 0 20px;
}

.app-shell .page-heading h1 {
  max-width: 18ch;
  margin-bottom: 7px;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.app-shell .page-heading .lede {
  max-width: 66ch;
  color: var(--v34-muted);
}

.app-shell .home-view {
  width: 100%;
}

.app-shell .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 38vw);
  width: calc(100% - (2 * var(--v34-gutter)));
  min-height: clamp(390px, 52vh, 570px);
  margin: 22px var(--v34-gutter) 32px;
  overflow: hidden;
  border: 1px solid var(--v34-border);
  border-radius: var(--v34-radius-lg);
  box-shadow: var(--v34-shadow);
}

.app-shell .hero-background-image {
  filter: saturate(0.9) contrast(1.03);
}

.app-shell .hero-scrim {
  background:
    linear-gradient(90deg, rgba(7, 9, 15, 0.98) 0%, rgba(7, 9, 15, 0.83) 34%, rgba(7, 9, 15, 0.2) 72%, rgba(7, 9, 15, 0.08)),
    linear-gradient(0deg, rgba(7, 9, 15, 0.68), transparent 45%);
}

.app-shell .hero-content {
  align-self: end;
  width: min(710px, 92%);
  margin: 0;
  padding: clamp(34px, 5vw, 76px);
}

.app-shell .hero h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 7.2vw, 8.4rem);
  line-height: 0.82;
  letter-spacing: -0.065em;
}

.app-shell .hero-synopsis {
  max-width: 64ch;
  color: rgba(239, 243, 251, 0.82);
}

.app-shell .home-rails {
  display: grid;
  gap: 30px;
}

.app-shell .content-rail {
  min-width: 0;
  padding-bottom: 4px;
}

.app-shell .rail-heading {
  margin-bottom: 12px;
}

.app-shell .rail-heading h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
  letter-spacing: -0.03em;
}

.app-shell .card-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(170px, 14vw, 250px);
  gap: clamp(13px, 1.2vw, 22px);
  padding: 4px 1px 14px;
  scroll-padding-inline: 1px;
  overscroll-behavior-inline: contain;
}

.app-shell .content-rail::after {
  right: -1px;
  width: clamp(30px, 4vw, 72px);
  background: linear-gradient(90deg, transparent, rgba(7, 9, 15, 0.92));
  pointer-events: none;
}

.app-shell .poster {
  overflow: hidden;
  border-color: var(--v34-border);
  border-radius: 18px;
  background: var(--v34-surface);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.app-shell .title-card:is(:hover, :focus-within) .poster {
  border-color: rgba(142, 242, 196, 0.34);
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
}

.app-shell .catalog-row-error {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 7px 0;
  padding: 10px 13px;
  color: #f4c8c8;
  border: 1px solid rgba(250, 132, 132, 0.2);
  border-radius: var(--v34-radius-sm);
  background: rgba(100, 28, 36, 0.12);
}

.app-shell .home-loading-composition {
  display: grid;
  gap: 20px;
  min-height: 520px;
  padding: 20px 0;
}

.app-shell :is(.home-loading-hero, .home-loading-rail > span) {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--v34-border);
  background: linear-gradient(110deg, rgba(255,255,255,0.025), rgba(255,255,255,0.065), rgba(255,255,255,0.025));
  background-size: 220% 100%;
  animation: v34-shimmer 1.8s ease-in-out infinite;
}

.app-shell .home-loading-hero {
  min-height: 340px;
  border-radius: var(--v34-radius-lg);
}

.app-shell .home-loading-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.app-shell .home-loading-rail > span {
  aspect-ratio: 2 / 3;
  border-radius: 16px;
}

@keyframes v34-shimmer {
  50% { background-position: 100% 0; }
}

.app-shell .catalog-filters {
  padding: 14px;
  border: 1px solid var(--v34-border);
  border-radius: var(--v34-radius-md);
  background: linear-gradient(135deg, rgba(25, 31, 44, 0.72), rgba(12, 16, 24, 0.72));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.app-shell .catalog-media-selector {
  width: max-content;
  margin-bottom: 12px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
}

.app-shell .catalog-filter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(116px, 1fr)) auto;
  gap: 10px 12px;
  align-items: end;
}

.app-shell .catalog-filter-control {
  min-width: 0;
}

.app-shell .catalog-filter-control > span {
  color: var(--v34-muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.app-shell .catalog-filter-control :is(input, select) {
  min-height: 42px;
  border-color: var(--v34-border);
  border-radius: 10px;
  background: rgba(7, 10, 16, 0.62);
}

.app-shell .active-filter-list {
  margin-top: 10px;
}

.app-shell :is(.search-view, .media-grid-page, .library-view) {
  padding-block: clamp(22px, 3.2vw, 48px);
}

.app-shell .search-view #searchResultsRegion {
  min-height: 0;
}

.app-shell :where(.title-grid) {
  grid-template-columns: repeat(auto-fill, var(--home-card-width));
  justify-content: start;
  gap: 24px 18px;
}

.app-shell .empty-state {
  min-height: 190px;
  padding: 30px;
  border: 1px solid var(--v34-border);
  border-radius: var(--v34-radius-md);
  background: linear-gradient(135deg, rgba(21, 26, 38, 0.55), rgba(11, 14, 22, 0.45));
}

.app-shell .empty-icon {
  width: 40px;
  height: 40px;
}

.app-shell .details-view {
  width: 100%;
}

.app-shell .details-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: calc(100% - (2 * var(--v34-gutter)));
  min-height: clamp(430px, 57vh, 650px);
  margin: 22px var(--v34-gutter) 0;
  overflow: hidden;
  border: 1px solid var(--v34-border);
  border-radius: var(--v34-radius-lg);
  box-shadow: var(--v34-shadow);
}

.app-shell .details-hero-scrim {
  background:
    linear-gradient(90deg, rgba(7, 9, 15, 0.98), rgba(7, 9, 15, 0.79) 38%, rgba(7, 9, 15, 0.12) 78%),
    linear-gradient(0deg, rgba(7, 9, 15, 0.65), transparent 48%);
}

.app-shell .details-hero-content {
  align-self: end;
  width: min(790px, 92%);
  margin: 0;
  padding: clamp(32px, 4.5vw, 72px);
}

.app-shell .details-hero h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 6.1vw, 7.2rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
}

.app-shell .details-synopsis {
  max-width: 68ch;
}

.app-shell .details-body {
  padding-block: 18px 52px;
}

.app-shell .details-tabs {
  position: sticky;
  top: 78px;
  z-index: 8;
  width: max-content;
  max-width: 100%;
  margin-bottom: 16px;
  border-color: var(--v34-border);
  background: rgba(9, 12, 19, 0.86);
  backdrop-filter: blur(18px);
}

.app-shell :is(.story-panel, .facts-panel, .episode-list, .season-list, .cast-card) {
  border-color: var(--v34-border);
  background: var(--v34-surface);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.02);
}

.app-shell .overview-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
}

.app-shell .story-panel > p:not(.eyebrow) {
  max-width: 74ch;
}

.app-shell .episodes-layout {
  align-items: start;
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr);
  min-height: 0;
}

.app-shell .season-list {
  position: sticky;
  top: 145px;
  max-height: none;
  overflow: visible;
}

.app-shell .mobile-filter-toggle {
  display: none;
}

.app-shell .episode-card {
  grid-template-columns: clamp(150px, 18vw, 260px) minmax(0, 1fr);
  min-height: 132px;
}

.app-shell .playback-view {
  display: grid;
  gap: 14px;
  padding-block: 18px 30px;
}

.app-shell .playback-heading {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 52px;
  margin: 0;
}

.app-shell .playback-stage,
.app-shell .playback-stage-series {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 10px;
  min-width: 0;
}

.app-shell .player-shell {
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--v34-border);
  border-radius: var(--v34-radius-md);
  background: #000;
  box-shadow: var(--v34-shadow);
}

.app-shell .vidking-frame,
.app-shell .vidsrc-frame,
.app-shell .provider-frame,
.app-shell .native-player-mount,
.app-shell .native-player {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: auto;
}

.app-shell .player-vignette {
  z-index: -1;
  pointer-events: none;
}

.app-shell .playback-navigator-compact {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 10px 14px;
  border: 1px solid var(--v34-border);
  border-radius: var(--v34-radius-sm);
  background: var(--v34-surface);
}

.app-shell .playback-navigator-heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.app-shell .playback-navigator-heading :is(strong, small) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .playback-episode-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.app-shell .playback-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  border-color: var(--v34-border);
  background: rgba(17, 22, 32, 0.66);
}

.app-shell .playback-info > div:first-child > p:not(.player-load-status) {
  display: block;
  max-width: 72ch;
  margin-top: 2px;
  font-size: 0.72rem;
  line-height: 1.35;
}

.app-shell .playback-facts {
  display: flex;
  gap: 20px;
  align-items: center;
}

.app-shell .playback-facts > div {
  display: grid;
  gap: 2px;
  padding: 0;
  border: 0;
}

.app-shell .library-summary {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 14px;
}

.app-shell .summary-metric {
  min-width: 130px;
  padding: 10px 13px;
  border-color: var(--v34-border);
  border-radius: var(--v34-radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.app-shell .summary-metric strong {
  font-size: 1.05rem;
}

.app-shell .app-footer {
  margin-top: 56px;
  padding-block: 22px 30px;
  border-top: 1px solid var(--v34-border);
}

.auth-public-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100svh;
}

.auth-public-shell .auth-page {
  align-self: stretch;
  min-height: 0;
  padding-block: clamp(22px, 4vh, 52px);
}

.auth-public-shell .auth-orbit {
  width: min(34vw, 340px);
  height: min(34vw, 340px);
}

.auth-public-shell .auth-card {
  width: min(100%, 470px);
  padding: clamp(26px, 3vw, 40px);
}

@media (min-width: 1200px) and (min-height: 760px) {
  .app-shell .search-view {
    height: calc(100svh - 68px);
    padding-block: 18px;
  }

  .app-shell .search-view #searchResultsRegion {
    overflow: auto;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
  }

  .app-shell .playback-view {
    height: calc(100svh - 68px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
  }

  .app-shell .playback-stage {
    min-height: 0;
  }

  .app-shell .player-shell {
    justify-self: center;
    align-self: center;
    width: min(100%, calc((100svh - 230px) * 16 / 9));
    max-height: calc(100svh - 230px);
  }
}

@media (max-width: 1180px) {
  .app-shell .app-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .app-shell .app-top-nav {
    display: flex;
  }

  .app-shell .catalog-filter-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .app-shell .catalog-filter-actions {
    grid-column: 1 / -1;
  }

  .app-shell .overview-grid {
    grid-template-columns: 1fr;
  }

  .app-shell .episodes-layout {
    grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  }
}

@media (max-width: 920px) {
  .app-shell {
    --v34-gutter: clamp(16px, 4vw, 28px);
    padding-bottom: 84px;
  }

  .app-shell .app-header {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .app-shell .hero {
    grid-template-columns: 1fr;
    min-height: 480px;
  }

  .app-shell .hero-content {
    padding: 34px;
  }

  .app-shell .catalog-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell .mobile-filter-toggle {
    display: inline-flex;
    width: max-content;
  }

  .app-shell .catalog-filters[data-expanded="false"] .catalog-filter-grid {
    display: none;
  }

  .app-shell .episodes-layout {
    grid-template-columns: 1fr;
  }

  .app-shell .season-list {
    position: static;
    display: flex;
    gap: 8px;
    max-height: none;
    overflow-x: auto;
  }

  .app-shell .season-list h2 {
    flex: 0 0 100%;
  }

  .app-shell .season-list button {
    flex: 0 0 auto;
    min-width: 132px;
  }

  .app-shell .playback-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .app-shell .app-header {
    min-height: 62px;
    padding-inline: 14px;
    padding-block: 8px;
  }

  .app-shell .app-header > .brand {
    justify-self: start;
  }

  .app-shell .app-header:not(.app-header-search-active) .header-search-authoritative {
    display: none;
  }

  .app-shell .hero {
    min-height: 510px;
    margin-top: 14px;
    border-radius: 22px;
  }

  .app-shell .hero-content {
    width: 100%;
    padding: 26px 20px;
  }

  .app-shell .card-rail {
    grid-auto-columns: clamp(150px, 45vw, 190px);
  }

  .app-shell .catalog-filter-grid {
    grid-template-columns: 1fr;
  }

  .app-shell .details-hero {
    min-height: 540px;
    margin-top: 14px;
    border-radius: 22px;
  }

  .app-shell .details-hero-content {
    width: 100%;
    padding: 24px 20px 30px;
  }

  .app-shell .details-tabs {
    top: 70px;
    width: 100%;
    overflow-x: auto;
  }

  .app-shell .episode-card {
    grid-template-columns: 1fr;
  }

  .app-shell .playback-heading {
    grid-template-columns: 1fr;
  }

  .app-shell .playback-heading > .badge {
    display: none;
  }

  .app-shell .playback-navigator-compact {
    align-items: stretch;
    flex-direction: column;
  }

  .app-shell .playback-episode-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .app-shell .library-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .app-shell .summary-metric {
    min-width: 0;
  }

  .auth-public-shell {
    display: block;
  }

  .auth-public-shell .auth-page {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell *,
  .app-shell *::before,
  .app-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* SceneLumen Version 2 experience foundation — presentation only. */
@keyframes v2-content-enter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes v2-skeleton-shimmer {
  from { background-position: 180% 0; }
  to { background-position: -80% 0; }
}

html[data-v2-transition]::view-transition-old(root),
html[data-v2-transition]::view-transition-new(root) {
  animation-duration: 220ms;
  animation-timing-function: var(--ease);
}

.app-shell .v2-content-enter {
  animation: v2-content-enter 220ms var(--ease) both;
}

.app-shell .card-rail {
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
}

.app-shell .card-rail > .title-card {
  scroll-snap-align: start;
}

.app-shell .card-hover-summary {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  left: 12px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #f5f7fa;
  background: rgba(4, 7, 11, 0.78);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  backdrop-filter: blur(10px);
}

.app-shell .card-hover-summary strong {
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .card-hover-summary small {
  overflow: hidden;
  color: #b7bec8;
  font-size: 0.68rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .card-hover-summary .card-hover-continue { color: var(--polish-accent); }

@media (hover: hover) and (pointer: fine) {
  .app-shell .title-card:is(:hover, :focus-within) .poster {
    transform: translateY(-3px);
  }

  .app-shell .title-card:is(:hover, :focus-within) .card-hover-summary {
    opacity: 1;
    transform: translateY(0);
  }

  .app-shell .title-card:is(:hover, :focus-within) .poster-copy { opacity: 0; }
}

.app-shell .card-hover-action:focus-visible {
  outline: 3px solid rgba(153, 232, 197, 0.72);
  outline-offset: 2px;
}

.app-shell .continue-time-left {
  margin: 6px 2px 0;
  color: var(--polish-muted);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.app-shell .continue-watching-empty .empty-state {
  min-height: 168px;
  align-items: flex-start;
  padding: clamp(20px, 2.4vw, 30px);
  text-align: left;
}

.app-shell .continue-watching-empty .empty-icon { margin-inline: 0; }

.app-shell .image-reveal {
  opacity: 0;
  transition: opacity 180ms ease, filter 180ms var(--ease), transform 180ms var(--ease);
}

.app-shell .image-reveal.is-ready { opacity: 1; }

.app-shell .v2-skeleton {
  display: block;
  border-radius: 10px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.045) 20%, rgba(255, 255, 255, 0.1) 38%, rgba(255, 255, 255, 0.045) 56%);
  background-size: 220% 100%;
  animation: v2-skeleton-shimmer 1.6s ease-in-out infinite;
}

.app-shell .catalog-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--catalog-poster-width));
  justify-content: start;
  gap: 26px var(--catalog-card-gap);
  width: 100%;
  overflow: hidden;
}

.app-shell .card-skeleton {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.app-shell .card-skeleton-poster {
  width: 100%;
  aspect-ratio: var(--catalog-poster-ratio);
  border-radius: 13px;
}

.app-shell .card-skeleton-title { width: 72%; height: 13px; }
.app-shell .card-skeleton-meta { width: 48%; height: 10px; }

.app-shell .v2-loading-state {
  width: 100%;
  min-height: 360px;
  padding-top: 12px;
}

.app-shell .v2-home-skeleton { gap: 30px; }
.app-shell .v2-home-skeleton .home-loading-hero {
  width: 100%;
  min-height: clamp(420px, 58svh, 640px);
  border-radius: 0;
}

.app-shell .v2-home-skeleton .home-loading-rail {
  grid-template-columns: repeat(6, var(--catalog-poster-width));
  gap: var(--catalog-card-gap);
}

.app-shell .v2-details-skeleton { padding-top: 0; }
.app-shell .details-skeleton-hero { width: 100%; min-height: clamp(380px, 48svh, 520px); border-radius: 0; }
.app-shell .details-skeleton-tabs { display: flex; gap: 24px; padding-block: 18px; }
.app-shell .details-skeleton-tab { width: 84px; height: 14px; }
.app-shell .details-skeleton-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 32px; }
.app-shell .details-skeleton-story,
.app-shell .details-skeleton-facts { min-height: 240px; }

.app-shell .episode-row-skeleton {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 18px;
  padding-block: 10px;
}
.app-shell .episode-skeleton-art { aspect-ratio: 16 / 9; }
.app-shell .episode-skeleton-copy { height: 72px; align-self: center; }

.app-shell .catalog-refresh-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin-bottom: 8px;
}

.app-shell .library-controls {
  display: grid;
  grid-template-columns: auto minmax(210px, 280px) minmax(130px, 1fr);
  align-items: end;
  gap: 16px;
  margin: 18px 0 24px;
}

.app-shell .library-filter-group {
  display: flex;
  gap: 6px;
  padding: 3px;
  border: 1px solid var(--polish-border);
  border-radius: 11px;
  background: rgba(5, 8, 13, 0.6);
}

.app-shell .library-filter-group .button {
  border: 0;
  background: transparent;
}

.app-shell .library-filter-group .button.active {
  color: var(--polish-text);
  background: rgba(153, 232, 197, 0.12);
  box-shadow: inset 0 0 0 1px rgba(153, 232, 197, 0.24);
}

.app-shell .library-sort-control {
  display: grid;
  gap: 6px;
  color: var(--polish-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.app-shell .library-sort-control select {
  min-height: 42px;
  padding-inline: 10px;
  border: 1px solid var(--polish-border);
  border-radius: 9px;
  color: var(--polish-text);
  background: rgba(7, 10, 15, 0.72);
}

.app-shell .library-result-summary {
  justify-self: end;
  margin: 0 0 11px;
  color: var(--polish-muted);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.app-shell .details-overview-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  align-items: start;
  gap: clamp(28px, 3.2vw, 48px);
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--polish-border);
  border-radius: var(--polish-radius-panel);
  background: linear-gradient(145deg, rgba(24, 30, 39, 0.76), rgba(12, 16, 22, 0.88));
  box-shadow: var(--polish-shadow);
}

.app-shell .details-overview-surface .story-panel {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-shell .details-overview-surface .story-panel > p:not(.eyebrow) {
  max-width: 72ch;
}

.app-shell .title-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 24px 20px;
  min-width: 0;
  margin: 2px 0 0;
  padding: 0;
}

.app-shell .title-fact { min-width: 0; }
.app-shell .title-fact dt {
  margin: 0 0 6px;
  color: var(--polish-faint);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-shell .title-fact dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--polish-text);
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.app-shell [data-keyboard-grid] .poster:focus-visible {
  outline: 3px solid rgba(153, 232, 197, 0.8);
  outline-offset: 3px;
}

@media (max-width: 1360px) {
  .app-shell .details-overview-surface,
  .app-shell .details-skeleton-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .app-shell .title-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .app-shell .library-controls { grid-template-columns: 1fr; align-items: stretch; }
  .app-shell .library-result-summary { justify-self: start; margin-bottom: 0; }
  .app-shell .title-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .app-shell .card-hover-summary { display: none; }
  .app-shell .catalog-skeleton-grid { grid-template-columns: repeat(auto-fill, var(--home-card-width)); }
  .app-shell .v2-home-skeleton .home-loading-rail { grid-template-columns: repeat(6, var(--home-card-width)); }
  .app-shell .details-overview-surface { padding: 20px; }
  .app-shell .title-facts { gap: 20px 16px; }
  .app-shell .episode-row-skeleton { grid-template-columns: 120px minmax(0, 1fr); }
}

html[data-motion="reduce"] .app-shell :is(.v2-content-enter, .v2-skeleton, .image-reveal),
html[data-motion="reduce"][data-v2-transition]::view-transition-old(root),
html[data-motion="reduce"][data-v2-transition]::view-transition-new(root) {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

html[data-motion="reduce"] .app-shell .image-reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .app-shell :is(.v2-content-enter, .v2-skeleton, .image-reveal) {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .app-shell .image-reveal { opacity: 1; }
}

/* V34 movie details use the premium hero sizing above. Keep the immersive
   desktop grid in lockstep with that hero so its body cannot start beneath
   the hero or cross the action row. Series details intentionally use the
   separate natural document-flow shell. */
@media (min-width: 1200px) and (min-height: 760px) {
  .details-immersive-shell .details-view {
    grid-template-rows: minmax(0, 64%) minmax(0, 36%);
  }

  .details-immersive-shell .details-hero {
    height: auto;
    min-height: 0;
    margin-bottom: 0;
  }

  .details-immersive-shell .details-hero-content {
    width: min(790px, 92%);
    padding: clamp(24px, 3.2vh, 36px) clamp(32px, 4.5vw, 72px);
  }

  .details-immersive-shell .details-body {
    margin-top: 0;
    padding-block: 12px 16px;
  }
}

/* Professional cinematic application presentation. This is the winning app
   layer for Home, Discover, Details, Library, and their shared chrome. Public
   Landing and playback retain their later bounded correction layers. */
.app-shell {
  --v39-header: 64px;
  --v39-gutter: clamp(24px, 3vw, 56px);
  --v39-panel: rgba(13, 18, 27, 0.72);
  --v39-line: rgba(191, 213, 235, 0.12);
  --catalog-card-title-size: 13px;
  --catalog-card-meta-size: 11px;
  --catalog-section-heading-size: 24px;
  --catalog-section-heading-line-height: 32px;
  --catalog-poster-width: 200px;
  --catalog-poster-ratio: 2 / 3;
  --catalog-card-gap: 8px;
  font-size: 16px;
  background:
    radial-gradient(circle at 82% 7%, rgba(85, 60, 152, 0.08), transparent 28%),
    linear-gradient(180deg, #080c14 0%, #070a11 44%, #080b12 100%);
}

.app-shell .app-header {
  grid-template-columns: auto auto minmax(260px, 1fr) auto;
  min-height: var(--v39-header);
  padding: 8px var(--v39-gutter);
  gap: clamp(10px, 1.4vw, 22px);
  border-bottom-color: rgba(255, 255, 255, 0.055);
  background: rgba(7, 10, 16, 0.76);
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(1.08);
}

.app-shell .app-top-nav-link,
.app-shell .profile-trigger,
.app-shell .header-search-authoritative {
  min-height: 40px;
}

.app-shell .app-top-nav {
  gap: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.app-shell .app-top-nav-link {
  position: relative;
  padding-inline: 13px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.app-shell .app-top-nav-link.active {
  color: var(--v34-text);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.app-shell .app-top-nav-link.active::after {
  position: absolute;
  right: 13px;
  bottom: 4px;
  left: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--v34-accent);
  content: "";
}

.app-shell .app-header .header-search-authoritative {
  justify-self: end;
  width: min(100%, 440px);
  max-width: 440px;
  min-height: 40px;
  border-radius: 10px;
  background: rgba(13, 18, 27, 0.68);
}

.app-shell .profile-trigger,
.app-shell .guest-sign-in {
  border-radius: 9px;
}

.app-shell :is(.page-view, .home-rails, .details-body, .playback-view, .app-footer) {
  width: calc(100% - (2 * var(--v39-gutter)));
  margin-inline: var(--v39-gutter);
}

.app-shell .page-heading {
  gap: 18px;
  margin-bottom: 18px;
}

.app-shell .page-heading h1 {
  max-width: 22ch;
  margin-bottom: 5px;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.app-shell .page-heading :is(.lede, p) {
  max-width: 72ch;
  font-size: 0.95rem;
  line-height: 1.45;
}

.app-shell :is(.search-view, .media-grid-page, .library-view) {
  padding-block: clamp(26px, 3vw, 46px);
}

.app-shell .hero {
  width: 100%;
  min-height: clamp(480px, 65svh, 720px);
  margin: calc(-1 * var(--v39-header)) 0 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.app-shell .hero-content {
  width: min(680px, calc(100% - (2 * var(--v39-gutter))));
  padding: calc(var(--v39-header) + clamp(46px, 8vh, 88px)) 0 clamp(68px, 10vh, 110px);
  margin-left: var(--v39-gutter);
}

.app-shell .hero h1 {
  max-width: 15ch;
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.app-shell .hero h1.is-long-title {
  max-width: 18ch;
  font-size: clamp(2.2rem, 3.2vw, 3.5rem);
}

.app-shell .hero-greeting {
  margin-bottom: 14px;
}

.app-shell .hero-meta {
  margin-bottom: 12px;
  font-size: 0.82rem;
  letter-spacing: 0.015em;
}

.app-shell .hero-synopsis {
  display: -webkit-box;
  max-width: 62ch;
  margin-bottom: 22px;
  overflow: hidden;
  font-size: clamp(0.94rem, 1.15vw, 1.04rem);
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.app-shell .hero .button.primary {
  min-width: 104px;
}

.app-shell .hero .button.glass {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 10, 16, 0.42);
  backdrop-filter: blur(10px);
}

.app-shell .hero .hero-save-toggle {
  padding-inline: 12px;
  color: rgba(239, 243, 251, 0.78);
}

.app-shell .home-rails {
  z-index: 3;
  gap: clamp(44px, 5vw, 64px);
  margin-top: -52px;
  padding-top: 0;
  padding-bottom: 54px;
}

.app-shell .card-rail {
  grid-auto-columns: clamp(154px, 12.5vw, var(--catalog-poster-width));
  gap: var(--catalog-card-gap);
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.app-shell .rail-heading {
  margin-bottom: 14px;
}

.app-shell .rail-heading h2 {
  font-size: var(--catalog-section-heading-size);
  font-weight: 600;
  line-height: var(--catalog-section-heading-line-height);
  letter-spacing: normal;
}

.app-shell .rail-heading p {
  font-size: 0.75rem;
  line-height: 1.25;
}

.app-shell .poster {
  aspect-ratio: var(--catalog-poster-ratio);
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: #111722;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), filter 180ms var(--ease);
}

.app-shell .poster-image {
  opacity: 1;
  transition: filter 180ms var(--ease), transform 180ms var(--ease);
}

.app-shell .poster::before,
.app-shell .poster-shine {
  display: none;
}

.app-shell .poster::after {
  inset: 58% 0 0;
  background: linear-gradient(transparent, rgba(3, 5, 8, 0.76));
  opacity: 0.28;
}

.app-shell .poster-copy {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.app-shell .title-card:is(:hover, :focus-within) .poster {
  border-color: transparent;
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.app-shell .title-card:is(:hover, :focus-within) .poster-image {
  filter: brightness(1.06) saturate(1.04);
}

.app-shell .title-card:is(:hover, :focus-within) .poster-copy {
  opacity: 1;
  transform: translateY(0);
}

.app-shell .card-meta {
  gap: 6px;
  padding: 10px 2px 0;
}

.app-shell .card-meta h2,
.app-shell .card-meta h3 {
  margin-bottom: 4px;
  font-size: var(--catalog-card-title-size);
  font-weight: 500;
  line-height: 17.875px;
  letter-spacing: normal;
}

.app-shell .card-meta p {
  overflow: hidden;
  color: #8f9bad;
  font-size: var(--catalog-card-meta-size);
  font-weight: 400;
  line-height: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell .discover-view {
  display: grid;
  gap: 14px;
  align-content: start;
}

.app-shell .discover-view .catalog-filters {
  padding: 10px 0 16px;
  border: 0;
  border-bottom: 1px solid var(--v39-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-shell .discover-view .catalog-media-selector {
  gap: 18px;
  margin-bottom: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.app-shell .discover-view .catalog-media-selector button {
  min-height: 36px;
  padding: 5px 0;
  border-radius: 0;
  background: transparent;
}

.app-shell .discover-view .catalog-media-selector button.active {
  color: var(--v34-accent);
  background: transparent;
  box-shadow: inset 0 -2px var(--v34-accent);
}

.app-shell .discover-view .catalog-filter-grid {
  grid-template-columns: repeat(7, minmax(104px, 1fr));
  gap: 8px;
}

.app-shell .discover-view .catalog-filter-control :is(input, select) {
  min-height: 38px;
  border-radius: 8px;
  background: rgba(14, 19, 28, 0.72);
}

.app-shell .discover-search-hint {
  margin: 0;
  color: var(--v34-muted);
  font-size: 0.86rem;
}

.app-shell .discover-view .result-heading {
  margin: 2px 0 0;
}

.app-shell .discover-title-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--catalog-poster-width));
  gap: clamp(22px, 2.2vw, 34px) var(--catalog-card-gap);
  align-items: start;
  justify-content: start;
}

.app-shell .discover-title-grid .title-card {
  min-width: 0;
}

.app-shell .discover-title-grid .poster {
  width: 100%;
}

.app-shell .catalog-append-status,
.app-shell .catalog-append-error {
  position: sticky;
  bottom: 12px;
  z-index: 6;
  width: max-content;
  max-width: 100%;
  margin: 4px auto;
  padding: 9px 14px;
  border: 1px solid var(--v39-line);
  border-radius: 999px;
  background: rgba(8, 12, 19, 0.94);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34);
}

.app-shell .discover-page-sentinel {
  height: 1px;
}

.app-shell .mobile-dock {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-shell .details-hero {
  width: 100%;
  min-height: clamp(440px, 56svh, 620px);
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.app-shell .details-hero-content {
  width: min(760px, calc(100% - (2 * var(--v39-gutter))));
  margin-left: var(--v39-gutter);
  padding: clamp(54px, 8vh, 88px) 0 clamp(52px, 8vh, 86px);
}

.app-shell .details-hero h1 {
  max-width: 20ch;
  font-size: clamp(1.55rem, 2.25vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.app-shell .details-hero h1.is-long-title {
  font-size: clamp(1.35rem, 1.95vw, 2.1rem);
}

.app-shell .details-body {
  padding-block: 0 54px;
  overflow-anchor: none;
}

.details-immersive-shell,
.details-series-scroll-shell {
  overflow-anchor: none;
}

.app-shell .details-tabs {
  position: relative;
  top: auto;
  z-index: 30;
  min-height: 44px;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  gap: clamp(18px, 2.4vw, 34px);
  border: 0;
  border-bottom: 1px solid var(--v39-line);
  border-radius: 0;
  background: rgba(8, 11, 18, 0.88);
  align-items: center;
  overflow-y: hidden;
}

.app-shell .details-tabs button {
  min-height: 48px;
  padding: 8px 0;
  border-radius: 0;
  background: transparent;
  color: var(--v34-muted);
}

.app-shell .details-tabs button.active {
  color: var(--v34-text);
  background: transparent;
  box-shadow: inset 0 -2px var(--v34-accent);
}

.app-shell [role="tabpanel"] {
  scroll-margin-top: calc(var(--v39-header) + 14px);
}

.app-shell .overview-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.55fr);
  gap: clamp(28px, 3.4vw, 48px);
  align-items: start;
}

.app-shell :is(.story-panel, .facts-panel) {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-shell .story-panel {
  padding: 0;
}

.app-shell .story-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: -0.03em;
}

.app-shell .story-panel > p:not(.eyebrow) {
  max-width: 70ch;
  font-size: 1rem;
  line-height: 1.72;
}

.app-shell .facts-panel {
  padding: 0 0 0 clamp(18px, 2vw, 30px);
  border-left: 1px solid var(--v39-line);
}

.app-shell .facts-panel > div {
  padding: 13px 0;
  border-bottom: 1px solid var(--v39-line);
}

.app-shell .cast-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 16px);
}

.app-shell .cast-card {
  min-width: 0;
  min-height: 0;
  padding: 10px 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

.app-shell .cast-card:is(:hover, :focus-within) {
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-2px);
}

.app-shell .cast-avatar {
  width: 88px;
  height: 88px;
  max-height: 88px;
  margin-inline: auto;
  margin-bottom: 8px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
}

.app-shell .cast-card h3 {
  margin-bottom: 2px;
  font-size: 0.85rem;
  line-height: 1.2;
}

.app-shell .cast-card p {
  font-size: 0.75rem;
  line-height: 1.25;
}

.app-shell .episodes-layout {
  gap: 14px;
}

.app-shell .episode-card {
  grid-template-columns: clamp(132px, 15vw, 220px) minmax(0, 1fr);
  min-height: 112px;
}

.app-shell .playback-view {
  padding-block: 12px 22px;
}

.app-shell .playback-heading {
  min-height: 46px;
}

.app-shell .playback-info {
  padding: 10px 14px;
}

.app-shell .library-summary {
  gap: clamp(14px, 2vw, 28px);
  margin: 4px 0 24px;
  padding-bottom: 18px;
  border: 0;
  border-bottom: 1px solid var(--v39-line);
  border-radius: 0;
  background: transparent;
}

.app-shell .summary-metric {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.app-shell .summary-metric strong {
  font-size: 1.1rem;
}

.app-shell .library-view > .tab-list {
  width: 100%;
  margin-bottom: 28px;
  padding: 0;
  gap: 24px;
  border: 0;
  border-bottom: 1px solid var(--v39-line);
  border-radius: 0;
  background: transparent;
}

.app-shell .library-view > .tab-list button {
  min-height: 44px;
  padding: 7px 0;
  border-radius: 0;
  background: transparent;
}

.app-shell .library-view > .tab-list button.active {
  color: var(--v34-text);
  background: transparent;
  box-shadow: inset 0 -2px var(--v34-accent);
}

.app-shell .library-grid {
  row-gap: 34px;
}

@media (min-width: 1025px) {
  .app-shell .library-grid {
    grid-template-columns: repeat(auto-fill, var(--catalog-poster-width));
    column-gap: var(--catalog-card-gap);
  }
}

.app-shell .empty-state {
  justify-items: start;
  min-height: 220px;
  padding: clamp(26px, 4vw, 48px) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.app-shell .empty-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-color: rgba(142, 242, 196, 0.18);
  background: rgba(142, 242, 196, 0.055);
}

@media (min-width: 1200px) and (min-height: 760px) {
  .app-shell .search-view {
    height: auto;
    overflow: visible;
  }

  .app-shell .season-list {
    top: calc(var(--v39-header) + 58px);
  }

  .app-shell .playback-view {
    height: 100%;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding-block: 8px;
    overflow: hidden;
  }

  .app-shell .playback-stage {
    min-height: 0;
  }

  .app-shell .player-shell {
    justify-self: center;
    align-self: center;
    width: min(100%, calc((100svh - 230px) * 16 / 9));
    max-height: calc(100svh - 230px);
  }

  .app-shell .playback-stage-series .player-shell {
    width: min(100%, calc((100svh - 230px) * 16 / 9));
    max-height: calc(100svh - 230px);
  }

  .details-immersive-shell .details-view {
    display: block;
    height: auto;
    overflow: visible;
  }

  .details-immersive-shell .details-hero {
    min-height: clamp(440px, 56svh, 620px);
  }

  .details-immersive-shell .details-body {
    min-height: 0;
    overflow: visible;
  }
}

@media (max-width: 1680px) {
  .app-shell .cast-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 1440px) {
  .app-shell .discover-view .catalog-filter-grid {
    grid-template-columns: repeat(4, minmax(110px, 1fr));
  }

  .app-shell .cast-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .app-shell .cast-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .app-shell .discover-title-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-shell .overview-grid {
    grid-template-columns: 1fr;
  }

  .app-shell .cast-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-shell .details-hero-content {
    width: min(720px, calc(100% - (2 * var(--v39-gutter))));
  }
}

@media (max-width: 760px) {
  .app-shell .discover-title-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-shell .cast-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .app-shell .discover-title-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 10px;
  }

  .app-shell .cast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .app-shell {
    --v39-gutter: clamp(18px, 4vw, 28px);
  }

  .app-shell .app-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .app-shell .app-top-nav {
    display: none;
  }

  .app-shell .page-heading {
    align-items: start;
  }

  .app-shell .hero-content {
    width: min(660px, calc(100% - (2 * var(--v39-gutter))));
  }

  .app-shell .details-tabs {
    gap: 22px;
  }
}

@media (max-width: 680px) {
  .app-shell {
    --v39-gutter: clamp(16px, 4.5vw, 20px);
  }

  .app-shell .app-header {
    padding-inline: 14px;
  }

  .app-shell .app-header > .brand {
    justify-self: center;
  }

  .app-shell .header-actions {
    min-width: 44px;
  }

  .app-shell .page-heading h1 {
    font-size: clamp(1.65rem, 7vw, 2rem);
  }

  .app-shell .hero {
    min-height: clamp(440px, 72svh, 560px);
    margin-top: -62px;
  }

  .app-shell .hero-content {
    width: calc(100% - (2 * var(--v39-gutter)));
    margin-left: var(--v39-gutter);
    padding: 108px 0 58px;
  }

  .app-shell .hero-greeting {
    gap: 7px;
    margin-bottom: 10px;
    font-size: 0.72rem;
  }

  .app-shell .hero-synopsis {
    margin-bottom: 18px;
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
  }

  .app-shell .hero .button-row {
    gap: 7px;
  }

  .app-shell .hero .button-row .button {
    min-height: 42px;
    padding: 8px 12px;
  }

  .app-shell .home-rails {
    gap: 44px;
    margin-top: -34px;
  }

  .app-shell .rail-heading p {
    display: none;
  }

  .app-shell .details-hero {
    min-height: clamp(460px, 68svh, 560px);
  }

  .app-shell .details-hero-content {
    width: calc(100% - (2 * var(--v39-gutter)));
    margin-left: var(--v39-gutter);
    padding: 44px 0 46px;
  }

  .app-shell .details-synopsis {
    -webkit-line-clamp: 3;
  }

  .app-shell .details-tabs {
    top: auto;
    margin-top: 62px;
    margin-bottom: 22px;
  }

  .app-shell .library-summary {
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
  }
}

/* V39 retained-composition refinements: series playback and Details natural scroll. */
.app-shell .playback-stage-series {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 340px);
  gap: 14px;
}

.app-shell .playback-navigator-heading {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.app-shell .playback-panel-toggle {
  display: none;
}

.app-shell .details-body > [role="tabpanel"] {
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
}

.app-shell .details-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--catalog-poster-width));
  gap: clamp(12px, 1.25vw, 20px) var(--catalog-card-gap);
  align-items: start;
  justify-content: start;
}

.app-shell .details-more-grid .title-card {
  min-width: 0;
}

.app-shell .details-more-grid .poster {
  width: 100%;
}

.app-shell .details-more-sentinel {
  height: 1px;
}

@media (max-width: 1024px) {
  .app-shell .details-more-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell .details-more-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .app-shell .details-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }
}

@media (max-width: 1199px) {
  .app-shell .playback-stage-series {
    grid-template-columns: 1fr;
  }

  .app-shell .playback-navigator {
    max-height: none;
  }

  .app-shell .playback-panel-toggle {
    display: inline-flex;
  }

  .app-shell .playback-episode-panel[data-expanded="false"] .playback-episode-list,
  .app-shell .playback-episode-panel[data-expanded="false"] .playback-episode-actions {
    display: none;
  }

  .app-shell .playback-episode-list {
    max-height: 420px;
  }
}
/* V39 retained landing shell: full background, centered constrained composition. */
.public-shell {
  width: 100%;
  min-height: 100svh;
  max-width: none;
  margin: 0;
  border-radius: 0;
}

.public-landing-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  min-height: 100svh;
  max-width: none;
  margin: 0;
  border-radius: 0;
}

.public-landing-shell .landing-main {
  min-height: 0;
}

/* V39 retained-composition refinements: Details must use natural document
   scrolling on desktop too. The immersive shell previously pinned the page to
   the viewport with overflow:hidden, which clipped Overview/Cast/Episodes/
   More Like This content and made the complete grid unreachable. Playback
   keeps its stable in-viewport composition and internal episode list scroll. */
@media (min-width: 1200px) {
  .details-immersive-shell {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .details-immersive-shell .app-main {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
}

/* V39 compact title sizing (final layer). Appended after the base hero and
   details title rules so tablet and mobile caps always win; ultrawide widths
   stay capped by the fixed rem maxima and never grow. */
@media (max-width: 1199px) {
  .app-shell .hero h1 {
    font-size: clamp(1.8rem, 3.8vw, 2.3rem);
  }

  .app-shell .hero h1.is-long-title {
    font-size: clamp(1.55rem, 3.3vw, 2rem);
  }

  .app-shell .details-hero h1 {
    font-size: clamp(1.55rem, 3.3vw, 2rem);
  }

  .app-shell .details-hero h1.is-long-title {
    font-size: clamp(1.35rem, 2.9vw, 1.75rem);
  }
}

@media (max-width: 680px) {
  .app-shell .hero h1 {
    font-size: clamp(1.6rem, 6.2vw, 1.9rem);
  }

  .app-shell .hero h1.is-long-title {
    font-size: clamp(1.4rem, 5.4vw, 1.65rem);
  }

  .app-shell .details-hero h1 {
    font-size: clamp(1.4rem, 6vw, 1.7rem);
  }

  .app-shell .details-hero h1.is-long-title {
    font-size: clamp(1.2rem, 5.1vw, 1.5rem);
  }
}

/* V39 polished landing shell: full-viewport dark composition with a real
   SceneLumen product preview replacing the abstract boxed mockup. */
.public-landing-shell {
  background:
    radial-gradient(circle at 82% 14%, rgba(101, 70, 168, 0.16), transparent 30%),
    radial-gradient(circle at 10% 82%, rgba(87, 179, 139, 0.12), transparent 28%),
    linear-gradient(180deg, #0b101b 0%, #080c15 58%, #0a0f19 100%);
}

.scene-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: #0b1018;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.scene-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

.scene-preview-dots {
  display: flex;
  gap: 6px;
}

.scene-preview-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.scene-preview-url {
  margin-left: 6px;
  color: rgba(226, 234, 242, 0.55);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.scene-preview-shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 920px) {
  .public-landing-shell .landing-showcase {
    justify-self: center;
    width: min(100%, 620px);
  }
}

/* Chromium-85 legacy sizing: svh and aspect-ratio are unsupported below
   Chrome/CEF 88/108. vh plus the classic padding-ratio trick provide the same
   shared 16:9 footprint; modern browsers override via @supports. */
.app-shell .playback-stage:not(.playback-stage-series) > .player-shell,
.app-shell .playback-stage-series > .player-shell {
  width: min(100%, calc((100vh - 230px) * 16 / 9));
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 230px);
}
.app-shell .player-shell::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}
@supports (aspect-ratio: 16 / 9) {
  .app-shell .player-shell::before {
    display: none;
  }
}

/* Bounded playback correction: keep the height-capped native player dominant
   and place the historical navigator immediately beside its visible edge. */
.app-shell .playback-stage,
.app-shell .playback-stage-series {
  grid-template-rows: auto;
}

@media (min-width: 1200px) {
  .app-shell .playback-stage:not(.playback-stage-series) {
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
  }

  .app-shell .playback-stage:not(.playback-stage-series) > .player-shell {
    width: min(100%, calc((100svh - 230px) * 16 / 9));
    max-width: 100%;
    height: auto;
    max-height: calc(100svh - 230px);
    aspect-ratio: 16 / 9;
    justify-self: center;
    align-self: center;
  }
}

.app-shell .playback-stage-series {
  width: min(100%, var(--content-max));
  min-width: 0;
  grid-template-columns: minmax(310px, 340px) minmax(0, 1fr);
  gap: 20px;
  margin-inline: auto;
}

.app-shell .playback-stage-series > .player-shell {
  min-width: 0;
}

@media (min-width: 1200px) {
  .app-shell.playback-immersive-shell .app-main {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  .app-shell.playback-immersive-shell .playback-view {
    height: auto;
    min-height: 100%;
    grid-template-rows: auto auto auto;
    overflow: visible;
  }

  .app-shell.playback-immersive-shell .playback-stage {
    min-height: max-content;
  }

  .app-shell.playback-immersive-shell .playback-view-fallback .playback-stage {
    height: auto;
    grid-template-rows: max-content;
  }

  .app-shell.playback-immersive-shell .player-shell {
    min-height: auto;
  }

  .app-shell .playback-stage-series > .player-shell {
    grid-column: 2;
    grid-row: 1;
    width: min(100%, calc((100svh - 230px) * 16 / 9));
    max-width: 100%;
    height: auto;
    max-height: calc(100svh - 230px);
    aspect-ratio: 16 / 9;
    justify-self: start;
    align-self: start;
  }

  .app-shell .playback-stage-series > .playback-navigator {
    grid-column: 1;
    grid-row: 1;
    contain: size;
  }
}

@media (max-width: 1199px) {
  .app-shell .playback-stage-series {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

/* Bounded landing correction: only the landing surface uses this fluid grid.
   Public document pages retain their existing reading-width composition. */
.public-landing-shell {
  --landing-grid-gutter: clamp(24px, 3vw, 56px);
  width: 100%;
  min-height: 100svh;
  max-width: none;
  margin: 0;
  border-radius: 0;
}

.public-landing-shell > :is(.public-header, .landing-main, .public-footer) {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--landing-grid-gutter);
}

.public-landing-shell > .landing-main > :is(.landing-hero, .landing-proof, .landing-privacy, .landing-cta) {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* Six-feature product-depth layer. Existing dimensions and layout ownership stay
   unchanged; motion is transform/opacity-only and card actions are contextual. */
.app-shell .cinematic-artwork-motion {
  transform: scale(1.02);
  transform-origin: 54% 42%;
  animation: scenelumen-cinematic-drift 24s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes scenelumen-cinematic-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-0.65%, -0.35%, 0); }
}

.app-shell [data-home-hero] {
  view-transition-name: home-hero;
}

::view-transition-old(home-hero),
::view-transition-new(home-hero) {
  animation-duration: 520ms;
  animation-timing-function: ease;
}

.app-shell .hero-rotation-controls {
  position: absolute;
  z-index: 4;
  right: clamp(16px, 2vw, 30px);
  bottom: clamp(14px, 2vw, 28px);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(5, 8, 14, 0.62);
  backdrop-filter: blur(12px);
}

.app-shell .hero-rotation-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.app-shell .hero-rotation-button > span:not(.icon) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.app-shell .hero-rotation-button:hover,
.app-shell .hero-rotation-button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.app-shell .hero-position-indicators {
  display: flex;
  align-items: center;
  gap: 5px;
}

.app-shell .hero-position-indicators span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  transition: width 220ms var(--ease), background 220ms var(--ease);
}

.app-shell .hero-position-indicators span.active {
  width: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.app-shell .continue-watching-rail .continue-card-action {
  width: 100%;
  justify-content: center;
  margin-top: 9px;
  font-size: 0.82rem;
  font-weight: 700;
}
.app-shell .continue-watching-rail::after {
  opacity: 0;
  transition: opacity var(--polish-motion-fast) ease;
}
.app-shell .continue-watching-rail[data-more-after="true"]::after { opacity: 1; }

.app-shell .card-hover-actions {
  position: absolute;
  z-index: 5;
  right: 10px;
  bottom: 66px;
  left: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.app-shell .card-hover-action {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 8, 14, 0.84);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  pointer-events: auto;
}

.app-shell .card-hover-action > span:not(.icon) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (hover: hover) and (pointer: fine) {
  .app-shell .title-card:hover .poster,
  .app-shell .title-card:focus-within .poster {
    z-index: 2;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
    transform: translateY(-3px) scale(1.035);
  }

  .app-shell .title-card:hover .poster-image,
  .app-shell .title-card:focus-within .poster-image {
    opacity: 0.82;
    filter: contrast(1.04);
  }

  .app-shell .title-card:hover .card-hover-actions,
  .app-shell .title-card:focus-within .card-hover-actions {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: none), (pointer: coarse) {
  .app-shell .card-hover-actions { display: none; }
}

@media (max-width: 680px) {
  .app-shell {
    --catalog-section-heading-size: 20px;
    --catalog-section-heading-line-height: 28px;
  }

  .app-shell .rail-heading p {
    font-size: 0.72rem;
  }

  .app-shell .continue-watching-rail .continue-card-action {
    font-size: 0.78rem;
  }

  .app-shell .hero-rotation-controls {
    right: 12px;
    bottom: 12px;
  }
}

html[data-motion="reduce"] .app-shell .cinematic-artwork-motion {
  animation: none !important;
  transform: none !important;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .app-shell .cinematic-artwork-motion {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }
}

/* SceneLumen professional polish — visual hierarchy only. */
.app-shell {
  --v39-header: 68px;
  --polish-bg: #070a0f;
  --polish-surface: rgba(19, 24, 32, 0.9);
  --polish-surface-raised: rgba(25, 31, 41, 0.94);
  --polish-text: #f5f7fa;
  --polish-muted: #a7afbb;
  --polish-faint: #747d8a;
  --polish-accent: #99e8c5;
  --polish-border: rgba(255, 255, 255, 0.12);
  --polish-radius-control: 10px;
  --polish-radius-panel: 16px;
  --polish-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  background: var(--polish-bg);
  color: var(--polish-text);
}

.app-shell :is(.app-main, .page-view, .home-view) {
  color: var(--polish-text);
}

.app-shell .app-header {
  min-height: var(--v39-header);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 15, 0.88);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(1.08);
}

.app-shell .app-top-nav-link {
  min-height: 44px;
  border-radius: 8px;
  color: var(--polish-muted);
  letter-spacing: 0.01em;
}

.app-shell .app-top-nav-link:is(:hover, :focus-visible) {
  color: var(--polish-text);
  background: rgba(255, 255, 255, 0.045);
}

.app-shell .app-top-nav-link.active {
  color: var(--polish-text);
  background: transparent;
  box-shadow: none;
}

.app-shell .app-top-nav-link.active::after {
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--polish-accent);
  box-shadow: 0 0 12px rgba(153, 232, 197, 0.35);
}

.app-shell :is(.header-icon-action, .account-trigger, .mobile-menu-button, .round-action) {
  min-width: 44px;
  min-height: 44px;
}

.app-shell .hero-scrim {
  background:
    linear-gradient(90deg, rgba(4, 7, 11, 0.96) 0%, rgba(4, 7, 11, 0.82) 30%, rgba(4, 7, 11, 0.24) 65%, rgba(4, 7, 11, 0.08) 100%),
    linear-gradient(0deg, rgba(7, 10, 15, 0.98) 0%, rgba(7, 10, 15, 0.12) 46%, rgba(7, 10, 15, 0.16) 100%);
}

.app-shell .hero-content {
  width: min(690px, calc(100% - (2 * var(--v39-gutter))));
}

.app-shell .hero h1 {
  max-width: 13ch;
  margin-bottom: 12px;
  font-size: clamp(3.5rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.app-shell .hero h1.is-long-title { font-size: clamp(3rem, 3.5vw, 3.65rem); }

.app-shell .hero-meta,
.app-shell .metadata-line {
  color: #d0d5dc;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.015em;
}

.app-shell .hero-synopsis {
  max-width: 640px;
  color: #c3c9d1;
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  line-height: 1.65;
}

.app-shell .hero .button-row { gap: 10px; }
.app-shell .hero .button.primary { min-width: 136px; }
.app-shell .hero .hero-secondary-action { background: rgba(24, 29, 38, 0.78); }
.app-shell .hero .hero-tertiary-action {
  border-color: rgba(255, 255, 255, 0.1);
  color: #c7cdd5;
  background: rgba(10, 13, 19, 0.48);
  box-shadow: none;
}

.app-shell .button {
  min-height: 42px;
  border-radius: var(--polish-radius-control);
  font-weight: 700;
  letter-spacing: 0.005em;
}

.app-shell .button.large { min-height: 46px; padding-inline: 20px; }
.app-shell .button.compact { min-height: 38px; }

.app-shell .rail-heading { margin-bottom: 13px; }
.app-shell .rail-heading h2 {
  color: var(--polish-text);
}
.app-shell .rail-heading p { margin-top: 3px; color: var(--polish-faint); }

.app-shell .rail-scroll-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-shell .rail-scroll-controls[hidden] { display: none; }
.app-shell .rail-scroll-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--polish-border);
  border-radius: 10px;
  color: var(--polish-text);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}
.app-shell .rail-scroll-button > span:not(.icon) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.app-shell .rail-scroll-button:disabled { opacity: 0.3; cursor: default; }

.app-shell .title-card .poster {
  border-radius: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.app-shell .poster progress { height: 4px; }
.app-shell .poster progress::-webkit-progress-value { border-radius: 999px; background: var(--polish-accent); }
.app-shell .card-meta h2,
.app-shell .card-meta h3 { color: #f0f2f5; }
.app-shell .card-meta p { color: var(--polish-faint); }
.app-shell .round-action {
  border-color: rgba(255, 255, 255, 0.14);
  color: #e8ebef;
  background: rgba(17, 22, 29, 0.9);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.22);
}
.app-shell .round-action.saved { color: var(--polish-accent); }
.app-shell .continue-watching-rail .continue-card-action {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  color: #dfe3e8;
  background: rgba(255, 255, 255, 0.045);
}

@media (hover: hover) and (pointer: fine) {
  .app-shell .title-card:hover .poster,
  .app-shell .title-card:focus-within .poster {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
    transform: translateY(-3px);
  }
}

.app-shell .discover-view .catalog-filters,
.app-shell .search-view .catalog-filters {
  padding: 12px 0 16px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.app-shell .catalog-media-tabs {
  width: fit-content;
  padding: 3px;
  border: 1px solid var(--polish-border);
  border-radius: 11px;
  background: rgba(5, 8, 13, 0.6);
}
.app-shell .catalog-media-tabs [aria-selected="true"] {
  border-radius: 8px;
  color: var(--polish-text);
  background: rgba(153, 232, 197, 0.12);
  box-shadow: inset 0 0 0 1px rgba(153, 232, 197, 0.24);
}
.app-shell .catalog-filter-control > span { color: #b9c0ca; }
.app-shell .catalog-filter-control :is(input, select) {
  min-height: 42px;
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  background: rgba(7, 10, 15, 0.72);
}
.app-shell .active-filter-list { display: flex; flex-wrap: wrap; gap: 7px; }
.app-shell .active-filter-chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(153, 232, 197, 0.2);
  border-radius: 999px;
  color: #dcefe6;
  background: rgba(153, 232, 197, 0.075);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.app-shell .active-filter-chip .icon { order: 2; width: 14px; height: 14px; }
.app-shell .result-heading { align-items: baseline; gap: 12px; }
.app-shell .result-heading h2 { font-size: clamp(1.2rem, 1.45vw, 1.45rem); letter-spacing: -0.02em; }
.app-shell .result-heading span { color: var(--polish-faint); font-size: 0.86rem; }

.app-shell .details-hero-scrim {
  background:
    linear-gradient(90deg, rgba(4, 7, 11, 0.96) 0%, rgba(4, 7, 11, 0.72) 38%, rgba(4, 7, 11, 0.12) 72%),
    linear-gradient(0deg, rgba(7, 10, 15, 0.99) 0%, rgba(7, 10, 15, 0.08) 56%);
}
.app-shell .details-hero-content { width: min(780px, calc(100% - (2 * var(--v39-gutter)))); }
.app-shell .details-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.65rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.app-shell .details-hero h1.is-long-title { font-size: clamp(2.35rem, 2.7vw, 2.75rem); }
.app-shell .details-synopsis { max-width: 670px; color: #c0c6cf; line-height: 1.62; }
.app-shell .details-body { padding-top: 4px; }
.app-shell .details-tabs {
  gap: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.app-shell .details-tabs button {
  min-height: 48px;
  padding-inline: 1px;
  border-radius: 0;
  color: var(--polish-muted);
  background: transparent;
}
.app-shell .details-tabs button.active { color: var(--polish-text); background: transparent; box-shadow: none; }
.app-shell .details-tabs button.active::after { height: 2px; background: var(--polish-accent); }
.app-shell .overview-grid { gap: clamp(24px, 3vw, 42px); }
.app-shell :is(.story-panel, .facts-panel) {
  border: 1px solid var(--polish-border);
  border-radius: var(--polish-radius-panel);
  background: linear-gradient(145deg, rgba(24, 30, 39, 0.76), rgba(12, 16, 22, 0.88));
  box-shadow: var(--polish-shadow);
}
.app-shell .story-panel { padding: clamp(22px, 2.3vw, 32px); }
.app-shell .story-panel > p:not(.eyebrow) { max-width: 72ch; color: #b7bec8; line-height: 1.72; }
.app-shell .facts-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0;
  padding: 12px;
  border-left: 1px solid var(--polish-border);
}
.app-shell .facts-panel > div {
  min-height: 86px;
  padding: 16px;
  border: 0;
}
.app-shell .facts-panel > div:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.08); }
.app-shell .facts-panel > div:nth-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.app-shell .cast-card { border-radius: 14px; background: rgba(19, 24, 32, 0.72); }
.app-shell .cast-avatar { width: 88px; height: 88px; }

.app-shell .playback-heading {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 50px;
  gap: 16px;
}
.app-shell .playback-heading h1 { font-size: clamp(1.35rem, 1.7vw, 1.7rem); letter-spacing: -0.025em; }
.app-shell .playback-current { color: var(--polish-muted); }
.app-shell .playback-navigator {
  border-color: var(--polish-border);
  border-radius: var(--polish-radius-panel);
  background: linear-gradient(155deg, rgba(23, 29, 38, 0.94), rgba(9, 13, 19, 0.97));
  box-shadow: var(--polish-shadow);
}
.app-shell .playback-season-select { min-height: 40px; border-radius: 9px; }
.app-shell .playback-episode-actions .button { min-height: 38px; border-color: rgba(255, 255, 255, 0.11); }
.app-shell .playback-episode { border-radius: 10px; background: rgba(255, 255, 255, 0.028); }
.app-shell .playback-episode.active {
  border-color: rgba(153, 232, 197, 0.58);
  background: rgba(153, 232, 197, 0.12);
  box-shadow: inset 3px 0 0 var(--polish-accent);
}
.app-shell .playback-information {
  display: block;
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--polish-muted);
}
.app-shell .playback-information summary {
  display: flex;
  width: min(100%, 420px);
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 2px;
  color: #cbd0d7;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.app-shell .playback-summary-status { color: var(--polish-faint); font-weight: 600; }
.app-shell .playback-contract-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.app-shell .playback-information-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  padding: 2px 0 14px;
  font-size: 0.8rem;
}
.app-shell .playback-information-content p { margin: 0; }

@media (max-width: 1280px) {
  .app-shell .hero h1 { font-size: clamp(3rem, 4.5vw, 3.55rem); }
  .app-shell .hero h1.is-long-title { font-size: clamp(2.65rem, 4vw, 3.2rem); }
  .app-shell .details-hero h1 { font-size: clamp(2.45rem, 3.6vw, 2.8rem); }
}

@media (max-width: 900px) {
  .app-shell .facts-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell .playback-information-content { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .app-shell { --v39-header: 62px; }
  .app-shell .hero h1 { font-size: clamp(2.35rem, 11vw, 3.1rem); }
  .app-shell .hero h1.is-long-title { font-size: clamp(2.15rem, 9.5vw, 2.8rem); }
  .app-shell .hero-synopsis { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .app-shell .hero .button-row { gap: 8px; }
  .app-shell .hero .button.large { min-height: 44px; padding-inline: 14px; }
  .app-shell .rail-scroll-controls { display: none; }
  .app-shell .details-hero h1 { font-size: clamp(2.15rem, 10vw, 2.75rem); }
  .app-shell .details-tabs { gap: 20px; overflow-x: auto; }
  .app-shell .facts-panel { grid-template-columns: 1fr 1fr; }
}

html[data-motion="reduce"] .app-shell *,
html[data-motion="reduce"] .app-shell *::before,
html[data-motion="reduce"] .app-shell *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

@media (prefers-reduced-motion: reduce) {
  .app-shell *,
  .app-shell *::before,
  .app-shell *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Final winning layer for the bounded Version 2 loading and facts corrections. */
.app-shell .v2-home-skeleton { display: block; min-height: 900px; padding: 0; }
.app-shell .v2-home-skeleton .home-loading-hero {
  position: relative;
  width: 100%;
  min-height: clamp(480px, 65svh, 720px);
  margin: calc(-1 * var(--v39-header)) 0 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #0a0e15;
  animation: none;
}
.app-shell .home-skeleton-backdrop {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(7, 10, 15, 0.98) 0%, rgba(7, 10, 15, 0.72) 45%, rgba(7, 10, 15, 0.16) 78%), linear-gradient(115deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
}
.app-shell .home-skeleton-copy {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(680px, calc(100% - (2 * var(--v39-gutter))));
  gap: 14px;
  padding: calc(var(--v39-header) + clamp(46px, 8vh, 88px)) 0 clamp(68px, 10vh, 110px);
  margin-left: var(--v39-gutter);
}
.app-shell .home-skeleton-copy .v2-skeleton,
.app-shell .home-skeleton-rail-heading .v2-skeleton { display: block; }
.app-shell .home-skeleton-eyebrow { width: 112px; height: 11px; }
.app-shell .home-skeleton-title { width: min(78%, 520px); height: clamp(48px, 5vw, 72px); margin-block: 2px 4px; }
.app-shell .home-skeleton-meta { width: min(56%, 360px); height: 13px; }
.app-shell .home-skeleton-synopsis { display: grid; max-width: 610px; gap: 9px; margin-top: 6px; }
.app-shell .home-skeleton-line { width: 100%; height: 12px; }
.app-shell .home-skeleton-line.short { width: 68%; }
.app-shell .home-skeleton-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.app-shell .home-skeleton-action { width: 142px; height: 46px; border-radius: 10px; }
.app-shell .home-skeleton-action.primary { width: 104px; }
.app-shell .home-skeleton-action.compact { width: 92px; }
.app-shell .home-skeleton-continue { padding: 30px var(--v39-gutter) 12px; }
.app-shell .home-skeleton-rail-heading { display: grid; gap: 8px; margin-bottom: 16px; }
.app-shell .home-skeleton-heading { width: 224px; height: 24px; }
.app-shell .home-skeleton-subheading { width: 180px; height: 11px; }
.app-shell .v2-home-skeleton .home-loading-rail { gap: 26px var(--catalog-card-gap); }
.app-shell .episode-row-skeleton { min-height: 112px; align-items: center; }
.app-shell .episode-skeleton-copy { display: grid; align-content: center; gap: 10px; height: auto; }
.app-shell .episode-skeleton-title { width: min(62%, 330px); height: 14px; }
.app-shell .episode-skeleton-runtime { width: 84px; height: 10px; }
.app-shell .episode-skeleton-description { width: min(88%, 560px); height: 10px; }
.app-shell .playback-episode-skeletons { display: grid; gap: 7px; }
.app-shell .playback-episode-skeletons .episode-row-skeleton { grid-template-columns: 72px minmax(0, 1fr); min-height: 58px; gap: 11px; padding: 8px; border-radius: 10px; }
.app-shell .playback-episode-skeletons .episode-skeleton-art { width: 72px; height: 41px; border-radius: 8px; }
.app-shell .playback-episode-skeletons .episode-skeleton-description { display: none; }
.app-shell :is(.episode-still-fallback, .episode-still-placeholder) { background: radial-gradient(circle at 72% 22%, rgba(153, 232, 197, 0.2), transparent 34%), linear-gradient(145deg, #202b3b, #10161f 68%); }
.app-shell .library-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1360px) {
  .app-shell .details-overview-surface,
  .app-shell .details-skeleton-overview { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .app-shell .title-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px clamp(20px, 4vw, 48px); }
  .app-shell .title-fact :is(dt, dd) { overflow-wrap: normal; }
}
@media (max-width: 480px) { .app-shell .title-facts { grid-template-columns: 1fr; } }
html[data-motion="reduce"] .app-shell .v2-skeleton,
html[data-motion="reduce"] .app-shell .home-loading-hero { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .app-shell .v2-skeleton,
  .app-shell .home-loading-hero { animation: none !important; transition: none !important; }
}
