/* ═══════════════════════════════════════════════════════════════════
   CARVA SOUNDVAULT — Master Liquid Glass Design System
   Desktop Premium Music Experience · Production Grade
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Canvas */
  --canvas-1: #0d0b1a;
  --canvas-2: #12112a;
  --canvas-3: #0a1628;

  /* Glass layers */
  --glass-bg:           rgba(255, 255, 255, 0.04);
  --glass-bg-elevated:  rgba(255, 255, 255, 0.07);
  --glass-bg-card:      rgba(255, 255, 255, 0.05);
  --glass-border:       rgba(255, 255, 255, 0.09);
  --glass-border-glow:  rgba(139, 92, 246, 0.35);
  --glass-blur:         blur(32px) saturate(180%);
  --glass-blur-heavy:   blur(60px) saturate(220%);
  --glass-shadow:       0 8px 40px rgba(0, 0, 0, 0.55),
                        0 2px 8px rgba(0,0,0,0.3),
                        inset 0 1px 0 rgba(255,255,255,0.1);
  --glass-shadow-lg:    0 20px 60px rgba(0, 0, 0, 0.65),
                        inset 0 1px 0 rgba(255,255,255,0.12);

  /* Accent colors */
  --accent:       #8B5CF6;
  --accent-2:     #A78BFA;
  --accent-pink:  #EC4899;
  --accent-cyan:  #06B6D4;
  --accent-green: #10B981;
  --accent-gold:  #F59E0B;
  --accent-glow:  rgba(139, 92, 246, 0.4);

  /* Typography */
  --text-primary:   #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-tertiary:  rgba(255, 255, 255, 0.38);
  --text-accent:    #C4B5FD;

  /* Font */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --sidebar-w: 256px;
  --player-h:  88px;
  --topbar-h:  68px;

  /* Radii */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  26px;
  --r-pill: 100px;

  /* Motion */
  --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --ios:    cubic-bezier(0.32, 0.72, 0, 1);
  --fast:   120ms var(--ease);
  --normal: 220ms var(--ios);
  --slow:   350ms var(--spring);
}

/* ═══════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body, #root, .app-container {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(8, 11, 24, 0.85) 0%, rgba(13, 17, 38, 0.92) 100%),
              url('https://images.unsplash.com/photo-1518495973542-4542c06a5843?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
  color: #FFFFFF;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  overflow-y: hidden;
}



button { cursor: pointer; font-family: inherit; border: none; }
input, textarea { font-family: inherit; }
img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 16px; }

/* ═══════════════════════════════════════════════════════════════════
   GLOBAL ANIMATED CANVAS BACKGROUND
   ═══════════════════════════════════════════════════════════════════ */
.fluid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 15% 50%,  rgba(45, 14, 84, 0.85)  0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 25%,  rgba(8, 40, 80, 0.8)    0%, transparent 55%),
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(20, 8, 50, 0.7)    0%, transparent 55%),
    linear-gradient(160deg, #0d0a1e 0%, #0e1628 50%, #08121f 100%);
}

.color-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  animation: driftBlob 32s infinite alternate ease-in-out;
}
.blob-1 {
  width: 70vw; height: 70vw;
  top: -20%; left: -10%;
  background: radial-gradient(circle, rgba(99, 60, 190, 0.45) 0%, transparent 70%);
  filter: blur(80px);
}
.blob-2 {
  width: 60vw; height: 60vw;
  bottom: -15%; right: -5%;
  background: radial-gradient(circle, rgba(20, 70, 150, 0.4) 0%, transparent 70%);
  filter: blur(90px);
  animation-delay: -12s;
}
.blob-3 {
  width: 40vw; height: 40vw;
  top: 30%; left: 30%;
  background: radial-gradient(circle, rgba(180, 60, 100, 0.2) 0%, transparent 70%);
  filter: blur(70px);
  animation-delay: -20s;
}
.blob-4 {
  width: 35vw; height: 35vw;
  top: 5%; right: 20%;
  background: radial-gradient(circle, rgba(30, 90, 160, 0.3) 0%, transparent 70%);
  filter: blur(80px);
  animation-delay: -8s;
}

@keyframes driftBlob {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(3%, 5%) scale(1.05); }
  66%  { transform: translate(-2%, 3%) scale(0.97); }
  100% { transform: translate(4%, -3%) scale(1.03); }
}

/* Dynamic artwork atmosphere */
#dynamic-atmo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2s ease;
  background-size: cover;
  background-position: center;
  filter: blur(80px) saturate(200%);
  transform: scale(1.2);
}
#dynamic-atmo.visible { opacity: 0.12; }

/* ═══════════════════════════════════════════════════════════════════
   LIQUID GLASS COMPONENT SYSTEM
   ═══════════════════════════════════════════════════════════════════ */
