@font-face {
  font-family: 'Rooyin Free';
  src: url('/fonts/RooyinFree-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Rooyin Free';
  src: url('/fonts/RooyinFree-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #07090b;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f6f5;
  --muted: #8a939c;
  --muted-strong: #c3cad1;
  --accent: #34d399;
  --accent-soft: rgba(52, 211, 153, 0.12);
  --accent-2: #22d3ee;
  --accent-ink: #032318;
  --warn: #fbbf24;
  --danger: #fb7185;
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 200ms var(--ease);

  /* Driven by player.js */
  --beat-intensity: 0;
  --beat-shift: 0px;
  --beat-glow: 0.2;
  --band-low: 0;
  --band-mid: 0;
  --band-high: 0;
  --rhythm-hit: 0;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  font-family:
    'Rooyin Free',
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ───────── Ambient, beat-reactive background ───────── */

body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  transition:
    transform 120ms linear,
    opacity 120ms linear;
}

body::before {
  top: -30vmax;
  left: -20vmax;
  width: 70vmax;
  height: 70vmax;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.34), transparent 62%);
  opacity: calc(0.55 + var(--band-low) * 0.6 + var(--rhythm-hit) * 0.25);
  transform: translate3d(calc(var(--band-mid) * -16px), var(--beat-shift), 0)
    scale(calc(1 + var(--band-low) * 0.28 + var(--rhythm-hit) * 0.1));
}

body::after {
  right: -28vmax;
  bottom: -34vmax;
  width: 80vmax;
  height: 80vmax;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 62%);
  opacity: calc(0.5 + var(--band-high) * 0.6 + var(--rhythm-hit) * 0.2);
  transform: translate3d(calc(var(--band-high) * 18px), calc(var(--beat-shift) * -0.8), 0)
    scale(calc(1 + var(--band-high) * 0.24 + var(--rhythm-hit) * 0.08));
}

body.visualizer-lite::before,
body.visualizer-lite::after {
  transition:
    transform 220ms linear,
    opacity 220ms linear;
}

body.visualizer-off::before,
body.visualizer-off::after {
  transform: none;
  transition: none;
}

/* ───────── Shell & top bar ───────── */

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 20px 32px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
}

.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 20px rgba(52, 211, 153, 0.3);
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.stations {
  display: flex;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}

.stations::-webkit-scrollbar {
  display: none;
}

.station-chip {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.86rem;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.station-chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.station-chip[aria-current='page'] {
  color: var(--accent-ink);
  font-weight: 700;
  border-color: transparent;
  background: var(--accent);
}

.install-button {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 16px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-strong);
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition);
}

.install-button:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.install-button:disabled {
  cursor: default;
  opacity: 0.6;
}

/* ───────── Player card ───────── */

.player {
  position: relative;
  width: 100%;
  padding: 28px 32px 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(22, 26, 30, 0.78), rgba(11, 13, 16, 0.82));
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: box-shadow 160ms linear;
}

/* Blurred cover art behind the card */
.player {
  isolation: isolate;
  overflow: hidden;
}

.player > :not(.player-backdrop) {
  position: relative;
}

.player-backdrop {
  position: absolute;
  inset: -40px;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: blur(60px) saturate(160%);
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 900ms var(--ease);
  pointer-events: none;
}

.player-backdrop.is-visible {
  opacity: 0.32;
}

.player-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 16, 0.2), rgba(11, 13, 16, 0.75));
}

body.beat-reactive:not(.visualizer-lite) .player {
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 calc(20px + var(--beat-glow) * 50px) rgba(52, 211, 153, calc(0.06 + var(--band-low) * 0.16));
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.on-air {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.8rem;
  white-space: nowrap;
}

.meta-pill svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

#listenersCount {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mix-pill {
  color: var(--accent);
  border-color: rgba(52, 211, 153, 0.25);
}

.player.is-mixing .mix-pill {
  background: var(--accent-soft);
  animation: mix-glow 1.2s ease-in-out infinite;
}

@keyframes mix-glow {
  50% {
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
  }
}

.status-dot,
.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  color: var(--danger);
  background: currentColor;
}

