
/* ── SIGN OUT BUTTON in header ── */
.btn-signout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-signout:hover {
  border-color: rgba(192, 132, 252, 0.5);
  color: #C084FC;
  background: rgba(147, 51, 234, 0.08);
}

/* ===== Sonara — dark theme, glassmorphism, purple accents ===== */
:root {
  --bg-dark: #0a0a0c;
  --bg-panel: rgba(22, 16, 42, 0.8);
  --bg-card: rgba(30, 22, 54, 0.7);
  --purple: #9333EA;
  --purple-glow: rgba(147, 51, 234, 0.55);
  --purple-light: #C084FC;
  --blue: #6366F1;
  --text: #F5F3FF;
  --text-muted: #A89BC0;
  --border: rgba(255, 255, 255, 0.1);
  --sidebar-width: 220px;
  --player-height: 90px;
  --radius: 12px;
  --radius-sm: 8px;
  --seek-progress: 0%;
  /* Tint for notification and queue icons (dark icon → theme color) */
  --icon-tint-filter: brightness(0) saturate(100%) invert(0.42) sepia(0.65) saturate(9) hue-rotate(235deg);
}

/* Utility: hide elements (auth buttons, etc.) */
.hidden {
  display: none !important;
}

/* Theme presets: apply via data-theme on html */
[data-theme="retro"] {
  --bg-dark: #1a1510;
  --bg-panel: rgba(45, 35, 25, 0.9);
  --bg-card: rgba(60, 48, 38, 0.7);
  --purple: #c9a227;
  --purple-glow: rgba(201, 162, 39, 0.4);
  --purple-light: #e6c547;
  --blue: #b8860b;
  --border: rgba(201, 162, 39, 0.15);
  --icon-tint-filter: brightness(0) saturate(100%) invert(0.75) sepia(0.6) saturate(5) hue-rotate(15deg);
}
[data-theme="retro"] .bg-waves {
  background: radial-gradient(circle at 20% 20%, rgba(201, 162, 39, 0.2), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(184, 134, 11, 0.15), transparent 50%),
    linear-gradient(180deg, #1a1510 0%, #251e16 100%);
}
[data-theme="futuristic"] {
  --bg-dark: #0a0e17;
  --bg-panel: rgba(10, 20, 40, 0.9);
  --bg-card: rgba(20, 35, 60, 0.6);
  --purple: #00d4ff;
  --purple-glow: rgba(0, 212, 255, 0.5);
  --purple-light: #33ddff;
  --blue: #ff00aa;
  --border: rgba(0, 212, 255, 0.2);
  --icon-tint-filter: brightness(0) saturate(100%) invert(0.8) sepia(0.5) saturate(8) hue-rotate(165deg);
}
[data-theme="futuristic"] .bg-waves {
  background: radial-gradient(circle at 15% 15%, rgba(0, 212, 255, 0.25), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(255, 0, 170, 0.2), transparent 55%),
    linear-gradient(180deg, #0a0e17 0%, #0d1220 100%);
}
[data-theme="minimal"] {
  --bg-dark: #0d0d0d;
  --bg-panel: rgba(25, 25, 25, 0.95);
  --bg-card: rgba(35, 35, 35, 0.8);
  --purple: #e0e0e0;
  --purple-glow: rgba(255, 255, 255, 0.15);
  --purple-light: #ffffff;
  --blue: #b0b0b0;
  --border: rgba(255, 255, 255, 0.1);
  --icon-tint-filter: brightness(0) saturate(100%) invert(0.95);
}
[data-theme="minimal"] .bg-waves {
  background: linear-gradient(180deg, #0d0d0d 0%, #111 100%);
}
[data-theme="minimal"] .bg-waves::before {
  opacity: 0;
}
[data-theme="warm"] {
  --bg-dark: #1a1510;
  --bg-panel: rgba(50, 38, 28, 0.9);
  --bg-card: rgba(65, 50, 38, 0.75);
  --purple: #e6a823;
  --purple-glow: rgba(230, 168, 35, 0.45);
  --purple-light: #f0c040;
  --blue: #c9921a;
  --border: rgba(230, 168, 35, 0.18);
  --icon-tint-filter: brightness(0) saturate(100%) invert(0.78) sepia(0.55) saturate(6) hue-rotate(15deg);
}
[data-theme="warm"] .bg-waves {
  background: radial-gradient(circle at 25% 25%, rgba(230, 168, 35, 0.22), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(201, 146, 26, 0.18), transparent 55%),
    linear-gradient(180deg, #1a1510 0%, #221a12 100%);
}
[data-theme="sunset"] {
  --bg-dark: #1a0f12;
  --bg-panel: rgba(55, 28, 35, 0.9);
  --bg-card: rgba(70, 38, 48, 0.75);
  --purple: #e85a6b;
  --purple-glow: rgba(232, 90, 107, 0.45);
  --purple-light: #f07888;
  --blue: #c94a5a;
  --border: rgba(232, 90, 107, 0.2);
  --icon-tint-filter: brightness(0) saturate(100%) invert(0.5) sepia(0.7) saturate(7) hue-rotate(340deg);
}
[data-theme="sunset"] .bg-waves {
  background: radial-gradient(circle at 20% 30%, rgba(232, 90, 107, 0.3), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(180, 60, 80, 0.25), transparent 55%),
    linear-gradient(180deg, #1a0f12 0%, #251218 100%);
}

/* Sonara Glow — dark blue-grey, rich red/orange/gold (S logo style) */
[data-theme="sonaraGlow"] {
  --bg-dark: #0e1117;
  --bg-panel: rgba(24, 28, 38, 0.94);
  --bg-card: rgba(38, 42, 55, 0.78);
  --purple: #e84a28;
  --purple-glow: rgba(232, 74, 40, 0.55);
  --purple-light: #ff6b35;
  --blue: #e6b84a;
  --border: rgba(232, 74, 40, 0.22);
  --icon-tint-filter: brightness(0) saturate(100%) invert(0.48) sepia(0.85) saturate(6) hue-rotate(355deg);
}
[data-theme="sonaraGlow"] .bg-waves {
  background: radial-gradient(circle at 25% 20%, rgba(232, 74, 40, 0.22), transparent 50%),
    radial-gradient(circle at 75% 80%, rgba(230, 184, 74, 0.18), transparent 50%),
    linear-gradient(180deg, #0e1117 0%, #141a24 100%);
}

/* Ocean — deep teal/cyan, calm professional */
[data-theme="ocean"] {
  --bg-dark: #0f172a;
  --bg-panel: rgba(15, 23, 42, 0.92);
  --bg-card: rgba(30, 41, 59, 0.75);
  --purple: #0d9488;
  --purple-glow: rgba(13, 148, 136, 0.5);
  --purple-light: #22d3ee;
  --blue: #06b6d4;
  --border: rgba(34, 211, 238, 0.2);
  --icon-tint-filter: brightness(0) saturate(100%) invert(0.7) sepia(0.5) saturate(8) hue-rotate(165deg);
}
[data-theme="ocean"] .bg-waves {
  background: radial-gradient(circle at 15% 20%, rgba(13, 148, 136, 0.25), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(6, 182, 212, 0.2), transparent 55%),
    linear-gradient(180deg, #0f172a 0%, #0c1222 100%);
}

/* Forest — emerald/lime, organic natural */
[data-theme="forest"] {
  --bg-dark: #052e16;
  --bg-panel: rgba(5, 46, 22, 0.92);
  --bg-card: rgba(20, 83, 45, 0.7);
  --purple: #059669;
  --purple-glow: rgba(5, 150, 105, 0.5);
  --purple-light: #34d399;
  --blue: #84cc16;
  --border: rgba(132, 204, 22, 0.2);
  --icon-tint-filter: brightness(0) saturate(100%) invert(0.65) sepia(0.6) saturate(6) hue-rotate(115deg);
}
[data-theme="forest"] .bg-waves {
  background: radial-gradient(circle at 20% 25%, rgba(5, 150, 105, 0.22), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(132, 204, 22, 0.18), transparent 55%),
    linear-gradient(180deg, #052e16 0%, #064e3b 100%);
}

/* Aurora — indigo/pink, northern lights dreamy */
[data-theme="aurora"] {
  --bg-dark: #0c0a1d;
  --bg-panel: rgba(30, 27, 75, 0.9);
  --bg-card: rgba(49, 46, 129, 0.6);
  --purple: #4f46e5;
  --purple-glow: rgba(79, 70, 229, 0.5);
  --purple-light: #818cf8;
  --blue: #ec4899;
  --border: rgba(236, 72, 153, 0.25);
  --icon-tint-filter: brightness(0) saturate(100%) invert(0.45) sepia(0.7) saturate(8) hue-rotate(260deg);
}
[data-theme="aurora"] .bg-waves {
  background: radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.3), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.25), transparent 55%),
    linear-gradient(180deg, #0c0a1d 0%, #1e1b4b 100%);
}

/* Accent color override (when user picks a specific accent) */
[data-accent="purple"] { --purple: #9333EA; --purple-glow: rgba(147, 51, 234, 0.55); --purple-light: #C084FC; --icon-tint-filter: brightness(0) saturate(100%) invert(0.42) sepia(0.65) saturate(9) hue-rotate(235deg); }
[data-accent="blue"] { --purple: #4169E1; --purple-glow: rgba(65, 105, 225, 0.5); --purple-light: #6b8cff; --icon-tint-filter: brightness(0) saturate(100%) invert(0.38) sepia(0.7) saturate(8) hue-rotate(215deg); }
[data-accent="cyan"] { --purple: #06b6d4; --purple-glow: rgba(6, 182, 212, 0.5); --purple-light: #22d3ee; --icon-tint-filter: brightness(0) saturate(100%) invert(0.7) sepia(0.5) saturate(8) hue-rotate(165deg); }
[data-accent="amber"] { --purple: #f59e0b; --purple-glow: rgba(245, 158, 11, 0.5); --purple-light: #fbbf24; --icon-tint-filter: brightness(0) saturate(100%) invert(0.78) sepia(0.6) saturate(6) hue-rotate(15deg); }
[data-accent="green"] { --purple: #10b981; --purple-glow: rgba(16, 185, 129, 0.5); --purple-light: #34d399; --icon-tint-filter: brightness(0) saturate(100%) invert(0.65) sepia(0.6) saturate(6) hue-rotate(115deg); }
[data-accent="coral"] { --purple: #e85a6b; --purple-glow: rgba(232, 90, 107, 0.5); --purple-light: #f07888; --icon-tint-filter: brightness(0) saturate(100%) invert(0.5) sepia(0.7) saturate(7) hue-rotate(340deg); }
[data-accent="rose"] { --purple: #f43f5e; --purple-glow: rgba(244,63,94,0.5); --purple-light: #fb7185; --icon-tint-filter: brightness(0) saturate(100%) invert(0.5) sepia(0.8) saturate(8) hue-rotate(320deg); }
[data-accent="indigo"] { --purple: #6366f1; --purple-glow: rgba(99,102,241,0.5); --purple-light: #818cf8; --icon-tint-filter: brightness(0) saturate(100%) invert(0.45) sepia(0.7) saturate(8) hue-rotate(225deg); }
[data-accent="teal"] { --purple: #14b8a6; --purple-glow: rgba(20,184,166,0.5); --purple-light: #2dd4bf; --icon-tint-filter: brightness(0) saturate(100%) invert(0.65) sepia(0.6) saturate(7) hue-rotate(145deg); }
[data-accent="gold"] { --purple: #d97706; --purple-glow: rgba(217,119,6,0.5); --purple-light: #f59e0b; --icon-tint-filter: brightness(0) saturate(100%) invert(0.7) sepia(0.7) saturate(6) hue-rotate(5deg); }

/* Progress bar style */
.player-bar[data-progress-style="pill"] .seek-slider { height: 10px; border-radius: 999px; }
.player-bar[data-progress-style="pill"] .progress-bar { align-items: stretch; }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background: deep navy + soft purple/blue glows */
.bg-waves {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #0a0818;
  overflow: hidden;
}
.bg-waves::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 5% -5%, rgba(147,51,234,.55) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 95% 95%, rgba(99,102,241,.45) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 55% 35%, rgba(168,85,247,.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 20% 75%, rgba(79,70,229,.22) 0%, transparent 50%),
    linear-gradient(160deg, #10082a 0%, #0a0818 40%, #0c0a20 100%);
  pointer-events: none;
}
.bg-waves::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
}
@keyframes orbPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .75; transform: scale(1.08); } }
@keyframes waveMove { 0% { transform: translateX(0); } 100% { transform: translateX(-400px); } }
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orbPulse 8s ease-in-out infinite;
}
.bg-orb-1 { width: 600px; height: 600px; top: -200px; left: -150px; background: radial-gradient(circle, rgba(147,51,234,.3) 0%, transparent 70%); animation-delay: 0s; }
.bg-orb-2 { width: 500px; height: 500px; bottom: -100px; right: -100px; background: radial-gradient(circle, rgba(99,102,241,.25) 0%, transparent 70%); animation-delay: -4s; }
.bg-orb-3 { width: 350px; height: 350px; top: 40%; left: 45%; background: radial-gradient(circle, rgba(192,132,252,.12) 0%, transparent 70%); animation-delay: -2s; animation-duration: 12s; }

.app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Glass effect utility */
.glass {
  background: rgba(20,14,40,.7);
  backdrop-filter: blur(36px) saturate(180%) brightness(1.06);
  -webkit-backdrop-filter: blur(36px) saturate(180%) brightness(1.06);
  border: 1px solid color-mix(in srgb, rgba(147,51,234,.22) 70%, var(--border));
  box-shadow:
    0 10px 44px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.09);
  transition: background 0.38s ease, border-color 0.38s ease, box-shadow 0.38s ease;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  /* Grid + minmax(0,1fr): guarantees .nav-main has a capped height so overflow-y scrolls.
     Pure flex+flex:1 can fail in some engines when the nav grows with content (“frozen” scroll). */
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: start;
  min-height: 0;
  background: color-mix(in srgb, var(--bg-panel) 94%, var(--purple) 6%);
  backdrop-filter: blur(34px) saturate(165%);
  -webkit-backdrop-filter: blur(34px) saturate(165%);
  border-right: 1px solid color-mix(in srgb, var(--border) 55%, var(--purple) 45%);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.055),
    6px 0 32px rgba(0, 0, 0, 0.28);
  z-index: 10;
  overflow: hidden;
  transition: background 0.38s ease, border-color 0.38s ease, box-shadow 0.38s ease;
}

.logo {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.2rem 0.65rem;
  padding: 1.1rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo-icon {
  grid-row: 1;
}

.logo-text {
  grid-row: 1;
}

.logo-tagline {
  grid-column: 1 / -1;
  grid-row: 2;
}

.logo-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--purple) 35%, transparent),
    0 0 28px color-mix(in srgb, var(--purple-glow) 75%, transparent),
    0 0 52px color-mix(in srgb, var(--purple-glow) 35%, transparent);
  overflow: hidden;
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: none;
}

.logo-text {
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -.04em;
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg,
    #fff 0%,
    color-mix(in srgb, var(--purple-light) 85%, #fff) 38%,
    var(--purple-light) 72%,
    var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--purple-glow) 70%, transparent))
    drop-shadow(0 0 20px color-mix(in srgb, var(--purple-glow) 40%, transparent));
  transition: filter 0.35s ease;
}

.logo-tagline {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  background: linear-gradient(to right,
    var(--purple) 0%,
    color-mix(in srgb, #fff 92%, var(--purple-light)) 42%,
    color-mix(in srgb, var(--purple-light) 88%, #fff) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: .1rem;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--purple-glow) 55%, transparent));
  transition: filter 0.35s ease;
}

.nav-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.75rem 0;
  padding-bottom: 16px;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(147,51,234,0.25) transparent;
}
.nav-main::-webkit-scrollbar { width: 3px; }
.nav-main::-webkit-scrollbar-thumb { background: rgba(147,51,234,0.25); border-radius: 2px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
  background: var(--purple);
  color: white;
  box-shadow: 0 0 20px var(--purple-glow);
}

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 1rem;
  flex-shrink: 0;
}

.nav-secondary {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0 0.75rem 0.5rem;
  flex-shrink: 0;
}

.nav-secondary .nav-item {
  font-size: 0.9rem;
}

/* ===== Main content ===== */
.main {
  margin-left: var(--sidebar-width);
  padding-bottom: var(--player-height);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg-panel) 88%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, var(--purple) 35%);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  transition: background 0.38s ease, border-color 0.38s ease, box-shadow 0.38s ease;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  max-width: 400px;
  flex: 1;
}

.search-bar svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.search-bar input {
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
  width: 100%;
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-profile-tray {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  max-width: min(200px, 28vw);
}

.header-profile-name {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  text-shadow: none;
  transition: color 0.2s ease;
}

.header-profile-tray:hover .header-profile-name {
  color: #ffffff;
}

@media (max-width: 520px) {
  .header-profile-name {
    display: none;
  }
}

.auth-entry-btn {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.auth-entry-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.auth-entry-btn-primary {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}

.auth-entry-btn-primary:hover {
  background: var(--purple-light);
  border-color: var(--purple-light);
  color: white;
  box-shadow: 0 0 12px var(--purple-glow);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.icon-btn-notification,
.icon-btn-settings {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Notification and queue icons: original logos from v3_4 (pre-styled, no filter so they match reference) */
.notification-icon-img,
.queue-icon-img,
.settings-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  filter: none;
}
.player-bar-settings-btn .settings-icon-img {
  width: 14px;
  height: 14px;
}
.icon-btn-notification .notification-icon-img {
  width: 30px;
  height: 30px;
}
.player-btn-queue .queue-icon-img {
  width: 22px;
  height: 22px;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px var(--purple-glow);
}

.profile-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--purple);
  cursor: pointer;
  padding: 0;
}

.profile-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Header profile: circular crystal avatar (details in futurist-icon-tile.css). */
a.profile-btn.futurist-icon-profile {
  border: none;
  border-radius: 50%;
  background: transparent;
}

.main-content {
  padding: 1.5rem 2rem;
  flex: 1;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

/* Sections */
.section {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.section.hero .section-title {
  font-size: 2.6rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section.hero .section-subtitle {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-head .section-title {
  margin-bottom: 0;
}

.nav-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-arrow:hover {
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 0 15px var(--purple-glow);
}

/* Hero layout: chart + artist card */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: start;
}

.chart-card {
  border-radius: var(--radius);
  padding: 1.5rem;
}

.chart-container {
  height: 200px;
  margin-bottom: 1.25rem;
}

.genre-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.genre-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.genre-pill:hover,
.genre-pill.active {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  box-shadow: 0 0 15px var(--purple-glow);
}

.genre-pill strong,
.genre-pill span {
  margin-left: 0.25rem;
}

/* Artist card */
.artist-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.artist-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid var(--purple);
  box-shadow: 0 0 25px var(--purple-glow);
}

.artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.artist-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.artist-followers {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.artist-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.artist-social a {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
}

.artist-social a:hover {
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 0 12px var(--purple-glow);
}

/* Hero: Made for You (hero-redesign) */
.hero-redesign .hero-redesign-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.hero-featured {
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

.hero-featured-art {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1rem;
}

.hero-featured-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-play-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--purple);
  border: none;
  color: white;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.25s;
  box-shadow: 0 0 20px var(--purple-glow);
}

.hero-featured:hover .hero-play-btn {
  opacity: 1;
}

.hero-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 28px var(--purple-glow);
}

.hero-featured-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.hero-featured-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.hero-quick-picks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-pick-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.quick-pick-card:hover {
  background: rgba(147, 51, 234, 0.12);
  border-color: var(--purple);
  box-shadow: 0 0 15px var(--purple-glow);
}

.quick-pick-art {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.quick-pick-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-pick-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-artist-row {
  margin-top: 0;
}

.hero-redesign .artist-card {
  max-width: 400px;
}

@media (max-width: 900px) {
  .hero-redesign .hero-redesign-layout {
    grid-template-columns: 1fr;
  }

  .hero-quick-picks {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .quick-pick-card {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 140px;
  }
}

/* Browse filters: Mood + Activity */
.browse-filters-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.browse-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.browse-filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  min-width: 70px;
}

.browse-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.browse-filter-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.browse-filter-pill:hover,
.browse-filter-pill.active {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  box-shadow: 0 0 12px var(--purple-glow);
}

@media (max-width: 600px) {
  .browse-filter-group {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Artist profile (musician page) */
.artist-profile-section {
  padding-top: 1rem;
}

.artist-profile-back {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 1.25rem;
  transition: all 0.2s;
}

.artist-profile-back:hover {
  border-color: var(--purple);
  color: var(--purple-light);
}

.artist-profile-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .artist-profile-layout {
    grid-template-columns: 1fr;
  }
}

.artist-profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.artist-profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--purple);
  box-shadow: 0 0 20px var(--purple-glow);
}

.artist-profile-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.artist-profile-stats {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.artist-profile-featured {
  padding: 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.artist-profile-featured-inner {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.artist-profile-featured-cover {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.artist-profile-featured-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-profile-featured-play {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple);
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 0 16px var(--purple-glow);
  transition: transform 0.2s;
}

.artist-profile-featured-play:hover {
  transform: scale(1.08);
}

.artist-profile-featured-info {
  flex: 1;
  min-width: 0;
}

.artist-profile-featured-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.artist-profile-featured-subtitle {
  font-size: 0.9rem;
  color: var(--purple-light);
  margin: 0 0 0.25rem;
}

.artist-profile-featured-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.artist-profile-section-block {
  margin-bottom: 1.5rem;
}

.artist-profile-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--purple-light);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.artist-profile-track-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.artist-profile-track-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.artist-profile-track-row:hover {
  background: rgba(147, 51, 234, 0.12);
  border-color: rgba(147, 51, 234, 0.3);
}

.artist-profile-track-row img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

.artist-profile-track-row-info {
  flex: 1;
  min-width: 0;
}

.artist-profile-track-row-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-profile-track-row-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.artist-profile-track-row-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple);
  border: none;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0;
  transition: all 0.2s;
}

.artist-profile-track-row:hover .artist-profile-track-row-play {
  opacity: 1;
}

.artist-profile-sidebar {
  position: sticky;
  top: 1rem;
}

.artist-profile-sidebar-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-light);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.artist-profile-playlists {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.artist-profile-playlist-item {
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.artist-profile-playlist-item:hover {
  background: rgba(147, 51, 234, 0.15);
  border-color: rgba(147, 51, 234, 0.4);
}

.artist-profile-playlist-item span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.artist-profile-empty {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 1rem;
  text-align: center;
}

/* Track grid */
.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.track-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: visible;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s ease;
}

.track-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--purple-glow);
  border-color: rgba(138, 43, 226, 0.4);
}

.track-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.track-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-card-private-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1rem;
  opacity: 0.9;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.track-card-play {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple);
  border: none;
  color: white;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s;
  box-shadow: 0 0 20px var(--purple-glow);
}

.track-card:hover .track-card-play {
  opacity: 1;
  transform: translateY(0);
}

.track-card-info {
  padding: 0.75rem 1rem;
  overflow: visible;
}

.track-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-card-title-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  /* Shrink to fit text width exactly */
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  /* No pointer, no highlight by default */
  cursor: default;
  pointer-events: none;
  transition: color 0.15s, text-decoration 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop only — title text becomes a precise clickable link */
@media (min-width: 769px) {
  .track-card-title-link {
    pointer-events: auto;
    cursor: pointer;
  }
  .track-card-title-link:hover {
    color: var(--purple-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(192,132,252,0.5);
  }
  /* Rest of card info area — default cursor, not pointer */
  .track-card-info {
    cursor: default;
  }
}

/* Mobile — title is plain text, no link */
@media (max-width: 768px) {
  .track-card-title-link {
    pointer-events: none !important;
    cursor: default !important;
  }
}

.track-card-artist-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  text-align: left;
  transition: color 0.2s;
}

.track-card-artist-link:hover {
  color: var(--purple-light);
}

.track-card-artist {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
  min-width: 0;
}

.track-card-artist-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(147, 51, 234, 0.4);
  box-shadow: 0 0 6px var(--purple-glow);
}

.track-card-artist-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-card-subtitle {
  font-size: 0.75rem;
  color: var(--purple-light);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.35rem;
  min-height: 0;
}

.track-card-tag {
  font-size: 0.68rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid rgba(147, 51, 234, 0.3);
  color: var(--purple-light);
  font-weight: 500;
  white-space: nowrap;
}

.track-card-tag-mood {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text-muted);
}

.track-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Mood pills (Chill, Focus, Workout, etc.) — same art/typography as reference */
.mood-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.mood-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.mood-pill:hover,
.mood-pill.active {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  box-shadow: 0 0 12px var(--purple-glow);
}

/* Track card actions: compact row — Like, Dislike, Queue, Add to playlist, Share, Edit, Delete */
.track-card-actions {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-gradient-text {
  background: linear-gradient(to right, var(--purple), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: color 0.2s;
}

.btn-add-queue,
.btn-share {
  padding: 0.28rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-share {
  padding: 0.32rem 0.58rem;
  font-size: 0.78rem;
}

.btn-add-queue .btn-add-queue-plus,
.btn-add-queue .queue-word-text {
  background: linear-gradient(to right, var(--purple), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-add-queue:hover,
.btn-share:hover {
  border-color: var(--purple);
  background: var(--purple);
}

.btn-add-queue:hover .btn-add-queue-plus,
.btn-add-queue:hover .queue-word-text,
.btn-share:hover .btn-gradient-text {
  color: white;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.btn-edit-upload,
.btn-delete-upload {
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.65rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-edit-upload .btn-gradient-text,
.btn-delete-upload .btn-gradient-text {
  background: linear-gradient(to right, var(--purple), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-edit-upload:hover .btn-gradient-text,
.btn-delete-upload:hover .btn-gradient-text {
  color: white;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.btn-edit-upload:hover {
  background: rgba(65, 105, 225, 0.3);
  border-color: #4169E1;
}

.btn-delete-upload:hover {
  background: rgba(225, 29, 72, 0.25);
  border-color: #e11d48;
}

/* Like button on track cards — a bit bigger */
.btn-like.track-card-like {
  padding: 0.3rem 0.45rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.22rem;
  line-height: 1;
  transition: transform 0.2s, color 0.2s;
}

.btn-like .btn-like-icon {
  color: var(--text-muted);
  transition: color 0.2s;
}

.btn-like:hover .btn-like-icon {
  color: var(--purple-light);
}

.btn-like.liked .btn-like-icon {
  color: var(--purple);
}

.btn-like:hover {
  transform: scale(1.08);
}

/* Dislike button on track cards — smaller than like, SVG thumbs-down */
.btn-dislike.track-card-dislike {
  padding: 0.15rem 0.28rem;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s, color 0.2s;
}

.btn-dislike .btn-dislike-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s;
}

.btn-dislike-svg {
  width: 0.85em;
  height: 0.85em;
  font-size: 0.78rem;
}

.btn-dislike:hover .btn-dislike-icon {
  color: var(--text);
}

.btn-dislike.disliked .btn-dislike-icon {
  color: var(--purple);
}

.btn-dislike:hover {
  transform: scale(1.08);
}

/* More (⋯) button — opens popover with Add to playlist, Edit, Delete */
.track-card-more-wrap {
  position: relative;
  display: inline-flex;
  margin-left: 0.35rem;
}

.btn-more {
  padding: 0.2rem 0.4rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.btn-more:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.track-card-more-popover {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  min-width: 10rem;
  padding: 0.25rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}

.track-card-more-popover:not(.hidden) {
  display: block;
}

.track-card-more-popover.track-card-more-popover-fixed {
  position: fixed;
  margin-top: 0;
  /* left + top set via JS so menu appears directly under the ⋯ button */
}

.track-card-more-item {
  display: block;
  width: 100%;
  padding: 0.4rem 0.75rem;
  border: none;
  background: none;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  /* Same art style as Queue / Share — gradient text */
  background: linear-gradient(to right, var(--purple), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.track-card-more-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.track-card-more-item-danger {
  background: linear-gradient(to right, var(--purple), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.track-card-more-item-danger:hover {
  background: rgba(225, 29, 72, 0.2);
  color: #f87171;
  -webkit-background-clip: unset;
  background-clip: unset;
}

/* Library toolbar */
.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.library-tabs {
  display: flex;
  gap: 0.25rem;
}

.library-tab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.library-tab:hover {
  color: var(--text);
}

.library-tab.active {
  background: rgba(147, 51, 234, 0.2);
  color: var(--purple-light);
  border-color: var(--purple);
}

.library-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.library-sort-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.library-sort-select {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
}

.library-sort-select:focus {
  outline: none;
  border-color: var(--purple);
}

/* Playlists section */
.playlists-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.btn-create-playlist {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--purple);
  background: rgba(138, 43, 226, 0.2);
  color: var(--purple-light);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-create-playlist:hover {
  background: var(--purple);
  color: #fff;
}

.playlists-create-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.playlists-create-inline input {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.875rem;
  min-width: 180px;
}

.playlists-create-inline button {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.playlists-create-inline #playlistCreateConfirm {
  border-color: var(--purple);
  background: rgba(138, 43, 226, 0.2);
  color: var(--purple-light);
}

.playlists-create-inline #playlistCreateConfirm:hover {
  background: var(--purple);
  color: #fff;
}

.playlists-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.playlist-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.playlist-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--purple);
}

.playlist-card-name {
  font-weight: 500;
  color: var(--text);
}

.playlist-card-count {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.playlist-card-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(138, 43, 226, 0.3);
  color: var(--purple-light);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.playlist-card-play:hover {
  background: var(--purple);
  transform: scale(1.05);
}

.playlist-detail {
  margin-top: 1rem;
}

.playlist-detail-back {
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  border: none;
  background: none;
  color: var(--purple-light);
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s;
}

.playlist-detail-back:hover {
  color: #fff;
}

.playlist-detail-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text);
}

/* Add to playlist modal */
.add-to-playlist-modal {
  max-width: 360px;
  padding: 0;
  overflow: hidden;
}

.add-to-playlist-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.add-to-playlist-modal .modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.add-to-playlist-list {
  max-height: 240px;
  overflow-y: auto;
  padding: 0.5rem;
}

.add-to-playlist-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}

.add-to-playlist-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.add-to-playlist-count {
  color: var(--text-muted);
  font-size: 0.85em;
}

.add-to-playlist-empty {
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.add-to-playlist-create {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.add-to-playlist-create input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.875rem;
}

.add-to-playlist-create button {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--purple);
  background: rgba(138, 43, 226, 0.2);
  color: var(--purple-light);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.add-to-playlist-create button:hover {
  background: var(--purple);
  color: #fff;
}

/* Queue word gradient (inline on buttons) */
.queue-word-text-inline {
  font-size: inherit;
  text-transform: none;
  letter-spacing: 0.02em;
}

/* Browse section */
.browse-section .browse-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.browse-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  flex: 1;
  scroll-snap-type: x mandatory;
}

.browse-carousel::-webkit-scrollbar {
  height: 8px;
}

.browse-carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.browse-carousel::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 4px;
}

.browse-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s;
}

.browse-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--purple-glow);
}

.browse-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.browse-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.browse-card-play {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple);
  border: none;
  color: white;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.25s;
  box-shadow: 0 0 15px var(--purple-glow);
}

.browse-card:hover .browse-card-play {
  opacity: 1;
}

.browse-card-info {
  padding: 1rem;
}

.browse-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.browse-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.genre-filters {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.genre-filter {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.genre-filter:hover,
.genre-filter.active {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  box-shadow: 0 0 12px var(--purple-glow);
}

/* ===== Player bar ===== */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-height);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 1.25rem 0 1.35rem;
  gap: 0.3rem;
  border-top: 1px solid var(--border);
  z-index: 20;
  overflow: visible;
}

/* Dock: theme tokens + accent rim (beats generic .glass on player) */
.player-bar.glass {
  background: color-mix(in srgb, var(--bg-panel) 86%, black 14%) !important;
  backdrop-filter: blur(48px) saturate(195%) !important;
  -webkit-backdrop-filter: blur(48px) saturate(195%) !important;
  border: none;
  border-top: 1px solid color-mix(in srgb, var(--purple) 32%, rgba(255, 255, 255, 0.1)) !important;
  box-shadow:
    0 -16px 56px rgba(0, 0, 0, 0.58),
    0 -1px 0 color-mix(in srgb, var(--purple-glow) 45%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: background 0.38s ease, border-color 0.38s ease, box-shadow 0.38s ease;
}

/* Studio mode: player bar shows we're in studio context (playback controlled from Studio) */
body.studio-mode .player-bar {
  border-left: 3px solid rgba(147,51,234,0.6);
}
body.studio-mode .player-bar::before {
  content: 'Studio';
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(192,132,252,0.9);
  text-transform: uppercase;
  pointer-events: none;
}
body.studio-mode .player-left {
  margin-left: 4rem;
}

.player-bar-settings-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: -26px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.player-bar-settings-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
  transform: translateY(-50%) scale(1.05);
}

/* Desktop-only center settings button: keep outside progress area (all modes) */
#playerSettingsBtn.player-bar-settings-btn.futurist-icon-host {
  top: 4px !important;
  right: -42px !important;
  transform: none !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
}
#playerSettingsBtn.player-bar-settings-btn.futurist-icon-host .futurist-icon-tile {
  width: 20px !important;
  height: 20px !important;
  border-radius: 6px !important;
}
#playerSettingsBtn.player-bar-settings-btn .futurist-icon-tile svg.player-icon {
  width: 11px !important;
  height: 11px !important;
}
#playerSettingsBtn.player-bar-settings-btn:hover {
  transform: none !important;
}

.player-settings-popover {
  position: absolute;
  bottom: 100%;
  right: 0.5rem;
  margin-bottom: 0.5rem;
  z-index: 25;
}

.player-settings-popover.hidden {
  display: none;
}

.player-settings-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.player-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.player-settings-row:last-child {
  margin-bottom: 0;
}

.player-settings-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.player-settings-select {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  cursor: pointer;
  min-width: 7rem;
}

.player-settings-select:hover,
.player-settings-select:focus {
  border-color: var(--purple);
  outline: none;
}

.player-settings-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}
.player-settings-check-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.player-settings-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}
.player-settings-checkmark {
  position: relative;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s, background 0.2s;
}
.player-settings-toggle input[type="checkbox"]:hover + .player-settings-checkmark,
.player-settings-toggle:hover .player-settings-checkmark {
  border-color: rgba(147, 51, 234, 0.5);
}
.player-settings-toggle input[type="checkbox"]:checked + .player-settings-checkmark {
  background: var(--purple);
  border-color: var(--purple);
}
.player-settings-toggle input[type="checkbox"]:checked + .player-settings-checkmark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid rgba(255, 255, 255, 0.95);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.player-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-right: 0.15rem;
  padding-left: 1.5rem;
}

