:root {
  color-scheme: dark;
  --bg: #0c0b12;
  --panel: #161421;
  --panel-2: #201c30;
  --text: #fbf8ff;
  --muted: #bbb1cc;
  --line: rgba(255, 255, 255, 0.13);
  --primary: #7c3cff;
  --primary-2: #00e0ff;
  --hot: #ff3d81;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(124, 60, 255, 0.34), transparent 28rem),
    radial-gradient(circle at 90% 20%, rgba(0, 224, 255, 0.18), transparent 24rem),
    linear-gradient(180deg, #0c0b12 0%, #12101b 52%, #09080d 100%);
  color: var(--text);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 11, 18, 0.86);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.footer nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(124, 60, 255, 0.16);
  font-weight: 900;
  overflow: hidden;
}

.brand-mark img {
  width: 120%;
  height: 120%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.lead,
.hero-card p,
.chat-card p,
.schedule-grid p,
.content-grid p,
.community-card p {
  color: var(--muted);
}

.nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.button {
  min-height: 42px;
  padding: 0.72rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 800;
}

.nav a:hover,
.button:hover {
  border-color: rgba(0, 224, 255, 0.55);
}

.nav-cta,
.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--hot));
  color: white;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  display: grid;
  min-height: 680px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 4vw, 4rem);
}

.hero-copy {
  max-width: 820px;
}

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

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.7rem, 7vw, 6.4rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0.6rem;
}

.lead {
  max-width: 680px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-card,
.chat-card,
.schedule-grid article,
.content-grid article,
.clip-card,
.about-card,
.community-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(124, 60, 255, 0.16), transparent 42%),
    rgba(22, 20, 33, 0.86);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}

.hero-card {
  position: relative;
  padding: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
}

.hero-card::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, rgba(255, 61, 245, 0.24), transparent 18rem);
  content: "";
  pointer-events: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-logo {
  display: block;
  width: min(360px, 100%);
  margin: -0.75rem auto 0.75rem;
  filter: drop-shadow(0 22px 45px rgba(255, 61, 245, 0.34));
}

.hero-card strong {
  display: block;
  margin: 1.4rem 0 0.7rem;
  color: white;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 61, 129, 0.16);
  color: #ffd7e6;
  font-weight: 900;
}

.live-badge span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 18px var(--hot);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.stats span {
  padding: 0.85rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.stats b {
  display: block;
  color: var(--primary-2);
  font-size: 1.6rem;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 4rem);
}

.section-heading,
.live-layout,
.schedule-grid,
.split-section,
.community-card {
  max-width: 1180px;
  margin: 0 auto;
}

.about-card {
  display: grid;
  max-width: 1180px;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr) auto;
  align-items: center;
  gap: 1.25rem;
  margin: 0 auto;
  padding: 1.25rem;
}

.about-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-heading {
  margin-bottom: 2rem;
}

.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 1rem;
}

.stream-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050409;
  aspect-ratio: 16 / 9;
}

.stream-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.chat-card,
.schedule-grid article,
.content-grid article,
.community-card {
  padding: 1.2rem;
}

.schedule-grid,
.content-grid,
.clip-rotator,
.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.schedule-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.schedule-grid-single article {
  min-height: 170px;
}

.schedule-grid span,
.content-grid span,
.clip-card span {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--primary-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.clips-section {
  background: rgba(255, 255, 255, 0.02);
}

.clip-rotator,
.clip-grid {
  max-width: 1180px;
  margin: 0 auto;
}

.clip-rotator {
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.55fr);
  align-items: stretch;
}

.clip-card {
  min-height: 210px;
  padding: 1.2rem;
  opacity: 0.62;
  transform: scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.clip-card.is-active {
  border-color: rgba(255, 61, 129, 0.55);
  opacity: 1;
  transform: scale(1);
}

.clip-rotator .clip-card.is-active {
  grid-row: span 2;
}

.clip-card p {
  color: var(--muted);
  line-height: 1.6;
}

.clip-embed-card {
  min-height: auto;
}

.clip-embed-card iframe {
  display: block;
  width: 100%;
  min-height: 180px;
  border: 0;
  border-radius: var(--radius);
  background: #050409;
  aspect-ratio: 16 / 9;
}

.clip-rotator .clip-card.is-active iframe {
  min-height: clamp(280px, 42vw, 560px);
}

.clip-grid-large {
  max-width: 1380px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
}

.clip-grid-large .clip-embed-card iframe {
  min-height: clamp(260px, 32vw, 520px);
}

.fun-clip {
  border-color: rgba(255, 61, 129, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 61, 129, 0.2), transparent 44%),
    rgba(22, 20, 33, 0.9);
}

.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 4rem) clamp(2rem, 4vw, 3rem);
}

.page-hero h1 {
  max-width: 900px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: start;
}

.community-section {
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.community-card {
  background:
    linear-gradient(135deg, rgba(255, 61, 129, 0.18), transparent 45%),
    linear-gradient(315deg, rgba(0, 224, 255, 0.12), transparent 42%),
    var(--panel);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer strong {
  color: var(--text);
}

.footer a:hover {
  color: var(--text);
}

@media (max-width: 820px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .live-layout,
  .split-section,
  .about-card {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .clip-rotator,
  .clip-grid-large {
    grid-template-columns: 1fr;
  }

  .clip-rotator .clip-card.is-active {
    grid-row: auto;
  }

  .clip-embed-card iframe,
  .clip-rotator .clip-card.is-active iframe,
  .clip-grid-large .clip-embed-card iframe {
    min-height: auto;
  }
}