.status-dot::after,
.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: currentColor;
  animation: ping 1.8s var(--ease) infinite;
}

.status-pill[data-state='connected'] .status-dot,
.player.is-playing .live-dot {
  color: var(--accent);
}

.status-pill[data-state='loading'] .status-dot {
  color: var(--warn);
}

.status-pill[data-state='connected'] {
  color: var(--text);
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  80%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.player-body {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 44px;
  margin-top: 28px;
}

/* ───────── Vinyl artwork ───────── */

.artwork {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  transform: scale(calc(1 + var(--rhythm-hit) * 0.018));
  transition: transform 120ms linear;
}

.artwork-halo {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.35), rgba(34, 211, 238, 0.12) 45%, transparent 70%);
  opacity: calc(0.25 + var(--band-low) * 0.75);
  transform: scale(calc(0.92 + var(--band-low) * 0.16));
  transition:
    opacity 140ms linear,
    transform 140ms linear;
}

.vinyl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 30%, rgba(0, 0, 0, 0.35) 31%, transparent 32%),
    repeating-radial-gradient(circle, #0b0c0f 0 1.5px, #16181d 1.5px 3px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 10px #0a0b0d;
  animation: spin 5s linear infinite;
  animation-play-state: paused;
}

.artwork::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(
    from 20deg,
    transparent 0 8%,
    rgba(255, 255, 255, 0.09) 13%,
    transparent 20% 55%,
    rgba(255, 255, 255, 0.06) 62%,
    transparent 70%
  );
}

.player.is-playing .vinyl {
  animation-play-state: running;
}

.vinyl-label {
  position: absolute;
  inset: 32%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(3, 35, 24, 0.75);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.12);
}

.vinyl-label svg {
  width: 34%;
  height: 34%;
}

/* Cover art printed on the record label */
.vinyl-label {
  overflow: hidden;
  transition: inset 600ms var(--ease);
}

.vinyl-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 600ms var(--ease);
}

.artwork.has-cover .vinyl-label {
  inset: 17%;
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.55),
    0 0 0 5px rgba(255, 255, 255, 0.05);
}

.artwork.has-cover .vinyl-cover {
  opacity: 1;
}

/* Spindle hole */
.vinyl-label::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9%;
  height: 9%;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 600ms var(--ease);
}

.artwork.has-cover .vinyl-label::after {
  opacity: 1;
}

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

/* ───────── Track info ───────── */

.player-main {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.track-kicker {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.track-name {
  margin: 8px 0 10px;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.track-metadata {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted-strong);
  font-size: 0.98rem;
}

.track-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}

.track-tag {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.74rem;
}

.metadata-separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.6;
}

/* ───────── Progress & visualizer ───────── */

.progress-panel {
  display: grid;
  gap: 10px;
}

.linear-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
}

.linear-visualizer-bar {
  --bar-level: 0.06;
  --bar-glow: 0;
  flex: 1;
  min-width: 0;
  height: calc(6% + var(--bar-level) * 94%);
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(0deg, var(--accent), var(--accent-2));
  opacity: calc(0.28 + var(--bar-level) * 0.72);
  transition:
    height 110ms ease-out,
    opacity 110ms ease-out;
}

.progress-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
  transition: width 500ms linear;
}

.is-loading .progress-fill {
  animation: loading-bar 1.4s infinite ease-in-out;
}

@keyframes loading-bar {
  0%,
  100% {
    width: 10%;
    opacity: 0.35;
  }
  50% {
    width: 65%;
    opacity: 0.8;
  }
}