.player-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
}

.player-btn:hover {
  color: var(--text);
  transform: scale(1.05);
}

.player-btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.player-btn-icon:hover {
  color: var(--purple-light);
  background: rgba(138, 43, 226, 0.15);
}

.player-btn-icon.active {
  color: var(--purple-light);
}

.player-btn-icon.active:hover {
  color: #f5f3ff;
}

.player-btn-icon .player-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.player-btn-icon .player-icon-mute {
  display: none;
}

.player-btn-icon.is-muted .player-icon-volume {
  display: none;
}

.player-btn-icon.is-muted .player-icon-mute {
  display: block;
}

.player-btn-queue {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
}

.player-btn-queue:hover {
  background: rgba(255, 255, 255, 0.12);
}

.player-btn-queue .queue-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.player-btn-play {
  position: relative;
  width: 60px;
  height: 60px;
  background-color: transparent;
  background-image: var(--player-logo-url, url('logo-s.png'));
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 0 25px var(--purple-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.player-btn-play > span:last-child,
.player-btn-play #btnPlayIcon,
.player-btn-play #nowPlayingPlayIcon {
  position: relative;
  z-index: 1;
  line-height: 1;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
}

.player-btn-play:hover {
  box-shadow: 0 0 35px var(--purple-glow);
  transform: scale(1.08);
  animation: playPulse 1.4s ease-in-out infinite;
}

@keyframes playPulse {
  0% {
    transform: scale(1.0);
    box-shadow: 0 0 25px var(--purple-glow);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 40px var(--purple-glow);
  }
  100% {
    transform: scale(1.0);
    box-shadow: 0 0 25px var(--purple-glow);
  }
}

/* Middle column grows; waveform + seek capped in .player-center-main. */
.player-center {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  cursor: pointer;
}

.player-center-main {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.waveform-mini {
  height: 28px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.waveform-mini canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.progress-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

.progress-bar-track {
  width: 100%;
  min-width: 0;
}

.progress-bar-times {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.progress-bar .time-current,
.progress-bar .time-total {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 0;
  flex: 0 0 auto;
}

.seek-slider {
  display: block;
  width: 100%;
  flex: none;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, var(--purple) 0%, var(--purple) var(--seek-progress), rgba(255, 255, 255, 0.15) var(--seek-progress), rgba(255, 255, 255, 0.15) 100%);
  border-radius: 3px;
  outline: none;
}

.seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple);
  cursor: pointer;
  box-shadow: 0 0 10px var(--purple-glow);
  transition: transform 0.2s;
}

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

.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
}
.player-right-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding-left: 0.65rem;
  margin-left: -0.85rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.player-shuffle-adjacent {
  margin-left: 0;
}

/* Now-playing strip on the right: title/artist align inward; cover sits on the outer edge */
.player-now-info--bar-right {
  flex-direction: row;
  gap: 0.75rem;
  margin-left: 0;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
}
.player-now-info--bar-right .player-now-info__meta {
  align-items: flex-start;
  text-align: left;
  min-width: 0;
  flex: 1;
}

/* Artist name + tiny avatar: `em` scales with this line’s font-size (matches artist text) */
.player-now-info__artist-line {
  display: flex;
  align-items: center;
  gap: 0.42em;
  min-width: 0;
  width: 100%;
  margin-top: 0.08em;
  font-size: 0.8rem;
  line-height: 1.25;
}
.player-now-info--bar-right .player-now-info__artist-line {
  justify-content: flex-start;
}
.player-now-info__artist-inline {
  width: 1.12em;
  height: 1.12em;
  min-width: 1.12em;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--bg-card);
}
.player-now-info__artist-line .player-now-info__artist,
.player-now-info__artist-line .now-playing-artist {
  font-size: 1em;
  line-height: inherit;
  min-width: 0;
}

/* Track strip (left): cover + artist badge — same treatment as legacy .now-playing */
/* Now-playing cover: true circle + zoomed cover (no visible square tile behind the art). */
.player-now-info__art-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  min-width: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  clip-path: circle(50% at 50% 50%);
  -webkit-clip-path: circle(50% at 50% 50%);
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  line-height: 0;
  isolation: isolate;
  backface-visibility: hidden;
}
.player-now-info__art-wrap #nowPlayingArt,
.player-now-info__art-wrap .player-now-info__art {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  transform: scale(1.22);
  transform-origin: center center;
  will-change: transform;
}
.player-now-info .player-now-info__meta {
  min-width: 0;
}

#nowPlayingStrip.player-now-info {
  cursor: pointer;
}
#nowPlayingStrip.player-now-info:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 2px;
  border-radius: 999px;
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
  max-width: 260px;
}

.now-playing-cover-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  clip-path: circle(50% at 50% 50%);
  -webkit-clip-path: circle(50% at 50% 50%);
  padding: 0;
  margin: 0;
  background: transparent;
  line-height: 0;
  isolation: isolate;
}

.now-playing-cover-wrap #nowPlayingArt {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  transform: scale(1.22);
  transform-origin: center center;
}

.now-playing-cover-wrap .now-playing-artist-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(147, 51, 234, 0.6);
  box-shadow: 0 0 10px var(--purple-glow);
  background: var(--bg-card);
}

/* Do not restyle bar/modal cover (#nowPlayingArt / .player-now-info__art) — that rule read as a rounded square */
.now-playing img:not(.player-now-info__art) {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.now-playing-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  justify-content: center;
}

.now-playing-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.now-playing-subtitle {
  font-size: 0.75rem;
  color: var(--purple-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.now-playing-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.player-brand {
  position: absolute;
  right: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== Modals ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem 1rem 2rem;
  overflow-y: auto;
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  border-radius: var(--radius);
}

#profileEditModal {
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  flex-shrink: 0;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--purple);
  box-shadow: 0 0 15px var(--purple-glow);
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab:hover {
  color: var(--text);
}

.auth-tab.active {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  box-shadow: 0 0 15px var(--purple-glow);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form.hidden {
  display: none;
}

.auth-form input {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.auth-form input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-glow);
}

.auth-form input::placeholder {
  color: var(--text-muted);
}

.auth-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.auth-error {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.auth-error.hidden {
  display: none;
}

.auth-forgot-link {
  font-size: 0.85rem;
  color: var(--purple-light);
  text-decoration: none;
  align-self: flex-start;
  margin-top: -0.5rem;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

.auth-password-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: -0.5rem 0 0;
}

.auth-password-hint.weak { color: #f87171; }
.auth-password-hint.fair { color: #fbbf24; }
.auth-password-hint.good { color: #34d399; }
.auth-password-hint.strong { color: #22c55e; }

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-terms input { margin-top: 0.2rem; }
.auth-terms a { color: var(--purple-light); }
.auth-terms a:hover { text-decoration: underline; }

.auth-reset-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.auth-back-link {
  margin-top: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.auth-back-link:hover {
  border-color: var(--purple);
  color: var(--purple-light);
}

.auth-config-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
}

.auth-verify-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-sm);
  margin: 0 1rem 1rem;
  font-size: 0.9rem;
  color: #fcd34d;
}

.auth-verify-text {
  flex: 1;
  min-width: 200px;
}

.auth-verify-resend {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.2);
  color: #fcd34d;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-verify-resend:hover:not(:disabled) {
  background: rgba(251, 191, 36, 0.3);
  border-color: rgba(251, 191, 36, 0.6);
}

.auth-verify-resend:disabled {
  opacity: 0.7;
  cursor: default;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}


/* ── BTN-SECONDARY — matches site dark glassmorphism style ── */
.btn-secondary {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(147, 51, 234, 0.35);
  background: rgba(147, 51, 234, 0.1);
  color: #C084FC;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: rgba(147, 51, 234, 0.2);
  border-color: rgba(147, 51, 234, 0.6);
  color: #d8b4fe;
}
.btn-secondary:active {
  transform: scale(0.97);
}

.btn-primary {
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 24px rgba(138, 43, 226, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(138, 43, 226, 0.75);
}

.auth-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 1.25rem 0;
}

.auth-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn-social {
  flex: 1;
  min-width: 100px;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-social:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--purple);
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.upload-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.upload-form input,
.upload-form select {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}

.upload-form input:focus,
.upload-form select:focus {
  border-color: var(--purple);
}

/* Form sections (upload / edit modals) */
.upload-form .form-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.upload-form .form-section:last-of-type { border-bottom: none; }
.edit-modal-creator-stats {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  margin-bottom: 0.25rem;
}
.upload-form .form-label { margin-bottom: 0; }
.upload-form .form-label input,
.upload-form .form-label select {
  margin-top: 0.25rem;
}
.form-hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.35rem;
}
.genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  min-height: 2rem;
}
.genre-chip {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.genre-chip:hover {
  border-color: rgba(147, 51, 234, 0.5);
  color: var(--text);
}
.genre-chip.selected {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
  box-shadow: 0 0 10px var(--purple-glow);
}

/* Drop zone style for file inputs */
.form-drop-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 1.25rem;
  border: 2px dashed rgba(148, 99, 255, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(148, 99, 255, 0.06);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-drop-zone:hover {
  border-color: var(--purple);
  background: rgba(148, 99, 255, 0.1);
}
.form-drop-zone.drag-over {
  border-color: var(--purple);
  background: rgba(148, 99, 255, 0.15);
  box-shadow: 0 0 20px rgba(148, 99, 255, 0.2);
}
.form-drop-zone.has-file {
  border-style: solid;
  border-color: rgba(148, 99, 255, 0.5);
}
.form-drop-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.form-drop-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}
.form-drop-text {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}
.form-drop-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.form-drop-filename {
  font-size: 0.8rem;
  color: var(--purple);
  margin-top: 0.5rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.form-drop-zone-required .form-drop-text::after { content: ' *'; color: #e8796b; }

/* Lyrics button (opens lyrics modal) */
.form-lyrics-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-lyrics-open {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 99, 255, 0.5);
  background: rgba(148, 99, 255, 0.12);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn-lyrics-open:hover {
  border-color: var(--purple);
  background: rgba(148, 99, 255, 0.2);
  box-shadow: 0 0 14px rgba(148, 99, 255, 0.2);
}
.btn-lyrics-icon { font-size: 1.1rem; }
.form-lyrics-status {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.form-lyrics-status:not(:empty) { color: var(--purple); }

/* Lyrics modal (popup for pasting lyrics) */
.lyrics-modal {
  max-width: 520px;
  width: 100%;
}
.lyrics-modal h2 { margin-bottom: 0.5rem; }
.lyrics-modal-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.lyrics-modal-hint code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
}
.lyrics-modal-textarea {
  width: 100%;
  min-height: 220px;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  margin-bottom: 1rem;
  font-family: inherit;
}
.lyrics-modal-textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(148, 99, 255, 0.2);
}
.lyrics-modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.lyrics-modal-actions .btn-secondary {
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.lyrics-modal-actions .btn-secondary:hover {
  border-color: rgba(148, 99, 255, 0.5);
  background: rgba(148, 99, 255, 0.1);
  color: var(--text);
}

.lyrics-modal-actions .btn-primary {
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

/* Studio */
.studio-section.hidden,
.downloads-section.hidden,
.liked-section.hidden,
.playlists-section.hidden,
.library-section.hidden,
.artist-profile-section.hidden {
  display: none !important;
}
.studio-section .studio-subtitle {
  margin-bottom: 1.25rem;
}

/* Studio dashboard panel */
.studio-dashboard {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
}
.studio-dashboard-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.studio-dashboard-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 100px;
}
.studio-dashboard-stat-icon {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 0.15rem;
}
.studio-dashboard-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.studio-dashboard-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.studio-dashboard-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.studio-dashboard-btn-icon {
  font-size: 1rem;
  opacity: 0.9;
}

.studio-tracks-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.studio-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}
.studio-empty-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.studio-empty-hint {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.studio-empty .btn-primary {
  margin: 0 auto;
}

/* Studio header & stats (v3_3) */
.studio-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.studio-header-row .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.studio-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.studio-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}
.studio-toolbar-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.studio-stats-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.studio-stat-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(147,51,234,0.1);
  border: 1px solid rgba(147,51,234,0.2);
}
.studio-stat-pill-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #C084FC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.studio-stat-pill-lbl {
  font-size: 0.75rem;
  color: rgba(168,155,192,0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.studio-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(147,51,234,0.15);
  padding-bottom: 0;
}
.studio-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  border: none;
  background: none;
  color: rgba(168,155,192,0.7);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.18s, border-color 0.18s;
  letter-spacing: -0.01em;
}
.studio-tab:hover { color: rgba(245,243,255,0.9); }
.studio-tab.active {
  color: #C084FC;
  border-bottom-color: #9333EA;
}
/* Current track bar: visible on all studio tabs */
.studio-current-track-bar {
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(147,51,234,0.08);
  border: 1px solid rgba(147,51,234,0.2);
  border-radius: 12px;
}
.studio-current-track-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.studio-current-track-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(192,132,252,0.9);
  letter-spacing: 0.02em;
}
.studio-current-track-select {
  min-width: 200px;
  max-width: 280px;
}
.studio-current-track-hint {
  font-size: 0.8rem;
  color: rgba(168,155,192,0.75);
}
.studio-current-track-hint-empty {
  font-style: italic;
}
.studio-current-track-bar.has-track .studio-current-track-hint-empty {
  display: none;
}
.studio-live-indicator {
  display: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: #22c55e;
  margin-left: 0.5rem;
}
.studio-live-indicator[aria-hidden="false"] {
  display: inline;
}
/* Studio play panel (Monitor) */
.studio-play-panel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 0.6rem 1rem;
  background: rgba(147,51,234,0.08);
  border: 1px solid rgba(147,51,234,0.2);
  border-radius: 10px;
}
.studio-play-panel-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(192,132,252,0.95);
}
.studio-play-panel-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(147,51,234,0.4);
  background: rgba(147,51,234,0.2);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s;
}
.studio-play-panel-btn:hover {
  background: rgba(147,51,234,0.35);
  border-color: rgba(147,51,234,0.6);
}
.studio-play-panel-time {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: rgba(168,155,192,0.9);
  min-width: 6ch;
}
.studio-play-panel-seek {
  flex: 1;
  min-width: 80px;
  max-width: 200px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(147,51,234,0.2);
  border-radius: 3px;
}
.studio-play-panel-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(192,132,252,0.9);
  cursor: pointer;
}
.studio-reset-defaults-btn {
  width: auto;
  padding: 0 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  margin-left: auto;
}
/* DAW-style track strip: Monitor + waveform, visible on all tabs when track selected */
.studio-track-strip {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0;
  transition: opacity 0.2s ease;
}
.studio-track-strip:not(.has-track) {
  display: none;
}
.studio-track-strip.has-track .studio-wave-wrapper {
  display: block;
}
.studio-track-strip .studio-play-panel {
  margin-bottom: 0;
}
.studio-track-strip .studio-wave-wrapper {
  margin-bottom: 0;
}
/* How to use the studio (collapsible) */
.studio-how-to-use {
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(147,51,234,0.06);
  border: 1px solid rgba(147,51,234,0.15);
  border-radius: 12px;
}
.studio-how-to-use-summary {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.studio-how-to-use-summary::-webkit-details-marker { display: none; }
.studio-how-to-use-summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}
.studio-how-to-use[open] .studio-how-to-use-summary::before { transform: rotate(90deg); }
.studio-how-to-use-body {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(147,51,234,0.15);
}
.studio-how-to-use-steps {
  margin: 0 0 0.75rem 0;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(168,155,192,0.95);
}
.studio-how-to-use-steps li { margin-bottom: 0.5rem; }
.studio-how-to-use-tip {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(168,155,192,0.75);
  font-style: italic;
}
/* Pane context: "Applying to: Track name" or hint when no track */
.studio-pane-context {
  font-size: 0.8rem;
  color: rgba(168,155,192,0.8);
  margin: 0 0 1rem 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(147,51,234,0.12);
}
.studio-pane-context.no-track {
  font-style: italic;
  color: rgba(168,155,192,0.6);
}
.studio-pane { display: none; }
.studio-pane.active { display: block; }
.studio-auto-fix-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(147,51,234,0.2);
  background: rgba(147,51,234,0.06);
}
.studio-auto-fix-info {
  flex: 1;
  min-width: 180px;
}
.studio-auto-fix-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(192,132,252,0.95);
  margin-bottom: 0.2rem;
}
.studio-auto-fix-desc {
  font-size: 0.78rem;
  color: rgba(168,155,192,0.75);
  line-height: 1.3;
}
.studio-auto-fix-btn-icon {
  margin-right: 0.35rem;
}
.studio-auto-fix-status {
  font-size: 0.8rem;
  color: rgba(168,155,192,0.9);
  min-width: 8ch;
}
.studio-auto-fix-status.analyzing {
  color: rgba(192,132,252,0.9);
}
.studio-auto-fix-status.done {
  color: #22c55e;
}
.studio-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.studio-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.studio-panel {
  padding: 1.25rem 1.4rem;
  border-radius: 16px;
}
.studio-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.studio-panel-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(192,132,252,0.9);
}
.studio-toggle {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.studio-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.studio-toggle-track {
  width: 34px;
  height: 18px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
  border: 1px solid rgba(255,255,255,0.1);
}
.studio-toggle-track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 12px; height: 12px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.studio-toggle input:checked + .studio-toggle-track {
  background: rgba(147,51,234,0.7);
  border-color: rgba(147,51,234,0.4);
}
.studio-toggle input:checked + .studio-toggle-track::after {
  transform: translateX(16px);
  background: #fff;
}
.studio-eq-bands {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem;
  height: 120px;
  margin-bottom: 0.6rem;
}
.studio-eq-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}
.studio-fader.vertical {
  writing-mode: vertical-lr;
  direction: rtl;
  -webkit-appearance: slider-vertical;
  width: 6px;
  height: 90px;
  cursor: pointer;
  background: linear-gradient(to top, #9333EA var(--pct, 50%), rgba(255,255,255,0.1) var(--pct, 50%));
  border-radius: 999px;
  outline: none;
  border: none;
  appearance: slider-vertical;
}
.studio-fader.vertical::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(147,51,234,0.7);
  cursor: pointer;
}
.studio-fader-label {
  font-size: 0.65rem;
  color: rgba(168,155,192,0.7);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.studio-eq-vals {
  font-size: 0.7rem;
  color: rgba(192,132,252,0.6);
  text-align: center;
  letter-spacing: 0.02em;
}
.studio-fader-group { display: flex; flex-direction: column; gap: 0.85rem; }
.studio-fader-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.studio-fader-row-lbl {
  font-size: 0.78rem;
  color: rgba(168,155,192,0.8);
  min-width: 64px;
  font-weight: 500;
}
.studio-fader-row-val {
  font-size: 0.75rem;
  color: rgba(192,132,252,0.9);
  min-width: 30px;
  text-align: right;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}
.studio-fader.horizontal {
  flex: 1;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #9333EA var(--pct, 50%), rgba(255,255,255,0.1) var(--pct, 50%));
  border-radius: 999px;
  outline: none;
  border: none;
  cursor: pointer;
}
.studio-fader.horizontal::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(147,51,234,0.8);
  cursor: pointer;
  transition: transform 0.15s;
}
.studio-fader.horizontal::-webkit-slider-thumb:hover { transform: scale(1.25); }
.studio-fader.studio-fader-master::-webkit-slider-thumb {
  width: 16px; height: 16px;
  box-shadow: 0 0 12px rgba(147,51,234,1);
}
.studio-knob-group { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1rem; }
.studio-knob-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.studio-knob-lbl {
  font-size: 0.78rem;
  color: rgba(168,155,192,0.8);
  min-width: 72px;
  font-weight: 500;
}
.studio-preset-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.studio-preset-lbl {
  font-size: 0.7rem;
  color: rgba(168,155,192,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.studio-preset-btns { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.studio-preset-btn {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(147,51,234,0.2);
  background: rgba(147,51,234,0.08);
  color: rgba(192,132,252,0.75);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Inter', sans-serif;
}
.studio-preset-btn:hover, .studio-preset-btn.active {
  background: rgba(147,51,234,0.85);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 10px rgba(147,51,234,0.4);
}
.studio-tempo-display { margin-bottom: 1.2rem; }
.studio-bpm-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.studio-bpm-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(147,51,234,0.3);
  background: rgba(147,51,234,0.1);
  color: #C084FC;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.18s;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
}
.studio-bpm-btn:hover {
  background: rgba(147,51,234,0.8);
  color: #fff;
  box-shadow: 0 4px 14px rgba(147,51,234,0.4);
}
.studio-bpm-display {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.studio-bpm-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #fff 0%, #C084FC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.studio-bpm-unit {
  font-size: 0.7rem;
  color: rgba(168,155,192,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.studio-key-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.studio-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.studio-select-lbl {
  font-size: 0.7rem;
  color: rgba(168,155,192,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.studio-select {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(147,51,234,0.2);
  background: rgba(147,51,234,0.08);
  color: rgba(245,243,255,0.9);
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  cursor: pointer;
  transition: border-color 0.18s;
}
.studio-select:focus { border-color: rgba(147,51,234,0.6); }
.studio-pitch-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.studio-export-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  flex-wrap: wrap;
}
.studio-export-info { display: flex; flex-direction: column; gap: 0.15rem; }
.studio-export-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(245,243,255,0.95);
  letter-spacing: -0.01em;
}
.studio-export-sub {
  font-size: 0.75rem;
  color: rgba(168,155,192,0.7);
}
.studio-export-format-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}
.studio-export-format-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(192,132,252,0.9);
}
.studio-export-format-select {
  min-width: 180px;
}
.studio-export-normalize-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: rgba(168,155,192,0.9);
  cursor: pointer;
  margin-left: 0.5rem;
}
.studio-export-normalize-label input { cursor: pointer; }
.studio-export-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.studio-export-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(147,51,234,0.2);
  background: rgba(147,51,234,0.08);
  color: rgba(192,132,252,0.85);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Inter', sans-serif;
}
.studio-export-btn:hover {
  background: rgba(147,51,234,0.2);
  border-color: rgba(147,51,234,0.4);
  color: #fff;
}
.studio-export-btn-primary {
  background: linear-gradient(135deg, #9333EA 0%, #6366F1 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(147,51,234,0.4);
}
.studio-export-btn-primary:hover {
  box-shadow: 0 6px 24px rgba(147,51,234,0.6);
  transform: translateY(-1px);
}
.studio-export-btn-secondary {
  background: rgba(147,51,234,0.15);
  border-color: rgba(147,51,234,0.35);
  color: rgba(192,132,252,0.95);
}
.studio-export-btn-secondary:hover {
  background: rgba(147,51,234,0.25);
  border-color: rgba(147,51,234,0.5);
  color: #fff;
}
.studio-processing-panel {
  margin-top: 1rem;
}
.studio-processing-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem 0;
}
.studio-edit-empty { margin-bottom: 1rem; }
.studio-edit-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.studio-edit-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.studio-toolbar-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 0.25rem;
}
.studio-zoom-btn {
  min-width: 32px;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
}
.studio-edit-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.studio-edit-select-wrap .studio-select { min-width: 180px; }
.studio-wave-wrapper {
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
}
.studio-wave-container {
  min-height: 220px;
  background: transparent;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
/* DAW-style: waveform in Edit tab when this track is playing */
.studio-wave-wrapper:has(.studio-wave-container--playing) {
  border-color: rgba(147,51,234,0.6);
  box-shadow: 0 0 0 1px rgba(147,51,234,0.25), inset 0 0 20px rgba(147,51,234,0.08);
}
.studio-wave-container--playing wave {
  --cursor-color: rgba(255,255,255,0.95);
}
.studio-edit-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  min-height: 1.25rem;
}
.studio-edit-controls-hint {
  margin-top: 1.25rem;
  padding: 1rem;
  background: rgba(147,51,234,0.08);
  border: 1px solid rgba(147,51,234,0.2);
  border-radius: var(--radius);
}
.studio-edit-hint-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.35rem 0;
}
.studio-edit-hint-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}
.studio-edit-quick-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.studio-quick-tab {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.studio-quick-tab:hover {
  background: rgba(147,51,234,0.15);
  border-color: var(--purple);
}
.studio-section.drag-over {
  outline: 2px dashed var(--purple);
  outline-offset: 4px;
}
.studio-track-row-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.studio-track-row-controls .studio-solo-btn,
.studio-track-row-controls .studio-mute-btn {
  padding: 0.2rem 0.45rem;
  font-size: 0.7rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
}
.studio-track-row-controls .studio-solo-btn.active,
.studio-track-row-controls .studio-mute-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.studio-track-row-controls label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.studio-track-row-controls input[type="range"] {
  width: 70px;
  height: 6px;
}
@media (max-width: 900px) {
  .studio-grid-2col, .studio-grid-3col { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .track-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .browse-section .browse-layout {
    flex-direction: column;
  }

  .genre-filters {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 72px;
    padding: 1rem 0;
  }

  .logo-text,
  .logo-tagline,
  .nav-item span,
  .nav-divider,
  .nav-secondary {
    display: none;
  }

  .logo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 0 0.5rem 1rem;
  }

  .nav-item {
    justify-content: center;
    padding: 0.75rem;
  }

  .nav-item svg {
    margin: 0;
  }

  .main {
    margin-left: 72px;
  }

  .main-header {
    padding: 1rem;
  }

  .search-bar {
    max-width: 200px;
  }

  .main-content {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .track-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .browse-card {
    flex: 0 0 240px;
  }

  .player-bar {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1rem;
    gap: 1rem;
  }

  .player-center {
    order: 3;
    width: 100%;
    max-width: none;
    flex: 1 1 100%;
  }

  .player-center-main {
    max-width: none;
    width: 100%;
  }

  .player-right-icons {
    margin-left: 0;
  }

  .player-right {
    flex: 1 1 100%;
    justify-content: flex-end;
  }

  .player-brand {
    display: none;
  }
}

/* ===== Profile page ===== */
.profile-section {
  max-width: 900px;
}

.profile-section.hidden {
  display: none !important;
}

.profile-banner {
  height: 180px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-card);
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -1rem -1rem 1rem -1rem;
}

.profile-banner-preset-gradient-purple {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.6) 0%, rgba(65, 105, 225, 0.5) 100%);
}

.profile-banner-preset-gradient-retro {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.5) 0%, rgba(184, 134, 11, 0.4) 100%);
}

.profile-banner-preset-gradient-futuristic {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.4) 0%, rgba(255, 0, 170, 0.3) 100%);
}

.profile-banner-preset-gradient-minimal {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.profile-avatar-wrap {
  flex-shrink: 0;
}

/* ===== Quantum Crystal Slab (profile avatar) — 100×100 image unchanged ===== */
.quantum-slab--profile {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(0, 0, 0, 0.38);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.58),
    0 4px 14px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.35s ease;
}

.quantum-slab--profile:hover {
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.62),
    0 0 20px rgba(147, 51, 234, 0.55),
    0 0 22px rgba(6, 182, 212, 0.38);
}

.quantum-slab--profile .profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  border: none;
  display: block;
}

.profile-meta {
  flex: 1;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.profile-name-accent {
  width: 2px;
  flex-shrink: 0;
  border-radius: 1px;
  align-self: stretch;
  min-height: 2.75rem;
  background: linear-gradient(180deg, #22d3ee 0%, #a855f7 55%, #6d28d9 100%);
  box-shadow:
    0 0 10px rgba(34, 211, 238, 0.5),
    0 0 14px rgba(168, 85, 247, 0.45);
}

.profile-name-text {
  flex: 1;
  min-width: 0;
}

.profile-display-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.2rem 0;
  letter-spacing: 0.1em;
  color: #f4f7ff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
}

.profile-status-label {
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.5;
  color: rgba(244, 247, 255, 0.95);
}

.profile-bio {
  font-size: 0.95rem;
  line-height: 1.5;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.profile-tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  background: rgba(138, 43, 226, 0.2);
  color: var(--purple-light);
  border-radius: 999px;
  border: 1px solid rgba(138, 43, 226, 0.3);
}

.profile-link-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple-light);
  background: rgba(138, 43, 226, 0.15);
  border: 1px solid rgba(138, 43, 226, 0.4);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.profile-link-btn:hover {
  background: rgba(138, 43, 226, 0.3);
  color: #fff;
}

