/* cartoons-ai — dark cinematic streaming theme
   Mood: arena spotlights, blue-black gamma, gold + red accents.
   System fonts only. No external hosts. */

:root {
  --bg:        #06080f;
  --bg-2:      #090d17;
  --panel:     #0f1524;
  --panel-2:   #141c2e;
  --panel-3:   #1b2438;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);
  --text:      #eef2fb;
  --text-2:    #b7c1d6;
  --muted:     #8593ac;
  --muted-2:   #5f6b83;

  --blue:      #4f8cff;
  --blue-2:    #2f6bff;
  --blue-soft: rgba(79,140,255,.16);
  --gold:      #f2b451;
  --red:       #e5484d;
  --green:     #45d17f;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 18px 50px rgba(0,0,0,.55);
  --shadow-sm: 0 8px 24px rgba(0,0,0,.4);
  --maxw:      1320px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ambient arena glow behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(79,140,255,.14), transparent 60%),
    radial-gradient(900px 520px at 8% 4%, rgba(47,107,255,.10), transparent 62%),
    radial-gradient(1200px 800px at 50% 120%, rgba(20,28,46,.9), transparent 70%),
    var(--bg);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(79,140,255,.35); color: #fff; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

.hide { display: none !important; }

/* ---------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px) saturate(1.2);
  background: linear-gradient(180deg, rgba(6,8,15,.92), rgba(6,8,15,.6) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(6,8,15,.94);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 20px;
  white-space: nowrap;
}
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--blue), var(--blue-2));
  box-shadow: 0 6px 18px rgba(47,107,255,.5), inset 0 1px 0 rgba(255,255,255,.4);
  flex: none;
}
.brand .mark svg { width: 17px; height: 17px; display: block; }
.brand .name b { color: var(--text); }
.brand .name span { color: var(--blue); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}
.main-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .18s, background .18s;
}
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.main-nav a.active { color: var(--text); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search svg {
  position: absolute; left: 11px;
  width: 16px; height: 16px; color: var(--muted);
  pointer-events: none;
}
.search input {
  width: 190px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 9px 12px 9px 34px;
  border-radius: 999px;
  font-size: 13.5px;
  outline: none;
  transition: border-color .2s, background .2s, width .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus {
  border-color: var(--blue);
  background: rgba(79,140,255,.08);
  width: 220px;
}

.lang-toggle {
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-2);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .2s, color .2s, background .2s;
}
.lang-toggle:hover { color: var(--text); border-color: var(--blue); background: var(--blue-soft); }
.lang-toggle .globe { width: 15px; height: 15px; opacity: .8; }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: transform .12s ease, background .2s, border-color .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: #f4f7ff;
  color: #0a0f1c;
  box-shadow: 0 10px 30px rgba(255,255,255,.14);
}
.btn-primary:hover { background: #fff; box-shadow: 0 14px 34px rgba(255,255,255,.22); }

.btn-accent {
  background: linear-gradient(150deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(47,107,255,.4);
}
.btn-accent:hover { box-shadow: 0 16px 38px rgba(47,107,255,.55); }

.btn-ghost {
  background: rgba(255,255,255,.07);
  color: var(--text);
  border-color: var(--line-2);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.13); border-color: var(--line-2); }

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border-color: var(--line-2);
}
.btn-outline:hover { color: var(--text); border-color: var(--blue); }

.btn-sm { padding: 9px 15px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* ---------------------------------------------------------- badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.05);
  color: var(--text-2);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.badge.available { color: #d6ffe7; border-color: rgba(69,209,127,.4); background: rgba(69,209,127,.12); }
.badge.available .dot { background: var(--green); box-shadow: 0 0 0 3px rgba(69,209,127,.25); animation: livepulse 2.4s ease-in-out infinite; }
.badge.soon { color: #ffe6bd; border-color: rgba(242,180,81,.38); background: rgba(242,180,81,.12); }
.badge.soon .dot { background: var(--gold); }
.badge.flagship { color: #fff; border-color: rgba(79,140,255,.5); background: rgba(79,140,255,.16); }
.badge.flagship .dot { background: var(--blue); }

@keyframes livepulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(69,209,127,.28); }
  50%     { box-shadow: 0 0 0 5px rgba(69,209,127,.08); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ---------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/media/poster.png");
  background-size: cover;
  background-position: 66% 16%;
  transform: scale(1.04);
  filter: saturate(1.05);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(95deg, rgba(6,8,15,.97) 0%, rgba(6,8,15,.86) 34%, rgba(6,8,15,.35) 60%, rgba(6,8,15,.12) 78%),
    linear-gradient(0deg, var(--bg) 2%, rgba(6,8,15,.25) 34%, transparent 62%),
    radial-gradient(900px 420px at 78% 8%, rgba(79,140,255,.22), transparent 60%);
}
.hero-inner {
  padding-top: 88px;
  padding-bottom: clamp(40px, 7vw, 82px);
  max-width: 640px;
}
.hero .eyebrow { margin-bottom: 18px; }
.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  line-height: .98;
  font-weight: 900;
  letter-spacing: -.03em;
  margin: 0 0 16px;
  text-shadow: 0 6px 40px rgba(0,0,0,.6);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 18px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}
.hero-meta .chip {
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line);
}
.hero-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }
.hero-tagline {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-2);
  max-width: 520px;
  margin: 0 0 28px;
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------- rails */
.rails { padding: clamp(20px, 4vw, 40px) 0 40px; position: relative; }
.rail { margin-bottom: clamp(30px, 4vw, 48px); }
.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.rail-title {
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.rail-title .accent-bar {
  width: 4px; height: 22px; border-radius: 3px;
  background: linear-gradient(180deg, var(--blue), var(--blue-2));
}
.rail-title.gold .accent-bar { background: linear-gradient(180deg, var(--gold), #c98a2a); }
.rail-count { color: var(--muted); font-size: 13px; font-weight: 600; }

.rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 250px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 6px 2px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--panel-3) transparent;
}
.rail-track::-webkit-scrollbar { height: 8px; }
.rail-track::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 999px; }
.rail-track::-webkit-scrollbar-track { background: transparent; }