.progress-time {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

/* ───────── Controls ───────── */

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.transport {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.play-toggle {
  flex: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:
    0 12px 30px rgba(52, 211, 153, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

.play-toggle:hover {
  transform: scale(1.05);
  box-shadow:
    0 16px 40px rgba(52, 211, 153, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.play-toggle:active {
  transform: scale(0.96);
}

.play-toggle:disabled {
  cursor: wait;
  transform: none;
  opacity: 0.85;
}

.button-icon {
  display: grid;
  place-items: center;
}

.button-icon svg {
  width: 28px;
  height: 28px;
}

.button-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.5px solid rgba(3, 35, 24, 0.25);
  border-top-color: var(--accent-ink);
  animation: spin 0.8s linear infinite;
}

.transport-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.transport-status {
  font-weight: 700;
  font-size: 0.95rem;
}

.track-transition {
  color: var(--muted);
  font-size: 0.82rem;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.track-transition.is-changing {
  opacity: 0.5;
  transform: translateY(-2px);
}

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

.volume-icon {
  flex: none;
  width: 18px;
  height: 18px;
}

.volume-slider {
  --volume: 75%;
  flex: 1;
  min-width: 0;
  height: 20px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--text) var(--volume), rgba(255, 255, 255, 0.12) var(--volume));
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition);
}

.volume-slider:hover::-webkit-slider-thumb {
  transform: scale(1.2);
}

.volume-slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.volume-slider::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--text);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.volume-value {
  min-width: 38px;
  text-align: right;
  font-size: 0.82rem;
  color: var(--muted-strong);
  font-variant-numeric: tabular-nums;
}

/* ───────── Queue ───────── */

.queue {
  margin-top: 30px;
}

.queue-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}

.queue-thumb {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, #0b0c0f 18%, transparent 19%),
    repeating-radial-gradient(circle, #111317 0 1.5px, #1a1d22 1.5px 3px);
}

.queue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.queue-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.queue-item.is-current {
  border-color: rgba(52, 211, 153, 0.28);
  background: var(--accent-soft);
}

.queue-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.is-current .queue-label {
  color: var(--accent);
}

.queue-duration {
  margin-left: auto;
  letter-spacing: 0;
  color: var(--muted-strong);
  font-variant-numeric: tabular-nums;
}

.queue-title {
  overflow: hidden;
  font-size: 0.94rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted-strong);
}

.is-current .queue-title {
  color: var(--text);
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.eq i {
  width: 2px;
  height: 30%;
  border-radius: 1px;
  background: currentColor;
}

.player.is-playing .eq i {
  animation: eq 900ms ease-in-out infinite;
}

.player.is-playing .eq i:nth-child(2) {
  animation-delay: -300ms;
}

.player.is-playing .eq i:nth-child(3) {
  animation-delay: -600ms;
}

@keyframes eq {
  0%,
  100% {
    height: 30%;
  }
  50% {
    height: 100%;
  }
}

/* ───────── Footer ───────── */

.player-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-link {
  color: var(--muted-strong);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--accent);
}

/* ───────── Responsive ───────── */

@media (max-width: 820px) {
  .player {
    padding: 22px 20px 18px;
  }

  .player-body {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 22px;
  }

  .artwork {
    width: min(64vw, 260px);
    margin: 0 auto;
  }

  .track-copy {
    text-align: center;
  }

  .track-metadata,
  .track-tags {
    justify-content: center;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .transport {
    justify-content: center;
  }

  .volume {
    width: 100%;
  }

  .queue-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding-left: 16px;
    padding-right: 16px;
    gap: 14px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'brand install'
      'stations stations';
    gap: 12px;
  }

  .brand {
    grid-area: brand;
  }

  .install-button {
    grid-area: install;
  }

  .stations {
    grid-area: stations;
    justify-content: flex-start;
    margin: 0 -4px;
  }

  .player {
    padding: 18px 16px 16px;
    border-radius: 22px;
  }

  .header-meta .meta-pill span:last-child {
    display: none;
  }

  .linear-visualizer {
    height: 30px;
    gap: 3px;
  }

  .queue {
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .artwork,
  .artwork-halo {
    transition: none;
    transform: none;
  }

  .vinyl,
  .player.is-mixing .mix-pill,
  .status-dot::after,
  .live-dot::after,
  .player.is-playing .eq i {
    animation: none;
  }
}

/* ───────── PWA splash ───────── */

.pwa-splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--bg);
  color: var(--text);
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.pwa-splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-content {
  text-align: center;
  animation: pulse-splash 2s infinite ease-in-out;
}

.splash-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.splash-title {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.splash-author {
  font-size: 1.1rem;
  color: var(--muted);
}

.splash-author a {
  text-decoration: none;
}

@keyframes pulse-splash {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}