.profile-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.profile-tab {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s;
}

.profile-tab:hover {
  color: var(--text);
}

.profile-tab.active {
  color: var(--purple-light);
  border-bottom-color: var(--purple);
}

.profile-content {
  position: relative;
}

.profile-pane {
  display: none;
}

.profile-pane.active {
  display: block;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.profile-stat {
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-align: center;
}

.profile-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple-light);
}

.profile-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profile-edit-form label {
  display: block;
  margin-bottom: 0.75rem;
}

.profile-edit-form input[type="text"],
.profile-edit-form textarea,
.profile-edit-form select {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
}

.profile-edit-form textarea {
  resize: vertical;
  min-height: 80px;
}

.profile-edit-cover-wrap {
  margin-bottom: 1rem;
}

.profile-edit-cover-wrap label:first-child {
  display: block;
  margin-bottom: 0.35rem;
}

.profile-edit-cover-preview {
  width: 100%;
  height: 100px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  background-size: cover;
  background-position: center;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
}

.profile-edit-cover-wrap .btn-cover-upload,
.btn-cover-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--purple-light);
  background: rgba(138, 43, 226, 0.12);
  border: 2px dashed rgba(138, 43, 226, 0.5);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-cover-upload:hover,
.btn-avatar-upload:hover {
  background: rgba(138, 43, 226, 0.25);
  border-color: var(--purple-light);
  color: #fff;
}

.btn-cover-upload::before,
.btn-avatar-upload::before {
  content: "↑";
  font-size: 1.1rem;
  opacity: 0.9;
}

.profile-edit-cover-wrap select {
  margin-top: 0.35rem;
  padding: 0.4rem 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
}

.profile-edit-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-edit-avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.btn-avatar-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--purple-light);
  background: rgba(138, 43, 226, 0.12);
  border: 2px dashed rgba(138, 43, 226, 0.5);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-avatar-upload::before {
  content: "↑";
  font-size: 1.1rem;
  opacity: 0.9;
}

.profile-edit-avatar-presets-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0.35rem;
}

.profile-avatar-presets {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-avatar-preset {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

.profile-avatar-preset:hover,
.profile-avatar-preset:focus {
  border-color: var(--purple-light);
  transform: scale(1.05);
}

.profile-avatar-preset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-section[data-vibe="retro"] .quantum-slab--profile {
  border-top-color: rgba(255, 230, 180, 0.45);
  border-left-color: rgba(201, 162, 39, 0.35);
}
.profile-section[data-vibe="futuristic"] .quantum-slab--profile {
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.58),
    0 0 18px rgba(0, 212, 255, 0.22);
}
.profile-section[data-vibe="minimal"] .quantum-slab--profile {
  background: rgba(255, 255, 255, 0.04);
  border-top-color: rgba(255, 255, 255, 0.25);
  border-left-color: rgba(255, 255, 255, 0.12);
}

.profile-uploads-empty.hidden {
  display: none !important;
}

/* ===== Volume popover ===== */
.volume-wrap {
  position: relative;
}

.volume-popover {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.5rem;
  padding: 0.75rem 0.5rem;
  min-width: 44px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 35, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 60;
}

.volume-popover.hidden {
  display: none;
}

.volume-slider {
  width: 100px;
  height: 6px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, var(--purple) 0%, var(--purple) var(--vol-pct, 80%), rgba(255, 255, 255, 0.2) var(--vol-pct, 80%));
  border-radius: 999px;
  outline: none;
  transform: rotate(-90deg);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 0 8px var(--purple-glow);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px var(--purple-glow);
}

/* ===== Now Playing expanded view ===== */
.now-playing {
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.now-playing:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Now Playing: full-viewport overlay (WMP / iTunes / Spotify style) */
.now-playing-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(0);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.now-playing-overlay.is-open {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
}

.now-playing-modal {
  position: relative;
  max-width: min(560px, 94vw);
  width: 100%;
  padding: 2rem;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(70px) scale(0.92);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.now-playing-overlay.is-open .now-playing-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Close button only: top-right of overlay, outside modal */
.now-playing-overlay-toolbar {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  align-items: center;
  z-index: 150;
  padding: 0.4rem;
  min-width: 34px;
  min-height: 34px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
  pointer-events: auto;
}
.now-playing-overlay-toolbar:hover {
  background: rgba(0, 0, 0, 0.4);
}
.now-playing-overlay-toolbar .now-playing-close-btn {
  opacity: 0.35;
  transition: opacity 0.2s ease;
}
.now-playing-overlay-toolbar:hover .now-playing-close-btn {
  opacity: 1;
}

.now-playing-overlay-toolbar .now-playing-close-btn {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.now-playing-overlay-toolbar .now-playing-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--purple-light);
}

/* Visualizer: zoom button at its top-right corner (WMP-style) */
.now-playing-modal-visualizer {
  position: relative;
  width: 100%;
  height: 180px;
  margin: 0 auto 1rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.now-playing-visualizer-fullscreen-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
  opacity: 0.5;
}
.now-playing-modal-visualizer:hover .now-playing-visualizer-fullscreen-btn {
  opacity: 1;
}
.now-playing-visualizer-fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--purple-light);
}

/* Album art wrap with fullscreen button */
.now-playing-modal-art-wrap {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 0 auto 0.75rem;
}
.now-playing-art-fullscreen-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
  opacity: 0.5;
}
.now-playing-modal-art-wrap:hover .now-playing-art-fullscreen-btn {
  opacity: 1;
}
.now-playing-art-fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--purple-light);
}

/* Fullscreen: true edge-to-edge like YouTube/VLC — overlay fills entire screen */
.now-playing-overlay.is-fullscreen {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  padding: 0;
  margin: 0;
  align-items: stretch;
  justify-content: stretch;
  background: #000;
}
.now-playing-overlay.is-fullscreen .now-playing-overlay-toolbar {
  display: none;
}
.now-playing-overlay.is-fullscreen .now-playing-visualizer-fullscreen-btn {
  display: none;
}
.now-playing-overlay.is-fullscreen .now-playing-art-fullscreen-btn {
  display: none;
}

/* Fullscreen art mode: album art fills screen */
.now-playing-fullscreen-art {
  display: none;
}
.now-playing-fullscreen-art.hidden {
  display: none !important;
}
.now-playing-overlay.is-fullscreen[data-fullscreen-mode="art"] .now-playing-fullscreen-art {
  display: flex !important;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  align-items: center;
  justify-content: center;
  background: #000;
}
.now-playing-overlay.is-fullscreen[data-fullscreen-mode="art"] .now-playing-fullscreen-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.now-playing-fullscreen-art-lyrics {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 2rem 2.5rem 3rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  pointer-events: none;
  align-items: flex-end;
  justify-content: center;
  min-height: 100px;
}
.now-playing-fullscreen-art-lyrics.hidden {
  display: none !important;
}
.now-playing-overlay.is-fullscreen[data-fullscreen-mode="art"] .now-playing-fullscreen-art-lyrics:not(.hidden) {
  display: flex !important;
}
.now-playing-fullscreen-art-lyrics-inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  text-align: center;
  max-height: 140px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.now-playing-fullscreen-art-lyrics-inner::-webkit-scrollbar {
  display: none;
}
.now-playing-fullscreen-art-lyrics-line {
  font-size: 1.1rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.8);
  transition: color 0.2s, font-weight 0.2s;
}
.now-playing-fullscreen-art-lyrics-line.current {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(147, 112, 219, 0.5), 0 0 10px rgba(0, 0, 0, 0.9);
}
.now-playing-overlay.is-fullscreen[data-fullscreen-mode="art"] .now-playing-fullscreen-art-lyrics {
  padding: 2rem 2.5rem 3rem;
  min-height: 120px;
}
.now-playing-overlay.is-fullscreen[data-fullscreen-mode="art"] .now-playing-fullscreen-art-lyrics-inner {
  max-height: 200px;
}
.now-playing-overlay.is-fullscreen[data-fullscreen-mode="art"] .now-playing-fullscreen-art-lyrics-line {
  font-size: 1.4rem;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 24px rgba(0, 0, 0, 0.7);
}
.now-playing-overlay.is-fullscreen[data-fullscreen-mode="art"] .now-playing-fullscreen-art-lyrics-line.current {
  font-size: 1.6rem;
  text-shadow: 0 0 16px rgba(147, 112, 219, 0.6), 0 0 14px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.95);
}
.now-playing-overlay.is-fullscreen[data-fullscreen-mode="art"] .now-playing-modal-visualizer {
  display: none !important;
}
.now-playing-overlay.is-fullscreen[data-fullscreen-mode="art"] .now-playing-modal {
  z-index: 10;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}
.now-playing-overlay.is-fullscreen[data-fullscreen-mode="art"] .now-playing-modal-body .now-playing-lyrics {
  display: none !important;
}

.now-playing-overlay.is-fullscreen .now-playing-modal {
  max-width: none;
  width: 100%;
  height: 100%;
  max-height: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.now-playing-overlay.is-fullscreen .now-playing-modal-visualizer {
  flex: 1;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.now-playing-overlay.is-fullscreen .now-playing-modal-visualizer canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.now-playing-overlay.is-fullscreen .now-playing-modal-body .now-playing-modal-art-wrap {
  max-width: 48px;
  margin: 0 auto 0;
}
.now-playing-overlay.is-fullscreen .now-playing-modal-body .now-playing-modal-art {
  max-width: none;
  margin: 0;
}

/* Fullscreen: one small zoom (exit) icon in corner, YouTube-style; visible only on mousemove */
.now-playing-fullscreen-corner-btn {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 150;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.5);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease 0.15s, background 0.2s, color 0.2s;
  opacity: 0;
  pointer-events: none;
}
.now-playing-overlay.is-fullscreen .now-playing-fullscreen-corner-btn {
  display: flex;
}
.now-playing-overlay.is-fullscreen.user-active .now-playing-fullscreen-corner-btn {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}
.now-playing-fullscreen-corner-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--purple-light);
}

/* Fullscreen: bottom bar overlay, hidden until mousemove (VLC/YouTube style) */
.now-playing-overlay.is-fullscreen:not(.user-active) {
  cursor: none;
}
.now-playing-overlay.is-fullscreen:not(.user-active) * {
  cursor: none;
}
.now-playing-overlay.is-fullscreen .now-playing-modal-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  flex-shrink: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  padding: 0.75rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease 0.2s;
}
.now-playing-overlay.is-fullscreen.user-active .now-playing-modal-body {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}
.now-playing-overlay.is-fullscreen .now-playing-modal-body .now-playing-modal-title {
  font-size: 1rem;
  margin-bottom: 0;
}
.now-playing-overlay.is-fullscreen .now-playing-modal-body .now-playing-modal-artist-row {
  margin-bottom: 0.5rem;
}
.now-playing-overlay.is-fullscreen .now-playing-modal-body .now-playing-modal-artist-avatar {
  width: 28px;
  height: 28px;
}
.now-playing-overlay.is-fullscreen .now-playing-modal-body .now-playing-modal-artist {
  font-size: 0.9rem;
}
.now-playing-overlay.is-fullscreen .now-playing-modal-body .now-playing-lyrics {
  display: none;
}
.now-playing-overlay.is-fullscreen .now-playing-modal-body .now-playing-modal-queue-link {
  display: none;
}


.now-playing-modal-art {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.now-playing-modal-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.now-playing-modal-visualizer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Lyrics overlay on visualizer – readable over dynamic background */
.now-playing-visualizer-lyrics {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 1rem 1.25rem 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 80px;
}

/* Lyrics position customization (player settings) */
body[data-lyrics-position="top"] .now-playing-visualizer-lyrics,
body[data-lyrics-position="top"] .now-playing-fullscreen-art-lyrics {
  top: 0;
  bottom: auto;
  align-items: flex-start;
  background: linear-gradient(rgba(0, 0, 0, 0.6), transparent);
}
body[data-lyrics-position="center"] .now-playing-visualizer-lyrics,
body[data-lyrics-position="center"] .now-playing-fullscreen-art-lyrics {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  align-items: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.4), transparent);
}
body[data-lyrics-position="left"] .now-playing-visualizer-lyrics,
body[data-lyrics-position="left"] .now-playing-fullscreen-art-lyrics {
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  width: auto;
  max-width: 45%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.6), transparent);
}
body[data-lyrics-position="left"] .now-playing-visualizer-lyrics-inner,
body[data-lyrics-position="left"] .now-playing-fullscreen-art-lyrics-inner {
  align-items: flex-start;
  text-align: left;
}
body[data-lyrics-position="right"] .now-playing-visualizer-lyrics,
body[data-lyrics-position="right"] .now-playing-fullscreen-art-lyrics {
  top: 0;
  bottom: 0;
  left: auto;
  right: 0;
  width: auto;
  max-width: 45%;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.6), transparent);
}
body[data-lyrics-position="right"] .now-playing-visualizer-lyrics-inner,
body[data-lyrics-position="right"] .now-playing-fullscreen-art-lyrics-inner {
  align-items: flex-end;
  text-align: right;
}
.now-playing-visualizer-lyrics.hidden {
  display: none !important;
}
.now-playing-visualizer-lyrics-inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  text-align: center;
  max-height: 120px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.now-playing-visualizer-lyrics-inner::-webkit-scrollbar {
  display: none;
}
.now-playing-visualizer-lyrics-line {
  font-size: 0.95rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
  transition: color 0.2s, font-weight 0.2s;
}
.now-playing-visualizer-lyrics-line.current {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(147, 112, 219, 0.5), 0 0 10px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 0.9);
}
/* Fullscreen: larger lyrics, more prominent */
.now-playing-overlay.is-fullscreen .now-playing-visualizer-lyrics {
  padding: 2rem 2.5rem 3rem;
  min-height: 120px;
}
.now-playing-overlay.is-fullscreen .now-playing-visualizer-lyrics-inner {
  max-height: 200px;
}
.now-playing-overlay.is-fullscreen .now-playing-visualizer-lyrics-line {
  font-size: 1.4rem;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 24px rgba(0, 0, 0, 0.7);
}
.now-playing-overlay.is-fullscreen .now-playing-visualizer-lyrics-line.current {
  font-size: 1.6rem;
  text-shadow: 0 0 16px rgba(147, 112, 219, 0.6), 0 0 14px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.95);
}

.now-playing-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.now-playing-modal-subtitle {
  font-size: 1rem;
  color: var(--purple-light);
  margin-bottom: 0.25rem;
}

.now-playing-modal-artist-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.now-playing-modal-artist-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(147, 51, 234, 0.5);
  box-shadow: 0 0 12px var(--purple-glow);
}

.now-playing-modal-artist {
  font-size: 1rem;
  color: var(--text-muted);
}

.now-playing-modal-progress {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.now-playing-modal-progress-track {
  width: 100%;
  min-width: 0;
}

.now-playing-modal-progress-times {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.now-playing-modal-progress .seek-slider {
  display: block;
  width: 100%;
  flex: none;
}

.now-playing-modal-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 0;
  flex: 0 0 auto;
}

.now-playing-modal-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}

.now-playing-modal-controls-left {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.now-playing-modal-controls-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex: 0 0 auto;
}

.now-playing-modal-controls-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.now-playing-modal-controls .player-btn {
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
}

.now-playing-modal-controls-center .player-btn-play {
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
}

.now-playing-modal-controls .player-btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.now-playing-modal-controls .player-btn-icon .player-icon {
  width: 20px;
  height: 20px;
}

.now-playing-modal-controls .player-btn-icon .player-icon-mute {
  display: none;
}

.now-playing-modal-controls .player-btn-icon.is-muted .player-icon-volume {
  display: none;
}

.now-playing-modal-controls .player-btn-icon.is-muted .player-icon-mute {
  display: block;
}

.now-playing-modal-controls .player-btn-icon.active {
  color: var(--purple);
}

.now-playing-modal-volume-wrap {
  position: relative;
}

.now-playing-modal-volume-wrap .volume-popover {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 100px;
}

.now-playing-modal-volume-wrap .volume-slider {
  width: 80px;
  height: 6px;
}

.now-playing-lyrics {
  margin-top: 1rem;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}

.now-playing-lyrics.hidden {
  display: none !important;
}

.now-playing-lyrics-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.now-playing-lyrics-line {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-muted);
  transition: color 0.2s;
}

.now-playing-lyrics-line.current {
  color: var(--purple-light);
  font-weight: 600;
}

/* Lyrics display style (player settings) – no scroll/book-like */
body[data-lyrics-style="centered"] .now-playing-visualizer-lyrics,
body[data-lyrics-style="centered"] .now-playing-lyrics,
body[data-lyrics-style="centered"] .now-playing-fullscreen-art-lyrics {
  overflow: hidden;
}
body[data-lyrics-style="centered"] .now-playing-visualizer-lyrics-inner,
body[data-lyrics-style="centered"] .now-playing-lyrics-inner,
body[data-lyrics-style="centered"] .now-playing-fullscreen-art-lyrics-inner {
  overflow: hidden;
  max-height: 4em;
  justify-content: center;
  scroll-behavior: auto;
}
.now-playing-overlay.is-fullscreen body[data-lyrics-style="centered"] .now-playing-visualizer-lyrics-inner,
.now-playing-overlay.is-fullscreen[data-fullscreen-mode="art"] body[data-lyrics-style="centered"] .now-playing-fullscreen-art-lyrics-inner {
  max-height: 5em;
}
body[data-lyrics-style="centered"] .now-playing-visualizer-lyrics-line:not(.current),
body[data-lyrics-style="centered"] .now-playing-lyrics-line:not(.current),
body[data-lyrics-style="centered"] .now-playing-fullscreen-art-lyrics-line:not(.current) {
  display: none !important;
}
body[data-lyrics-style="centered"] .now-playing-visualizer-lyrics-line.current,
body[data-lyrics-style="centered"] .now-playing-lyrics-line.current,
body[data-lyrics-style="centered"] .now-playing-fullscreen-art-lyrics-line.current {
  animation: lyricsFadeIn 0.3s ease;
}
body[data-lyrics-style="spotlight"] .now-playing-visualizer-lyrics-line:not(.current),
body[data-lyrics-style="spotlight"] .now-playing-lyrics-line:not(.current),
body[data-lyrics-style="spotlight"] .now-playing-fullscreen-art-lyrics-line:not(.current) {
  opacity: 0.35;
  filter: blur(0.5px);
}
body[data-lyrics-style="spotlight"] .now-playing-visualizer-lyrics-line.current,
body[data-lyrics-style="spotlight"] .now-playing-lyrics-line.current,
body[data-lyrics-style="spotlight"] .now-playing-fullscreen-art-lyrics-line.current {
  opacity: 1;
  filter: none;
}
body[data-lyrics-style="fade"] .now-playing-visualizer-lyrics-line,
body[data-lyrics-style="fade"] .now-playing-lyrics-line,
body[data-lyrics-style="fade"] .now-playing-fullscreen-art-lyrics-line {
  transition: opacity 0.4s ease;
}
body[data-lyrics-style="fade"] .now-playing-visualizer-lyrics-line:not(.current),
body[data-lyrics-style="fade"] .now-playing-lyrics-line:not(.current),
body[data-lyrics-style="fade"] .now-playing-fullscreen-art-lyrics-line:not(.current) {
  opacity: 0.4;
}
body[data-lyrics-style="fade"] .now-playing-visualizer-lyrics-line.current,
body[data-lyrics-style="fade"] .now-playing-lyrics-line.current,
body[data-lyrics-style="fade"] .now-playing-fullscreen-art-lyrics-line.current {
  opacity: 1;
}
body[data-lyrics-style="scale"] .now-playing-visualizer-lyrics-line,
body[data-lyrics-style="scale"] .now-playing-lyrics-line,
body[data-lyrics-style="scale"] .now-playing-fullscreen-art-lyrics-line {
  transition: transform 0.25s ease, opacity 0.25s ease;
}
body[data-lyrics-style="scale"] .now-playing-visualizer-lyrics-line:not(.current),
body[data-lyrics-style="scale"] .now-playing-lyrics-line:not(.current),
body[data-lyrics-style="scale"] .now-playing-fullscreen-art-lyrics-line:not(.current) {
  transform: scale(0.92);
  opacity: 0.6;
}
body[data-lyrics-style="scale"] .now-playing-visualizer-lyrics-line.current,
body[data-lyrics-style="scale"] .now-playing-lyrics-line.current,
body[data-lyrics-style="scale"] .now-playing-fullscreen-art-lyrics-line.current {
  transform: scale(1.08);
  opacity: 1;
}
body[data-lyrics-style="stack"] .now-playing-visualizer-lyrics-inner,
body[data-lyrics-style="stack"] .now-playing-lyrics-inner,
body[data-lyrics-style="stack"] .now-playing-fullscreen-art-lyrics-inner {
  gap: 0.1rem;
}
body[data-lyrics-style="stack"] .now-playing-visualizer-lyrics-line:not(.current),
body[data-lyrics-style="stack"] .now-playing-lyrics-line:not(.current),
body[data-lyrics-style="stack"] .now-playing-fullscreen-art-lyrics-line:not(.current) {
  font-size: 0.75em;
  opacity: 0.5;
}
body[data-lyrics-style="stack"] .now-playing-visualizer-lyrics-line.current,
body[data-lyrics-style="stack"] .now-playing-lyrics-line.current,
body[data-lyrics-style="stack"] .now-playing-fullscreen-art-lyrics-line.current {
  font-size: 1em;
  opacity: 1;
}
@keyframes lyricsFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Lyrics & text font customization (player settings) */
.now-playing-subtitle,
.now-playing-modal-subtitle,
.now-playing-lyrics-line,
.now-playing-visualizer-lyrics-line,
.now-playing-fullscreen-art-lyrics-line {
  transition: font-family 0.2s ease;
}

body[data-lyrics-font="spaceGrotesk"] .now-playing-subtitle,
body[data-lyrics-font="spaceGrotesk"] .now-playing-modal-subtitle,
body[data-lyrics-font="spaceGrotesk"] .now-playing-lyrics-line,
body[data-lyrics-font="spaceGrotesk"] .now-playing-visualizer-lyrics-line,
body[data-lyrics-font="spaceGrotesk"] .now-playing-fullscreen-art-lyrics-line {
  font-family: 'Space Grotesk', sans-serif;
}

body[data-lyrics-font="vt323"] .now-playing-subtitle,
body[data-lyrics-font="vt323"] .now-playing-modal-subtitle,
body[data-lyrics-font="vt323"] .now-playing-lyrics-line,
body[data-lyrics-font="vt323"] .now-playing-visualizer-lyrics-line,
body[data-lyrics-font="vt323"] .now-playing-fullscreen-art-lyrics-line {
  font-family: 'VT323', monospace;
  letter-spacing: 0.02em;
}

body[data-lyrics-font="shareTechMono"] .now-playing-subtitle,
body[data-lyrics-font="shareTechMono"] .now-playing-modal-subtitle,
body[data-lyrics-font="shareTechMono"] .now-playing-lyrics-line,
body[data-lyrics-font="shareTechMono"] .now-playing-visualizer-lyrics-line,
body[data-lyrics-font="shareTechMono"] .now-playing-fullscreen-art-lyrics-line {
  font-family: 'Share Tech Mono', monospace;
}

body[data-lyrics-font="pressStart2P"] .now-playing-subtitle,
body[data-lyrics-font="pressStart2P"] .now-playing-modal-subtitle {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.55rem;
  line-height: 1.5;
}
body[data-lyrics-font="pressStart2P"] .now-playing-lyrics-line,
body[data-lyrics-font="pressStart2P"] .now-playing-visualizer-lyrics-line,
body[data-lyrics-font="pressStart2P"] .now-playing-fullscreen-art-lyrics-line {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
  line-height: 1.8;
}
body[data-lyrics-font="pressStart2P"] .now-playing-overlay.is-fullscreen .now-playing-visualizer-lyrics-line,
body[data-lyrics-font="pressStart2P"] .now-playing-overlay.is-fullscreen[data-fullscreen-mode="art"] .now-playing-fullscreen-art-lyrics-line {
  font-size: 1rem;
}

body[data-lyrics-font="orbitron"] .now-playing-subtitle,
body[data-lyrics-font="orbitron"] .now-playing-modal-subtitle,
body[data-lyrics-font="orbitron"] .now-playing-lyrics-line,
body[data-lyrics-font="orbitron"] .now-playing-visualizer-lyrics-line,
body[data-lyrics-font="orbitron"] .now-playing-fullscreen-art-lyrics-line {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.04em;
}

body[data-lyrics-font="audiowide"] .now-playing-subtitle,
body[data-lyrics-font="audiowide"] .now-playing-modal-subtitle,
body[data-lyrics-font="audiowide"] .now-playing-lyrics-line,
body[data-lyrics-font="audiowide"] .now-playing-visualizer-lyrics-line,
body[data-lyrics-font="audiowide"] .now-playing-fullscreen-art-lyrics-line {
  font-family: 'Audiowide', sans-serif;
  letter-spacing: 0.03em;
}

body[data-lyrics-font="cinzel"] .now-playing-subtitle,
body[data-lyrics-font="cinzel"] .now-playing-modal-subtitle,
body[data-lyrics-font="cinzel"] .now-playing-lyrics-line,
body[data-lyrics-font="cinzel"] .now-playing-visualizer-lyrics-line,
body[data-lyrics-font="cinzel"] .now-playing-fullscreen-art-lyrics-line {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.02em;
}

body[data-lyrics-font="bungee"] .now-playing-subtitle,
body[data-lyrics-font="bungee"] .now-playing-modal-subtitle,
body[data-lyrics-font="bungee"] .now-playing-lyrics-line,
body[data-lyrics-font="bungee"] .now-playing-visualizer-lyrics-line,
body[data-lyrics-font="bungee"] .now-playing-fullscreen-art-lyrics-line {
  font-family: 'Bungee', cursive;
}

body[data-lyrics-font="majorMonoDisplay"] .now-playing-subtitle,
body[data-lyrics-font="majorMonoDisplay"] .now-playing-modal-subtitle,
body[data-lyrics-font="majorMonoDisplay"] .now-playing-lyrics-line,
body[data-lyrics-font="majorMonoDisplay"] .now-playing-visualizer-lyrics-line,
body[data-lyrics-font="majorMonoDisplay"] .now-playing-fullscreen-art-lyrics-line {
  font-family: 'Major Mono Display', monospace;
}

body[data-lyrics-font="monoton"] .now-playing-subtitle,
body[data-lyrics-font="monoton"] .now-playing-modal-subtitle,
body[data-lyrics-font="monoton"] .now-playing-lyrics-line,
body[data-lyrics-font="monoton"] .now-playing-visualizer-lyrics-line,
body[data-lyrics-font="monoton"] .now-playing-fullscreen-art-lyrics-line {
  font-family: 'Monoton', cursive;
  letter-spacing: 0.08em;
}

body[data-lyrics-font="jetBrainsMono"] .now-playing-subtitle,
body[data-lyrics-font="jetBrainsMono"] .now-playing-modal-subtitle,
body[data-lyrics-font="jetBrainsMono"] .now-playing-lyrics-line,
body[data-lyrics-font="jetBrainsMono"] .now-playing-visualizer-lyrics-line,
body[data-lyrics-font="jetBrainsMono"] .now-playing-fullscreen-art-lyrics-line {
  font-family: 'JetBrains Mono', monospace;
}

body[data-lyrics-font="syneMono"] .now-playing-subtitle,
body[data-lyrics-font="syneMono"] .now-playing-modal-subtitle,
body[data-lyrics-font="syneMono"] .now-playing-lyrics-line,
body[data-lyrics-font="syneMono"] .now-playing-visualizer-lyrics-line,
body[data-lyrics-font="syneMono"] .now-playing-fullscreen-art-lyrics-line {
  font-family: 'Syne Mono', monospace;
}

/* Queue panel (slide-out) */
.queue-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  z-index: 50;
  padding: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease;
}

.queue-panel.hidden {
  display: none;
}

.queue-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  background: transparent;
}

.queue-panel-header h2,
.queue-panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  line-height: 0;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

