/* ═══════════════════════════════════════════════════════════
   SpotifyX  —  Discord × Spotify Fusion Theme
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --bg:           #0a0a14;
  --bg-2:         #111122;
  --bg-card:      rgba(20, 20, 38, 0.88);
  --bg-sidebar:   rgba(14, 14, 28, 0.92);
  --bg-item:      rgba(255, 255, 255, 0.04);
  --bg-item-h:    rgba(255, 255, 255, 0.08);

  --green:        #1db954;
  --green-dim:    rgba(29, 185, 84, 0.2);
  --purple:       #5865f2;
  --purple-dim:   rgba(88, 101, 242, 0.2);
  --grad:         linear-gradient(135deg, #1db954 0%, #5865f2 100%);
  --grad-r:       linear-gradient(135deg, #5865f2 0%, #1db954 100%);

  --text:         #ffffff;
  --text-2:       #b9bbbe;
  --text-3:       #72767d;

  --border:       rgba(255, 255, 255, 0.07);
  --border-h:     rgba(255, 255, 255, 0.14);
  --shadow:       0 24px 64px rgba(0, 0, 0, 0.7);
  --radius:       20px;
  --radius-sm:    10px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --t:            all 0.25s var(--ease);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  user-select: none;
}

/* ── Global backgrounds ─────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 60%, rgba(88,101,242,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(29,185,84,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Particles ──────────────────────────────────────────── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: particle-rise linear infinite;
}
@keyframes particle-rise {
  0%   { transform: translateY(105vh) scale(0);   opacity: 0; }
  8%   { opacity: 0.7; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-8vh)  scale(1.2); opacity: 0; }
}

/* ── App Shell ──────────────────────────────────────────── */
.app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 62px;
  flex-shrink: 0;
  background: rgba(10, 10, 20, 0.82);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

/* Logo */
.header-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 34px; height: 34px; flex-shrink: 0; }
.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav */
.header-nav {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}
.nav-btn {
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--t);
}
.nav-btn:hover { color: var(--text); background: var(--bg-item-h); }
.nav-btn.active {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 2px 12px rgba(88,101,242,0.35);
}

/* Header right */
.header-right { display: flex; align-items: center; gap: 14px; }
.header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-3);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  transition: background 0.4s;
  flex-shrink: 0;
}
.status-dot.playing {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--t);
  border: 2px solid transparent;
}
.user-avatar:hover { transform: scale(1.08); box-shadow: 0 0 18px rgba(88,101,242,0.5); }

/* ═══════════════════════════════════════════════════════════
   MAIN GRID
   ═══════════════════════════════════════════════════════════ */
.main {
  display: grid;
  grid-template-columns: 268px 1fr 230px;
  flex: 1;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR — Queue
   ═══════════════════════════════════════════════════════════ */
.sidebar {
  background: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-header {
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.sidebar-header h2 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-3);
}
.queue-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--grad);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.queue-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.queue-list::-webkit-scrollbar { width: 4px; }
.queue-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

/* Queue item */
.queue-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--t);
  margin-bottom: 2px;
  position: relative;
}
.queue-item:hover { background: var(--bg-item-h); }
.queue-item.active { background: rgba(29,185,84,0.1); }
.queue-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--green);
  border-radius: 0 2px 2px 0;
}

.qi-art {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.qi-art-gradient {
  position: absolute;
  inset: 0;
}
.qi-equalizer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
}
.qi-bar {
  width: 3px;
  background: rgba(255,255,255,0.9);
  border-radius: 1px;
  animation: qi-eq 0.8s ease-in-out infinite alternate;
}
.qi-bar:nth-child(1) { animation-duration: 0.6s; animation-delay: 0s; }
.qi-bar:nth-child(2) { animation-duration: 0.9s; animation-delay: 0.15s; }
.qi-bar:nth-child(3) { animation-duration: 0.7s; animation-delay: 0.3s; }
@keyframes qi-eq {
  0%   { height: 4px; }
  100% { height: 18px; }
}
.qi-music-icon {
  position: relative;
  z-index: 1;
  opacity: 0.7;
}