/* grid variant (catalog / similar) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

/* ---------------------------------------------------------- card */
.card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform .18s ease, border-color .2s, box-shadow .2s;
  will-change: transform;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.card-art {
  position: relative;
  aspect-ratio: 2 / 3;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.card-art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,8,15,.72) 0%, rgba(6,8,15,.05) 42%, transparent 60%);
}
.card-art.has-poster { background-position: 60% 16%; }

/* gradient placeholder plaque */
.card-plaque {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  z-index: 1;
}
.card-plaque::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,.14), transparent 55%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 2px, transparent 2px 22px);
  z-index: -1;
}
.plq-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: auto;
}
.plq-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
}
.card-play {
  position: absolute;
  right: 12px; bottom: 12px;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(244,247,255,.94);
  color: #0a0f1c;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px) scale(.9);
  transition: opacity .2s, transform .2s;
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
}
.card-play svg { width: 18px; height: 18px; margin-left: 2px; }
.card:hover .card-play { opacity: 1; transform: translateY(0) scale(1); }

.card-body {
  padding: 13px 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-title {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.card-genre {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}
.card-teaser {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}

/* ---------------------------------------------------------- page shells */
.page-main { min-height: 60vh; }
.section { padding: clamp(30px, 5vw, 56px) 0; }
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.section-lead {
  color: var(--text-2);
  font-size: clamp(15px, 1.8vw, 18px);
  max-width: 720px;
}

/* ---------------------------------------------------------- title page */
.title-hero { position: relative; padding-top: 40px; }
.title-backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: 480px;
  z-index: -1;
  background-size: cover;
  background-position: 60% 12%;
  opacity: .28;
  filter: saturate(1.05);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}
.title-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
  padding-top: 20px;
}
.poster-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  background: var(--panel-2);
  background-size: cover;
  background-position: 58% 14%;
}
.poster-frame .card-plaque { padding: 24px; }
.poster-frame .plq-title { font-size: 30px; }
.poster-glow {
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 60%;
  background: radial-gradient(60% 100% at 50% 0, rgba(79,140,255,.4), transparent 70%);
  z-index: -1;
  filter: blur(20px);
}
.title-info { min-width: 0; }
.title-info .eyebrow { margin-bottom: 14px; }
.title-name {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  margin: 0 0 6px;
}
.title-original {
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
  margin-bottom: 18px;
}
.title-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
}
.title-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.title-synopsis h2, .title-block h2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 10px;
  color: var(--text);
}
.title-synopsis p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 26px;
  max-width: 720px;
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
}
.meta-cell {
  background: var(--panel);
  padding: 14px 16px;
}
.meta-cell .k {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.meta-cell .v {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* episodes */
.ep-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 12px; }
.ep {
  display: grid;
  grid-template-columns: 168px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color .2s, background .2s;
}
.ep:hover { border-color: var(--line-2); background: var(--panel-2); }
.ep-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel-3);
  background-size: cover;
  background-position: 58% 20%;
}
.ep-thumb .play-mini {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(6,8,15,.25);
  color: #fff;
  transition: background .2s;
}
.ep:hover .ep-thumb .play-mini { background: rgba(6,8,15,.1); }
.ep-thumb .play-mini svg { width: 34px; height: 34px; filter: drop-shadow(0 3px 8px rgba(0,0,0,.6)); }
.ep-num {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 4px;
}
.ep-title { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.ep-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.ep-dur { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }

.soon-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  border-radius: 16px;
  border: 1px dashed var(--line-2);
  background: linear-gradient(150deg, var(--panel), var(--bg-2));
}
.soon-panel p { color: var(--text-2); font-size: 15px; margin: 0; max-width: 560px; }