/* Queue word: CSS art style – purple-to-white gradient, bold, subtle ribbon/fold effect */
.queue-word-text {
  background: linear-gradient(to right, var(--purple) 0%, #b794f6 40%, #e9d5ff 70%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.queue-panel-title .queue-word-text {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.queue-list {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.queue-item img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.queue-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.queue-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.queue-item-play,
.queue-item-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.queue-item-play:hover,
.queue-item-remove:hover {
  background: var(--purple);
  color: white;
}

/* Header site settings (appearance, theme, background) */
.header-settings-wrap {
  position: relative;
}

.site-settings-popover {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 110;
  width: 260px;
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 14px;
  background: rgba(12,8,26,0.97);
  border: 1px solid rgba(147,51,234,0.2);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  scrollbar-width: thin;
  scrollbar-color: rgba(147,51,234,0.3) transparent;
}
.site-settings-popover .player-settings-panel {
  padding: 14px 16px;
}
.site-settings-popover .site-settings-panel-v2 {
  min-width: unset;
  box-shadow: none;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 14px 16px;
}
.site-settings-popover .player-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: nowrap;
}
.site-settings-popover .player-settings-select {
  max-width: 140px;
  min-width: unset;
  width: auto;
  font-size: 0.75rem;
}
.site-settings-popover .player-settings-label {
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-settings-popover.hidden {
  display: none;
}

.site-settings-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

/* Background style options (data-background on html) */
[data-background="solid"] .bg-waves {
  background: #000000;
}

[data-background="solid"] .bg-waves::before {
  opacity: 0;
}

[data-background="gradient"] .bg-waves {
  background: linear-gradient(135deg, #0d0a1a 0%, #1a0a2e 40%, #0a1520 100%);
}

[data-background="gradient"] .bg-waves::before {
  opacity: 0.06;
}

[data-background="subtle"] .bg-waves::before {
  opacity: 0.03;
}
[data-background="ember"] .bg-waves {
  background: radial-gradient(circle at 30% 20%, rgba(180, 50, 50, 0.35), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(120, 30, 40, 0.25), transparent 55%),
    linear-gradient(180deg, #1a0a0c 0%, #140809 100%);
}
[data-background="ember"] .bg-waves::before {
  opacity: 0.04;
}
[data-background="gold"] .bg-waves {
  background: radial-gradient(circle at 20% 25%, rgba(212, 172, 44, 0.28), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(184, 134, 11, 0.2), transparent 55%),
    linear-gradient(180deg, #181410 0%, #1c1610 100%);
}
[data-background="gold"] .bg-waves::before {
  opacity: 0.05;
}
[data-background="sonaraGlow"] .bg-waves {
  background: radial-gradient(circle at 25% 25%, rgba(232, 74, 40, 0.24), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(230, 184, 74, 0.18), transparent 55%),
    linear-gradient(180deg, #0e1117 0%, #161c28 100%);
}
[data-background="sonaraGlow"] .bg-waves::before {
  opacity: 0.04;
}

/* ── Neon — electric dark with vivid glow ── */
[data-background="neon"] .bg-waves { background: #03001a; }
[data-background="neon"] .bg-waves::before {
  background:
    radial-gradient(ellipse 70% 50% at 10% 10%, rgba(255,0,255,.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 90%, rgba(0,255,255,.3) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(147,51,234,.2) 0%, transparent 60%),
    linear-gradient(160deg, #0d0030 0%, #03001a 50%, #001a1a 100%);
}

/* ── Midnight — pure deep dark ── */
[data-background="midnight"] .bg-waves { background: #000008; }
[data-background="midnight"] .bg-waves::before {
  background:
    radial-gradient(ellipse 40% 30% at 15% 85%, rgba(99,102,241,.18) 0%, transparent 50%),
    radial-gradient(ellipse 30% 25% at 85% 15%, rgba(147,51,234,.12) 0%, transparent 50%),
    linear-gradient(180deg, #000008 0%, #05050f 100%);
}

/* ── Aurora (canvas) — northern lights ── */
[data-background="aurora"] .bg-waves { background: #010e12; }
[data-background="aurora"] .bg-waves::before {
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(16,185,129,.4) 0%, transparent 60%),
    radial-gradient(ellipse 70% 35% at 20% 60%, rgba(6,182,212,.3) 0%, transparent 55%),
    radial-gradient(ellipse 60% 30% at 80% 40%, rgba(147,51,234,.3) 0%, transparent 55%),
    linear-gradient(180deg, #010e12 0%, #030818 100%);
}

/* ── Nebula — cosmic space ── */
[data-background="nebula"] .bg-waves { background: #08010f; }
[data-background="nebula"] .bg-waves::before {
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(244,63,94,.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 70% 60%, rgba(99,102,241,.28) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 20%, rgba(245,158,11,.12) 0%, transparent 50%),
    linear-gradient(160deg, #0f0218 0%, #08010f 50%, #020010 100%);
}

/* ── Frost — cool minimal blue ── */
[data-background="frost"] .bg-waves { background: #050d18; }
[data-background="frost"] .bg-waves::before {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(186,230,253,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 45% at 10% 80%, rgba(6,182,212,.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 30%, rgba(99,102,241,.12) 0%, transparent 50%),
    linear-gradient(180deg, #050d18 0%, #03080f 100%);
}

/* Canvas dark — pure void */
[data-background="dark"] .bg-waves {
  background: #000000;
}
[data-background="dark"] .bg-waves::before {
  opacity: 0;
}

[data-card-style="flat"] .glass {
  background: var(--bg-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid color-mix(in srgb, var(--border) 80%, var(--purple) 20%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-card-style="bordered"] .glass {
  border: 1px solid color-mix(in srgb, var(--border) 50%, var(--purple) 50%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 12px 36px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* ═══════════════════════════════════════════════
   ✨ LYRIC SPOTLIGHT — Home Section
═══════════════════════════════════════════════ */

.lyric-spotlight-section .section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.spotlight-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.spotlight-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}

.spotlight-dot.active {
  background: var(--purple-light);
  box-shadow: 0 0 8px var(--purple-glow);
  width: 20px;
  border-radius: 4px;
}

.lyric-spotlight-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

/* ── Main quote card ── */
/* ── Main spotlight card — outer wrapper with neon glow ── */
.spotlight-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(0, 210, 255, 0.25);
  background: rgba(12, 8, 32, 0.85);
  padding: 1.75rem 1.75rem 1.5rem;
  overflow: hidden;
  cursor: default;
  transition: border-color 0.4s, box-shadow 0.4s;
  box-shadow:
    0 0 0 1px rgba(0, 210, 255, 0.08),
    0 0 40px rgba(0, 210, 255, 0.12),
    0 0 80px rgba(147, 51, 234, 0.1),
    inset 0 0 60px rgba(0, 210, 255, 0.03);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spotlight-card:hover {
  border-color: rgba(0, 210, 255, 0.5);
  box-shadow:
    0 0 0 1px rgba(0, 210, 255, 0.15),
    0 0 60px rgba(0, 210, 255, 0.22),
    0 0 100px rgba(147, 51, 234, 0.15),
    inset 0 0 80px rgba(0, 210, 255, 0.05);
}

/* Animated ambient glow ring — top right corner */
.spotlight-glow-ring {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,210,255,0.12) 0%, rgba(147,51,234,0.08) 50%, transparent 70%);
  animation: spotlightPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes spotlightPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Scan line animation */
.spotlight-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,210,255,0.35), rgba(192,132,252,0.35), transparent);
  animation: spotlightScan 7s linear infinite;
  pointer-events: none;
  top: 0;
}

@keyframes spotlightScan {
  0%   { top: 0%;   opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Quoted lyric box — the glowing inner box like Image 2 */
.spotlight-lyric-box {
  position: relative;
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  padding: 1.1rem 1.25rem 1.1rem 1.1rem;
  margin: 0.5rem 0 1.25rem;
  box-shadow:
    0 0 18px rgba(0, 210, 255, 0.1),
    inset 0 0 20px rgba(0, 210, 255, 0.03);
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Opening quote mark inside the box */
.spotlight-quote-open,
.spotlight-quote-close {
  font-size: 1.6rem;
  line-height: 1;
  color: rgba(0, 210, 255, 0.7);
  font-family: Georgia, serif;
  flex-shrink: 0;
  margin-top: -2px;
  font-style: normal;
}

.spotlight-quote-close {
  align-self: flex-end;
  margin-bottom: -2px;
  margin-top: 0;
}

/* The lyric text itself */
.spotlight-lyric {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
  letter-spacing: -0.01em;
  flex: 1;
  opacity: 1;
  transition: opacity 0.3s ease;
  font-style: italic;
  will-change: opacity;
  -webkit-font-smoothing: antialiased;
}

.spotlight-lyric.fading {
  opacity: 0;
}

/* Track info row at bottom */
.spotlight-track-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 210, 255, 0.1);
}

.spotlight-cover {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: rgba(0,210,255,0.1);
  border: 1px solid rgba(0,210,255,0.25);
}

.spotlight-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.spotlight-cover img.loaded {
  display: block;
}

.spotlight-cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: rgba(0,210,255,0.6);
}

.spotlight-meta {
  flex: 1;
  min-width: 0;
}

.spotlight-track-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-artist-name {
  display: block;
  font-size: 0.8rem;
  color: rgba(0, 210, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.spotlight-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple);
  border: none;
  color: white;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: 0 0 16px var(--purple-glow);
}

.spotlight-play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 26px var(--purple-glow);
}

/* ── Right column — "Playlist of the Moment" style ── */
.spotlight-right-col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
}

/* Outer glow wrapper like Image 2's right panel */
.spotlight-right-col::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  background: transparent;
  box-shadow: 0 0 40px rgba(0, 210, 255, 0.1), 0 0 80px rgba(147,51,234,0.08);
  pointer-events: none;
  z-index: 0;
}

.spotlight-right-col .quick-pick-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 210, 255, 0.18);
  background: rgba(10, 6, 28, 0.8);
  cursor: pointer;
  transition: all 0.25s;
  flex: 1;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.06), inset 0 0 20px rgba(0,0,0,0.2);
}

.spotlight-right-col .quick-pick-card:hover {
  background: rgba(0, 210, 255, 0.07);
  border-color: rgba(0, 210, 255, 0.45);
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.18), inset 0 0 20px rgba(0,210,255,0.04);
  transform: translateX(4px);
}

.spotlight-right-col .quick-pick-art {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(0, 210, 255, 0.15);
}

.spotlight-right-col .quick-pick-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-pick-info {
  flex: 1;
  min-width: 0;
}

.quick-pick-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  display: block;
}

.quick-pick-sub {
  display: block;
  font-size: 0.75rem;
  color: rgba(0, 210, 255, 0.6);
  margin-top: 3px;
}

.quick-pick-arrow {
  font-size: 1.3rem;
  color: rgba(0, 210, 255, 0.4);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}

.spotlight-right-col .quick-pick-card:hover .quick-pick-arrow {
  color: rgba(0, 210, 255, 0.9);
  transform: translateX(3px);
}

/* Empty / loading state */
.spotlight-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem;
}

.spotlight-empty-icon {
  font-size: 2rem;
  opacity: 0.4;
}

.spotlight-empty-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .lyric-spotlight-layout {
    grid-template-columns: 1fr;
  }
  .spotlight-right-col {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .spotlight-right-col .quick-pick-card {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 140px;
  }
}

/* ═══════════════════════════════════════════════
   ✨ LYRIC SPOTLIGHT — Upload Form Section
═══════════════════════════════════════════════ */

.upload-spotlight-section {
  margin-bottom: 14px;
  padding: 16px;
  background: rgba(147, 51, 234, 0.06);
  border: 1px solid rgba(147, 51, 234, 0.25);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.upload-spotlight-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192,132,252,0.5), transparent);
}

.upload-spotlight-label {
  color: var(--purple-light) !important;
  letter-spacing: 0.08em;
  font-size: 11px !important;
}

.upload-spotlight-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0 12px;
  line-height: 1.5;
}

.upload-spotlight-generate-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(147,51,234,0.2), rgba(192,132,252,0.1));
  border: 1px solid rgba(147, 51, 234, 0.4);
  border-radius: 8px;
  color: var(--purple-light);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  justify-content: center;
}

.upload-spotlight-generate-btn:hover {
  background: linear-gradient(135deg, rgba(147,51,234,0.35), rgba(192,132,252,0.2));
  border-color: var(--purple-light);
  box-shadow: 0 0 16px rgba(147,51,234,0.3);
}

.upload-spotlight-generate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.upload-spotlight-btn-icon {
  font-size: 1rem;
  animation: spotlightSpin 3s linear infinite;
}

.upload-spotlight-generate-btn:not(:disabled) .upload-spotlight-btn-icon {
  animation: spotlightSpin 3s linear infinite;
}

@keyframes spotlightSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Preview quote box */
.upload-spotlight-preview {
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(10, 5, 25, 0.6);
  border: 1px solid rgba(147, 51, 234, 0.45);
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 20px rgba(147,51,234,0.12), inset 0 0 30px rgba(147,51,234,0.04);
}

.upload-spotlight-quote-mark {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--purple);
  opacity: 0.4;
  font-family: Georgia, serif;
  margin-bottom: -0.4rem;
}

.upload-spotlight-quote-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin: 0.4rem 0 1rem;
  font-style: italic;
}

.upload-spotlight-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.upload-spotlight-action-btn {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid;
}

.upload-spotlight-action-btn.approve {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.35);
  color: #4ade80;
}
.upload-spotlight-action-btn.approve:hover {
  background: rgba(74, 222, 128, 0.22);
  box-shadow: 0 0 12px rgba(74,222,128,0.2);
}

.upload-spotlight-action-btn.edit {
  background: rgba(192,132,252,0.1);
  border-color: rgba(192,132,252,0.3);
  color: var(--purple-light);
}
.upload-spotlight-action-btn.edit:hover {
  background: rgba(192,132,252,0.2);
}

.upload-spotlight-action-btn.regen {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
  color: var(--text-muted);
}
.upload-spotlight-action-btn.regen:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.upload-spotlight-status {
  margin-top: 8px;
  font-size: 12px;
  color: #4ade80;
  min-height: 18px;
}

/* Edit textarea */
.upload-spotlight-edit-box {
  margin-top: 12px;
}

.upload-spotlight-textarea {
  width: 100%;
  background: rgba(10,5,25,0.7);
  border: 1px solid rgba(147,51,234,0.4);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  font-style: italic;
  padding: 10px 12px;
  resize: vertical;
  margin-bottom: 8px;
  box-sizing: border-box;
  font-family: inherit;
}

.upload-spotlight-textarea:focus {
  outline: none;
  border-color: var(--purple-light);
  box-shadow: 0 0 12px rgba(147,51,234,0.25);
}

/* ═══════════════════════════════════════════════
   ✨ ARTIST FOLLOW BUTTON
═══════════════════════════════════════════════ */

.artist-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.artist-follow-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.5rem;
  padding: 10px 22px 10px 16px;
  border-radius: 100px;
  border: 1px solid rgba(0, 210, 255, 0.45);
  background: rgba(0, 210, 255, 0.06);
  color: rgba(0, 210, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: fit-content;
}

/* Animated glow layer behind button */
.artist-follow-btn-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at center, rgba(0,210,255,0.18) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.artist-follow-btn:hover .artist-follow-btn-glow {
  opacity: 1;
}

.artist-follow-btn:hover {
  border-color: rgba(0, 210, 255, 0.85);
  background: rgba(0, 210, 255, 0.1);
  box-shadow:
    0 0 20px rgba(0, 210, 255, 0.25),
    0 0 40px rgba(0, 210, 255, 0.1),
    inset 0 0 15px rgba(0, 210, 255, 0.05);
  transform: scale(1.04);
}

.artist-follow-btn:active {
  transform: scale(0.97);
}

/* Music note icon */
.artist-follow-btn-icon {
  font-size: 1rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

.artist-follow-btn:hover .artist-follow-btn-icon {
  transform: rotate(-12deg) scale(1.2);
}

/* ── FOLLOWING state ── */
.artist-follow-btn.following {
  border-color: rgba(192, 132, 252, 0.6);
  background: rgba(147, 51, 234, 0.15);
  color: var(--purple-light);
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.2), inset 0 0 15px rgba(147,51,234,0.05);
}

.artist-follow-btn.following .artist-follow-btn-glow {
  background: radial-gradient(ellipse at center, rgba(147,51,234,0.2) 0%, transparent 70%);
}

.artist-follow-btn.following:hover {
  border-color: rgba(248, 113, 113, 0.6);
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  box-shadow: 0 0 20px rgba(239,68,68,0.2);
}

.artist-follow-btn.following:hover .artist-follow-btn-label::before {
  content: 'Unfollow';
}

.artist-follow-btn.following .artist-follow-btn-label {
  font-size: 0;
}

.artist-follow-btn.following .artist-follow-btn-label::before {
  content: 'Following ✓';
  font-size: 0.88rem;
}

/* Pulse animation on follow */
@keyframes followPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  70%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

.artist-follow-btn.pop {
  animation: followPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Ripple effect on click */
.artist-follow-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 210, 255, 0.15);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.artist-follow-btn:active::after {
  transform: scale(1);
  opacity: 1;
  transition: 0s;
}

/* Follower count badge */
.artist-follow-count {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ── Player bar: clickable title + artist ── */
.now-playing-title {
  cursor: pointer !important;
  transition: color 0.2s;
}
.now-playing-title:hover {
  color: var(--purple-light) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.now-playing-artist, .player-now-info__artist {
  cursor: pointer !important;
  transition: color 0.2s;
}
.now-playing-artist:hover, .player-now-info__artist:hover {
  color: rgba(0,210,255,0.9) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Spotlight card — clickable to play */
.spotlight-card {
  cursor: pointer;
}
.spotlight-card:hover .spotlight-play-btn {
  transform: scale(1.15);
  box-shadow: 0 0 30px var(--purple-glow);
}
.spotlight-card:hover .spotlight-lyric-box {
  border-color: rgba(0, 210, 255, 0.55);
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.15), inset 0 0 20px rgba(0, 210, 255, 0.04);
}

/* ═══════════════════════════════════════════════
   🎵 SIDEBAR — Shared panel header styles
═══════════════════════════════════════════════ */

.side-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.side-panel-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.side-panel-icon--hype {
  background: rgba(147,51,234,0.18);
  border: 1px solid rgba(147,51,234,0.3);
  color: #c084fc;
}
.side-panel-icon--rankings {
  background: rgba(0,210,255,0.1);
  border: 1px solid rgba(0,210,255,0.25);
  color: rgba(0,210,255,0.85);
}

/* Animated equalizer bars */
.side-eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  margin-left: auto;
}
.side-eq-bars span {
  display: block;
  width: 2.5px;
  border-radius: 1px;
  background: rgba(147,51,234,0.55);
  animation: sideEqAnim 1.2s ease-in-out infinite;
}
.side-eq-bars span:nth-child(1) { height: 5px; animation-delay: 0s; }
.side-eq-bars span:nth-child(2) { height: 11px; animation-delay: 0.15s; }
.side-eq-bars span:nth-child(3) { height: 7px; animation-delay: 0.3s; }
.side-eq-bars span:nth-child(4) { height: 13px; animation-delay: 0.1s; }
.side-eq-bars span:nth-child(5) { height: 6px; animation-delay: 0.25s; }

.side-eq-bars--cyan span {
  background: rgba(0,210,255,0.55);
}

@keyframes sideEqAnim {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.8); }
}

/* ═══════════════════════════════════════════════
   🏆 TOP RANKINGS — Sidebar panel
═══════════════════════════════════════════════ */

