/* ==========================================================================
   ÉLIA STUDIO V4 — LUXURY LIQUID GLASS DESIGN SYSTEM
   Aesthetic: Obsidian Void (#050609) + Precision Liquid Glass + Neon Auroras
   Typography: Outfit (Display/Headings) + Inter (Body/UI) + JetBrains Mono (Stats)
   Caliber: Apple Music Studio / Spotify Web Pro / Linear / Tidal Hi-Fi
   Fully Responsive: Mobile (<768px), Tablet (768-1024px), Desktop (>1024px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & SYSTEM VARIABLES
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark !important;

  /* Surfaces & Canvas */
  --bg-canvas: #07070b;
  --bg-core: #080a10;
  --bg-subtle: #0d1018;
  --bg-surface: rgba(14, 18, 28, 0.72);
  --bg-surface-elevated: rgba(20, 26, 42, 0.88);
  --bg-glass-card: rgba(255, 255, 255, 0.035);
  --bg-glass-card-hover: rgba(255, 255, 255, 0.075);
  --bg-glass-card-active: rgba(255, 255, 255, 0.11);

  /* Specular Glass Elevations */
  --elevation-1: rgba(12, 15, 24, 0.75);
  --elevation-2: rgba(18, 23, 36, 0.84);
  --elevation-3: rgba(25, 32, 50, 0.94);

  /* Specular Borders */
  --border-glass: rgba(255, 255, 255, 0.09);
  --border-glass-hover: rgba(255, 255, 255, 0.18);
  --border-glass-active: rgba(255, 255, 255, 0.28);
  --border-specular: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  --border-specular-soft: inset 0 1px 1px rgba(255, 255, 255, 0.08);

  /* Accents & Gradients (Spotify Pro Design System) */
  --accent-primary: #1ed760;
  --accent-primary-hover: #1fdf64;
  --accent-green: #1ed760;
  --accent-green-glow: rgba(30, 215, 96, 0.4);
  --accent-violet: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  --accent-primary-gradient: linear-gradient(135deg, #1ed760 0%, #1db954 50%, #10b981 100%);
  --accent-secondary-gradient: linear-gradient(135deg, #1ed760 0%, #06b6d4 100%);
  --accent-glass-gradient: linear-gradient(135deg, rgba(30, 215, 96, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);

  /* Dynamic Track Accent (interpolated from album art) */
  --dynamic-accent: #1ed760;
  --dynamic-glow: rgba(30, 215, 96, 0.32);
  --dynamic-accent-rgb: 30, 215, 96;

  /* Semantic Status */
  --color-success: #10b981;
  --color-success-glow: rgba(16, 185, 129, 0.35);
  --color-warning: #f59e0b;
  --color-warning-glow: rgba(245, 158, 11, 0.35);
  --color-danger: #ef4444;
  --color-danger-glow: rgba(239, 68, 68, 0.35);
  --color-info: #3b82f6;

  /* Typography */
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, monospace;

  /* Text Scale */
  --text-display: 2.75rem;   /* 44px */
  --text-h1: 1.85rem;        /* 29.6px */
  --text-h2: 1.35rem;        /* 21.6px */
  --text-h3: 1.1rem;         /* 17.6px */
  --text-body: 0.95rem;      /* 15.2px */
  --text-caption: 0.85rem;   /* 13.6px */
  --text-micro: 0.72rem;     /* 11.5px */

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-tertiary: #475569;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 30px;
  --radius-pill: 9999px;

  /* 8px Spacing Grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.65);
  --shadow-xl: 0 24px 72px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 40px var(--dynamic-glow);
  --shadow-dock: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(99, 102, 241, 0.2);

  /* Transitions & Springs */
  --transition-fast: 140ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 280ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 380ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Backward Compatibility Aliases */
  --text-main: var(--text-primary);
  --text-dim: var(--text-muted);
  --border-glass-card: var(--border-glass);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE ELEMENTS
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  background-color: var(--bg-canvas) !important;
  color-scheme: dark !important;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  scrollbar-color: rgba(255, 255, 255, 0.2) var(--bg-canvas);
  scrollbar-width: thin;
}

body, body.dark-theme {
  background-color: var(--bg-canvas) !important;
  color: var(--text-primary);
  font-family: var(--font-body);
  color-scheme: dark !important;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body.auth-pending,
body.auth-required {
  background: #07070b !important;
  color-scheme: dark !important;
}

body.auth-pending > :not(#loginModal):not(.dynamic-art-halo):not(.ambient-mesh-3d):not(.ambient-glow),
body.auth-required > :not(#loginModal):not(.dynamic-art-halo):not(.ambient-mesh-3d):not(.ambient-glow) {
  display: none !important;
}

body.auth-pending #loginModal,
body.auth-required #loginModal {
  display: flex !important;
  position: fixed;
  inset: 0;
  z-index: 99999;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  background: rgba(7, 7, 11, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

body.auth-pending #loginModal .glass-modal-card,
body.auth-required #loginModal .glass-modal-card {
  transform: none;
}

::selection {
  background: rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  transition: background var(--transition-fast);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  outline: none;
}

input, select, textarea {
  font-family: inherit;
  color-scheme: dark;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Lucide SVG Icon Atoms */
.lucide-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.lucide-icon-sm {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   3. AMBIENT AURAS, 3D MESH & GRAIN TEXTURE
   -------------------------------------------------------------------------- */
.dynamic-art-halo {
  position: fixed;
  inset: -120px;
  background: radial-gradient(circle at 50% 25%, var(--dynamic-glow) 0%, rgba(139, 92, 246, 0.14) 40%, transparent 72%);
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  transition: background 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
  animation: haloPulse 14s infinite alternate ease-in-out;
}

@keyframes haloPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.55; }
  50% { transform: scale(1.06) translate(15px, -10px); opacity: 0.72; }
  100% { transform: scale(0.96) translate(-15px, 10px); opacity: 0.58; }
}

.ambient-mesh-3d {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.15), transparent),
    radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.1), transparent),
    linear-gradient(to right, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 80px 80px, 120px 120px, 48px 48px, 48px 48px;
  mask-image: radial-gradient(circle at 50% 35%, rgba(0, 0, 0, 0.95) 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, rgba(0, 0, 0, 0.95) 0%, transparent 80%);
  perspective: 1000px;
  transform: perspective(600px) rotateX(15deg);
  transform-origin: top center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  animation: floatOrbs 24s infinite alternate ease-in-out;
}
.glow-1 {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0) 70%);
  top: -120px;
  left: 10%;
}
.glow-2 {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0) 70%);
  bottom: 40px;
  right: 5%;
  animation-delay: -8s;
}
.glow-3 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, transparent 70%);
  top: 38%;
  left: 55%;
  animation-delay: -14s;
}

@keyframes floatOrbs {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(45px, -35px) scale(1.07); }
  100% { transform: translate(-35px, 45px) scale(0.95); }
}

/* --------------------------------------------------------------------------
   4. APPLICATION SHELL LAYOUT
   -------------------------------------------------------------------------- */
.shell-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 10;
  background: transparent;
}

/* --------------------------------------------------------------------------
   5. COLLAPSIBLE LEFT SIDEBAR
   -------------------------------------------------------------------------- */
.shell-sidebar {
  width: 260px;
  flex-shrink: 0;
  height: 100vh;
  height: 100dvh;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  background: var(--elevation-1);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border-right: 1px solid var(--border-glass);
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.45);
  z-index: 50;
  transition: width var(--transition-smooth), transform var(--transition-smooth);
}

.shell-sidebar.collapsed {
  width: 76px;
}

/* Sidebar Brand Header */
.sidebar-header {
  height: 68px;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-primary);
  overflow: hidden;
  transition: opacity var(--transition-fast);
}

.sidebar-brand:hover .sidebar-brand-mark {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
}

.sidebar-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--accent-primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}
.sidebar-brand-mark svg {
  color: #ffffff;
  width: 20px;
  height: 20px;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}

.shell-sidebar.collapsed .sidebar-header {
  padding: 0;
  justify-content: center;
}
.shell-sidebar.collapsed .sidebar-brand {
  display: none;
}
.shell-sidebar.collapsed .sidebar-brand-text {
  display: none;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-edition {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  font-weight: 700;
}

.sidebar-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--border-glass-hover);
  transform: scale(1.05);
}

/* Server Switcher on Sidebar */
.sidebar-server-section {
  padding: var(--space-3);
  border-bottom: 1px solid var(--border-glass);
  position: relative;
  flex-shrink: 0;
}

.server-switcher-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-primary);
  text-align: left;
}
.server-switcher-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-glass-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.server-card-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.server-card-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.shell-sidebar.collapsed .server-card-meta,
.shell-sidebar.collapsed .server-chevron {
  display: none;
}

.server-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.server-card-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-chevron {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}
.server-switcher-card:hover .server-chevron {
  color: var(--text-primary);
  transform: translateY(1px);
}

/* Mutual Servers Dropdown Popover */
.server-menu-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: var(--space-3);
  right: var(--space-3);
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2);
  z-index: 100;
  animation: fadeInDown 180ms ease forwards;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.server-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 4px;
}

.refresh-servers-btn {
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
}
.refresh-servers-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.server-list {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.server-list .server-switcher-card {
  padding: 6px 8px;
  border: none;
  background: transparent;
}
.server-list .server-switcher-card:hover {
  background: rgba(255, 255, 255, 0.06);
}
.server-list .server-switcher-card.active {
  background: rgba(99, 102, 241, 0.15);
  border-left: 2px solid var(--accent-primary);
}

/* Sidebar Navigation Items */
.sidebar-nav-container {
  flex: 1;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.nav-section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  padding: 8px 12px 4px;
}

.shell-sidebar.collapsed .nav-section-label {
  display: none;
}

.nav-item-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  position: relative;
  text-align: left;
  user-select: none;
}

.nav-item-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

