/* ── Reset & Base ──────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0a0a14;
  --bg-secondary: #12081e;
  --bg-surface: #1a1024;
  --bg-hover: #ffffff08;
  --bg-active: #c050c010;
  --bg-expanded: #0e0e1a;

  --accent-primary: #c050c0;
  --accent-secondary: #5080e0;
  --accent-violet: #c77dff;
  --accent-cyan: #00d4ff;
  --accent-gradient: linear-gradient(90deg, #c050c0, #5080e0);
  --accent-glow: #c050c040;
  --accent-glow-strong: #c050c060;

  --color-suno: #4ecdc4;
  --color-el: #ff8c42;
  --color-fav: #ffd700;

  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --text-dim: #666666;

  --border-subtle: #ffffff10;
  --border-accent: #c050c020;
  --now-playing-bg: linear-gradient(90deg, #c050c010, transparent);
  --now-playing-border: var(--accent-primary);

  --player-bar-height: 90px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 24px;
  --radius-full: 50%;

  --font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Header Banner ─────────────────────────────────────────────────────── */
.prototype-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: linear-gradient(90deg, #c77dff18, #00d4ff10, #c77dff18);
  border-bottom: 1px solid #c77dff30;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
}
.prototype-banner__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent-violet);
  text-transform: uppercase;
}
.prototype-banner__subtitle {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-subtle);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg-primary);
  backdrop-filter: blur(10px);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__title {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
}
.nav__link {
  color: #888;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.nav__link:hover {
  color: var(--text-secondary);
}
.nav__link--active {
  color: var(--accent-primary);
}