.liquid-glass {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
  border-radius: 24px;
}
.liquid-glass-elevated {
  background: var(--glass-bg-elevated) !important;
  backdrop-filter: var(--glass-blur-heavy) !important;
  -webkit-backdrop-filter: var(--glass-blur-heavy) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: var(--glass-shadow-lg) !important;
}
.glass-glow {
  box-shadow: var(--glass-shadow), 0 0 30px var(--accent-glow) !important;
  border-color: var(--glass-border-glow) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   APP SHELL LAYOUT
   ═══════════════════════════════════════════════════════════════════ */
.app-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100dvh;
  overflow: hidden;
  padding: 12px 12px 12px 0;
  gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR — GlassSidebar
   ═══════════════════════════════════════════════════════════════════ */

.sidebar {
  width: var(--sidebar-w);
  height: calc(100dvh - 24px);
  margin: 0 0 0 12px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.brand {
  padding: 32px 24px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 16px; }
.brand-text h1 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin: 0 0 2px 0;
}
.brand-text p {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 24px;
}
.nav-menu::-webkit-scrollbar { display: none; }

.nav-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.4);
  margin: 24px 0 8px 12px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: left;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav-item .icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}
.nav-item.active .icon {
  opacity: 1;
  color: #fff;
}
.nav-ai-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-pink));
  color: white;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  letter-spacing: 0.5px;
}

/* Stats card at bottom of sidebar */
.stats-card {
  padding: 14px 16px;
  margin: 8px 10px 10px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.stats-card h3 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}
.stat-row span {
  font-size: 12px;
  color: var(--text-secondary);
}
.stat-row strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-accent);
}

/* ═══════════════════════════════════════════════════════════════════
   MAIN CONTENT AREA
   ═══════════════════════════════════════════════════════════════════ */

.main-content {
  flex: 1;
  position: relative;
  background: transparent;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════════════════════════════
   TOP BAR — GlassSearch
   ═══════════════════════════════════════════════════════════════════ */
.top-bar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  background: transparent;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-back-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  transition: var(--fast);
}
.nav-back-btn:hover {
  background: rgba(255,255,255,0.14);
  transform: translateX(-2px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}
.breadcrumb svg { color: var(--accent-2); opacity: 0.8; }

.search-box {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}
.search-box input {
  width: 100%;
  padding: 10px 36px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  outline: none;
  transition: background var(--fast), border-color var(--fast), box-shadow var(--fast);
}
.search-box input::placeholder { color: var(--text-tertiary); }
.search-box input:focus {
  background: rgba(255,255,255,0.1);
  border-color: rgba(139,92,246,0.45);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.12), inset 0 1px 0 rgba(255,255,255,0.08);
}
.search-icon {
  position: absolute;
  left: 13px;
  color: var(--text-tertiary);
  pointer-events: none;
  display: flex;
}
.clear-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 14px;
  cursor: pointer;
  transition: color var(--fast);
}
.clear-btn:hover { color: var(--text-primary); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.smart-toggle-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background var(--fast);
}
.smart-toggle-container:hover { background: rgba(255,255,255,0.1); }
.toggle-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
input[type="checkbox"] { display: none; }
.toggle-slider {
  width: 32px;
  height: 18px;
  background: rgba(255,255,255,0.1);
  border-radius: 9px;
  position: relative;
  transition: background var(--fast);
  flex-shrink: 0;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: transform var(--normal), background var(--fast);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
input[type="checkbox"]:checked ~ .toggle-label,
input[type="checkbox"]:checked + .toggle-slider { background: var(--accent); }
input[type="checkbox"]:checked + .toggle-slider::after { transform: translateX(14px); }

/* ═══════════════════════════════════════════════════════════════════
   VIEW PANELS
   ═══════════════════════════════════════════════════════════════════ */
.view-panels-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.view-panel {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 0 calc(var(--player-h) + 24px);
  gap: 0;
}
.view-panel.active {
  display: flex;
  animation: fadeSlideIn 0.2s var(--ios) both;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.view-panel::-webkit-scrollbar { width: 5px; }
.view-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* Section headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
  flex-shrink: 0;
}
.section-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.section-header p,
.section-header span {
  font-size: 12px;
  color: var(--text-secondary);
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(139,92,246,0.2);
  color: var(--accent-2);
  border: 1px solid rgba(139,92,246,0.25);
}

/* ═══════════════════════════════════════════════════════════════════
   FILTER PILLS — GlassChip
   ═══════════════════════════════════════════════════════════════════ */
.pill-carousel {
  display: flex;
  gap: 8px;
  padding: 0 24px 16px;
  overflow-x: auto;
  flex-shrink: 0;
  scroll-snap-type: x mandatory;
}
.pill-carousel::-webkit-scrollbar { display: none; }
.pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--fast);
  cursor: pointer;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.pill-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}
.pill-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-pink));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(139,92,246,0.4);
}
.pill-btn:active { transform: scale(0.95); }

/* ═══════════════════════════════════════════════════════════════════
   CARDS GRID — GlassCard
   ═══════════════════════════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 0 24px 24px;
}
.card {
  background: var(--glass-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform var(--normal), box-shadow var(--normal), border-color var(--normal);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 20px rgba(139,92,246,0.15);
  border-color: rgba(139,92,246,0.3);
}
.card:active { transform: scale(0.97); }

.card-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  position: relative;
}
.card-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 16px; }
.card:hover .card-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 16px; }

.card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--fast);
}
.card:hover .card-play-overlay { opacity: 1; }
.card-play-overlay-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--fast), background var(--fast);
}
.card-play-overlay-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

.card-info {
  padding: 14px 14px 16px;
  flex: 1;
}
.card-info h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-info p {
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════
   TRACK LIST — GlassList
   ═══════════════════════════════════════════════════════════════════ */