.nav-item-link.active {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.18);
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.22);
}

.nav-item-link.active .nav-item-icon {
  color: var(--accent-primary);
  transform: scale(1.08);
}

.nav-item-icon {
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.shell-sidebar.collapsed .nav-item-text,
.shell-sidebar.collapsed .nav-item-badge {
  display: none;
}

.nav-item-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.nav-item-link.active .nav-item-badge {
  background: var(--accent-primary);
  color: #ffffff;
}

/* Pinned User Footer */
.sidebar-user-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-glass);
  flex-shrink: 0;
  margin-top: auto;
  background: var(--elevation-1);
}

.user-card-pill {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-primary);
  text-align: left;
}
.user-card-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glass-hover);
}

.user-card-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-card-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.shell-sidebar.collapsed .user-card-meta,
.shell-sidebar.collapsed .user-card-pill > svg {
  display: none;
}

.user-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.user-card-role {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. MAIN WRAPPER & TOPBAR
   -------------------------------------------------------------------------- */
.shell-main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  min-height: 100vh;
  margin-left: 260px;
  padding-bottom: 130px; /* Ample space for bottom player dock */
  transition: margin-left var(--transition-smooth);
}

.shell-sidebar.collapsed ~ .shell-main-wrapper {
  margin-left: 76px;
}

.shell-topbar {
  height: 68px;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 11, 17, 0.75);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex: 1;
  max-width: 520px;
}

.mobile-menu-trigger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
}

/* ⌘K Command Palette Trigger Pill & Topbar Search */
.topbar-command-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.topbar-command-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--text-primary);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.15);
}

.topbar-search-box {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}
.topbar-search-box:focus-within {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(30, 215, 96, 0.6);
  box-shadow: 0 0 20px rgba(30, 215, 96, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.search-box-icon {
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--transition-fast);
}
.topbar-search-box:focus-within .search-box-icon {
  color: #1ed760;
}
.topbar-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.88rem;
  font-family: inherit;
  min-width: 0;
}
.topbar-search-input::placeholder {
  color: var(--text-muted);
}
.topbar-search-clear-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  flex-shrink: 0;
}
.topbar-search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.topbar-search-badge {
  flex-shrink: 0;
}
.topbar-search-badge kbd {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

.topbar-command-trigger-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.topbar-command-trigger-btn:hover .command-kbd {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.command-placeholder {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.command-kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Status Pill */
.topbar-bot-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-success);
}

.topbar-bot-pill[data-status="offline"] {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: var(--color-danger);
}

.topbar-bot-pill[data-status="reconnecting"] {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--color-warning);
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
  position: relative;
}
.pulsing-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--color-success);
  animation: pulseDot 2s infinite ease-out;
}

.topbar-bot-pill[data-status="offline"] .pulsing-dot {
  background: var(--color-danger);
  box-shadow: none;
}

.topbar-bot-pill[data-status="offline"] .pulsing-dot::after {
  display: none;
}

.topbar-bot-pill[data-status="reconnecting"] .pulsing-dot {
  background: var(--color-warning);
  box-shadow: 0 0 10px var(--color-warning);
}

.topbar-bot-pill[data-status="reconnecting"] .pulsing-dot::after {
  border-color: var(--color-warning);
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Live Telemetry Ping Widget & Sparkline */
.telemetry-ping-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}
.telemetry-ping-widget:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glass-hover);
}

.sparkline-svg {
  width: 48px;
  height: 18px;
  overflow: visible;
}
.sparkline-svg polyline {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px var(--accent-cyan-glow));
}

.ping-latency-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Telemetry Popover */
.telemetry-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: var(--space-3);
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
  animation: fadeInDown 180ms ease forwards;
}

.telemetry-ping-widget:hover .telemetry-popover {
  display: flex;
}

.popover-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 6px;
}

.popover-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.popover-stat-label {
  color: var(--text-muted);
}
.popover-stat-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

/* Topbar Action Buttons */
.topbar-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}
.topbar-action-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  border-color: var(--border-glass-hover);
  transform: scale(1.05);
}

.badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

/* --------------------------------------------------------------------------
   7. MAIN SCROLLABLE VIEWS CONTENT
   -------------------------------------------------------------------------- */
.shell-content {
  flex: 1;
  padding: var(--space-6) var(--space-8);
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.view-container {
  display: none;
  animation: viewFadeSlide 240ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view-container.active {
  display: block;
}

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

/* --------------------------------------------------------------------------
   8. BUTTONS & UI ATOMS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--accent-primary-gradient);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
}
.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.65);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
}

.badge-accent {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}

.badge-filter {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.35);
  color: #67e8f9;
}

/* Glass Panel Component */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: var(--space-4);
}

.panel-title {
  font-size: 1.45rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.panel-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   9. DISCOVER VIEW & FEATURED HITS ROW
   -------------------------------------------------------------------------- */
.hero-player-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-8);
}

.hero-info-card {
  background: var(--bg-surface);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary-gradient);
}

.track-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.track-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--space-4);
}

.hero-track-title {
  font-size: var(--text-h1);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.hero-title-lg {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 60%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-track-artist {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.text-sec-p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 640px;
}

/* Featured Collections Row */
.featured-section {
  margin-bottom: var(--space-8);
}

.featured-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.featured-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
}

.featured-charts-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: 8px;
}

.chart-card {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.chart-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(99, 102, 241, 0.2);
}

.chart-cover-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-3);
  background: #090b12;
}

.chart-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.chart-card:hover .chart-cover-img {
  transform: scale(1.06);
}

.chart-play-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: all var(--transition-base);
}

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

.chart-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chart-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.chart-artist {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.chart-genre-chip {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(99, 102, 241, 0.14);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

/* Language & Region Filter Pills */
.trending-lang-pills {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding: 6px 0 var(--space-3);
  scrollbar-width: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: var(--space-2);
}
.trending-lang-pills::-webkit-scrollbar {
  display: none;
}
.lang-chip {
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.lang-chip .chip-flag {
  font-size: 1.05rem;
  line-height: 1;
}
.lang-chip.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.25));
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.4);
  color: #fff;
}

/* Genre Filter Chips */
.trending-genre-pills {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding: 4px 0 var(--space-4);
  scrollbar-width: none;
}
.trending-genre-pills::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.chip:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  border-color: var(--border-glass-hover);
}

.chip.active {
  background: rgba(99, 102, 241, 0.2);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
  font-weight: 600;
}

/* Trending Songs List */
.trending-songs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trend-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 10px 16px;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.trend-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateX(4px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.trend-rank {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-muted);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.trend-card:nth-child(1) .trend-rank { color: #fbbf24; }
.trend-card:nth-child(2) .trend-rank { color: #e2e8f0; }
.trend-card:nth-child(3) .trend-rank { color: #d97706; }

.trend-thumb-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #090b12;
}

.trend-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trend-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.trend-play-overlay svg {
  width: 20px;
  height: 20px;
}
.trend-card:hover .trend-play-overlay {
  opacity: 1;
}

.trend-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.trend-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.trend-duration {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Shimmer Skeletons */
.skeleton-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite ease-in-out;
  border-radius: var(--radius-xs);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.skeleton-title {
  height: 16px;
  width: 60%;
  margin-bottom: 6px;
}
.skeleton-text {
  height: 12px;
  width: 40%;
}

/* --------------------------------------------------------------------------
   10. VIEW 2: NOW PLAYING VIEW (HERO 2-COLUMN)
   -------------------------------------------------------------------------- */
.hero-art-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.art-wrapper {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px var(--dynamic-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform var(--transition-smooth);
}

.art-wrapper:hover {
  transform: scale(1.02);
}

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

.art-ambient-reflection {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}

/* Live Equalizer Visualizer Badge */
.art-equalizer-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bar {
  width: 3px;
  background: var(--accent-primary);
  border-radius: 2px;
  animation: eqBounce 1.2s infinite ease-in-out;
}
.bar-1 { height: 60%; animation-delay: 0.1s; }
.bar-2 { height: 95%; animation-delay: 0.3s; }
.bar-3 { height: 45%; animation-delay: 0.5s; }
.bar-4 { height: 75%; animation-delay: 0.2s; }

@keyframes eqBounce {
  0%, 100% { height: 25%; }
  50% { height: 100%; }
}

.art-heart-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.art-heart-btn:hover {
  transform: scale(1.15);
  background: rgba(0, 0, 0, 0.85);
}
.art-heart-btn.liked {
  color: var(--color-danger);
  border-color: rgba(239, 68, 68, 0.4);
}
.art-heart-btn.liked svg {
  fill: var(--color-danger);
}

.requester-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  margin-bottom: var(--space-4);
}
.req-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.req-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.req-text strong {
  color: var(--text-primary);
}

.audio-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.hero-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* --------------------------------------------------------------------------
   11. VIEW 3: QUEUE VIEW & LIKED LIST
   -------------------------------------------------------------------------- */
.queue-list-container,
.liked-list-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 640px;
  overflow-y: auto;
  padding-right: 4px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.queue-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glass-hover);
  transform: translateX(2px);
}

.queue-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.queue-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: #090b12;
}

.queue-track-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.queue-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.queue-duration {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.queue-requester {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.queue-remove-btn {
  color: var(--text-muted);
  padding: 6px;
  border-radius: var(--radius-xs);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.queue-remove-btn:hover {
  color: var(--color-danger);
  background: rgba(239, 68, 68, 0.15);
}

/* Empty State Illustration */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px var(--space-4);
  text-align: center;
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: var(--space-4);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.2);
}
.empty-state-icon svg {
  width: 32px;
  height: 32px;
}

.empty-state-title {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-state-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   12. VIEW 4: AUDIO FX & 10-BAND STUDIO EQUALIZER
   -------------------------------------------------------------------------- */
.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}

.filter-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}

.filter-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.filter-card.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-primary);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.35);
}