/* ── Background glow ───────────────────────────────────────────────────── */
.standalone-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.layout {
  display: flex;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  padding: 12px;
  background: var(--bg-secondary);
  position: fixed;
  top: 56px;
  left: 0;
  bottom: var(--player-bar-height);
  z-index: 50;
}
.sidebar__title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  padding: 4px 8px 10px;
}
.sidebar__album {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 6px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition:
    background var(--transition-fast),
    border-left-color var(--transition-fast);
}
.sidebar__album:hover {
  background: var(--bg-hover);
}
.sidebar__album--active {
  background: var(--now-playing-bg);
  border-left-color: var(--accent-primary);
}
.sidebar__album-art {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-dim);
}
.sidebar__album-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sidebar__album-title {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar__album--active .sidebar__album-title {
  color: var(--text-primary);
}
.sidebar__album-meta {
  font-size: 10px;
  color: var(--text-dim);
}

/* ── Main content ───────────────────────────────────────────────────────── */
.main {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  padding-top: 80px;
  padding-bottom: calc(var(--player-bar-height) + 24px);
  margin-left: 220px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* ── Album Header ───────────────────────────────────────────────────────── */
.album-header {
  display: flex;
  gap: 24px;
  padding: 32px 0 24px;
  align-items: flex-end;
}
.album-header__art {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--text-dim);
  box-shadow:
    0 8px 40px var(--accent-glow),
    0 0 1px var(--accent-glow-strong);
}
.album-header__info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
.album-header__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
}
.album-header__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.album-header__artist {
  font-size: 13px;
  color: var(--accent-primary);
}
.album-header__meta {
  font-size: 11px;
  color: var(--text-dim);
}
.album-header__desc {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
  max-width: 500px;
  margin-top: 4px;
}
.album-header__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.btn-primary {
  background: linear-gradient(90deg, var(--accent-primary), #8040d0);
  color: var(--text-primary);
  border: none;
  padding: 8px 28px;
  border-radius: var(--radius-lg);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.btn-primary:hover {
  transform: scale(1.03);
}
.btn-secondary {
  background: none;
  border: 1px solid var(--border-accent);
  color: var(--accent-primary);
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  font-size: 12px;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.btn-secondary:hover {
  border-color: var(--accent-primary);
}

/* ── Platform Filter ───────────────────────────────────────────────────── */
.platform-filter {
  display: flex;
  gap: 6px;
  margin: 16px 0 4px;
  align-items: center;
}
.platform-filter__label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-right: 4px;
  flex-shrink: 0;
}
.platform-filter__btn {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid #2a2a4a;
  color: var(--text-muted);
  background: transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-family: var(--font-family);
}
.platform-filter__btn:hover {
  border-color: #555;
  color: var(--text-secondary);
}
.platform-filter__btn--active {
  border-color: var(--accent-violet);
  color: var(--accent-violet);
  background: #c77dff15;
}
.platform-filter__btn--suno.platform-filter__btn--active {
  border-color: var(--color-suno);
  color: var(--color-suno);
  background: #4ecdc415;
}
.platform-filter__btn--el.platform-filter__btn--active {
  border-color: var(--color-el);
  color: var(--color-el);
  background: #ff8c4215;
}

/* ── Tracklist ──────────────────────────────────────────────────────────── */
.tracklist {
  margin-top: 8px;
}

.tracklist__header {
  display: flex;
  align-items: center;
  padding: 6px 4px 10px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  user-select: none;
}
.tracklist__col--num {
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.tracklist__col--title {
  flex: 1;
  min-width: 0;
}
.tracklist__col--rating {
  width: 120px;
  flex-shrink: 0;
}
.tracklist__col--variants {
  width: 80px;
  text-align: center;
  flex-shrink: 0;
}
.tracklist__col--lore {
  width: 200px;
  flex-shrink: 0;
}
.tracklist__col--duration {
  width: 48px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Track Row ──────────────────────────────────────────────────────────── */
.track {
  display: flex;
  align-items: center;
  padding: 10px 4px;
  gap: 12px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-left-color var(--transition-fast);
  user-select: none;
}
.track:hover {
  background: var(--bg-hover);
}
.track--active {
  background: var(--now-playing-bg);
  border-left-color: var(--now-playing-border);
}

.track__number {
  width: 32px;
  text-align: center;
  font-size: 10px;
  color: var(--text-dim);
  flex-shrink: 0;
}
.track--active .track__number {
  color: var(--accent-primary);
}
.track__number-play {
  display: none;
}
.track:hover .track__number-text {
  display: none;
}
.track:hover .track__number-play {
  display: inline;
}
.track--active .track__number-text {
  display: none;
}
.track--active .track__number-play {
  display: inline;
}

.track__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.track__title {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition-fast);
}
.track--active .track__title {
  color: var(--text-primary);
}
.track__artist {
  font-size: 11px;
  color: var(--text-dim);
}

.track__variants-badge {
  width: 80px;
  text-align: center;
  flex-shrink: 0;
}
.track__variants-badge-inner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #c77dff15;
  color: var(--accent-violet);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.track__variants-badge-inner:hover {
  background: #c77dff25;
}
.track__variants-badge-chevron {
  font-size: 8px;
  transition: transform var(--transition-fast);
  display: inline-block;
}
.track__variants-badge-chevron.expanded {
  transform: rotate(90deg);
}

.track__lore {
  width: 200px;
  flex-shrink: 0;
  font-size: 10px;
  color: var(--text-dim);
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track__duration {
  width: 48px;
  text-align: right;
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Expanded Variants Panel ───────────────────────────────────────────── */
.variants-panel {
  background: var(--bg-expanded);
  border-left: 2px solid var(--accent-violet);
  margin: 0 0 0 32px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.variants-panel.expanded {
  max-height: 2000px;
}
.variants-panel__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 4px;
}
.variants-panel__play-all {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid var(--accent-violet);
  color: var(--accent-violet);
  background: #c77dff10;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
  font-weight: 600;
}
.variants-panel__play-all:hover {
  background: #c77dff25;
}
.variants-panel__group-label {
  padding: 6px 16px 2px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
}
.variants-panel__group-label--suno {
  color: var(--color-suno);
}
.variants-panel__group-label--el {
  color: var(--color-el);
}

.variant-row {
  display: flex;
  align-items: center;
  padding: 7px 16px;
  font-size: 12px;
  cursor: pointer;
  transition: background var(--transition-fast);
  gap: 10px;
}
.variant-row:hover {
  background: #1a1a2e;
}
.variant-row.playing {
  background: #1e1035;
}
.variant-row.filtered-out {
  display: none;
}

.variant-row__play {
  width: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 10px;
  flex-shrink: 0;
}
.variant-row.playing .variant-row__play {
  color: var(--accent-violet);
}

.variant-row__platform {
  width: 80px;
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.variant-row__platform--suno {
  color: var(--color-suno);
}
.variant-row__platform--el {
  color: var(--color-el);
}

.variant-row__label {
  flex: 1;
  color: var(--text-secondary);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.variant-row__badge {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.variant-row__badge--fav {
  background: #ffd70020;
  color: var(--color-fav);
}

.variant-row__duration {
  width: 48px;
  text-align: right;
  font-size: 11px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.variants-divider {
  height: 1px;
  background: #ffffff08;
  margin: 2px 16px;
}

/* Sync pulse animation */
@keyframes syncPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
  50% {
    box-shadow: 0 0 8px 2px #c77dff40;
  }
}
.variant-row.synced {
  animation: syncPulse 0.6s ease;
}

/* ── Player Bar ─────────────────────────────────────────────────────────── */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: var(--player-bar-height);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-accent);
  display: flex;
  flex-direction: column;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.player-bar__top {
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 72px;
  gap: 16px;
}

/* Now playing -- left */
.player-bar__now-playing {
  flex: 0 0 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}
.player-bar__art {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-dim);
}
.player-bar__track-info {
  min-width: 0;
  overflow: hidden;
}
.player-bar__track-title {
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-bar__track-artist {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-bar__track-title--empty {
  color: var(--text-dim);
}
.player-bar__variant-label {
  font-size: 9px;
  color: var(--text-dim);
  margin-top: 1px;
}

/* Center -- controls + progress */
.player-bar__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 600px;
  margin: 0 auto;
}

.controls {
  display: flex;
  align-items: center;
  gap: 18px;
}
.controls__btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.controls__btn:hover {
  color: var(--text-primary);
}
.controls__btn--secondary {
  color: var(--text-dim);
  font-size: 14px;
}
.controls__btn--secondary.active {
  color: var(--accent-primary);
}
.controls__btn--play {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 16px;
}
.controls__btn--play:hover {
  transform: scale(1.05);
  color: var(--bg-primary);
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.progress-time {
  color: var(--text-muted);
  font-size: 10px;
  width: 36px;
  user-select: none;
}
.progress-time--end {
  text-align: right;
}
.progress-bar {
  flex: 1;
  height: 4px;
  background: #333;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.progress-bar__fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 2px;
  position: relative;
  transition: width 100ms linear;
  width: 0%;
}
.progress-bar__thumb {
  position: absolute;
  top: 50%;
  right: -6px;
  width: 12px;
  height: 12px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.progress-bar:hover .progress-bar__thumb {
  opacity: 1;
}

/* Volume -- right */
.player-bar__volume {
  flex: 0 0 140px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.volume__btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  display: flex;
}
.volume__bar {
  width: 80px;
  height: 4px;
  background: #333;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.volume__fill {
  height: 100%;
  background: var(--text-muted);
  border-radius: 2px;
  transition: width 100ms linear;
  width: 100%;
}

/* ── Variant Pills Row (in player bar) ─────────────────────────────────── */
.player-bar__pills {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 0 24px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.player-bar__pills::-webkit-scrollbar {
  display: none;
}
.player-bar__pills.visible {
  display: flex;
}

.player-bar__pills-prefix {
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
  font-weight: 600;
}

.pill {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid #2a2a4a;
  color: var(--text-muted);
  background: transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-family);
}
.pill:hover {
  border-color: #555;
  color: var(--text-secondary);
}
.pill.filtered-out {
  display: none;
}

.pill--suno {
  border-color: #4ecdc433;
}
.pill--suno.pill--active {
  border-color: var(--color-suno);
  color: var(--color-suno);
  background: #4ecdc415;
}
.pill--el {
  border-color: #ff8c4233;
}
.pill--el.pill--active {
  border-color: var(--color-el);
  color: var(--color-el);
  background: #ff8c4215;
}

/* Sync pulse for pills */
@keyframes pillPulseSuno {
  0%,
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
  50% {
    box-shadow: 0 0 6px 1px #4ecdc440;
  }
}
@keyframes pillPulseEl {
  0%,
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
  50% {
    box-shadow: 0 0 6px 1px #ff8c4240;
  }
}
.pill.synced {
  animation: syncPulse 0.6s ease;
}
.pill--suno.synced {
  animation: pillPulseSuno 0.6s ease;
}
.pill--el.synced {
  animation: pillPulseEl 0.6s ease;
}

/* ── A/B Compare Bar ──────────────────────────────────────────────── */
.compare-bar {
  position: fixed;
  bottom: var(--player-bar-height);
  left: 0;
  right: 0;
  z-index: 99;
  background: #0e0a16f0;
  border-top: 1px solid var(--accent-violet);
  border-bottom: 1px solid #ffffff08;
  backdrop-filter: blur(12px);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
  pointer-events: none;
}
.compare-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.compare-bar__label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-violet);
  flex-shrink: 0;
}

.compare-bar__variants {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.compare-bar__variant {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.compare-bar__variant--current {
  font-weight: 700;
}
.compare-bar__variant--current.platform-suno {
  color: var(--color-suno);
  border: 1px solid var(--color-suno);
  background: #4ecdc415;
}
.compare-bar__variant--current.platform-el {
  color: var(--color-el);
  border: 1px solid var(--color-el);
  background: #ff8c4215;
}
.compare-bar__variant--next {
  color: var(--text-dim);
  border: 1px solid #2a2a4a;
  background: transparent;
}

.compare-bar__arrow {
  color: var(--text-dim);
  font-size: 12px;
  flex-shrink: 0;
}

.compare-bar__index {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}

.compare-bar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.compare-bar__btn {
  font-size: 10px;
  padding: 4px 12px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid #2a2a4a;
  color: var(--text-muted);
  background: transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-family: var(--font-family);
  font-weight: 600;
}
.compare-bar__btn:hover {
  border-color: #555;
  color: var(--text-secondary);
}
.compare-bar__btn--crossfade {
  border-color: var(--accent-violet);
  color: var(--accent-violet);
  background: #c77dff10;
}
.compare-bar__btn--crossfade:hover {
  background: #c77dff25;
}
.compare-bar__btn--crossfade.fading {
  pointer-events: none;
  opacity: 0.7;
}
.compare-bar__btn--exit {
  border-color: #ff444433;
  color: #ff6666;
}
.compare-bar__btn--exit:hover {
  border-color: #ff4444;
  background: #ff444415;
}

/* Crossfade progress indicator */
.compare-bar__fade-progress {
  width: 60px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  display: none;
}
.compare-bar__fade-progress.active {
  display: block;
}
.compare-bar__fade-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-violet);
  border-radius: 2px;
  transition: width 75ms linear;
}

/* Compare button in variants panel toolbar */
.variants-panel__compare {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid #2a2a4a;
  color: var(--text-muted);
  background: transparent;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
  font-weight: 600;
}
.variants-panel__compare:hover {
  border-color: var(--accent-violet);
  color: var(--accent-violet);
  background: #c77dff10;
}

/* Compare button in player bar */
.player-bar__compare-btn {
  background: none;
  border: 1px solid #2a2a4a;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
  font-weight: 600;
  white-space: nowrap;
  display: none;
}
.player-bar__compare-btn.visible {
  display: inline-block;
}
.player-bar__compare-btn:hover {
  border-color: var(--accent-violet);
  color: var(--accent-violet);
}
.player-bar__compare-btn.active {
  border-color: var(--accent-violet);
  color: var(--accent-violet);
  background: #c77dff15;
}

/* Adjust sidebar and main bottom when compare bar is visible */
body.compare-mode-active .sidebar {
  bottom: calc(var(--player-bar-height) + 40px);
}
body.compare-mode-active .main {
  padding-bottom: calc(var(--player-bar-height) + 40px + 24px);
}

/* Theme overrides for compare bar */
.theme-command .compare-bar {
  border-radius: 0;
}
.theme-command .compare-bar__btn {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 8px;
}
.theme-command .compare-bar__variant {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 9px;
}
.theme-command .variants-panel__compare {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 8px;
}
.theme-command .player-bar__compare-btn {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 8px;
}

.theme-luxury .compare-bar__btn {
  border-radius: 16px;
  padding: 5px 14px;
  font-size: 11px;
}
.theme-luxury .compare-bar__variant {
  border-radius: 16px;
  font-size: 12px;
}
.theme-luxury .variants-panel__compare {
  border-radius: 16px;
}
.theme-luxury .player-bar__compare-btn {
  border-radius: 16px;
}

/* ── Mobile sidebar toggle ──────────────────────────────────────────────── */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 140;
  display: none;
}
.sidebar-overlay.visible {
  display: block;
}

/* ── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 3px;
}

/* ── Audio Visualizer (EQ Bars) ────────────────────────────────────────── */
.eq-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  padding: 0 4px;
  flex-shrink: 0;
}
.eq-visualizer__bar {
  width: 3px;
  border-radius: 1px;
  background: var(--accent-primary);
  transform-origin: bottom;
  height: 4px;
  transition: height 0.1s ease;
}
.eq-visualizer.playing .eq-visualizer__bar {
  animation-play-state: running;
}
.eq-visualizer:not(.playing) .eq-visualizer__bar {
  animation-play-state: paused;
}

.eq-visualizer__bar:nth-child(1) {
  animation: eqBar1 0.8s ease-in-out infinite;
}
.eq-visualizer__bar:nth-child(2) {
  animation: eqBar2 0.6s ease-in-out infinite 0.1s;
}
.eq-visualizer__bar:nth-child(3) {
  animation: eqBar3 0.9s ease-in-out infinite 0.05s;
}
.eq-visualizer__bar:nth-child(4) {
  animation: eqBar4 0.7s ease-in-out infinite 0.15s;
}

@keyframes eqBar1 {
  0%,
  100% {
    height: 4px;
  }
  50% {
    height: 16px;
  }
}
@keyframes eqBar2 {
  0%,
  100% {
    height: 6px;
  }
  50% {
    height: 20px;
  }
}
@keyframes eqBar3 {
  0%,
  100% {
    height: 3px;
  }
  50% {
    height: 14px;
  }
}
@keyframes eqBar4 {
  0%,
  100% {
    height: 5px;
  }
  50% {
    height: 18px;
  }
}

/* ── Lyrics Panel ──────────────────────────────────────────────────────── */
.lyrics-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100%;
  background: rgba(10, 10, 20, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid #1e1e3a;
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow: hidden;
}
.lyrics-panel.open {
  transform: translateX(0);
}
.lyrics-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #1e1e3a;
  flex-shrink: 0;
}
.lyrics-panel__title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666;
}
.lyrics-panel__close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  transition: color 0.15s;
}
.lyrics-panel__close:hover {
  color: #e0e0f0;
}
.lyrics-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  scrollbar-width: thin;
  scrollbar-color: #1e1e3a transparent;
}
.lyrics-panel__body::-webkit-scrollbar {
  width: 4px;
}
.lyrics-panel__body::-webkit-scrollbar-track {
  background: transparent;
}
.lyrics-panel__body::-webkit-scrollbar-thumb {
  background: #1e1e3a;
  border-radius: 2px;
}
.lyrics-panel__empty {
  color: #555;
  font-size: 13px;
  font-style: italic;
  text-align: center;
  padding: 40px 20px;
}
.lyrics-section-marker {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #555;
  margin-top: 24px;
  margin-bottom: 8px;
}
.lyrics-section-marker:first-child {
  margin-top: 0;
}
.lyrics-line {
  font-size: 14px;
  color: #aaa;
  line-height: 1.8;
}
.lyrics-blank {
  height: 16px;
}
.lyrics-btn {
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  font-size: 14px;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.15s;
}
.lyrics-btn:hover {
  color: #e0e0f0;
}
.lyrics-btn.active {
  color: #c77dff;
}
.lyrics-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ── Star Rating ──────────────────────────────────────────────────────── */
.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
}
.star-rating--readonly {
  cursor: default;
}
.star-rating__star {
  position: relative;
  width: 12px;
  height: 12px;
  font-size: 12px;
  line-height: 12px;
  color: #444;
  display: inline-block;
  text-align: center;
}
.star-rating__star--filled {
  color: #ffd700;
}
.star-rating__star--half {
  color: #444;
}
.star-rating__star--half::before {
  content: "\2605";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #ffd700;
}
.star-rating__count {
  font-size: 9px;
  color: var(--text-dim);
  margin-left: 3px;
}