.tracks-list-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 24px 8px;
}



.track-list-header {
  display: grid;
  grid-template-columns: 48px 56px 2fr 1.5fr 1.5fr 1fr 80px 100px;
  gap: 0;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 4px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 15, 36, 0.7);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-radius: 12px 12px 0 0;
}

.track-list-header span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.track-row {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 48px 56px 2fr 1.5fr 1.5fr 1fr 80px 100px;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  transition: background var(--fast), border-color var(--fast);
  border: 1px solid transparent;
  height: 60px;
}
.track-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.track-row.selected {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.track-row:active { transform: scale(0.995); }
.track-row.playing {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.25);
  box-shadow: inset 0 0 20px rgba(139,92,246,0.06);
}
.track-row.playing .col-title h4 {
  color: var(--accent-2);
}


.col-num {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: right;
  padding-right: 12px;
  font-variant-numeric: tabular-nums;
}
.track-row.playing .col-num { color: var(--accent-2); }
.track-row.playing .col-num::before { content: '▶ '; }

.col-art {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.col-art img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 16px; }
.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  opacity: 0;
  transition: opacity var(--fast);
}
.track-row:hover .play-overlay { opacity: 1; }

.col-title {
  overflow: hidden;
  padding: 0 16px 0 12px;
}
.col-title h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-artist, .col-album, .col-category {
  font-size: 12.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 16px;
}

.col-time {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding-right: 16px;
}

}

.context-menu-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--fast);
}
.context-menu-item:hover {
  background: rgba(139,92,246,0.2);
}
.context-menu-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 4px 0;
}

/* Context Menu & Glass Extras */
.liquid-glass-elevated {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.row-more-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  padding: 0 8px;
  transition: color var(--fast);
}
.row-more-btn:hover {
  color: var(--text-primary);
}

/* Responsive Mobile Hacks */
@media (max-width: 768px) {
  .sidebar {
    position: absolute;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  
  .top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  /* Create hamburger menu button if none exists */
  .mobile-menu-btn {
    display: flex !important;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
  }
}
.mobile-menu-btn { display: none; }

/* Make seek slider visible instead of opacity:0 */
input[type="range"]#seek-slider {
  opacity: 1 !important;
  -webkit-appearance: none;
  background: transparent;
}
input[type="range"]#seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.8);
  cursor: pointer;
  margin-top: -5px; /* aligns with the line */
}
input[type="range"]#seek-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
  background: transparent;
}
\n
.hero-banner {
  min-height: 240px;
  height: auto;
  aspect-ratio: auto;
  object-fit: cover;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
\n
@media (max-width: 768px) {
  .home-hero-card {
    height: 180px !important;
    padding: 16px !important;
    border-radius: 12px !important;
  }
}
\n
.mobile-bottom-nav {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  height: 70px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  padding: 0 8px;
  border-radius: 35px !important;
}

.mobile-bottom-nav .nav-item {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.mobile-bottom-nav .nav-item:active {
  transform: scale(0.92);
}

.mobile-bottom-nav .nav-item.active {
  color: white;
  background: rgba(124, 58, 237, 0.3);
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 20px !important;
  padding: 8px 16px;
}

@media (max-width: 768px) {
  .app-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow-x: hidden !important;
    padding: 0 !important;
  }
  .main-content {
    flex: 1 !important;
    width: 100% !important;
  }
  .mobile-bottom-nav {
    display: flex !important;
  }
  .sidebar {
    display: none !important;
  }
  .main-content {
    width: 100vw !important;
    left: 0 !important;
    padding-bottom: 80px !important;
  }
  .top-bar-left .mobile-menu-btn {
    display: none !important;
  }
  #player-bar {
    bottom: 92px !important;
    border-radius: 32px !important;
    margin: 0 16px !important;
    width: auto !important;
    left: 0 !important;
    right: 0 !important;
  }
}
\n
.primary-play-active {
  background: linear-gradient(135deg, #7C3AED, #EC4899) !important;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.45) !important;
  color: white !important;
}

.subtle-active-glass {
  background: rgba(124, 58, 237, 0.25) !important;
  border: 1px solid rgba(167, 139, 250, 0.4) !important;
}


/* ── TOUCH & INTERACTION PHYSICS ── */
button:active, 
.track-row:active, 
.medium-rec-card:active, 
.compact-recent-card:active, 
.home-hero-card:active,
.radio-pill:active,
.pill-btn:active {
  transform: scale(0.96) !important;
  opacity: 0.8 !important;
  transition: all 0.1s ease-out !important;
}

button, .track-row, .medium-rec-card, .compact-recent-card, .home-hero-card, .radio-pill, .pill-btn {
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