.filter-card.active::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.filter-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: var(--space-3);
  transition: transform var(--transition-fast);
}
.filter-card:hover .filter-icon {
  transform: scale(1.1);
}

.filter-name {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.filter-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 10-Band Equalizer Studio Grid */
.eq-studio-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 220px;
  padding: var(--space-4) var(--space-2);
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
}

.eq-band-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  height: 100%;
}

.eq-db-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.eq-slider-vertical {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  transform: rotate(-90deg);
  margin: auto 0;
  cursor: pointer;
  outline: none;
}
.eq-slider-vertical::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.eq-slider-vertical::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.eq-freq-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   13. VIEW 5 & 6: SESSIONS & ACTIVITY VIEWS
   -------------------------------------------------------------------------- */
.private-session-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-6);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.session-card-glow {
  position: absolute;
  inset: -50px;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15), transparent 70%);
  pointer-events: none;
}

.session-card-body {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
}

.session-icon-orbit {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin: 0 auto var(--space-4);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}
.session-icon-orbit svg {
  width: 30px;
  height: 30px;
}

.session-card-title {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.session-card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.session-features {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.s-feature-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

/* Activity Audit Table */
#activityTable th,
#activityTable td {
  border-bottom: 1px solid var(--border-glass);
}
#activityTable tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* --------------------------------------------------------------------------
   14. SLIDE-OUT RIGHT DRAWER (QUEUE & SYNCED LYRICS)
   -------------------------------------------------------------------------- */
.shell-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  background: var(--elevation-2);
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  border-left: 1px solid var(--border-glass);
  box-shadow: -8px 0 36px rgba(0, 0, 0, 0.6);
  z-index: 60;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--transition-smooth);
}

.shell-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-header {
  height: 68px;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.drawer-tab-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-glass);
}

.drawer-tab-btn {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.drawer-tab-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.drawer-body {
  flex: 1;
  padding: var(--space-4);
  overflow-y: auto;
}

/* Synced Lyrics Body */
.lyrics-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--space-6) 0;
}

.lyrics-loading-skeleton {
  display: grid;
  gap: 16px;
  padding: 24px 12px;
}

.lyrics-loading-skeleton span {
  display: block;
  width: min(88%, 420px);
  height: 20px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,.045), rgba(255,255,255,.1), rgba(255,255,255,.045));
  background-size: 220% 100%;
  animation: lyrics-shimmer 1.4s ease-in-out infinite;
}

.lyrics-loading-skeleton span:nth-child(2) {
  width: min(70%, 340px);
}

.lyrics-loading-skeleton span:nth-child(3) {
  width: min(80%, 390px);
}

@keyframes lyrics-shimmer {
  to { background-position: -220% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lyrics-loading-skeleton span {
    animation: none;
  }
}

.lyrics-body div[id^="lyric-line-"] {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.38);
  transition: all var(--transition-base);
  cursor: pointer;
}

.lyrics-body div[id^="lyric-line-"]:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

/* --------------------------------------------------------------------------
   15. PERSISTENT FLOATING BOTTOM PLAYER DOCK
   -------------------------------------------------------------------------- */
.shell-player-dock {
  position: fixed;
  bottom: 16px;
  left: calc(260px + 20px);
  right: 20px;
  max-width: 1200px;
  margin: 0 auto;
  height: 84px;
  background: rgba(12, 16, 26, 0.88);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-dock);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5);
  z-index: 55;
  transition: all var(--transition-smooth);
}

.shell-sidebar.collapsed ~ .shell-player-dock,
.shell-sidebar.collapsed ~ * .shell-player-dock {
  left: calc(76px + 20px);
}

@media (max-width: 1024px) {
  .shell-player-dock {
    left: calc(76px + 16px);
    right: 16px;
  }
}

.shell-player-dock::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

/* Dock Left: Track Info */
.dock-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 280px;
  min-width: 0;
}

.dock-thumb-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  background: #090b12;
}

.dock-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}
.dock-thumb-wrap:hover .dock-thumb-img {
  transform: scale(1.08);
}

.dock-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.dock-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

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

.dock-voice-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.dock-voice-pill.idle {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border-color: var(--border-glass);
}

.dock-like-btn {
  color: var(--text-muted);
  padding: 6px;
  border-radius: 50%;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.dock-like-btn:hover {
  color: var(--color-danger);
  transform: scale(1.15);
}
.dock-like-btn.liked {
  color: var(--color-danger);
}

/* Dock Center: Controls & Scrubber */
.dock-center {
  flex: 1;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dock-controls-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.dock-btn {
  color: var(--text-secondary);
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.dock-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}
.dock-btn.active {
  color: var(--accent-primary);
  filter: drop-shadow(0 0 6px var(--accent-primary));
}

/* Tactile Play Button */
.dock-play-tactile {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.55);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.dock-play-tactile:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.75);
}
.dock-play-tactile:active {
  transform: scale(0.92);
}

/* Scrubber Row */
.dock-scrubber-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.dock-time-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  width: 36px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.dock-progress-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  position: relative;
  cursor: pointer;
  transition: height var(--transition-fast);
}
.dock-progress-track:hover {
  height: 8px;
}

.dock-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-primary-gradient);
  border-radius: var(--radius-pill);
  position: relative;
}

.dock-progress-scrubber {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-fast);
}
.dock-progress-track:hover .dock-progress-scrubber {
  transform: translateY(-50%) scale(1);
}

.progress-hover-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass-hover);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-primary);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.dock-progress-track:hover .progress-hover-tooltip {
  opacity: 1;
}

/* Dock Right: Volume & Tools */
.dock-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 280px;
  justify-content: flex-end;
}

.dock-filter-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
}

.dock-volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 120px;
}

.dock-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  cursor: pointer;
  outline: none;
}
.dock-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform var(--transition-fast);
}
.dock-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* --------------------------------------------------------------------------
   16. MOBILE MINI-PLAYER, BOTTOM NAV & PLAYER SHEET
   -------------------------------------------------------------------------- */
.mobile-mini-player {
  display: none;
  position: fixed;
  bottom: 64px;
  left: 8px;
  right: 8px;
  height: 56px;
  background: rgba(14, 18, 28, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-lg);
  padding: 0 12px;
  align-items: center;
  justify-content: space-between;
  z-index: 52;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.mobile-nav-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(10, 12, 18, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid var(--border-glass);
  align-items: center;
  justify-content: space-around;
  z-index: 54;
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 12px;
  transition: color var(--transition-fast);
}
.mobile-nav-btn.active {
  color: var(--accent-primary);
}
.mobile-nav-btn svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   16. MOBILE FULLSCREEN PLAYER SHEET (ULTRA-LUXURY GLASSMORPHIC TURNTABLE)
   ========================================================================== */
.mobile-player-sheet {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 17, 27, 0.95) 0%, rgba(8, 10, 18, 0.98) 100%);
  backdrop-filter: blur(48px) saturate(210%);
  -webkit-backdrop-filter: blur(48px) saturate(210%);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 -20px 80px rgba(0, 0, 0, 0.9);
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overflow-x: hidden;
}

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

.sheet-ambient-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 25%, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.15) 40%, transparent 75%),
    radial-gradient(circle at 80% 65%, rgba(56, 189, 248, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 20% 75%, rgba(236, 72, 153, 0.12) 0%, transparent 50%);
  filter: blur(60px);
  z-index: 0;
  animation: meshBreath 8s ease-in-out infinite alternate;
}

.sheet-drag-handle {
  width: 44px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto 10px;
  cursor: grab;
  position: relative;
  z-index: 2;
  transition: background 0.2s ease;
}

.sheet-drag-handle:active {
  cursor: grabbing;
  background: rgba(255, 255, 255, 0.5);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 2;
}

.sheet-header-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sheet-header-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.sheet-top-pill-rack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.sheet-dest-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f1f5f9;
  text-transform: uppercase;
}

.sheet-dest-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.sheet-dest-dot.playing {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: dotPulse 2s infinite ease-in-out;
}

.sheet-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sheet-quality-badge,
.sheet-filter-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sheet-quality-badge {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.sheet-filter-badge {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Center Turntable & Sleeve Assembly */
.sheet-turntable-container {
  position: relative;
  width: 100%;
  max-width: 330px;
  margin: 10px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.sheet-turntable-assembly {
  position: relative;
  width: 270px;
  height: 270px;
}

.sheet-vinyl-disc {
  position: absolute;
  top: 10px;
  left: 45px;
  width: 235px;
  height: 235px;
  border-radius: 50%;
  background: radial-gradient(circle, #080808 0%, #151515 40%, #0d0d0d 70%, #1a1a1a 100%);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.85),
    inset 0 0 0 2px rgba(255, 255, 255, 0.05),
    0 0 0 1px #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet-vinyl-grooves {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
}

.sheet-vinyl-disc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 65%,
    rgba(255, 255, 255, 0.12) 100%
  );
  pointer-events: none;
}

.sheet-vinyl-disc.spinning {
  animation: spinVinyl 6s linear infinite;
  animation-play-state: running;
}

.sheet-vinyl-disc.spinning.is-paused {
  animation-play-state: paused !important;
}

.sheet-vinyl-disc.spinning.is-paused .sheet-vinyl-center-label::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  pointer-events: none;
}

.sheet-vinyl-center-label {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px #121212, 0 0 10px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.sheet-vinyl-center-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-vinyl-center-spindle {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #09090b;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.9);
}

.sheet-album-sleeve {
  position: relative;
  width: 215px;
  height: 215px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 20px 45px -8px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.15);
  z-index: 2;
  background: #111420;
}

.sheet-album-sleeve .sheet-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sheet-album-sleeve-gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, transparent 45%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.sheet-art-equalizer {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
}

.sheet-browser-mode {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 2;
}

.sheet-track-info-wrap {
  text-align: center;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 2;
  padding: 0 var(--space-4);
}