.qi-info { flex: 1; min-width: 0; }
.qi-title {
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qi-artist {
  font-size: 0.73rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.queue-item.active .qi-title { color: var(--green); }
.qi-dur {
  font-size: 0.72rem;
  color: var(--text-3);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════
   PLAYER AREA
   ═══════════════════════════════════════════════════════════ */
.player-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.player-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%,
    rgba(29,185,84,0.12) 0%, transparent 70%);
  transition: background 1.2s ease;
  pointer-events: none;
}

/* ── Card ──────────────────────────────────────────────── */
.player-card {
  background: var(--bg-card);
  backdrop-filter: blur(40px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px 32px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 1s ease;
}
/* Card top-edge highlight */
.player-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: var(--grad);
  opacity: 0.5;
  border-radius: 0 0 4px 4px;
}
/* Subtle card shimmer */
.player-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 30%, rgba(255,255,255,0.025) 50%, transparent 70%);
  pointer-events: none;
}

/* ── Album Art ─────────────────────────────────────────── */
.album-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Decorative spinning rings */
.album-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ring-spin linear infinite;
}
.ring-outer {
  width: 270px; height: 270px;
  border-color: rgba(255,255,255,0.05);
  animation-duration: 40s;
}
.ring-mid {
  width: 320px; height: 320px;
  border-color: rgba(255,255,255,0.03);
  animation-duration: 60s;
  animation-direction: reverse;
}
@keyframes ring-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.album-glow {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,185,84,0.45) 0%, transparent 70%);
  animation: glow-breathe 3s ease-in-out infinite;
  transition: background 1s ease;
  pointer-events: none;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; transform: scale(1);    }
  50%       { opacity: 1;    transform: scale(1.08); }
}

.album-art {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.7), 0 0 0 3px rgba(255,255,255,0.08);
  animation: vinyl-spin 24s linear infinite;
  animation-play-state: paused;
  transition: box-shadow 0.6s ease;
  z-index: 1;
}
.album-art.playing { animation-play-state: running; }
.album-art.playing {
  box-shadow: 0 12px 48px rgba(0,0,0,0.7), 0 0 0 3px var(--green), 0 0 24px rgba(29,185,84,0.3);
}
@keyframes vinyl-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Vinyl gradient fill */
.album-gradient {
  position: absolute;
  inset: 0;
  transition: background 0.8s ease;
}
/* Vinyl groove texture overlay */
.album-texture {
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(
    circle at center,
    transparent            0px,
    transparent            6px,
    rgba(0, 0, 0, 0.08)   6px,
    rgba(0, 0, 0, 0.08)   7px
  );
  border-radius: 50%;
}
/* Center hole */
.album-center-hole {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
  z-index: 2;
}
/* Label area inside center */
.album-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  backdrop-filter: blur(4px);
}

/* ── Track Info ────────────────────────────────────────── */
.track-info { text-align: center; width: 100%; }
.track-title-scroll { overflow: hidden; width: 100%; }
.track-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: info-enter 0.4s var(--ease) both;
}
.track-artist {
  font-size: 1rem;
  color: var(--text-2);
  margin-top: 5px;
  animation: info-enter 0.4s var(--ease) 0.08s both;
}
.track-album {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 3px;
  animation: info-enter 0.4s var(--ease) 0.14s both;
}
@keyframes info-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── Equalizer ─────────────────────────────────────────── */
.equalizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 36px;
  width: 100%;
}
.eq-bar {
  width: 4px;
  border-radius: 2px 2px 0 0;
  background: var(--grad);
  animation: eq-dance var(--dur, 0.8s) ease-in-out infinite alternate;
  animation-play-state: paused;
  min-height: 3px;
}
.eq-bar.playing { animation-play-state: running; }
@keyframes eq-dance {
  0%   { height: 3px; }
  100% { height: var(--h, 28px); }
}

/* ── Progress ──────────────────────────────────────────── */
.progress-section {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
}
.time-stamp {
  font-size: 0.73rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
}
.time-stamp:last-child { text-align: right; }

.progress-track {
  flex: 1;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}