.landing-rankings-panel {
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid rgba(0,210,255,0.15);
  background: rgba(0,210,255,0.03);
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

/* Decorative vinyl in corner */
.side-rankings-vinyl {
  position: absolute;
  top: -18px; right: -18px;
  width: 64px; height: 64px;
  opacity: 0.05;
  color: rgba(0,210,255,1);
  pointer-events: none;
}

/* Compact tabs */
.side-rankings-tabs {
  display: flex;
  gap: 3px;
  background: rgba(0,0,0,0.25);
  border-radius: 7px;
  padding: 3px;
  margin-bottom: 10px;
}
.side-rankings-tab {
  flex: 1;
  padding: 5px 0;
  border-radius: 5px;
  border: none;
  background: none;
  color: rgba(255,255,255,0.3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s;
  text-align: center;
}
.side-rankings-tab.active {
  background: rgba(0,210,255,0.18);
  color: rgba(0,210,255,0.9);
  border: 1px solid rgba(0,210,255,0.3);
}
.side-rankings-tab:hover:not(.active) {
  color: rgba(255,255,255,0.6);
}

/* Loading state */
.side-rankings-loading {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 16px 0;
}

/* Rank rows */
.side-rank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.side-rank-row:hover {
  background: rgba(0,210,255,0.06);
}

/* Coloured left accent bar for top 3 */
.side-rank-row.bar-gold::before {
  content: '';
  position: absolute; left: 0; top: 5px; bottom: 5px;
  width: 2px; border-radius: 2px;
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}
.side-rank-row.bar-silver::before {
  content: '';
  position: absolute; left: 0; top: 5px; bottom: 5px;
  width: 2px; border-radius: 2px;
  background: #94a3b8;
}
.side-rank-row.bar-bronze::before {
  content: '';
  position: absolute; left: 0; top: 5px; bottom: 5px;
  width: 2px; border-radius: 2px;
  background: #d97706;
}

/* Position medal */
.side-rank-pos {
  width: 22px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.side-rank-pos.gold { color: #f59e0b; }
.side-rank-pos.silver { color: #94a3b8; }
.side-rank-pos.bronze { color: #d97706; }
.side-rank-pos.num { color: rgba(255,255,255,0.22); font-size: 11px; }

/* Cover art */
.side-rank-cover {
  width: 36px; height: 36px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}
.side-rank-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.side-rank-cover-fallback {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0,210,255,0.15), rgba(147,51,234,0.15));
  border: 1px solid rgba(0,210,255,0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,210,255,0.5);
}

/* Info */
.side-rank-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.side-rank-info:hover .side-rank-title {
  color: rgba(0,210,255,0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.side-rank-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
.side-rank-artist {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.side-rank-genre {
  font-size: 9px;
  color: rgba(0,210,255,0.6);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Right — badge + play */
.side-rank-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.side-rank-badge {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.badge-hot {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.25);
}
.badge-new {
  background: rgba(0,210,255,0.08);
  color: rgba(0,210,255,0.7);
  border: 1px solid rgba(0,210,255,0.18);
}
.side-rank-play {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,210,255,0.15);
  border: 1px solid rgba(0,210,255,0.3);
  color: rgba(0,210,255,0.85);
  font-size: 7px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.side-rank-play:hover {
  background: rgba(0,210,255,0.3);
  box-shadow: 0 0 10px rgba(0,210,255,0.3);
}

/* Thin divider between rows */
.side-rank-divider {
  height: 1px;
  background: rgba(255,255,255,0.04);
  margin: 2px 0;
}

/* ═══════════════════════════════════════════════════════
   🎵 NEW RELEASES + FOR YOU — Portrait & Landscape rows
   Inspired by coins.game numbered card layout
═══════════════════════════════════════════════════════ */

.snr-section { margin-bottom: 2.5rem; }

/* Section header */
.snr-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.snr-section-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.snr-section-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.snr-icon-cyan { background: rgba(0,210,255,0.12); color: rgba(0,210,255,0.85); border: 1px solid rgba(0,210,255,0.2); }
.snr-icon-purple { background: rgba(147,51,234,0.15); color: #c084fc; border: 1px solid rgba(147,51,234,0.25); }

.snr-section-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}
.snr-section-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
}
.snr-badge-cyan { background: rgba(0,210,255,0.1); color: rgba(0,210,255,0.75); border: 1px solid rgba(0,210,255,0.18); }
.snr-badge-purple { background: rgba(147,51,234,0.12); color: #c084fc; border: 1px solid rgba(147,51,234,0.22); }

.snr-section-right {
  display: flex;
  align-items: center;
  gap: 5px;
}
.snr-see-all {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.snr-see-all:hover { background: rgba(255,255,255,0.1); color: #fff; }
.snr-nav-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.snr-nav-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Genre filter pills */
.snr-genre-pills {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.snr-genre-pills::-webkit-scrollbar { display: none; }

.snr-genre-pill {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.45);
  transition: all 0.18s;
  white-space: nowrap;
}
.snr-genre-pill:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.snr-genre-pill.active {
  background: rgba(147,51,234,0.25);
  border-color: rgba(147,51,234,0.5);
  color: #e9d5ff;
}
#forYouSection .snr-genre-pill.active {
  background: rgba(0,210,255,0.15);
  border-color: rgba(0,210,255,0.4);
  color: rgba(0,210,255,0.9);
}

/* ── PORTRAIT CARDS (New Releases) ── */
.snr-portrait-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(147,51,234,0.3) transparent;
}
.snr-portrait-row::-webkit-scrollbar { height: 3px; }
.snr-portrait-row::-webkit-scrollbar-track { background: transparent; }
.snr-portrait-row::-webkit-scrollbar-thumb { background: rgba(147,51,234,0.3); border-radius: 2px; }

.snr-portrait-card {
  flex-shrink: 0;
  width: 148px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
}
.snr-portrait-card:hover { transform: translateY(-5px); }

.snr-pc-img {
  width: 148px;
  height: 198px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(147,51,234,0.15);
}
.snr-pc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.snr-pc-img-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  border-radius: 14px;
}
.snr-pc-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 45%, transparent 100%);
  border-radius: 14px;
}
.snr-pc-num {
  position: absolute;
  top: 10px; left: 10px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
  z-index: 2;
}
.snr-pc-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(147,51,234,0.85);
  border: none; color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(147,51,234,0.6);
  z-index: 3;
}
.snr-portrait-card:hover .snr-pc-play { opacity: 1; }

.snr-pc-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 10px 12px;
  z-index: 2;
}
.snr-pc-title {
  font-size: 12px; font-weight: 800; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}
.snr-pc-artist {
  font-size: 10px; color: rgba(255,255,255,0.55);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.snr-pc-genres {
  display: flex; gap: 3px; margin-top: 5px; flex-wrap: wrap;
}
.snr-pc-genre {
  font-size: 8px; font-weight: 700;
  padding: 2px 5px; border-radius: 3px;
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── LANDSCAPE CARDS (For You) ── */
.snr-landscape-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,210,255,0.2) transparent;
}
.snr-landscape-row::-webkit-scrollbar { height: 3px; }
.snr-landscape-row::-webkit-scrollbar-track { background: transparent; }
.snr-landscape-row::-webkit-scrollbar-thumb { background: rgba(0,210,255,0.2); border-radius: 2px; }

.snr-landscape-card {
  flex-shrink: 0;
  width: 210px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: all 0.2s;
}
.snr-landscape-card:hover {
  border-color: rgba(0,210,255,0.35);
  background: rgba(0,210,255,0.05);
  transform: translateY(-3px);
}

.snr-lc-cover {
  width: 210px; height: 118px;
  position: relative; overflow: hidden;
  background: rgba(0,210,255,0.08);
}
.snr-lc-cover img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.snr-lc-cover-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.snr-lc-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}
.snr-lc-match {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(147,51,234,0.75);
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 9px; font-weight: 800; color: #fff;
  letter-spacing: 0.04em;
}
.snr-lc-play {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,210,255,0.75);
  border: none; color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(0,210,255,0.4);
}
.snr-landscape-card:hover .snr-lc-play { opacity: 1; }

.snr-lc-info { padding: 10px 12px 12px; }
.snr-lc-title {
  font-size: 13px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.snr-lc-artist {
  font-size: 11px; color: rgba(255,255,255,0.4);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.snr-lc-tags {
  display: flex; gap: 4px; margin-top: 7px; flex-wrap: wrap;
}
.snr-lc-tag {
  font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 3px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.snr-lc-tag-purple { background: rgba(147,51,234,0.15); color: #c084fc; border: 1px solid rgba(147,51,234,0.25); }
.snr-lc-tag-cyan { background: rgba(0,210,255,0.1); color: rgba(0,210,255,0.75); border: 1px solid rgba(0,210,255,0.2); }
.snr-lc-tag-pink { background: rgba(236,72,153,0.12); color: #f472b6; border: 1px solid rgba(236,72,153,0.2); }

/* Empty state */
.snr-empty {
  color: rgba(255,255,255,0.25);
  font-size: 13px;
  padding: 20px 0;
  text-align: center;
  width: 100%;
}

@media (max-width: 600px) {
  .snr-portrait-card { width: 128px; }
  .snr-pc-img { width: 128px; height: 170px; }
  .snr-landscape-card { width: 180px; }
  .snr-lc-cover { width: 180px; height: 100px; }
  .snr-section-badge { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   💎 ARTIST COLLECTIBLES — Diamond Card Showcase v2
═══════════════════════════════════════════════════════════ */

.ac-showcase-section { padding: 0 0 2.5rem; }

.ac-showcase {
  background: linear-gradient(170deg, #050115 0%, #0e0328 40%, #080120 70%, #0c0230 100%);
  border-radius: 20px;
  position: relative;
  padding: 28px 24px 24px;
  overflow: hidden;
  border: 1px solid rgba(0,210,255,0.12);
  box-shadow:
    0 0 80px rgba(147,51,234,0.18),
    inset 0 1px 0 rgba(0,210,255,0.08),
    inset 0 -1px 0 rgba(255,0,200,0.06);
}

.ac-cyber-bg {
  position: absolute; inset: 0;
  opacity: 0.09; pointer-events: none; overflow: hidden;
}

/* Header */
.ac-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; position: relative; z-index: 2;
}
.ac-title {
  font-size: 13px; font-weight: 900; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.9); text-transform: uppercase; margin: 0 0 7px;
}
.ac-accents { display: flex; align-items: center; gap: 8px; }
.ac-accent-line { height: 2px; width: 44px; border-radius: 1px; }
.ac-accent-cyan { background: rgba(0,210,255,0.75); }
.ac-accent-magenta { background: rgba(255,0,200,0.75); }
.ac-accent-dots { display: flex; gap: 5px; align-items: center; }
.ac-dot { width: 6px; height: 6px; border-radius: 50%; animation: acDotPulse 2s ease-in-out infinite; }
.ac-dot-c { background:#00d2ff; box-shadow:0 0 7px #00d2ff; animation-delay:0s; }
.ac-dot-m { background:#ff00c8; box-shadow:0 0 7px #ff00c8; animation-delay:0.4s; }
.ac-dot-y { background:#ffd700; box-shadow:0 0 7px #ffd700; animation-delay:0.8s; }
@keyframes acDotPulse { 0%,100%{opacity:0.35;transform:scale(0.75);} 50%{opacity:1;transform:scale(1.25);} }
.ac-header-right { font-size:10px;font-weight:700;letter-spacing:0.1em;color:rgba(0,210,255,0.4);text-transform:uppercase; }

/* Stack area */
.ac-stack-area {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; position: relative; z-index: 2;
  height: 440px; margin-bottom: 18px;
}

/* Nav buttons */
.ac-nav-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(0,210,255,0.25);
  background: rgba(0,0,0,0.4);
  color: rgba(0,210,255,0.7);
  font-size: 22px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s; flex-shrink: 0; z-index: 10;
  box-shadow: 0 0 20px rgba(0,210,255,0.08), inset 0 0 0 1px rgba(0,210,255,0.08);
}
.ac-nav-btn:hover {
  background: rgba(0,210,255,0.1);
  border-color: rgba(0,210,255,0.7);
  box-shadow: 0 0 32px rgba(0,210,255,0.35), 0 0 8px rgba(0,210,255,0.2);
  color: #00d2ff;
}

/* Cards container */
.ac-cards-container {
  position: relative;
  width: 620px; height: 420px;
  flex-shrink: 0;
  perspective: 1400px;
}

/* Center glow */
.ac-center-glow {
  position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(147,51,234,0.35) 0%, rgba(0,210,255,0.1) 50%, transparent 70%);
  top: 60px; left: 50%; transform: translateX(-50%);
  animation: acCenterGlow 3s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}
@keyframes acCenterGlow {
  0%,100%{opacity:0.5;transform:translateX(-50%) scale(1);}
  50%{opacity:0.9;transform:translateX(-50%) scale(1.15);}
}

/* ── THE DIAMOND CARD ── */
.ac-card {
  position: absolute;
  width: 220px; height: 360px;
  cursor: pointer;
  transition: all 0.55s cubic-bezier(0.34, 1.08, 0.64, 1);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  z-index: 2;
}

/* Diamond clip-path frame — the gemstone cut edges */
.ac-card-frame {
  position: absolute; inset: 0;
  clip-path: polygon(
    12px 0%, calc(100% - 12px) 0%,
    100% 12px, 100% calc(100% - 12px),
    calc(100% - 12px) 100%, 12px 100%,
    0% calc(100% - 12px), 0% 12px
  );
  border-radius: 4px;
}

/* Outer diamond border glow */
.ac-card-diamond-border {
  position: absolute; inset: -2px;
  clip-path: polygon(
    14px 0%, calc(100% - 14px) 0%,
    100% 14px, 100% calc(100% - 14px),
    calc(100% - 14px) 100%, 14px 100%,
    0% calc(100% - 14px), 0% 14px
  );
  border-radius: 4px;
  z-index: 0;
  transition: opacity 0.3s;
}

.ac-card-bg {
  position: absolute; inset: 0;
  border-radius: 2px;
  overflow: hidden;
}

/* Fractal holographic inner pattern */
.ac-card-holo-bg {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
}

/* Artist photo area */
.ac-card-photo {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 62%;
  overflow: hidden;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.ac-card-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
}
.ac-card-photo-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px;
}
.ac-card-photo-grad {
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  z-index: 3;
}

/* Power rank badge */
.ac-card-rank {
  position: absolute; top: 10px; left: 10px;
  z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  width: 44px;
}
.ac-card-rank-shield {
  width: 44px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.ac-card-rank-label {
  font-size: 5px; font-weight: 900; letter-spacing: 0.08em;
  text-transform: uppercase; text-align: center; line-height: 1.2;
}
.ac-card-rank-num {
  font-size: 14px; font-weight: 900; line-height: 1;
}

/* Card content bottom area */
.ac-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 42%;
  padding: 8px 10px 10px;
  z-index: 5;
  display: flex; flex-direction: column;
}

/* Artist name — big gold bevelled text */
.ac-card-name {
  font-size: 19px; font-weight: 900;
  letter-spacing: 0.02em; line-height: 1.05;
  text-align: center;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Stats table */
.ac-card-stats { display: flex; flex-direction: column; gap: 2px; }
.ac-card-stat {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 4px; border-radius: 2px;
}
.ac-card-stat-key {
  font-size: 7px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.ac-card-stat-val {
  font-size: 8px; font-weight: 800; letter-spacing: 0.05em;
}

/* Sonara Certified seal */
.ac-card-seal {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin-top: 6px; padding: 3px 6px;
  border-radius: 3px; border: 1px solid;
}
.ac-card-seal-text {
  font-size: 6px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}

/* Shimmer overlay */
.ac-card-shimmer {
  position: absolute; inset: 0; z-index: 20;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
  mix-blend-mode: screen;
  border-radius: 2px;
}
.ac-card:hover .ac-card-shimmer { opacity: 1; }

/* Progress bar */
.ac-progress-bar { position: relative; z-index: 2; margin-bottom: 16px; }
.ac-progress-track { height: 3px; border-radius: 2px; background: rgba(255,255,255,0.07); overflow: hidden; }
.ac-progress-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg,#00d2ff,#a855f7,#ff00c8,#ffd700);
  transition: width 0.5s ease;
}

/* Bottom bar */
.ac-bottom-bar {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 2;
}
.ac-indicators { display: flex; gap: 6px; align-items: center; }
.ac-ind-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
  cursor: pointer; transition: all 0.25s;
}
.ac-ind-dot.active {
  background: #a855f7; border-color: #a855f7;
  box-shadow: 0 0 10px rgba(168,85,247,0.7);
  width: 24px; border-radius: 4px;
}

.ac-collect-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 8px;
  background: rgba(5, 1, 20, 0.9);
  border: 1px solid rgba(0,210,255,0.3);
  cursor: pointer; position: relative; transition: all 0.25s;
  box-shadow: 0 0 24px rgba(0,210,255,0.1), inset 0 0 0 1px rgba(255,0,200,0.1);
}
.ac-collect-btn::before {
  content: '';
  position: absolute; inset: 0; border-radius: 8px; padding: 1px;
  background: linear-gradient(135deg, #00d2ff, #a855f7, #ff00c8, #ffd700);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.ac-collect-btn:hover {
  background: rgba(0,210,255,0.08);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0,210,255,0.25), 0 0 20px rgba(255,0,200,0.15);
}
.ac-collect-text {
  font-size: 11px; font-weight: 900;
  letter-spacing: 0.14em; color: #fff; text-transform: uppercase;
}
.ac-collect-icon {
  width: 22px; height: 22px; border-radius: 4px;
  background: rgba(168,85,247,0.35);
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 700px) {
  .ac-cards-container { width: 340px; height: 360px; }
  .ac-card { width: 175px; height: 295px; }
  .ac-stack-area { height: 370px; gap: 6px; }
  .ac-card-name { font-size: 14px; }
  .ac-collect-text { font-size: 9px; }
  .ac-nav-btn { width: 40px; height: 40px; font-size: 18px; }
}

/* ═══════════════════════════════════════════════════════════
   📱 COMPREHENSIVE MOBILE FIX — All sections
   Targets: 768px (tablet) and 480px (phone)
═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Landing two-col: hide right sidebar, show only main col ── */
  .landing-two-col {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .landing-side-col {
    display: none !important;
  }

  /* ── Lyric Spotlight: stack vertically ── */
  .lyric-spotlight-layout {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }
  .spotlight-card {
    min-height: 180px;
  }
  .spotlight-right-col {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .spotlight-right-col .quick-pick-card {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 130px;
  }

  /* ── New Releases + For You ── */
  .snr-section-head { margin-bottom: 8px; }
  .snr-section-badge { display: none; }
  .snr-genre-pills { margin-bottom: 10px; }
  .snr-genre-pill { padding: 4px 10px; font-size: 10px; }

  .snr-portrait-card { width: 130px; }
  .snr-pc-img { width: 130px; height: 174px; }
  .snr-pc-title { font-size: 11px; }
  .snr-pc-artist { font-size: 9px; }

  .snr-landscape-card { width: 175px; }
  .snr-lc-cover { width: 175px; height: 98px; }
  .snr-lc-title { font-size: 12px; }

  /* ── Browse by Mood tiles ── */
  .v4-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }
  .v4-category-tile {
    min-height: 64px !important;
    padding: 0.7rem 0.6rem !important;
    border-radius: 10px !important;
  }
  .v4-category-tile .tile-name { font-size: 11px !important; }
  .v4-category-tile .tile-count { font-size: 9px !important; }
  .v4-category-tile .tile-emoji { font-size: 1.4rem !important; top: 8px !important; right: 8px !important; }

  /* ── Artist Collectibles ── */
  .ac-showcase { padding: 18px 14px 16px; border-radius: 14px; }
  .ac-stack-area { height: 360px; gap: 4px; }
  .ac-cards-container { width: 310px; height: 360px; }
  .ac-card { width: 175px; height: 290px; }
  .ac-card-photo { height: 55%; }
  .ac-card-name { font-size: 15px; margin-bottom: 6px; }
  .ac-card-stat-key { font-size: 6px; }
  .ac-card-stat-val { font-size: 7px; }
  .ac-nav-btn { width: 38px; height: 38px; font-size: 16px; }
  .ac-collect-text { font-size: 9px; letter-spacing: 0.08em; }
  .ac-title { font-size: 11px; }

  /* ── Side rankings panel — shown below on mobile ── */
  .landing-rankings-panel { display: none; }

  /* ── Soundscape section ── */
  .soundscape-container { height: 260px !important; }

  /* ── Section spacing ── */
  .section { margin-bottom: 1.25rem; }
  .section-title, h2.section-title { font-size: 1.1rem; }

  /* ── Hero ── */
  .sonara-hero-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem) !important;
  }

  /* ── Track page overlay ── */
  .tp-modal .tp-hero { grid-template-columns: 1fr !important; }
  .tp-cover-wrap { width: 140px !important; margin: 0 auto; }

  /* ── Player bar — compact on mobile ── */
  .player-right-icons .btn-icon:not(:first-child):not(:nth-child(2)) {
    display: none;
  }
}

/* ── Extra small phones (390px and below) ── */
@media (max-width: 480px) {
  .v4-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }
  .v4-category-tile {
    min-height: 58px !important;
    padding: 0.6rem 0.5rem !important;
  }
  .v4-category-tile .tile-name { font-size: 10px !important; }
  .v4-category-tile .tile-count { display: none !important; }
  .v4-category-tile .tile-emoji { font-size: 1.2rem !important; }

  .snr-portrait-card { width: 118px; }
  .snr-pc-img { width: 118px; height: 158px; }

  .snr-landscape-card { width: 160px; }
  .snr-lc-cover { width: 160px; height: 90px; }

  .ac-cards-container { width: 280px; }
  .ac-card { width: 158px; height: 265px; }
  .ac-nav-btn { width: 32px; height: 32px; font-size: 14px; }

  .spotlight-card { min-height: 160px; }
  .spotlight-right-col .quick-pick-card {
    flex: 1 1 100%;
  }

  .lyric-spotlight-section .section-title { font-size: 1rem; }

  /* Reduce section padding */
  .main-content { padding: 0.6rem 0.6rem 1rem !important; }
  .section { margin-bottom: 1rem; }
}

/* ── Fade mask on scrollable pill rows ── */
.snr-genre-pills {
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 85%, transparent 100%);
}

/* ═══════════════════════════════════════════════════════════
   📱 MOBILE BOTTOM SHEET — Track options
═══════════════════════════════════════════════════════════ */

#mobileTrackSheet {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
}
#mobileTrackSheet.mbs-open {
  display: block;
}
.mbs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.mbs-panel {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, #130a2e 0%, #0a0520 100%);
  border-top: 1px solid rgba(147,51,234,0.3);
  border-radius: 20px 20px 0 0;
  padding: 12px 0 env(safe-area-inset-bottom, 20px);
  transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
}
#mobileTrackSheet:not(.mbs-open) .mbs-panel {
  transform: translateY(100%);
}
.mbs-drag-handle {
  width: 40px; height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
  margin: 0 auto 16px;
}
.mbs-track-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 8px;
}
.mbs-cover {
  width: 52px; height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.mbs-track-title {
  font-size: 15px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mbs-track-artist {
  font-size: 12px; color: rgba(255,255,255,0.45);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mbs-options {
  display: flex;
  flex-direction: column;
}
.mbs-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mbs-option:active {
  background: rgba(255,255,255,0.06);
}
.mbs-option-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.6);
}
.mbs-option-play .mbs-option-icon {
  background: rgba(147,51,234,0.25);
  color: #c084fc;
}
.mbs-icon-play { }
.mbs-option-artist .mbs-option-icon {
  background: rgba(0,210,255,0.12);
  color: rgba(0,210,255,0.8);
}

/* ═══════════════════════════════════════════════════════════
   📱 TRACK PAGE — Mobile full-screen fix
═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Track page overlay — full screen scroll container */
  #trackPageOverlay {
    padding: 0 !important;
    align-items: flex-start !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Modal fills overlay, scrolls with it */
  .tp-modal {
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    border-radius: 0 !important;
    overflow: visible !important;
    width: 100% !important;
  }

  /* Background stays inside modal, fixed to viewport via overlay scroll */
  .tp-bg-art,
  .tp-bg-overlay {
    position: fixed !important;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
  }

  /* Close button — top left, sticky so always reachable */
  .tp-close {
    position: fixed !important;
    top: env(safe-area-inset-top, 12px) !important;
    left: 16px !important;
    right: auto !important;
    z-index: 9999 !important;
  }

  /* Hero — single column, no wide grid */
  .tp-hero {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 60px 16px 20px !important;
    position: relative;
    z-index: 2;
  }

  /* Cover — centered, smaller */
  .tp-cover-wrap {
    width: 160px !important;
    height: 160px !important;
    margin: 0 auto !important;
  }

  /* Info — full width */
  .tp-hero-info { width: 100% !important; }
  .tp-title { font-size: 20px !important; }
  .tp-genres { flex-wrap: wrap; }

  /* Hide right action panel column */
  .tp-action-panel { display: none !important; }

  /* Primary actions — centered */
  .tp-primary-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  .tp-action-btn, .tp-action-like {
    flex: 0 0 auto;
    padding: 8px 14px !important;
    font-size: 12px !important;
  }
  .tp-action-label { font-size: 11px !important; }

  /* Body — single column, padded */
  .tp-body {
    grid-template-columns: 1fr !important;
    padding: 0 16px calc(140px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 20px !important;
    position: relative;
    z-index: 2;
  }

  .tp-sidebar { display: none !important; }

  /* Lyrics */
  .tp-lyrics-full {
    font-size: 14px !important;
    line-height: 1.8 !important;
  }

  /* Carousels */
  .tp-carousel { gap: 8px; }
  .tp-carousel-card { width: 110px; }
  .tp-carousel-cover { width: 110px; height: 110px; }
}

/* ═══════════════════════════════════════════════════════════
   🖱️ DESKTOP: Track title = clickable link style
   Mobile: title just plays, no link appearance
═══════════════════════════════════════════════════════════ */

/* Mobile — card is tap target */
@media (max-width: 768px) {
  .track-card {
    cursor: pointer;
  }
  /* Make sure ... dots button is always visible on mobile */
  .btn-more {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  /* Show track card actions always on mobile (not just hover) */
  .track-card-actions {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  /* Bigger touch target for ... button */
  .btn-more {
    min-width: 36px !important;
    min-height: 36px !important;
    font-size: 18px !important;
    padding: 4px 8px !important;
  }
}

/* Mobile: hide queue/share/dislike — keep like + ... dots */
@media (max-width: 768px) {
  .btn-add-queue,
  .btn-share,
  .btn-dislike {
    display: none !important;
  }
  .track-card-more-wrap {
    margin-left: auto;
  }
  /* Make sure ... always visible on mobile */
  .btn-more {
    display: flex !important;
    width: auto !important;
    height: auto !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 4px 8px !important;
    font-size: 20px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .track-card-more-wrap {
    display: flex !important;
    pointer-events: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   💰 MONETIZATION SYSTEM — Modals, Studio, Artist Profile
═══════════════════════════════════════════════════════════ */

/* ── Shared Modal System ── */
.snr-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: snrOverlayIn 0.2s ease;
}
.snr-modal-overlay.hidden { display: none !important; }

@keyframes snrOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.snr-modal {
  background: linear-gradient(160deg, #0f0828 0%, #080518 100%);
  border: 1px solid rgba(147,51,234,0.3);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(192,132,252,0.08);
  animation: snrModalIn 0.25s cubic-bezier(0.32,0.72,0,1);
}

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

.snr-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.snr-modal-header-icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(147,51,234,0.18);
  border: 1px solid rgba(147,51,234,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.snr-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.snr-modal-subtitle {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.snr-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}
.snr-modal-close:hover { background: rgba(255,255,255,0.12); color: #fff; }
.snr-modal-footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.snr-modal-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.snr-modal-btn-secondary {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}
.snr-modal-btn-secondary:hover { background: rgba(255,255,255,0.09); }
.snr-modal-btn-primary {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  border-color: rgba(147,51,234,0.5);
  color: #fff;
  box-shadow: 0 4px 20px rgba(147,51,234,0.35);
}
.snr-modal-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(147,51,234,0.5); }
.snr-modal-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.snr-modal-disclaimer {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  margin: 6px 0 0;
  padding: 0 24px 16px;
}

/* ── ToS Modal ── */
.snr-tos-modal { max-width: 580px; }
.snr-tos-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(147,51,234,0.3) transparent;
}
.snr-tos-scroll::-webkit-scrollbar { width: 4px; }
.snr-tos-scroll::-webkit-scrollbar-thumb { background: rgba(147,51,234,0.3); border-radius: 2px; }
.snr-tos-section {
  margin-bottom: 24px;
}
.snr-tos-section h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(192,132,252,0.9);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(147,51,234,0.2);
}
.snr-tos-section h4 {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin: 12px 0 4px;
}
.snr-tos-section p {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  margin: 0;
}
.snr-tos-scroll-cta {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  padding: 8px 0 4px;
  transition: opacity 0.3s;
}

/* ── Sponsorship Modal ── */
.snr-sponsor-modal { position: relative; }
.snr-sponsor-progress-wrap {
  padding: 16px 24px;
  background: rgba(147,51,234,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.snr-sponsor-progress-info {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.snr-sponsor-raised {
  font-size: 1.3rem;
  font-weight: 800;
  color: #c084fc;
}
.snr-sponsor-goal { font-size: 0.8rem; color: rgba(255,255,255,0.4); flex: 1; }
.snr-sponsor-pct {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(192,132,252,0.8);
}
.snr-sponsor-bar-track, .artist-sponsor-bar-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
}
.snr-sponsor-bar-fill, .artist-sponsor-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #a855f7, #ec4899);
  background-size: 200% 100%;
  border-radius: 99px;
  /* Animate from 0 to target width on load */
  transition: width 1s cubic-bezier(0.34,1.56,0.64,1);
  /* Glow effect */
  box-shadow:
    0 0 12px rgba(6,182,212,0.6),
    0 0 24px rgba(168,85,247,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
  /* Shimmer animation */
  animation: snrBarShimmer 2.5s linear infinite;
}
@keyframes snrBarShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* Pulsing glow ring on fill edge */
.snr-sponsor-bar-fill::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 8px 4px rgba(6,182,212,0.8);
  animation: snrBarPulse 1.2s ease-in-out infinite;
}
@keyframes snrBarPulse {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50%       { opacity: 0.6; transform: translateY(-50%) scale(1.3); }
}
.snr-sponsor-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin: 4px 0 0;
}
.snr-sponsor-amounts {
  display: flex;
  gap: 8px;
  padding: 16px 24px 0;
  flex-wrap: wrap;
}
.snr-sponsor-amt {
  flex: 1;
  min-width: 52px;
  padding: 9px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.snr-sponsor-amt:hover { border-color: rgba(147,51,234,0.5); background: rgba(147,51,234,0.15); color: #fff; }
.snr-sponsor-amt-active {
  border-color: rgba(147,51,234,0.7) !important;
  background: rgba(147,51,234,0.25) !important;
  color: #c084fc !important;
  box-shadow: 0 0 12px rgba(147,51,234,0.25);
}
.snr-sponsor-custom-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px 0;
}
.snr-sponsor-custom-prefix {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
}
.snr-sponsor-custom-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
}
.snr-sponsor-custom-input:focus { border-color: rgba(147,51,234,0.5); }
.snr-fee-breakdown {
  margin: 12px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px 14px;
}
.snr-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 4px 0;
  color: rgba(255,255,255,0.6);
}
.snr-fee-row-sub { color: rgba(255,100,100,0.7); font-size: 12px; }
.snr-fee-row-artist {
  color: #4ade80;
  font-weight: 700;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
  padding-top: 8px;
}
.snr-sponsor-submit {
  margin: 4px 24px 0;
  width: calc(100% - 48px);
  padding: 14px;
  font-size: 15px;
}

/* ── Buy Modal ── */
.snr-buy-track-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.snr-buy-cover {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(147,51,234,0.2);
}
.snr-buy-track-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.snr-buy-track-artist { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.snr-buy-license {
  font-size: 10px;
  color: rgba(192,132,252,0.6);
  background: rgba(147,51,234,0.1);
  border: 1px solid rgba(147,51,234,0.2);
  border-radius: 4px;
  padding: 2px 6px;
  display: inline-block;
}

/* ── Creator Agreement Modal ── */
.snr-creator-modal { max-width: 480px; }
.snr-creator-agreement-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.snr-creator-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}
.snr-creator-point-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.2; }
.snr-creator-point strong { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.85); display: block; margin-bottom: 2px; }
.snr-creator-point div { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.5; }

/* ── Artist Support Button ── */
.artist-support-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(147,51,234,0.2), rgba(192,132,252,0.15));
  border: 1px solid rgba(147,51,234,0.4);
  border-radius: 999px;
  color: #c084fc;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.artist-support-btn:hover {
  background: linear-gradient(135deg, rgba(147,51,234,0.35), rgba(192,132,252,0.25));
  box-shadow: 0 0 20px rgba(147,51,234,0.35);
  transform: translateY(-1px);
}
.artist-support-btn-icon { font-size: 16px; }

/* ── Artist Sponsor Progress Bar (on profile) ── */
.artist-sponsor-bar-wrap {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(147,51,234,0.08);
  border: 1px solid rgba(147,51,234,0.2);
  border-radius: 12px;
}
.artist-sponsor-bar-wrap.hidden { display: none; }
.artist-sponsor-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.artist-sponsor-bar-label { font-size: 11px; font-weight: 700; color: rgba(192,132,252,0.8); text-transform: uppercase; letter-spacing: 0.07em; }
.artist-sponsor-bar-amounts { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.55); }
.artist-sponsor-bar-desc { font-size: 11px; color: rgba(255,255,255,0.3); margin: 6px 0 0; }

/* ── Track page support/buy buttons ── */
.tp-action-support, .tp-action-buy {
  background: linear-gradient(135deg, rgba(147,51,234,0.2), rgba(192,132,252,0.12));
  border-color: rgba(147,51,234,0.35) !important;
  color: #c084fc !important;
}
.tp-action-support:hover, .tp-action-buy:hover {
  background: linear-gradient(135deg, rgba(147,51,234,0.35), rgba(192,132,252,0.22)) !important;
  box-shadow: 0 0 16px rgba(147,51,234,0.3) !important;
}