.sheet-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.sheet-artist {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-requester-row {
  display: flex;
  justify-content: center;
}

.sheet-req-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Liquid Interactive Scrubber */
.sheet-scrubber-wrap {
  width: 100%;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 2;
}

.sheet-scrubber-track {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  position: relative;
  cursor: pointer;
  margin-bottom: 8px;
  transition: height 0.15s ease;
}

.sheet-scrubber-track:hover {
  height: 10px;
}

.sheet-scrubber-buffered {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
}

.sheet-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #38bdf8 100%);
  border-radius: var(--radius-pill);
  width: 0%;
}

.sheet-scrubber-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.85), 0 2px 6px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease;
  pointer-events: none;
}

.sheet-scrubber-track:hover .sheet-scrubber-thumb,
.sheet-scrubber-track:active .sheet-scrubber-thumb {
  transform: translate(-50%, -50%) scale(1);
}

.sheet-scrubber-tooltip {
  position: absolute;
  top: -28px;
  left: 0%;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.sheet-scrubber-track:hover .sheet-scrubber-tooltip {
  opacity: 1;
}

.sheet-time-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Master Playback Controls Suite */
.sheet-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 2;
}

.sheet-ctrl-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.sheet-ctrl-btn:active {
  transform: scale(0.94);
}

.sheet-play-master-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  position: relative;
}

.sheet-play-master-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.65);
}

.sheet-play-master-btn:active {
  transform: scale(0.94);
}

.sheet-play-master-btn.is-playing,
.studio-play-master-btn.is-playing {
  animation: playPulseGlow 2.5s infinite;
}

@keyframes playPulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6), 0 8px 24px rgba(99, 102, 241, 0.45);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(99, 102, 241, 0), 0 8px 24px rgba(99, 102, 241, 0.45);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0), 0 8px 24px rgba(99, 102, 241, 0.45);
  }
}

.sheet-play-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

/* Volume Row Suite in Sheet */
.sheet-volume-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding: 0 var(--space-4);
  position: relative;
  z-index: 2;
}

.sheet-vol-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sheet-volume-slider {
  flex: 1;
}

.sheet-vol-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 34px;
}

/* Quick Actions in Sheet */
.sheet-quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  position: relative;
  z-index: 2;
}

.sheet-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sheet-chip-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.sheet-chip-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.45);
  color: #a5b4fc;
}

/* 2026 Tamil Music Hub Styles */
.tamil-mood-hub {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.tamil-hub-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tamil-hub-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.tamil-hub-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tamil-mood-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.tamil-mood-pills::-webkit-scrollbar {
  display: none;
}

.tamil-mood-pill {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tamil-mood-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.tamil-mood-pill.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(239, 68, 68, 0.25) 100%);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fbbf24;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}

/* --------------------------------------------------------------------------
   17. MODALS, SPOTLIGHT PALETTE & SONG POPUP
   -------------------------------------------------------------------------- */
.glass-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.glass-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.glass-modal-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-8);
  position: relative;
  text-align: center;
  transform: scale(0.95);
  transition: transform var(--transition-spring);
}

.glass-modal-overlay.open .glass-modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.modal-security-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Command Palette Card (⌘K) */
.command-palette-card {
  max-width: 620px;
  padding: 0;
  text-align: left;
  overflow: hidden;
}

.palette-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-glass);
}

.palette-search-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.palette-results-list {
  max-height: 360px;
  overflow-y: auto;
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.palette-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  cursor: pointer;
}
.palette-result-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Song Popup Modal (Step B 2-Column) */
.song-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.song-popup-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.song-popup-tint {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 30%, var(--popup-tint, rgba(99, 102, 241, 0.22)), transparent 70%);
  pointer-events: none;
  border-radius: inherit;
}

.song-popup-card {
  width: 100%;
  max-width: 780px;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-8);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-spring);
}

.song-popup-overlay.open .song-popup-card {
  transform: scale(1);
}

.song-popup-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.song-popup-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.song-popup-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-8);
  align-items: start;
}

.popup-cover-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.popup-details-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.popup-cover-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #090b12;
}

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

.popup-cover-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
}

.popup-cover-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity var(--transition-fast);
  cursor: pointer;
}
.popup-cover-play-overlay svg {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
}
.popup-cover-wrap:hover .popup-cover-play-overlay {
  opacity: 1;
}

.popup-header-meta {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-4);
}

.popup-badges-row {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-3);
}

.popup-song-title {
  font-size: 1.55rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.popup-song-artist {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.popup-requester-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.popup-actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.popup-action-btn {
  font-size: 0.85rem;
  padding: 8px 14px;
}

.popup-section {
  border-top: 1px solid var(--border-glass);
  padding-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.popup-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.popup-lyrics-content {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 6px;
}

.lyrics-preview-line {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.lyrics-preview-line.active {
  color: var(--text-primary);
  font-weight: 600;
}

.popup-related-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.popup-related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.popup-related-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.popup-rel-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.popup-rel-thumb {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
}
.popup-rel-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.popup-rel-artist {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   18. TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 110px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 90;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid var(--border-glass-hover);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: all var(--transition-spring);
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-success {
  border-color: rgba(16, 185, 129, 0.4);
}
.toast-success span:first-child {
  color: var(--color-success);
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.4);
}
.toast-error span:first-child {
  color: var(--color-danger);
}

.toast-info {
  border-color: rgba(99, 102, 241, 0.4);
}
.toast-info span:first-child {
  color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   19. TOOLTIPS & ACCESSIBILITY UTILITIES
   -------------------------------------------------------------------------- */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-primary);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  z-index: 100;
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hidden {
  display: none !important;
}

.w-full {
  width: 100%;
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mt-4 {
  margin-top: var(--space-4);
}
.flex-1 {
  flex: 1;
}

/* --------------------------------------------------------------------------
   20. RESPONSIVE BREAKPOINTS (MOBILE, TABLET, DESKTOP)
   -------------------------------------------------------------------------- */
/* Tablets (<= 1024px) */
@media (max-width: 1024px) {
  .shell-sidebar {
    width: 76px;
  }
  .shell-main-wrapper {
    margin-left: 76px;
  }
  .shell-sidebar .sidebar-brand-text,
  .shell-sidebar .server-card-meta,
  .shell-sidebar .server-chevron,
  .shell-sidebar .nav-section-label,
  .shell-sidebar .nav-item-text,
  .shell-sidebar .nav-item-badge,
  .shell-sidebar .user-card-meta {
    display: none;
  }
  .hero-player-grid {
    grid-template-columns: 280px 1fr;
    gap: var(--space-6);
  }
  .song-popup-layout {
    grid-template-columns: 220px 1fr;
    gap: var(--space-6);
  }
}

/* Mobile Phones (<= 768px) */
@media (max-width: 768px) {
  .shell-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px !important;
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
  }
  .shell-main-wrapper {
    margin-left: 0 !important;
  }
  .shell-sidebar.mobile-open {
    transform: translateX(0);
  }
  .shell-sidebar.mobile-open .sidebar-brand-text,
  .shell-sidebar.mobile-open .server-card-meta,
  .shell-sidebar.mobile-open .server-chevron,
  .shell-sidebar.mobile-open .nav-section-label,
  .shell-sidebar.mobile-open .nav-item-text,
  .shell-sidebar.mobile-open .user-card-meta {
    display: flex;
  }

  .mobile-menu-trigger {
    display: flex;
  }

  .shell-topbar {
    padding: 0 var(--space-4);
  }

  .topbar-bot-pill,
  .telemetry-ping-widget {
    display: none;
  }

  .shell-content {
    padding: var(--space-4);
  }

  .hero-player-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .hero-art-card {
    max-width: 280px;
    margin: 0 auto;
  }

  .shell-player-dock {
    display: none; /* Replaced by mobile-mini-player */
  }

  .mobile-mini-player {
    display: flex;
  }

  .mobile-nav-bar {
    display: flex;
  }

  .shell-main-wrapper {
    padding-bottom: 130px;
  }

  .song-popup-layout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .popup-cover-wrap {
    max-width: 220px;
    margin: 0 auto;
  }

  .toast-container {
    bottom: 130px;
    left: 16px;
    right: 16px;
    align-items: center;
  }
  .toast {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   21. UTILITY & EXTENDED COMPONENT CLASSES
   -------------------------------------------------------------------------- */
.badge-admin {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

.hero-btn-row {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}

.skeleton-text-50 { width: 50% !important; }
.skeleton-text-40 { width: 40% !important; }
.skeleton-text-60 { width: 60% !important; }

/* Equalizer Studio Section */
.eq-studio-section {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-glass);
}

.eq-studio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.eq-studio-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.eq-studio-sub {
  font-size: var(--text-micro);
  color: var(--text-muted);
}

.btn-flat-eq {
  font-size: var(--text-micro);
  padding: 4px 10px;
}

/* Sessions View Box */
.session-box {
  padding: var(--space-4);
}

/* Activity Audit Table Wrap */
.activity-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.activity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-caption);
}

.activity-head-row {
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-muted);
  text-align: left;
}

.activity-th {
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

/* Drawer Lyrics Tab */
.drawer-lyrics-tab {
  display: none;
  height: 100%;
}

.lyrics-placeholder {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 0;
}

/* Dock Elements */
.dock-meta-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 2px;
}

.controlled-by-label {
  flex: 1 0 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dock-btn-auto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dock-auto-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Mobile Mini Player Layout */
.mobile-mini-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mobile-mini-art {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.mobile-mini-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mobile-mini-title {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.mobile-mini-artist {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-mini-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-mini-btn {
  color: var(--text-primary);
  padding: 6px;
}

/* Mobile Fullscreen Sheet Elements */
.sheet-now-playing-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.sheet-track-info-wrap {
  text-align: center;
  margin-bottom: var(--space-6);
}

.sheet-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.sheet-artist {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.sheet-play-tactile {
  width: 56px !important;
  height: 56px !important;
}

/* Login Modal Elements */
.login-brand-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--accent-primary-gradient);
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}
.login-brand-icon svg {
  width: 32px;
  height: 32px;
}

.login-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: var(--text-caption);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.login-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.btn-login-discord {
  padding: 14px;
  justify-content: center;
  font-weight: 600;
  background: #5865F2;
  box-shadow: 0 4px 18px rgba(88, 101, 242, 0.45);
}
.btn-login-discord:hover {
  background: #4752c4;
  box-shadow: 0 6px 24px rgba(88, 101, 242, 0.65);
}

.btn-login-spotify {
  padding: 14px;
  justify-content: center;
  font-weight: 600;
  background: #1DB954;
  color: #050609 !important;
  box-shadow: 0 4px 18px rgba(29, 185, 84, 0.4);
}
.btn-login-spotify:hover {
  background: #1ed760;
  color: #050609 !important;
  box-shadow: 0 6px 24px rgba(29, 185, 84, 0.6);
}
.btn-login-spotify svg {
  width: 20px;
  height: 20px;
}

.btn-login-demo {
  padding: 14px;
  justify-content: center;
}

/* Synced Lyrics Line Enhancements */
.lyric-line {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.38);
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}
.lyric-line:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
}
.lyric-line.active {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.28rem !important;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(6, 182, 212, 0.1) 100%) !important;
  border-left: 3px solid var(--accent-primary) !important;
  transform: scale(1.02);
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.lyric-line.passed {
  color: rgba(255, 255, 255, 0.22);
}

/* Palette Result Selected State */
.palette-result-item.selected {
  background: rgba(99, 102, 241, 0.2) !important;
  border-left: 3px solid var(--accent-primary);
}

/* Search Tabs */
.search-tabs {
  display: flex;
  gap: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
}

/* Multi-Platform Search Provider Switcher */
.search-provider-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.25);
  overflow-x: auto;
  scrollbar-width: none;
}
.search-provider-pills::-webkit-scrollbar {
  display: none;
}
.provider-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.provider-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}
.provider-pill.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}
.provider-pill.pill-apple.active {
  background: rgba(250, 45, 72, 0.16);
  border-color: rgba(250, 45, 72, 0.4);
  color: #ff3b5c;
  box-shadow: 0 0 14px rgba(250, 45, 72, 0.2);
}
.provider-pill.pill-spotify.active {
  background: rgba(29, 185, 84, 0.16);
  border-color: rgba(29, 185, 84, 0.4);
  color: #1ed760;
  box-shadow: 0 0 14px rgba(29, 185, 84, 0.2);
}
.provider-pill.pill-jio.active {
  background: rgba(45, 212, 191, 0.16);
  border-color: rgba(45, 212, 191, 0.4);
  color: #2dd4bf;
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.2);
}
.provider-pill.pill-youtube.active {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.2);
}
.provider-pill.pill-amazon.active {
  background: rgba(255, 153, 0, 0.16);
  border-color: rgba(255, 153, 0, 0.4);
  color: #ff9900;
  box-shadow: 0 0 14px rgba(255, 153, 0, 0.2);
}
.provider-pill.pill-deezer.active {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.4);
  color: #a855f7;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.2);
}
.provider-pill.pill-soundcloud.active {
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(249, 115, 22, 0.4);
  color: #f97316;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.2);
}

