:root {
  color-scheme: dark;
  --bg: #111314;
  --panel: #202326;
  --panel-soft: #2b2f33;
  --text: #f4f0e8;
  --muted: #bbb2a6;
  --line: #3d4145;
  --accent: #e6b451;
  --accent-strong: #f05d48;
  --green: #66d19e;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(230, 180, 81, 0.18), transparent 32rem),
    linear-gradient(135deg, #111314 0%, #191d1f 52%, #271c19 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

.player-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.station {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
}

.station-art {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.signal-ring {
  position: absolute;
  width: 270px;
  aspect-ratio: 1;
  border: 2px solid rgba(230, 180, 81, 0.36);
  border-radius: 50%;
  animation: pulse 2.9s linear infinite;
}

.delay-one {
  animation-delay: 1.1s;
}

.disc {
  width: 210px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, #111314 0 14%, transparent 15%),
    repeating-radial-gradient(circle, #303236 0 7px, #202326 8px 13px);
  border: 8px solid #101112;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  animation: spin 10s linear infinite;
}

.disc span {
  width: 74px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #1b1510;
  font-weight: 900;
  letter-spacing: 0;
}

.station-panel {
  background: rgba(32, 35, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.status {
  min-height: 1.5em;
  color: var(--muted);
}

.now-playing {
  display: grid;
  gap: 5px;
  padding: 16px;
  margin: 24px 0 18px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.label {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

#trackTitle {
  min-height: 1.45em;
  overflow-wrap: anywhere;
}

.controls,
.progress-row,
.volume-row {
  display: flex;
  align-items: center;
}

.controls {
  gap: 14px;
  justify-content: center;
  margin-bottom: 18px;
}

.controls button {
  width: 48px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #16181a;
  color: var(--text);
  cursor: pointer;
}

.controls button:hover {
  border-color: var(--accent);
}

.controls .primary {
  width: 68px;
  background: var(--accent-strong);
  border-color: transparent;
}

.controls svg,
.volume-row svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.progress-row {
  gap: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.progress-row span {
  width: 44px;
  text-align: center;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.volume-row {
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
}

.playlist {
  max-height: 210px;
  overflow: auto;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}

.playlist button {
  width: 100%;
  padding: 12px 4px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  overflow-wrap: anywhere;
}

.playlist button:hover,
.playlist button.active {
  color: var(--text);
}

.playlist button.active::before {
  content: "";
  display: inline-block;
  width: 8px;
  aspect-ratio: 1;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
}

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

@keyframes pulse {
  from {
    opacity: 0.85;
    transform: scale(0.72);
  }
  to {
    opacity: 0;
    transform: scale(1.6);
  }
}

@media (max-width: 760px) {
  .player-shell {
    padding: 16px;
  }

  .station {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .station-art {
    min-height: 220px;
  }

  .disc {
    width: 150px;
  }

  .signal-ring {
    width: 190px;
  }

  .station-panel {
    padding: 20px;
  }
}