/* Track row: show interactive stars on hover, avg stars otherwise */
.track__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 120px;
  flex-shrink: 0;
}
.track__rating .star-rating--interactive {
  display: inline-flex;
}
.track__rating .star-rating--readonly {
  display: none;
}

/* Variant row rating + flag */
.variant-row__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.variant-row__rating .star-rating--interactive {
  display: inline-flex;
}
.variant-row__rating .star-rating--readonly {
  display: none;
}

/* ── Flag Button ──────────────────────────────────────────────────────── */
.flag-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  color: #555;
  padding: 2px 4px;
  border-radius: 3px;
  transition: color var(--transition-fast);
  flex-shrink: 0;
  opacity: 0;
}
.flag-btn:hover {
  color: #ff4444;
}
.flag-btn--flagged {
  color: #ff4444;
  opacity: 1;
  cursor: default;
}
.variant-row:hover .flag-btn {
  opacity: 1;
}
.track:hover .flag-btn {
  opacity: 1;
}

/* Mobile-only flag — hidden on desktop */
.np-flag {
  display: none;
}

/* Player bar rating + flag */
.player-bar__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  flex-shrink: 0;
}
.player-bar__rating .flag-btn {
  opacity: 0.6;
}
.player-bar__rating .flag-btn:hover {
  opacity: 1;
}

/* ── Artwork Gallery ──────────────────────────────────────────────── */
.gallery-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: #555;
  padding: 2px 4px;
  border-radius: 3px;
  transition: color var(--transition-fast);
  flex-shrink: 0;
  opacity: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gallery-btn:hover {
  color: var(--accent-violet);
}
.track:hover .gallery-btn {
  opacity: 1;
}
.player-bar__rating .gallery-btn {
  opacity: 0.6;
}
.player-bar__rating .gallery-btn:hover {
  opacity: 1;
}

.gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 10, 20, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.gallery-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-overlay__inner {
  max-width: 900px;
  width: 100%;
  margin: 40px auto;
  padding: 32px 24px 48px;
  position: relative;
}

.gallery-overlay__close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #888;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition:
    color var(--transition-fast),
    background var(--transition-fast);
  z-index: 10;
}
.gallery-overlay__close:hover {
  color: var(--text-primary);
  background: #ffffff10;
}

.gallery-overlay__title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.gallery-overlay__song-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.gallery-featured {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.gallery-featured__img {
  max-width: 400px;
  max-height: 400px;
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow:
    0 8px 40px var(--accent-glow),
    0 0 1px var(--accent-glow-strong);
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery-featured__meta {
  text-align: center;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-featured__rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-grid-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin: 20px 0 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.gallery-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}
.gallery-thumb:hover {
  border-color: #ffffff30;
}
.gallery-thumb--active {
  border-color: var(--accent-violet);
  box-shadow: 0 0 12px #c77dff40;
}
.gallery-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb__badges {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}
.gallery-thumb__badge {
  font-size: 8px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}
.gallery-thumb__badge--provider {
  color: #fff;
}
.gallery-thumb__badge--provider-gemini {
  background: #5080e0;
}
.gallery-thumb__badge--provider-openai {
  background: #3ddc84;
  color: #000;
}
.gallery-thumb__badge--provider-fal {
  background: #ff8c42;
}
.gallery-thumb__badge--provider-openrouter {
  background: #c050c0;
}
.gallery-thumb__badge--provider-unknown {
  background: #555;
}

.gallery-thumb__badge--anime {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: auto;
  left: auto;
  background: #ff4081;
  color: #fff;
  font-size: 7px;
  padding: 1px 4px;
}

.gallery-thumb__actions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.gallery-thumb:hover .gallery-thumb__actions {
  opacity: 1;
}

.gallery-thumb__broken {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  color: var(--text-dim);
  font-size: 24px;
}

.gallery-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  color: var(--text-dim);
  font-size: 13px;
}

.gallery-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-dim);
  font-size: 13px;
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* THEME SWITCHER                                                            */
/* ══════════════════════════════════════════════════════════════════════════ */

/* ── Theme Switcher Button ─────────────────────────────────────────────── */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast);
  font-family: var(--font-family);
  position: relative;
}
.theme-switcher:hover {
  border-color: var(--accent-primary);
  background: var(--bg-hover);
}
.theme-switcher__icon {
  font-size: 12px;
  line-height: 1;
}
.theme-switcher__label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* ── Theme: Hybrid (default — no overrides needed, uses base styles) ──── */
/* body.theme-hybrid uses all base :root variables as-is */

/* ── Toast Notifications ──────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}
.toast {
  min-width: 280px;
  max-width: 360px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}
.toast--visible {
  opacity: 1;
  transform: translateY(0);
}
.toast--exiting {
  opacity: 0;
  transform: translateY(0);
}
.toast--error {
  border-left-color: #ff4444;
}
.toast--info {
  border-left-color: var(--accent-primary);
}
.toast__message {
  flex: 1;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.toast__close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  line-height: 1;
}
.toast__close:hover {
  color: var(--text-primary);
}

/* ── Inline Error ─────────────────────────────────────────────────────── */
.inline-error {
  background: #ff444410;
  border: 1px solid #ff444430;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.inline-error__icon {
  color: var(--accent-primary);
  font-size: 16px;
}
.inline-error__message {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
}
.inline-error__retry {
  font-size: 11px;
}

