/* ── Mini Player ──────────────────────────────────── */
.mini-player {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom));
  left: 0;
  width: 100%;
  z-index: var(--z-mini-player);
  background: rgba(12, 12, 14, 0.96);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border-top: 1px solid var(--border-medium);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.45);
  display: none;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-out);
}

.mini-player:active {
  transform: none;
}

.mini-player.visible {
  display: block;
}

.mini-player__content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  height: var(--mini-player-height);
}

.mini-player__art {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0,0,0,0.45);
}

.mini-player__info {
  flex: 1;
  min-width: 0;
}

.mini-player__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.mini-player__artist {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.mini-player__status {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-tertiary);
}

.mini-player__status[data-kind="ok"] {
  color: #86efac;
}

.mini-player__status[data-kind="wait"] {
  color: #fbbf24;
}

.mini-player__status[data-kind="bad"] {
  color: #fca5a5;
}

.mini-player__controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.mini-player__btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-out);
}

.mini-player__btn:active {
  transform: scale(0.9);
  color: var(--accent-primary);
}

.mini-player__progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 0 1px 1px 0;
  transition: width 1s linear;
}

/* ── Full Screen Player ───────────────────────────── */
.full-player {
  position: fixed;
  top: 0;
  left: 0;
  transform: translateY(100%);
  width: 100%;
  height: 100%;
  z-index: var(--z-full-player);
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-slow) var(--ease-out);
  overflow: hidden;
}

.full-player.open {
  transform: translateY(0);
}

@media (min-width: 900px) {
  .full-player {
    left: 0;
    transform: translateY(100%);
  }

  .full-player.open {
    transform: translateY(0);
  }
}

/* Background blur art */
.full-player__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.full-player__bg-image {
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  object-fit: cover;
  filter: blur(60px) saturate(1.2) brightness(0.3);
  opacity: 0.6;
  transition: opacity var(--duration-slower) var(--ease-out);
}

.full-player__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.5) 0%,
    rgba(10, 10, 15, 0.7) 50%,
    rgba(10, 10, 15, 0.95) 100%
  );
}

/* Header */
.full-player__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  padding-top: calc(var(--safe-top) + var(--space-4));
}

.full-player__dismiss {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.full-player__dismiss:active {
  transform: scale(0.9);
  color: var(--text-primary);
}

.full-player__context {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.full-player__menu {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
}

/* Album Art */
.full-player__artwork {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.full-player__art-container {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), var(--shadow-glow);
  transition: transform var(--duration-slower) var(--ease-spring);
}

.full-player__art-container:active {
  transform: scale(0.98);
}

.full-player__art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-tertiary);
}

/* Album art breathing animation when playing */
@keyframes artBreathe {
  0%, 100% { transform: scale(1); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow); }
  50% { transform: scale(1.02); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 40px var(--accent-glow-strong); }
}

.full-player__art-container.playing {
  animation: artBreathe 4s ease-in-out infinite;
}

.full-player__art-container.paused {
  animation: none;
  transform: scale(0.96);
  transition: transform 0.6s var(--ease-out);
}

/* Track Info */
.full-player__info {
  position: relative;
  z-index: 1;
  padding: 0 var(--space-6);
  margin-bottom: var(--space-4);
}

.full-player__track-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.full-player__artist-name {
  font-size: var(--text-base);
  color: var(--text-secondary);
}

/* Progress Bar */
.full-player__progress {
  position: relative;
  z-index: 1;
  padding: 0 var(--space-6);
  margin-bottom: var(--space-3);
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  touch-action: none;
}

.progress-bar__fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 2px;
  position: relative;
  transition: width 0.2s linear;
}

.progress-bar__thumb {
  position: absolute;
  right: -6px;
  top: -4px;
  width: 12px;
  height: 12px;
  background: var(--text-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--duration-fast) var(--ease-out);
}

.progress-bar:hover .progress-bar__thumb,
.progress-bar.dragging .progress-bar__thumb {
  opacity: 1;
  transform: scale(1);
}

.progress-bar.dragging {
  height: 6px;
}

.progress-bar__times {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

/* Controls */
.full-player__controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: 0 var(--space-6);
  margin-bottom: var(--space-4);
}

.player-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-out);
}

.player-btn:active {
  transform: scale(0.88);
}

.player-btn--secondary {
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
}

.player-btn--secondary.active {
  color: var(--accent-primary);
}

.player-btn--prev,
.player-btn--next {
  width: 44px;
  height: 44px;
}

.player-btn--play {
  width: 64px;
  height: 64px;
  background: var(--accent-gradient);
  border-radius: 50%;
  color: #000;
  box-shadow: var(--shadow-glow-strong);
  transition: all var(--duration-fast) var(--ease-spring);
}

.player-btn--play:active {
  transform: scale(0.9);
  box-shadow: var(--shadow-glow);
}

