:root {
  --bg: #07070a;
  --panel: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f1ee;
  --muted: #9a9aa3;
  --faint: #55555e;
  --accent: #ff4d2e;
  --radius: 22px;
}

* { box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(255, 77, 46, 0.35); }

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}
.glow-a {
  width: 520px; height: 520px;
  right: -140px; top: -160px;
  background: radial-gradient(circle, rgba(255, 77, 46, 0.35), transparent 70%);
}
.glow-b {
  width: 600px; height: 600px;
  left: -180px; bottom: -200px;
  background: radial-gradient(circle, rgba(96, 74, 255, 0.33), transparent 70%);
}

.top {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px clamp(18px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.12em;
  color: var(--text);
}
.brand-b { color: var(--accent); margin-left: 6px; }

.top-status {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}
.pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--faint);
}
.pill.live { color: var(--text); border-color: rgba(255, 77, 46, 0.45); }
.pill.live .dot { background: var(--accent); animation: pulse 1.6s infinite; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 46, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 77, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 46, 0); }
}

.listeners { color: var(--muted); font-size: 13px; white-space: nowrap; }

.stations {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.station {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
  font-family: inherit;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.station:hover { color: var(--text); }

.station::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s;
}

.station.active {
  color: var(--text);
  border-color: rgba(255, 77, 46, 0.55);
  background: rgba(255, 77, 46, 0.12);
}

.station.active::before {
  background: var(--accent);
}

@media (max-width: 720px) {
  .top-status { width: 100%; }
  .stations { width: 100%; gap: 8px; }
  .station { flex: 1; padding: 10px 8px; font-size: 12px; }
  .top-status .pill { margin-left: auto; }
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lang {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-btn {
  padding: 5px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 48px);
}

.stage {
  display: grid;
  grid-template-columns: minmax(260px, 440px) 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 6vh, 64px) 0 8px;
}

.disc-wrap { justify-self: center; }

.disc {
  width: clamp(280px, 36vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  background: conic-gradient(from 0deg, #14141a, #1e1e26 25%, #101014 50%, #1c1c24 75%, #14141a);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 0 60px rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: box-shadow 0.5s;
}
.disc.playing {
  box-shadow: 0 40px 110px rgba(255, 77, 46, 0.18), 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 0 80px rgba(255, 255, 255, 0.04);
}

.grooves {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 7px);
}
.disc.playing .grooves { animation: spin 14s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

.disc-core {
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 32% 30%, #ff7a5c, var(--accent) 55%, #d63a20);
  color: #0a0a0e;
  font-weight: 800;
  font-size: clamp(44px, 6vw, 64px);
  box-shadow: 0 10px 40px rgba(255, 77, 46, 0.35);
}

.eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 36px;
  margin-top: 26px;
}
.eq span {
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, #ff7a5c, var(--accent));
  opacity: 0.35;
  height: 30%;
  transform-origin: bottom;
}
.eq span:nth-child(2) { height: 55%; }
.eq span:nth-child(3) { height: 80%; }
.eq span:nth-child(4) { height: 100%; }
.eq span:nth-child(5) { height: 70%; }
.eq span:nth-child(6) { height: 45%; }
.eq span:nth-child(7) { height: 25%; }
.eq.playing span {
  opacity: 1;
  animation: eq 0.9s ease-in-out infinite alternate;
}
.eq.playing span:nth-child(1) { animation-delay: 0s; }
.eq.playing span:nth-child(2) { animation-delay: 0.12s; }
.eq.playing span:nth-child(3) { animation-delay: 0.24s; }
.eq.playing span:nth-child(4) { animation-delay: 0.06s; }
.eq.playing span:nth-child(5) { animation-delay: 0.3s; }
.eq.playing span:nth-child(6) { animation-delay: 0.18s; }
.eq.playing span:nth-child(7) { animation-delay: 0.27s; }

@keyframes eq {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}

.eyebrow {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.now h1 {
  margin: 10px 0 6px;
  font-size: clamp(26px, 4.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.artist {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
}

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

.controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.play {
  width: 76px;
  height: 76px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #0a0a0e;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s;
  box-shadow: 0 10px 30px rgba(255, 77, 46, 0.35);
}
.play svg { width: 30px; height: 30px; }
.play .i-pause { display: none; }
.play.is-playing .i-play { display: none; }
.play.is-playing .i-pause { display: block; }
.play:hover:not(:disabled) { transform: scale(1.05); }
.play:disabled {
  background: #26262e;
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}

.volume {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.volume-btn {
  display: grid;
  place-items: center;
  padding: 4px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}
.volume-btn:hover { color: var(--text); }
.volume-btn svg { width: 18px; height: 18px; }
.volume-btn .icon-muted { display: none; }
.volume-btn.muted .icon-sound { display: none; }
.volume-btn.muted .icon-muted { display: block; }
.volume-btn.muted { color: var(--accent); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 20px;
  background: transparent;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 80%), #2a2a33 var(--fill, 80%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text);
  border: none;
  margin-top: -5px;
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: #2a2a33;
}
input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}
input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text);
  border: none;
}

.ghost {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
}
.ghost:hover:not(:disabled) { border-color: var(--accent); }
.ghost:disabled { opacity: 0.45; cursor: not-allowed; }

.hint {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  max-width: 46ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.program-tz {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.program-block {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.program {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.program li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.program li:last-child { border-bottom: none; }

.seg-time {
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  min-width: 64px;
  white-space: nowrap;
}

.seg-name { flex: 1; color: var(--muted); }
.program li.current .seg-name { color: var(--text); }

.seg-now {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid rgba(255, 77, 46, 0.45);
  border-radius: 999px;
  padding: 2px 7px;
}

.card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.host-card {
  display: flex;
  gap: 16px;
  align-items: center;
}

.avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff7a5c, #a45bff);
  color: #0a0a0e;
  font-weight: 800;
  font-size: 20px;
}

.host-copy { min-width: 0; }
.host-copy h2 { margin: 2px 0 6px; font-size: 20px; }

.muted { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.45; }

.history {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.history li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}
.history li:last-child { border-bottom: none; }
.history .time {
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.history .empty { color: var(--muted); border-bottom: none; }

.call-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.call-card .ghost { margin-top: auto; }

footer {
  text-align: center;
  color: var(--faint);
  font-size: 12.5px;
  padding: 36px 0 44px;
  letter-spacing: 0.04em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 12px);
  background: #16161c;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 10;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 840px) {
  .stage {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 16px;
  }
  .disc { width: min(64vw, 300px); }
  .cards { grid-template-columns: 1fr; }
  .top { padding-top: 20px; }
  .listeners { display: none; }
  .controls { margin-top: 26px; }
  .ghost { padding: 11px 16px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