/* ---------------------------------------------------------- player */
.player-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000;
}
.player-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(0,0,0,.9), transparent);
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
}
.player-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  padding: 9px 15px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(6px);
  transition: background .2s;
}
.player-back:hover { background: rgba(255,255,255,.16); }
.player-back svg { width: 17px; height: 17px; }
.player-now {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.player-now .np-k {
  font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--blue); font-weight: 700;
}
.player-now .np-t { font-size: 15px; font-weight: 700; }
.player-stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 0;
  background:
    radial-gradient(1000px 500px at 50% 0, rgba(79,140,255,.1), transparent 60%),
    #000;
}
.player-frame {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.player-frame video {
  width: 100%;
  max-height: 82vh;
  display: block;
  background: #000;
  border-radius: 0;
  outline: none;
}
.player-caption {
  padding: 18px clamp(16px, 4vw, 40px) 30px;
  background: #000;
}
.player-caption .pc-title {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 6px;
}
.player-caption .pc-sub { color: var(--muted); font-size: 14px; }
.player-caption .pc-desc { color: var(--text-2); font-size: 14.5px; max-width: 760px; margin-top: 10px; line-height: 1.6; }
.upnext {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.upnext h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 14px; }
.upnext .card-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* ---------------------------------------------------------- about */
.about-hero {
  padding: clamp(56px, 9vw, 110px) 0 clamp(30px, 5vw, 60px);
  position: relative;
}
.about-hero .eyebrow { margin-bottom: 18px; }
.about-hero h1 {
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.02;
  margin: 0 0 22px;
  max-width: 900px;
}
.about-lead {
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--text-2);
  max-width: 760px;
  line-height: 1.55;
}
.about-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 760px;
  margin: 8px 0 40px;
}
.about-body p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0;
}
.about-body p::first-letter { }
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  margin: 10px 0 50px;
}
.stat {
  padding: 26px 24px;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
}
.stat .sv {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -.03em;
  background: linear-gradient(120deg, #fff, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.stat .sl { color: var(--muted); font-size: 14px; font-weight: 600; }

.cta-band {
  margin: 20px 0 10px;
  padding: clamp(30px, 5vw, 54px);
  border-radius: 20px;
  background:
    radial-gradient(600px 300px at 85% -20%, rgba(79,140,255,.25), transparent 60%),
    linear-gradient(150deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.cta-band .ct-text h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin: 0 0 8px; letter-spacing: -.02em; }
.cta-band .ct-text p { color: var(--text-2); margin: 0; max-width: 520px; font-size: 15.5px; }

/* ---------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  margin-top: 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding: clamp(40px, 6vw, 64px) 0 40px;
}
.footer-brand .brand { font-size: 22px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 300px; line-height: 1.6; }
.footer-col h4 {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text); font-weight: 800; margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-col .contact-mail { color: var(--blue); font-weight: 600; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 13px;
}
.footer-bottom .disc { max-width: 640px; line-height: 1.5; }
.footer-bottom .made { font-style: italic; }

/* ---------------------------------------------------------- modal (sign in — legend) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4,6,12,.72);
  backdrop-filter: blur(8px);
}
.modal-overlay.open { display: flex; }
.modal {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 30px 28px 28px;
  box-shadow: var(--shadow);
  position: relative;
  animation: modalIn .22s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--muted); display: grid; place-items: center;
  transition: color .2s, background .2s;
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,.1); }
.modal-close svg { width: 16px; height: 16px; }
.modal .m-badge { margin-bottom: 16px; }
.modal h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.modal .m-note { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.field input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14.5px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.field input:focus { border-color: var(--blue); background: rgba(79,140,255,.07); }
.modal .btn { width: 100%; margin-top: 6px; }
.modal .m-foot { text-align: center; margin-top: 18px; color: var(--muted); font-size: 13.5px; }
.modal .m-foot a { color: var(--blue); font-weight: 600; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .title-layout { grid-template-columns: 260px 1fr; }
}
@media (max-width: 760px) {
  .search { display: none; }
  .hero { min-height: 78vh; }
  .hero-bg { background-position: 62% 12%; }
  .title-layout { grid-template-columns: 1fr; }
  .poster-frame { max-width: 300px; }
  .ep { grid-template-columns: 130px 1fr; }
  .ep-dur { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .header-inner { height: 60px; gap: 12px; }
  .brand { font-size: 18px; }
  .footer-top { grid-template-columns: 1fr; }
  .rail-track { grid-auto-columns: minmax(180px, 74vw); }
  .btn-lg { padding: 13px 20px; font-size: 15px; }
  .hero-actions .btn { flex: 1; }
  .ep { grid-template-columns: 1fr; }
  .ep-thumb { aspect-ratio: 16/9; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