/* ── Nav Hamburger + Mobile Menu ──────────────────────────────────────── */
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav__mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 8px 0;
  z-index: 999;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
  pointer-events: none;
}
.nav__mobile-menu--open {
  display: block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav__mobile-menu a {
  display: block;
  padding: 16px 24px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition-fast);
}
.nav__mobile-menu a:hover {
  color: var(--text-primary);
}
.nav__mobile-menu a.nav__mobile-link--active {
  color: var(--accent-primary);
}
@media (max-width: 768px) {
  .nav__hamburger {
    display: flex;
  }
  .nav__links .nav__link {
    display: none;
  }
  .nav__links .theme-switcher {
    display: flex;
  }
}

/* ── Page Shell ───────────────────────────────────────────────────────── */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.page__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.page__subtitle {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.page__empty {
  text-align: center;
  padding: 48px 24px;
}
.page__empty-heading {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.page__empty-body {
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Playlist Cards ───────────────────────────────────────────────────── */
.pcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.pcard {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  max-width: 320px;
}
.pcard:hover {
  border-color: var(--border-accent);
  transform: scale(1.02);
}
.pcard__cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-surface);
  display: block;
}
.pcard__body {
  padding: 16px;
}
.pcard__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.pcard__meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.pcard__actions {
  display: flex;
  gap: 8px;
}
.pcard-sort {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

/* ── Playlist Detail ──────────────────────────────────────────────────── */
.pdetail {
  margin-top: 32px;
}
.pdetail__header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.pdetail__cover {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  flex-shrink: 0;
}
.pdetail__info {
  flex: 1;
}
.pdetail__title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.pdetail__meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.pdetail__actions {
  display: flex;
  gap: 8px;
}
.pdetail__tracks {
  list-style: none;
}
.pdetail__track {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.pdetail__track-num {
  font-size: 11px;
  color: var(--text-muted);
  width: 24px;
  text-align: right;
}
.pdetail__track-title {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
}
.pdetail__track-play {
  background: none;
  border: none;
  color: var(--accent-primary);
  cursor: pointer;
  font-size: 14px;
}

/* ── Stats Rankings ───────────────────────────────────────────────────── */
.stats-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.stats-filter__pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 8px 16px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.stats-filter__pill:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
}
.stats-filter__pill--active {
  background: var(--accent-primary);
  color: var(--text-primary);
  border-color: var(--accent-primary);
}
.stats-filter__divider {
  width: 1px;
  height: 24px;
  background: var(--border-subtle);
  margin: 0 8px;
}
.stats-filter__select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
}
.stats-filter__select option {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}
.ranking {
  margin-bottom: 32px;
}
.ranking__title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.ranking__entry {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  opacity: 0;
  transform: translateY(8px);
  animation: rankStagger 250ms ease forwards;
}
.ranking__rank {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  width: 28px;
  text-align: right;
}
.ranking__entry:first-child .ranking__rank {
  color: var(--accent-primary);
}
.ranking__song {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
}
.ranking__song a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.ranking__song a:hover {
  color: var(--text-primary);
}
.ranking__value {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
  min-width: 80px;
}
.ranking__skeleton {
  height: 32px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}
@keyframes rankStagger {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes skeletonPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ── Form Fields ──────────────────────────────────────────────────────── */
.form-field {
  margin-bottom: 20px;
}
.form-field__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.form-field__optional {
  color: var(--text-dim);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.form-field__input,
.form-field__textarea,
.form-field__select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--transition-fast);
}
.form-field__input:focus,
.form-field__textarea:focus,
.form-field__select:focus {
  outline: none;
  border-color: #c050c060;
}
.form-field__textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}
.form-field__select {
  cursor: pointer;
}
.form-field__select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.form-row {
  display: flex;
  gap: 16px;
}
.form-row > div {
  flex: 1;
}
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent-primary);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 8px;
}
.form-submit:hover {
  background: #d060d0;
  transform: scale(1.01);
}
.form-submit:disabled {
  background: #333;
  color: var(--text-dim);
  cursor: not-allowed;
  transform: none;
}
.form-error {
  background: #ff444410;
  border: 1px solid #ff444430;
  color: #ff8888;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.form-success {
  text-align: center;
  padding: 48px 24px;
}
.form-success__icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.form-success h2 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-success p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.form-success a {
  color: var(--accent-primary);
  text-decoration: none;
  font-size: 13px;
}
.form-success a:hover {
  text-decoration: underline;
}
.request-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  transition: border-color var(--transition-fast);
}
.request-card:hover {
  border-color: var(--border-accent);
}
.request-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.request-card__character {
  font-size: 13px;
  color: var(--accent-primary);
  margin-bottom: 8px;
  font-style: italic;
}
.request-card__desc {
  font-size: 14px;
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 12px;
}
.request-card__meta {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.request-card__meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
@media (max-width: 600px) {
  .form-row { flex-direction: column; gap: 0; }
  .page { padding: 32px 16px 60px; }
}
@media (max-width: 480px) {
  .page { padding: 32px 8px 60px; }
  .pcard-grid { grid-template-columns: 1fr; }
  .pdetail__header { flex-direction: column; }
  .pdetail__cover { width: 100%; height: auto; }
}

/* ── Theme: Command Deck ──────────────────────────────────────────────── */
.theme-command {
  --font-family: "Orbitron", "Segoe UI", monospace;
  --bg-primary: #08080f;
  --bg-secondary: #0a0a12;
  --bg-surface: #0e0e1a;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --border-accent: #c050c020;
}

/* Scanline overlay */
body.theme-command::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(192, 80, 192, 0.015) 2px,
    rgba(192, 80, 192, 0.015) 4px
  );
}

/* Nav */
.theme-command .nav__title {
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 11px;
}

/* Sidebar */
.theme-command .sidebar__title {
  letter-spacing: 4px;
  color: var(--accent-primary);
  font-size: 8px;
}
.theme-command .sidebar__title::before {
  content: "// ";
}
.theme-command .sidebar__album {
  border-radius: 0;
  border-left-width: 2px;
}
.theme-command .sidebar__album-art {
  border-radius: 0;
  border: 1px solid #c050c020;
}
.theme-command .sidebar__album-title {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 9px;
}
.theme-command .sidebar__album-meta {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 8px;
}

/* Album header */
.theme-command .album-header__art {
  border-radius: 0;
  border: 1px solid #c050c030;
}
.theme-command .album-header__label {
  letter-spacing: 4px;
  color: var(--accent-primary);
  font-size: 8px;
}
.theme-command .album-header__label::before {
  content: "// ";
}
.theme-command .album-header__title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 20px;
}
.theme-command .album-header__artist {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
}
.theme-command .album-header__meta {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 8px;
}
.theme-command .album-header__desc {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 9px;
  letter-spacing: 0.5px;
}

/* Buttons */
.theme-command .btn-primary {
  border-radius: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 10px;
}
.theme-command .btn-secondary {
  border-radius: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 10px;
}

/* Track list */
.theme-command .track {
  border-radius: 0;
}
.theme-command .track__number {
  font-family: "Courier New", monospace;
  font-size: 10px;
}
.theme-command .track__title {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10px;
}
.theme-command .track__lore {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 8px;
}

/* Variants */
.theme-command .variants-panel {
  border-radius: 0;
}
.theme-command .variant-row__label {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 10px;
}
.theme-command .track__variants-badge-inner {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 8px;
}

/* Platform filter */
.theme-command .platform-filter__btn {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 8px;
}

/* Player bar */
.theme-command .player-bar {
  border-top: 1px solid #c050c020;
}
.theme-command .player-bar__art {
  border-radius: 0;
  border: 1px solid #c050c020;
}
.theme-command .player-bar__track-title {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10px;
}
.theme-command .player-bar__track-artist {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 8px;
}
.theme-command .controls__btn--play {
  border-radius: 0;
  border: 1px solid #c050c0;
}
.theme-command .pill {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 8px;
}

/* Status line above player bar */
.theme-command .player-bar__status-line {
  display: block;
  font-size: 7px;
  letter-spacing: 2px;
  color: #c050c060;
  padding: 4px 24px 0;
  text-transform: uppercase;
  font-family: "Orbitron", monospace;
}