/* Audio Quality & Platform Badges */
.badge-lossless {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(250, 45, 72, 0.25), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(250, 45, 72, 0.35);
  box-shadow: 0 0 8px rgba(250, 45, 72, 0.15);
  text-transform: uppercase;
}
.badge-apple {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.badge-spotify {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  color: #1ed760;
  background: rgba(29, 185, 84, 0.14);
  border: 1px solid rgba(29, 185, 84, 0.3);
}
.badge-jio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  color: #2dd4bf;
  background: rgba(45, 212, 191, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.3);
}
.badge-youtube {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Apple Music Lossless Shelf & Cards */
.apple-lossless-shelf {
  margin-bottom: var(--space-8);
}
.apple-shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-3);
}
.apple-shelf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
  cursor: pointer;
  overflow: hidden;
}
.apple-shelf-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(250, 45, 72, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(250, 45, 72, 0.15);
}
.apple-card-art-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 10px;
}
.apple-card-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}
.apple-shelf-card:hover .apple-card-art {
  transform: scale(1.04);
}
.apple-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #ff3b5c;
  border: 1px solid rgba(250, 45, 72, 0.4);
}
.apple-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.apple-card-author {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

.discover-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 34%);
  align-items: center;
  gap: var(--space-8);
  min-height: 260px;
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(ellipse at 80% 55%, rgba(var(--dynamic-accent-rgb), 0.18), transparent 45%),
    linear-gradient(110deg, rgba(18, 19, 31, 0.96), rgba(10, 11, 18, 0.88));
  box-shadow: var(--shadow-md);
}

.discover-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.discover-kicker {
  color: #b8b6ff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.discover-title {
  margin: var(--space-3) 0;
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.045em;
}

.discover-description {
  max-width: 520px;
  color: var(--text-secondary);
}

.discover-hero-art {
  position: relative;
  align-self: stretch;
  min-height: 196px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-xl);
  background: #11121b;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.discover-hero-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 7, 11, 0.88), transparent 66%);
  content: '';
}

.discover-hero-art img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.discover-hero-art:hover img {
  transform: scale(1.04);
}

.discover-art-caption {
  position: absolute;
  z-index: 1;
  right: var(--space-4);
  bottom: var(--space-4);
  left: var(--space-4);
  display: grid;
  gap: 4px;
}

.discover-art-caption span {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.discover-art-caption strong {
  color: #fff;
  font-size: 0.95rem;
}

.lucide-icon,
.lucide-icon-sm {
  stroke-width: 1.6;
}

:where(button, a, input, [tabindex]):focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 3px;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ping-latency-badge,
.dock-time,
.queue-duration,
.sheet-time-row,
.popover-stat-val {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .discover-hero {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: var(--space-4);
    min-height: 230px;
    padding: var(--space-5);
  }

  .discover-hero-art {
    min-height: 164px;
  }

  .discover-title {
    font-size: 1.8rem;
  }

  .discover-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 420px) {
  .discover-hero {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .discover-hero-art {
    min-height: 150px;
  }

  .discover-art-caption {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.browser-listen-panel {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(22, 25, 39, 0.82), rgba(11, 13, 20, 0.78));
}

  .browser-listen-heading,
  .browser-player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .browser-listen-heading {
    justify-content: space-between;
  }

  .browser-listen-heading h2 {
    margin: 0;
    font-size: var(--text-h2);
  }

  .browser-listen-heading p,
  .browser-player-disclosure,
  .browser-autoplay-up-next {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: var(--text-caption);
  }

  .browser-mode-controls {
    display: flex;
    gap: 8px;
  }

  .browser-mode-controls .btn,
  .browser-player-controls > button {
    min-height: 44px;
  }

  .sheet-browser-mode {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px auto 0;
  }

  .sheet-browser-mode .sheet-chip-btn {
    min-width: 76px;
    min-height: 44px;
  }

  .sheet-browser-mode .sheet-chip-btn[aria-pressed="true"] {
    border-color: var(--dynamic-accent);
    background: rgba(var(--dynamic-accent-rgb), 0.2);
  }

  .browser-mode-btn.active {
    color: var(--text-primary);
    border-color: var(--dynamic-accent);
    background: rgba(var(--dynamic-accent-rgb), 0.18);
  }

  .browser-player-frame {
    width: 100%;
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    background: #000;
    aspect-ratio: 16 / 9;
    transition: width 180ms ease, box-shadow 180ms ease;
  }

  .browser-player-frame.browser-audio-mode {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0.001;
    pointer-events: none;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
  }

  .browser-player-frame iframe,
  .browser-player-frame > div {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
  }

  .browser-player-controls {
    flex-wrap: wrap;
    margin-top: 16px;
  }

  .browser-player-controls input[type="range"] {
    flex: 1 1 180px;
    accent-color: var(--dynamic-accent);
  }

  .browser-player-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
  }

  .browser-player-time {
    min-width: 82px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: var(--text-micro);
    font-variant-numeric: tabular-nums;
  }

  .browser-autoplay-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--text-secondary);
    font-size: var(--text-caption);
  }

  .browser-autoplay-toggle input {
    accent-color: var(--dynamic-accent);
  }

  .browser-autoplay-up-next {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.045);
  }

  .browser-queue-list {
    display: grid;
    gap: 8px;
    max-width: 720px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
  }

  .browser-queue-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 12px;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-secondary);
    font-size: var(--text-caption);
  }

  .browser-queue-item img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
  }

  .browser-queue-item span {
    flex: 1;
    min-width: 0;
  }

  .browser-queue-item button {
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
  }

  .browser-queue-item button:focus-visible {
    outline: 2px solid var(--dynamic-accent);
    outline-offset: 2px;
  }

  .pwa-update-notice {
    position: fixed;
    z-index: 1200;
    right: 24px;
    bottom: 104px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border-glass-hover);
    border-radius: var(--radius-lg);
    background: rgba(15, 18, 28, 0.96);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42);
    color: var(--text-primary);
  }

  .pwa-update-notice.hidden {
    display: none;
  }

  .pwa-update-notice button {
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    cursor: pointer;
  }

  .pwa-update-notice button:focus-visible {
    outline: 2px solid var(--dynamic-accent);
    outline-offset: 2px;
  }

  @media (max-width: 767px) {
    .browser-listen-panel {
      margin-top: 20px;
      padding: 16px;
    }

    .browser-listen-heading {
      align-items: flex-start;
      flex-direction: column;
    }

    .browser-player-frame.browser-audio-mode {
      width: 100%;
    }

    .browser-player-controls {
      gap: 8px;
    }

    .pwa-update-notice {
      right: 12px;
      bottom: 100px;
      left: 12px;
      justify-content: space-between;
      gap: 6px;
      padding: 10px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .browser-player-frame {
      transition: none;
    }
  }

.palette-track-thumb {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.ping-latency-badge[data-latency="good"] {
  color: var(--color-success);
}

.ping-latency-badge[data-latency="warning"] {
  color: var(--color-warning);
}

.ping-latency-badge[data-latency="poor"] {
  color: var(--color-danger);
}

.session-ended-state {
  margin: 0 auto var(--space-8);
  padding: var(--space-8);
  max-width: 720px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  text-align: center;
}

.session-ended-state h2 {
  margin-bottom: var(--space-2);
  font-size: var(--text-h2);
}

.session-ended-state p {
  color: var(--text-secondary);
}

.filter-card:disabled:hover {
  transform: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .mobile-nav-btn,
  .mobile-mini-player button,
  .mobile-player-sheet button,
  .queue-track-actions button,
  .song-popup-modal button {
    min-width: 44px;
    min-height: 44px;
  }
}

/* ==========================================================================
   USER MENU POPOVER & SETTINGS MODALS (LIQUID GLASS)
   ========================================================================== */
.user-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: transparent;
}
.user-menu-overlay.hidden {
  display: none;
}

.user-menu-popover {
  position: fixed;
  z-index: 999;
  left: 20px;
  bottom: 84px;
  width: 290px;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: rgba(15, 18, 28, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass-hover);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), var(--border-specular);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: popoverFadeIn 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.user-menu-popover.hidden {
  display: none;
}

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

.user-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-glass);
}
.user-menu-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-glass-hover);
  object-fit: cover;
}
.user-menu-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.user-menu-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-badge {
  font-size: 0.72rem;
  color: var(--dynamic-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.user-menu-accounts {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.user-account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.account-label {
  color: var(--text-muted);
}
.account-status {
  font-weight: 600;
  color: var(--text-secondary);
}

.user-menu-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
}
.user-menu-item:hover {
  background: var(--bg-glass-card-hover);
  color: #ffffff;
}
.user-menu-item svg {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.user-menu-item:hover svg {
  color: var(--text-primary);
}
.user-menu-divider {
  height: 1px;
  background: var(--border-glass);
  margin: 4px 0;
}
.user-menu-logout {
  color: #ef4444 !important;
}
.user-menu-logout svg {
  color: #ef4444 !important;
}
.user-menu-logout:hover {
  background: rgba(239, 68, 68, 0.12) !important;
}

/* Mobile Bottom Sheet for User Menu */
@media (max-width: 768px) {
  .user-menu-popover {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 24px 24px 0 0;
    padding: 24px 20px 36px;
    animation: sheetSlideUp 220ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes sheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}

/* CONFIRM MODAL */
.confirm-modal-card {
  max-width: 380px !important;
  text-align: center;
  padding: 28px !important;
  gap: 16px;
}
.confirm-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.confirm-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.confirm-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.confirm-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.confirm-actions-row .btn {
  flex: 1;
  padding: 12px;
  justify-content: center;
}

/* SETTINGS MODAL */
.settings-modal-card {
  max-width: 560px !important;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px !important;
}
.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
}
.settings-title {
  font-size: 1.2rem;
  font-weight: 700;
}
.settings-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}
.settings-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.settings-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}
.settings-account-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  gap: 16px;
}
.settings-account-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-account-info strong {
  font-size: 0.92rem;
  color: var(--text-primary);
}
.settings-account-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* TRENDING ERROR & RETRY */
.trending-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 36px 20px;
  background: var(--bg-glass-card);
  border: 1px dashed var(--border-glass-hover);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}
