:root {
  --red: #E31E24;
  --red-deep: #A8121A;
  --gold: #FFC20E;
  --ink: #1A1512;
  --cream: #FFF8ED;
  --gray: #6B6560;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--red);
  background-image: radial-gradient(circle at 15% 0%, var(--red) 0%, var(--red-deep) 75%);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

.bg-wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-family: 'Anton', sans-serif;
  font-size: min(38vw, 480px);
  line-height: 1;
  color: rgba(255, 194, 14, 0.08);
  letter-spacing: -0.02em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
}

.topbar__logo {
  height: 42px;
  width: auto;
  border-radius: 6px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.live-badge.on { opacity: 1; }

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.live-badge.on .live-dot {
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.station-name {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.01em;
  text-shadow: 0 6px 0 rgba(0,0,0,0.15);
}

.tagline {
  max-width: 32ch;
  color: rgba(255, 248, 237, 0.85);
  font-size: 1rem;
  margin: 0.9rem 0 2.5rem;
}

.player {
  width: 100%;
  max-width: 420px;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 2rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.equalizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 40px;
}

.equalizer span {
  width: 5px;
  height: 8px;
  border-radius: 3px;
  background: var(--gold);
  opacity: 0.85;
  transform-origin: bottom;
  transition: height 0.15s ease;
}

.equalizer.playing span {
  animation: bounce 0.9s ease-in-out infinite;
}

.equalizer.playing span:nth-child(1) { animation-delay: 0s; }
.equalizer.playing span:nth-child(2) { animation-delay: 0.08s; }
.equalizer.playing span:nth-child(3) { animation-delay: 0.16s; }
.equalizer.playing span:nth-child(4) { animation-delay: 0.24s; }
.equalizer.playing span:nth-child(5) { animation-delay: 0.32s; }
.equalizer.playing span:nth-child(6) { animation-delay: 0.4s; }
.equalizer.playing span:nth-child(7) { animation-delay: 0.32s; }
.equalizer.playing span:nth-child(8) { animation-delay: 0.24s; }
.equalizer.playing span:nth-child(9) { animation-delay: 0.16s; }
.equalizer.playing span:nth-child(10) { animation-delay: 0.08s; }

@keyframes bounce {
  0%, 100% { height: 8px; }
  50% { height: 36px; }
}

.play-btn {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(255, 194, 14, 0.6);
  transition: transform 0.15s ease, box-shadow 0.3s ease;
}

.play-btn:hover { transform: scale(1.05); }
.play-btn:active { transform: scale(0.96); }

.play-btn.idle-pulse {
  animation: ring 2.2s ease-out infinite;
}

@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 194, 14, 0.55); }
  70% { box-shadow: 0 0 0 22px rgba(255, 194, 14, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 194, 14, 0); }
}

.icon { width: 30px; height: 30px; }
.icon-play { margin-left: 4px; }

.now-playing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.6rem;
}

.np-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.np-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.volume {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}

.volume .icon { width: 18px; height: 18px; color: rgba(255,248,237,0.7); flex-shrink: 0; }

.volume input[type="range"] {
  flex: 1;
  accent-color: var(--gold);
}

.status {
  margin-top: 1.25rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255, 248, 237, 0.6);
  letter-spacing: 0.04em;
}

.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.25rem;
  font-size: 0.75rem;
  color: rgba(255, 248, 237, 0.55);
}

.dot-sep { margin: 0 0.4rem; }

@media (prefers-reduced-motion: reduce) {
  .stage, .live-dot, .equalizer.playing span, .play-btn.idle-pulse {
    animation: none !important;
  }
}