/* Scrollbar */
.theme-command ::-webkit-scrollbar-thumb {
  border-radius: 0;
}
.theme-command .toast { border-radius: 0; }
.theme-command .inline-error { border-radius: 0; }
.theme-command .nav__hamburger { font-family: 'Orbitron', monospace; }
.theme-command .pcard { border-radius: 0; }
.theme-command .pcard__title { text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }
.theme-command .pdetail__cover { border-radius: 0; }
.theme-command .pdetail__title { font-family: 'Orbitron', sans-serif; text-transform: uppercase; letter-spacing: 2px; }
.theme-command .ranking__title::before { content: '// '; }
.theme-command .stats-filter__pill { border-radius: 0; }
.theme-command .page__title { font-family: 'Orbitron', sans-serif; text-transform: uppercase; letter-spacing: 2px; }
.theme-command .form-field__input,
.theme-command .form-field__textarea,
.theme-command .form-field__select { border-radius: 0; }
.theme-command .form-submit { border-radius: 0; }
.theme-command .request-card { border-radius: 0; }
.theme-command .nav__mobile-menu { border-radius: 0; }

/* ── Theme: Luxury ────────────────────────────────────────────────────── */
.theme-luxury {
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

.theme-luxury .player-bar {
  background: linear-gradient(180deg, #0e0a16ee, #0a0a14);
  backdrop-filter: blur(20px);
  min-height: 88px;
  border-top: 1px solid #ffffff08;
}
.theme-luxury .player-bar__top {
  height: 80px;
}

/* Sidebar */
.theme-luxury .sidebar {
  width: 260px;
  padding: 20px 12px;
  background: linear-gradient(180deg, #0e0a16, #0a0a14);
}
.theme-luxury .sidebar__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  color: #c050c080;
  text-transform: none;
  letter-spacing: 1px;
  padding-bottom: 14px;
}
.theme-luxury .sidebar__album {
  padding: 12px 10px;
  border-radius: 8px;
  gap: 14px;
}
.theme-luxury .sidebar__album-art {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  box-shadow: 0 4px 20px #00000040;
}
.theme-luxury .sidebar__album--active .sidebar__album-art {
  box-shadow: 0 4px 20px #c050c020;
}
.theme-luxury .sidebar__album-title {
  font-size: 13px;
  font-weight: 400;
}
.theme-luxury .sidebar__album-meta {
  font-size: 11px;
}

/* Main content offset for wider sidebar */
.theme-luxury .main {
  margin-left: 260px;
  padding: 0 48px;
  padding-top: 80px;
  padding-bottom: calc(88px + 24px);
}

/* Album header */
.theme-luxury .album-header {
  gap: 36px;
  padding: 36px 0 32px;
}
.theme-luxury .album-header__art {
  width: 220px;
  height: 220px;
  border-radius: 8px;
  box-shadow:
    0 16px 60px #c050c025,
    0 0 1px #c050c040;
}
.theme-luxury .album-header__art::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 30%, #c050c015, transparent 70%);
  pointer-events: none;
}
.theme-luxury .album-header__art {
  position: relative;
  overflow: hidden;
}
.theme-luxury .album-header__label {
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 500;
}
.theme-luxury .album-header__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
}
.theme-luxury .album-header__artist {
  font-size: 14px;
}
.theme-luxury .album-header__desc {
  font-size: 14px;
  line-height: 1.7;
}
.theme-luxury .album-header__meta {
  font-size: 12px;
}

/* Buttons */
.theme-luxury .btn-primary {
  border-radius: 24px;
  padding: 12px 32px;
  font-size: 13px;
  letter-spacing: 1px;
}
.theme-luxury .btn-primary:hover {
  box-shadow: 0 4px 20px #c050c040;
}
.theme-luxury .btn-secondary {
  border-radius: 24px;
  padding: 12px 24px;
  font-size: 13px;
}

/* Tracklist */
.theme-luxury .track {
  padding: 14px 4px;
  border-radius: 8px;
}
.theme-luxury .track__title {
  font-size: 15px;
  font-weight: 400;
}
.theme-luxury .track__artist {
  font-size: 12px;
}
.theme-luxury .track__lore {
  font-size: 12px;
}
.theme-luxury .track__number {
  font-size: 14px;
}
.theme-luxury .track__duration {
  font-size: 13px;
}

/* Player bar */
.theme-luxury .player-bar__art {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  box-shadow: 0 4px 16px #00000040;
}
.theme-luxury .player-bar__track-title {
  font-size: 14px;
  font-weight: 500;
}
.theme-luxury .player-bar__track-artist {
  font-size: 12px;
}
.theme-luxury .controls__btn--play {
  width: 44px;
  height: 44px;
  border-radius: 24px;
  font-size: 18px;
}
.theme-luxury .progress-bar {
  height: 4px;
}

/* Variants panel */
.theme-luxury .variants-panel {
  border-radius: 0 0 12px 12px;
}
.theme-luxury .variant-row {
  padding: 10px 16px;
  font-size: 13px;
}
.theme-luxury .variant-row__label {
  font-size: 13px;
}

/* Platform filter */
.theme-luxury .platform-filter__btn {
  border-radius: 16px;
  padding: 4px 14px;
  font-size: 11px;
}

/* Pills */
.theme-luxury .pill {
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 11px;
}

/* Softer glow on standalone bg */
.theme-luxury .standalone-glow {
  opacity: 0.7;
}

/* Lyrics panel */
.theme-luxury .lyrics-panel {
  border-left: 1px solid #ffffff08;
}
.theme-luxury .lyrics-line {
  font-size: 16px;
  line-height: 2;
}

/* Gallery */
.theme-luxury .gallery-thumb {
  border-radius: 8px;
}
.theme-luxury .gallery-featured__img {
  border-radius: 12px;
}
.theme-luxury .toast { border-radius: 12px; }
.theme-luxury .inline-error { border-radius: 6px; }
.theme-luxury .pcard { border-radius: 12px; }
.theme-luxury .pcard__title { font-family: 'Cormorant Garamond', serif; font-size: 15px; }
.theme-luxury .pdetail__cover { border-radius: 12px; }
.theme-luxury .pdetail__title { font-family: 'Cormorant Garamond', serif; }
.theme-luxury .stats-filter__pill { border-radius: 24px; }
.theme-luxury .page__title { font-family: 'Cormorant Garamond', serif; }
.theme-luxury .form-field__input,
.theme-luxury .form-field__textarea,
.theme-luxury .form-field__select { border-radius: 12px; }
.theme-luxury .form-submit { border-radius: 12px; }
.theme-luxury .request-card { border-radius: 12px; }
.theme-luxury .nav__mobile-menu { border-radius: 0 0 12px 12px; }

/* Hide the command-deck status line by default */
.player-bar__status-line {
  display: none;
}

/* __ Search Bar __ */
.search-bar {
  position: relative;
  margin-bottom: 8px;
}
.search-bar__input {
  width: 100%;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 13px;
  padding: 0 36px 0 36px;
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}
.search-bar__input::placeholder {
  color: var(--text-dim);
}
.search-bar__input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.search-bar__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 14px;
  pointer-events: none;
}
.search-bar__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  display: none;
  transition: color var(--transition-fast);
}
.search-bar__clear:hover {
  color: var(--text-primary);
}
.search-bar__clear.visible {
  display: block;
}
.search-bar__hint {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 1px 5px;
  pointer-events: none;
  opacity: 0.6;
}
.search-bar__input:focus ~ .search-bar__hint {
  display: none;
}
.search-bar__clear.visible ~ .search-bar__hint {
  display: none;
}

/* __ Filter Chips __ */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
  align-items: center;
}
.filter-chips__group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-chips__label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-right: 2px;
  flex-shrink: 0;
  font-weight: 600;
}
.filter-chips__divider {
  width: 1px;
  height: 16px;
  background: var(--border-subtle);
  margin: 0 4px;
  flex-shrink: 0;
}
.filter-chip {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid #2a2a4a;
  color: var(--text-muted);
  background: transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-family: var(--font-family);
  font-weight: 500;
}
.filter-chip:hover {
  border-color: #555;
  color: var(--text-secondary);
}
.filter-chip--active {
  border-color: var(--accent-violet);
  color: var(--accent-violet);
  background: #c77dff15;
}
.filter-chip--suno.filter-chip--active {
  border-color: var(--color-suno);
  color: var(--color-suno);
  background: #4ecdc415;
}
.filter-chip--el.filter-chip--active {
  border-color: var(--color-el);
  color: var(--color-el);
  background: #ff8c4215;
}
.search-results-info {
  font-size: 11px;
  color: var(--text-dim);
  padding: 4px 0;
  font-style: italic;
}
.search-album-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-violet);
  margin: 14px 0 4px;
  padding: 0 4px;
}
.track__album-context {
  font-size: 9px;
  color: var(--accent-violet);
  opacity: 0.7;
  margin-top: 1px;
}