.progress-track::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  transition: height 0.15s ease;
}
.progress-track:hover::before { height: 6px; }

.progress-fill {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: var(--grad);
  border-radius: 2px;
  pointer-events: none;
  transition: width 1s linear, height 0.15s ease;
  overflow: hidden;
  z-index: 1;
}
.progress-track:hover .progress-fill { height: 6px; }

.progress-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg,
    transparent 20%, rgba(255,255,255,0.35) 50%, transparent 80%);
  animation: shine-move 2.4s ease-in-out infinite;
}
@keyframes shine-move {
  0%   { left: -100%; }
  100% { left: 200%;  }
}

.progress-thumb {
  position: absolute;
  top: 50%; z-index: 2;
  transform: translate(-50%, -50%) scale(0);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  pointer-events: none;
  transition: transform 0.15s ease;
}
.progress-track:hover .progress-thumb { transform: translate(-50%, -50%) scale(1); }

/* ── Controls ──────────────────────────────────────────── */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}
.ctrl-btn {
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--t);
  position: relative;
  flex-shrink: 0;
}
.ctrl-btn:hover { color: var(--text); background: var(--bg-item-h); transform: scale(1.08); }
.ctrl-btn:active { transform: scale(0.93); }

.ctrl-sm { width: 40px; height: 40px; }
.ctrl-sm svg { width: 20px; height: 20px; }
.ctrl-md { width: 44px; height: 44px; }
.ctrl-md svg { width: 24px; height: 24px; }

/* Play button — large gradient circle */
.ctrl-play {
  width: 62px; height: 62px;
  background: var(--grad);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(29,185,84,0.45);
}
.ctrl-play svg { width: 30px; height: 30px; }
.ctrl-play:hover {
  color: #fff;
  background: linear-gradient(135deg, #23d45e, #6d7cf5);
  box-shadow: 0 6px 30px rgba(29,185,84,0.6);
  transform: scale(1.1);
}
.icon-pause { display: none; }

/* Toggle active state */
.ctrl-toggle.active { color: var(--green); }
.ctrl-toggle.active::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
}

/* Repeat "1" badge */
.repeat-one-badge {
  display: none;
  position: absolute;
  top: 2px; right: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  font-size: 8px;
  font-weight: 900;
  line-height: 13px;
  text-align: center;
}
#repeatBtn[data-state="one"] .repeat-one-badge { display: block; }

/* Like button */
.ctrl-like { color: var(--text-3); }
.ctrl-like:hover { color: #e74c3c; background: rgba(231,76,60,0.12); }
.ctrl-like.liked { color: #e74c3c; animation: like-pop 0.35s ease; }
@keyframes like-pop {
  0%   { transform: scale(1);   }
  45%  { transform: scale(1.45); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1);   }
}

/* ── Secondary Controls ────────────────────────────────── */
.secondary-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ctrl-vol-icon svg { width: 20px; height: 20px; }
.volume-track {
  width: 88px;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}
.volume-track::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  transition: height 0.15s;
}
.volume-track:hover::before { height: 6px; }
.volume-fill {
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: rgba(255,255,255,0.55);
  border-radius: 2px;
  pointer-events: none;
  transition: width 0.1s, height 0.15s, background 0.25s;
  z-index: 1;
}
.volume-track:hover .volume-fill { height: 6px; background: var(--grad); }
.volume-thumb {
  position: absolute;
  top: 50%; z-index: 2;
  transform: translate(-50%, -50%) scale(0);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.5);
  pointer-events: none;
  transition: transform 0.15s ease;
}
.volume-track:hover .volume-thumb { transform: translate(-50%, -50%) scale(1); }
.volume-label {
  font-size: 0.7rem;
  color: var(--text-3);
  min-width: 28px;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════
   RIGHT PANEL
   ═══════════════════════════════════════════════════════════ */
.right-panel {
  background: var(--bg-sidebar);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.06) transparent;
}
.panel-section {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.panel-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-3);
  margin-bottom: 12px;
}

