:root {
  --background: #111820;
  --surface: #19232d;
  --surface-light: #22303c;
  --text: #f6f8fa;
  --muted: #aab5bf;
  --accent: #39b7d5;
  --content: 1180px;
  --radius: 14px;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17, 24, 32, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(var(--content), calc(100% - 40px));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 34px;
}
.logo { margin-right: auto; }
.logo img { width: 116px; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
  padding: 24px 0 21px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current='page'] { color: var(--text); border-color: var(--accent); }
.header-download {
  min-height: 38px;
  padding: 8px 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.header-download:hover { background: var(--accent); color: #071117; }
.header-download svg { width: 17px; fill: currentColor; }
.menu-button {
  display: none;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: transparent;
  padding: 8px 13px;
  cursor: pointer;
}

.hero {
  min-height: 570px;
  position: relative;
  overflow: hidden;
  background: #1a2630;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  background-color: #1a2630;
  background-position: center;
  background-size: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility .55s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 13, 18, .88), rgba(8, 13, 18, .2) 68%),
              linear-gradient(0deg, var(--background), transparent 38%);
}
.hero-content {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 90px;
  position: relative;
  z-index: 1;
}
.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 46px;
  height: 46px;
  padding: 0 0 5px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(8, 13, 18, .5);
  color: #fff;
  font: 300 38px/1 var(--font-body);
  cursor: pointer;
  transform: translateY(-50%);
}
.hero-arrow:hover { background: rgba(8, 13, 18, .82); }
.hero-prev { left: 22px; }
.hero-next { right: 22px; }
.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
}
.hero-dots button.active { width: 24px; border-radius: 5px; background: var(--accent); }
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1, .page-heading h1, .detail h1 {
  margin: 0;
  max-width: 680px;
  font: 700 clamp(44px, 7vw, 76px)/1 var(--font-heading);
  text-transform: uppercase;
}
.hero-description {
  max-width: 520px;
  margin: 18px 0 0;
  color: #d9e0e5;
  font-size: 20px;
}
.primary-button {
  width: fit-content;
  margin-top: 28px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #071117;
  font-weight: 700;
  cursor: pointer;
}
.primary-button:hover { filter: brightness(1.1); }
.primary-button svg, .secondary-button svg, .card-play svg { width: 20px; fill: currentColor; }
.hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-actions .primary-button { margin-top: 0; }
.secondary-button {
  width: fit-content;
  padding: 11px 19px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  background: rgba(8, 13, 18, .48);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.secondary-button:hover { background: #fff; color: #071117; }

.collection {
  width: min(var(--content), calc(100% - 40px));
  margin: 64px auto;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-heading h2 {
  margin: 0;
  font: 600 clamp(25px, 4vw, 34px)/1.1 var(--font-heading);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 18px;
}
.card {
  min-width: 0;
  border-radius: var(--radius);
  outline: 0;
}
.thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card:hover .thumb img { transform: scale(1.03); }
.card:focus-visible .thumb { box-shadow: 0 0 0 3px var(--accent); }
.fallback {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  align-items: end;
  font: 600 22px/1.1 var(--font-heading);
  text-transform: uppercase;
}
.card-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 15, 20, .82);
}
.card-copy { padding: 13px 4px 0; }
.card-copy p {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.card-copy h3 { margin: 0; font-size: 18px; line-height: 1.2; }
.card-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }

.page-heading {
  width: min(var(--content), calc(100% - 40px));
  margin: 80px auto 36px;
}
.page-heading h1 { font-size: clamp(44px, 7vw, 68px); }
.page-heading > p:last-child { max-width: 580px; margin: 14px 0 0; color: var(--muted); font-size: 19px; }
.page-heading + .collection { margin-top: 40px; }

.live-grid {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.live-card {
  min-height: 210px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--channel), var(--surface));
}
.live-card img { width: auto; height: 52px; align-self: flex-start; object-fit: contain; }
.live-card p { margin: 0; color: #e4e9ed; }
.live-badge { align-self: flex-start; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.live-badge::first-letter { color: #ff4d4d; }

.detail {
  width: min(var(--content), calc(100% - 40px));
  min-height: 600px;
  margin: 54px auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 56px;
}
.detail-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: var(--surface) center / cover no-repeat;
}
.detail h1 { font-size: clamp(44px, 6vw, 66px); }
.detail-copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.detail-copy small { display: block; color: var(--accent); }

.site-footer {
  margin-top: 90px;
  padding: 54px 20px;
  text-align: center;
  background: #0b1015;
  border-top: 1px solid rgba(255,255,255,.07);
}
.site-footer img { width: 120px; margin: auto; }
.site-footer p { margin: 15px auto 0; color: var(--muted); }
.site-footer .copyright { font-size: 12px; }

@media (max-width: 900px) {
  .header-inner { min-height: 64px; gap: 12px; }
  .menu-button { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 12px 20px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--background);
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 0; border: 0; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-grid { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 560px) {
  .header-inner, .hero-content, .collection, .page-heading, .live-grid, .detail {
    width: min(100% - 28px, var(--content));
  }
  .hero { min-height: 500px; }
  .hero-content { padding-bottom: 62px; }
  .hero-arrow { width: 40px; height: 40px; font-size: 32px; }
  .hero-prev { left: 10px; }
  .hero-next { right: 10px; }
  .hero-dots { bottom: 17px; }
  .hero-description { font-size: 17px; }
  .header-download { width: 38px; padding: 8px; justify-content: center; }
  .header-download span { display: none; }
  .hero-actions { gap: 9px; }
  .primary-button, .secondary-button { padding: 11px 15px; }
  .collection { margin-top: 48px; margin-bottom: 48px; }
  .card-grid { gap: 20px 12px; }
  .thumb { aspect-ratio: 3 / 4; }
  .card-copy h3 { font-size: 16px; }
  .live-grid { grid-template-columns: 1fr; }
  .detail { margin-top: 28px; min-height: 0; }
  .detail-image { aspect-ratio: 16 / 11; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