/* __ Now-Playing Panel __ */
.now-playing-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100%;
  background: rgba(10, 10, 20, 0.97);
  backdrop-filter: blur(20px);
  border-left: 1px solid #1e1e3a;
  z-index: 40;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow: hidden;
}
.now-playing-panel.open {
  transform: translateX(0);
}
.now-playing-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #1e1e3a;
  flex-shrink: 0;
}
.now-playing-panel__title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666;
}
.now-playing-panel__close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  transition: color 0.15s;
}
.now-playing-panel__close:hover {
  color: #e0e0f0;
}
.now-playing-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #1e1e3a transparent;
}
.now-playing-panel__body::-webkit-scrollbar {
  width: 4px;
}
.now-playing-panel__body::-webkit-scrollbar-track {
  background: transparent;
}
.now-playing-panel__body::-webkit-scrollbar-thumb {
  background: #1e1e3a;
  border-radius: 2px;
}
.np-empty {
  color: #555;
  font-size: 13px;
  font-style: italic;
  text-align: center;
  padding: 60px 20px;
}
.np-art {
  width: 100%;
  padding: 20px 20px 0;
  display: flex;
  justify-content: center;
  position: relative;
}
.np-art__img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow:
    0 8px 40px var(--accent-glow),
    0 0 1px var(--accent-glow-strong);
}
.np-art__placeholder {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--text-dim);
}
.np-art__gallery-btn {
  position: absolute;
  bottom: 8px;
  right: 28px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #aaa;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0;
  transition:
    opacity var(--transition-fast),
    color var(--transition-fast);
}
.np-art:hover .np-art__gallery-btn {
  opacity: 1;
}
.np-art__gallery-btn:hover {
  color: var(--text-primary);
}
.np-track-info {
  padding: 16px 20px 0;
  text-align: center;
}
.np-track-info__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.np-track-info__artist {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.np-track-info__variant {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 8px;
  font-weight: 600;
}
.np-track-info__variant--suno {
  color: var(--color-suno);
  border: 1px solid #4ecdc433;
  background: #4ecdc410;
}
.np-track-info__variant--el {
  color: var(--color-el);
  border: 1px solid #ff8c4233;
  background: #ff8c4210;
}
.np-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px 0;
}
.np-section-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #555;
  padding: 16px 20px 8px;
  font-weight: 700;
}
.np-lyrics {
  padding: 0 20px 16px;
}
.np-lyrics .lyrics-section-marker {
  margin-top: 18px;
}
.np-lyrics .lyrics-section-marker:first-child {
  margin-top: 0;
}
.np-lyrics .lyrics-line {
  font-size: 13px;
  color: #999;
  line-height: 1.7;
}
.np-lyrics-empty {
  color: #555;
  font-size: 12px;
  font-style: italic;
  text-align: center;
  padding: 12px 20px;
}
.np-up-next {
  border-top: 1px solid #1e1e3a;
  padding: 0 0 20px;
}
.np-up-next__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.np-up-next__item:hover {
  background: var(--bg-hover);
}
.np-up-next__num {
  font-size: 10px;
  color: var(--text-dim);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.np-up-next__info {
  flex: 1;
  min-width: 0;
}
.np-up-next__title {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.np-up-next__artist {
  font-size: 10px;
  color: var(--text-dim);
}
.np-up-next__dur {
  font-size: 10px;
  color: var(--text-dim);
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .main.np-panel-open {
    padding-right: 424px;
  }
}

/* ── Playlist Sidebar Section ─────────────────────────────────────────── */
.sidebar__divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 12px 8px;
}
.sidebar__playlist {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 6px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition:
    background var(--transition-fast),
    border-left-color var(--transition-fast);
}
.sidebar__playlist:hover {
  background: var(--bg-hover);
}
.sidebar__playlist--active {
  background: var(--now-playing-bg);
  border-left-color: var(--accent-primary);
}
.sidebar__playlist-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}
.sidebar__playlist--active .sidebar__playlist-icon {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.sidebar__playlist-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar__playlist-name {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar__playlist--active .sidebar__playlist-name {
  color: var(--text-primary);
}
.sidebar__playlist-meta {
  font-size: 10px;
  color: var(--text-dim);
}
.sidebar__new-playlist {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px;
  border: none;
  background: none;
  color: var(--accent-primary);
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-family);
  transition: color var(--transition-fast);
  width: 100%;
  text-align: left;
  border-radius: 6px;
}
.sidebar__new-playlist:hover {
  color: var(--accent-violet);
  background: var(--bg-hover);
}
.sidebar__new-playlist-icon {
  font-size: 14px;
  font-weight: 700;
}
.sidebar__playlist-name-input {
  background: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 12px;
  padding: 3px 6px;
  font-family: var(--font-family);
  outline: none;
  width: 100%;
}

/* ── Context Menu ─────────────────────────────────────────────────────── */
.context-menu {
  position: fixed;
  z-index: 600;
  min-width: 180px;
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  padding: 4px 0;
  font-family: var(--font-family);
  display: none;
}
.context-menu.visible {
  display: block;
}
.context-menu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
  user-select: none;
  white-space: nowrap;
}
.context-menu__item:hover {
  background: #c77dff15;
  color: var(--text-primary);
}
.context-menu__item-icon {
  font-size: 13px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  color: var(--text-dim);
}
.context-menu__item:hover .context-menu__item-icon {
  color: var(--accent-violet);
}
.context-menu__divider {
  height: 1px;
  background: #2a2a4a;
  margin: 4px 0;
}
.context-menu__submenu {
  position: relative;
}
.context-menu__submenu-arrow {
  margin-left: auto;
  font-size: 9px;
  color: var(--text-dim);
}
.context-menu__sub {
  position: absolute;
  left: 100%;
  top: -4px;
  min-width: 160px;
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  padding: 4px 0;
  display: none;
}
.context-menu__submenu:hover .context-menu__sub {
  display: block;
}
.context-menu__sub .context-menu__item {
  padding: 7px 14px;
  font-size: 11px;
}

/* ── Playlist Header ──────────────────────────────────────────────────── */
.playlist-header {
  display: flex;
  gap: 24px;
  padding: 32px 0 24px;
  align-items: flex-end;
}
.playlist-header__icon {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  background: linear-gradient(135deg, #1a1024, #0e0e1a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--accent-primary);
  border: 1px solid var(--border-accent);
  box-shadow: 0 8px 40px var(--accent-glow);
}
.playlist-header__info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.playlist-header__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
}
.playlist-header__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.playlist-header__title-input {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  background: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: var(--font-family);
  outline: none;
  width: 100%;
  max-width: 400px;
}
.playlist-header__meta {
  font-size: 11px;
  color: var(--text-dim);
}
.playlist-header__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-danger {
  background: none;
  border: 1px solid #ff4444;
  color: #ff4444;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  font-size: 12px;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
  font-family: var(--font-family);
}
.btn-danger:hover {
  background: #ff444420;
}
.btn-text {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-family);
  transition: color var(--transition-fast);
}
.btn-text:hover {
  color: var(--text-primary);
}

/* ── Playlist Track Row Controls ──────────────────────────────────────── */
.playlist-track-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 4px;
}
.playlist-track-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 3px;
  transition:
    color var(--transition-fast),
    background var(--transition-fast);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.playlist-track-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.playlist-track-btn--remove:hover {
  color: #ff4444;
}
.track:hover .playlist-track-btn {
  opacity: 1;
}

/* ── Add-to-Playlist Button on Track Rows ─────────────────────────────── */
.track__add-to-playlist {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 3px;
  transition: color var(--transition-fast);
  opacity: 0;
  flex-shrink: 0;
}
.track__add-to-playlist:hover {
  color: var(--accent-violet);
}
.track:hover .track__add-to-playlist {
  opacity: 1;
}

/* ── Confirm Dialog ──────────────────────────────────────────────────── */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.confirm-dialog {
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 12px;
  padding: 24px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.confirm-dialog__text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}
