:root {
  --bg: #0e1013;
  --panel: #16191f;
  --panel-2: #1d2129;
  --ink: #f4efe6;
  --muted: #9aa2ad;
  --amber: #ffb43a;
  --amber-2: #ff7a1a;
  --red: #ff4d4d;
  --green: #46d17a;
  --line: #2a2f39;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --font: "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 50% -10%, #23272f 0%, var(--bg) 55%);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.static-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 0;
  background-image: repeating-linear-gradient(
    0deg,
    #fff 0,
    #fff 1px,
    transparent 1px,
    transparent 3px
  );
}

.radio {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

/* Masthead */
.masthead {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow);
}

.dial {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 10px 8px;
  border-radius: 12px;
  background: #0a0c0f;
  border: 1px solid var(--line);
  color: var(--amber);
  text-shadow: 0 0 12px rgba(255, 180, 58, 0.5);
  font-variant-numeric: tabular-nums;
}
.dial-freq {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
}
.dial-fm {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--amber-2);
}

.brand {
  flex: 1;
}
.brand h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 1px;
}
.brand h1 span {
  color: var(--amber);
}
.tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.onair {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--muted);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.onair.live {
  color: var(--red);
  border-color: rgba(255, 77, 77, 0.5);
}
.onair .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #555;
}
.onair.live .dot {
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

/* Stage */
.stage {
  display: flex;
  gap: 26px;
  padding: 26px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: none;
}

.turntable {
  position: relative;
  flex: 0 0 200px;
  height: 200px;
}
.cover {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.turntable.spinning .cover {
  animation: spin 8s linear infinite;
  border-radius: 50%;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.tonearm {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 90px;
  height: 8px;
  background: linear-gradient(90deg, #444, #888);
  border-radius: 6px;
  transform-origin: right center;
  transform: rotate(-28deg);
  transition: transform 0.6s ease;
  opacity: 0;
}
.turntable.spinning .tonearm {
  transform: rotate(8deg);
  opacity: 1;
}

.nowplaying {
  flex: 1;
  min-width: 0;
}
.np-label {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--amber);
  font-weight: 800;
}
.np-title {
  margin: 6px 0 10px;
  font-size: 22px;
  line-height: 1.25;
}
.np-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Equalizer */
.eq {
  display: none;
  gap: 3px;
  align-items: flex-end;
  height: 18px;
  margin-bottom: 12px;
}
.eq.on {
  display: flex;
}
.eq span {
  width: 4px;
  background: var(--amber);
  border-radius: 2px;
  animation: bounce 1s infinite ease-in-out;
}
.eq span:nth-child(1) { animation-delay: 0s; height: 40%; }
.eq span:nth-child(2) { animation-delay: 0.2s; height: 90%; }
.eq span:nth-child(3) { animation-delay: 0.1s; height: 60%; }
.eq span:nth-child(4) { animation-delay: 0.3s; height: 100%; }
.eq span:nth-child(5) { animation-delay: 0.15s; height: 50%; }
@keyframes bounce {
  50% {
    transform: scaleY(0.35);
  }
}

/* Scrubber (read-only, it's live) */
.scrub {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.time {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 42px;
  text-align: center;
}
.track {
  flex: 1;
  height: 6px;
  background: var(--panel-2);
  border-radius: 999px;
  overflow: hidden;
}
.fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--amber-2), var(--amber));
}

/* Controls */
.controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-listen {
  background: linear-gradient(180deg, var(--amber), var(--amber-2));
  color: #1a1206;
  border: none;
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 122, 26, 0.35);
  transition: transform 0.1s ease, filter 0.15s ease;
}
.btn-listen:hover {
  filter: brightness(1.06);
}
.btn-listen:active {
  transform: translateY(1px);
}
.btn-listen.playing {
  background: linear-gradient(180deg, #2a2f39, #1d2129);
  color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--line);
}

.vol {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vol input {
  accent-color: var(--amber);
  width: 120px;
}

.hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* Schedule */
.schedule {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 20px 22px 24px;
}
.schedule h3 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--muted);
}
.playlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.playlist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.playlist li + li {
  margin-top: 4px;
}
.playlist li.current {
  background: var(--panel-2);
  border-color: var(--line);
}
.pl-idx {
  color: var(--muted);
  font-size: 12px;
  width: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.playlist li.current .pl-idx {
  color: var(--amber);
}
.pl-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-dur {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.pl-live {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--red);
  border: 1px solid rgba(255, 77, 77, 0.4);
  border-radius: 4px;
  padding: 2px 5px;
}

.credit {
  margin: 18px 0 0;
  font-size: 11px;
  color: #6b727d;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .masthead {
    flex-wrap: wrap;
  }
  .stage {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .turntable {
    flex-basis: auto;
  }
  .np-desc {
    text-align: left;
  }
  .controls,
  .scrub {
    justify-content: center;
  }
  .brand h1 {
    font-size: 24px;
  }
}
