:root {
  color-scheme: dark;
  --bg: #0b0a10;
  --surface: #15131d;
  --surface-2: #1d1a27;
  --text: #f8f7fb;
  --muted: #a7a2b3;
  --line: #302b3d;
  --accent: #ff3b30;
  --accent-2: #f2c14e;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top right, rgba(255, 59, 48, 0.09), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(11, 10, 16, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 900;
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.top-nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.top-nav .active,
.site-footer a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
}

.live-pill,
.on-air {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.live-pill {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
}

.live-pill i,
.on-air span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.65);
  animation: pulse 1.8s infinite;
}

.ticker {
  display: flex;
  min-height: 2.7rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #100e16;
}

.ticker-label {
  z-index: 2;
  display: grid;
  min-width: max-content;
  place-items: center;
  padding-inline: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ticker-window {
  overflow: hidden;
  flex: 1;
}

.ticker-track {
  display: flex;
  width: max-content;
  min-height: 100%;
  align-items: center;
  gap: 3rem;
  padding-left: 100%;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
}

.ticker-item {
  color: var(--muted);
  font-size: 0.86rem;
}

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

.page-shell {
  width: min(1500px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
}

.hero-grid,
.utility-grid {
  display: grid;
  gap: 1rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
}

.utility-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface), #100f16);
  box-shadow: var(--shadow);
}

.broadcast-card,
.chat-card,
.countdown-card,
.poll-card,
.ask-card,
.topics-panel {
  padding: 1.1rem;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-heading.compact {
  margin-bottom: 0.75rem;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h2 {
  margin-bottom: 0.45rem;
}

.eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.on-air {
  color: #fff;
  font-size: 0.72rem;
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #050507;
}

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

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.6rem;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.video-placeholder strong {
  color: var(--text);
  font-size: 1.25rem;
}

.video-placeholder code {
  color: var(--accent-2);
}

.broadcast-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
}

.broadcast-meta p {
  margin-bottom: 0;
  color: var(--muted);
}

.button {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
}

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

.button.secondary {
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.chat-card {
  min-height: 100%;
}

.chat-frame-wrap {
  min-height: 480px;
}

.chat-frame-wrap iframe {
  width: 100%;
  min-height: 480px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #08070b;
}

.mobile-chat-fallback {
  display: none;
  min-height: 300px;
  place-content: center;
  padding: 2rem;
  text-align: center;
}

.chat-icon {
  font-size: 2.4rem;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 0.78rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.countdown div {
  padding: 0.8rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  text-align: center;
}

.countdown strong,
.countdown span {
  display: block;
}

.countdown strong {
  font-size: clamp(1.35rem, 4vw, 2rem);
}

.countdown span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.poll-options {
  display: grid;
  gap: 0.65rem;
}

.poll-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.poll-option:hover,
.poll-option:focus-visible {
  border-color: var(--accent-2);
}

.poll-result {
  grid-column: 1 / -1;
  height: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: #282331;
}

.poll-result span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.ask-card form {
  display: grid;
  gap: 0.8rem;
}

.ask-card label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #0d0b12;
  color: var(--text);
}

input {
  min-height: 2.7rem;
  padding: 0 0.8rem;
}

textarea {
  min-height: 110px;
  padding: 0.8rem;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent-2);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-message {
  min-height: 1.4rem;
  margin: 0.7rem 0 0;
  color: var(--accent-2);
}

.topics-panel {
  margin-top: 1rem;
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.topic-chip {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@keyframes ticker {
  to {
    transform: translateX(-100%);
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 0.55rem rgba(255, 59, 48, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}

@media (max-width: 1050px) {
  .hero-grid,
  .utility-grid {
    grid-template-columns: 1fr;
  }

  .chat-frame-wrap {
    display: none;
  }

  .mobile-chat-fallback {
    display: grid;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand-copy small,
  .live-pill {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    padding: 0.55rem 0.8rem;
  }

  .top-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .top-nav.open {
    display: flex;
  }

  .broadcast-meta,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .broadcast-meta {
    display: flex;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
