:root {
  color-scheme: dark;
  --bg: #050608;
  --panel: #11151c;
  --panel-2: #171d25;
  --ink: #f7f7f2;
  --muted: #aab3bf;
  --line: rgba(255, 255, 255, 0.14);
  --red: #f33535;
  --gold: #f1b84b;
  --teal: #39c0ba;
  --green: #61c26f;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  padding: 0 32px;
  background: rgba(5, 6, 8, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.primary-nav,
.header-actions,
.hero-actions,
.player-meta,
.section-heading,
.genre-tabs,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.primary-nav {
  justify-content: center;
  gap: 8px;
}

.primary-nav a,
.genre-tabs button,
.secondary-button,
.text-button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--muted);
}

.primary-nav a {
  padding: 9px 14px;
  font-size: 0.94rem;
  font-weight: 700;
}

.primary-nav a.active,
.primary-nav a:hover,
.genre-tabs button.active,
.genre-tabs button:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.header-actions {
  justify-content: end;
  gap: 10px;
}

.icon-button,
.text-button,
.primary-button,
.secondary-button,
.genre-tabs button,
.content-card {
  cursor: pointer;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
}

.icon-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.text-button {
  padding: 0 14px;
  background: #fff;
  color: #090a0c;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
  gap: 30px;
  align-items: end;
  min-height: calc(100svh - 72px);
  padding: 52px 32px 34px;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.96) 0%, rgba(5, 6, 8, 0.72) 45%, rgba(5, 6, 8, 0.34) 100%),
    url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero-copy {
  max-width: 660px;
  padding-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 8vw, 7.6rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy p:not(.eyebrow) {
  max-width: 58ch;
  color: #d7dde3;
  font-size: 1.08rem;
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  font-weight: 900;
}

.primary-button {
  border: 0;
  background: var(--red);
  color: #fff;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(0, 0, 0, 0.2);
}

.player-shell {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-meta {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 3;
  justify-content: space-between;
  pointer-events: none;
}

.player-meta span {
  padding: 7px 10px;
  border-radius: 4px;
  background: rgba(5, 6, 8, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

#player {
  width: 100%;
  height: 100%;
  min-height: 430px;
}

.player-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  background: #090b0f;
  text-align: center;
}

.player-fallback[hidden] {
  display: none !important;
}

.player-fallback span {
  color: var(--muted);
}

.search-panel {
  padding: 22px 32px 0;
  background: #0a0d11;
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.search-panel input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.metrics-band article {
  min-height: 150px;
  padding: 24px 32px;
  background: #0a0d11;
}

.metrics-band span {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 2.3rem;
  font-weight: 900;
}

.metrics-band p,
.capability-grid p,
.content-meta,
.site-footer {
  color: var(--muted);
}

.content-section {
  padding: 54px 32px 12px;
}

.section-heading {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2,
.monetization-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading a {
  color: var(--green);
  font-weight: 900;
}

.genre-tabs {
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.genre-tabs button {
  flex: 0 0 auto;
  padding: 0 13px;
  background: transparent;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 24vw);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
}

.content-card {
  min-height: 324px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  scroll-snap-align: start;
  transition: transform 180ms ease, border-color 180ms ease;
}

.content-card:hover,
.content-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.42);
  outline: none;
}

.poster {
  position: relative;
  min-height: 190px;
  background-position: center;
  background-size: cover;
}

.poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.74));
}

.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin-bottom: 8px;
  font-size: 1.06rem;
}

.content-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
}

.monetization-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(420px, 1.22fr);
  gap: 28px;
  margin-top: 44px;
  padding: 58px 32px;
  background:
    linear-gradient(120deg, rgba(243, 53, 53, 0.24), rgba(57, 192, 186, 0.12)),
    #10141b;
  border-top: 1px solid var(--line);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.capability-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.capability-grid span {
  color: var(--gold);
  font-weight: 900;
}

.capability-grid h3 {
  margin: 22px 0 8px;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 0 32px;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 0 18px;
  }

  .primary-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .hero,
  .monetization-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 42px 18px 28px;
  }

  h1 {
    max-width: 11ch;
  }

  .metrics-band,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .content-section,
  .search-panel,
  .monetization-panel,
  .site-footer {
    padding-inline: 18px;
  }

  .rail {
    grid-auto-columns: minmax(225px, 72vw);
  }
}

@media (max-width: 620px) {
  .brand span:last-child {
    display: none;
  }

  .hero {
    background-position: 62% center;
  }

  h1 {
    font-size: 3.15rem;
  }

  .player-shell,
  #player {
    min-height: 260px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