.trending-error-state.hidden {
  display: none;
}

/* ============================================================
   SYMPHONY CONSOLE INTEGRATIONS
   ============================================================ */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(900px 600px at 110% 110%, rgba(201, 169, 110, 0.12), transparent 60%),
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(7, 7, 11, 0.6) 100%);
}
#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 70;
  pointer-events: none;
}
#halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 176%;
  height: 176%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

/* Output Switcher (Discord vs This device) */
.output-switch {
  position: relative;
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
.output-switch button {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.output-switch button[aria-checked="true"] {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}
.switch-glider {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.55);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.output-switch.device .switch-glider {
  transform: translateX(100%);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.55);
}
.live-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #10b981;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: inline-flex;
  align-items: center;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}

/* Symphony Menu Drawer */
.drawer {
  position: fixed;
  z-index: 85;
  left: 280px;
  top: 80px;
  bottom: 100px;
  width: min(480px, calc(100vw - 300px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: drawer-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.drawer.hidden {
  display: none !important;
}
@keyframes drawer-in { from { opacity: 0; transform: translateX(-18px) scale(0.98); } }
.drawer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.drawer-head > div { flex: 1; }
.drawer-eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-primary);
}
.drawer-title {
  margin: 2px 0 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}
.palette-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.palette-hint:hover {
  color: #fff;
  border-color: var(--accent-primary);
}
.drawer-close-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
}
.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.drawer-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin: 12px 18px 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.drawer-tabs button {
  flex: 1;
  border: 0;
  background: none;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.drawer-tabs button.active {
  background: rgba(99, 102, 241, 0.22);
  color: #ffffff;
  box-shadow: inset 0 -2px 0 var(--accent-primary);
}
.drawer-body {
  overflow-y: auto;
  padding: 12px 18px 24px;
  flex: 1;
}
.drawer-pane.hidden {
  display: none !important;
}
.drawer-sec {
  padding: 14px 0 10px;
}
.drawer-sec + .drawer-sec {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.drawer-sec h5 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-primary);
}
.page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.page-grid button {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s;
}
.page-grid button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(99, 102, 241, 0.12);
}
.page-grid button.active {
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), transparent);
}
.page-grid b { font-size: 20px; font-weight: 400; }
.page-grid span { font-weight: 700; font-size: 13.5px; }
.page-grid small { color: var(--text-muted); font-size: 11px; }
.page-grid kbd { position: absolute; top: 8px; right: 8px; font-size: 9.5px; }
#server-filter {
  width: 170px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  outline: none;
  font-size: 12.5px;
}
.server-rows {
  display: grid;
  gap: 4px;
  max-height: 240px;
  overflow-y: auto;
}
.server-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.server-row:hover { background: rgba(99, 102, 241, 0.1); }
.server-row.selected { background: rgba(99, 102, 241, 0.2); box-shadow: inset 0 0 0 1px var(--accent-primary); }
.server-row img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.server-row strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Themes & Custom Colors */
.theme-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}
.theme-card {
  display: grid;
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.theme-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.theme-card[aria-pressed="true"] {
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent-primary), 0 8px 20px -8px rgba(99, 102, 241, 0.7);
}
.theme-preview {
  position: relative;
  display: block;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.custom-theme {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 14px;
  margin-top: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  font-size: 12.5px;
  color: var(--text-muted);
}
.custom-theme strong { flex-basis: 100%; color: #fff; font-size: 13px; }
.custom-theme label:not(.switch) { display: inline-flex; align-items: center; gap: 6px; }
.custom-theme input[type=color] { width: 28px; height: 28px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; background: none; cursor: pointer; }

/* 3D Backgrounds & Halos */
.bg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 8px;
}
.bg-card {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-primary);
}
.bg-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(99, 102, 241, 0.1);
}
.bg-card[aria-pressed="true"] {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-primary), 0 8px 20px -8px rgba(99, 102, 241, 0.7);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), transparent);
}
.bg-icon { font-size: 20px; line-height: 1.2; }
.bg-card strong { font-size: 12.5px; }
.bg-card small { color: var(--text-muted); font-size: 10.5px; }
.bg-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}
.slider {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--text-muted);
}
.slider input { width: 100%; accent-color: var(--accent-primary); }
.slider output { text-align: right; font-family: var(--font-mono); font-weight: 600; color: #fff; }
.quick-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; font-size: 12.5px; color: var(--text-muted); }
.keys kbd { margin-right: 6px; }

/* Quick Search Palette (Ctrl+K) */
.palette {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 13vh 16px 16px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fade-in 0.2s;
}
.palette.hidden {
  display: none !important;
}
.palette-box {
  width: min(640px, 100%);
  background: rgba(14, 19, 31, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  animation: pop 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#palette-input {
  width: 100%;
  height: 58px;
  padding: 0 20px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: none;
  outline: none;
  font-size: 16.5px;
  color: #fff;
}
.palette-list {
  max-height: min(52vh, 460px);
  overflow-y: auto;
  padding: 8px;
}
.palette-group {
  padding: 10px 12px 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-primary);
}
.palette-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.15s;
}
.palette-item:hover, .palette-item.active {
  background: rgba(99, 102, 241, 0.2);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.4);
}
.palette-foot {
  margin: 0;
  padding: 9px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 11.5px;
  display: flex;
  gap: 6px;
  align-items: center;
}

