:root {
  --bg: #08090e;
  --bg-soft: #10121b;
  --card: #141722;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef1f7;
  --muted: #8990a3;
  --accent: #ff5c3a;
  --accent-2: #7c5cff;
  --radius: 14px;
  --max: 1340px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(8, 9, 14, 0.92), rgba(8, 9, 14, 0.72));
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #fff;
}

.logo span { color: var(--accent); }

.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.nav a:hover, .nav a.active { color: var(--text); }

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 13.5px;
  width: 240px;
}

.search input {
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  width: 100%;
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.burger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  width: 38px;
  height: 38px;
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  margin-top: 26px;
  border-radius: 22px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 44px;
  border: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 78% 12%, rgba(124, 92, 255, 0.42), transparent 62%),
    radial-gradient(680px 380px at 12% 88%, rgba(255, 92, 58, 0.30), transparent 65%),
    linear-gradient(120deg, #171a28 0%, #0c0e17 55%, #14111f 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(8, 9, 14, 0.86) 100%);
}

.hero-content { position: relative; z-index: 2; max-width: 620px; }

.tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 92, 58, 0.4);
  background: rgba(255, 92, 58, 0.10);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -1.2px;
}

.hero p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
}

.hero-meta {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 26px;
}

.hero-meta b { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; gap: 12px; }

/* ---------- rows ---------- */

.section { margin-top: 48px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.4px;
}

.section-head a { margin-left: auto; color: var(--muted); font-size: 13.5px; }
.section-head a:hover { color: var(--text); }

.row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.row::-webkit-scrollbar { display: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

/* ---------- cards ---------- */

.card { position: relative; display: block; }

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #191c27;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover .poster {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
}

.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent 45%);
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.65) 100%);
}

.p1 { background: radial-gradient(120% 90% at 20% 15%, #ff7a4d, #6d1d10 62%, #1b0d0c); }
.p2 { background: radial-gradient(120% 90% at 75% 20%, #61d3ff, #123a6b 60%, #0a1424); }
.p3 { background: radial-gradient(120% 90% at 30% 80%, #b6ff6a, #2d5c14 60%, #0d1608); }
.p4 { background: radial-gradient(120% 90% at 70% 15%, #ff8ad4, #5a1f4d 60%, #190a16); }
.p5 { background: radial-gradient(120% 90% at 25% 25%, #ffe17a, #6b4a12 60%, #1a1207); }
.p6 { background: radial-gradient(120% 90% at 80% 70%, #9d8cff, #2c2170 60%, #0e0b1f); }
.p7 { background: radial-gradient(120% 90% at 20% 70%, #7af0d8, #14564a 60%, #061613); }
.p8 { background: radial-gradient(120% 90% at 65% 25%, #ff6b6b, #5d1620 60%, #170608); }
.p9 { background: radial-gradient(120% 90% at 35% 30%, #8fb8ff, #1c3564 60%, #080f1d); }
.p10 { background: radial-gradient(120% 90% at 70% 75%, #ffb36b, #63350f 60%, #1a0f06); }
.p11 { background: radial-gradient(120% 90% at 25% 20%, #c3a6ff, #3b2470 60%, #0f0a1c); }
.p12 { background: radial-gradient(120% 90% at 75% 30%, #7ce7ff, #17475c 60%, #06141a); }

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(8, 9, 14, 0.72);
  border: 1px solid var(--line);
  color: #ffd166;
  backdrop-filter: blur(6px);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) scale(0.85);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.card:hover .poster-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.card-title {
  margin: 10px 0 2px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-sub { color: var(--muted); font-size: 12.5px; }

/* ---------- chips ---------- */

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 26px; }

.chip {
  font-size: 13.5px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  cursor: pointer;
}

.chip.active, .chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.24); }

/* ---------- page head ---------- */

.page-head { margin: 34px 0 8px; }

.page-head h1 {
  margin: 0 0 6px;
  font-size: 32px;
  letter-spacing: -0.8px;
}

.page-head p { margin: 0; color: var(--muted); }

/* ---------- player ---------- */

.player-shell { margin: 26px 0 0; }

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(700px 340px at 70% 20%, rgba(124, 92, 255, 0.35), transparent 60%),
    linear-gradient(140deg, #161a27, #0a0c13 70%);
  display: grid;
  place-items: center;
}

.player-button {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.player-button:hover { background: var(--accent); border-color: var(--accent); }

.player-bar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.player-bar span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.meta-line { display: flex; gap: 16px; color: var(--muted); font-size: 13.5px; margin: 18px 0 0; flex-wrap: wrap; }

.description { color: #c3c9d8; max-width: 820px; margin: 16px 0 0; }

/* ---------- footer ---------- */

.footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding: 40px 0 46px;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }

.footer-brand { max-width: 320px; }
.footer-brand p { margin: 12px 0 0; line-height: 1.6; }

.footer-links { display: flex; gap: 48px; margin-left: auto; flex-wrap: wrap; }

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col a { display: block; margin-bottom: 9px; }
.footer-col a:hover { color: var(--text); }

.copyright {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero { padding: 30px; min-height: 360px; }
  .hero h1 { font-size: 34px; }
  .nav { display: none; }
  .burger { display: grid; place-items: center; }
  .search { display: none; }
  .wrap { padding: 0 18px; }
  .footer-links { margin-left: 0; gap: 32px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 27px; }
  .row { grid-auto-columns: 140px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
}

.nav.open {
  display: flex;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  padding: 16px 28px;
  gap: 14px;
}
