:root {
  color-scheme: light;
  --page-bg: #111827;
  --ink: #111827;
  --muted: #667085;
  --panel: #ffffff;
  --line: #d8dee8;
  --audio: #7c3aed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.playerPage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.playerShell {
  width: min(560px, 100%);
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.brandHeader {
  min-height: 96px;
  display: grid;
  place-items: center;
}

.brandHeader img {
  max-width: min(360px, 100%);
  max-height: 120px;
  object-fit: contain;
}

#brandFallback {
  font-size: 26px;
  font-weight: 700;
}

.nowPlaying {
  text-align: center;
}

.nowPlaying p {
  margin: 0 0 8px;
  color: var(--audio);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nowPlaying span {
  display: block;
  color: var(--muted);
}

audio {
  width: 100%;
}

.streamList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.streamButton {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.streamButton.active {
  border-color: var(--audio);
  background: var(--audio);
  color: white;
}

.socialLinks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.socialLinks a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #111827;
  color: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.emptyState {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}
