:root {
  --bg: #0a0b0f;
  --bg-2: #12141c;
  --panel: #171a24;
  --text: #eef1f6;
  --muted: #9aa3b4;
  --accent: #6ee7ff;
  --accent-2: #a855f7;
  --line: #232838;
  --radius: 12px;
  --maxw: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 700px at 70% -10%, #1a1030 0%, var(--bg) 55%);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(10,11,15,0.92), rgba(10,11,15,0.55));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__mark { width: 28px; height: 28px; }
.brand__name { font-size: 20px; letter-spacing: -0.02em; }
.badge {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 7px; border-radius: 999px; font-weight: 700;
}
.badge--beta { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #08111a; }
.nav__links { display: flex; gap: 20px; color: var(--muted); font-size: 14px; }
.nav__links a:hover { color: var(--text); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.search input {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  padding: 8px 14px; border-radius: 999px; font-size: 14px; width: 200px; outline: none;
}
.search input:focus { border-color: var(--accent); }

.langsw { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--panel); }
.langsw__btn {
  background: transparent; color: var(--muted); border: 0; cursor: pointer;
  padding: 7px 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  transition: color .15s ease, background .15s ease;
}
.langsw__btn:hover { color: var(--text); }
.langsw__btn.is-active { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #08111a; }

.btn {
  cursor: pointer; border: 0; border-radius: 8px; font-weight: 600; font-size: 14px;
  padding: 10px 18px; transition: transform .08s ease, background .2s ease, opacity .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: #fff; color: #0a0b0f; }
.btn--primary:hover { opacity: .88; }
.btn--ghost { background: rgba(255,255,255,0.10); color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { background: rgba(255,255,255,0.18); }

/* ---------- Hero ---------- */
.hero { position: relative; height: min(72vh, 620px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05); filter: saturate(1.05);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,11,15,0.95) 0%, rgba(10,11,15,0.55) 40%, rgba(10,11,15,0.1) 70%),
    linear-gradient(0deg, var(--bg) 2%, rgba(10,11,15,0) 40%);
}
.hero__body { position: relative; padding: 0 clamp(16px, 4vw, 48px) 48px; max-width: 720px; }
.hero__eyebrow { color: var(--accent); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.hero__title { font-size: clamp(32px, 6vw, 64px); line-height: 1.02; margin: 10px 0 14px; letter-spacing: -0.03em; }
.hero__synopsis { color: #cfd6e4; font-size: 17px; line-height: 1.5; max-width: 560px; }
.hero__actions { display: flex; gap: 12px; margin-top: 22px; }

/* ---------- Stats strip ---------- */
.stats {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding: 8px clamp(16px, 4vw, 48px) 4px;
  margin-top: -8px;
}
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 20px; display: flex; flex-direction: column; min-width: 120px; flex: 1;
}
.stat__num { font-size: 24px; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- About ---------- */
.about { padding: 14px clamp(16px, 4vw, 48px) 0; max-width: 940px; }
.about__title { font-size: 22px; margin: 8px 0 8px; letter-spacing: -0.01em; }
.about__body { color: #cfd6e4; line-height: 1.6; font-size: 16px; margin: 0; }

/* ---------- Rows ---------- */
.rows { padding: 28px clamp(16px, 4vw, 48px) 60px; display: flex; flex-direction: column; gap: 34px; }
.rows__loading, .rows__error { color: var(--muted); padding: 40px 0; }
.row__title { font-size: 20px; margin: 0 0 14px; letter-spacing: -0.01em; }
.row__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.row__track::-webkit-scrollbar { height: 8px; }
.row__track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.card {
  position: relative; scroll-snap-align: start; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
  border: 1px solid var(--line); transition: transform .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-4px) scale(1.02); border-color: var(--accent); z-index: 2; }
.card__thumb { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: #0e1017; }
.card__body { padding: 10px 12px 12px; }
.card__title { font-size: 15px; font-weight: 600; }
.card__meta { color: var(--muted); font-size: 12px; margin-top: 3px; display: flex; gap: 8px; align-items: center; }
.card__badge {
  position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 700;
  padding: 3px 7px; border-radius: 6px; background: rgba(0,0,0,0.6); border: 1px solid var(--line);
  letter-spacing: 0.04em;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px clamp(16px, 4vw, 48px); color: var(--muted); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 48px; }
.footer__cols h4 { color: var(--text); font-size: 14px; margin: 0 0 10px; }
.footer__cols a { display: block; font-size: 14px; padding: 4px 0; }
.footer__cols a:hover { color: var(--text); }
.footer__contact { margin-top: 24px; font-size: 14px; color: var(--muted); }
.footer__contact a { color: var(--accent); }
.footer__legal { margin-top: 10px; font-size: 12px; }
.footer__legal a { color: var(--accent); }

/* ---------- Modal player ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(3,4,8,0.82); backdrop-filter: blur(6px); }
.modal__dialog {
  position: relative; width: min(960px, 94vw); background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,0.55);
  color: #fff; cursor: pointer; font-size: 15px;
}
.player { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; }
.modal__meta { padding: 18px 22px 24px; }
.modal__meta h2 { margin: 0 0 8px; font-size: 22px; }
.modal__meta p { color: #cfd6e4; margin: 0; line-height: 1.5; }
.modal__tech { color: var(--muted) !important; font-size: 13px; margin-top: 10px !important; font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .nav__links, .search { display: none; }
  .hero { height: 64vh; }
}