.confirm-dialog__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Theme overrides for playlists */
.theme-command .sidebar__playlist {
  border-radius: 0;
}
.theme-command .sidebar__playlist-icon {
  border-radius: 0;
}
.theme-command .sidebar__playlist-name {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 9px;
}
.theme-command .sidebar__playlist-meta {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 8px;
}
.theme-command .sidebar__new-playlist {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.theme-command .context-menu {
  border-radius: 0;
}
.theme-command .context-menu__item {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.theme-command .playlist-header__icon {
  border-radius: 0;
}
.theme-command .playlist-header__title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 20px;
}
.theme-command .btn-danger {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10px;
}
.theme-command .btn-text {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10px;
}
.theme-command .confirm-dialog {
  border-radius: 0;
}

.theme-luxury .sidebar__playlist {
  padding: 10px 10px;
  border-radius: 8px;
  gap: 14px;
}
.theme-luxury .sidebar__playlist-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}
.theme-luxury .sidebar__playlist-name {
  font-size: 13px;
}
.theme-luxury .sidebar__playlist-meta {
  font-size: 11px;
}
.theme-luxury .playlist-header__icon {
  width: 220px;
  height: 220px;
  border-radius: 8px;
}
.theme-luxury .playlist-header__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
}
.theme-luxury .btn-danger {
  border-radius: 24px;
  padding: 12px 24px;
  font-size: 13px;
}
.theme-luxury .btn-text {
  font-size: 13px;
}
.theme-luxury .confirm-dialog {
  border-radius: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* RESPONSIVE: MOBILE (max-width: 768px)                                      */
/* ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── General Mobile Rules ─────────────────────────────────────────────── */
  body {
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
  }
  button,
  a,
  [role="button"] {
    touch-action: manipulation;
  }

  /* ── Nav Bar ──────────────────────────────────────────────────────────── */
  .nav {
    padding: 10px 12px;
  }
  .nav__links {
    gap: 10px;
    font-size: 10px;
  }
  .nav__link:nth-child(n + 4) {
    display: none; /* Hide Wiki link on mobile */
  }
  .sidebar-toggle {
    display: flex;
  }
  .theme-switcher {
    padding: 4px 8px;
    min-height: 44px;
    min-width: 44px;
  }

  /* ── Sidebar (full-screen overlay) ───────────────────────────────────── */
  .sidebar {
    display: none;
  }
  .sidebar.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    width: 100%;
    box-shadow: none;
    padding: 60px 16px 16px;
    overflow-y: auto;
  }
  .sidebar__album {
    padding: 12px 10px;
    min-height: 48px;
  }
  .sidebar__album-art {
    width: 52px;
    height: 52px;
  }
  .sidebar__album-title {
    font-size: 14px;
  }
  .sidebar__album-meta {
    font-size: 11px;
  }
  .sidebar__playlist {
    padding: 12px 10px;
    min-height: 48px;
  }
  .sidebar__playlist-icon {
    width: 40px;
    height: 40px;
  }
  .sidebar__playlist-name {
    font-size: 14px;
  }
  .sidebar__new-playlist {
    padding: 12px 10px;
    font-size: 13px;
    min-height: 48px;
  }

  /* ── Main Content ────────────────────────────────────────────────────── */
  .main {
    margin-left: 0;
    padding: 68px 12px calc(var(--player-bar-height) + 16px);
  }
  .theme-luxury .main {
    margin-left: 0;
    padding: 68px 12px calc(var(--player-bar-height) + 16px);
  }

  /* ── Album Header (stacked vertical) ─────────────────────────────────── */
  .album-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 24px 0 20px;
  }
  .album-header__art {
    width: 160px;
    height: 160px;
    font-size: 36px;
  }
  .album-header__info {
    align-items: center;
  }
  .album-header__title {
    font-size: 22px;
  }
  .album-header__desc {
    max-width: 100%;
  }
  .album-header__actions {
    width: 100%;
    justify-content: center;
  }
  .album-header__actions .btn-primary,
  .album-header__actions .btn-secondary {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 12px 16px;
    min-height: 44px;
  }
  /* Luxury theme album header */
  .theme-luxury .album-header__art {
    width: 160px;
    height: 160px;
  }
  .theme-luxury .album-header__title {
    font-size: 26px;
  }

  /* ── Playlist Header (stacked vertical) ──────────────────────────────── */
  .playlist-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .playlist-header__icon {
    width: 140px;
    height: 140px;
    font-size: 48px;
  }
  .playlist-header__info {
    align-items: center;
  }
  .playlist-header__actions {
    justify-content: center;
    width: 100%;
  }
  .playlist-header__actions .btn-primary,
  .playlist-header__actions .btn-secondary,
  .playlist-header__actions .btn-danger {
    min-height: 44px;
    padding: 12px 16px;
  }

  /* ── Search Bar ──────────────────────────────────────────────────────── */
  .search-bar__input {
    height: 44px;
    font-size: 16px; /* prevents iOS zoom on focus */
  }
  .search-bar__hint {
    display: none; /* hide "/" hint on mobile */
  }

  /* ── Filter Chips (horizontal scroll) ────────────────────────────────── */
  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .filter-chips::-webkit-scrollbar {
    display: none;
  }
  .filter-chips__group {
    flex-shrink: 0;
  }
  .filter-chip {
    flex-shrink: 0;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  /* ── Tracklist ───────────────────────────────────────────────────────── */
  /* Hide rating and lore columns */
  .tracklist__col--rating,
  .track__rating {
    display: none;
  }
  .tracklist__col--lore,
  .track__lore {
    display: none;
  }
  .tracklist__col--variants {
    display: none;
  }
  .tracklist__col--duration {
    display: none;
  }

  .tracklist__header {
    padding: 6px 2px 8px;
  }

  /* Track rows: touch-friendly */
  .track {
    min-height: 48px;
    padding: 10px 4px;
    gap: 10px;
  }
  .track__number {
    width: 28px;
  }
  .track__title {
    white-space: normal;
    font-size: 14px;
    line-height: 1.4;
  }
  .track__artist {
    font-size: 11px;
  }
  .track__duration {
    display: none;
  }
  .track__variants-badge {
    display: none;
  }

  /* ── Variants Panel (expanded) ───────────────────────────────────────── */
  .variants-panel {
    margin-left: 4px;
  }
  .variant-row {
    padding: 10px 10px;
    min-height: 44px;
  }
  .variant-row__platform {
    width: 55px;
    font-size: 10px;
  }
  .variant-row__label {
    font-size: 12px;
  }
  .variant-row__rating .star-rating,
  .variant-row__rating .flag-btn {
    display: none;
  }

  /* ── Player Bar ──────────────────────────────────────────────────────── */
  :root {
    --player-bar-height: 110px;
  }
  .player-bar__top {
    padding: 0 10px;
    gap: 8px;
    height: 68px;
  }
  /* Hide volume on mobile */
  .player-bar__volume {
    display: none;
  }
  /* Now playing info in player bar */
  .player-bar__now-playing {
    flex: 0 0 auto;
    max-width: 120px;
    gap: 6px;
  }
  .player-bar__art {
    width: 42px;
    height: 42px;
  }
  .player-bar__track-title {
    font-size: 11px;
  }
  .player-bar__track-artist {
    font-size: 9px;
  }
  .player-bar__variant-label {
    font-size: 8px;
  }
  .player-bar__rating {
    display: none;
  }
  .player-bar__compare-btn {
    font-size: 9px;
    min-height: 32px;
    min-width: 32px;
  }
  /* Hide status line on mobile to prevent overlap */
  .player-bar__status-line {
    display: none !important;
  }
  /* Controls */
  .controls {
    gap: 12px;
  }
  .controls__btn {
    min-width: 44px;
    min-height: 44px;
    font-size: 16px;
  }
  .controls__btn--play {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .controls__btn--secondary {
    font-size: 14px;
    min-width: 36px;
    min-height: 36px;
  }
  .lyrics-btn {
    min-width: 36px;
    min-height: 36px;
    font-size: 16px;
  }
  /* Progress bar: thicker for touch */
  .progress-bar {
    height: 8px;
    border-radius: 4px;
  }
  .progress-bar__fill {
    border-radius: 4px;
  }
  .progress-bar__thumb {
    width: 16px;
    height: 16px;
    right: -8px;
    opacity: 1;
  }
  .progress-container {
    gap: 6px;
  }
  /* Variant pills row */
  .player-bar__pills {
    padding: 0 10px 6px;
    gap: 4px;
  }
  .pill {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 10px;
  }
  .player-bar__pills-prefix {
    font-size: 8px;
  }

  /* ── A/B Compare Bar ─────────────────────────────────────────────────── */
  .compare-bar {
    padding: 8px 10px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .compare-bar__label {
    font-size: 8px;
    width: 100%;
  }
  .compare-bar__variants {
    gap: 4px;
    flex: 1;
    min-width: 0;
  }
  .compare-bar__variant {
    font-size: 9px;
    padding: 3px 8px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }
  .compare-bar__btn {
    font-size: 9px;
    padding: 4px 10px;
    min-height: 36px;
  }
  .compare-bar__actions {
    width: 100%;
    justify-content: center;
  }

  /* ── Now-Playing Panel (full-screen) ─────────────────────────────────── */
  .now-playing-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 300;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  .now-playing-panel.open {
    transform: translateY(0);
  }
  .now-playing-panel__header {
    padding: 16px 20px;
  }
  .now-playing-panel__close {
    font-size: 24px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .now-playing-panel__body {
    padding: 0 20px 120px;
  }
  .np-art {
    width: 70vw;
    max-width: 300px;
    margin: 0 auto 16px;
    padding: 16px 0 0;
  }
  .np-art__img {
    width: 100%;
    max-width: 300px;
  }
  .np-art__placeholder {
    width: 100%;
    max-width: 300px;
  }
  .np-art__gallery-btn {
    opacity: 0.7;
    min-width: 44px;
    min-height: 44px;
  }
  .np-track-info {
    text-align: center;
  }
  .np-track-info__title {
    font-size: 22px;
  }
  .np-track-info__artist {
    font-size: 14px;
  }
  .np-track-info__variant {
    font-size: 11px;
  }
  .np-rating {
    justify-content: center;
  }
  .np-rating .star-rating {
    display: none;
  }
  .np-rating .np-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 1;
    font-size: 13px;
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 8px 18px;
    min-height: 40px;
    transition:
      color 0.2s,
      border-color 0.2s;
  }
  .np-rating .np-flag:active {
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.3);
  }
  .np-rating .np-flag.flag-btn--flagged {
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.3);
  }
  .np-lyrics {
    margin-top: 20px;
    padding: 0 4px 16px;
  }
  .np-lyrics .lyrics-line {
    font-size: 16px;
    line-height: 1.9;
  }
  .np-up-next {
    margin-top: 24px;
  }
  .np-up-next__item {
    min-height: 44px;
  }

  /* ── Lyrics Panel (full-screen) ──────────────────────────────────────── */
  .lyrics-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 300;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  .lyrics-panel.open {
    transform: translateY(0);
  }
  .lyrics-panel__close {
    font-size: 24px;
    min-width: 44px;
    min-height: 44px;
  }
  .lyrics-line {
    font-size: 16px;
    line-height: 2;
  }
  .lyrics-panel__body {
    padding: 20px 20px 100px;
  }

  /* ── Artwork Gallery ─────────────────────────────────────────────────── */
  .gallery-overlay__inner {
    padding: 20px 12px 40px;
    margin: 0;
    max-width: 100%;
  }
  .gallery-overlay__close {
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    font-size: 28px;
  }
  .gallery-featured__img {
    max-width: 100%;
    max-height: 300px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .gallery-thumb {
    border-radius: 4px;
  }
  .gallery-thumb__actions .star-rating,
  .gallery-thumb__actions .flag-btn,
  .gallery-featured__rating .star-rating,
  .gallery-featured__rating .flag-btn {
    display: none;
  }

  /* ── Context Menu ────────────────────────────────────────────────────── */
  .context-menu {
    min-width: 200px;
    max-width: calc(100vw - 16px);
  }
  .context-menu__item {
    min-height: 44px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
  }
  .context-menu__sub {
    left: auto;
    right: 0;
  }

  /* ── Confirm Dialog ──────────────────────────────────────────────────── */
  .confirm-dialog {
    width: 95%;
  }
  .confirm-dialog__actions .btn-secondary,
  .confirm-dialog__actions .btn-danger {
    min-height: 44px;
    padding: 12px 20px;
  }

  /* ── EQ Visualizer ───────────────────────────────────────────────────── */
  .eq-visualizer {
    display: none; /* save space in cramped player bar */
  }

  /* ── Playlist track controls ─────────────────────────────────────────── */
  .playlist-track-btn {
    opacity: 1; /* always visible on mobile */
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  /* ── Theme-specific mobile overrides ─────────────────────────────────── */
  .theme-command .album-header__title {
    font-size: 16px;
  }
  .theme-luxury .album-header {
    gap: 16px;
  }
  .theme-luxury .playlist-header__icon {
    width: 140px;
    height: 140px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* RESPONSIVE: SMALL MOBILE (max-width: 480px)                                */
/* ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  /* ── Nav Bar ──────────────────────────────────────────────────────────── */
  .nav {
    padding: 8px 8px;
  }
  .nav__title {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  .nav__links {
    gap: 6px;
  }
  /* Hide "Request a Song" link on very small screens */
  .nav__link:nth-child(n + 3) {
    display: none;
  }
  .theme-switcher__label {
    display: none; /* icon only on small phones */
  }

  /* ── Main Content ────────────────────────────────────────────────────── */
  .main {
    padding: 60px 6px calc(var(--player-bar-height) + 12px);
  }
  .theme-luxury .main {
    padding: 60px 6px calc(var(--player-bar-height) + 12px);
  }

  /* ── Album Header ────────────────────────────────────────────────────── */
  .album-header__art {
    width: 140px;
    height: 140px;
  }
  .album-header__title {
    font-size: 20px;
  }
  .album-header__actions {
    flex-direction: column;
  }
  .album-header__actions .btn-primary,
  .album-header__actions .btn-secondary {
    width: 100%;
  }

  /* ── Player Bar ──────────────────────────────────────────────────────── */
  .player-bar__top {
    padding: 0 6px;
    gap: 4px;
  }
  .player-bar__now-playing {
    max-width: 90px;
  }
  .player-bar__art {
    width: 36px;
    height: 36px;
  }
  .player-bar__track-title {
    font-size: 10px;
  }
  .player-bar__track-artist {
    display: none;
  }
  .player-bar__variant-label {
    display: none;
  }
  .controls {
    gap: 8px;
  }
  .controls__btn--secondary {
    display: none; /* hide shuffle/repeat on tiny screens */
  }
  .lyrics-btn:last-child {
    display: none; /* hide share button */
  }
  .player-bar__pills {
    padding: 0 6px 4px;
  }
  .pill {
    font-size: 9px;
    padding: 3px 6px;
    min-height: 28px;
  }

  /* ── Compare Bar ─────────────────────────────────────────────────────── */
  .compare-bar {
    padding: 6px 6px;
  }
  .compare-bar__actions {
    flex-wrap: wrap;
    gap: 4px;
  }
  .compare-bar__btn {
    flex: 1;
    min-width: 0;
    text-align: center;
  }
  .compare-bar__index {
    display: none;
  }

  /* ── Track rows ──────────────────────────────────────────────────────── */
  .track {
    padding: 8px 2px;
    gap: 6px;
  }
  .track__number {
    width: 22px;
    font-size: 9px;
  }
  .track__title {
    font-size: 13px;
  }

  /* ── Variants panel ──────────────────────────────────────────────────── */
  .variant-row {
    padding: 8px 6px;
    gap: 6px;
  }
  .variant-row__platform {
    width: 45px;
    font-size: 9px;
  }
  .variant-row__duration {
    display: none;
  }

  /* ── Now-Playing Panel ───────────────────────────────────────────────── */
  .np-track-info__title {
    font-size: 20px;
  }
  .np-art {
    width: 65vw;
  }

  /* ── Gallery ─────────────────────────────────────────────────────────── */
  .gallery-overlay__inner {
    padding: 16px 8px 32px;
  }
  .gallery-overlay__song-title {
    font-size: 16px;
  }

  /* ── Playlist header ─────────────────────────────────────────────────── */
  .playlist-header__icon {
    width: 120px;
    height: 120px;
    font-size: 40px;
  }
  .playlist-header__title {
    font-size: 22px;
  }
  .playlist-header__actions {
    flex-direction: column;
  }
  .playlist-header__actions .btn-primary,
  .playlist-header__actions .btn-secondary,
  .playlist-header__actions .btn-danger,
  .playlist-header__actions .btn-text {
    width: 100%;
    text-align: center;
    min-height: 44px;
  }

  /* ── Context menu ────────────────────────────────────────────────────── */
  .context-menu {
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    min-width: 0;
  }

  /* ── Theme-specific small mobile overrides ────────────────────────────── */
  .theme-command .album-header__title {
    font-size: 14px;
  }
  .theme-command .track__title {
    font-size: 9px;
  }
  .theme-luxury .album-header__title {
    font-size: 20px;
  }
}