/* Extras row */
.full-player__extras {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  padding-bottom: calc(var(--safe-bottom) + var(--space-6));
}

.full-player__volume {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 38%;
}

.full-player__extra-btns {
  display: flex;
  align-items: center;
  gap: 0;
}

.extra-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text-tertiary);
  transition: all var(--duration-fast);
}

.extra-btn:active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.08);
}

.extra-btn.active {
  color: var(--accent-primary);
}

/* ── Volume Slider ────────────────────────────────── */
.volume-slider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-6);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.volume-slider__track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.volume-slider__fill {
  height: 100%;
  background: var(--text-secondary);
  border-radius: 2px;
}

.volume-slider__icon {
  color: var(--text-tertiary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Lyrics Sheet ────────────────────────────────── */
.full-player__lyrics-sheet {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(15, 15, 20, 0.65);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
  padding-top: calc(var(--safe-top) + var(--space-4));
}

.full-player__lyrics-sheet.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.lyrics-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6) var(--space-4);
}

.lyrics-sheet__header h3 {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.lyrics-sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--space-6) calc(var(--safe-bottom) + 120px);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  scrollbar-width: none; /* Firefox */
  overscroll-behavior: contain;
}

.lyrics-sheet__body::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.lyrics-line {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s ease, transform 0.3s ease;
  filter: blur(0.5px);
}

.lyrics-line:hover {
  color: #fff;
  filter: blur(0);
  transform: scale(1.02);
  transform-origin: left center;
}

.lyrics-placeholder {
  font-size: 18px;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 40px;
  font-weight: bold;
}

/* ── Queue Sheet ────────────────────────────────── */
.full-player__queue-sheet {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.98);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
  padding-top: calc(var(--safe-top) + var(--space-4));
}

.full-player__queue-sheet.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.queue-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6) var(--space-4);
}

.queue-sheet__header h3 {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.queue-sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--space-6) calc(var(--safe-bottom) + 120px);
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.queue-sheet__body::-webkit-scrollbar {
  display: none;
}

/* Queue List styling matching standard lists */
.queue-list-item {
  display: flex;
  align-items: center;
  padding: var(--space-3) 0;
  gap: var(--space-4);
  cursor: pointer;
  transition: opacity var(--duration-fast);
}

.queue-list-item.active {
  color: var(--accent-primary);
}

.queue-list-item.active .queue-list-item__title {
  color: var(--accent-primary);
}

.queue-list-item:active {
  opacity: 0.7;
}

.queue-list-item__thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--bg-hover);
}

.queue-list-item__info {
  flex: 1;
  min-width: 0;
}

.queue-list-item__title {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.queue-list-item__artist {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Queue drag handle */
.queue-list-item__drag {
  cursor: grab;
  color: var(--text-tertiary);
  padding: var(--space-2);
  flex-shrink: 0;
  touch-action: none;
}

.queue-list-item__drag:active {
  cursor: grabbing;
}

.queue-list-item.dragging {
  opacity: 0.5;
  background: var(--bg-elevated);
}

.queue-list-item.drag-over {
  border-top: 2px solid var(--accent-primary);
}

/* ════════════════════════════════════════════════════
   SLEEP TIMER SHEET
   ════════════════════════════════════════════════════ */
.full-player__sleep-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  max-height: 70vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  z-index: 2;
  border-top: 1px solid var(--border-medium);
}

.full-player__sleep-sheet.open {
  transform: translateY(0);
}

.sleep-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.sleep-sheet__header h3 {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  font-family: var(--font-heading);
  margin: 0;
}

.sleep-sheet__body {
  padding: var(--space-4) var(--space-6) var(--space-8);
}

.sleep-timer-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.sleep-option {
  padding: var(--space-4);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--duration-fast);
  text-align: center;
}

.sleep-option:hover {
  background: var(--surface-glass-hover);
  border-color: var(--accent-primary);
}

.sleep-option.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.sleep-option--cancel {
  grid-column: 1 / -1;
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.sleep-option--cancel:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--danger);
}

.sleep-timer-status {
  margin-top: var(--space-4);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Sleep timer badge on button */
.sleep-timer-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  color: var(--bg-primary);
  font-size: 8px;
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.extra-btn {
  position: relative;
}

/* ════════════════════════════════════════════════════
   ERROR RECOVERY (Mini Player)
   ════════════════════════════════════════════════════ */
.mini-player__error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  background: rgba(239, 68, 68, 0.12);
  border-top: 1px solid rgba(239, 68, 68, 0.3);
  animation: fadeIn var(--duration-fast) var(--ease-out);
}

.mini-player__error-text {
  font-size: var(--text-xs);
  color: var(--danger);
  font-weight: var(--weight-medium);
}

.mini-player__error-actions {
  display: flex;
  gap: var(--space-2);
}