@media (max-width: 900px) {
  .drawer {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: 8px;
    width: auto;
    max-height: 82vh;
    animation: sheet-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  @keyframes sheet-in { from { transform: translateY(30px); opacity: 0; } }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 260px;
  max-width: 440px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  background: rgba(18, 22, 34, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(-16px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-error {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(36, 12, 18, 0.96);
  color: #fca5a5;
}
.toast-success {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(12, 36, 20, 0.96);
  color: #86efac;
}
.toast-info {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(14, 26, 44, 0.96);
  color: #93c5fd;
}
.login-auth-error {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.login-auth-error.hidden {
  display: none !important;
}

/* ==========================================================================
   SPOTIFY PRO DESIGN SYSTEM EXTENSIONS
   Caliber: Spotify Web Pro / Apple Music
   ========================================================================== */

/* --- 1. SPOTIFY GREETING & 6-CARD QUICK GRID --- */
.spotify-greeting-section {
  margin-bottom: var(--space-6);
}

.spotify-greeting-heading {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.spotify-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

@media (max-width: 1024px) {
  .spotify-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .spotify-quick-grid {
    grid-template-columns: 1fr;
  }
}

.spotify-quick-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  height: 64px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.spotify-quick-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.quick-card-art {
  width: 64px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  padding-right: var(--space-2);
}

.quick-card-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1ed760;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  margin-right: var(--space-3);
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
}

.spotify-quick-card:hover .quick-card-play-btn {
  opacity: 1;
  transform: scale(1);
}

.quick-card-play-btn:hover {
  background: #1fdf64;
  transform: scale(1.08) !important;
}

/* --- 2. UNIVERSAL SPOTIFY HOVER PLAY BUTTONS ON CARDS --- */
.trend-card,
.chart-card,
.apple-lossless-card {
  position: relative;
  transition: background 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}

.trend-card:hover,
.chart-card:hover,
.apple-lossless-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.spotify-hover-play-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1ed760;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
  z-index: 10;
  cursor: pointer;
}

.trend-card:hover .spotify-hover-play-btn,
.chart-card:hover .spotify-hover-play-btn,
.apple-lossless-card:hover .spotify-hover-play-btn,
.spotify-playlist-card:hover .spotify-hover-play-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.spotify-hover-play-btn:hover {
  background: #1fdf64 !important;
  transform: scale(1.08) !important;
}

/* --- 3. DEDICATED SPOTIFY SEARCH VIEW --- */
.spotify-search-view-container {
  padding: 0 0 var(--space-10);
  max-width: 1300px;
  margin: 0 auto;
}

.spotify-search-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.spotify-search-input-box {
  position: relative;
  max-width: 480px;
  width: 100%;
}

.search-box-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.spotify-search-input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 48px;
  border-radius: var(--radius-pill);
  background: #242424;
  border: 1px solid transparent;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.spotify-search-input::placeholder {
  color: #757575;
}

.spotify-search-input:hover {
  background: #2a2a2a;
}

.spotify-search-input:focus {
  background: #1f1f1f;
  border-color: #ffffff;
  box-shadow: 0 0 0 1px #ffffff, 0 8px 24px rgba(0, 0, 0, 0.4);
}

.spotify-search-input:focus ~ .search-box-icon {
  color: #ffffff;
}

.spotify-search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #a7a7a7;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.spotify-search-clear-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.spotify-provider-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.provider-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.18s ease;
}

.provider-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

.provider-chip.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 700;
}

.spotify-type-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-5);
}

/* --- 4. TOP RESULT & SONGS SPLIT LAYOUT --- */
.spotify-search-top-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

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

.search-section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.spotify-top-result-card {
  background: #181818;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.25s ease;
  cursor: pointer;
}

.spotify-top-result-card:hover {
  background: #282828;
}

.spotify-top-thumb {
  width: 96px;
  height: 96px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
}

.spotify-top-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-top-meta {
  font-size: 0.9rem;
  color: #b3b3b3;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.spotify-type-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.spotify-top-play-btn {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1ed760;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotify-top-result-card:hover .spotify-top-play-btn {
  opacity: 1;
  transform: translateY(0);
}

.spotify-top-play-btn:hover {
  background: #1fdf64;
  transform: scale(1.08) !important;
}

/* --- 5. SPOTIFY SONGS TABLE --- */
.spotify-songs-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spotify-song-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.spotify-song-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.song-row-num {
  width: 20px;
  font-size: 0.9rem;
  color: #b3b3b3;
  text-align: center;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.spotify-song-row:hover .song-row-num {
  display: none;
}

.song-row-play-icon {
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.spotify-song-row:hover .song-row-play-icon {
  display: flex;
}

.song-row-thumb {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.song-row-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.song-row-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-song-row:hover .song-row-title {
  color: #1ed760;
}

.song-row-artist {
  font-size: 0.8rem;
  color: #b3b3b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-row-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.song-row-like-btn {
  color: #b3b3b3;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, transform 0.15s ease;
  padding: 4px;
}

.spotify-song-row:hover .song-row-like-btn,
.song-row-like-btn.liked {
  opacity: 1;
}

.song-row-like-btn:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.song-row-like-btn.liked {
  color: #1ed760;
}

.song-row-duration {
  font-size: 0.82rem;
  color: #b3b3b3;
  font-variant-numeric: tabular-nums;
  width: 36px;
  text-align: right;
}

/* --- 6. SPOTIFY PLAYLISTS & ALBUMS GRID --- */
.spotify-playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-5);
}

.spotify-playlist-card {
  background: #181818;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background 0.25s ease, transform 0.2s ease;
  cursor: pointer;
}

.spotify-playlist-card:hover {
  background: #282828;
  transform: translateY(-4px);
}

.spotify-playlist-art-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 14px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.spotify-playlist-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotify-playlist-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.spotify-playlist-desc {
  font-size: 0.8rem;
  color: #b3b3b3;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- 7. SPOTIFY BROWSE ALL GENRE TILES --- */
.browse-categories-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.spotify-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-5);
}

@media (max-width: 640px) {
  .spotify-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
}