/* ── Monetize Studio Tab ── */
.studio-tab-monetize { position: relative; }
.studio-tab-monetize::after {
  content: 'NEW';
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 8px;
  font-weight: 800;
  background: #7c3aed;
  color: #fff;
  padding: 1px 4px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.monetize-dashboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
}
.monetize-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  transition: border-color 0.2s;
}
.monetize-card:hover { border-color: rgba(147,51,234,0.25); }
.monetize-card-icon { font-size: 1.6rem; flex-shrink: 0; width: 44px; text-align: center; }
.monetize-card-body { flex: 1; min-width: 0; }
.monetize-card-title { font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 3px; }
.monetize-card-desc { font-size: 12px; color: rgba(255,255,255,0.4); margin: 0; }
.monetize-verify-status { margin-top: 6px; }
.monetize-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.monetize-badge-pending { background: rgba(234,179,8,0.15); color: #fbbf24; border: 1px solid rgba(234,179,8,0.3); }
.monetize-badge-verified { background: rgba(74,222,128,0.15); color: #4ade80; border: 1px solid rgba(74,222,128,0.3); }
.monetize-action-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(147,51,234,0.18);
  border: 1px solid rgba(147,51,234,0.35);
  border-radius: 8px;
  color: #c084fc;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.monetize-action-btn:hover { background: rgba(147,51,234,0.3); box-shadow: 0 0 12px rgba(147,51,234,0.25); }
.monetize-withdraw-btn { background: rgba(74,222,128,0.1) !important; border-color: rgba(74,222,128,0.3) !important; color: #4ade80 !important; }
.monetize-withdraw-btn:hover { background: rgba(74,222,128,0.2) !important; }
.monetize-launch-btn { background: rgba(147,51,234,0.3) !important; }
.monetize-earnings-display { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.monetize-earnings-amount { font-size: 1.4rem; font-weight: 800; color: #4ade80; }
.monetize-earnings-label { font-size: 11px; color: rgba(255,255,255,0.3); }
.monetize-track-select {
  margin-top: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  padding: 5px 8px;
  max-width: 100%;
}
.monetize-form-panel {
  background: rgba(147,51,234,0.06);
  border: 1px solid rgba(147,51,234,0.2);
  border-radius: 14px;
  padding: 16px;
}
.monetize-form-panel.hidden { display: none; }
.monetize-form-title { font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 14px; }
.monetize-form-group { margin-bottom: 12px; }
.monetize-form-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.07em; display: block; margin-bottom: 5px; }
.monetize-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 9px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.monetize-input:focus { border-color: rgba(147,51,234,0.5); }
.monetize-textarea { resize: vertical; min-height: 70px; font-family: inherit; }
.monetize-form-actions { display: flex; gap: 8px; margin-top: 14px; justify-content: flex-end; }

/* ── Legal Footer ── */
.snr-legal-footer {
  text-align: center;
  padding: 20px 0 40px;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
}
.snr-legal-footer a {
  color: rgba(192,132,252,0.5);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s;
}
.snr-legal-footer a:hover { color: rgba(192,132,252,0.8); }

/* Mobile responsive for modals */
@media (max-width: 768px) {
  .snr-modal-overlay { padding: 0; align-items: flex-end; }
  .snr-modal { border-radius: 20px 20px 0 0; max-height: 90dvh; }
  .snr-tos-modal { max-height: 85dvh; }
  .monetize-card { flex-wrap: wrap; }
  .monetize-action-btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════
   🎵 TRACK CARD — Genre pills, Sale badge, Buy button, Meta
═══════════════════════════════════════════════════════════ */

/* All genres as pills */
.track-card-genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 5px;
}
.track-card-genre-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(192,132,252,0.85);
  background: rgba(147,51,234,0.1);
  border: 1px solid rgba(147,51,234,0.2);
  border-radius: 4px;
  padding: 2px 6px;
}

/* For Sale badge — owner sees this */
.track-card-forsale-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4ade80;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 4px;
  padding: 2px 7px;
  margin: 3px 0 4px;
}

/* Buy button — other users see when track is listed */
.track-card-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #c084fc;
  background: rgba(147,51,234,0.12);
  border: 1px solid rgba(147,51,234,0.3);
  border-radius: 6px;
  padding: 3px 8px;
  margin: 3px 0 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.track-card-buy-btn:hover {
  background: rgba(147,51,234,0.25);
  box-shadow: 0 0 10px rgba(147,51,234,0.2);
}

/* Meta row — play count icon */
.tc-meta-plays {
  color: rgba(192,132,252,0.6);
  font-size: 0.7rem;
}

/* ── Bottom sheet — styled Share + owner options ── */
.mbs-option-share .mbs-icon-share {
  background: linear-gradient(135deg, rgba(147,51,234,0.2), rgba(0,210,255,0.15));
  border: 1px solid rgba(147,51,234,0.3);
  color: #c084fc;
}
.mbs-share-gradient {
  background: linear-gradient(90deg, #9333ea, #00d2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.mbs-option-sell .mbs-icon-sell {
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.25);
  color: #4ade80;
}
.mbs-option-sell { color: #4ade80; }
.mbs-option-buy .mbs-icon-buy {
  background: rgba(147,51,234,0.15);
  border: 1px solid rgba(147,51,234,0.3);
  color: #c084fc;
}
.mbs-option-buy { color: #c084fc; }
.mbs-option-edit .mbs-option-icon {
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  color: #60a5fa;
}
.mbs-option-edit { color: #60a5fa; }
.mbs-option-delete .mbs-icon-delete {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  color: #f87171;
}
.mbs-option-delete { color: #f87171; }

/* Separator before owner actions */
.mbs-option-edit {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
  padding-top: 14px;
}

/* ── Spotlight mobile fixes ── */
@media (max-width: 768px) {
  .lyric-spotlight-layout {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }
  .spotlight-card {
    min-height: 160px;
    touch-action: pan-y;
  }
  .spotlight-lyric {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    line-height: 1.6;
  }
  .spotlight-dots {
    margin-top: 8px;
  }
  .spotlight-dot {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }
}
/* ═══════════════════════════════════════════════════════════
   📱 MOBILE PERFORMANCE + GLITCH FIXES
   Smooth scrolling, touch, compositing, tap highlights
═══════════════════════════════════════════════════════════ */

/* Prevent tap highlight flash on all interactive elements */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Smooth scrolling on all scroll containers */
.main-content,
#mainDefaultContent,
.snr-tos-scroll,
.mbs-panel,
.profile-content,
.browse-cards {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* GPU-accelerate animated elements to prevent jank */
.spotlight-card,
.spotlight-lyric,
.ac-card,
.mbs-panel,
.snr-modal,
.player-bar,
.track-card {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ── Mobile: disable heavy continuous animations that cause flicker ── */
@media (max-width: 768px) {
  /* The scan line is a pure cosmetic effect — disabling it on mobile
     removes a common source of GPU layer flickering on iOS/Android */
  .spotlight-scan-line {
    display: none;
  }

  /* Simplify the glow ring pulse on mobile — scale changes trigger
     expensive compositing on older phones */
  .spotlight-glow-ring {
    animation: none;
    opacity: 0.5;
  }

  /* Stop bg-orb animations that run continuously and waste GPU */
  .bg-orb-1,
  .bg-orb-2,
  .bg-orb-3 {
    animation-duration: 16s; /* slow down to reduce composite flushes */
  }

  /* Ensure spotlight card uses GPU layer for its own opacity animation */
  .spotlight-card {
    contain: layout style;
  }

  /* Prevent layout shifts from will-change on low-memory devices */
  .spotlight-lyric {
    will-change: opacity; /* keep — only opacity transitions here */
  }

  /* Disable the bg noise texture on mobile — SVG filter repaints are expensive */
  .bg-waves::after {
    display: none;
  }

  /* Allow native vertical scrolling on the page without interference */
  body {
    touch-action: pan-y;
  }

  /* Prevent over-rendering of fixed background orbs on mobile */
  .bg-orb {
    will-change: auto; /* remove will-change to free GPU memory on mobile */
    animation-play-state: paused; /* pause orb animations when not needed */
  }
}

/* Track page overlay — ensure it's the scroll root on mobile */
@media (max-width: 768px) {
  #trackPageOverlay {
    /* Make overlay the scroll container */
    position: fixed !important;
    inset: 0 !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain;
  }

  /* Modal fills and scrolls with overlay */
  #trackPageModal {
    position: relative !important;
    overflow: visible !important;
    min-height: 100% !important;
  }

  /* Background layers — fixed to viewport (not modal) on mobile */
  #tpBgArt,
  .tp-bg-overlay {
    position: fixed !important;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
  }

  /* All tp content above bg */
  .tp-close,
  .tp-hero,
  .tp-body {
    position: relative;
    z-index: 2;
  }

  /* Close button — fixed top left, always visible */
  .tp-close {
    position: fixed !important;
    top: max(12px, env(safe-area-inset-top)) !important;
    left: 16px !important;
    right: auto !important;
    z-index: 9999 !important;
    width: 36px !important;
    height: 36px !important;
  }

  /* Hero padding — top clears fixed close button */
  .tp-hero {
    padding-top: 64px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-bottom: 20px !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Cover art — centered and sized for phone */
  .tp-cover-wrap {
    width: 150px !important;
    height: 150px !important;
    margin: 0 auto !important;
  }

  /* Body — single column, pad bottom for player bar */
  .tp-body {
    grid-template-columns: 1fr !important;
    padding: 0 16px calc(160px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 20px !important;
  }

  .tp-sidebar,
  .tp-action-panel {
    display: none !important;
  }

  /* Title size */
  .tp-title {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
  }

  /* Primary actions — wrap on small screens */
  .tp-primary-actions {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  /* Prevent overscroll bounce from showing background */
  body {
    overscroll-behavior: none;
  }
}

/* Extra small phones */
@media (max-width: 390px) {
  .tp-cover-wrap {
    width: 130px !important;
    height: 130px !important;
  }
  .tp-title {
    font-size: 1.1rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   💜 PREMIUM SPONSORSHIP PROGRESS COMPONENT
   Matching the React/Tailwind design spec
═══════════════════════════════════════════════════════════ */

/* Upgraded sponsor progress section */
.snr-sponsor-progress-wrap {
  padding: 20px 24px 16px;
  background: linear-gradient(135deg, rgba(6,182,212,0.06), rgba(168,85,247,0.06));
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.snr-sponsor-progress-info {
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-bottom: 12px;
}

/* Left — raised amount */
.snr-sponsor-raised-wrap { flex: 1; }
.snr-sponsor-raised-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 3px;
  display: block;
}
.snr-sponsor-raised {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}
.snr-sponsor-raised-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  margin-left: 4px;
}

/* Right — percentage */
.snr-sponsor-pct-wrap { text-align: right; }
.snr-sponsor-pct {
  font-size: 1.2rem;
  font-weight: 900;
  font-family: 'Space Grotesk', monospace;
  background: linear-gradient(90deg, #06b6d4, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  display: block;
}
.snr-sponsor-goal {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-top: 2px;
  display: block;
}

/* Fee breakdown — cleaner layout */
.snr-fee-breakdown {
  margin: 14px 24px 0;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 12px 16px;
}

/* Sponsor submit button — full premium */
.snr-sponsor-submit {
  margin: 14px 24px 4px;
  width: calc(100% - 48px);
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 14px;
  background: linear-gradient(135deg, #06b6d4, #7c3aed);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(6,182,212,0.3), 0 0 40px rgba(168,85,247,0.15);
  letter-spacing: 0.01em;
}
.snr-sponsor-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(6,182,212,0.45), 0 0 60px rgba(168,85,247,0.25);
}
.snr-sponsor-submit:active {
  transform: scale(0.98);
}
.snr-sponsor-submit:disabled {
  background: rgba(255,255,255,0.07);
  box-shadow: none;
  transform: none;
  color: rgba(255,255,255,0.35);
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════
   🔐 KYC SYSTEM — Identity Clash + Level 2 Verification
═══════════════════════════════════════════════════════════ */

/* ── Identity Clash Disclaimer ── */
.auth-input-clash {
  border-color: rgba(251,191,36,0.6) !important;
  box-shadow: 0 0 0 2px rgba(251,191,36,0.15) !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-identity-clash {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 7px;
  padding: 9px 12px;
  background: rgba(251,191,36,0.07);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(251,191,36,0.9);
  animation: snrModalIn 0.2s ease;
}
.auth-identity-clash.hidden { display: none; }

.auth-identity-clash-icon {
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
  width: 16px;
  height: 16px;
  background: rgba(251,191,36,0.2);
  border: 1px solid rgba(251,191,36,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

/* ── Level 2 Verification Modal ── */
.snr-level2-modal {
  max-width: 520px;
  position: relative;
}

.snr-level2-body {
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(147,51,234,0.3) transparent;
}
.snr-level2-body::-webkit-scrollbar { width: 3px; }
.snr-level2-body::-webkit-scrollbar-thumb { background: rgba(147,51,234,0.3); border-radius: 2px; }

.snr-level2-why {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  margin: 0;
}

.snr-level2-locked-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(147,51,234,0.06);
  border: 1px solid rgba(147,51,234,0.15);
  border-radius: 10px;
}
.snr-level2-locked-item {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  padding: 2px 0;
}

/* Steps */
.snr-level2-step {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.snr-level2-step-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.snr-level2-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(147,51,234,0.2);
  border: 1px solid rgba(147,51,234,0.4);
  color: #c084fc;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.snr-level2-step-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.snr-level2-step-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

.snr-level2-step-status {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: #fbbf24;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Upload area */
.snr-level2-upload-area {
  border: 1.5px dashed rgba(147,51,234,0.3);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(147,51,234,0.04);
}
.snr-level2-upload-area:hover {
  border-color: rgba(147,51,234,0.6);
  background: rgba(147,51,234,0.08);
}
.snr-level2-upload-icon { font-size: 1.8rem; margin-bottom: 6px; }
.snr-level2-upload-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.snr-level2-upload-hint { font-size: 10px; color: rgba(255,255,255,0.3); }

.snr-level2-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: rgba(147,51,234,0.15);
  border: 1px solid rgba(147,51,234,0.35);
  border-radius: 8px;
  color: #c084fc;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: fit-content;
}
.snr-level2-action-btn:hover { background: rgba(147,51,234,0.28); }
.snr-level2-action-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.snr-level2-payment-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.snr-level2-pay-btn {
  flex: 1;
  min-width: 120px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.snr-level2-pay-btn:hover {
  background: rgba(147,51,234,0.15);
  border-color: rgba(147,51,234,0.4);
  color: #c084fc;
}

.snr-level2-step-done {
  font-size: 12px;
  color: #4ade80;
  font-weight: 600;
  padding: 6px 0 2px;
}
.snr-level2-step-done.hidden { display: none; }

/* Progress */
.snr-level2-progress-wrap {
  padding: 4px 0 0;
}
.snr-level2-progress-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 7px;
}
.snr-level2-progress-track {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}
.snr-level2-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #4ade80);
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
.snr-level2-progress-steps {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

/* Mobile */
@media (max-width: 768px) {
  .snr-level2-payment-options { flex-direction: column; }
  .snr-level2-pay-btn { min-width: unset; }
}

/* ── Level 2 — Creator Declaration & PayPal Input ── */
.snr-level2-declaration-box {
  background: rgba(147,51,234,0.06);
  border: 1px solid rgba(147,51,234,0.2);
  border-radius: 10px;
  padding: 14px 16px;
}
.snr-level2-declaration-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
}
.snr-level2-declaration-label strong {
  color: rgba(192,132,252,0.9);
}
.snr-level2-declaration-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.snr-level2-paypal-wrap { display: flex; flex-direction: column; gap: 8px; }
.snr-level2-paypal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.snr-level2-paypal-icon { font-size: 1.4rem; flex-shrink: 0; }
.snr-level2-paypal-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 9px;
  padding: 9px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.snr-level2-paypal-input:focus { border-color: rgba(147,51,234,0.5); }
.snr-level2-paypal-hint {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   🔐 TWO-TIER SYSTEM — Level Badges, Enable Monetize,
   Lock Tooltips, Identity Clash Confirm
═══════════════════════════════════════════════════════════ */

/* ── Identity clash confirm checkbox ── */
.auth-clash-confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  color: rgba(251,191,36,0.75);
  cursor: pointer;
  line-height: 1.5;
}

/* ── User level badge on profile ── */
.user-level-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
  max-width: 100%;
}

.user-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  transition: all 0.3s;
}

.user-level-icon {
  font-size: 11px;
}

/* ── Enable Monetization CTA button ── */
.enable-monetize-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(147,51,234,0.12);
  border: 1px solid rgba(147,51,234,0.35);
  border-radius: 20px;
  color: #c084fc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.enable-monetize-btn:hover {
  background: rgba(147,51,234,0.22);
  box-shadow: 0 0 12px rgba(147,51,234,0.25);
}

/* ── Lock tooltip on monetize buttons ── */
.monetize-lock-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.monetize-lock-tooltip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: rgba(251,191,36,0.7);
  padding: 5px 10px;
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.18);
  border-radius: 7px;
  line-height: 1.4;
}

.monetize-lock-icon {
  font-size: 12px;
  flex-shrink: 0;
}

/* Hide lock tooltip once verified */
.monetize-lock-tooltip[style*="display: none"] { display: none !important; }

/* Mobile */
@media (max-width: 768px) {
  .user-level-wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
  .enable-monetize-btn { font-size: 10px; }
}

/* ── Studio Monetize — Verification Status Banner ── */
.monetize-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(147,51,234,0.08);
  border: 1px solid rgba(147,51,234,0.2);
  border-radius: 14px;
  margin-bottom: 4px;
}
.monetize-status-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.monetize-status-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.monetize-status-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.monetize-status-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
}
.monetize-verify-cta {
  flex-shrink: 0;
  white-space: nowrap;
  background: linear-gradient(135deg, rgba(147,51,234,0.3), rgba(6,182,212,0.2)) !important;
  border-color: rgba(147,51,234,0.5) !important;
}

/* ═══════════════════════════════════════════════════════════
   💰 EARN PAGE — Standalone section
═══════════════════════════════════════════════════════════ */

.earn-section {
  padding: 32px 32px 120px;
  max-width: 900px;
}

.earn-section-header {
  margin-bottom: 24px;
}
.earn-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.earn-section-subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.4);
}

/* Earn nav item — subtle green accent */
.nav-item-earn {
  position: relative;
}
.nav-item-earn .futurist-icon-tile {
  color: #4ade80 !important;
}
.nav-item-earn:hover { color: #4ade80 !important; }
.nav-item-earn.active {
  background: rgba(74,222,128,0.1) !important;
  border-color: rgba(74,222,128,0.3) !important;
  color: #4ade80 !important;
}

/* Studio Earn shortcut tab */
.studio-tab-earn-link {
  background: linear-gradient(135deg, rgba(74,222,128,0.08), rgba(6,182,212,0.08)) !important;
  border-color: rgba(74,222,128,0.3) !important;
  color: #4ade80 !important;
}
.studio-tab-earn-link:hover {
  background: rgba(74,222,128,0.15) !important;
}

/* Banner highlight animation — flashes when redirected */
@keyframes earnBannerFlash {
  0%, 100% { box-shadow: none; }
  30%, 70% { box-shadow: 0 0 0 3px rgba(147,51,234,0.6), 0 0 32px rgba(147,51,234,0.3); }
}
.earn-banner-highlight {
  animation: earnBannerFlash 1.8s ease;
}

/* Mobile */
@media (max-width: 768px) {
  .earn-section { padding: 20px 16px 120px; }
  .earn-section-title { font-size: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   🔢 SONARA NUMBER ART STYLE — v2
   Premium tabular numerals, gradient stats, glow counts
═══════════════════════════════════════════════════════════ */

/* Global number rendering — sharp, tabular, no ligatures */
.stat-num,
.track-card-meta,
.tc-meta-plays,
.dropdown-stat-value,
.snr-sponsor-raised,
.snr-sponsor-pct,
.monetize-earnings-amount,
.ranking-position,
.profile-stat-val,
.top-chart-rank,
.snr-level2-progress-steps {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

/* ── Stat chips (profile dropdown & profile page) ── */
.stat-num {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 30%, rgba(192,132,252,0.9) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
}

/* ── Track card play count — ▶ N ── */
.tc-meta-plays {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(192,132,252,0.75);
  letter-spacing: 0.01em;
}

/* ── Rankings numbers 1–10 ── */
.top-chart-rank,
.ranking-num {
  font-size: 0.85rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  min-width: 20px;
  text-align: right;
}
/* Colour each rank differently — top 3 get gold/silver/bronze glow */
.rank-1 { color: #fbbf24; text-shadow: 0 0 8px rgba(251,191,36,0.6); }
.rank-2 { color: #94a3b8; text-shadow: 0 0 8px rgba(148,163,184,0.4); }
.rank-3 { color: #c084fc; text-shadow: 0 0 8px rgba(192,132,252,0.5); }
.rank-4, .rank-5, .rank-6, .rank-7, .rank-8, .rank-9, .rank-10 {
  color: rgba(255,255,255,0.35);
}

/* ── New Releases card rank badge ── */
.nr-rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  z-index: 2;
  /* Glass pill style */
  background: rgba(7,5,15,0.75);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #fff;
}
.nr-rank-badge[data-rank="1"] {
  background: rgba(251,191,36,0.2);
  border-color: rgba(251,191,36,0.5);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(251,191,36,0.3);
}
.nr-rank-badge[data-rank="2"] {
  background: rgba(148,163,184,0.15);
  border-color: rgba(148,163,184,0.4);
  color: #cbd5e1;
}
.nr-rank-badge[data-rank="3"] {
  background: rgba(192,132,252,0.15);
  border-color: rgba(192,132,252,0.4);
  color: #c084fc;
  box-shadow: 0 0 8px rgba(192,132,252,0.25);
}

/* ── Profile dropdown stat numbers ── */
.pd-stat-val,
#dropdownStatTracks,
#dropdownStatPlays {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ── Sponsorship raised / percentage ── */
.snr-sponsor-raised {
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.03em !important;
}
.snr-sponsor-pct {
  font-size: 1.2rem !important;
  font-weight: 900 !important;
  font-family: 'Space Grotesk', monospace !important;
  background: linear-gradient(90deg, #06b6d4, #a855f7) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  font-variant-numeric: tabular-nums !important;
}

/* ── Earnings display ── */
.monetize-earnings-amount {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #4ade80, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

/* ── Play/like counts in community activity ── */
.ac-stat-count,
.community-play-count {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(192,132,252,0.8);
}

/* ── Portrait card play count ── */
.snr-pc-plays {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.snr-pc-play-icon {
  color: rgba(192,132,252,0.6);
}

/* ── Portrait card rank number — premium style ── */
.snr-pc-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
}
.snr-pc-num.rank-1 {
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(251,191,36,0.7), 0 2px 4px rgba(0,0,0,0.5);
}
.snr-pc-num.rank-2 {
  color: #cbd5e1;
  text-shadow: 0 0 8px rgba(203,213,225,0.5), 0 2px 4px rgba(0,0,0,0.5);
}
.snr-pc-num.rank-3 {
  color: #c084fc;
  text-shadow: 0 0 10px rgba(192,132,252,0.6), 0 2px 4px rgba(0,0,0,0.5);
}
.snr-pc-num.rank-4,
.snr-pc-num.rank-5,
.snr-pc-num.rank-6,
.snr-pc-num.rank-7,
.snr-pc-num.rank-8 {
  color: rgba(255,255,255,0.4);
}

/* ── Rankings panel play count ── */
.side-rank-plays {
  font-size: 9px;
  font-weight: 700;
  color: rgba(192,132,252,0.6);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.side-rank-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

/* ── Medal positions — gold/silver/bronze glow ── */
.side-rank-pos.gold {
  text-shadow: 0 0 8px rgba(251,191,36,0.5);
  font-size: 1.1rem;
}
.side-rank-pos.silver {
  text-shadow: 0 0 6px rgba(203,213,225,0.4);
  font-size: 1.1rem;
}
.side-rank-pos.bronze {
  text-shadow: 0 0 6px rgba(192,132,252,0.4);
  font-size: 1.1rem;
}
.side-rank-pos.num {
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255,255,255,0.3);
  font-variant-numeric: tabular-nums;
  min-width: 18px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   ⚡ PROFILE SECTION — Skeleton loader + faster render
═══════════════════════════════════════════════════════════ */
.profile-loading .profile-display-name,
.profile-loading .profile-bio,
.profile-loading .profile-tags {
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.06) 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.2s ease-in-out infinite;
  border-radius: 6px;
  color: transparent !important;
  min-height: 14px;
}
@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Edit modal owner actions section ── */
.edit-modal-owner-actions {
  margin-top: 16px;
  padding-top: 14px;
}
.edit-owner-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 12px;
}
.edit-owner-divider::before,
.edit-owner-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.edit-owner-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.edit-owner-btn {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  border: 1px solid;
}
.edit-earn-btn {
  background: rgba(74,222,128,0.08);
  border-color: rgba(74,222,128,0.25);
  color: #4ade80;
}
.edit-earn-btn:hover {
  background: rgba(74,222,128,0.16);
  box-shadow: 0 0 16px rgba(74,222,128,0.2);
}
.edit-sponsor-btn {
  background: rgba(147,51,234,0.1);
  border-color: rgba(147,51,234,0.3);
  color: #c084fc;
}
.edit-sponsor-btn:hover {
  background: rgba(147,51,234,0.2);
  box-shadow: 0 0 16px rgba(147,51,234,0.2);
}

/* ═══════════════════════════════════════════════════════════
   🎤 ARTIST IDENTITY SYSTEM — Generation badges, Banner,
   Monetize profile tab, Sign-up optional field label
═══════════════════════════════════════════════════════════ */

/* Optional field hint */
.auth-field-optional {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  font-weight: 400;
  margin-left: 4px;
}

/* ── Complete Profile Banner ── */
.complete-profile-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(147,51,234,0.1), rgba(6,182,212,0.06));
  border: 1px solid rgba(147,51,234,0.25);
  border-radius: 14px;
  margin: 0 0 20px;
  animation: snrModalIn 0.3s ease;
}
.complete-profile-banner.hidden { display: none; }
.cpb-icon { font-size: 1.6rem; flex-shrink: 0; }
.cpb-body { flex: 1; min-width: 0; }
.cpb-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.cpb-desc { font-size: 12px; color: rgba(255,255,255,0.45); }
.cpb-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: rgba(147,51,234,0.2);
  border: 1px solid rgba(147,51,234,0.45);
  border-radius: 10px;
  color: #c084fc;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}
.cpb-btn:hover { background: rgba(147,51,234,0.35); }
.cpb-dismiss {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  color: rgba(255,255,255,0.3);
  font-size: 18px; cursor: pointer;
  border-radius: 50%;
  transition: all 0.15s;
  flex-shrink: 0;
}
.cpb-dismiss:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* ── Roman Numeral Generation Badge ── */
.gen-name-badge,
.roman-gen-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  margin-left: 6px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(192,132,252,0.08));
  border: 1px solid rgba(192,132,252,0.3);
  border-radius: 5px;
  font-size: 0.6em;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(192,132,252,0.85);
  vertical-align: middle;
  font-family: 'Space Grotesk', serif;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ── Generation Choice Modal ── */
.gen-modal-overlay {
  z-index: 10001;
}
.gen-modal {
  max-width: 420px;
  text-align: center;
}
.gen-modal-header { padding: 24px 24px 16px; }
.gen-modal-icon { font-size: 2.2rem; margin-bottom: 12px; }
.gen-modal-body { padding: 0 24px 24px; }
.gen-modal-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  line-height: 1.6;
}
.gen-name-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  margin-bottom: 20px;
}
.gen-name-base {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.gen-name-badge {
  font-size: 0.7rem;
  padding: 3px 10px;
}
.gen-modal-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gen-choice-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.gen-choice-accept {
  background: linear-gradient(135deg, rgba(147,51,234,0.25), rgba(6,182,212,0.15));
  border: 1px solid rgba(147,51,234,0.45);
  color: #c084fc;
}
.gen-choice-accept:hover { background: rgba(147,51,234,0.35); }
.gen-choice-keep {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
}
.gen-choice-keep:hover { color: rgba(255,255,255,0.6); }

/* ── Profile Monetize Tab ── */
.profile-tab-monetize { color: #4ade80 !important; }
.profile-tab-monetize.active { border-color: rgba(74,222,128,0.4) !important; }

.monetize-profile-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.monetize-profile-section:last-child { border-bottom: none; }
.mps-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 14px;
}

/* Creator type cards */
.mps-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mps-card {
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
}
.mps-card:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); }
.mps-card.mps-card-selected {
  border-color: rgba(147,51,234,0.5);
  background: rgba(147,51,234,0.1);
  box-shadow: 0 0 0 1px rgba(147,51,234,0.3);
}
.mps-card-pro.mps-card-selected {
  border-color: rgba(74,222,128,0.5);
  background: rgba(74,222,128,0.08);
  box-shadow: 0 0 0 1px rgba(74,222,128,0.3);
}
.mps-card-icon { font-size: 1.5rem; margin-bottom: 8px; }
.mps-card-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.mps-card-desc { font-size: 11px; color: rgba(255,255,255,0.4); line-height: 1.5; }
.mps-card-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.1em;
  padding: 2px 7px; border-radius: 4px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.4);
}
.mps-badge-pro { background: rgba(74,222,128,0.15); color: #4ade80; }

/* Verify status rows */
.mps-verify-status { margin-bottom: 14px; }
.mps-verify-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12px; color: rgba(255,255,255,0.6);
}
.mps-verify-icon { font-size: 14px; width: 18px; text-align: center; }
.mps-verify-btn {
  width: 100%; padding: 11px;
  background: rgba(147,51,234,0.15);
  border: 1px solid rgba(147,51,234,0.35);
  border-radius: 10px; color: #c084fc;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all 0.18s;
}
.mps-verify-btn:hover { background: rgba(147,51,234,0.25); }
.mps-verify-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Disclaimer box */
.mps-disclaimer-box {
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: 10px; padding: 14px;
}
.mps-disclaimer-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.6; cursor: pointer;
}
.mps-disclaimer-label strong { color: rgba(251,191,36,0.9); }

@media (max-width: 768px) {
  .mps-cards { grid-template-columns: 1fr; }
  .complete-profile-banner { flex-wrap: wrap; }
}

/* ── Password toggle — clean SVG icon ── */
.auth-pw-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.auth-pw-toggle:hover {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
}
.auth-pw-toggle svg {
  display: block;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   🔍 SEARCH SECTION
═══════════════════════════════════════════════════════════ */
.search-section,
.browse-section {
  padding: 32px 32px 120px;
  max-width: 1100px;
}

.search-section-header,
.browse-section-header {
  margin-bottom: 24px;
}
.search-section-title,
.browse-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.search-section-subtitle,
.browse-section-subtitle {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
}

/* Filter pills */
.search-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search-filter-btn {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.18s;
}
.search-filter-btn:hover {
  border-color: rgba(147,51,234,0.4);
  color: #c084fc;
}
.search-filter-btn.active {
  background: rgba(147,51,234,0.18);
  border-color: rgba(147,51,234,0.5);
  color: #c084fc;
}

/* Empty state */
.search-empty {
  text-align: center;
  padding: 60px 20px;
}
.search-empty.hidden { display: none; }
.search-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.search-empty-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.search-empty-desc { font-size: 0.9rem; color: rgba(255,255,255,0.35); }

/* ═══════════════════════════════════════════════════════════
   🌐 BROWSE SECTION
═══════════════════════════════════════════════════════════ */
.browse-genre-heading,
.browse-all-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.browse-genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

.browse-genre-tile {
  aspect-ratio: 1.4;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--tile-color, #7c3aed) 0%, rgba(0,0,0,0.6) 100%);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.browse-genre-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  border-radius: inherit;
  transition: opacity 0.2s;
}
.browse-genre-tile:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.browse-genre-tile:hover::before { opacity: 0; }
.browse-genre-tile.active {
  box-shadow: 0 0 0 2px #fff, 0 8px 24px rgba(0,0,0,0.4);
}

.bgt-emoji {
  font-size: 1.8rem;
  position: absolute;
  top: 12px;
  right: 12px;
  opacity: 0.8;
}
.bgt-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.bgt-count {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  position: relative;
  z-index: 1;
  margin-top: 2px;
}

/* Mobile */
@media (max-width: 768px) {
  .search-section, .browse-section { padding: 20px 16px 120px; }
  .browse-genre-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
  .search-section-title, .browse-section-title { font-size: 1.4rem; }
}


/* ═══════════════════════════════════════════════════════════
   🔍 SEARCH & BROWSE SECTIONS
═══════════════════════════════════════════════════════════ */
.search-section, .browse-section { padding: 32px 32px 120px; max-width: 1100px; }
.search-section-header, .browse-section-header { margin-bottom: 24px; }
.search-section-title, .browse-section-title { font-size: 1.8rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; margin-bottom: 6px; }
.search-section-subtitle, .browse-section-subtitle { font-size: 0.9rem; color: rgba(255,255,255,0.4); }
.search-filters { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.search-filter-btn { padding: 7px 18px; border-radius: 20px; font-size: 12px; font-weight: 700; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.18s; }
.search-filter-btn:hover { border-color: rgba(147,51,234,0.4); color: #c084fc; }
.search-filter-btn.active { background: rgba(147,51,234,0.18); border-color: rgba(147,51,234,0.5); color: #c084fc; }
.search-empty { text-align: center; padding: 60px 20px; }
.search-empty.hidden { display: none; }
.search-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.search-empty-title { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.search-empty-desc { font-size: 0.9rem; color: rgba(255,255,255,0.35); }
.browse-genre-heading, .browse-all-heading { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.browse-genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 40px; }
.browse-genre-tile { aspect-ratio: 1.4; border-radius: 14px; background: linear-gradient(135deg, var(--tile-color, #7c3aed) 0%, rgba(0,0,0,0.6) 100%); padding: 14px; cursor: pointer; transition: all 0.2s; border: 1px solid rgba(255,255,255,0.08); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.browse-genre-tile:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.browse-genre-tile.active { box-shadow: 0 0 0 2px #fff; }
.bgt-emoji { font-size: 1.8rem; position: absolute; top: 12px; right: 12px; opacity: 0.8; }
.bgt-name { font-size: 13px; font-weight: 800; color: #fff; position: relative; z-index: 1; }
.bgt-count { font-size: 10px; color: rgba(255,255,255,0.6); position: relative; z-index: 1; margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════
   🎓 SONARA ACADEMY v2 — Premium Game UI
═══════════════════════════════════════════════════════════ */

/* Sidebar icon */
.nav-item-academy .futurist-icon-tile { color: #fbbf24 !important; }
.nav-item-academy.active { background: linear-gradient(135deg,rgba(251,191,36,0.15),rgba(245,158,11,0.08)) !important; border-color: rgba(251,191,36,0.35) !important; color: #fbbf24 !important; box-shadow: 0 0 20px rgba(251,191,36,0.15) !important; }

.academy-section { padding: 0 0 100px; }

/* ── HERO ── */
.academy-hero {
  position: relative; overflow: hidden;
  padding: 36px 36px 32px;
  background: linear-gradient(135deg,rgba(124,58,237,0.2) 0%,rgba(8,145,178,0.1) 50%,rgba(251,191,36,0.08) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.academy-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(251,191,36,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.academy-hero-content { position: relative; z-index: 1; }
.academy-hero-badge {
  display: inline-block; padding: 3px 12px;
  background: rgba(251,191,36,0.15); border: 1px solid rgba(251,191,36,0.3);
  border-radius: 20px; font-size: 9px; font-weight: 900; letter-spacing: 0.15em;
  color: #fbbf24; margin-bottom: 12px;
}
.academy-hero-title { font-size: 2.2rem; font-weight: 900; color: #fff; letter-spacing: -0.04em; margin-bottom: 6px; }
.academy-hero-subtitle { font-size: 0.9rem; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.academy-hero-stats {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 0; overflow: hidden;
  width: fit-content;
}
.ahs-item { padding: 12px 24px; text-align: center; }
.ahs-val { display: block; font-size: 1.4rem; font-weight: 900; color: #fbbf24; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.ahs-label { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.ahs-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.07); }

/* ── SKILL NAV TABS ── */
.academy-skill-nav {
  display: flex; gap: 0; padding: 0 36px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.academy-skill-nav::-webkit-scrollbar { display: none; }
.asn-btn {
  padding: 14px 22px; font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,0.35); background: none; border: none;
  border-bottom: 2px solid transparent; cursor: pointer;
  white-space: nowrap; transition: all 0.18s; letter-spacing: 0.01em;
}
.asn-btn:hover { color: rgba(255,255,255,0.7); }
.asn-btn.active { color: #fbbf24; border-bottom-color: #fbbf24; }

/* ── PANES ── */
.academy-pane { padding: 28px 36px; }
.academy-pane.hidden { display: none; }

/* ── SKILL TREE ── */
.skill-tree-intro { margin-bottom: 28px; }
.st-title { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.st-desc { font-size: 0.88rem; color: rgba(255,255,255,0.4); }

.skill-tree-container { display: flex; flex-direction: column; gap: 0; }

.skill-tier { position: relative; padding: 24px 0 0; }
.skill-tier-label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.skill-tier-label::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.06); }
.tier-lock { font-size: 10px; color: rgba(255,255,255,0.2); font-weight: 600; letter-spacing: 0; }
.skill-tier-locked .skill-node { opacity: 0.45; pointer-events: none; }

.skill-tier-nodes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  position: relative;
}

/* Connector lines between tiers */
.skill-tree-connector {
  height: 32px; position: relative; margin: 0;
  display: flex; align-items: center; justify-content: center;
}
.skill-tree-connector::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 100%;
  background: linear-gradient(to bottom, rgba(251,191,36,0.3), rgba(251,191,36,0.1));
}

/* Skill nodes */
.skill-node {
  position: relative;
  padding: 18px; border-radius: 16px;
  cursor: pointer; transition: all 0.22s;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.skill-node:hover { transform: translateY(-3px); }

.sn-unlocked {
  border-color: rgba(147,51,234,0.35);
  background: linear-gradient(135deg,rgba(147,51,234,0.12),rgba(6,182,212,0.06));
  box-shadow: 0 4px 20px rgba(147,51,234,0.12);
}
.sn-unlocked:hover { box-shadow: 0 8px 32px rgba(147,51,234,0.25); border-color: rgba(147,51,234,0.55); }

.sn-complete {
  border-color: rgba(74,222,128,0.4);
  background: linear-gradient(135deg,rgba(74,222,128,0.1),rgba(6,182,212,0.06));
  box-shadow: 0 4px 20px rgba(74,222,128,0.1);
}
.sn-complete .sn-status { color: #4ade80 !important; }

.sn-locked {
  border-color: rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  filter: grayscale(0.7);
}

.sn-legendary {
  border-color: rgba(251,191,36,0.4) !important;
  background: linear-gradient(135deg,rgba(251,191,36,0.12),rgba(245,158,11,0.06)) !important;
}
.sn-legendary:hover { box-shadow: 0 8px 32px rgba(251,191,36,0.3) !important; }

.sn-icon { font-size: 2rem; line-height: 1; }
.sn-name { font-size: 12px; font-weight: 800; color: #fff; }
.sn-xp { font-size: 10px; color: rgba(74,222,128,0.8); font-weight: 700; }
.sn-status { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.3); }

/* ── QUIZ ARENA ── */
.quiz-arena-header { margin-bottom: 20px; }
.qa-title { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.qa-desc { font-size: 0.88rem; color: rgba(255,255,255,0.4); }

.quiz-difficulty-filter { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.qdf-btn { padding: 6px 16px; border-radius: 20px; font-size: 11px; font-weight: 700; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.45); cursor: pointer; transition: all 0.15s; }
.qdf-btn:hover { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.2); }
.qdf-btn.active { background: rgba(251,191,36,0.15); border-color: rgba(251,191,36,0.4); color: #fbbf24; }

/* Cert cards grid */
.academy-cert-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(185px,1fr)); gap: 14px; margin-bottom: 24px; }
.academy-cert-card {
  background: linear-gradient(135deg,color-mix(in srgb,var(--cert-color,#7c3aed) 18%,transparent),rgba(255,255,255,0.02));
  border: 1px solid color-mix(in srgb,var(--cert-color,#7c3aed) 35%,transparent);
  border-radius: 16px; padding: 18px;
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.academy-cert-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.3); }
.academy-cert-card.acc-locked { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.academy-cert-card.acc-done { border-color: rgba(74,222,128,0.35); }
.acc-emoji { font-size: 1.8rem; }
.acc-checkmark { font-size: 1rem; color: #4ade80; }
.acc-name { font-size: 13px; font-weight: 800; color: #fff; }
.acc-meta { font-size: 10px; color: rgba(255,255,255,0.35); }
.acc-xp { font-size: 11px; color: rgba(74,222,128,0.8); font-weight: 700; }
.acc-badge-label { font-size: 10px; color: #fbbf24; font-weight: 700; margin-top: 4px; }
.acc-start-btn { margin-top: 10px; padding: 8px 12px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.15s; }
.acc-start-btn:hover { background: rgba(255,255,255,0.14); }

/* Active quiz area */
.academy-quiz-area { max-width: 700px; }
.academy-quiz-area.hidden { display: none; }
.aqa-topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.aqa-back-btn { padding: 6px 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: rgba(255,255,255,0.6); font-size: 12px; cursor: pointer; transition: all 0.15s; }
.aqa-back-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.aqa-genre-badge { padding: 4px 12px; background: rgba(251,191,36,0.15); border: 1px solid rgba(251,191,36,0.3); border-radius: 20px; font-size: 11px; font-weight: 800; color: #fbbf24; }
.aqa-difficulty-badge { padding: 4px 12px; border-radius: 20px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.diff-beginner { background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.3); color: #4ade80; }
.diff-intermediate { background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.3); color: #fbbf24; }
.diff-advanced { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #f87171; }
.diff-master { background: rgba(192,132,252,0.12); border: 1px solid rgba(192,132,252,0.3); color: #c084fc; }
.aqa-timer { margin-left: auto; font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.5); font-variant-numeric: tabular-nums; padding: 4px 12px; background: rgba(255,255,255,0.05); border-radius: 8px; }
.aqa-timer-danger { color: #f87171 !important; background: rgba(239,68,68,0.12) !important; animation: timerPulse 0.5s ease-in-out infinite; }
@keyframes timerPulse { 0%,100%{opacity:1;} 50%{opacity:0.5;} }

.aqa-progress-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.aqa-progress-bar { flex: 1; height: 5px; background: rgba(255,255,255,0.06); border-radius: 99px; overflow: hidden; }
.aqa-progress-fill { height: 100%; background: linear-gradient(90deg,#7c3aed,#fbbf24); border-radius: 99px; transition: width 0.5s ease; }
.aqa-progress-label { font-size: 11px; color: rgba(255,255,255,0.35); white-space: nowrap; font-variant-numeric: tabular-nums; }

.aqa-question-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 24px; margin-bottom: 14px; }
.aqa-question { font-size: 1.05rem; font-weight: 700; color: #fff; line-height: 1.55; margin-bottom: 20px; }
.aqa-options { display: flex; flex-direction: column; gap: 9px; }
.aqa-opt { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 11px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; transition: all 0.15s; }
.aqa-opt:hover:not(:disabled) { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.18); transform: translateX(3px); }
.aqa-opt.correct { background: rgba(74,222,128,0.12); border-color: #4ade80; color: #4ade80; }
.aqa-opt.wrong { background: rgba(239,68,68,0.1); border-color: #f87171; color: #f87171; }
.aqa-opt:disabled { cursor: not-allowed; }
.aqa-opt-letter { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; flex-shrink: 0; }

.aqa-feedback { padding: 12px 16px; border-radius: 11px; font-size: 12px; line-height: 1.6; margin-bottom: 12px; }
.aqa-feedback.hidden { display: none; }
.aqa-fb-correct { background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.25); color: rgba(74,222,128,0.9); }
.aqa-fb-wrong { background: rgba(239,68,68,0.07); border: 1px solid rgba(239,68,68,0.2); color: rgba(248,113,113,0.9); }
.aqa-streak { font-size: 13px; font-weight: 800; color: #f97316; margin-bottom: 10px; animation: streakPop 0.3s ease; }
@keyframes streakPop { 0%{transform:scale(0.8);opacity:0;} 100%{transform:scale(1);opacity:1;} }
.aqa-next { padding: 11px 24px; border-radius: 10px; background: rgba(251,191,36,0.15); border: 1px solid rgba(251,191,36,0.4); color: #fbbf24; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.18s; }
.aqa-next:hover { background: rgba(251,191,36,0.28); }
.aqa-next.hidden { display: none; }
.aqa-next-alt { background: rgba(147,51,234,0.15); border-color: rgba(147,51,234,0.4); color: #c084fc; margin-left: 10px; }
.aqa-next-alt:hover { background: rgba(147,51,234,0.28); }

/* Results screen */
.academy-quiz-result { text-align: center; padding: 32px 24px; max-width: 480px; }
.academy-quiz-result.hidden { display: none; }
.aqr-podium { font-size: 4rem; margin-bottom: 10px; animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes popIn { 0%{transform:scale(0);opacity:0;} 100%{transform:scale(1);opacity:1;} }
.aqr-grade { font-size: 3.5rem; font-weight: 900; letter-spacing: -0.05em; margin-bottom: 8px; }
.grade-s { color: #fbbf24; text-shadow: 0 0 30px rgba(251,191,36,0.6); }
.grade-a { color: #4ade80; text-shadow: 0 0 20px rgba(74,222,128,0.4); }
.grade-b { color: #60a5fa; }
.grade-c { color: #facc15; }
.grade-d { color: rgba(255,255,255,0.4); }
.aqr-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 20px; }
.aqr-stats { display: flex; justify-content: center; gap: 0; margin-bottom: 24px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; overflow: hidden; }
.aqr-stat { padding: 14px 28px; text-align: center; border-right: 1px solid rgba(255,255,255,0.07); }
.aqr-stat:last-child { border-right: none; }
.aqr-stat span:first-child { display: block; font-size: 1.4rem; font-weight: 900; color: #fbbf24; font-variant-numeric: tabular-nums; }
.aqr-stat span:last-child { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.3); }
.aqr-badge { position: relative; display: flex; align-items: center; gap: 12px; justify-content: center; padding: 16px 20px; background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.3); border-radius: 14px; margin-bottom: 24px; overflow: hidden; }
.aqr-badge.hidden { display: none; }
.aqr-badge-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(251,191,36,0.15), transparent 70%); }
.aqr-badge-icon { font-size: 2rem; position: relative; z-index: 1; }
.aqr-badge-text { font-size: 13px; font-weight: 700; color: #fbbf24; position: relative; z-index: 1; }
.aqr-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* Ear training */
.ear-waveform-display { display: flex; align-items: center; justify-content: center; gap: 4px; height: 40px; margin-bottom: 16px; }
.ear-wave-bar { width: 4px; border-radius: 2px; background: rgba(251,191,36,0.5); animation: earWave 1.2s ease-in-out infinite; }
.ear-wave-bar:nth-child(1){height:40%;animation-delay:0s;}
.ear-wave-bar:nth-child(2){height:65%;animation-delay:0.1s;}
.ear-wave-bar:nth-child(3){height:90%;animation-delay:0.2s;}
.ear-wave-bar:nth-child(4){height:100%;animation-delay:0.3s;}
.ear-wave-bar:nth-child(5){height:80%;animation-delay:0.2s;}
.ear-wave-bar:nth-child(6){height:60%;animation-delay:0.1s;}
.ear-wave-bar:nth-child(7){height:35%;animation-delay:0s;}
@keyframes earWave { 0%,100%{transform:scaleY(0.4);} 50%{transform:scaleY(1);} }

/* Coming soon */
.academy-coming-soon { text-align: center; padding: 40px 20px; max-width: 520px; margin: 0 auto; }
.acs-animated-icon { font-size: 3.5rem; margin-bottom: 16px; animation: floatIcon 3s ease-in-out infinite; }
@keyframes floatIcon { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
.acs-title { font-size: 1.6rem; font-weight: 900; color: #fff; margin-bottom: 10px; }
.acs-desc { font-size: 0.9rem; color: rgba(255,255,255,0.45); line-height: 1.6; margin-bottom: 24px; }
.acs-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px; text-align: left; }
.acs-feature-card { padding: 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.6; text-align: center; }
.acs-notify-row { display: flex; gap: 8px; max-width: 380px; margin: 0 auto; }
.acs-email { flex: 1; padding: 10px 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: #fff; font-size: 13px; outline: none; }
.acs-email:focus { border-color: rgba(251,191,36,0.4); }
.acs-notify-btn { padding: 10px 16px; border-radius: 10px; background: rgba(251,191,36,0.15); border: 1px solid rgba(251,191,36,0.35); color: #fbbf24; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: all 0.15s; }
.acs-notify-btn:hover { background: rgba(251,191,36,0.25); }
.acs-notify-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.acs-notify-status { font-size: 12px; color: #4ade80; margin-top: 10px; }
.acs-notify-status.hidden { display: none; }

/* Mobile */
@media (max-width: 768px) {
  .academy-hero { padding: 20px 16px 16px; }
  .academy-hero-title { font-size: 1.5rem; }
  .academy-pane { padding: 20px 16px; }
  .academy-skill-nav { padding: 0 16px; }
  .skill-tier-nodes { grid-template-columns: 1fr; gap: 10px; }
  .academy-cert-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .aqr-stats { flex-direction: column; }
  .acs-feature-grid { grid-template-columns: 1fr; }
  .acs-notify-row { flex-direction: column; }
  .search-section, .browse-section { padding: 20px 16px 120px; }
  .browse-genre-grid { grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap: 8px; }
}

/* ── Academy active — force hide home content ── */
body.academy-active #mainDefaultContent,
body.academy-active .main-content > #mainDefaultContent {
  display: none !important;
}
.page-hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   🎓 ACADEMY v3 — Full visual overhaul
═══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.acad-hero {
  position: relative; overflow: hidden;
  padding: 40px 36px 32px;
  background: linear-gradient(135deg, rgba(251,191,36,0.06) 0%, rgba(147,51,234,0.08) 60%, rgba(6,182,212,0.05) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.acad-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 80% 50%, rgba(251,191,36,0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(147,51,234,0.06) 0%, transparent 50%);
}
.acad-hero-content { position: relative; z-index: 1; }
.acad-hero-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 0.16em;
  color: #fbbf24; margin-bottom: 10px;
}
.acad-hero-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900; letter-spacing: -0.04em; color: #fff;
  margin-bottom: 8px;
}
.acad-hero-sub { font-size: 0.9rem; color: rgba(255,255,255,0.4); max-width: 500px; }
.acad-hero-stats {
  display: flex; align-items: center; gap: 0;
  margin-top: 20px; width: fit-content;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; overflow: hidden;
}
.acad-stat {
  padding: 12px 20px; text-align: center;
}
.acad-stat-val {
  font-size: 1.4rem; font-weight: 900; color: #fff;
  font-variant-numeric: tabular-nums; letter-spacing: -0.03em;
  line-height: 1;
}
.acad-stat-label { font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 3px; }
.acad-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.07); }

/* ── Tabs ─────────────────────────────────────────────────── */
.acad-tabs {
  display: flex; padding: 0 36px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.acad-tabs::-webkit-scrollbar { display: none; }
.acad-tab {
  padding: 14px 18px; white-space: nowrap;
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,0.35);
  background: none; border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer; transition: all 0.18s;
}
.acad-tab:hover { color: rgba(255,255,255,0.7); }
.acad-tab.active { color: #fbbf24; border-bottom-color: #fbbf24; }

/* ── Panes ────────────────────────────────────────────────── */
.acad-pane { padding: 28px 36px 100px; }
.acad-pane.hidden { display: none; }
.acad-pane-header { margin-bottom: 22px; }
.acad-ph-title { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.acad-ph-sub { font-size: 0.85rem; color: rgba(255,255,255,0.4); }

/* ── Skill Tree ───────────────────────────────────────────── */
.skill-tree-wrap { max-width: 900px; }
.skill-tree-legend {
  display: flex; gap: 20px; margin-bottom: 28px;
  font-size: 12px; font-weight: 600;
}
.stl-item { display: flex; align-items: center; gap: 6px; }
.stl-unlocked { color: #c084fc; }
.stl-locked { color: rgba(255,255,255,0.2); }
.stl-complete { color: #4ade80; }

.skill-tree { display: flex; flex-direction: column; gap: 0; }
.tier-arrow { text-align: center; font-size: 1.5rem; color: rgba(255,255,255,0.15); padding: 8px 0; }
.skill-tier {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 20px; transition: all 0.2s;
}
.skill-tier.tier-locked { opacity: 0.45; }
.skill-tier-label {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}
.tier-unlock-hint {
  font-size: 10px; font-weight: 600; margin-left: 8px;
  color: rgba(251,191,36,0.6); text-transform: none; letter-spacing: 0;
}
.skill-tier-nodes {
  position: relative; height: 110px;
}
.sn-connector {
  position: absolute; top: 50%; left: 5%; right: 5%;
  height: 1px; background: rgba(255,255,255,0.06);
}
.skill-node {
  position: absolute; transform: translateX(-50%);
  width: 100px; cursor: pointer; transition: all 0.22s;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  user-select: none;
}
.skill-node:hover { transform: translateX(-50%) translateY(-4px); }
.sn-emoji {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; transition: all 0.2s;
  position: relative;
}
.sn-unlocked .sn-emoji {
  background: rgba(192,132,252,0.12);
  border: 1.5px solid rgba(192,132,252,0.4);
  box-shadow: 0 0 18px rgba(192,132,252,0.2);
}
.sn-unlocked:hover .sn-emoji {
  box-shadow: 0 0 28px rgba(192,132,252,0.45);
  border-color: rgba(192,132,252,0.7);
}
.sn-complete .sn-emoji {
  background: rgba(74,222,128,0.12);
  border: 1.5px solid rgba(74,222,128,0.5);
  box-shadow: 0 0 18px rgba(74,222,128,0.25);
}
.sn-locked .sn-emoji {
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.08);
  filter: grayscale(1);
}
.sn-label {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.6);
  text-align: center; line-height: 1.3; max-width: 90px;
}
.sn-done {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #4ade80; color: #000; font-size: 10px;
  font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.sn-lock {
  font-size: 12px; position: absolute; bottom: -4px; right: -4px;
}

/* ── Quiz Difficulty Filter ───────────────────────────────── */
.quiz-difficulty-filter {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}
.qdf-btn {
  padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.45);
  transition: all 0.15s;
}
.qdf-btn:hover { border-color: rgba(251,191,36,0.4); color: #fbbf24; }
.qdf-btn.active { background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.45); color: #fbbf24; }

/* ── Cert cards ───────────────────────────────────────────── */
.acad-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.acad-cert-card {
  border-radius: 16px; padding: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cert-color,#7c3aed) 15%, transparent), rgba(255,255,255,0.02));
  border: 1px solid color-mix(in srgb, var(--cert-color,#7c3aed) 35%, transparent);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; gap: 6px;
}
.acad-cert-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.4); }
.acad-cert-card.cert-done { border-color: rgba(74,222,128,0.3); }
.acc-top { display: flex; align-items: center; justify-content: space-between; }
.acc-emoji { font-size: 1.8rem; }
.acc-diff { font-size: 10px; font-weight: 800; letter-spacing: 0.04em; }
.acc-name { font-size: 14px; font-weight: 800; color: #fff; line-height: 1.3; }
.acc-meta { font-size: 11px; color: rgba(255,255,255,0.35); }
.acc-badge-earned { font-size: 11px; font-weight: 700; color: #fbbf24; }
.acc-start-btn {
  margin-top: 10px; padding: 9px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all 0.15s; text-align: center;
}
.acc-start-btn:hover { background: rgba(255,255,255,0.13); }

/* ── Active quiz area ─────────────────────────────────────── */
.acad-quiz-area { max-width: 700px; }
.acad-quiz-area.hidden { display: none; }
.aqa-topbar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.aqa-genre-pill {
  padding: 5px 12px; border-radius: 20px;
  background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.3);
  font-size: 12px; font-weight: 800; color: #fbbf24;
}
.aqa-timer-wrap { margin-left: auto; }
.aqa-timer-ring {
  width: 42px; height: 42px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.aqa-timer-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.aqa-timer-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 3; }
.aqa-timer-arc { fill: none; stroke: #4ade80; stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray 0.9s linear, stroke 0.3s; }
#aqaTimerNum { font-size: 12px; font-weight: 900; color: #fff; position: relative; font-variant-numeric: tabular-nums; }
.aqa-streak { font-size: 13px; font-weight: 800; color: #fb923c; }
.aqa-progress-text { font-size: 12px; color: rgba(255,255,255,0.35); font-variant-numeric: tabular-nums; }
.aqa-progress-bar { height: 3px; background: rgba(255,255,255,0.06); border-radius: 99px; margin-bottom: 24px; overflow: hidden; }
.aqa-progress-fill { height: 100%; background: linear-gradient(90deg, #fbbf24, #f59e0b); border-radius: 99px; transition: width 0.4s ease; }
.aqa-question { font-size: 1.1rem; font-weight: 700; color: #fff; line-height: 1.55; margin-bottom: 20px; }
.aqa-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.aqa-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 600;
  cursor: pointer; text-align: left; transition: all 0.14s;
}
.aqa-opt:hover:not(:disabled) { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
.aqa-opt.aqa-correct { background: rgba(74,222,128,0.12); border-color: #4ade80; color: #4ade80; }
.aqa-opt.aqa-wrong { background: rgba(239,68,68,0.1); border-color: #f87171; color: #f87171; }
.aqa-opt:disabled { cursor: not-allowed; }
.aqa-opt-key {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: rgba(255,255,255,0.08); display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 900;
}
.aqa-feedback {
  padding: 12px 14px; border-radius: 10px;
  font-size: 12px; line-height: 1.65; margin-bottom: 14px;
}
.aqa-fb-correct { background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.25); color: rgba(134,239,172,0.9); }
.aqa-fb-wrong { background: rgba(239,68,68,0.07); border: 1px solid rgba(239,68,68,0.2); color: rgba(248,113,113,0.9); }
.aqa-fb-timeout { background: rgba(251,191,36,0.07); border: 1px solid rgba(251,191,36,0.2); color: rgba(251,191,36,0.9); }
.aqa-feedback.hidden { display: none; }
.aqa-next-btn {
  padding: 12px 24px; border-radius: 12px;
  background: rgba(251,191,36,0.14); border: 1px solid rgba(251,191,36,0.4);
  color: #fbbf24; font-size: 13px; font-weight: 800; cursor: pointer;
  transition: all 0.18s; letter-spacing: 0.02em;
}
.aqa-next-btn:hover { background: rgba(251,191,36,0.25); transform: translateX(2px); }
.aqa-next-btn.hidden { display: none; }

/* ── Results screen ───────────────────────────────────────── */
.acad-quiz-result { text-align: center; padding: 32px 20px; max-width: 420px; }
.acad-quiz-result.hidden { display: none; }
.aqr-podium { font-size: 4rem; margin-bottom: 8px; }
.aqr-grade {
  font-size: 3.5rem; font-weight: 900; line-height: 1;
  letter-spacing: -0.04em; margin-bottom: 6px;
}
.aqr-title { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.aqr-score { font-size: 2rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.aqr-xp { font-size: 14px; color: #4ade80; margin-bottom: 18px; }
.aqr-badge {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; margin-bottom: 20px;
  background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.3);
  border-radius: 12px; color: #fbbf24; font-size: 13px; font-weight: 700;
}
.aqr-badge.hidden { display: none; }
.aqr-actions { display: flex; gap: 10px; justify-content: center; }
.aqr-retry, .aqr-back {
  padding: 11px 22px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.15s;
}
.aqr-retry { background: rgba(251,191,36,0.14); border: 1px solid rgba(251,191,36,0.4); color: #fbbf24; }
.aqr-retry:hover { background: rgba(251,191,36,0.25); }
.aqr-back { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.aqr-back:hover { background: rgba(255,255,255,0.1); }

/* ── Ear Lab wave display ─────────────────────────────────── */
.ear-wave-display {
  display: flex; align-items: center; justify-content: center;
  height: 60px; margin-bottom: 20px;
  background: rgba(0,0,0,0.2); border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}
.ear-bars { display: flex; align-items: center; gap: 3px; height: 40px; }
.ear-bars span {
  width: 5px; border-radius: 3px; background: rgba(251,191,36,0.5);
  animation: earWave3 1.4s ease-in-out infinite;
}
.ear-bars span:nth-child(2) { animation-delay: 0.15s; height: 55%; }
.ear-bars span:nth-child(3) { animation-delay: 0.3s; height: 85%; }
.ear-bars span:nth-child(4) { animation-delay: 0.45s; height: 100%; }
.ear-bars span:nth-child(5) { animation-delay: 0.3s; height: 75%; }
.ear-bars span:nth-child(6) { animation-delay: 0.15s; height: 90%; }
.ear-bars span:nth-child(7) { animation-delay: 0.25s; height: 60%; }
.ear-bars span:nth-child(8) { height: 40%; }
@keyframes earWave3 {
  0%, 100% { transform: scaleY(0.3); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ── Coming soon panels ───────────────────────────────────── */
.acad-coming-soon { text-align: center; padding: 40px 20px; max-width: 500px; margin: 0 auto; }
.acs-vinyls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 20px; }
.acs-vinyl {
  width: 80px; height: 80px; border-radius: 50%;
  background: conic-gradient(from 0deg, #1a1a2e, #7c3aed, #1a1a2e, #c084fc, #1a1a2e);
  display: flex; align-items: center; justify-content: center;
  animation: vinylSpin 4s linear infinite;
  border: 3px solid rgba(255,255,255,0.1);
}
.acs-vinyl-b { animation-direction: reverse; background: conic-gradient(from 0deg, #1a1a2e, #06b6d4, #1a1a2e, #0891b2, #1a1a2e); }
@keyframes vinylSpin { to { transform: rotate(360deg); } }
.acs-vinyl-label { font-size: 1.2rem; font-weight: 900; color: #fff; }
.acs-vs { font-size: 1.1rem; font-weight: 900; color: rgba(255,255,255,0.25); }
.acs-mic-wrap { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.acs-mic { font-size: 3.5rem; animation: micPulse 2s ease-in-out infinite; }
@keyframes micPulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.1);} }
.acs-title { font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: 10px; }
.acs-desc { font-size: 0.88rem; color: rgba(255,255,255,0.4); line-height: 1.65; margin-bottom: 24px; }
.acs-features { display: flex; flex-direction: column; gap: 9px; margin-bottom: 28px; text-align: left; }
.acs-feat { padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); font-size: 13px; color: rgba(255,255,255,0.6); }
.acs-notify-row { display: flex; gap: 8px; }
.acs-email { flex:1; padding: 10px 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: #fff; font-size: 13px; outline: none; }
.acs-email:focus { border-color: rgba(251,191,36,0.4); }
.acs-notify-btn { padding: 10px 16px; border-radius: 10px; background: rgba(251,191,36,0.14); border: 1px solid rgba(251,191,36,0.35); color: #fbbf24; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; transition: all 0.15s; }
.acs-notify-btn:hover { background: rgba(251,191,36,0.25); }
.acs-notify-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.acs-confirmed { font-size: 12px; color: #4ade80; margin-top: 8px; }
.acs-confirmed.hidden { display: none; }

@media (max-width: 768px) {
  .acad-hero { padding: 24px 16px 20px; }
  .acad-pane { padding: 20px 16px 80px; }
  .acad-tabs { padding: 0 16px; }
  .acad-cert-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .skill-tier-nodes { height: 130px; }
  .skill-node { width: 80px; }
  .sn-emoji { width: 44px; height: 44px; font-size: 1.3rem; }
  .acs-notify-row { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════
   🎭 MOZAI MASCOT HERO — Premium intro section
═══════════════════════════════════════════════════════════ */
.mozai-hero-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0;
  padding: 32px 36px 28px;
  margin-bottom: 24px;
  background: linear-gradient(135deg,
    rgba(147,51,234,0.08) 0%,
    rgba(6,182,212,0.04) 40%,
    rgba(251,191,36,0.04) 100%);
  border: 1px solid rgba(147,51,234,0.15);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.7s cubic-bezier(0.22,1,0.36,1),
              opacity 0.5s ease;
}
.mozai-hero-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%,
    rgba(147,51,234,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%,
    rgba(6,182,212,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.mozai-hero-wrap.mozai-hero-visible {
  max-height: 320px;
  opacity: 1;
}
.mozai-hero-wrap.mozai-hero-dismissed {
  display: none !important;
}

/* ── Text content ─────────────────────────────────────────── */
.mozai-hero-text {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
}
.mozai-hero-eyebrow {
  font-size: 10px; font-weight: 800; letter-spacing: 0.16em;
  color: rgba(192,132,252,0.7); text-transform: uppercase;
}
.mozai-hero-name {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900; letter-spacing: -0.04em; color: #fff;
  line-height: 1;
}
.mozai-name-accent {
  background: linear-gradient(135deg, #c084fc, #06b6d4);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(192,132,252,0.4));
}

/* ── Speech bubble ────────────────────────────────────────── */
.mozai-speech-bubble {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(192,132,252,0.2);
  border-radius: 14px;
  font-size: 0.95rem; color: rgba(255,255,255,0.85);
  font-weight: 500; line-height: 1.4;
  min-height: 42px; max-width: 460px;
  position: relative;
}
.mozai-speech-bubble::before {
  content: '';
  position: absolute; right: -8px; top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: rgba(192,132,252,0.2);
  display: none; /* show on desktop large */
}
.mozai-cursor {
  display: inline-block;
  color: #c084fc;
  animation: mozaiCursorBlink 0.8s step-end infinite;
  font-weight: 100;
}
@keyframes mozaiCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Tags ─────────────────────────────────────────────────── */
.mozai-tag-row {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.mozai-tag {
  padding: 4px 10px; border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.5);
}

/* ── CTA buttons ──────────────────────────────────────────── */
.mozai-cta-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 4px;
}
.mozai-cta-btn {
  padding: 10px 20px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(147,51,234,0.3), rgba(6,182,212,0.2));
  border: 1px solid rgba(147,51,234,0.45);
  color: #e9d5ff; font-size: 13px; font-weight: 800;
  cursor: pointer; transition: all 0.18s;
  letter-spacing: 0.01em;
}
.mozai-cta-btn:hover {
  background: linear-gradient(135deg, rgba(147,51,234,0.5), rgba(6,182,212,0.3));
  box-shadow: 0 0 20px rgba(147,51,234,0.35);
  transform: translateY(-1px);
}
.mozai-dismiss-btn {
  padding: 10px 18px; border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.mozai-dismiss-btn:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08); }

/* ── Mozai image ──────────────────────────────────────────── */
.mozai-hero-img-wrap {
  position: relative;
  width: 200px; height: 260px;
  flex-shrink: 0; display: flex;
  align-items: flex-end; justify-content: center;
}
.mozai-glow-ring {
  position: absolute; inset: -10px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(147,51,234,0.18) 0%,
    rgba(147,51,234,0.06) 50%,
    transparent 70%);
  animation: mozaiGlow 3s ease-in-out infinite alternate;
}
@keyframes mozaiGlow {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.05); opacity: 1; }
}
.mozai-hero-img {
  height: 260px; width: auto;
  object-fit: contain; object-position: center bottom;
  position: relative; z-index: 1;
  /* Use CSS to mask the purple/lavender background */
  border-radius: 50% 50% 20% 20% / 40% 40% 20% 20%;
  /* Blend the bg with the site background */
  mix-blend-mode: normal;
  /* Mask with radial gradient to fade purple bg naturally */
  mask-image: radial-gradient(ellipse 85% 90% at 50% 55%, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 90% at 50% 55%, black 60%, transparent 100%);
  animation: mozaiFloat 4s ease-in-out infinite;
  cursor: pointer;
  filter: drop-shadow(0 8px 20px rgba(147,51,234,0.3));
}
@keyframes mozaiFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.mozai-hero-img.mozai-wave {
  animation: mozaiWaveAnim 0.8s ease;
}
@keyframes mozaiWaveAnim {
  0% { transform: rotate(0deg) translateY(0); }
  20% { transform: rotate(-5deg) translateY(-4px); }
  40% { transform: rotate(5deg) translateY(-6px); }
  60% { transform: rotate(-4deg) translateY(-4px); }
  80% { transform: rotate(3deg) translateY(-2px); }
  100% { transform: rotate(0deg) translateY(0); }
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .mozai-hero-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 20px 16px 16px;
    gap: 12px;
  }
  .mozai-hero-wrap.mozai-hero-visible { max-height: 600px; }
  .mozai-hero-img-wrap {
    width: 100%; height: 180px;
    order: -1; /* image on top on mobile */
  }
  .mozai-hero-img { height: 180px; }
  .mozai-hero-name { font-size: 1.5rem; }
  .mozai-speech-bubble { font-size: 0.85rem; max-width: 100%; }
}

@media (max-width: 500px) {
  .mozai-tag-row { display: none; }
}





/* ═══════════════════════════════════════════════════════════════════
   🖤 SONARA PREMIUM DARK THEME — v4 Final
   KEY FIX: sidebar position is NEVER overridden (must stay fixed)
   Toggle: ◐ button fixed at left:202px top:18px (beside sidebar)
   Default: OFF (purple theme is default)
═══════════════════════════════════════════════════════════════════ */

/* ── Google Fonts — loaded by JS ──────────────────────────── */
/* Playfair Display, DM Sans, Space Grotesk */

/* ── Canvas ───────────────────────────────────────────────── */
body.snr-dark { background: #000000 !important; }
body.snr-dark .main { background: #000000 !important; }
body.snr-dark .main-content { background: #000000 !important; }
body.snr-dark #mainDefaultContent { background: #000000 !important; }

/* CRITICAL: never touch section or bg-waves backgrounds
   as they contain the hero gradient */
body.snr-dark .bg-waves { opacity: 0.15 !important; }
body.snr-dark .bg-orb { opacity: 0.08 !important; }

/* ── Sidebar — background only, NEVER position ────────────── */
body.snr-dark .sidebar {
  /* CRITICAL: NO position property here — must stay fixed */
  background: #090909 !important;
  border-right: 1px solid rgba(255,255,255,0.05) !important;
}

/* ── Logo S — deep chrome metallic with violet-cyan ───────── */
body.snr-dark .logo-icon {
  background: linear-gradient(145deg,
    #1a1a1a 0%, #4a4a4a 12%, #b8b8b8 25%,
    #e8e8e8 38%, #ffffff 45%, #d0d0d0 52%,
    #888888 62%, #8b5cf6 74%, #a855f7 84%,
    #22d3ee 94%, #0ea5e9 100%) !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 6px 24px rgba(0,0,0,0.9),
    0 0 20px rgba(168,85,247,0.28),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.4) !important;
  border-radius: 14px !important;
}

/* ── Logo text — editorial serif wordmark (Gemini look) ────── */
body.snr-dark .logo-text {
  color: #e8e8e8 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  filter: none !important;
  font-family: 'Playfair Display', 'Georgia', serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.005em !important;
  font-size: 1.22rem !important;
}
/* Font overrides for the wordmark when user picks non-serif */
body.snr-dark.snr-font-dm .logo-text {
  font-family: 'DM Sans', sans-serif !important;
  letter-spacing: -0.02em !important;
}
body.snr-dark.snr-font-space .logo-text {
  font-family: 'Space Grotesk', sans-serif !important;
  letter-spacing: -0.02em !important;
}
body.snr-dark .logo-tagline {
  color: rgba(167,139,250,0.62) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  letter-spacing: 0.22em !important;
  font-size: 0.58rem !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}
body.snr-dark .logo {
  border-bottom-color: rgba(255,255,255,0.05) !important;
}

/* ── Nav items — no icon boxes, clean ─────────────────────── */
body.snr-dark .futurist-icon-tile {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 20px !important;
  height: 20px !important;
}
body.snr-dark .nav-item {
  color: rgba(255,255,255,0.38) !important;
  font-weight: 500 !important;
  border-radius: 10px !important;
  position: relative !important;
}
body.snr-dark .nav-item svg { opacity: 0.4 !important; transition: opacity .2s !important; }
body.snr-dark .nav-item:hover {
  color: rgba(255,255,255,0.78) !important;
  background: rgba(255,255,255,0.05) !important;
}
body.snr-dark .nav-item:hover svg { opacity: 0.85 !important; }
body.snr-dark .nav-item.active {
  background: rgba(255,255,255,0.07) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
body.snr-dark .nav-item.active svg { opacity: 1 !important; }
/* Purple dot on active item right side */
body.snr-dark .nav-item.active::after {
  content: '';
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #9333ea;
  box-shadow: 0 0 8px rgba(147,51,234,0.8);
}
body.snr-dark .nav-divider { background: rgba(255,255,255,0.05) !important; }
body.snr-dark .nav-secondary .nav-item {
  color: rgba(255,255,255,0.25) !important;
  font-size: 0.82rem !important;
}

/* ── Header ────────────────────────────────────────────────── */
body.snr-dark header:not(.player-bar) {
  background: rgba(0,0,0,0.88) !important;
  backdrop-filter: blur(24px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
body.snr-dark #globalSearch {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  border-radius: 12px !important;
  color: #e0e0e0 !important;
}
body.snr-dark #globalSearch::placeholder { color: rgba(255,255,255,0.27) !important; }

/* ── Hero title — purple to cyan gradient, editorial serif ─── */
body.snr-dark .sonara-hero-typewriter {
  background: linear-gradient(90deg, #a855f7 0%, #8b5cf6 35%, #22d3ee 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  font-family: 'Playfair Display', 'Georgia', serif !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.05 !important;
}

/* ── Section headings — bold sans-serif (Gemini ref) ───────── */
body.snr-dark .section-title,
body.snr-dark .snr-section-title {
  font-family: 'DM Sans', 'Inter', sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  color: #ffffff !important;
}

/* ── Typography font classes ───────────────────────────────── */
body.snr-dark.snr-font-serif .section-title,
body.snr-dark.snr-font-serif .snr-section-title,
body.snr-dark.snr-font-serif .sonara-hero-typewriter,
body.snr-dark.snr-font-serif h1,
body.snr-dark.snr-font-serif h2 {
  font-family: 'Playfair Display', 'Georgia', serif !important;
}
body.snr-dark.snr-font-space .section-title,
body.snr-dark.snr-font-space .snr-section-title,
body.snr-dark.snr-font-space .sonara-hero-typewriter,
body.snr-dark.snr-font-space h1,
body.snr-dark.snr-font-space h2 {
  font-family: 'Space Grotesk', sans-serif !important;
}
body.snr-dark.snr-font-dm .section-title,
body.snr-dark.snr-font-dm .snr-section-title,
body.snr-dark.snr-font-dm .sonara-hero-typewriter,
body.snr-dark.snr-font-dm h1,
body.snr-dark.snr-font-dm h2 {
  font-family: 'DM Sans', sans-serif !important;
}

/* ── Glass / cards ─────────────────────────────────────────── */
body.snr-dark .glass {
  background: #111111 !important;
  border: 1px solid rgba(255,255,255,0.055) !important;
  border-top-color: rgba(255,255,255,0.09) !important;
}

/* Right side panels — cool violet tint */
body.snr-dark .landing-side-panel.glass,
body.snr-dark .landing-hype-panel.glass,
body.snr-dark .landing-rankings-panel.glass {
  background: linear-gradient(160deg, #140f24 0%, #0f0b1d 55%, #080612 100%) !important;
  border: 1px solid rgba(139,92,246,0.2) !important;
  border-top-color: rgba(167,139,250,0.3) !important;
  border-radius: 18px !important;
  box-shadow:
    0 18px 48px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(167,139,250,0.1) !important;
  position: relative !important;
}
/* Subtle violet inner glow at the top of each panel */
body.snr-dark .landing-side-panel.glass::before,
body.snr-dark .landing-hype-panel.glass::before,
body.snr-dark .landing-rankings-panel.glass::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.55), transparent);
  pointer-events: none;
}

/* Right-panel section headers — lavender small-caps */
body.snr-dark .landing-side-panel.glass > h3,
body.snr-dark .landing-side-panel.glass > h2,
body.snr-dark .landing-hype-panel.glass > h3,
body.snr-dark .landing-hype-panel.glass > h2,
body.snr-dark .landing-rankings-panel.glass > h3,
body.snr-dark .landing-rankings-panel.glass > h2,
body.snr-dark .landing-side-panel.glass .snr-section-title,
body.snr-dark .landing-hype-panel.glass .snr-section-title,
body.snr-dark .landing-rankings-panel.glass .snr-section-title {
  color: #a78bfa !important;
  font-family: 'DM Sans', 'Inter', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  opacity: 0.82 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

/* Hype cards — cool glass hover */
body.snr-dark .hype-card.glass {
  background: rgba(168,85,247,0.03) !important;
  border: 1px solid rgba(139,92,246,0.11) !important;
  border-radius: 10px !important;
  transition: background .15s, border-color .15s !important;
}
body.snr-dark .hype-card.glass:hover {
  background: rgba(168,85,247,0.08) !important;
  border-color: rgba(167,139,250,0.3) !important;
}

/* Rankings rows — violet hover */
body.snr-dark .side-rank-row {
  border-radius: 10px !important;
  transition: background .15s !important;
}
body.snr-dark .side-rank-row:hover {
  background: rgba(168,85,247,0.08) !important;
}

/* Track cards */
body.snr-dark .track-card {
  background: #131313 !important;
  border: 1px solid rgba(255,255,255,0.055) !important;
  border-top-color: rgba(255,255,255,0.09) !important;
  border-radius: 16px !important;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s !important;
}
body.snr-dark .track-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.85) !important;
}
body.snr-dark .track-card img { border-radius: 10px !important; }

/* Portrait cards */
body.snr-dark .snr-portrait-card {
  border-radius: 14px !important;
  overflow: hidden !important;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s !important;
}
body.snr-dark .snr-portrait-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,.9) !important;
}

/* Spotlight / quick pick cards */
body.snr-dark .spotlight-card.glass,
body.snr-dark .quick-pick-card.glass {
  background: #131313 !important;
  border-radius: 16px !important;
}

/* Genre pills */
body.snr-dark .track-card-genre-pill {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.07) !important;
  color: rgba(255,255,255,0.32) !important;
}

/* Muted text */
body.snr-dark .text-muted { color: #6b7280 !important; }

/* ── Player bar — deep translucent with violet accents ──── */
body.snr-dark .player-bar,
body.snr-dark .player-bar.glass {
  background: rgba(6,4,2,0.94) !important;
  backdrop-filter: blur(32px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
  border-top: 1px solid rgba(168,85,247,0.2) !important;
  box-shadow: 0 -1px 0 rgba(168,85,247,0.08), 0 -18px 48px rgba(0,0,0,0.6) !important;
}

/* Waveform canvas — NEVER touch (JS paints purple gradient) */
body.snr-dark canvas { filter: none !important; }

/* Player icon buttons — warm ivory; glass tiles carry chrome */
body.snr-dark .player-bar .player-btn,
body.snr-dark .player-bar .player-bar-settings-btn {
  color: rgba(235, 230, 255, 0.86) !important;
  background: transparent !important;
  border: none !important;
  transition: color .15s, transform .15s !important;
}
body.snr-dark .player-bar .player-btn:hover,
body.snr-dark .player-bar .player-bar-settings-btn:hover {
  color: #f5f3ff !important;
  background: transparent !important;
  transform: translateY(-1px) !important;
}

/* Premium glass tiles — cool edge + purple depth (readable vs. flat grey icons) */
body.snr-dark .player-bar .futurist-icon-host .futurist-icon-tile {
  background: linear-gradient(
    160deg,
    rgba(42, 32, 58, 0.55) 0%,
    rgba(16, 12, 28, 0.92) 48%,
    rgba(7, 6, 14, 0.96) 100%
  ) !important;
  backdrop-filter: blur(14px) saturate(165%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(165%) !important;
  border: 1px solid rgba(168, 85, 247, 0.28) !important;
  border-top: 1px solid rgba(228, 214, 255, 0.14) !important;
  border-left: 1px solid rgba(200, 160, 255, 0.18) !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 4px 14px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(168, 85, 247, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  color: rgba(238, 231, 255, 0.94) !important;
  transition: color .15s, box-shadow .2s, border-color .2s, transform .2s !important;
}
body.snr-dark .player-bar .futurist-icon-host:hover .futurist-icon-tile {
  border-color: rgba(192, 132, 252, 0.48) !important;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.24),
    0 6px 18px rgba(0, 0, 0, 0.58),
    0 0 26px rgba(168, 85, 247, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  color: #fffbf0 !important;
}

/* Toggled controls — must beat base tile (higher specificity than futurist defaults) */
body.snr-dark .player-bar .futurist-icon-host.player-btn-icon.active .futurist-icon-tile,
body.snr-dark .player-bar .futurist-icon-host.player-btn-queue.active .futurist-icon-tile {
  background: rgba(168, 85, 247, 0.16) !important;
  border-color: rgba(192, 132, 252, 0.52) !important;
  border-top: 1px solid rgba(237, 210, 255, 0.65) !important;
  border-left: 1px solid rgba(220, 180, 255, 0.4) !important;
  border-right: 1px solid rgba(88, 28, 135, 0.55) !important;
  border-bottom: 1px solid rgba(45, 12, 80, 0.55) !important;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.38),
    0 8px 22px rgba(0, 0, 0, 0.52),
    0 0 22px rgba(168, 85, 247, 0.45),
    0 0 26px rgba(34, 211, 238, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  color: #f3e8ff !important;
}
body.snr-dark .player-bar .futurist-icon-host.player-btn-icon.active .futurist-icon-tile svg {
  color: #f3e8ff !important;
  filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.95)) drop-shadow(0 0 12px rgba(34, 211, 238, 0.38)) !important;
}
body.snr-dark .player-bar .futurist-icon-host.player-btn-queue.active .futurist-icon-tile .queue-icon-img {
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.9)) drop-shadow(0 0 12px rgba(34, 211, 238, 0.42)) brightness(1.12) saturate(1.25) !important;
}
body.snr-dark .player-bar .futurist-icon-host.player-btn-icon.active[data-repeat-mode="all"] .futurist-icon-tile {
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(168, 85, 247, 0.58),
    0 0 32px rgba(34, 211, 238, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

/* Larger dock icons + slightly heavier strokes (premium weight, not hairline) */
body.snr-dark .player-bar .futurist-icon-host.player-btn-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
}
body.snr-dark .player-bar .futurist-icon-host.player-btn-icon .futurist-icon-tile {
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
}
body.snr-dark .player-bar .player-bar-settings-btn.futurist-icon-host {
  right: -42px !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
}
body.snr-dark .player-bar .player-bar-settings-btn.futurist-icon-host .futurist-icon-tile {
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
}
body.snr-dark .player-bar .futurist-icon-host.player-btn-icon .futurist-icon-tile svg,
body.snr-dark .player-bar .player-bar-settings-btn .futurist-icon-tile svg.player-icon {
  width: 17px !important;
  height: 17px !important;
}
body.snr-dark .player-bar .player-bar-settings-btn .futurist-icon-tile svg.player-icon {
  width: 13px !important;
  height: 13px !important;
}

/* Desktop-only center settings button: keep outside progress area */
body.snr-dark #playerSettingsBtn.player-bar-settings-btn.futurist-icon-host {
  top: 4px !important;
  right: -42px !important;
  transform: none !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
}
body.snr-dark #playerSettingsBtn.player-bar-settings-btn.futurist-icon-host .futurist-icon-tile {
  width: 20px !important;
  height: 20px !important;
  border-radius: 6px !important;
}
body.snr-dark #playerSettingsBtn.player-bar-settings-btn .futurist-icon-tile svg.player-icon {
  width: 11px !important;
  height: 11px !important;
}
body.snr-dark #playerSettingsBtn.player-bar-settings-btn:hover {
  transform: none !important;
}
body.snr-dark .player-bar svg.player-icon {
  stroke: currentColor !important;
  stroke-width: 2.35 !important;
  shape-rendering: geometricPrecision;
}

/* Right cluster spacing */
body.snr-dark .player-right-icons {
  gap: 0.625rem !important;
  border-left-color: rgba(168, 85, 247, 0.2) !important;
}

body.snr-dark .player-bar .player-btn-queue .futurist-icon-tile .queue-icon-img {
  width: 20px !important;
  height: 20px !important;
  filter: brightness(1.08) contrast(1.05) !important;
}

/* Transport (prev/next) */
body.snr-dark .player-bar .player-btn-transport .futurist-icon-tile {
  color: rgba(243, 236, 255, 0.95) !important;
  font-size: 1.14rem !important;
}
body.snr-dark .player-bar .player-btn-transport:hover .futurist-icon-tile {
  color: #fff !important;
}

/* Mini waveform — subtle frame so it matches the bar */
body.snr-dark .player-bar .waveform-mini {
  background: rgba(0, 0, 0, 0.38) !important;
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.14) !important;
}

/* Play button — restrained dark-mode violet glow */
body.snr-dark .player-bar .player-btn-play {
  background: linear-gradient(145deg,
    #151228 0%,
    #231b42 30%,
    #3b2a72 62%,
    #2e3f7a 100%) !important;
  box-shadow:
    0 0 0 1px rgba(205, 187, 255, 0.34),
    0 4px 14px rgba(0,0,0,0.72),
    0 0 16px rgba(124,58,237,0.28),
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -1px 0 rgba(0,0,0,0.5) !important;
  border: none !important;
  color: #ece9ff !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  transition: transform .2s, box-shadow .2s !important;
}
body.snr-dark .player-bar .player-btn-play:hover {
  transform: scale(1.06) !important;
  box-shadow:
    0 0 0 1px rgba(220, 205, 255, 0.4),
    0 6px 22px rgba(0,0,0,0.86),
    0 0 22px rgba(124,58,237,0.42),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 0 rgba(0,0,0,0.4) !important;
}
body.snr-dark .player-bar .player-btn-play #btnPlayIcon {
  color: #f3f1ff !important;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35) !important;
  font-size: 1.05rem !important;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.35)) !important;
}

/* ── Progress bar — purple→cyan (matches hero); track reads on charcoal ───── */
body.snr-dark .player-bar .seek-slider {
  background: linear-gradient(to right,
    #a855f7 0%,
    #8b5cf6 calc(var(--seek-progress) * 0.5),
    #22d3ee var(--seek-progress),
    rgba(255, 255, 255, 0.16) var(--seek-progress),
    rgba(255, 255, 255, 0.09) 100%) !important;
  height: 6px !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}
body.snr-dark .player-bar .seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: #ffffff !important;
  box-shadow:
    0 0 0 2px rgba(12, 8, 6, 0.9),
    0 0 0 3px rgba(34, 211, 238, 0.45),
    0 0 14px rgba(168, 85, 247, 0.65),
    0 0 20px rgba(34, 211, 238, 0.35) !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
}
body.snr-dark .player-bar .seek-slider::-moz-range-thumb {
  appearance: none !important;
  border: none !important;
  background: #ffffff !important;
  box-shadow:
    0 0 0 2px rgba(12, 8, 6, 0.9),
    0 0 0 3px rgba(34, 211, 238, 0.45),
    0 0 14px rgba(168, 85, 247, 0.65),
    0 0 20px rgba(34, 211, 238, 0.35) !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
}
body.snr-dark .player-bar .progress-bar .time-current {
  color: rgba(242, 236, 255, 0.92) !important;
  font-weight: 500 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0.02em !important;
}
body.snr-dark .player-bar .progress-bar .time-total {
  color: rgba(216, 205, 255, 0.62) !important;
  font-variant-numeric: tabular-nums !important;
}

/* Volume slider popover — cool glass */
body.snr-dark .volume-popover {
  background: rgba(12,8,24,0.95) !important;
  border: 1px solid rgba(168,85,247,0.22) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.8) !important;
}
body.snr-dark .volume-slider {
  accent-color: #a855f7 !important;
}

/* Now-playing strip on right (title + artist + art) */
body.snr-dark .player-now-info {
  background: rgba(168,85,247,0.07) !important;
  border: 1px solid rgba(139,92,246,0.2) !important;
  border-radius: 12px !important;
}
body.snr-dark .player-now-info:hover {
  background: rgba(168,85,247,0.12) !important;
  border-color: rgba(167,139,250,0.3) !important;
}
body.snr-dark .player-now-info__title {
  color: #f1ecff !important;
  font-weight: 600 !important;
}
body.snr-dark .player-now-info__artist,
body.snr-dark .now-playing-subtitle {
  color: rgba(219,205,255,0.68) !important;
}
body.snr-dark .player-now-info__like {
  color: rgba(219,205,255,0.64) !important;
  transition: color .15s, transform .15s !important;
}
body.snr-dark .player-now-info__like:hover {
  color: #22d3ee !important;
  transform: scale(1.15) !important;
}

/* Player settings popover — cool glass */
body.snr-dark .player-settings-popover,
body.snr-dark .player-settings-panel {
  background: rgba(11,8,22,0.96) !important;
  border: 1px solid rgba(168,85,247,0.24) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,0.9) !important;
  color: #f1ecff !important;
}
body.snr-dark .player-settings-label {
  color: rgba(216,205,255,0.72) !important;
}
body.snr-dark .player-settings-select {
  background: rgba(168,85,247,0.08) !important;
  border: 1px solid rgba(168,85,247,0.24) !important;
  color: #f1ecff !important;
}

/* ── S monogram logo glow — violet aura ──────────── */
body.snr-dark .logo-icon {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 6px 24px rgba(0,0,0,0.9),
    0 0 24px rgba(168,85,247,0.48),
    0 0 48px rgba(34,211,238,0.18),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.45) !important;
}

/* ── Queue panel — cool ─────────────────────────────────── */
body.snr-dark .queue-panel,
body.snr-dark .queue-panel.glass {
  background: linear-gradient(160deg, #130d24 0%, #090614 100%) !important;
  border: 1px solid rgba(168,85,247,0.24) !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.9) !important;
}
body.snr-dark .queue-panel-title {
  color: #a78bfa !important;
  letter-spacing: 0.18em !important;
}

/* ── Inputs / modals ───────────────────────────────────────── */
body.snr-dark input[type="text"],
body.snr-dark input[type="email"],
body.snr-dark input[type="password"],
body.snr-dark textarea,
body.snr-dark select {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #e0e0e0 !important;
}
body.snr-dark input::placeholder,
body.snr-dark textarea::placeholder { color: rgba(255,255,255,0.22) !important; }
body.snr-dark .modal {
  background: #141414 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 20px !important;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
body.snr-dark ::-webkit-scrollbar-track { background: #000 !important; }
body.snr-dark ::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.07) !important;
  border-radius: 99px !important;
}
body.snr-dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.14) !important;
}

/* ── Dark toggle button — fixed beside sidebar ─────────────── */
/* Uses fixed positioning — never touches sidebar layout */
#snrDarkToggle {
  position: fixed;
  top: 18px;
  left: 202px;
  z-index: 9999;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.3);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}
#snrDarkToggle:hover {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  transform: scale(1.15);
}
body.snr-dark #snrDarkToggle {
  background: rgba(147,51,234,0.22);
  border-color: rgba(147,51,234,0.5);
  color: #c084fc;
}
body.snr-dark #snrDarkToggle:hover {
  background: rgba(147,51,234,0.35);
}

/* ── Typography panel ──────────────────────────────────────── */
#snrTypoPanel {
  position: fixed;
  top: 50px;
  left: 235px;
  z-index: 9999;
  display: none;
  width: 230px;
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.9);
  font-family: 'DM Sans', 'Inter', sans-serif;
}
#snrTypoPanel.snr-panel-open { display: block; animation: snrPanelIn .18s ease; }
@keyframes snrPanelIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.snr-panel-head {
  font-size: 9px; font-weight: 800; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.3);
  margin: 0 0 12px;
}
.snr-panel-row {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 14px;
}
.snr-panel-label {
  font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 500;
}
/* Toggle switch */
.snr-switch {
  width: 38px; height: 21px; border-radius: 11px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer; position: relative; transition: all .2s; flex-shrink: 0;
}
.snr-switch.snr-on {
  background: rgba(147,51,234,0.55);
  border-color: rgba(147,51,234,0.8);
}
.snr-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; transition: .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.snr-switch.snr-on::after { left: 19px; }
.snr-panel-divider {
  height: 1px; background: rgba(255,255,255,0.06); margin: 10px 0 14px;
}
/* Font option buttons */
.snr-font-opt {
  width: 100%; padding: 9px 12px; border-radius: 9px;
  margin-bottom: 6px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  display: flex; align-items: center;
  justify-content: space-between; transition: all .15s;
}
.snr-font-opt:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
}
.snr-font-opt.snr-font-active {
  background: rgba(147,51,234,0.14);
  border-color: rgba(147,51,234,0.4);
}
.snr-font-name { font-size: 13px; color: #fff; font-weight: 600; }
.snr-font-tag  { font-size: 10px; color: rgba(255,255,255,0.3); }
/* Font previews */
.snr-font-opt[data-font="serif"] .snr-font-name { font-family: 'Playfair Display', serif; }
.snr-font-opt[data-font="space"] .snr-font-name { font-family: 'Space Grotesk', sans-serif; }
.snr-font-opt[data-font="dm"]    .snr-font-name { font-family: 'DM Sans', sans-serif; }

/* Tip button on track cards */
.btn-tip.track-card-tip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
  white-space: nowrap;
}
.btn-tip.track-card-tip:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(168,85,247,0.4);
  transform: translateY(-1px);
}
.btn-tip-icon { font-size: 0.9rem; line-height: 1; }

/* ═══ NOTIFICATIONS PANEL ═══ */
.snr-notif-wrap { position: relative; }
.snr-notif-badge { position:absolute;top:4px;right:4px;width:9px;height:9px;background:var(--purple,#a855f7);border:2px solid var(--bg,#0b0c12);border-radius:50%;pointer-events:none;z-index:2;animation:snrNotifPulse 2.4s ease-in-out infinite; }
.snr-notif-badge.hidden { display:none; }
@keyframes snrNotifPulse { 0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.25);opacity:0.8} }
.snr-notif-popover { position:absolute;top:calc(100% + 0.6rem);right:0;z-index:1200;width:340px;max-width:calc(100vw - 2rem);background:rgba(11,12,18,0.97);border:1px solid rgba(168,85,247,0.28);border-radius:18px;box-shadow:0 20px 48px rgba(0,0,0,0.7);backdrop-filter:blur(18px); }
.snr-notif-popover.hidden { display:none; }
.snr-notif-header { display:flex;align-items:center;justify-content:space-between;padding:0.85rem 1rem 0.6rem;border-bottom:1px solid rgba(255,255,255,0.06); }
.snr-notif-title { font-size:0.8rem;font-weight:700;text-transform:uppercase;letter-spacing:0.1em;color:rgba(255,255,255,0.55); }
.snr-notif-mark-all { font-size:0.72rem;font-weight:600;color:var(--purple,#a855f7);background:none;border:none;cursor:pointer;opacity:0.8;padding:0; }
.snr-notif-mark-all:hover { opacity:1; }
.snr-notif-list { max-height:380px;overflow-y:auto;scrollbar-width:thin; }
.snr-notif-empty { flex-direction:column;align-items:center;gap:0.35rem;padding:2rem 1rem;text-align:center;color:rgba(255,255,255,0.45);font-size:0.82rem; }
.snr-notif-item { display:flex;align-items:flex-start;gap:0.7rem;padding:0.75rem 1rem;cursor:pointer;transition:background 0.15s;border-bottom:1px solid rgba(255,255,255,0.04); }
.snr-notif-item:hover { background:rgba(255,255,255,0.04); }
.snr-notif-item.unread { background:rgba(168,85,247,0.05);border-left:3px solid var(--purple,#a855f7); }
.snr-notif-icon { width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1rem;flex-shrink:0; }
.snr-notif-icon-like { background:rgba(236,72,153,0.15); }
.snr-notif-icon-comment { background:rgba(99,102,241,0.15); }
.snr-notif-icon-follow { background:rgba(34,197,94,0.15); }
.snr-notif-icon-play { background:rgba(245,158,11,0.15); }
.snr-notif-body { flex:1;min-width:0; }
.snr-notif-msg { font-size:0.82rem;color:rgba(255,255,255,0.9);line-height:1.4;font-weight:500; }
.snr-notif-time { font-size:0.7rem;color:rgba(255,255,255,0.35);margin-top:0.2rem; }
.snr-notif-footer { padding:0.6rem 1rem;border-top:1px solid rgba(255,255,255,0.06);display:flex;justify-content:center; }
.snr-notif-clear-all { font-size:0.72rem;font-weight:600;color:rgba(255,255,255,0.3);background:none;border:none;cursor:pointer;padding:0;transition:color 0.15s; }
.snr-notif-clear-all:hover { color:rgba(255,100,100,0.7); }

/* ═══ FOOTER SUPPORT STRIP ═══ */
.snr-footer-support-strip { border-top:1px solid rgba(147,51,234,0.15);background:linear-gradient(135deg,rgba(147,51,234,0.06) 0%,rgba(6,182,212,0.04) 100%); }
.snr-footer-support-inner { max-width:1200px;margin:0 auto;padding:1.5rem 2rem;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap; }
.snr-footer-support-heading { display:flex;align-items:center;gap:0.55rem;font-size:0.92rem;font-weight:700;color:#fff;margin-bottom:0.3rem; }
.snr-footer-support-pulse { width:8px;height:8px;border-radius:50%;background:var(--purple,#a855f7);flex-shrink:0;animation:snrSupportPulse 2s ease-in-out infinite; }
@keyframes snrSupportPulse { 0%,100%{box-shadow:0 0 0 0 rgba(168,85,247,0.6)}50%{box-shadow:0 0 0 6px rgba(168,85,247,0)} }
.snr-footer-support-sub { font-size:0.78rem;color:rgba(255,255,255,0.42);margin:0;line-height:1.5;max-width:420px; }
.snr-footer-support-btns { display:flex;gap:0.7rem;align-items:center;flex-shrink:0; }
.snr-footer-tip-btn { display:inline-flex;align-items:center;gap:7px;padding:0.6rem 1.1rem;border-radius:10px;font-size:0.82rem;font-weight:700;text-decoration:none;transition:transform 0.15s,opacity 0.15s; }
.snr-footer-tip-btn:hover { transform:translateY(-1px);opacity:0.9; }
.snr-footer-tip-paypal { background:rgba(0,48,135,0.25);color:#60a5fa;border:1px solid rgba(96,165,250,0.3); }
.snr-footer-tip-coffee { background:rgba(255,221,0,0.12);color:#fcd34d;border:1px solid rgba(252,211,77,0.3); }
@media(max-width:640px) { .snr-footer-support-inner{flex-direction:column;align-items:flex-start} .snr-footer-tip-btn{flex:1;justify-content:center} }

/* ═══ CUSTOM SELECT DROPDOWNS (settings panel) ═══ */
.snr-select {
  position: relative;
  display: inline-block;
  min-width: 130px;
  max-width: 150px;
}
.snr-select-native {
  display: none !important;
}
.snr-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
  overflow: hidden;
}
.snr-select-trigger:hover {
  border-color: rgba(147,51,234,0.5);
  background: rgba(0,0,0,0.5);
}
.snr-select-trigger-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.snr-select-chevron {
  flex-shrink: 0;
  color: rgba(255,255,255,0.4);
  transition: transform 0.2s;
  display: flex;
  align-items: center;
}
.snr-select-open .snr-select-chevron {
  transform: rotate(180deg);
}
/* The dropdown list - absolutely positioned floating above/below */
.snr-select-list {
  position: fixed;
  z-index: 99999;
  min-width: 160px;
  max-width: 220px;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(14,10,30,0.98);
  border: 1px solid rgba(147,51,234,0.3);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7), 0 0 0 1px rgba(147,51,234,0.1);
  backdrop-filter: blur(20px);
  padding: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(147,51,234,0.3) transparent;
  display: none;
}
.snr-select-list[aria-hidden="false"] {
  display: block;
}
.snr-select-option {
  padding: 8px 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.snr-select-option:hover {
  background: rgba(147,51,234,0.2);
  color: #fff;
}
.snr-select-option-selected {
  background: rgba(147,51,234,0.15);
  color: #c084fc;
  font-weight: 600;
}

/* Extra theme presets (settings UI) */
[data-theme="water"] {
  --purple: #0ea5e9; --purple-light: #38bdf8; --blue: #0284c7;
  --purple-glow: rgba(14,165,233,0.35);
  --bg: #020f1a; --bg-card: rgba(2,15,26,0.85); --bg-dark: #011020;
  --bg-panel: rgba(2, 22, 36, 0.94);
}
[data-theme="water"] .bg-waves {
  background: radial-gradient(circle at 30% 30%, rgba(14,165,233,0.2), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(2,132,199,0.15), transparent 55%),
    linear-gradient(180deg, #020f1a 0%, #011020 100%);
}
[data-theme="dark"] {
  --purple: #7c3aed; --purple-light: #a78bfa; --blue: #4f46e5;
  --purple-glow: rgba(124,58,237,0.3);
  --bg: #000000; --bg-card: rgba(10,10,10,0.9); --bg-dark: #000;
  --bg-panel: rgba(12, 12, 12, 0.96);
}
[data-theme="dark"] .bg-waves { background: #000000; }

/* Dark theme preset only (not dark-mode toggle): avoid bright purple active nav */
[data-theme="dark"] .nav-item.active {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
[data-theme="dark"] .nav-item.active .futurist-icon-tile {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}
[data-theme="dark"] .nav-item.active .futurist-icon-tile svg {
  color: #e5e7eb !important;
  filter: none !important;
}
[data-theme="metallicGray"] {
  --purple: #94a3b8; --purple-light: #cbd5e1; --blue: #64748b;
  --purple-glow: rgba(148,163,184,0.25);
  --bg: #0f1117; --bg-card: rgba(15,17,23,0.9); --bg-dark: #090a0f;
  --bg-panel: rgba(17, 19, 26, 0.94);
}
[data-theme="metallicGray"] .bg-waves {
  background: radial-gradient(circle at 50% 30%, rgba(100,116,139,0.15), transparent 60%),
    linear-gradient(180deg, #0f1117 0%, #090a0f 100%);
}

/* ═══ TYPOGRAPHY — font classes apply to whole site (light + dark) ═══ */
/* DM Sans — Modern (default) */
body.snr-font-dm, body.snr-font-dm * { font-family: 'DM Sans', sans-serif !important; }
body.snr-font-dm .logo-text { font-family: 'DM Sans', sans-serif !important; }

/* Playfair Display — Editorial */
body.snr-font-serif, body.snr-font-serif * { font-family: 'Playfair Display', serif !important; }
body.snr-font-serif .nav-item span, body.snr-font-serif .section-title,
body.snr-font-serif h1, body.snr-font-serif h2, body.snr-font-serif h3,
body.snr-font-serif .logo-text, body.snr-font-serif .track-title,
body.snr-font-serif .snr-section-title, body.snr-font-serif .hero-title,
body.snr-font-serif button, body.snr-font-serif .btn-primary,
body.snr-font-serif .player-title { font-family: 'Playfair Display', serif !important; }

/* Space Grotesk — Technical */
body.snr-font-space, body.snr-font-space * { font-family: 'Space Grotesk', sans-serif !important; }
body.snr-font-space .nav-item span, body.snr-font-space .section-title,
body.snr-font-space h1, body.snr-font-space h2, body.snr-font-space h3,
body.snr-font-space .logo-text, body.snr-font-space .track-title,
body.snr-font-space button, body.snr-font-space .btn-primary,
body.snr-font-space .player-title { font-family: 'Space Grotesk', sans-serif !important; }

/* Cinzel — Medieval */
body.snr-font-medieval, body.snr-font-medieval * { font-family: 'Cinzel', serif !important; }
body.snr-font-medieval .nav-item span, body.snr-font-medieval .section-title,
body.snr-font-medieval h1, body.snr-font-medieval h2, body.snr-font-medieval h3,
body.snr-font-medieval .logo-text, body.snr-font-medieval .track-title,
body.snr-font-medieval button, body.snr-font-medieval .btn-primary,
body.snr-font-medieval .player-title { font-family: 'Cinzel', serif !important; }

/* Orbitron — Futuristic */
body.snr-font-futuristic, body.snr-font-futuristic * { font-family: 'Orbitron', sans-serif !important; }
body.snr-font-futuristic .nav-item span, body.snr-font-futuristic .section-title,
body.snr-font-futuristic h1, body.snr-font-futuristic h2, body.snr-font-futuristic h3,
body.snr-font-futuristic .logo-text, body.snr-font-futuristic .track-title,
body.snr-font-futuristic button, body.snr-font-futuristic .btn-primary,
body.snr-font-futuristic .player-title { font-family: 'Orbitron', sans-serif !important; }

/* Syne Mono — Alien */
body.snr-font-alien, body.snr-font-alien * { font-family: 'Syne Mono', monospace !important; }
body.snr-font-alien .nav-item span, body.snr-font-alien .section-title,
body.snr-font-alien h1, body.snr-font-alien h2, body.snr-font-alien h3,
body.snr-font-alien .logo-text, body.snr-font-alien .track-title,
body.snr-font-alien button, body.snr-font-alien .btn-primary,
body.snr-font-alien .player-title { font-family: 'Syne Mono', monospace !important; }
