*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0f0f13;
  --surface: #1a1a24;
  --border:  #2a2a38;
  --accent:  #f97316;
  --text:    #f0f0f5;
  --muted:   #7777a0;
  --green:   #22c55e;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Header ── */
.header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo { width: 48px; height: 48px; flex-shrink: 0; }
.logo svg { width: 100%; height: 100%; }

.station-info { flex: 1; }
.station-info h1 { font-size: 18px; font-weight: 700; }
.station-info p  { font-size: 12px; color: var(--muted); margin-top: 2px; }

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.4s, box-shadow 0.4s;
}
.status-dot.live {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: blink 1.8s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── Now Playing ── */
.now-playing {
  display: flex;
  align-items: center;
  gap: 20px;
}

.disc {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #1a1a24 0%, #252535 25%, #1a1a24 50%, #252535 75%, #1a1a24 100%);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.disc.spin { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.disc-center {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(249,115,22,.5);
}

.track { flex: 1; min-width: 0; }

.label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.title {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Controls ── */
.controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

button#play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(249,115,22,.4);
  transition: transform .15s, box-shadow .15s;
}
button#play-btn svg { width: 24px; height: 24px; }
button#play-btn:hover { transform: scale(1.07); box-shadow: 0 6px 22px rgba(249,115,22,.55); }
button#play-btn:active { transform: scale(.95); }

.volume {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.volume svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.listeners {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.listeners svg { width: 14px; height: 14px; }