.spotify-category-card {
  aspect-ratio: 1;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.spotify-category-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.category-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.category-card-icon {
  position: absolute;
  right: -8px;
  bottom: -4px;
  width: 72px;
  height: 72px;
  opacity: 0.7;
  transform: rotate(25deg);
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

/* --- 8. DOCK PLAY BUTTON & SCRUBBER SPOTIFY POLISH --- */
.dock-play-tactile {
  background: #ffffff !important;
  color: #000000 !important;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.dock-play-tactile:hover {
  transform: scale(1.08) !important;
  background: #1ed760 !important;
}

.dock-progress-fill {
  background: #ffffff !important;
  transition: background 0.15s ease;
}

.dock-progress-track:hover .dock-progress-fill {
  background: #1ed760 !important;
}

.dock-progress-scrubber {
  background: #ffffff !important;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.dock-progress-track:hover .dock-progress-scrubber {
  opacity: 1 !important;
}

.dock-btn.active {
  color: #1ed760 !important;
}

.dock-like-btn.liked,
.art-heart-btn.liked {
  color: #1ed760 !important;
}

.dock-like-btn.liked svg,
.art-heart-btn.liked svg {
  fill: #1ed760 !important;
  stroke: #1ed760 !important;
}

.category-card-art {
  position: absolute;
  right: -10px;
  bottom: -6px;
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 4px;
  transform: rotate(25deg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* --- 9. DEVICE OUTPUT SWITCH CONFIRMATION MODAL --- */
.switch-modal-card {
  max-width: 440px !important;
  text-align: center;
  padding: 32px 28px !important;
  background: rgba(18, 18, 18, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
}

.switch-modal-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(30, 215, 96, 0.15);
  color: #1ed760;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 0 20px rgba(30, 215, 96, 0.25);
}

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

.switch-modal-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.switch-modal-desc {
  font-size: 0.92rem;
  color: #b3b3b3;
  line-height: 1.45;
  margin-bottom: 20px;
}

.switch-modal-current-track {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 22px;
  text-align: left;
}

.switch-modal-current-track img {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.switch-modal-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.switch-modal-track-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.switch-modal-track-artist {
  font-size: 0.8rem;
  color: #b3b3b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.switch-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.switch-transfer-btn {
  background: #1ed760 !important;
  color: #000000 !important;
  font-weight: 700 !important;
  padding: 12px 20px !important;
  border-radius: 500px !important;
  font-size: 0.95rem !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
  cursor: pointer;
}

.switch-transfer-btn:hover {
  background: #1fdf64 !important;
  transform: scale(1.02) !important;
}

.switch-mode-only-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 10px 18px !important;
  border-radius: 500px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  cursor: pointer;
}

.switch-mode-only-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

.switch-cancel-btn {
  color: #a7a7a7 !important;
  font-size: 0.85rem !important;
  padding: 6px !important;
  cursor: pointer;
}

.switch-cancel-btn:hover {
  color: #ffffff !important;
}

/* ==========================================================================
   10. LUXURY GLASSMORPHISM BUILD & AMBIENT ANIMATIONS
   ========================================================================== */

/* Enhanced Frosted Glass Application Shell */
.shell-sidebar {
  background: rgba(12, 14, 22, 0.72) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.45) !important;
}

.shell-topbar {
  background: rgba(10, 12, 18, 0.65) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.dock-player {
  background: rgba(14, 17, 26, 0.84) !important;
  backdrop-filter: blur(32px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

/* Glassmorphic Search Bar & Live Searching Glow */
.spotify-search-input-box {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.spotify-search-input-box:focus-within {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(30, 215, 96, 0.6) !important;
  box-shadow: 0 0 20px rgba(30, 215, 96, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.spotify-search-input-box.is-searching {
  border-color: #1ed760 !important;
  box-shadow: 0 0 25px rgba(30, 215, 96, 0.38), inset 0 0 15px rgba(30, 215, 96, 0.15) !important;
}

.spotify-search-input-box.is-searching .search-box-icon {
  color: #1ed760 !important;
  animation: searchIconPulse 1.1s infinite alternate ease-in-out;
}

@keyframes searchIconPulse {
  0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  100% { transform: scale(1.18) rotate(12deg); opacity: 1; filter: drop-shadow(0 0 8px #1ed760); }
}

/* Quick Search Suggestion Tags */
.spotify-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quick-tag-pill {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 500px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #d1d5db;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.quick-tag-pill:hover {
  background: rgba(30, 215, 96, 0.15);
  border-color: rgba(30, 215, 96, 0.45);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 215, 96, 0.25);
}

/* Glass Skeleton Shimmer Placeholders */
@keyframes glassShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.03) 100%);
  background-size: 200% 100%;
  animation: glassShimmer 1.5s infinite ease-in-out;
  border-radius: 6px;
}

.glass-skeleton-top-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-thumb-lg {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.skeleton-title-lg {
  width: 75%;
  height: 24px;
}

.skeleton-artist-md {
  width: 45%;
  height: 16px;
}

.skeleton-pill-sm {
  width: 70px;
  height: 22px;
  border-radius: 500px;
}

.glass-skeleton-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.glass-skeleton-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.skeleton-thumb-sm {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  flex-shrink: 0;
}

.skeleton-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skeleton-line-title {
  width: 60%;
  height: 14px;
}

.skeleton-line-sub {
  width: 35%;
  height: 11px;
}

.skeleton-line-time {
  width: 36px;
  height: 12px;
  flex-shrink: 0;
}

.glass-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.glass-skeleton-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 14px;
}

.skeleton-playlist-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
}

/* Glass Cards & Elevators in Search Layout */
.spotify-top-result-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.spotify-top-result-card:hover {
  background: rgba(255, 255, 255, 0.065) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.spotify-top-result-card:hover .spotify-top-play-btn {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  box-shadow: 0 8px 24px rgba(30, 215, 96, 0.6) !important;
}

.spotify-top-play-btn {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1ed760 !important;
  color: #000000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.spotify-top-play-btn:hover {
  background: #1fdf64 !important;
  transform: translateY(0) scale(1.08) !important;
}

.spotify-song-row {
  background: rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-radius: 8px !important;
  transition: all 0.16s ease !important;
}

.spotify-song-row:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  transform: translateX(4px);
}

.song-row-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
  cursor: pointer;
}

.song-row-action-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* Glassmorphic Server Switcher Menu */
.server-menu-dropdown {
  background: rgba(14, 18, 28, 0.94) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  border-radius: 14px !important;
  padding: 12px !important;
}

.server-search-filter-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 12px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease;
}

.server-search-filter-wrap:focus-within {
  border-color: rgba(30, 215, 96, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.filter-search-icon {
  color: #94a3b8;
  flex-shrink: 0;
}

.server-search-filter-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.82rem;
  width: 100%;
  outline: none;
}

.server-switcher-card {
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
}

.server-switcher-card:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateX(3px);
}

.server-switcher-card.active {
  background: rgba(30, 215, 96, 0.12) !important;
  border-color: rgba(30, 215, 96, 0.4) !important;
}

.server-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.server-status-dot.idle {
  background: #64748b;
}

.server-status-dot.playing {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.server-status-dot.paused {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.server-status-dot.voice {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.badge-server-admin {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.server-avatar-fallback {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ============================================================
   NOW PLAYING STUDIO (ULTRA LUXURY TURNTABLE & MASTER CONSOLE)
   ============================================================ */
.now-playing-studio-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.now-playing-backdrop-glow {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 215, 96, 0.18), rgba(99, 102, 241, 0.15), transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  transition: all 1s ease;
}

.studio-top-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 1;
}

.studio-destination-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.status-indicator-dot.pulse {
  animation: dotPulse 2s infinite ease-in-out;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.studio-badges-rack {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-quality-badge, .studio-engine-badge, .studio-filter-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.studio-quality-badge {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.studio-engine-badge {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
}

.studio-filter-badge {
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.1);
}

/* Studio Hero Card: Luxury Frosted Glass */
.studio-hero-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  padding: 36px 40px;
  border-radius: 28px;
  background: rgba(13, 17, 27, 0.75);
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 70px -15px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  align-items: center;
}

/* Turntable Assembly & Vinyl Spin */
.studio-turntable-col {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.turntable-assembly {
  position: relative;
  width: 320px;
  height: 320px;
}

.vinyl-disc {
  position: absolute;
  top: 15px;
  left: 55px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, #080808 0%, #151515 40%, #0d0d0d 70%, #1a1a1a 100%);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.85),
    inset 0 0 0 2px rgba(255, 255, 255, 0.05),
    0 0 0 1px #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.vinyl-grooves {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    rgba(255, 255, 255, 0.035) 0px,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
}

.vinyl-disc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 65%,
    rgba(255, 255, 255, 0.12) 100%
  );
  pointer-events: none;
}

.vinyl-center-label {
  position: relative;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 4px #121212, 0 0 10px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.vinyl-center-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vinyl-center-spindle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #09090b;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.9);
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-disc.spinning {
  animation: spinVinyl 6s linear infinite;
  animation-play-state: running;
}

.vinyl-disc.spinning.is-paused {
  animation-play-state: paused !important;
}

.vinyl-disc.spinning.is-paused .vinyl-center-label::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Album Sleeve in Foreground */
.album-sleeve {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.18);
  z-index: 2;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.album-sleeve:hover {
  transform: translateY(-4px) scale(1.02);
}

/* Track Pass Transition Animations */
.album-sleeve.track-passing {
  animation: trackPassSleeve 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes trackPassSleeve {
  0% { transform: scale(0.94) translateX(-18px); opacity: 0.5; filter: blur(4px); }
  50% { transform: scale(0.97) translateX(10px); opacity: 0.85; filter: blur(1px); }
  100% { transform: scale(1) translateX(0); opacity: 1; filter: blur(0); }
}

.studio-track-meta.track-passing {
  animation: trackPassMeta 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes trackPassMeta {
  0% { opacity: 0.2; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

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

.art-ambient-reflection {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.art-heart-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 3;
}
.art-heart-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.12);
}
.art-heart-btn.liked {
  color: #ef4444;
}
.art-heart-btn.liked svg {
  fill: #ef4444;
}

.art-equalizer-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3;
}
.art-equalizer-badge.hidden {
  display: none !important;
}
.art-equalizer-badge .bar {
  width: 3px;
  background: #1ed760;
  border-radius: 1px;
}
.art-equalizer-badge .bar-1 { height: 60%; animation: eqJump 0.8s infinite ease-in-out; }
.art-equalizer-badge .bar-2 { height: 100%; animation: eqJump 0.6s infinite ease-in-out 0.2s; }
.art-equalizer-badge .bar-3 { height: 40%; animation: eqJump 0.9s infinite ease-in-out 0.1s; }
.art-equalizer-badge .bar-4 { height: 80%; animation: eqJump 0.7s infinite ease-in-out 0.3s; }
@keyframes eqJump {
  0%, 100% { height: 30%; }
  50% { height: 100%; }
}

.art-equalizer-badge.is-paused .bar {
  animation-play-state: paused !important;
  height: 25% !important;
  transition: height 0.35s ease;
}

/* Studio Controls Column */
.studio-controls-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.studio-track-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.studio-track-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.studio-track-artist {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-requester-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.requester-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.req-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

/* Studio Interactive Scrubber Bar */
.studio-scrubber-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.studio-scrubber-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: height 0.15s ease;
}

.studio-scrubber-track:hover {
  height: 8px;
}

.studio-scrubber-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.studio-scrubber-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1ed760, #38bdf8);
  box-shadow: 0 0 10px rgba(30, 215, 96, 0.5);
  transition: width 0.12s linear;
}

.studio-scrubber-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.85);
  transform: translate(-50%, -50%) scale(0);
  transition: left 0.12s linear, transform 0.15s ease;
  pointer-events: none;
}

.studio-scrubber-track:hover .studio-scrubber-thumb {
  transform: translate(-50%, -50%) scale(1);
}

.studio-scrubber-tooltip {
  position: absolute;
  bottom: 14px;
  left: 0%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.studio-scrubber-track:hover .studio-scrubber-tooltip {
  opacity: 1;
}

.studio-scrubber-times {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Master Playback Controls Suite */
.studio-master-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.studio-ctrl-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: scale(1.08);
}

.studio-ctrl-btn.active {
  color: #1ed760;
  border-color: rgba(30, 215, 96, 0.4);
  background: rgba(30, 215, 96, 0.15);
}

.studio-ctrl-btn .loop-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #1ed760;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-play-master-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1ed760;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(30, 215, 96, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-play-master-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(30, 215, 96, 0.65);
  background: #1fdf64;
}

.studio-play-master-btn.is-paused,
.dock-btn-primary.is-paused,
.sheet-btn-play.is-paused,
.mobile-mini-play-btn.is-paused {
  animation: playBtnPulse 2.4s infinite ease-in-out !important;
}
@keyframes playBtnPulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.4), 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 28px rgba(99, 102, 241, 0.75), 0 0 40px rgba(139, 92, 246, 0.35);
    transform: scale(1.05);
  }
}

/* Interactive Control Animations */
.btn-pop {
  transform: scale(0.9) !important;
  transition: transform 0.15s ease !important;
}

.art-skip-anim {
  animation: artSkip 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes artSkip {
  0% { transform: scale(1) translateX(0); opacity: 1; }
  50% { transform: scale(0.94) translateX(18px); opacity: 0.6; }
  100% { transform: scale(1) translateX(0); opacity: 1; }
}

/* Master Volume Rack */
.studio-volume-rack {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
  margin: 0 auto;
}

.studio-vol-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.studio-vol-btn:hover {
  color: #ffffff;
}

.studio-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}
.studio-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.studio-vol-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.studio-vol-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 34px;
  text-align: right;
}

/* Live DSP Audio Effects Rack */
.studio-fx-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-fx-heading {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.studio-fx-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.studio-fx-chips::-webkit-scrollbar {
  display: none;
}

.fx-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fx-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.fx-chip.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #c4b5fd;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.3);
}

/* Studio Quick Action Buttons */
.studio-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.studio-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.studio-action-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Responsive Studio Breakdown */
@media (max-width: 960px) {
  .studio-hero-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
    text-align: center;
  }
  .studio-track-meta {
    align-items: center;
  }
  .studio-track-title {
    font-size: 1.6rem;
  }
  .studio-actions-row {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .turntable-assembly {
    width: 260px;
    height: 260px;
  }
  .vinyl-disc {
    width: 230px;
    height: 230px;
    left: 40px;
  }
  .album-sleeve {
    width: 200px;
    height: 200px;
  }
}