/* Next track card */
.next-track-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-item);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--t);
}
.next-track-card:hover { background: var(--bg-item-h); border-color: var(--border-h); }
.nt-art {
  width: 38px; height: 38px;
  border-radius: 7px;
  flex-shrink: 0;
}
.nt-info { min-width: 0; }
.nt-title {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nt-artist {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stats */
.stats-grid {
  display: flex;
  gap: 20px;
}
.stat-item { display: flex; flex-direction: column; gap: 3px; }
.stat-val {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-lbl {
  font-size: 0.68rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Shortcuts */
.shortcuts-list { display: flex; flex-direction: column; gap: 7px; }
.shortcut {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--text-3);
}
kbd {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 0.7rem;
  font-family: inherit;
  color: var(--text-2);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   FLOATING HEARTS
   ═══════════════════════════════════════════════════════════ */
.hearts-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.floating-heart {
  position: absolute;
  font-size: 1.5rem;
  animation: heart-float 1.8s ease forwards;
  pointer-events: none;
}
@keyframes heart-float {
  0%   { transform: translateY(0) scale(1)  rotate(-10deg); opacity: 1; }
  60%  { opacity: 0.8; }
  100% { transform: translateY(-180px) scale(1.6) rotate(10deg); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ═══════════════════════════════════════════════════════════
   LOGIN OVERLAY
   ═══════════════════════════════════════════════════════════ */
.login-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  overflow: hidden;
}
.login-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  backdrop-filter: blur(40px);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px 44px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  animation: card-in 0.5s var(--ease) both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: var(--grad);
  opacity: 0.6;
  border-radius: 0 0 4px 4px;
}
.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-logo svg { width: 42px; height: 42px; flex-shrink: 0; }
.login-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.login-card p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 32px;
}
.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--t);
  box-shadow: 0 4px 24px rgba(29,185,84,0.4);
}
.login-btn:hover {
  background: #1ed760;
  transform: scale(1.04);
  box-shadow: 0 6px 32px rgba(29,185,84,0.55);
}
.login-btn:active { transform: scale(0.97); }
.login-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.72rem !important;
  color: var(--text-3) !important;
  margin-top: 18px !important;
  margin-bottom: 0 !important;
}
.login-error {
  margin-top: 14px;
  font-size: 0.8rem;
  color: #e74c3c;
  min-height: 18px;
}

/* ═══════════════════════════════════════════════════════════
   ALBUM ART — real image
   ═══════════════════════════════════════════════════════════ */
.album-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: opacity 0.5s ease;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════════
   SDK NOTICE (connecting spinner)
   ═══════════════════════════════════════════════════════════ */
.sdk-notice {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,20,0.7);
  backdrop-filter: blur(8px);
  z-index: 10;
  border-radius: var(--radius);
  transition: opacity 0.4s ease;
}
.sdk-notice.hidden { opacity: 0; pointer-events: none; }
.sdk-notice-inner { text-align: center; }
.sdk-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin-loader 0.8s linear infinite;
  margin: 0 auto 14px;
}
@keyframes spin-loader {
  to { transform: rotate(360deg); }
}
.sdk-notice p { font-size: 0.88rem; color: var(--text-2); }

/* ═══════════════════════════════════════════════════════════
   HEADER ADDITIONS
   ═══════════════════════════════════════════════════════════ */
.logout-btn {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  transition: var(--t);
}
.logout-btn:hover { color: #e74c3c; background: rgba(231,76,60,0.1); }

/* Avatar with real image */
.user-avatar {
  position: relative;
  overflow: hidden;
}
.user-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ═══════════════════════════════════════════════════════════
   QUEUE PLACEHOLDER & DEVICE INFO
   ═══════════════════════════════════════════════════════════ */
.queue-placeholder {
  padding: 28px 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.7;
}
.panel-empty {
  font-size: 0.8rem;
  color: var(--text-3);
}
.device-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-item);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.device-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#deviceName {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — hide panels on narrow screens
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .main { grid-template-columns: 1fr; }
  .sidebar, .right-panel { display: none; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .main { grid-template-columns: 240px 1fr; }
  .right-panel { display: none; }
}
