:root {
  --bg: #090612;
  --panel: rgba(255, 255, 255, 0.1);
  --panel-strong: rgba(255, 255, 255, 0.18);
  --text: #fffaf4;
  --muted: #d8d3e8;
  --line: rgba(255, 255, 255, 0.22);
  --accent: #ffe600;
  --accent-2: #00f5d4;
  --accent-3: #ff2fb3;
  --accent-4: #7cff00;
  --danger: #ff385c;
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 47, 179, 0.42), transparent 32%),
    radial-gradient(circle at 86% 12%, rgba(0, 245, 212, 0.36), transparent 30%),
    radial-gradient(circle at 50% 86%, rgba(255, 230, 0, 0.28), transparent 38%),
    linear-gradient(145deg, #090612 0%, #1a0730 42%, #071d28 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

#signalCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: transparent;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(120deg, rgba(255, 230, 0, 0.22), transparent 34%),
    linear-gradient(260deg, rgba(255, 47, 179, 0.24), transparent 38%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(210px, 300px);
  align-items: center;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 230, 0, 0.26);
  background: rgba(9, 6, 18, 0.78);
  box-shadow: 0 12px 44px rgba(255, 47, 179, 0.16);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: var(--radius);
  filter: drop-shadow(0 0 16px rgba(255, 230, 0, 0.34));
  animation: logoPulse 3.8s ease-in-out infinite;
}

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

.brand strong {
  font-size: 16px;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--accent-2);
  font-size: 12px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #f4edff;
  font-size: 14px;
}

.nav a:hover {
  color: #090612;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.header-radio {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(9, 6, 18, 0.5);
  box-shadow: none;
}

.header-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-radio-label .live-dot {
  width: 7px;
  height: 7px;
}

.header-radio audio {
  width: 100%;
  min-width: 0;
  height: 28px;
  opacity: 0.86;
}

main {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 81px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 76px);
  padding: 56px 0 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-logo {
  display: block;
  width: min(360px, 78vw);
  height: auto;
  margin: 0 0 18px;
  filter:
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 28px rgba(255, 230, 0, 0.26));
  transform-origin: 50% 58%;
  animation: logoFloat 5.4s ease-in-out infinite, logoGlow 3.8s ease-in-out infinite;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(255, 56, 92, 0.5), 0 0 18px rgba(255, 56, 92, 0.95);
  animation: pulse 1.6s infinite;
}

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

h1 {
  margin-bottom: 18px;
  max-width: 760px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
  background: linear-gradient(92deg, #ffffff 0%, var(--accent) 28%, var(--accent-3) 62%, var(--accent-2) 100%);
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 34px rgba(255, 47, 179, 0.28));
}

.lead {
  max-width: 590px;
  margin-bottom: 28px;
  color: #f1eaff;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 230, 0, 0.32);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 230, 0, 0.14), rgba(255, 47, 179, 0.12));
  color: #f7efff;
  font-size: 13px;
}

.quick-stats strong {
  color: var(--text);
  font-size: 15px;
}

.player-shell {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(9, 6, 18, 0.58);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.broadcast-stack {
  display: grid;
  align-self: start;
  gap: 14px;
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.label {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-4);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.player-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 245, 212, 0.42);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.16), rgba(255, 230, 0, 0.12));
  color: var(--text);
  cursor: pointer;
}

.icon-button:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #090612;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050607;
}

video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050607;
}

.offline {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: linear-gradient(145deg, rgba(9, 6, 18, 0.84), rgba(255, 47, 179, 0.22));
}

.offline.is-visible {
  display: grid;
}

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

.offline span {
  margin-top: 8px;
  color: var(--muted);
}

.meter {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  height: 70px;
  align-items: end;
  padding: 16px 18px 20px;
}

.meter span {
  display: block;
  min-height: 8px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(0, 245, 212, 0.42));
  box-shadow: none;
  animation: meter 1.2s ease-in-out infinite;
}

.meter span:nth-child(2n) {
  animation-duration: 0.9s;
}

.meter span:nth-child(3n) {
  animation-duration: 1.45s;
}

.audio-shell {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(0, 245, 212, 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 245, 212, 0.16), rgba(124, 255, 0, 0.1)),
    rgba(9, 6, 18, 0.76);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28), 0 0 42px rgba(0, 245, 212, 0.18);
  backdrop-filter: blur(22px);
}

.audio-copy h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.audio-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

audio {
  width: 100%;
  accent-color: var(--accent);
}

.audio-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.mini-button {
  min-width: 132px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 230, 0, 0.38);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 230, 0, 0.16), rgba(255, 47, 179, 0.16));
  color: var(--text);
  cursor: pointer;
}

.mini-button:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #090612;
}

.section-band {
  display: grid;
  gap: 24px;
  padding: 44px 0;
  border-top: 1px solid rgba(255, 230, 0, 0.24);
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

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

.schedule article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 47, 179, 0.14), rgba(0, 245, 212, 0.1)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.schedule time {
  color: var(--accent);
  font-weight: 800;
}

.schedule strong {
  display: block;
  margin: 16px 0 8px;
  font-size: 20px;
}

.schedule span {
  color: var(--muted);
  line-height: 1.45;
}

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

.news-card,
.news-empty {
  overflow: hidden;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 230, 0, 0.12), rgba(255, 47, 179, 0.14)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.news-card {
  display: grid;
  grid-template-rows: 170px 1fr;
}

.news-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(9, 6, 18, 0.72);
}

.news-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.news-card h3 {
  margin: 0;
  color: #fffaf4;
  font-size: 19px;
  line-height: 1.18;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.news-card[href]:hover {
  border-color: rgba(255, 230, 0, 0.52);
  transform: translateY(-2px);
  transition: border-color 160ms ease, transform 160ms ease;
}

.news-empty {
  grid-column: 1 / -1;
  padding: 18px;
  color: var(--muted);
}

.contact {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.contact-button {
  display: inline-flex;
  justify-content: center;
  min-width: 180px;
  padding: 13px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #090612;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(255, 47, 179, 0.28);
}

footer {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 36px;
  border-top: 1px solid rgba(0, 245, 212, 0.24);
  color: var(--muted);
  font-size: 13px;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(255, 91, 110, 0);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.025);
  }
}

@keyframes logoGlow {
  0%, 100% {
    filter:
      drop-shadow(0 18px 34px rgba(0, 0, 0, 0.42))
      drop-shadow(0 0 24px rgba(255, 230, 0, 0.24))
      drop-shadow(0 0 18px rgba(0, 245, 212, 0.16));
  }
  50% {
    filter:
      drop-shadow(0 22px 42px rgba(0, 0, 0, 0.46))
      drop-shadow(0 0 38px rgba(255, 230, 0, 0.44))
      drop-shadow(0 0 30px rgba(255, 47, 179, 0.28));
  }
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 14px rgba(255, 230, 0, 0.3));
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 22px rgba(0, 245, 212, 0.38));
  }
}

@keyframes meter {
  0%, 100% {
    height: 18%;
  }
  50% {
    height: 100%;
  }
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header-radio {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 38px;
  }

  .schedule,
  .news-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .contact-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  h1 {
    font-size: 44px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .player-header {
    align-items: flex-start;
  }

  .player-header h2 {
    font-size: 19px;
  }

  .quick-stats span {
    width: 100%;
  }

  .header-radio {
    grid-template-columns: 1fr;
  }

  .audio-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mini-button {
    width: 100%;
  }

  footer {
    flex-direction: column;
  }
}