.mini-player__error-btn {
  min-height: 44px;
  min-width: 44px;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--duration-fast);
  border: 1px solid var(--border-medium);
  background: var(--surface-glass);
  color: var(--text-primary);
}

.mini-player__error-btn:first-child {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

.mini-player__error-btn:hover {
  opacity: 0.85;
}

/* ════════════════════════════════════════════════════
   PWA INSTALL BANNER
   ════════════════════════════════════════════════════ */
.pwa-install-banner {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + var(--space-3));
  left: var(--space-4);
  right: var(--space-4);
  max-width: calc(var(--content-max-width) - var(--space-8));
  margin: 0 auto;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
  animation: slideUpFade 0.4s var(--ease-spring);
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pwa-install-banner__content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pwa-install-banner__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.pwa-install-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pwa-install-banner__text strong {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.pwa-install-banner__text span {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.pwa-install-banner__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
}

.pwa-install-banner__dismiss {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: var(--weight-medium);
}

.pwa-install-banner__install {
  padding: var(--space-2) var(--space-5) !important;
  font-size: var(--text-xs) !important;
}

/* ════════════════════════════════════════════════════
   PLAY SIMILAR CARD (mini player overlay)
   ════════════════════════════════════════════════════ */
.play-similar-card {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--mini-player-height) + var(--safe-bottom) + var(--space-3));
  left: var(--space-4);
  right: var(--space-4);
  max-width: calc(var(--content-max-width) - var(--space-8));
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  z-index: 250;
  animation: slideUpFade 0.4s var(--ease-spring);
  box-shadow: var(--shadow-lg);
}

.play-similar-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.play-similar-card__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.play-similar-card__close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: var(--space-1);
}

.play-similar-card__tracks {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.play-similar-track {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--duration-fast);
}

.play-similar-track:hover {
  background: var(--surface-glass-hover);
}

.play-similar-track__thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.play-similar-track__info {
  flex: 1;
  min-width: 0;
}

.play-similar-track__name {
  font-size: var(--text-sm);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.play-similar-track__artist {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.play-similar-card__action {
  margin-top: var(--space-3);
  width: 100%;
  padding: var(--space-3);
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: opacity var(--duration-fast);
}

.play-similar-card__action:hover {
  opacity: 0.9;
}

/* ════════════════════════════════════════════════════
   THREE-DOTS POPOVER MENU
   ════════════════════════════════════════════════════ */
.player-popover {
  position: absolute;
  top: 60px;
  right: var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: var(--space-2) 0;
  min-width: 200px;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  animation: fadeScale 0.15s var(--ease-out);
}

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.95) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.player-popover__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--duration-fast);
}

.player-popover__item:hover {
  background: var(--surface-glass-hover);
}

.player-popover__item svg {
  flex-shrink: 0;
  color: var(--text-tertiary);
}

.player-popover__badge {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  background: var(--surface-glass);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.player-popover__badge.active {
  color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.15);
}

/* ════════════════════════════════════════════════════
   CROSSFADE CONTROLS
   ════════════════════════════════════════════════════ */
.crossfade-control {
  padding: var(--space-2) 0;
}

.crossfade-control__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.crossfade-control__value {
  font-weight: var(--weight-semibold);
  color: var(--accent-primary);
}

.crossfade-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--bg-hover);
  outline: none;
  cursor: pointer;
}

.crossfade-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-glow);
  cursor: grab;
}

.crossfade-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: none;
  cursor: grab;
}

.crossfade-control__labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ════════════════════════════════════════════════════
   EQUALIZER
   ════════════════════════════════════════════════════ */
.eq-presets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.eq-preset {
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.eq-preset:hover {
  background: var(--surface-glass-hover);
  border-color: var(--text-tertiary);
}

.eq-preset.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.eq-bars {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: var(--space-6);
  height: 140px;
  padding: var(--space-4) var(--space-8);
}

.eq-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
}

.eq-bar {
  -webkit-appearance: none;
  appearance: none;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 6px;
  height: 100px;
  background: var(--bg-hover);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

.eq-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-glow);
  cursor: grab;
}

.eq-bar::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: none;
  cursor: grab;
}

.eq-bar-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-align: center;
}

/* ════════════════════════════════════════════════════
   PULL-TO-REFRESH
   ════════════════════════════════════════════════════ */
.pull-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0;
  overflow: hidden;
  transition: height 0.2s ease;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  gap: var(--space-2);
}

.pull-indicator.active {
  height: 48px;
}

.pull-indicator__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-medium);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

@media (min-width: 900px) {
  .mini-player {
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    bottom: 0;
    padding-bottom: 0;
  }

  .pwa-install-banner {
    bottom: var(--space-4);
    left: calc(var(--sidebar-width) + var(--space-4));
  }

  body.has-mini-player .pwa-install-banner {
    bottom: calc(var(--mini-player-height) + var(--space-4));
  }
}
