@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Oswald:wght@500;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #0a0708;
  --panel: #16101380;
  --pink: #ff2fa0;
  --purple: #8b3bff;
  --cyan: #2ff2e0;
  --yellow: #ffe44d;
  --text: #f4ecee;
  --text-dim: #b8a8ae;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--bg);
  color: var(--text);
  font-family: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='14' cy='14' r='7' fill='none' stroke='%23ff2fa0' stroke-width='2'/%3E%3Ccircle cx='14' cy='14' r='2' fill='%232ff2e0'/%3E%3C/svg%3E") 14 14, auto;
}

a, button { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Ccircle cx='15' cy='15' r='8' fill='none' stroke='%232ff2e0' stroke-width='2.5'/%3E%3Ccircle cx='15' cy='15' r='3' fill='%23ff2fa0'/%3E%3C/svg%3E") 15 15, pointer; }

/* film-grain overlay, fixed over everything */
.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1s steps(4) infinite;
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0,0); }
  25% { transform: translate(-2%,2%); }
  50% { transform: translate(2%,-2%); }
  75% { transform: translate(-1%,-1%); }
}

.station { position: relative; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(circle at 30% 20%, rgba(139,59,255,0.35), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(255,47,160,0.3), transparent 55%),
    linear-gradient(180deg, #0a0708, #130a10 60%, #0a0708);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 600px; height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,47,160,0.18), transparent 70%);
  filter: blur(10px);
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.08); }
}

.floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.floater {
  position: absolute;
  font-size: 28px;
  line-height: 1;
  opacity: 0.35;
  animation: floaty 7s ease-in-out infinite;
  filter: drop-shadow(0 0 8px currentColor);
}
.floater--pink   { color: var(--pink); }
.floater--cyan   { color: var(--cyan); animation-duration: 9s; animation-delay: -2s; }
.floater--yellow { color: var(--yellow); animation-duration: 6s; animation-delay: -4s; }
.floater--purple { color: var(--purple); animation-duration: 8s; animation-delay: -1s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(12deg); }
}

.hero__header { position: relative; z-index: 2; text-align: center; }

.dial-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  border: 1px solid rgba(47,242,224,0.5);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
  text-shadow: 0 0 8px var(--cyan);
}

.station__name {
  position: relative;
  font-family: 'Bungee', 'Oswald', sans-serif;
  font-size: clamp(34px, 9.5vw, 72px);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
  text-transform: uppercase;
  color: #fff;
  -webkit-text-stroke: 2px rgba(255,255,255,0.15);
  text-shadow:
    0 0 10px var(--pink),
    0 0 24px var(--pink),
    0 0 48px var(--purple),
    3px 3px 0 var(--cyan);
  animation: flicker 5s linear infinite;
}
@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.4; }
  94% { opacity: 1; }
  95% { opacity: 0.6; }
  96% { opacity: 1; }
}

.station__name::before,
.station__name::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  clip-path: inset(0 0 0 0);
  text-shadow: none;
}
.station__name::before {
  color: var(--cyan);
  mix-blend-mode: screen;
  animation: glitch-a 3.4s infinite linear alternate-reverse;
}
.station__name::after {
  color: var(--pink);
  mix-blend-mode: screen;
  animation: glitch-b 2.7s infinite linear alternate-reverse;
}
@keyframes glitch-a {
  0%   { clip-path: inset(10% 0 80% 0); transform: translate(2px,0); }
  20%  { clip-path: inset(60% 0 10% 0); transform: translate(-2px,0); }
  40%  { clip-path: inset(30% 0 50% 0); transform: translate(1px,0); }
  60%  { clip-path: inset(75% 0 5% 0);  transform: translate(-1px,0); }
  80%  { clip-path: inset(5% 0 85% 0);  transform: translate(2px,0); }
  100% { clip-path: inset(40% 0 40% 0); transform: translate(0,0); }
}
@keyframes glitch-b {
  0%   { clip-path: inset(70% 0 5% 0);  transform: translate(-2px,0); }
  25%  { clip-path: inset(15% 0 70% 0); transform: translate(2px,0); }
  50%  { clip-path: inset(45% 0 35% 0); transform: translate(-1px,0); }
  75%  { clip-path: inset(5% 0 80% 0);  transform: translate(1px,0); }
  100% { clip-path: inset(55% 0 20% 0); transform: translate(0,0); }
}

.station__tagline {
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(15px, 3.4vw, 18px);
  letter-spacing: 0.01em;
  margin: 0 auto 10px;
  max-width: 480px;
}

