:root {
  color-scheme: dark;
  --bg: #0d1018;
  --panel: #141924;
  --raised: #1b2230;
  --line: #2a3344;
  --text: #f4f7fb;
  --muted: #afb8c9;
  --accent: #8cf4df;
  --purple: #b9acff;
  --header-height: 62px;
  --shell: clamp(20px, 5.15vw, 80px);
  --page: 1600px;
  font: 15px/1.55 system-ui, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 12px); }
body { margin: 0; min-width: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.16; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.material:focus, #player-title:focus { outline: none; }
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex: none; }
.sr-only { position: absolute; height: 1px; width: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100%, var(--page)); margin-inline: auto; padding-inline: var(--shell); }
.site-header {
  position: sticky; top: 0; z-index: 4;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(100%, var(--page)); margin-inline: auto; padding-inline: var(--shell);
  min-height: var(--header-height); display: grid; align-items: center;
  grid-template-columns: auto auto minmax(0,1fr) auto auto;
  grid-template-areas: "archive brand sections language search";
  column-gap: clamp(14px,2.2vw,34px);
}
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.brand-mark, .intro-mark { display: inline-flex; align-items: center; gap: 3px; transform: skew(-18deg); }
.brand-mark i, .intro-mark i { width: 5px; height: 17px; border-radius: 2px; display: block; background: #77edd8; }
.brand-mark i:nth-child(2), .intro-mark i:nth-child(2) { height: 25px; background: #aeb4ff; }
.brand-mark i:nth-child(3), .intro-mark i:nth-child(3) { height: 20px; background: #c489fa; }
.archive-return {
  grid-area: archive; display: inline-flex; justify-self: start; align-items: center; gap: 7px;
  min-height: 44px; color: #d2dbea; font-weight: 630; font-size: 14px; line-height: 1.25; white-space: nowrap;
}
.archive-return .icon { width: 17px; height: 17px; color: var(--accent); }
.archive-return:hover { color: var(--accent); }
.nav {
  grid-area: sections; justify-self: center; align-self: stretch; display: flex; gap: 26px;
}
.nav a {
  display: inline-flex; align-items: center; position: relative; min-height: 44px; padding-inline: 2px;
  color: var(--muted); font-size: 15px; line-height: 1.25; font-weight: 680; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; inset: auto 2px 0; height: 2px; background: var(--accent);
}
.icon-button {
  display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; padding: 0;
  background: #111725cc; border: 1px solid #3c4c63; border-radius: 9px; color: #e9eef7;
}
.icon-button:hover { background: #243046; border-color: #aabceb; }
.search-toggle {
  grid-area: search; justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 44px; min-height: 44px; font-size: 14px; font-weight: 630; color: #d2dbea;
}
.search-toggle:hover, .search-toggle[aria-current="page"] { color: var(--accent); }
.description-language {
  grid-area: language; justify-self: end; display: flex; gap: 2px; padding: 2px;
  border: 1px solid var(--line); border-radius: 8px;
}
.description-language button {
  min-width: 35px; min-height: 38px; padding: 0 4px; border: 0; border-radius: 5px;
  background: transparent; color: var(--muted); font-size: 13px; font-weight: 750;
}
.description-language button:hover { color: var(--text); }
.description-language button[aria-pressed="true"] { background: var(--accent); color: #0d2022; }
.title-filters {
  display: grid; grid-template-columns: minmax(210px, 2.1fr) minmax(113px, 1fr) minmax(108px, .82fr) minmax(143px, 1.12fr);
  gap: 8px; align-items: stretch; margin-bottom: 8px;
}
.filter-query, .filter-select select {
  min-height: 44px; min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--text); font-size: 14px;
}
.filter-query { display: flex; align-items: center; gap: 9px; padding-inline: 12px; }
.filter-query .icon { color: var(--muted); width: 18px; height: 18px; }
.filter-query input { width: 100%; min-width: 0; flex: 1; align-self: stretch; padding: 7px 0; border: 0; background: transparent; font-size: inherit; }
.filter-query input::placeholder { color: var(--muted); opacity: 1; }
.filter-query:focus-within { border-color: var(--accent); }
.filter-query input:focus-visible { outline: none; }
.filter-select { min-width: 0; }
.filter-select select { padding-inline: 10px; cursor: pointer; }
.filter-select select:hover { border-color: #7784a1; }
.filter-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 25px; margin: 0 0 11px; color: var(--muted); font-size: 13px; }
.filter-summary button { border: none; background: none; color: var(--accent); font-size: inherit; padding: 2px 0; }
.filter-summary button:hover { text-decoration: underline; }
@media (max-width: 850px) {
  .title-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .filter-query { grid-column: 1 / -1; }
}
@media (max-width: 490px) {
  .title-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-select:last-child { grid-column: 1 / -1; }
}

.hero, .detail-hero {
  position: relative; isolation: isolate; background-color: #122032; overflow: hidden;
}
.hero { min-height: clamp(475px, 39vw, 638px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-cover { position: absolute; z-index: -2; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: var(--position, center 52%); }
.hero::after, .detail-hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, #0b0e18 0%, #0b0e18e8 17%, #0b0e18ac 38%, #0b0e1855 58%, transparent 85%),
              linear-gradient(0deg, var(--bg) 0%, #0d1018bc 9%, transparent 41%);
}
.hero-inner { padding-top: 72px; padding-bottom: 48px; }
.hero-copy { max-width: 650px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; font-weight: 760; text-transform: uppercase; letter-spacing: .15em; }
.kicker::before { content: ""; border-radius: 2px; width: 16px; height: 2px; background: currentColor; }
.hero h1, .detail-hero h1 {
  font-family: Arial, "Segoe UI", sans-serif;
  line-height: 1.25; letter-spacing: normal; overflow-wrap: anywhere;
}
.hero h1 { font-size: clamp(44px, 5.5vw, 76px); font-weight: 700; margin: 11px 0 13px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 13px; color: #d2dbea; font-size: 14px; }
.age { border: 1px solid #7b889c; padding: 0 5px; border-radius: 4px; font-size: 12px; line-height: 1.45; }
.hero p { margin-top: 13px; max-width: 44ch; color: #dbe2ee; font-size: clamp(14px,1.25vw,17px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 21px; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 45px; padding: 7px 13px; border-radius: 9px;
  border: 1px solid #536279; background: #172031d9; color: var(--text); font-size: 14px; font-weight: 690;
}
.btn:hover { background: #28374e; border-color: #d0d7f1; }
.btn-primary { background: var(--accent); color: #10252a; border-color: transparent; }
.btn-primary:hover { background: #bcfff3; border-color: transparent; }
.btn-track[aria-pressed="true"] { color: var(--accent); border-color: #467268; }
.btn-track[aria-disabled="true"] { cursor: wait; opacity: .72; }
.action-short { display: none; }
.slider { display: flex; gap: 3px; position: absolute; bottom: 33px; right: var(--shell); }
.slider button { display: grid; place-items: center; min-width: 29px; height: 37px; padding: 0 4px; border: 0; border-radius: 5px; background: none; }
.slider button::before { content: ""; width: 19px; height: 3px; border-radius: 3px; background: #a4aec281; }
.slider button[aria-pressed="true"]::before { background: var(--accent); }
.collection { position: relative; padding-top: 6px; padding-bottom: 52px; scroll-margin-top: 20px; }
.collection-head { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.collection h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 730; }
.filters { display: flex; gap: 5px; flex-wrap: wrap; }
.filters button, .seasons button {
  min-height: 38px; padding: 4px 12px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-weight: 600;
}
.filters button:hover, .seasons button:hover { color: var(--text); border-color: #7784a1; }
.filters button[aria-pressed="true"], .seasons button[aria-pressed="true"] { color: var(--accent); background: #1b3438; border-color: #42766e; }
.grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 15px; }
.poster-card { min-width: 0; display: block; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); overflow: hidden; transition: border-color .18s, transform .18s; }
.poster-card:hover { border-color: #849ce0; transform: translateY(-3px); }
.card-picture { display: block; width: 100%; aspect-ratio: 1.64; object-fit: cover; background: #202b3a; }
.card-info { padding: 10px 11px 12px; display: block; }
.card-info b { display: block; font-size: 14px; font-weight: 680; line-height: 1.4; overflow-wrap: anywhere; }
.card-info small { display: block; color: var(--muted); font-size: 12px; line-height: 1.36; margin-top: 4px; }
.empty { border: 1px solid var(--line); border-radius: 11px; padding: 19px; background: var(--panel); color: var(--muted); }
#tracking-tools p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
#tracking-tools a, #tracking-tools button { color: var(--accent); text-decoration: underline; }
#tracking-tools button { background: none; padding: 4px 2px; border: 0; }
.track-notice {
  position: fixed; z-index: 15; bottom: 20px; right: var(--shell);
  max-width: min(420px, calc(100% - 2 * var(--shell))); padding: 10px 14px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 9px;
}
.list-view { min-height: calc(100vh - var(--header-height)); padding-top: 34px; }
.list-view h1 { font-size: clamp(30px, 4.5vw, 52px); margin-bottom: 8px; overflow-wrap: anywhere; }
.list-view .list-desc { color: var(--muted); margin-bottom: 23px; }
.detail-hero { min-height: 485px; display: flex; align-items: flex-end; }
.detail-hero::after {
  background: linear-gradient(90deg, #0b0e18f7, #0b0e18e0 25%, #0b0e189e 49%, #0b0e1860 69%, #0b0e1845),
              linear-gradient(0deg, var(--bg), #0d1018ad 20%, transparent 62%);
}
.detail-inner { padding-top: 39px; padding-bottom: 37px; }
.back { display: inline-flex; align-items: center; gap: 5px; color: #c4d2ec; font-size: 13px; margin-bottom: 17px; }
.back:hover { color: var(--accent); }
.detail-hero h1 { font-size: clamp(38px, 5.3vw, 74px); margin: 7px 0 11px; }
.genres { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; padding: 0; }
.genres li { border: 1px solid #55687f; background: #121c2dca; border-radius: 7px; padding: 2px 8px; font-size: 13px; }
.synopsis { max-width: 61ch; color: #dbe2ef; margin-top: 14px; font-size: 15px; }
.detail-body { padding-bottom: 45px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(234px, .76fr); align-items: start; gap: 22px; margin-top: 17px; }
.detail-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.detail-panel h2 { font-size: 21px; letter-spacing: -.025em; }
.detail-head, .facts { padding: 16px 17px; }
.seasons { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.seasons button.future { border-style: dashed; }
.release { border: 1px solid #395e67; border-radius: 10px; background: #173036; margin: 0 0 14px; display: flex; align-items: center; gap: 11px; padding: 11px 14px; }
.release .icon { color: var(--accent); }
.release small { display: block; color: #c1d7d6; }
.episodes { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.episode { min-height: 61px; padding: 8px 15px; display: flex; align-items: center; gap: 11px; }
.episode + .episode { border-top: 1px solid var(--line); }
.episode-number { flex: none; color: #adb9d4; width: 21px; font-size: 13px; font-variant-numeric: tabular-nums; }
.episode-name { min-width: 0; flex: 1; }
.episode-name b { display: block; overflow-wrap: anywhere; }
.episode-name small { display: block; font-size: 12px; color: var(--muted); }
.episode .btn { flex: none; min-height: 36px; padding-inline: 9px; font-size: 13px; }
.episode .icon { width: 16px; height: 16px; }
.facts dl { margin: 9px 0 0; }
.facts dl div { padding: 9px 0; display: grid; grid-template-columns: minmax(75px,.45fr) 1fr; gap: 7px; }
.facts dl div + div { border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; font-size: 13px; }
.film-viewing p { margin-top: 9px; color: var(--muted); }
.description-credit { display: flex; align-items: center; gap: 8px; max-width: 58ch; margin-top: 8px; color: var(--muted); }
.description-credit img { width: 35px; height: auto; flex: none; }
.description-credit a { text-decoration: underline; text-underline-offset: 3px; }
#player-host { scroll-margin-top: 15px; }
.player { margin-top: 14px; }
.inline-player .player { margin-top: 0; }
.player-head { padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.player-head h2 { overflow-wrap: anywhere; }
.player-head small { display: block; color: var(--muted); margin-top: 3px; }
.player video { display: block; width: 100%; max-height: min(66vh,720px); aspect-ratio: 16/9; background: #080b12; }
.player-error { padding: 10px 16px; color: #f5c4b2; }
.intro {
  position: fixed; display: grid; place-items: center; z-index: 8; inset: 0; pointer-events: none;
  background: #0a0c17; animation: intro-exit 1.35s ease both;
}
.intro-rays {
  position: absolute; inset: 0; opacity: .72;
  background: repeating-conic-gradient(from 32deg at 50% 50%,transparent 0 10deg,#9e56ff 11deg,#aa85ff00 14deg,transparent 17deg 31deg),
              radial-gradient(ellipse at center,#fafaff 0%,#a76dfc 7%,#7033a4 16%,#2b45ae 30%,#090c1d 68%);
  animation: rays 1.16s ease-out both;
}
.intro-mark { transform: scale(3.5) skew(-18deg); animation: mark .95s ease-out both; }
@keyframes intro-exit { 0%,62% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes rays { 0% { transform: scale(.2) rotate(-12deg); opacity: 0; } 52% {opacity: .9;} 100% { transform: scale(2.1) rotate(6deg); opacity: 0; } }
@keyframes mark { 0% { transform: scale(1) skew(-18deg); opacity: 0; } 75%,100% { transform: scale(3.5) skew(-18deg); opacity: 1; } }
@media(max-width:1100px) { .grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:860px) {
  :root { --header-height: 98px; }
  html { scroll-padding-top: 12px; }
  .site-header { position: relative; }
  .header-inner {
    grid-template-columns: auto minmax(0,1fr) auto 44px;
    grid-template-areas: "archive brand brand search" "sections sections language language";
    grid-template-rows: 54px 44px; column-gap: 8px;
  }
  .brand { justify-self: center; }
  .nav { justify-self: start; gap: 22px; }
  .search-toggle span { display: none; }
}
@media(max-width:760px) {
  .hero { min-height: clamp(312px, 52svh, 395px); }
  .hero-inner { padding-top: 40px; padding-bottom: 46px; }
  .hero-cover { object-position: var(--mobile-position, 62% 50%); }
  .hero::after { background: linear-gradient(90deg,#0b0e186b,#0b0e1814 72%),linear-gradient(0deg,var(--bg),#0d1018e8 23%,#0d10188c 62%,#0d10181c); }
  .hero h1 { font-size: clamp(31px, 8.6vw, 58px); margin: 9px 0; }
  .detail-hero h1 { font-size: clamp(30px, 8vw, 52px); }
  .hero .hero-summary {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden; margin-top: 9px; line-height: 1.45;
  }
  .hero .actions { margin-top: 14px; }
  .slider { bottom: 1px; }
  .slider button { min-width: 39px; min-height: 44px; }
  .detail-grid { grid-template-columns: minmax(0,1fr); }
  .list-view { padding-top: 26px; }
}
@media(max-width:510px) {
  :root { --shell: 16px; }
  .brand { font-size: 13px; letter-spacing: .08em; gap: 6px; }
  .brand-mark { gap: 2px; }
  .brand-mark i { width: 4px; }
  .archive-return { font-size: 13px; gap: 5px; }
  .nav a { font-size: 14px; }
  .nav { gap: 14px; }
  .hero .btn { padding-inline: 9px; gap: 6px; }
  .hero .action-wide { display: none; }
  .hero .action-short { display: inline; }
  .filter-query input, .filter-select select { font-size: 16px; }
  .hero .meta { font-size: 13px; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .poster-card { border-radius: 8px; }
  .detail-hero { min-height: 0; }
  .detail-inner { padding-top: 23px; }
  .episode { gap: 6px; padding-inline: 9px; }
  .episode .btn { padding-inline: 7px; }
}
@media(prefers-reduced-motion:reduce) {
  .intro { display: none !important; }
  .poster-card { transition: none; }
  .poster-card:hover { transform: none; }
}

.card-picture.placeholder { display: grid; place-items: center; color: var(--accent); background: radial-gradient(ellipse at 60% 15%, #3d4b74, #252c45 55%, #141b2d 93%); }
.card-picture.placeholder .icon { width: 32px; height: 32px; }
.player-error a { text-decoration: underline; text-underline-offset: 3px; }

.audio-panel { padding: 14px 16px; border-top: 1px solid var(--line); display: flex; align-items: end; flex-wrap: wrap; gap: 10px 20px; }
.audio-panel label { display: grid; gap: 6px; font-weight: 650; min-width: 0; max-width: 100%; }
.audio-panel select { min-height: 42px; max-width: 100%; padding: 6px 12px; border-radius: 8px; color: inherit; background: #17202c; border: 1px solid #435061; font: inherit; }
.audio-options { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.audio-options small { color: var(--muted); }
.audio-options button { border: 0; padding: 10px 0; color: var(--accent); background: transparent; font: inherit; cursor: pointer; }
.audio-options button:hover { text-decoration: underline; }

.stream-format { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 16px 12px; color: var(--muted); }
.stream-format a { font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