.station__descriptors {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.station__descriptors span:nth-child(1) { color: var(--pink); }
.station__descriptors span:nth-child(2) { color: var(--cyan); }
.station__descriptors span:nth-child(3) { color: var(--yellow); }
.station__descriptors span:nth-child(4) { color: var(--purple); }

.station__explainer {
  color: var(--text-dim);
  font-family: 'Space Mono', monospace;
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  margin: 0 auto 40px;
  max-width: 420px;
}

.station__panel {
  position: relative;
  z-index: 2;
  background: linear-gradient(160deg, rgba(139,59,255,0.14), rgba(255,47,160,0.08));
  border: 1px solid rgba(255,47,160,0.25);
  border-radius: 24px;
  padding: 28px 28px 32px;
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  width: min(92vw, 460px);
}

.viz {
  display: block;
  width: 100%;
  height: 90px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
}

.listen-btn {
  display: block;
  width: 100%;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0a0708;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  border: none;
  border-radius: 999px;
  padding: 18px 20px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(255,47,160,0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.listen-btn:hover { transform: scale(1.02); box-shadow: 0 0 40px rgba(255,47,160,0.75); }
.listen-btn:disabled { opacity: 0.6; cursor: wait; }

.status {
  margin: 18px 0 4px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
  text-align: center;
}

.now-playing {
  font-size: 16px;
  font-weight: 600;
  min-height: 22px;
  text-align: center;
  color: #fff;
}

.load-progress {
  margin-top: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

.update-banner {
  position: relative;
  z-index: 2;
  margin-top: 22px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--yellow);
  border: 1px dashed rgba(255,228,77,0.6);
  border-radius: 10px;
  padding: 10px 14px;
  max-width: 420px;
  text-align: center;
}

/* ---------- linkboard (ads / links sticker grid) ---------- */

.linkboard {
  position: relative;
  z-index: 2;
  background: radial-gradient(ellipse at top, rgba(139,59,255,0.16), transparent 60%);
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 20px 24px;
}

.linkboard__heading {
  position: relative;
  z-index: 2;
  font-family: 'Bungee', 'Oswald', sans-serif;
  font-weight: 400;
  font-size: clamp(20px, 4vw, 28px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 10px var(--pink), 0 0 26px var(--purple);
  margin: 0 0 18px;
  text-align: center;
}
.linkboard__heading--network {
  text-shadow: 0 0 10px var(--purple), 0 0 26px var(--purple);
  margin-top: 42px;
}

.linkboard__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.linkcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  text-decoration: none;
  color: var(--text);
  background: #120b0e;
  border: 1.5px solid var(--pink);
  border-radius: 14px;
  padding: 22px 22px 20px;
  box-shadow: 0 0 20px rgba(255,47,160,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.linkcard:hover,
.linkcard:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(255,47,160,0.32);
}

.linkcard__tag {
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 10px;
}

.linkcard__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  margin-bottom: 8px;
}

.linkcard__desc {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.linkcard__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.linkcard__pill {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  border: 1px solid rgba(244,236,238,0.25);
  border-radius: 999px;
  padding: 3px 10px;
}

.linkcard__meta {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: inherit;
  margin-top: auto;
  padding-top: 4px;
}

.linkcard--pink   { border-color: var(--pink);   box-shadow: 0 0 20px rgba(255,47,160,0.18); }
.linkcard--pink   .linkcard__tag, .linkcard--pink   .linkcard__meta { color: var(--pink); }
.linkcard--cyan   { border-color: var(--cyan);   box-shadow: 0 0 20px rgba(47,242,224,0.18); }
.linkcard--cyan   .linkcard__tag, .linkcard--cyan   .linkcard__meta { color: var(--cyan); }
.linkcard--yellow { border-color: var(--yellow); box-shadow: 0 0 20px rgba(255,228,77,0.18); }
.linkcard--yellow .linkcard__tag, .linkcard--yellow .linkcard__meta { color: var(--yellow); }
.linkcard--sponsor { border-color: var(--purple); box-shadow: 0 0 16px rgba(139,59,255,0.16); }
.linkcard--sponsor .linkcard__tag, .linkcard--sponsor .linkcard__meta { color: var(--purple); }
.linkcard--ad {
  border-style: dashed;
  border-color: var(--text-dim);
  box-shadow: none;
}
.linkcard--ad .linkcard__tag,
.linkcard--ad .linkcard__meta { color: var(--text-dim); }

.station__footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 10px 20px 36px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
}
