/* ==========================================================================
   SPOTIFY 2026 OFFICIAL DESIGN SYSTEM (NOURTIFY VIP EDITION)
   Engineered with True Spotify Tokens, 3-Column Layout, 60fps Micro-Animations
   ========================================================================== */

:root {
  /* Spotify Core Color Palette */
  --sp-black: #070708;
  --sp-bg-base: #121214;
  --sp-bg-highlight: #1a1a1e;
  --sp-bg-card: #18181c;
  --sp-bg-card-hover: #26262c;
  --sp-bg-elevated: #222228;
  --sp-bg-active: #32323c;
  --sp-border: rgba(255, 255, 255, 0.08);
  --sp-border-hover: rgba(255, 255, 255, 0.18);
  --sp-glass-bg: rgba(18, 18, 20, 0.85);
  --sp-glass-border: rgba(255, 255, 255, 0.08);

  /* Spotify Green & Vibrant Accent Tokens */
  --sp-green: #1ed760;
  --sp-green-hover: #1fdf64;
  --sp-green-press: #169c46;
  --sp-green-glow: 0 0 24px rgba(30, 215, 96, 0.4);
  --sp-green-glow-lg: 0 8px 32px rgba(30, 215, 96, 0.5);

  --sp-purple: #7c3aed;
  --sp-purple-light: #a78bfa;
  --sp-cyan: #06b6d4;
  --sp-blue: #3b82f6;
  --sp-rose: #f43f5e;
  --sp-amber: #f59e0b;
  --sp-gold: #fbbf24;

  /* Typography Colors */
  --text-base: #ffffff;
  --text-subdued: #a1a1aa;
  --text-muted: #71717a;
  --text-bright: #ffffff;

  /* Font Families */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Layout Dimensions */
  --sidebar-width: 290px;
  --right-panel-width: 330px;
  --player-height: 90px;
  --topbar-height: 64px;
  --mobile-tabbar-height: 62px;

  /* Corner Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 500px;
  --radius-circle: 50%;

  /* Transitions & Micro-Animations */
  --ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   1. GLOBAL RESET & ZERO-SCROLLBAR RULES (NATIVE APP FEEL)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
  display: none !important;
  width: 0px !important;
  height: 0px !important;
  background: transparent !important;
}

html {
  background-color: var(--sp-black);
  color: var(--text-base);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.5;
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: var(--sp-black);
  user-select: none;
}

/* Global Strict Button & Form Reset */
button {
  background: transparent;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  outline: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  background: transparent;
  border: none;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-base);
  letter-spacing: -0.02em;
}
a { color: inherit; text-decoration: none; }
.text-emerald { color: var(--sp-green); }
.text-rose { color: var(--sp-rose); }
.text-muted { color: var(--text-muted); }
.w-full { width: 100%; }

/* Responsive Visibility Helpers */
.hide-desktop { display: none !important; }
.hide-mobile { }
.hide-tablet { }

/* Ambient Dynamic Glow */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  transition: all 1.5s ease;
}
.orb-emerald {
  top: -100px;
  left: 20%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--sp-green), #065f46);
}
.orb-indigo {
  top: 30%;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--sp-purple), #312e81);
}
.orb-cyan {
  bottom: 60px;
  left: 25%;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, var(--sp-cyan), #1e3a8a);
}

/* ==========================================================================
   2. SPOTIFY CORE BUTTONS & UI CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(0.96); }

.btn-spotify-green, .btn-primary {
  background: var(--sp-green);
  color: #000000;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(30, 215, 96, 0.25);
}
.btn-spotify-green:hover, .btn-primary:hover {
  background: var(--sp-green-hover);
  box-shadow: 0 6px 20px rgba(30, 215, 96, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-bright);
  border: 1px solid var(--sp-border);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-bright);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-danger-glass {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 10px 18px;
  font-weight: 700;
  border-radius: var(--radius-pill);
}
.btn-danger-glass:hover {
  background: rgba(244, 63, 94, 0.24);
  color: #ffffff;
  border-color: rgba(244, 63, 94, 0.5);
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-subdued);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s;
}
.btn-link:hover {
  color: var(--text-bright);
  text-decoration: underline;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-bright);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}
.btn-outline:hover {
  border-color: #ffffff;
  transform: scale(1.04);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}
.btn-large {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Custom Spotify Dark Select Dropdown */
.spotify-select {
  background: #242424 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b3b3b3' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--text-bright);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 8px 32px 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: all 0.2s;
}
.spotify-select:hover {
  background-color: #2c2c2c;
  border-color: rgba(255, 255, 255, 0.25);
}
.spotify-select:focus {
  border-color: #ffffff;
}

/* Library Toolbar Controls */
.library-page-header {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.library-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.lib-title-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lib-badge-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sp-green);
}
.library-page-title {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0;
  line-height: 1.1;
}
.library-count-subtitle {
  font-size: 0.88rem;
  color: var(--text-subdued);
  font-weight: 500;
}
.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.lib-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lib-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-play-master {
  padding: 10px 22px;
  border-radius: 500px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(30, 215, 96, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-play-master:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(30, 215, 96, 0.5);
}
.lib-filter-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  transition: all 0.2s;
}
.lib-filter-box:focus-within {
  border-color: #ffffff;
  background: #2a2a2a;
}
.lib-filter-box svg { color: var(--text-subdued); flex-shrink: 0; }
.lib-filter-box input {
  background: transparent;
  border: none;
  color: var(--text-bright);
  font-size: 0.84rem;
  width: 150px;
  outline: none;
}
.lib-sort-dropdown-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-subdued);
}

.icon-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #242424;
  color: var(--text-subdued);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.icon-toggle-btn:hover {
  background: #2c2c2c;
  color: #ffffff;
}
.icon-toggle-btn.active {
  background: rgba(30, 215, 96, 0.15);
  color: var(--sp-green);
  border-color: var(--sp-green);
}

/* ==========================================================================
   3. FULL-SCREEN VIP AUTH GATE SCREEN
   ========================================================================== */
.auth-gate-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at top center, #1b281f 0%, #000000 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-gate-card {
  background: rgba(18, 18, 18, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(30, 215, 96, 0.12);
  width: 100%;
  max-width: 440px;
  padding: 36px 32px;
  text-align: center;
  backdrop-filter: blur(24px);
  animation: slideUpFade 0.4s var(--ease-spring);
}

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

.gate-logo-box {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.spotify-brand-logo {
  filter: drop-shadow(0 4px 16px rgba(30, 215, 96, 0.4));
}

.gate-header-text h1 {
  font-size: 1.85rem;
  margin-bottom: 6px;
}
.gate-made-by {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--sp-green);
  background: rgba(30, 215, 96, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sp-green);
  box-shadow: 0 0 8px var(--sp-green);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.gate-subtitle {
  font-size: 0.88rem;
  color: var(--text-subdued);
  margin-bottom: 24px;
  line-height: 1.4;
}

.gate-form .form-group {
  text-align: left;
  margin-bottom: 18px;
}
.gate-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-base);
}
.text-uppercase { text-transform: uppercase; letter-spacing: 0.05em; }

.activation-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-subdued);
}
.code-pill-btn {
  background: rgba(30, 215, 96, 0.15);
  color: var(--sp-green);
  border: 1px solid rgba(30, 215, 96, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: all 0.2s;
}
.code-pill-btn:hover {
  background: var(--sp-green);
  color: #000;
}
.gate-footer-notice {
  margin-top: 18px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Modern Clean Auth Gate Styles */
.gate-error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-sm);
  color: #f43f5e;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 18px;
  text-align: left;
  animation: fadeIn 0.2s ease;
}

/* ==========================================================================
   REFINED SPOTIFY LOGIN GATE: REMEMBER DEVICE & DISPLAY NAME
   ========================================================================== */
.gate-remember-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 20px;
  text-align: left;
  transition: all 0.2s ease;
}

.gate-remember-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.gate-remember-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.remember-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #ffffff;
}

.remember-sub {
  font-size: 0.74rem;
  color: var(--text-subdued);
}

/* Authentic Spotify Toggle Switch */
.sp-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.sp-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.sp-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #535353;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.sp-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.sp-switch input:checked + .sp-slider {
  background-color: var(--sp-green, #1ed760);
}

.sp-switch input:checked + .sp-slider:before {
  transform: translateX(18px);
}

/* ==========================================================================
   Form Input Elements with Icon & Focus Styles
   ========================================================================== */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-with-icon svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #888888;
  pointer-events: none;
  z-index: 3;
  transition: color 0.2s ease;
}

.input-with-icon:focus-within svg {
  color: var(--sp-green, #1ed760);
}

.input-with-icon input,
.spotify-input,
.gate-input {
  width: 100%;
  height: 52px;
  padding-left: 48px !important;
  padding-right: 18px;
  background-color: #242424 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 0.96rem;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.input-with-icon input:focus,
.spotify-input:focus,
.gate-input:focus {
  background-color: #282828 !important;
  border-color: var(--sp-green, #1ed760) !important;
  box-shadow: 0 0 0 3px rgba(30, 215, 96, 0.25) !important;
}

.input-with-icon input::placeholder,
.spotify-input::placeholder,
.gate-input::placeholder {
  color: #727272;
}

.input-lg {
  height: 52px !important;
  font-size: 1rem !important;
}

.input-sm {
  height: 38px !important;
  font-size: 0.85rem !important;
}

/* New Listener Onboarding Modal (Permanent Key Binding) */
.modal-card-onboarding {
  max-width: 440px !important;
  width: 90%;
  text-align: center;
  padding: 40px 32px 36px 32px;
  background: #181818 !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(30, 215, 96, 0.15) !important;
  animation: slideUpFade 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.modal-card-onboarding::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(30, 215, 96, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.onboarding-icon-box {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(30, 215, 96, 0.12);
  border: 1.5px solid rgba(30, 215, 96, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px auto;
  box-shadow: 0 0 30px rgba(30, 215, 96, 0.32);
  position: relative;
}

.onboarding-icon-box img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.onboarding-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.025em;
}

.onboarding-desc {
  font-size: 0.88rem;
  color: #a7a7a7;
  line-height: 1.5;
  margin-bottom: 26px;
  padding: 0 4px;
}

.onboarding-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.onboarding-form .btn-spotify-green {
  height: 52px;
  border-radius: 500px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--sp-green, #1ed760);
  color: #000000;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 20px rgba(30, 215, 96, 0.3);
}

.onboarding-form .btn-spotify-green:hover {
  transform: scale(1.02);
  background-color: #1fdf64;
  box-shadow: 0 8px 26px rgba(30, 215, 96, 0.45);
}

.onboarding-form .btn-spotify-green:active {
  transform: scale(0.98);
}

/* ==========================================================================
   4. MASTER 3-COLUMN SPOTIFY DESKTOP & MOBILE LAYOUT
   ========================================================================== */
.spotify-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr var(--right-panel-width);
  grid-template-rows: 1fr var(--player-height);
  grid-template-areas:
    "sidebar main right"
    "player  player player";
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 100%;
  padding: 8px 8px 0 8px;
  gap: 8px;
  background-color: var(--sp-black);
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  transition: grid-template-rows 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.spotify-layout.player-hidden {
  grid-template-rows: 1fr 0px;
  padding-bottom: 8px;
}

body:not(.is-resizing-panels) .spotify-layout {
  transition: grid-template-columns 0.22s cubic-bezier(0.25, 1, 0.5, 1), grid-template-rows 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.spotify-layout.right-panel-collapsed {
  grid-template-columns: var(--sidebar-width) 1fr 0px;
}
.spotify-layout.right-panel-collapsed .spotify-right-sidebar {
  display: none;
}

.spotify-layout.right-panel-maximized {
  --right-panel-width: min(580px, 46vw);
}
.spotify-layout.right-panel-maximized #maximizeRightIcon {
  transform: rotate(180deg);
}

/* === SIDEBAR TRANSITION (both expand and collapse animate smoothly) === */
.spotify-sidebar {
  transition: width 0.28s cubic-bezier(0.25, 1, 0.5, 1);
}
.spotify-sidebar .brand-text-title,
.spotify-sidebar .nav-text,
.spotify-sidebar .library-header span,
.spotify-sidebar .library-header-actions,
.spotify-sidebar .sidebar-bottom-bar,
.spotify-sidebar .library-filter-chips,
.spotify-sidebar .library-search-row,
.spotify-sidebar .item-details,
.spotify-sidebar .sidebar-action-pill,
.spotify-sidebar .sidebar-user-pill .user-info-text,
.spotify-sidebar .sidebar-user-pill .icon-round-btn {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* === SIDEBAR COLLAPSED STATE === */
.spotify-layout.sidebar-collapsed {
  --sidebar-width: 72px;
}

/* Hide all text labels and secondary elements */
.spotify-layout.sidebar-collapsed .brand-text-title,
.spotify-layout.sidebar-collapsed .nav-text,
.spotify-layout.sidebar-collapsed .library-header span,
.spotify-layout.sidebar-collapsed #sidebarCreatePlaylistBtn,
.spotify-layout.sidebar-collapsed .sidebar-bottom-bar,
.spotify-layout.sidebar-collapsed .library-filter-chips,
.spotify-layout.sidebar-collapsed .library-search-row,
.spotify-layout.sidebar-collapsed .item-details,
.spotify-layout.sidebar-collapsed .sidebar-action-pill,
.spotify-layout.sidebar-collapsed .sidebar-user-pill .user-info-text,
.spotify-layout.sidebar-collapsed .sidebar-user-pill .icon-round-btn {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

/* Sidebar boxes: compact centered padding */
.spotify-layout.sidebar-collapsed .sidebar-box {
  padding: 12px 8px;
  align-items: center;
}

/* Brand header: center logo only */
.spotify-layout.sidebar-collapsed .spotify-brand-header {
  justify-content: center;
  gap: 0;
}
.spotify-layout.sidebar-collapsed .brand-logo-img {
  width: 36px;
  height: 36px;
}

/* Primary nav: center icons, enlarge hit area */
.spotify-layout.sidebar-collapsed .primary-nav-links {
  align-items: center;
}
.spotify-layout.sidebar-collapsed .primary-nav-links .nav-link-btn {
  justify-content: center;
  padding: 12px 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  gap: 0;
  position: relative;
}
.spotify-layout.sidebar-collapsed .primary-nav-links .nav-link-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.spotify-layout.sidebar-collapsed .primary-nav-links .nav-link-btn .nav-icon {
  width: 26px;
  height: 26px;
}

/* Library header: center icon only in collapsed mode */
.spotify-layout.sidebar-collapsed .library-header {
  justify-content: center;
  padding: 4px 0;
}
.spotify-layout.sidebar-collapsed .library-header-actions {
  display: none !important;
}
.spotify-layout.sidebar-collapsed .library-header-btn {
  justify-content: center;
  gap: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 0;
}
.spotify-layout.sidebar-collapsed .library-header-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.spotify-layout.sidebar-collapsed .library-header-btn svg {
  width: 26px;
  height: 26px;
}

/* Library items: show artwork only, centered */
.spotify-layout.sidebar-collapsed .sidebar-library-list {
  align-items: center;
  gap: 4px;
  padding: 0 4px;
}
.spotify-layout.sidebar-collapsed .library-item {
  justify-content: center;
  padding: 6px 0;
  gap: 0;
  width: 48px;
  border-radius: var(--radius-xs);
  position: relative;
}
.spotify-layout.sidebar-collapsed .library-item:hover {
  background: rgba(255, 255, 255, 0.1);
}
.spotify-layout.sidebar-collapsed .item-artwork {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
}
.spotify-layout.sidebar-collapsed .liked-songs-artwork {
  width: 40px;
  height: 40px;
}

/* Library box: shrink padding */
.spotify-layout.sidebar-collapsed .sidebar-library-box {
  padding: 8px 4px;
  gap: 6px;
}

/* User pill in collapsed mode: just show avatar */
.spotify-layout.sidebar-collapsed .sidebar-user-pill {
  justify-content: center;
  padding: 4px;
  gap: 0;
  background: transparent;
}

/* === COLLAPSED SIDEBAR BOTTOM ACTION BAR === */
/* Hidden by default, only visible in collapsed mode */
.sidebar-collapsed-actions {
  display: none;
}
.spotify-layout.sidebar-collapsed .sidebar-collapsed-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.collapsed-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #b3b3b3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.collapsed-action-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: scale(1.08);
}
.collapsed-action-btn:active {
  transform: scale(0.94);
}

/* Expand button arrow in normal mode: points LEFT (collapse) */
#sidebarExpandBtn svg {
  transform: rotate(180deg);
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hide left resizer when collapsed */
.spotify-layout.sidebar-collapsed .left-resizer {
  display: none !important;
}

/* === COLLAPSED SIDEBAR TOOLTIPS (CSS-only) === */
.spotify-layout.sidebar-collapsed .nav-link-btn::after,
.spotify-layout.sidebar-collapsed .library-header-btn::after,
.spotify-layout.sidebar-collapsed .library-item::after {
  content: attr(title);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: #282828;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: opacity 0.15s ease, transform 0.15s ease;
  font-family: var(--font-main);
}
.spotify-layout.sidebar-collapsed .nav-link-btn:hover::after,
.spotify-layout.sidebar-collapsed .library-header-btn:hover::after,
.spotify-layout.sidebar-collapsed .library-item:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Tooltip arrow */
.spotify-layout.sidebar-collapsed .nav-link-btn::before,
.spotify-layout.sidebar-collapsed .library-header-btn::before,
.spotify-layout.sidebar-collapsed .library-item::before {
  content: '';
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #282828;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
  transition: opacity 0.15s ease;
}
.spotify-layout.sidebar-collapsed .nav-link-btn:hover::before,
.spotify-layout.sidebar-collapsed .library-header-btn:hover::before,
.spotify-layout.sidebar-collapsed .library-item:hover::before {
  opacity: 1;
}

/* ==========================================================================
   Draggable Panel Resizers
   ========================================================================== */
.panel-resizer {
  position: absolute;
  top: 8px;
  bottom: calc(var(--player-height) + 8px);
  width: 14px;
  cursor: col-resize;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
}

.left-resizer {
  left: calc(var(--sidebar-width) + 1px);
}

.right-resizer {
  right: calc(var(--right-panel-width) + 1px);
}

.panel-resizer::after {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  transition: background 0.15s ease, width 0.15s ease, box-shadow 0.15s ease;
}

.panel-resizer:hover::after,
.panel-resizer.is-dragging::after {
  background: var(--sp-green);
  width: 3px;
  box-shadow: 0 0 10px rgba(30, 215, 96, 0.8);
}

.spotify-layout.right-panel-collapsed .right-resizer {
  display: none !important;
}

@media (max-width: 1024px) {
  .panel-resizer {
    display: none !important;
  }
}

body.is-resizing-panels,
body.is-resizing-panels * {
  cursor: col-resize !important;
  user-select: none !important;
}

.right-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 4px;
}

.right-panel-action-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  max-width: 28px;
  max-height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b3b3b3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 !important;
  margin: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
}

.right-panel-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.right-panel-action-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.28);
}

.right-panel-action-btn svg,
.right-panel-action-btn .panel-action-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
  display: block;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.spotify-layout.right-panel-maximized #maximizeRightSidebarBtn {
  background: rgba(30, 215, 96, 0.2);
  border-color: rgba(30, 215, 96, 0.4);
  color: var(--sp-green);
}

/* ==========================================================================
   5. LEFT SIDEBAR (SPOTIFY BRAND, NAV & YOUR LIBRARY)
   ========================================================================== */
.spotify-sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.sidebar-box {
  background-color: var(--sp-bg-base);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.sidebar-top-box {
  gap: 16px;
  flex-shrink: 0;
}

.spotify-brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.spotify-brand-header:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.brand-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(30, 215, 96, 0.35);
  transition: transform 0.2s var(--ease-spring);
  display: block;
}
.spotify-brand-header:hover .brand-logo-img {
  transform: scale(1.06);
}
.gate-brand-logo-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(29, 185, 84, 0.6);
  display: block;
  margin: 0 auto;
}
.brand-text-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.brand-badge-nour {
  background: var(--sp-green);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.primary-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-link-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  background: none;
  border: none;
  color: var(--text-subdued);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
  text-align: left;
}
.nav-link-btn:hover {
  color: var(--text-bright);
}
.nav-link-btn.active {
  color: var(--text-bright);
}
.nav-link-btn.active svg {
  color: var(--sp-green);
}

/* Sidebar Library Box */
.sidebar-library-box {
  flex: 1;
  min-height: 0;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
}
.library-header-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  color: var(--text-subdued);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}
.library-header-btn:hover { color: var(--text-bright); }
.library-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.library-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
}
.library-filter-chips:active {
  cursor: grabbing;
}
.filter-chip {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-bright);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.filter-chip:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.filter-chip.active {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  border-color: #ffffff;
}

.library-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}
.lib-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border-radius: var(--radius-xs);
  padding: 4px 8px;
  flex: 1;
}
.lib-search-input-wrap input {
  background: transparent;
  border: none;
  color: var(--text-bright);
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  width: 100%;
}
.lib-search-input-wrap svg { color: var(--text-subdued); }
.lib-sort-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  transition: color 0.2s;
}
.lib-sort-btn:hover { color: var(--text-bright); }

/* Scrollable Library List */
.sidebar-library-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.library-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background-color 0.2s;
}
.library-item:hover {
  background-color: var(--sp-bg-card-hover);
}
.library-item.active {
  background-color: var(--sp-bg-elevated);
}

.item-artwork {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: var(--sp-bg-card);
  overflow: hidden;
}
.item-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.liked-songs-artwork {
  background: linear-gradient(135deg, var(--sp-purple), var(--sp-purple-light));
}
.master-library-artwork {
  background: rgba(30, 215, 96, 0.12);
  border: 1px solid rgba(30, 215, 96, 0.3);
}

.item-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-subtitle {
  font-size: 0.78rem;
  color: var(--text-subdued);
  display: flex;
  align-items: center;
  gap: 4px;
}
.pin-icon { flex-shrink: 0; }

/* Sidebar Footer */
.sidebar-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.sidebar-action-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(30, 215, 96, 0.12), rgba(30, 215, 96, 0.04));
  color: var(--sp-green);
  border: 1px solid rgba(30, 215, 96, 0.28);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.25s var(--ease-spring);
}
.sidebar-action-pill:hover {
  background: linear-gradient(135deg, rgba(30, 215, 96, 0.22), rgba(30, 215, 96, 0.1));
  border-color: var(--sp-green);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(30, 215, 96, 0.3);
  color: #fff;
}
.sidebar-action-pill:active {
  transform: scale(0.98);
}
.sidebar-user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}
.sidebar-user-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e1e24, #2c2c36);
  border: 1.5px solid rgba(30, 215, 96, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-green);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.user-info-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.user-info-text .user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.user-badge-role {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sp-green);
  display: flex;
  align-items: center;
  gap: 3px;
}
.sidebar-user-pill .icon-round-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-subdued);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-spring);
  flex-shrink: 0;
}
.sidebar-user-pill .icon-round-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: rotate(45deg);
}

/* ==========================================================================
   6. CENTER MAIN STAGE & STICKY TOPBAR
   ========================================================================== */
.spotify-main-stage {
  grid-area: main;
  background-color: var(--sp-bg-base);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Top Sticky Bar */
.spotify-topbar {
  height: var(--topbar-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(18, 18, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.history-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.history-circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  border: none;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}
.history-circle-btn:hover {
  background-color: rgba(0, 0, 0, 0.9);
  transform: scale(1.06);
}
.history-circle-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.topbar-search-box {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 380px;
  width: 100%;
  height: 40px;
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 500px;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.topbar-search-box:hover {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.2);
}
.topbar-search-box:focus-within {
  background: #242424;
  border-color: #ffffff;
  box-shadow: 0 0 0 1px #ffffff;
}
.topbar-search-box .search-lens-icon {
  position: absolute;
  left: 12px;
  color: var(--text-subdued);
  pointer-events: none;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-search-box:focus-within .search-lens-icon {
  color: #ffffff;
}
.topbar-search-box input {
  width: 100%;
  height: 100%;
  background: transparent !important;
  border: none !important;
  border-radius: 500px !important;
  padding: 0 40px 0 38px !important;
  color: var(--text-bright) !important;
  font-size: 0.88rem !important;
  font-family: inherit !important;
  outline: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
.topbar-search-box input::placeholder {
  color: var(--text-subdued);
  opacity: 0.85;
}
.search-clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-clear-btn:hover {
  color: #ffffff;
}
.search-shortcut-badge {
  position: absolute;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-subdued);
  pointer-events: none;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.topbar-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  color: #000000;
  font-size: 0.82rem;
  font-weight: 700;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  width: auto !important;
  min-width: unset !important;
  max-width: fit-content !important;
  transition: transform 0.2s, background-color 0.2s;
}
.topbar-pill-btn:hover {
  transform: scale(1.04);
}
.btn-vip-gold {
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 700;
  border: none;
  width: auto !important;
}
.btn-vip-gold:hover {
  background: #f0f0f0 !important;
}
.icon-round-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: var(--text-subdued);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}
.icon-round-btn:hover {
  color: var(--text-bright);
  transform: scale(1.06);
  background: rgba(0, 0, 0, 0.9);
}
.user-avatar-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  background: #1f1f1f;
  border: none;
  padding: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.user-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #2e2e2e;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Scrollable Main Content Container */
.tab-content-container {
  flex: 1;
  overflow-y: auto;
  position: relative;
}

.tab-pane {
  display: none;
  min-height: 100%;
  animation: fadeIn 0.25s ease;
}
.tab-pane.active {
  display: block;
}

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

/* ==========================================================================
   7. TAB 1: SPOTIFY HOME VIEW & SHELVES
   ========================================================================== */
.view-dynamic-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 320px;
  background: linear-gradient(180deg, rgba(30, 215, 96, 0.28) 0%, rgba(18, 18, 18, 0) 100%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.8s ease;
}

.home-content-inner {
  position: relative;
  z-index: 1;
  padding: 16px 24px 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.home-greeting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home-greeting-text {
  font-size: 2rem;
  font-weight: 800;
}
.home-chips-row {
  display: flex;
  gap: 8px;
}
.chip-filter-pill {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-bright);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
}
.chip-filter-pill.active {
  background: var(--text-bright);
  color: #000;
}

/* Spotify 6-Card Quick Access Grid */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-access-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xs);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.quick-access-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.qa-art-box {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.qa-gradient-purple { background: linear-gradient(135deg, var(--sp-purple), #9333ea); }
.qa-gradient-emerald { background: linear-gradient(135deg, #059669, var(--sp-green)); }
.qa-gradient-rose { background: linear-gradient(135deg, #e11d48, #f43f5e); }
.qa-gradient-cyan { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.qa-gradient-indigo { background: linear-gradient(135deg, #4338ca, #6366f1); }
.qa-gradient-amber { background: linear-gradient(135deg, #d97706, #f59e0b); }

.qa-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-bright);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

/* Floating Hover Play Button */
.qa-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sp-green);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), 0 0 16px rgba(30, 215, 96, 0.4);
  opacity: 0;
  transform: translateY(6px) scale(0.85);
  transition: all 0.25s var(--ease-spring);
  cursor: pointer;
}
.quick-access-card:hover .qa-play-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.qa-play-btn:hover {
  background: var(--sp-green-hover);
  transform: scale(1.1) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 24px rgba(30, 215, 96, 0.6);
}

/* Shelf Sections & Spotify Cards */
.shelf-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.shelf-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.shelf-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.shelf-show-all-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
}
.shelf-show-all-btn:hover {
  text-decoration: underline;
  color: var(--text-bright);
}

.shelf-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 20px;
}

.spotify-card {
  background: #18181c;
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.spotify-card:hover {
  background: #24242c;
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.card-art-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xs);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  background-color: #242428;
}
.card-art-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.spotify-card.artist-card {
  overflow: visible !important;
}
.spotify-card.artist-card .card-art-box {
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
  background: transparent !important;
  position: relative !important;
}
.spotify-card.artist-card .card-art-box img {
  border-radius: 50% !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.spotify-card.artist-card .card-play-btn {
  right: 8px !important;
  bottom: 8px !important;
  z-index: 10 !important;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50% !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(30, 215, 96, 0.5) !important;
}

.card-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sp-green);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 12px;
  bottom: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(30, 215, 96, 0.4);
  opacity: 0;
  transform: translateY(8px) scale(0.85);
  transition: all 0.25s var(--ease-spring);
  cursor: pointer;
}
.spotify-card:hover .card-play-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.card-play-btn:hover {
  background: var(--sp-green-hover);
  transform: scale(1.1) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(30, 215, 96, 0.65);
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.card-subtitle {
  font-size: 0.82rem;
  color: var(--text-subdued);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.card-mix-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(12, 12, 16, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--sp-green);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(30, 215, 96, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 4;
}

.empty-made-for-you-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  padding: 22px 24px;
  border-radius: 12px;
  transition: border-color 0.2s ease;
}
.empty-made-for-you-banner:hover {
  border-color: rgba(30, 215, 96, 0.3);
}

/* ==========================================================================
   8. TAB 2: SPOTIFY SEARCH & BROWSE CATEGORIES
   ========================================================================== */
.search-view-container {
  padding: 16px 24px 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.browse-main-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.categories-vibrant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.genre-tile {
  height: 180px;
  border-radius: var(--radius-sm);
  padding: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring);
}
.genre-tile:hover {
  transform: scale(1.03);
}
.genre-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.genre-art-wrap {
  position: absolute;
  right: -12px;
  bottom: -6px;
  transform: rotate(25deg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   8.4 SPOTIFY SEARCH VIEW & SPOTLIGHT LAYOUT
   ========================================================================== */
.search-filter-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.search-filter-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  color: var(--text-bright);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.search-filter-pill:hover {
  background: rgba(255, 255, 255, 0.14);
}
.search-filter-pill.active {
  background: var(--text-bright);
  color: #000;
  border-color: var(--text-bright);
}

.search-top-row {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 28px;
  margin-bottom: 36px;
}
.section-heading {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #fff;
}

.top-result-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  min-height: 240px;
  overflow: hidden;
}
.top-result-card:hover {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}
.top-result-art {
  width: 104px;
  height: 104px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: border-radius 0.25s ease;
}
.top-result-art.is-artist {
  border-radius: 50%;
}
.top-result-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 4px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-subdued);
}
.badge-tag {
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.top-result-artist-link {
  color: #b3b3b3;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}
.top-result-artist-link:hover {
  color: #fff;
  text-decoration: underline;
}

.top-result-card .spotify-play-btn-large,
.top-result-card #topResultPlayBtn {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: var(--sp-green);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(30, 215, 96, 0.4);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s cubic-bezier(0.3, 0, 0, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}
.top-result-card:hover .spotify-play-btn-large,
.top-result-card:hover #topResultPlayBtn,
.top-result-card.is-playing .spotify-play-btn-large,
.top-result-card.is-playing #topResultPlayBtn {
  opacity: 1;
  transform: translateY(0);
}
.top-result-card .spotify-play-btn-large:hover,
.top-result-card #topResultPlayBtn:hover {
  transform: scale(1.08) !important;
  background: var(--sp-green-hover);
  box-shadow: 0 12px 32px rgba(30, 215, 96, 0.6);
}

/* Mini Songs List (Right Column) */
.mini-songs-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mini-song-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.mini-song-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.mini-song-item.active-playing {
  background: rgba(30, 215, 96, 0.1);
}
.mini-song-item.active-playing .mini-song-title {
  color: #1ed760 !important;
}
.mini-song-art-box {
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.mini-song-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mini-song-hover-play {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.mini-song-item:hover .mini-song-hover-play {
  opacity: 1;
}
.mini-song-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.mini-song-artist {
  font-size: 0.8rem;
  color: #b3b3b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color 0.2s;
}
.mini-song-artist:hover {
  color: #fff;
  text-decoration: underline;
}
.mini-song-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.mini-song-dur {
  font-size: 0.82rem;
  color: #b3b3b3;
  font-variant-numeric: tabular-nums;
}

.stream-badge-sleek {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   8.5 SPOTIFY HERO BANNERS & ACTION TOOLBARS (PLAYLISTS, CLOUD LIBRARY, LIKED SONGS)
   ========================================================================== */
.playlist-page-container, .library-view-container {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-bottom: 40px;
  position: relative;
}

.playlist-hero-banner {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  padding: 40px 32px 28px 32px;
  min-height: 280px;
  position: relative;
  transition: background 0.4s ease;
}

.hero-library-gradient {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.45) 0%, rgba(6, 78, 59, 0.25) 50%, var(--sp-bg-base) 100%);
}

.hero-liked-gradient {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.5) 0%, rgba(76, 29, 149, 0.3) 50%, var(--sp-bg-base) 100%);
}

.hero-recent-gradient {
  background: linear-gradient(180deg, rgba(30, 215, 96, 0.42) 0%, rgba(15, 80, 40, 0.25) 50%, var(--sp-bg-base) 100%);
}

.playlist-hero-banner:not(.hero-library-gradient):not(.hero-liked-gradient):not(.hero-recent-gradient) {
  background: linear-gradient(180deg, rgba(29, 185, 84, 0.3) 0%, rgba(18, 18, 18, 0.65) 50%, var(--sp-bg-base) 100%);
}

.playlist-cover-box {
  width: 210px;
  height: 210px;
  min-width: 210px;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #242428;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.library-hero-art {
  background: linear-gradient(135deg, #0d9488 0%, #059669 60%, #064e3b 100%);
  box-shadow: 0 20px 50px rgba(13, 148, 136, 0.4), 0 8px 30px rgba(0, 0, 0, 0.8);
}

.liked-songs-hero-art {
  background: linear-gradient(135deg, #450af5 0%, #8e8ee5 100%);
  box-shadow: 0 20px 50px rgba(69, 10, 245, 0.4), 0 8px 30px rgba(0, 0, 0, 0.8);
}

.recent-songs-hero-art {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.4), 0 8px 30px rgba(0, 0, 0, 0.8);
}

.collage-grid-4 {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  background: #18181c;
}
.collage-grid-4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-full-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vinyl-art-display {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #10b981 0%, #047857 40%, #064e3b 80%, #022c22 100%);
}

.playlist-meta-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.playlist-type-tag {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.playlist-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #ffffff;
  margin: 2px 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.playlist-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 4px;
}

.playlist-creator-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}

.creator-avatar-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sp-green);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.creator-name {
  font-weight: 700;
  color: #ffffff;
}

.meta-dot {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

/* Master Action Toolbar */
.playlist-action-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 32px 16px 32px;
  position: relative;
  background: transparent;
}

.spotify-play-btn-large {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 50%;
  background: var(--sp-green);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(30, 215, 96, 0.45);
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), background-color 0.2s, box-shadow 0.2s;
}

.spotify-play-btn-large:hover {
  background: var(--sp-green-hover);
  transform: scale(1.08);
  box-shadow: 0 10px 34px rgba(30, 215, 96, 0.65);
}

.icon-round-btn-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-subdued);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.icon-round-btn-lg:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.08);
}

.action-bar-spacer {
  flex: 1;
}

.lib-filter-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 200px;
}

.lib-filter-box svg {
  position: absolute;
  left: 12px;
  color: var(--text-subdued);
  pointer-events: none;
}

.lib-filter-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 36px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s;
}

.lib-filter-box input:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  width: 240px;
}

.lib-sort-dropdown-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-subdued);
}

.spotify-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 0.84rem;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}

.spotify-select:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   9. SPOTIFY TABLES (TRACKS LIST VIEW - LUXURY 2026 EDITION)
   ========================================================================== */
.spotify-table-container {
  width: 100%;
  padding: 0 32px 32px 32px;
  overflow-x: auto;
  position: relative;
}

.spotify-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  table-layout: fixed;
  text-align: left;
}

.spotify-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.spotify-table thead tr {
  height: 40px;
}

.spotify-table th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-subdued);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 14px;
  vertical-align: middle !important;
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  white-space: nowrap !important;
  user-select: none;
  height: 40px;
}

.spotify-table th:first-child {
  border-top-left-radius: var(--radius-xs);
  border-bottom-left-radius: var(--radius-xs);
}

.spotify-table th:last-child {
  border-top-right-radius: var(--radius-xs);
  border-bottom-right-radius: var(--radius-xs);
}

.th-num { width: 48px; min-width: 48px; text-align: center; }
.th-title { width: 42%; }
.th-album { width: 22%; }
.th-plays { width: 18%; }
.th-date { width: 16%; }
.th-duration, .td-duration { width: 70px; min-width: 70px; text-align: right; font-family: var(--font-mono); font-size: 0.82rem; }
.th-actions, .td-actions-cell { width: 85px; min-width: 85px; text-align: right; }

.spotify-table tbody tr {
  height: 56px;
  cursor: pointer;
  background: transparent;
  transition: background-color 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.spotify-table tbody tr td:first-child {
  border-top-left-radius: var(--radius-xs);
  border-bottom-left-radius: var(--radius-xs);
}

.spotify-table tbody tr td:last-child {
  border-top-right-radius: var(--radius-xs);
  border-bottom-right-radius: var(--radius-xs);
}

.spotify-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.spotify-table tbody tr:active {
  transform: scale(0.998);
}

.spotify-table tbody tr.active-playing {
  background: rgba(30, 215, 96, 0.12) !important;
  box-shadow: inset 3px 0 0 var(--sp-green);
}

.spotify-table tbody tr.active-playing:hover {
  background: rgba(30, 215, 96, 0.18) !important;
}

.spotify-table td {
  padding: 0 14px;
  height: 56px;
  font-size: 0.88rem;
  color: var(--text-subdued);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle !important;
  box-sizing: border-box;
}

/* Table Track # & Soundwave Animation */
td.td-num-box {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  text-align: center;
  vertical-align: middle !important;
  padding: 0 !important;
}

.row-index-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  color: var(--text-subdued);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-mono);
  line-height: 1;
  vertical-align: middle;
}

.row-hover-play-btn {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  vertical-align: middle;
  margin: 0 auto;
  padding: 0;
  transition: transform 0.18s var(--ease-spring), color 0.18s;
}

.spotify-table tbody tr:hover .row-index-num {
  display: none !important;
}

.spotify-table tbody tr:hover .row-hover-play-btn {
  display: inline-flex !important;
}

.row-hover-play-btn:hover {
  transform: scale(1.15);
  color: var(--sp-green);
}

/* 4-Bar Sound Wave Equalizer for Active Playing Track */
.sound-wave-eq {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
  height: 16px;
  width: 18px;
  vertical-align: middle;
  margin: 0 auto;
}

.sound-wave-eq span {
  width: 3px;
  background: var(--sp-green);
  border-radius: 2px;
  animation: eqBarPulse 0.9s ease-in-out infinite alternate;
}

.sound-wave-eq span:nth-child(1) { height: 50%; animation-delay: 0.05s; animation-duration: 0.85s; }
.sound-wave-eq span:nth-child(2) { height: 100%; animation-delay: 0.25s; animation-duration: 1.1s; }
.sound-wave-eq span:nth-child(3) { height: 35%; animation-delay: 0.15s; animation-duration: 0.75s; }
.sound-wave-eq span:nth-child(4) { height: 75%; animation-delay: 0.35s; animation-duration: 0.95s; }

@keyframes eqBarPulse {
  0% { height: 20%; transform: scaleY(0.4); }
  100% { height: 100%; transform: scaleY(1); }
}

/* Track Title & Artist Cell */
.track-title-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: 48px;
}

.track-thumb {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 4px !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
  flex-shrink: 0 !important;
  background: #242428;
  display: block !important;
}

.track-text-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}

.track-name-main {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.spotify-table tr.active-playing .track-name-main {
  color: var(--sp-green) !important;
  font-weight: 700;
}

.track-artist-sub {
  font-size: 0.8rem;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  display: inline-block;
  max-width: 100%;
  line-height: 1.25;
  transition: color 0.15s ease;
}

.track-artist-sub:hover {
  text-decoration: underline !important;
  color: #ffffff !important;
}

/* Action Icons Cell */
td.td-actions-cell {
  vertical-align: middle !important;
  text-align: right;
  padding-right: 14px !important;
  padding-left: 0 !important;
  width: 85px;
  min-width: 85px;
}

.row-heart-btn, .row-more-btn, .row-delete-song-btn {
  background: transparent;
  border: none;
  color: var(--text-subdued);
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  vertical-align: middle;
  padding: 0;
  margin: 0;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.row-heart-btn {
  opacity: 0;
}

.row-heart-btn.is-active {
  opacity: 1 !important;
  color: var(--sp-green) !important;
}

.spotify-table tr:hover .row-heart-btn {
  opacity: 0.85;
}

.row-heart-btn:hover {
  opacity: 1 !important;
  color: #ffffff;
  transform: scale(1.15);
}

.row-heart-btn.is-active:hover {
  color: var(--sp-green) !important;
  transform: scale(1.15);
}

.heart-pop-anim {
  animation: heartPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.row-more-btn {
  opacity: 0;
}

.spotify-table tr:hover .row-more-btn {
  opacity: 0.85;
}

.row-more-btn:hover {
  opacity: 1 !important;
  color: #ffffff;
  transform: scale(1.15);
}

.row-delete-song-btn {
  opacity: 0;
}

.spotify-table tr:hover .row-delete-song-btn {
  opacity: 0.85;
}

.row-delete-song-btn:hover {
  opacity: 1 !important;
  color: var(--sp-rose);
  transform: scale(1.15);
}

/* Batch Select Bar */
.batch-action-bar {
  background: #242424;
  border: 1px solid var(--sp-border);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.batch-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--sp-green);
}
.batch-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   10. TAB 4 & 5: DEDICATED PLAYLIST & LIKED SONGS PAGES & RECOMMENDATIONS
   ========================================================================== */
.playlist-recommended-section {
  padding: 32px 32px 48px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 24px;
}

.rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.rec-main-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.rec-sub-title {
  font-size: 0.85rem;
  color: var(--text-subdued);
}

.rec-tracks-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rec-track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-radius: 6px;
  background: transparent;
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.rec-track-row:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.rec-track-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.rec-art-wrap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  background: #282828;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.rec-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.rec-track-row:hover .rec-play-overlay {
  display: flex;
}

.rec-track-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

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

.rec-track-row:hover .rec-track-title {
  color: var(--sp-green);
}

.rec-track-artist {
  font-size: 0.8rem;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rec-track-mid {
  color: var(--text-subdued);
  font-size: 0.84rem;
  min-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rec-track-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rec-track-duration {
  font-size: 0.84rem;
  color: var(--text-subdued);
  min-width: 45px;
  text-align: right;
}

.btn-rec-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-rec-add:hover {
  border-color: #ffffff;
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
}

.btn-rec-added {
  border-color: var(--sp-green);
  background: rgba(30, 215, 96, 0.15);
  color: var(--sp-green);
  cursor: default;
}

/* ==========================================================================
   11. TAB 6: ARTIST DETAIL PAGE
   ========================================================================== */
.artist-page-container {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.artist-hero-cover-box {
  width: 210px;
  height: 210px;
  min-width: 210px;
  background: #181818;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 8px 30px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-sm, 6px);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.artist-hero-cover-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.artist-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: fit-content;
}
.artist-page-name {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  word-break: break-word;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
  margin: 0;
}
.artist-monthly-listeners {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin: 0;
}

.artist-action-row {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn.btn-outline.btn-round {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn.btn-outline.btn-round:hover {
  border-color: #fff;
  transform: scale(1.04);
}
.btn.btn-outline.btn-round.is-following {
  border-color: var(--sp-green);
  color: var(--sp-green);
  background: rgba(30, 215, 96, 0.12);
}

.artist-section-block {
  padding: 0 32px 36px 32px;
}

.artist-section-block .spotify-table-container {
  padding: 0 0 16px 0;
}

/* Artist Plays Column */
.th-plays { width: 16%; }
.td-plays {
  font-size: 0.85rem;
  color: var(--text-subdued);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Artist Load More Button */
.artist-load-more-container {
  display: flex;
  justify-content: center;
  padding: 8px 0 24px 0;
}

.btn-artist-load-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: var(--font-body);
}

.btn-artist-load-more:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-artist-load-more:active {
  transform: scale(0.98);
}

.btn-artist-load-more:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinBtn 0.7s linear infinite;
}

@keyframes spinBtn {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   12. TAB 7: DOWNLOADER & TAB 8: ADMIN PORTAL
   ========================================================================== */
.downloader-page-container, .admin-portal-container {
  padding: 24px 28px;
}
.downloader-card-box {
  background: var(--sp-bg-card);
  border-radius: var(--radius-md);
  padding: 36px;
  border: 1px solid var(--sp-border);
}
.dl-badge {
  display: inline-block;
  background: rgba(30, 215, 96, 0.12);
  color: var(--sp-green);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.dl-title { font-size: 2rem; margin-bottom: 8px; }
.dl-subtitle { color: var(--text-subdued); margin-bottom: 24px; }

.dl-input-row {
  display: flex;
  gap: 12px;
}
.dl-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.dl-input-wrap svg {
  position: absolute;
  left: 16px;
  color: var(--text-subdued);
}
.dl-input-wrap input {
  width: 100%;
  background: #282828;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 14px 18px 14px 46px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}
.dl-input-wrap input:focus {
  border-color: #fff;
}

/* Dropzone Styling */
.dropzone-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  border: 2px dashed rgba(30, 215, 96, 0.4);
  background: rgba(30, 215, 96, 0.04);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  gap: 8px;
}
.dropzone-box:hover, .dropzone-box.dragover {
  border-color: var(--sp-green);
  background: rgba(30, 215, 96, 0.1);
}
.dropzone-box h4 {
  font-size: 1.05rem;
  color: #ffffff;
}
.dropzone-box p {
  font-size: 0.84rem;
  color: var(--text-subdued);
  margin-bottom: 8px;
}
.upload-progress-box {
  margin-top: 16px;
  padding: 12px;
  background: #1e1e1e;
  border-radius: var(--radius-xs);
  text-align: center;
  font-size: 0.88rem;
  color: var(--sp-green);
  font-weight: 700;
}

/* PWA Guide Steps */
.pwa-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1e1e1e;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--sp-border);
}
.step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--sp-green);
  color: #000;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.step-desc {
  font-size: 0.88rem;
  color: var(--text-base);
  line-height: 1.4;
}
.step-desc strong {
  color: #ffffff;
}

/* QR Modal Layout */
.qr-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.qr-code-box-wrap {
  width: 200px;
  height: 200px;
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}
.qr-code-box-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   12. ADMIN PORTAL LUXURY SPACIOUS STYLING (UN-STICKY & EXPANSIVE)
   ========================================================================== */
.admin-portal-container {
  padding: 8px 16px 60px 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.admin-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-brand-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-badge-gold {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #fbbf24;
  display: inline-block;
  margin-bottom: 2px;
}
.admin-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin: 0;
}
.admin-subtitle {
  font-size: 0.92rem;
  color: var(--text-subdued);
  max-width: 700px;
  line-height: 1.5;
  margin: 0;
}
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-top: 4px;
}

/* Admin Subnav Bar */
.admin-subnav-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.admin-subnav-bar::-webkit-scrollbar {
  display: none;
}
.admin-subnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-subdued);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 500px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.admin-subnav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}
.admin-subnav-btn.active {
  background: rgba(30, 215, 96, 0.18);
  color: var(--sp-green);
  border-color: rgba(30, 215, 96, 0.45);
  box-shadow: 0 4px 14px rgba(30, 215, 96, 0.18);
}

.admin-subpane {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}
.admin-subpane.active {
  display: block;
}

/* Admin Metrics Grid */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.metric-card {
  background: #121214;
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, border-color 0.2s;
}
.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}
.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.metric-green { background: rgba(30, 215, 96, 0.14); color: var(--sp-green); }
.metric-purple { background: rgba(142, 142, 229, 0.14); color: var(--sp-purple-light); }
.metric-cyan { background: rgba(6, 182, 212, 0.14); color: var(--sp-cyan); }
.metric-amber { background: rgba(245, 158, 11, 0.14); color: var(--sp-amber); }

.metric-num { font-size: 1.5rem; font-weight: 800; display: block; color: #fff; margin-bottom: 2px; }
.metric-lbl { font-size: 0.8rem; color: var(--text-subdued); }

.server-health-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.health-item {
  background: #1a1a1c;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.health-lbl {
  display: block;
  font-size: 0.74rem;
  color: var(--text-subdued);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.health-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.admin-section-card {
  background: #121214;
  border-radius: 14px;
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 36px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.header-with-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-with-badge h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

/* Admin Data Tables */
.admin-table-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-chips-mini {
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-chip-mini {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  color: var(--text-subdued);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 500px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-chip-mini:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.filter-chip-mini.active {
  background: rgba(30, 215, 96, 0.18);
  color: var(--sp-green);
  border-color: rgba(30, 215, 96, 0.35);
}

.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}
.admin-data-table th {
  background: #18181a;
  padding: 14px 16px;
  color: var(--text-subdued);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}
.admin-data-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.user-cell-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sp-green);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.user-name-primary {
  font-weight: 700;
  color: #fff;
  display: block;
}
.user-sub-id {
  font-size: 0.72rem;
  color: var(--text-subdued);
}

.table-btn-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Key Generator Grid */
.generator-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.key-gen-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  background: #1a1a1c;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.gen-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gen-field label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-subdued);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-align-bottom {
  justify-content: flex-end;
}
.input-with-action {
  display: flex;
  gap: 8px;
}
.input-with-action input {
  flex: 1;
}
.checkbox-field-wrap {
  padding-top: 6px;
}

/* Active Sessions Cards */
.active-sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.session-card {
  background: #1a1a1c;
  padding: 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, border-color 0.2s;
}
.session-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}
.session-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.session-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.session-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #27272a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.session-user-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}
.session-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sp-green);
  box-shadow: 0 0 8px var(--sp-green);
  animation: pulseGreen 1.5s infinite;
}
.session-current-track {
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--sp-green);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.session-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #a1a1aa;
}

/* Audit Logs Explorer */
.log-filter-chips-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.log-filter-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  color: var(--text-subdued);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.log-filter-pill:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.log-filter-pill.active {
  background: rgba(30, 215, 96, 0.18);
  color: var(--sp-green);
  border-color: rgba(30, 215, 96, 0.35);
}

.log-terminal-window {
  background: #08090a;
  border-radius: 10px;
  padding: 20px;
  height: 420px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.log-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  line-height: 1.45;
}
.log-time { color: #64748b; font-size: 0.76rem; flex-shrink: 0; }
.log-badge-type {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.log-badge-auth { background: rgba(30, 215, 96, 0.15); color: #1ed760; }
.log-badge-stream { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.log-badge-security { background: rgba(244, 63, 94, 0.18); color: #f43f5e; }
.log-badge-admin { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.log-badge-system { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.log-actor-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.76rem;
  color: #e2e8f0;
  white-space: nowrap;
  flex-shrink: 0;
}
.log-actor-tag svg {
  color: var(--sp-green);
}
.log-actor-tag .actor-name {
  font-weight: 700;
  color: #ffffff;
}
.log-actor-tag .actor-role {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
}

.log-msg { color: #e2e8f0; flex: 1; }
.log-detail-meta { color: #94a3b8; font-size: 0.74rem; }

.row-delete-song-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  opacity: 0;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.spotify-table tr:hover .row-delete-song-btn {
  opacity: 0.85;
}
.row-delete-song-btn:hover {
  opacity: 1 !important;
  color: #f43f5e !important;
  background: rgba(244, 63, 94, 0.15);
  transform: scale(1.1);
}

/* Status Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}
.badge-pill.bg-emerald { background: rgba(30, 215, 96, 0.15); color: #1ed760; }
.badge-pill.bg-rose { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }
.badge-pill.bg-cyan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.badge-pill.bg-amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

/* ==========================================================================
   13. RIGHT SIDEBAR PANEL (SPOTIFY NOW PLAYING / QUEUE / SYNCED LYRICS)
   ========================================================================== */
.spotify-right-sidebar {
  grid-area: right;
  background-color: var(--sp-bg-base);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: var(--right-panel-width);
}

.right-panel-header {
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border-bottom: 1px solid var(--sp-border);
  flex-shrink: 0;
  flex-wrap: nowrap !important;
  min-width: 0;
  position: relative;
  background: var(--sp-bg-base);
}
.right-tabs-scroll-container {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  flex-wrap: nowrap !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  min-width: 0;
  user-select: none;
}
.right-tabs-scroll-container::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.right-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-subdued);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 500px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.right-tab-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-bright);
}
.right-tab-btn.active {
  background: rgba(30, 215, 96, 0.16);
  color: var(--sp-green);
  border-color: rgba(30, 215, 96, 0.35);
  box-shadow: 0 2px 8px rgba(30, 215, 96, 0.15);
}

.right-panel-action-btn.refreshing svg {
  animation: recSpin 0.75s linear infinite;
}
@keyframes recSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.right-panel-content {
  display: none !important;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  max-width: 100%;
}
.right-panel-content.active {
  display: flex !important;
  flex-direction: column;
  gap: 16px;
}

/* Now Playing Empty Idle State */
.np-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg, 16px);
  margin-top: 10px;
  min-height: 360px;
  width: 100%;
  box-sizing: border-box;
  animation: fadeIn 0.3s ease;
}

.np-empty-icon-wrap {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 215, 96, 0.18) 0%, rgba(18, 18, 18, 0.95) 75%);
  border: 1px solid rgba(30, 215, 96, 0.3);
  color: var(--sp-green, #1ed760);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 0 28px rgba(30, 215, 96, 0.15);
  animation: subtlePulse 3s ease-in-out infinite alternate;
}

@keyframes subtlePulse {
  0% { transform: scale(1); box-shadow: 0 0 16px rgba(30, 215, 96, 0.12); }
  100% { transform: scale(1.05); box-shadow: 0 0 32px rgba(30, 215, 96, 0.25); }
}

.np-empty-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.np-empty-desc {
  font-size: 0.84rem;
  color: var(--text-subdued, #a7a7a7);
  line-height: 1.45;
  max-width: 260px;
  margin-bottom: 20px;
}

.np-active-track-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.np-panel-art-wrap {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  background: #282828;
  flex-shrink: 0;
}
.np-panel-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   SMART ASPECT RATIO MAXIMIZER & BLACK-BAR ELIMINATOR
   ========================================================================== */
.card-art-box,
.shelf-card-art,
.mix-card-cover,
.artist-card-avatar,
.np-panel-art-wrap,
.player-cover-box,
.track-thumb-box,
.quick-card-art {
  overflow: hidden !important;
  position: relative !important;
  background: #181818 !important;
}

/* For card box covers with letterbox black bars (like YouTube thumbnails),
   scale them by 1.35 inside the container to push black borders outside, filling the square 1:1 */
.card-art-box img[src*="ytimg.com"],
.card-art-box img[src*="youtu.be"],
.card-art-box img[src*="youtube.com"],
.shelf-card-art img[src*="ytimg.com"],
.shelf-card-art img[src*="youtu.be"],
.shelf-card-art img[src*="youtube.com"],
.mix-card-cover img[src*="ytimg.com"],
.mix-card-cover img[src*="youtu.be"],
.quick-card-art img[src*="ytimg.com"],
.quick-card-art img[src*="youtu.be"],
.np-panel-art-wrap img[src*="ytimg.com"],
.player-cover-box img[src*="ytimg.com"],
.yt-letterbox-crop {
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1.35) !important;
  transform-origin: center center !important;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.spotify-card:hover .card-art-box img[src*="ytimg.com"],
.spotify-card:hover .shelf-card-art img[src*="ytimg.com"] {
  transform: scale(1.42) !important;
}

/* ALL Track Lists, Search Results, Tables, and Mini Listers: Strictly compact 40px square, NO zoom */
.track-thumb,
.track-title-cell img,
.mini-song-thumb,
.mini-song-art-box img,
.queue-item-thumb,
.spotify-table td img,
.playlist-track-row img,
.table-track-thumb {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 4px !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.mini-song-art-box {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  position: relative !important;
}

/* For square studio release covers (iTunes / Apple Music / Deezer), fit cleanly 100% */
img[src*="mzstatic.com"],
img[src*="scdn.co"],
img[src*="deezer.com"] {
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1) !important;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.spotify-card:hover img[src*="mzstatic.com"],
.spotify-card:hover img[src*="scdn.co"] {
  transform: scale(1.05) !important;
}

.np-panel-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 4px;
}

.np-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.np-text-group {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.np-title {
  font-size: 1.25rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}
.np-artist {
  font-size: 0.88rem;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-artist-card, .np-specs-card, .np-up-next-card {
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: background-color 0.2s, border-color 0.2s;
}
.np-artist-card:hover, .np-specs-card:hover, .np-up-next-card:hover {
  background: #252525;
  border-color: rgba(255, 255, 255, 0.14);
}

.np-artist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.np-artist-header h4 {
  font-size: 0.95rem;
  color: #ffffff;
}
.np-artist-bio {
  font-size: 0.82rem;
  color: var(--text-subdued);
  line-height: 1.45;
}

/* Track & Video Stream Specs Card */
.np-specs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  min-width: 0;
  flex-wrap: nowrap;
}
.specs-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.specs-title-icon {
  color: var(--sp-green);
  flex-shrink: 0;
}
.specs-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(30, 215, 96, 0.12);
  color: var(--sp-green);
  border: 1px solid rgba(30, 215, 96, 0.28);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  outline: none;
}
.platform-badge:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 12px rgba(30, 215, 96, 0.25);
  border-color: var(--sp-green);
  background: rgba(30, 215, 96, 0.22);
}
.platform-badge:active {
  transform: scale(0.97);
}
.platform-badge.stream-badge {
  background: rgba(239, 68, 68, 0.14);
  color: #ff5252;
  border-color: rgba(239, 68, 68, 0.38);
}
.platform-badge.stream-badge:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.24);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.platform-badge .badge-icon {
  flex-shrink: 0;
}
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.spec-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  background: rgba(255, 255, 255, 0.035);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
  min-height: 54px;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.spec-item:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.spec-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.spec-lbl {
  font-size: 0.67rem;
  color: var(--text-subdued);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  white-space: nowrap;
}
.spec-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
}
.spec-icon-views {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}
.spec-icon-likes {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
}
.spec-icon-size {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}
.spec-icon-quality {
  background: rgba(30, 215, 96, 0.12);
  color: #1ed760;
}
.spec-val {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-main, 'CircularStd', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.np-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 500px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.np-download-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: scale(1.02);
}
.np-download-btn:active {
  transform: scale(0.98);
}

.np-up-next-card {
  overflow: hidden;
}
.up-next-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-subdued);
}
.up-next-track {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.up-next-track img {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
}
.up-next-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.next-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.next-artist {
  font-size: 0.78rem;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Synced Karaoke Lyrics View (Full Song Experience) */
.lyrics-scroll-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 12px 80px 12px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.lyrics-line {
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1.35;
  border-radius: 6px;
  padding: 4px 6px;
}
.lyrics-line:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}
.lyrics-line.past-line {
  color: rgba(255, 255, 255, 0.65);
}
.lyrics-line.active-line {
  color: #ffffff !important;
  font-size: 1.85rem;
  text-shadow: 0 0 24px rgba(30, 215, 96, 0.45);
  transform: scale(1.02);
  transform-origin: left center;
}

/* ==========================================================================
   14. BOTTOM SPOTIFY PLAYBACK BAR & SCRUBBERS (LUXURY GLASSMORPHIC 2026)
   ========================================================================== */
.spotify-player-bar {
  grid-area: player;
  background: rgba(14, 14, 16, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.5);
  z-index: 100;
  height: var(--player-height);
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.32s ease, visibility 0.4s ease;
}

.spotify-player-bar.is-hidden,
.spotify-layout.player-hidden .spotify-player-bar {
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Left Group */
.player-left-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 30%;
  min-width: 200px;
  max-width: 32%;
  overflow: hidden;
}

.player-cover-box {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #242428;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
}

.player-cover-box:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.player-cover-placeholder {
  width: 100%;
  height: 100%;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #535353;
  transition: all 0.2s ease;
}

.player-cover-box:hover .player-cover-placeholder {
  color: var(--sp-green, #1ed760);
  background: #222222;
}

.lyrics-header-thumb-empty {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: #242424;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #535353;
  flex-shrink: 0;
}

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

.player-cover-hover-expand {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-cover-box:hover .player-cover-hover-expand {
  opacity: 1;
}

.player-text-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 0 1 auto;
  max-width: calc(100% - 110px);
  overflow: hidden;
}

.player-title-wrap {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.player-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
  letter-spacing: -0.01em;
}

.player-artist {
  font-size: 0.8rem;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
  transition: color 0.15s ease;
}

.player-artist:hover {
  text-decoration: underline !important;
  color: #ffffff !important;
}

.player-left-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.player-heart-btn {
  background: transparent;
  border: none;
  color: var(--text-subdued);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex-shrink: 0;
}

.player-heart-btn:hover {
  color: #ffffff;
  transform: scale(1.18);
  background: rgba(255, 255, 255, 0.08);
}

.player-heart-btn.is-active {
  color: var(--sp-green) !important;
  filter: drop-shadow(0 0 8px rgba(30, 215, 96, 0.6));
}

.player-pip-btn {
  background: transparent;
  border: none;
  color: var(--text-subdued);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.player-pip-btn:hover {
  color: #ffffff;
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.08);
}

.player-pip-btn.is-active {
  color: var(--sp-green);
}

/* Center Group */
.player-center-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 40%;
  max-width: 720px;
}

.player-controls-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ctrl-btn {
  background: transparent;
  border: none;
  color: var(--text-subdued);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ctrl-btn:hover {
  color: var(--text-bright);
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.06);
}

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

.ctrl-btn.active {
  color: var(--sp-green);
}

.ctrl-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sp-green);
  box-shadow: 0 0 6px var(--sp-green);
  position: absolute;
  bottom: 0px;
  display: none;
}

.ctrl-btn.active .ctrl-dot {
  display: block;
}

.play-pause-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sp-green);
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(30, 215, 96, 0.45);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease, background-color 0.2s ease;
}

.play-pause-circle-btn:hover {
  background: var(--sp-green-hover);
  transform: scale(1.08);
  box-shadow: 0 0 28px rgba(30, 215, 96, 0.65);
}

.play-pause-circle-btn:active {
  transform: scale(0.94);
}

/* Scrubber Row & Custom Spotify Range Slider */
.player-scrubber-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.time-text {
  font-size: 0.76rem;
  color: var(--text-subdued);
  width: 38px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 500;
}

.scrub-track-wrapper {
  flex: 1;
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: height 0.15s ease;
}

.scrub-track-wrapper:hover {
  height: 6px;
}

.scrub-fill-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #1fdf64 0%, #1ed760 100%);
  border-radius: 4px;
  width: 0%;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(30, 215, 96, 0.5);
}

.scrub-track-wrapper:hover .scrub-fill-bar {
  background: linear-gradient(90deg, #1fdf64 0%, #1ed760 100%);
}

.scrub-track-wrapper.is-scrubbing {
  height: 6px;
}

.scrub-buffered-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  width: 0%;
  pointer-events: none;
}

.spotify-range-slider {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Right Group */
.player-right-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  width: 30%;
  min-width: 200px;
}

.volume-slider-group {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 130px;
}

.vol-track-wrap {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: height 0.15s ease;
}

.vol-track-wrap:hover {
  height: 6px;
}

.vol-fill-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 90%;
  background: linear-gradient(90deg, #1fdf64 0%, #1ed760 100%);
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(30, 215, 96, 0.4);
  transition: background 0.15s ease;
}


/* ==========================================================================
   FULLSCREEN CANVAS VISUALIZER & KARAOKE STUDIO
   ========================================================================== */
.fullscreen-canvas-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #060709;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  user-select: none;
  width: 100%;
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  box-sizing: border-box;
}

.fullscreen-canvas-overlay.active {
  display: flex !important;
}

.fs-ambient-backdrop {
  position: absolute;
  inset: 0;
  background: #060709;
  z-index: 0;
  pointer-events: none;
  transition: background 1.5s ease;
}

.fs-ambient-radial-glow {
  position: absolute;
  width: 90vw;
  height: 90vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 215, 96, 0.14) 0%, rgba(30, 215, 96, 0.03) 50%, transparent 75%);
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* Fullscreen Top Bar */
.fs-top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top, 14px)) 20px 8px 20px;
  flex-shrink: 0;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  box-sizing: border-box;
}

.fs-collapse-chevron-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.fs-collapse-chevron-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.08);
}

.fs-header-context-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  flex: 1;
  padding: 0 8px;
}

.fs-context-eyebrow {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.fs-context-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.fs-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-icon-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fs-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: scale(1.05);
}

/* ==========================================================================
   SPOTIFY NOW PLAYING SONG PROFILE STAGE (NATIVE VERTICAL FLOW)
   ========================================================================== */
.fs-scrollable-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 24px 80px 24px;
  gap: 18px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.fs-scrollable-body::-webkit-scrollbar {
  display: none;
}

/* 1. Large Artwork Stage */
.fs-art-stage-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
}

.fs-art-glow-box {
  width: clamp(260px, 80vw, 360px);
  height: clamp(260px, 80vw, 360px);
  max-width: 360px;
  max-height: 360px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 32px rgba(0, 0, 0, 0.4);
  background: #18181c;
  flex-shrink: 0;
}

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

/* 2. Track Title & Artist Row with Heart */
.fs-track-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 2px 2px 0 2px;
  gap: 12px;
}

.fs-track-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  text-align: left;
}

.fs-title {
  font-size: clamp(1.35rem, 5.2vw, 1.65rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.fs-artist {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.fs-artist:hover {
  color: #ffffff;
  text-decoration: underline;
}

.fs-heart-action-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.2s ease;
  flex-shrink: 0;
}

.fs-heart-action-btn:hover {
  transform: scale(1.15);
  color: #ffffff;
}

.fs-heart-action-btn.is-active svg {
  fill: var(--sp-green) !important;
  stroke: var(--sp-green) !important;
}

/* 3. Scrubber Section */
.fs-scrubber-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fs-scrub-track-wrapper {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}

.fs-scrub-track-wrapper:hover {
  height: 6px;
}

.fs-scrub-buffered-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  pointer-events: none;
}

.fs-scrub-fill-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #ffffff;
  border-radius: 2px;
  pointer-events: none;
}

.fs-range-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.fs-scrubber-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.fs-time-text {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.65);
  min-width: 34px;
}

/* 4. Playback Controls Row */
.fs-controls-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 2px 0;
}

.fs-ctrl-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.15s ease, color 0.15s ease;
}

.fs-ctrl-btn:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.fs-ctrl-btn:active {
  transform: scale(0.92);
}

.fs-ctrl-btn.active {
  color: var(--sp-green);
}

.fs-play-circle-btn {
  width: 68px;
  height: 68px;
  min-width: 68px;
  min-height: 68px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fs-play-circle-btn:hover {
  transform: scale(1.06);
}

.fs-play-circle-btn:active {
  transform: scale(0.94);
}

/* 5. Mobile Audio Device / Utility Action Row */
.fs-mobile-utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 4px;
}

.fs-device-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sp-green);
  font-size: 0.78rem;
  font-weight: 700;
}

.fs-utility-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fs-util-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
}

.fs-util-btn:hover {
  color: #ffffff;
  transform: scale(1.1);
}

/* 6. Spotify Song Profile Cards Container */
.fs-mobile-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 10px;
}

.fs-song-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

/* A. Live Synced Lyrics Card */
.fs-lyrics-preview-card {
  background: linear-gradient(145deg, rgba(30, 215, 96, 0.22) 0%, rgba(18, 18, 24, 0.95) 100%);
  border: 1px solid rgba(30, 215, 96, 0.35);
  padding: 18px 20px;
  cursor: pointer;
}

.fs-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.fs-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.fs-card-expand-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 500px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fs-card-expand-btn:hover {
  background: #ffffff;
  color: #000000;
}

.fs-lyrics-snippet {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fs-lyrics-snippet-line {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.4;
  margin: 0;
  transition: color 0.25s ease, transform 0.25s ease;
}

.fs-lyrics-snippet-line.active {
  color: #ffffff;
  font-size: 1.28rem;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(30, 215, 96, 0.5);
}

/* B. About the Artist Card */
.fs-about-artist-card {
  position: relative;
  overflow: hidden;
}

.fs-artist-banner-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #18181c;
}

.fs-artist-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fs-artist-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(18, 18, 22, 0.95) 100%);
}

.fs-artist-card-header {
  position: absolute;
  bottom: 12px;
  left: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
}

.fs-card-eyebrow {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
}

.fs-artist-card-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.fs-artist-card-body {
  padding: 14px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fs-artist-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fs-artist-listeners-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fs-listeners-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.fs-listeners-lbl {
  font-size: 0.72rem;
  color: var(--text-subdued);
}

.fs-artist-follow-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 500px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fs-artist-follow-btn:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.04);
}

.fs-artist-bio-snippet {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* C. Credits Card */
.fs-credits-card {
  padding: 18px 20px;
}

.fs-credits-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fs-credit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fs-credit-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fs-credit-role {
  font-size: 0.72rem;
  color: var(--text-subdued);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fs-credit-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.fs-credit-artist-link {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 500px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fs-credit-artist-link:hover {
  background: var(--sp-green);
  color: #000000;
  border-color: var(--sp-green);
}

/* Synced Lyrics Full Stage Overlay */
.fullscreen-canvas-overlay.lyrics-mode-active .fs-scrollable-body {
  display: none !important;
}

.fullscreen-canvas-overlay.lyrics-mode-active .fs-lyrics-column {
  display: flex !important;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 20px 40px 20px;
  box-sizing: border-box;
}

.fs-lyrics-container {
  padding: 20px 10px;
  gap: 20px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.fs-lyric-line {
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.35;
  transition: all 0.25s ease;
  cursor: pointer;
}

.fs-lyric-line.active {
  color: #ffffff;
  font-size: 1.85rem;
  text-shadow: 0 0 24px rgba(30, 215, 96, 0.5);
  transform: scale(1.02);
  transform-origin: left;
}

/* ==========================================================================
   16. MODALS & CONTEXT MENU (LUXURY GLASSMORPHISM 2026)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-card {
  background: rgba(22, 22, 26, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 32px rgba(30, 215, 96, 0.1);
  overflow: hidden;
  animation: slideUpFade 0.3s var(--ease-spring);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-subdued);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}
.modal-body { padding: 24px; }

/* Equalizer Modal Stylings */
.eq-presets-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.eq-preset-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-subdued);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.eq-preset-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateY(-1px);
}

.eq-preset-chip.active {
  background: var(--sp-green);
  color: #000000;
  font-weight: 800;
  border-color: var(--sp-green);
  box-shadow: 0 0 16px rgba(30, 215, 96, 0.45);
}

.eq-sliders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 16px 0 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.eq-band-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.eq-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sp-green);
  text-shadow: 0 0 8px rgba(30, 215, 96, 0.4);
}

.modal-eq-card {
  max-width: 520px;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eq-slider-vert-wrap {
  height: 150px;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.eq-vertical-range {
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  width: 14px;
  height: 130px;
  accent-color: var(--sp-green);
  cursor: pointer;
  filter: drop-shadow(0 0 8px rgba(30, 215, 96, 0.4));
}

.eq-lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-subdued);
  text-align: center;
}

.eq-extras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.extra-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.extra-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-subdued);
}

/* Playlist & General Modal Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-bright);
}
.spotify-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs);
  color: #fff;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.spotify-input:focus {
  border-color: var(--sp-green);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 2px rgba(30, 215, 96, 0.2);
}
.spotify-textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs);
  color: #fff;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.spotify-textarea:focus {
  border-color: var(--sp-green);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 2px rgba(30, 215, 96, 0.2);
}
.modal-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

/* Playlist Picker in Add to Playlist Modal */
.pl-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
}
.pl-picker-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #1e1e1e;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}
.pl-picker-item:hover {
  background: #2a2a2a;
  transform: translateX(4px);
}
.pl-picker-art {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  background: #282828;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pl-picker-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.pl-picker-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-picker-count {
  font-size: 0.78rem;
  color: var(--text-subdued);
}
.pl-picker-new-btn {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: transparent;
}
.pl-picker-new-btn:hover {
  border-color: var(--sp-green);
  background: rgba(30, 215, 96, 0.08);
}

/* Profile Card Styling in Modal */
.profile-header-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  background: #1e1e1e;
  padding: 16px;
  border-radius: var(--radius-sm);
}
.profile-avatar-big {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--sp-green);
  color: #000;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-details-text h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.profile-status-badge {
  background: rgba(30, 215, 96, 0.15);
  color: var(--sp-green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.profile-settings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #1e1e1e;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
}
.setting-val {
  font-weight: 700;
  color: var(--text-subdued);
}

/* Equalizer Modal Sliders */
.eq-presets-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 24px;
}
.eq-preset-chip {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-bright);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}
.eq-preset-chip.active {
  background: var(--sp-green);
  color: #000;
}
.eq-sliders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.eq-band-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.eq-val { font-family: var(--font-mono); font-size: 0.85rem; }
.eq-vertical-range {
  writing-mode: bt-lr;
  -webkit-appearance: slider-vertical;
  width: 8px;
  height: 140px;
}
.eq-lbl { font-size: 0.78rem; color: var(--text-subdued); }

/* Spotify Context Menu */
.spotify-context-menu {
  position: fixed;
  z-index: 99999;
  background: #282828;
  border-radius: var(--radius-xs);
  padding: 4px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  min-width: 200px;
  animation: fadeIn 0.15s ease;
}
.ctx-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  color: var(--text-bright);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.ctx-menu-item:hover {
  background: rgba(255, 255, 255, 0.12);
}
.ctx-menu-divider {
  height: 1px;
  background: var(--sp-border);
  margin: 4px 0;
}

/* Toast Container */
.spotify-toast-container {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.spotify-toast {
  background: #2e77d0;
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: slideUpFade 0.3s var(--ease-spring);
}
.spotify-toast.toast-success { background: var(--sp-green); color: #000; }
.spotify-toast.toast-error { background: var(--sp-rose); color: #fff; }

/* ==========================================================================
   17. MOBILE RESPONSIVE ADAPTATIONS
   ========================================================================== */
@media (max-width: 1024px) {
  .spotify-layout {
    grid-template-columns: 80px 1fr 0px;
  }
  .spotify-right-sidebar { display: none !important; }
  .brand-text-title, .nav-text, .library-header span, .sidebar-library-list, .sidebar-bottom-bar, .library-filter-chips, .library-search-row {
    display: none !important;
  }
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   SETTINGS & PROFILE MODAL STYLING (LUXURY GLASSMORPHISM 2026)
   ========================================================================== */
/* ==========================================================================
   SPOTIFY PROFILE & SETTINGS DIALOG (AUTHENTIC SPOTIFY DESKTOP SPEC)
   ========================================================================== */
.sp-settings-dialog {
  max-width: 640px !important;
  width: 100%;
  border-radius: 16px !important;
  background: #121212 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 0, 0, 0.5) !important;
  overflow: hidden;
}

.sp-dialog-header {
  padding: 16px 20px !important;
  background: #181818;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sp-dialog-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-tab-pill-btn {
  background: transparent;
  border: none;
  color: #b3b3b3;
  padding: 8px 18px;
  border-radius: 500px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sp-tab-pill-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.sp-tab-pill-btn.active {
  background: #ffffff;
  color: #000000;
  font-weight: 800;
}

.sp-dialog-body {
  padding: 24px 28px !important;
  max-height: 75vh;
  overflow-y: auto;
  background: #121212;
}

/* Profile Hero */
.sp-profile-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 0 16px 0;
}

.sp-profile-avatar-large {
  width: 88px;
  height: 88px;
  min-width: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1ed760 0%, #059669 100%);
  color: #000000;
  font-size: 2.4rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(30, 215, 96, 0.3);
  user-select: none;
}

.sp-profile-hero-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sp-profile-eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #b3b3b3;
  text-transform: uppercase;
}

.sp-profile-name {
  font-size: 2.1rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin: 2px 0 4px 0;
}

.sp-profile-meta {
  font-size: 0.84rem;
  color: #b3b3b3;
  font-weight: 500;
}

/* Actions Bar */
.sp-profile-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-btn-pill-outline {
  background: transparent;
  border: 1px solid #727272;
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 500px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sp-btn-pill-outline:hover {
  border-color: #ffffff;
  transform: scale(1.04);
}

.sp-key-badge-capsule {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 500px;
  padding: 4px 6px 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sp-key-lbl {
  font-size: 0.72rem;
  color: #a7a7a7;
  font-weight: 600;
  text-transform: uppercase;
}

.sp-key-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
}

.sp-key-copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.sp-key-copy-btn:hover {
  background: var(--sp-green, #1ed760);
  color: #000000;
}

.sp-role-pill {
  background: rgba(30, 215, 96, 0.12);
  color: var(--sp-green, #1ed760);
  border: 1px solid rgba(30, 215, 96, 0.3);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 500px;
}

.sp-edit-box {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
}

.sp-edit-form {
  display: flex;
  gap: 8px;
}

/* Settings Group & Rows */
.sp-settings-group {
  margin-bottom: 26px;
}

.sp-group-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.sp-setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sp-setting-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.sp-setting-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.sp-setting-sub {
  font-size: 0.78rem;
  color: #a7a7a7;
  line-height: 1.35;
}

.sp-value-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 500px;
  font-size: 0.76rem;
  font-weight: 600;
}

.sp-swatches-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-swatch-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sp-swatch-dot:hover {
  transform: scale(1.18);
}

.sp-swatch-dot.active {
  border-color: #ffffff;
  box-shadow: 0 0 10px currentColor;
  transform: scale(1.15);
}

.settings-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 22px 26px 26px 26px;
}

/* 1. Profile Header Card */
.profile-header-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px 22px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.profile-header-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.profile-avatar-big {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1ed760 0%, #059669 100%);
  color: #000000;
  font-weight: 900;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(30, 215, 96, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.profile-details-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-name-row h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.btn-profile-edit-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-subdued);
  padding: 3px 12px;
  border-radius: 500px;
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-profile-edit-badge:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.profile-tags-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-status-badge {
  background: linear-gradient(135deg, rgba(30, 215, 96, 0.2) 0%, rgba(5, 150, 105, 0.15) 100%);
  color: var(--sp-green);
  border: 1px solid rgba(30, 215, 96, 0.38);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 500px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 12px rgba(30, 215, 96, 0.15);
}

.profile-key-capsule {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 500px;
  padding: 3px 4px 3px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-key-capsule .key-lbl {
  font-size: 0.72rem;
  color: var(--text-subdued);
  font-weight: 600;
  text-transform: uppercase;
}

.profile-key-capsule .key-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.profile-copy-key-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-bright);
  padding: 3px 10px;
  border-radius: 500px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.profile-copy-key-btn:hover {
  background: var(--sp-green);
  color: #000000;
  border-color: var(--sp-green);
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(30, 215, 96, 0.45);
}

/* 2. Settings Section Cards */
.settings-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 16px 18px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease;
}

.settings-section:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.settings-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--sp-green);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.setting-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.setting-label-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.setting-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.setting-desc {
  font-size: 0.76rem;
  color: var(--text-subdued);
  line-height: 1.35;
}

/* Spotify Select in Settings */
.select-sm {
  background-color: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 500px !important;
  padding: 7px 32px 7px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.select-sm:hover {
  background-color: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* 3. Luxury Switch Toggle */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 500px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.switch-toggle .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.switch-toggle input:checked + .slider {
  background-color: var(--sp-green);
  border-color: var(--sp-green);
  box-shadow: 0 0 14px rgba(30, 215, 96, 0.45);
}

.switch-toggle input:checked + .slider:before {
  transform: translateX(22px);
  background-color: #000000;
}

/* 4. Theme Accent Swatches */
.theme-accent-swatches {
  display: flex;
  align-items: center;
  gap: 14px;
}

.accent-swatch-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.accent-swatch-btn:hover {
  transform: scale(1.18);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.accent-swatch-btn.active {
  border-color: #ffffff;
  box-shadow: 0 0 18px currentColor, 0 0 4px #ffffff;
  transform: scale(1.14);
}

/* 5. Gold VIP Admin Button */
.btn-vip-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 60%, #b45309 100%);
  color: #000000;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-vip-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.55);
  filter: brightness(1.08);
}

/* 6. System & Account Actions */
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.btn-secondary-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-subdued);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger-glass {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.22);
  color: #fb7185;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger-glass:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #ffffff;
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.3);
}

/* ==========================================================================
   OFFICIAL SPOTIFY "YOUR LIBRARY" HUB SYSTEM (DESKTOP & MOBILE)
   ========================================================================== */
.sp-library-hub-page {
  padding: 24px 32px 60px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.sp-lib-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 4px;
}
.sp-lib-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sp-lib-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1ed760 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(30, 215, 96, 0.3);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex-shrink: 0;
}
.sp-lib-avatar-btn:hover {
  transform: scale(1.08);
}
.sp-lib-avatar-inner {
  font-size: 0.95rem;
  font-weight: 900;
  color: #000000;
}
.sp-lib-main-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin: 0;
}
.sp-lib-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sp-lib-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-subdued);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sp-lib-icon-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.06);
}

/* Category Filter Chips */
.sp-lib-chips-scroller {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
}
.sp-lib-chips-scroller::-webkit-scrollbar { display: none; }

.sp-lib-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 500px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex-shrink: 0;
}
.sp-lib-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.sp-lib-chip.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

/* Library Inline Search & Sort Toolbar */
.sp-lib-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0;
}
.sp-lib-search-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 500px;
  padding: 6px 14px;
  flex: 1;
  max-width: 320px;
}
.sp-lib-search-inline input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.85rem;
  width: 100%;
  outline: none;
}
.sp-lib-search-clear {
  background: transparent;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  padding: 0 4px;
  font-size: 0.85rem;
}
.sp-lib-search-clear:hover { color: #fff; }

.sp-lib-sort-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.sp-lib-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-subdued);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 4px 0;
}
.sp-lib-sort-btn:hover {
  color: #ffffff;
}
.sp-lib-view-btn {
  background: transparent;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.sp-lib-view-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Library Items Stream & Cards */
.sp-lib-items-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Grid View Mode Override */
.sp-lib-items-stream.grid-mode {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.sp-lib-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  position: relative;
  user-select: none;
}
.sp-lib-item-card:hover {
  background: rgba(255, 255, 255, 0.08);
}
.sp-lib-item-card:active {
  transform: scale(0.98);
}

.sp-lib-card-art {
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #242428;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-lib-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sp-lib-card-art.is-artist-circle {
  border-radius: 50% !important;
}

/* Pinned Liked Songs Gradient Art */
.pinned-liked-art-gradient {
  background: linear-gradient(135deg, #450af5 0%, #8e8ee5 100%) !important;
}
.pinned-recent-art-gradient {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
}
.pinned-heart-icon-box, .pinned-recent-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-lib-hover-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sp-green);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.sp-lib-item-card:hover .sp-lib-hover-play {
  opacity: 1;
  transform: scale(1);
}
.sp-lib-hover-play:hover {
  transform: scale(1.1) !important;
  background: #1fdf64;
}

.sp-lib-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.sp-lib-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.sp-lib-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.sp-lib-sub-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-lib-pin-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--sp-green);
  font-weight: 700;
}
.sp-lib-pin-tag svg {
  fill: var(--sp-green);
}
.sp-lib-dot {
  opacity: 0.5;
}
.sp-lib-item-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-lib-dynamic-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sp-lib-items-stream.grid-mode .sp-lib-dynamic-container {
  display: contents;
}

/* Grid Mode Card Layout */
.sp-lib-items-stream.grid-mode .sp-lib-item-card {
  flex-direction: column;
  align-items: flex-start;
  padding: 12px;
  background: #18181c;
  border-radius: 10px;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.sp-lib-items-stream.grid-mode .sp-lib-item-card:hover {
  background: #24242c;
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
}
.sp-lib-items-stream.grid-mode .sp-lib-card-art {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

/* ==========================================================================
   NATIVE SPOTIFY MOBILE SLIDE-IN LEFT PROFILE DRAWER
   ========================================================================== */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10005;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-panel {
  width: min(320px, 84vw);
  height: 100%;
  height: 100dvh;
  background: #121214;
  background: rgba(18, 18, 22, 0.98);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  padding: max(16px, env(safe-area-inset-top, 16px)) 18px max(24px, env(safe-area-inset-bottom, 20px)) 18px;
  overflow-y: auto;
}
.mobile-drawer-backdrop.active .mobile-drawer-panel {
  transform: translateX(0);
}

.drawer-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.drawer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1ed760 0%, #059669 100%);
  color: #000000;
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(30, 215, 96, 0.4);
  flex-shrink: 0;
}
.drawer-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.drawer-user-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}
.drawer-view-profile-link {
  font-size: 0.76rem;
  color: var(--text-subdued);
  font-weight: 600;
}
.drawer-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-subdued);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* VIP Tier Card */
.drawer-tier-card {
  margin: 16px 0;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(30, 215, 96, 0.12) 0%, rgba(5, 150, 105, 0.08) 100%);
  border: 1px solid rgba(30, 215, 96, 0.28);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-tier-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}
.drawer-tier-icon {
  font-size: 1rem;
}
.drawer-tier-text {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--sp-green);
}
.drawer-key-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 8px;
  border-radius: 500px;
}

/* Drawer Menu Items */
.drawer-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.drawer-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.15s ease;
  text-align: left;
  width: 100%;
  position: relative;
}
.drawer-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.drawer-menu-item:active {
  transform: scale(0.98);
}
.drawer-menu-icon {
  color: var(--text-subdued);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  flex-shrink: 0;
}
.drawer-menu-label {
  flex: 1;
}
.drawer-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
}

.drawer-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 16px;
}
.drawer-logout-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #fb7185;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}
.drawer-logout-btn:hover {
  background: rgba(244, 63, 94, 0.22);
  color: #ffffff;
}

@media (max-width: 768px) {
  /* 1. Global Layout & Visibility */
  .hide-mobile, .hide-tablet { display: none !important; }
  .hide-desktop { display: flex !important; }

  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    height: 100% !important;
    height: var(--viewport-height, 100vh) !important;
    min-height: var(--viewport-height, 100vh) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #000000 !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    overscroll-behavior: none !important;
    overscroll-behavior-x: none !important;
    touch-action: pan-y !important;
  }

  .spotify-layout {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: 100% !important;
    height: var(--viewport-height, 100vh) !important;
    min-height: var(--viewport-height, 100vh) !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
    background: #000000 !important;
    overscroll-behavior-x: none !important;
    touch-action: pan-y !important;
  }

  .spotify-sidebar, .spotify-right-sidebar { display: none !important; }
  .ambient-glow { opacity: 0.08 !important; filter: blur(80px) !important; }

  /* 2. Topbar Navigation */
  .spotify-topbar {
    padding: max(8px, env(safe-area-inset-top, 0px)) 12px 8px 12px !important;
    height: calc(52px + env(safe-area-inset-top, 0px)) !important;
    min-height: calc(52px + env(safe-area-inset-top, 0px)) !important;
    background: rgba(14, 16, 22, 0.94) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    z-index: 100 !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .topbar-left {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    max-width: calc(100% - 44px) !important;
  }
  .history-nav-group {
    display: none !important;
  }
  .topbar-search-box {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 38px !important;
    background: #242424 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 500px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
  }
  .topbar-search-box:focus-within {
    background: #242424 !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 0 1px #ffffff !important;
  }
  .topbar-search-box .search-lens-icon {
    left: 12px !important;
    width: 16px !important;
    height: 16px !important;
    position: absolute !important;
    pointer-events: none !important;
  }
  .topbar-search-box input {
    background: transparent !important;
    border: none !important;
    padding: 0 34px 0 36px !important;
    font-size: 0.84rem !important;
    width: 100% !important;
    height: 100% !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 500px !important;
    box-sizing: border-box !important;
    color: #ffffff !important;
  }
  .topbar-right {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }
  #topbarInstallBtn, .btn-install-app {
    display: none !important;
  }
  .user-avatar-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
  }
  .user-avatar-inner {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.85rem !important;
  }

  /* 3. Main Content Stage */
  .spotify-main-stage {
    border-radius: 0 !important;
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-x: none !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: calc(54px + max(14px, env(safe-area-inset-bottom, 16px)) + 6px) !important;
    box-sizing: border-box !important;
  }
  .spotify-layout:not(.player-hidden) .spotify-main-stage,
  body.has-active-player .spotify-main-stage {
    padding-bottom: calc(54px + 54px + max(14px, env(safe-area-inset-bottom, 16px)) + 12px) !important;
  }
  .tab-pane,
  .home-content-inner,
  .search-view-container,
  .library-content-inner,
  .playlist-page-container,
  .artist-page-container,
  .liked-page-container,
  .favorites-page-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    overscroll-behavior-x: none !important;
    touch-action: pan-y !important;
    padding-bottom: 10px !important;
  }

  /* 4. Playlist & Liked Songs & Artist Hero Banners */
  .playlist-page-container, .artist-page-container {
    padding-bottom: 24px !important;
  }
  .playlist-hero-banner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 24px 16px 14px 16px !important;
    min-height: auto !important;
    gap: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .playlist-cover-box {
    width: 140px !important;
    height: 140px !important;
    min-width: 140px !important;
    border-radius: 12px !important;
    margin: 0 auto !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65) !important;
  }
  .playlist-cover-box svg {
    width: 56px !important;
    height: 56px !important;
  }
  .playlist-meta-info {
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    gap: 4px !important;
  }
  .playlist-type-tag {
    font-size: 0.72rem !important;
    letter-spacing: 0.08em !important;
    opacity: 0.9 !important;
  }
  .playlist-main-title {
    font-size: clamp(1.45rem, 5.5vw, 2.1rem) !important;
    line-height: 1.18 !important;
    white-space: normal !important;
    text-align: center !important;
    margin: 4px 0 6px 0 !important;
    word-break: break-word !important;
  }
  .playlist-creator-meta {
    justify-content: center !important;
    font-size: 0.8rem !important;
    gap: 6px !important;
  }
  .playlist-desc {
    text-align: center !important;
    font-size: 0.82rem !important;
    margin-bottom: 4px !important;
  }
  .artist-hero-banner {
    min-height: 180px !important;
    padding: 24px 16px 16px 16px !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .artist-page-name {
    font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
    text-align: center !important;
    word-break: break-word !important;
  }
  .artist-monthly-listeners {
    text-align: center !important;
    font-size: 0.8rem !important;
  }

  .playlist-action-bar, .artist-action-row {
    padding: 8px 12px 14px 12px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .action-bar-spacer {
    display: none !important;
  }
  .spotify-play-btn-large {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
  }
  .spotify-play-btn-large svg {
    width: 22px !important;
    height: 22px !important;
  }
  .icon-round-btn-lg {
    width: 38px !important;
    height: 38px !important;
  }

  /* 5. Responsive Track List & Spotify Table */
  .spotify-table-container {
    padding: 0 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .spotify-table {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    table-layout: auto !important;
    box-sizing: border-box !important;
  }
  .spotify-table thead {
    display: none !important;
  }
  .spotify-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .spotify-table tbody tr {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 8px !important;
    border-radius: 8px !important;
    min-height: 54px !important;
    height: auto !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .td-num-box {
    display: none !important;
  }
  .spotify-table td {
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
  }
  .spotify-table td:nth-child(2),
  .spotify-table td:has(.track-title-cell) {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 105px) !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .track-title-cell {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .track-thumb {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 4px !important;
    object-fit: cover !important;
    transform: none !important;
    flex-shrink: 0 !important;
  }
  .track-text-meta {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    max-width: calc(100% - 52px) !important;
    overflow: hidden !important;
    gap: 2px !important;
  }
  .track-name-main {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    max-width: 100% !important;
  }
  .track-artist-sub {
    font-size: 0.76rem !important;
    color: var(--text-subdued) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    max-width: 100% !important;
  }
  .spotify-table td.th-duration {
    display: flex !important;
    align-items: center !important;
    font-size: 0.74rem !important;
    color: var(--text-subdued) !important;
    padding: 0 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    width: 38px !important;
    min-width: 38px !important;
    justify-content: flex-end !important;
  }
  .td-actions-cell {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 2px !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    width: 60px !important;
    min-width: 60px !important;
  }
  .row-heart-btn, .row-more-btn, .row-delete-song-btn {
    opacity: 1 !important;
    visibility: visible !important;
    min-width: 28px !important;
    min-height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px !important;
    color: var(--text-subdued) !important;
  }
  .row-heart-btn.is-active {
    color: var(--sp-green) !important;
  }

  /* 6. Spotify Library Hub Mobile Styles */
  .sp-library-hub-page {
    padding: 12px 14px 28px 14px !important;
    gap: 14px !important;
  }
  .sp-lib-top-header {
    padding: 2px 2px 4px 2px !important;
  }
  .sp-lib-main-title {
    font-size: 1.55rem !important;
  }
  .sp-lib-chips-scroller {
    padding: 2px 0 6px 0 !important;
    gap: 6px !important;
  }
  .sp-lib-chip {
    font-size: 0.78rem !important;
    padding: 6px 14px !important;
  }
  .sp-lib-controls-bar {
    padding: 2px 0 !important;
  }
  .sp-lib-card-art {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
  }
  .sp-lib-item-title {
    font-size: 0.9rem !important;
  }
  .sp-lib-item-sub {
    font-size: 0.74rem !important;
  }
  .sp-lib-items-stream.grid-mode {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }


  /* 7. Home Tab Shelves & Cards */
  .home-content-inner {
    padding: 12px 14px 24px 14px !important;
    gap: 20px !important;
  }
  .home-greeting-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 4px !important;
  }
  .home-greeting-text {
    font-size: 1.5rem !important;
  }
  .home-chips-row {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain !important;
    touch-action: pan-x !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
  }
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .quick-access-card {
    height: 48px !important;
    border-radius: 6px !important;
  }
  .qa-art-box {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
  }
  .qa-title {
    font-size: 0.78rem !important;
    padding: 0 6px !important;
  }
  .qa-play-btn {
    display: none !important;
  }
  .shelf-section {
    margin-bottom: 24px !important;
  }
  .shelf-header {
    padding: 0 4px !important;
    margin-bottom: 12px !important;
  }
  .shelf-title {
    font-size: 1.25rem !important;
  }
  .shelf-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .spotify-card {
    padding: 10px !important;
    border-radius: 8px !important;
    gap: 8px !important;
  }
  .card-play-btn {
    display: none !important;
  }
  .card-title {
    font-size: 0.85rem !important;
  }
  .card-subtitle {
    font-size: 0.72rem !important;
    -webkit-line-clamp: 1 !important;
  }

  /* 8. Search Tab & Browse Grid */
  .search-view-container {
    padding: 12px 14px 30px 14px !important;
    gap: 16px !important;
  }
  .browse-main-title {
    font-size: 1.25rem !important;
    margin-bottom: 12px !important;
  }
  .categories-vibrant-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .genre-tile {
    height: 94px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    position: relative !important;
    box-sizing: border-box !important;
  }
  .genre-name {
    font-size: 1.05rem !important;
  }
  .genre-art-wrap {
    width: 54px !important;
    height: 54px !important;
    right: -8px !important;
    bottom: -4px !important;
    overflow: hidden !important;
  }
  .genre-art-wrap svg {
    width: 32px !important;
    height: 32px !important;
  }
  .search-filter-pills {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain !important;
    touch-action: pan-x !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
  }
  .search-top-row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .top-result-card {
    padding: 14px !important;
  }
  .top-result-thumb {
    width: 64px !important;
    height: 64px !important;
  }
  .top-result-title {
    font-size: 1.2rem !important;
  }

  /* 9. Floating Spotify Mobile Mini-Player */
  .spotify-player-bar {
    position: fixed !important;
    bottom: calc(52px + max(12px, env(safe-area-inset-bottom, 16px)) - 6px) !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: calc(100% - 16px) !important;
    height: 54px !important;
    background: rgba(30, 30, 36, 0.98) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
    padding: 0 10px 0 8px !important;
    z-index: 9998 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .player-left-group {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 88px) !important;
    cursor: pointer !important;
  }
  .player-cover-box {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 5px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
  }
  .player-cover-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  .player-text-meta {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    flex: 1 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    gap: 1px !important;
    justify-content: center !important;
  }
  .player-title-wrap {
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .player-title {
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }
  .player-artist {
    font-size: 0.70rem !important;
    color: var(--text-subdued) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }
  .player-left-actions {
    display: none !important;
  }
  .player-center-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    width: auto !important;
    max-width: none !important;
    flex-shrink: 0 !important;
  }
  .player-controls-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  #shuffleBtn, #repeatBtn, #prevTrackBtn {
    display: none !important;
  }
  .play-pause-circle-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    border: none !important;
  }
  .play-pause-circle-btn svg {
    width: 15px !important;
    height: 15px !important;
    fill: #000000 !important;
  }
  #nextTrackBtn {
    display: flex !important;
    padding: 6px !important;
    color: #ffffff !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
  }
  #nextTrackBtn svg {
    width: 20px !important;
    height: 20px !important;
  }
  .player-right-group, .player-volume-group {
    display: none !important;
  }
  .player-scrubber-row {
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    overflow: hidden !important;
  }
  .player-scrubber-row .time-text, .player-scrubber-row input {
    display: none !important;
  }
  .player-scrubber-row .scrub-track-wrapper {
    height: 2px !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.12) !important;
    position: relative !important;
    width: 100% !important;
  }
  .player-scrubber-row .scrub-fill-bar {
    height: 2px !important;
    border-radius: 0 !important;
    background: var(--sp-green) !important;
  }

  .spotify-player-bar.is-hidden,
  .spotify-layout.player-hidden .spotify-player-bar {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(120%) !important;
  }

  /* 10. Mobile Bottom Tab Navigation */
  .spotify-mobile-tabbar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 52px !important;
    padding-top: 6px !important;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 16px)) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: #121212 !important;
    background: rgba(18, 18, 18, 0.98) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .mob-tab-btn {
    flex: 1 1 0 !important;
    background: transparent !important;
    border: none !important;
    color: #a7a7a7 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    padding: 0 !important;
    height: 38px !important;
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: transform 0.15s ease, color 0.15s ease !important;
  }
  .mob-tab-btn:active {
    transform: scale(0.92) !important;
  }
  .mob-tab-btn.is-hidden,
  .mob-tab-btn[style*="display: none"],
  #mobileAdminTabBtn[style*="display: none"] {
    display: none !important;
  }
  .mob-tab-btn svg {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
  }
  .mob-tab-btn span {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.01em !important;
  }
  .mob-tab-btn.active {
    color: #ffffff !important;
  }
  .mob-tab-btn.active svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
  }
  .mob-admin-btn svg {
    color: var(--sp-gold) !important;
  }

  /* 11. Downloader Tab Responsive */
  .downloader-page-container {
    padding: 14px 12px 30px 12px !important;
  }
  .downloader-card-box {
    padding: 18px 14px !important;
    border-radius: 12px !important;
  }
  .dl-title {
    font-size: 1.25rem !important;
  }
  .dl-subtitle {
    font-size: 0.8rem !important;
    margin-bottom: 16px !important;
  }
  .dl-form-box {
    width: 100% !important;
  }
  .dl-input-row {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .dl-input-wrap {
    width: 100% !important;
  }
  .dl-input-wrap input {
    width: 100% !important;
    font-size: 0.85rem !important;
  }
  #startDownloadBtn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
  }
  .active-downloads-section {
    margin-top: 20px !important;
  }

  /* 12. Admin Portal Responsive Rules */
  .admin-portal-container {
    padding: 14px 10px 50px 10px !important;
  }
  .admin-header-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .admin-title {
    font-size: 1.45rem !important;
  }
  .admin-subtitle {
    font-size: 0.78rem !important;
  }
  .admin-subnav-bar {
    display: flex !important;
    overflow-x: auto !important;
    padding-bottom: 6px !important;
    gap: 6px !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
  }
  .admin-subnav-btn {
    padding: 8px 12px !important;
    font-size: 0.78rem !important;
    flex-shrink: 0 !important;
  }
  .admin-metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .metric-card {
    padding: 12px !important;
  }
  .metric-num {
    font-size: 1.25rem !important;
  }
  .server-health-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .key-gen-form-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .admin-table-filters {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .admin-table-filters input, .admin-table-filters select, .admin-table-filters button {
    width: 100% !important;
  }
  .admin-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }
  .admin-data-table {
    min-width: 580px !important;
  }

  /* 13. Modals on Mobile */
  .modal-backdrop {
    padding: 12px !important;
    align-items: flex-end !important;
  }
  .modal-card {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 85vh !important;
    max-height: 85dvh !important;
    border-radius: 16px 16px 12px 12px !important;
  }
  .auth-gate-card {
    max-width: 94vw !important;
    padding: 24px 16px !important;
  }
  .spotify-toast-container {
    bottom: calc(56px + 54px + 16px) !important;
    width: 90% !important;
    max-width: 360px !important;
  }
  .spotify-toast {
    font-size: 0.82rem !important;
    padding: 10px 18px !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .admin-metrics-grid {
    grid-template-columns: 1fr !important;
  }
  .server-health-grid {
    grid-template-columns: 1fr !important;
  }
  .history-circle-btn:nth-child(2) {
    display: none !important;
  }
}

/* ==========================================================================
   FLOATING SPOTIFY MINI PLAYER / PiP WIDGET
   ========================================================================== */
.floating-mini-player {
  position: fixed;
  bottom: 104px;
  right: 24px;
  width: 340px;
  background: rgba(18, 18, 18, 0.94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 10000;
  overflow: hidden;
  animation: miniPlayerPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  transition: box-shadow 0.2s, transform 0.1s;
}

@keyframes miniPlayerPop {
  0% { opacity: 0; transform: scale(0.88) translateY(16px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.mini-player-drag-handle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: grab;
  user-select: none;
}
.mini-player-drag-handle:active {
  cursor: grabbing;
}
.mini-player-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-subdued);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mini-player-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mini-icon-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  padding: 3px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.mini-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.mini-player-body {
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.mini-art-box {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  background: #282828;
}
.mini-art-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mini-live-eq {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.75);
  padding: 2px 4px;
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.mini-live-eq span {
  width: 2px;
  background: var(--sp-green);
  border-radius: 1px;
  animation: eqBar 0.8s ease-in-out infinite alternate;
}
.mini-live-eq span:nth-child(1) { height: 50%; }
.mini-live-eq span:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.mini-live-eq span:nth-child(3) { height: 70%; animation-delay: 0.4s; }

.mini-info-box {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mini-text-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.mini-meta {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.mini-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.mini-artist {
  font-size: 0.75rem;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.mini-heart-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}
.mini-heart-btn.is-active {
  color: var(--sp-green);
}

.mini-scrub-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mini-time {
  font-size: 0.65rem;
  color: var(--text-subdued);
  font-family: var(--font-mono);
  width: 24px;
}
.mini-scrub-track {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.mini-scrub-track:hover {
  height: 5px;
}
.mini-scrub-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: var(--sp-green);
  border-radius: 2px;
}

.mini-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 2px;
}
.mini-ctrl-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.mini-ctrl-btn:hover { color: #fff; }
.mini-play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.mini-play-btn:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   RECOMMENDED SONGS PANEL (SPOTIFY RADAR & SIMILAR VIBES)
   ========================================================================== */
.recommended-header-bar {
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(30, 215, 96, 0.08) 0%, transparent 100%);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.recommended-header-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.recommended-title-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rec-badge-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--sp-green);
}
.recommended-header-info h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.recommended-subtitle {
  display: block;
  font-size: 0.76rem;
  color: var(--text-subdued);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Seed card (currently playing) */
.recommended-current-seed {
  padding: 10px 14px;
}
.rec-seed-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(30, 215, 96, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(30, 215, 96, 0.22);
  position: relative;
  overflow: hidden;
}
.rec-seed-art {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.rec-seed-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rec-seed-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--sp-green);
}
.rec-seed-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-seed-artist {
  font-size: 0.76rem;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Recommended track list section */
.recommended-list-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 6px;
}
.rec-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-subdued);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-link-subdued {
  background: none;
  border: none;
  color: var(--sp-green);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-link-subdued:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.recommended-songs-list {
  padding: 4px 4px 16px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rec-track-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}
.rec-track-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}
.rec-track-art-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #282828;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.rec-track-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rec-art-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sp-green);
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}
.rec-track-item:hover .rec-art-play-btn {
  opacity: 1;
  transform: scale(1);
}
.rec-art-play-btn:hover {
  transform: scale(1.15) !important;
  background: #1fdf64;
}
.rec-track-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rec-track-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.rec-track-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.rec-track-badge {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.rec-track-badge.badge-artist {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}
.rec-track-badge.badge-vibe {
  background: rgba(30, 215, 96, 0.15);
  color: #1ed760;
  border: 1px solid rgba(30, 215, 96, 0.3);
}
.rec-track-badge.badge-remix {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.rec-track-badge.badge-local {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.rec-track-sub-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-track-artist {
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-track-artist:hover {
  color: #fff;
  text-decoration: underline;
}
.rec-track-meta-dot {
  opacity: 0.4;
  font-size: 0.65rem;
}
.rec-track-dur {
  font-size: 0.72rem;
  opacity: 0.75;
}
.rec-track-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.6;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.rec-track-item:hover .rec-track-actions {
  opacity: 1;
}
.rec-action-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: all 0.2s;
}
.rec-action-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}
.rec-loading-skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 4px;
}
.rec-skeleton-item {
  height: 56px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ==========================================================================
   AUTHENTIC SPOTIFY SKELETON SHIMMER SYSTEM
   ========================================================================== */
@keyframes spShimmerWave {
  0% {
    background-position: 250% 0;
  }
  100% {
    background-position: -250% 0;
  }
}

.skeleton-shimmer,
.shimmer,
.rec-skeleton-item {
  background: linear-gradient(
    90deg,
    #181818 0%,
    #242424 20%,
    #3c3c3c 45%,
    #4a4a4a 50%,
    #3c3c3c 55%,
    #242424 80%,
    #181818 100%
  ) !important;
  background-size: 250% 100% !important;
  animation: spShimmerWave 1.5s ease-in-out infinite !important;
  display: block;
}

.table-skeleton-row {
  pointer-events: none;
}

.table-skeleton-row td {
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
  vertical-align: middle;
}

.grid-skeleton-card {
  pointer-events: none;
  background: #181818 !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: var(--radius-md, 8px);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qa-skeleton-card {
  height: 64px;
  border-radius: 6px;
  background: #1e1e1e !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.library-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  text-align: center;
  color: var(--text-subdued, #a7a7a7);
  gap: 8px;
  animation: fadeIn 0.3s ease;
}

.lib-empty-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 4px;
}

.lib-empty-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-subdued, #a7a7a7);
  max-width: 220px;
}

.icon-round-btn.rotating svg {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Empty state */
.recommended-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-subdued);
}
.recommended-empty-state p {
  font-size: 0.85rem;
  margin: 0;
}

/* Admin Modals Styling */
.hwid-status-box {
  background: #181818;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hwid-info-lbl {
  font-size: 0.74rem;
  color: var(--text-subdued);
}
.hwid-val-text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--sp-green);
  word-break: break-all;
}

.key-modal-hero {
  background: rgba(30, 215, 96, 0.1);
  border: 1px solid rgba(30, 215, 96, 0.3);
  padding: 14px 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.key-modal-code {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sp-green);
  letter-spacing: 1px;
}

.key-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #181818;
  border-radius: 6px;
  font-size: 0.84rem;
  color: var(--text-subdued);
}
.detail-row span:last-child {
  color: #fff;
  font-weight: 600;
}

.key-extend-section {
  margin-bottom: 16px;
}
.key-extend-section label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-subdued);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.extend-btn-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Player artist name hover */
.player-artist {
  transition: color 0.2s;
}
.player-artist:hover {
  color: #fff;
  text-decoration: underline;
}

/* Share Playlist Modal Styling */
.modal-card-share {
  max-width: 520px;
  width: 100%;
}
.share-playlist-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #18181a;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}
.share-pl-cover {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #242426;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.share-pl-meta h3 {
  margin: 0 0 4px 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.share-pl-meta p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-subdued);
}

.share-qr-section {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #18181a;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 20px 0;
}
.share-qr-box {
  width: 95px;
  height: 95px;
  background: #ffffff;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.share-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.share-qr-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.share-qr-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}
.share-qr-desc {
  font-size: 0.8rem;
  color: var(--text-subdued);
  line-height: 1.4;
  margin: 0;
}
.share-export-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Floating Live Download Progress Indicator */
.download-progress-toast {
  position: fixed;
  bottom: 105px;
  right: 24px;
  background: #161618;
  border: 1px solid rgba(30, 215, 96, 0.4);
  border-radius: 12px;
  padding: 14px 18px;
  z-index: 99999;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
  min-width: 320px;
  max-width: 420px;
  animation: slideUp 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.dl-toast-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.dl-spinner-wrap {
  flex-shrink: 0;
}
.dl-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(30, 215, 96, 0.2);
  border-top-color: #1ed760;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.dl-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.dl-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dl-status {
  font-size: 0.76rem;
  color: #1ed760;
  font-weight: 600;
}
.dl-close-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}
.dl-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.dl-bar-track {
  height: 5px;
  background: #27272a;
  border-radius: 3px;
  overflow: hidden;
}
.dl-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1ed760, #38bdf8);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ==========================================================================
   25. IMMERSIVE SPOTIFY LYRICS & KARAOKE EXPERIENCE
   ========================================================================== */
.lyrics-panel-view {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #0f1015;
}
.lyrics-panel-view.active {
  display: flex !important;
  flex-direction: column;
}

.lyrics-view-ambient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 320px;
  background: radial-gradient(circle at 50% 0%, rgba(30, 215, 96, 0.22) 0%, rgba(16, 185, 129, 0.08) 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  transition: background 0.8s ease;
}

.lyrics-toolbar-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 12px;
  background: transparent;
  flex-shrink: 0;
  gap: 8px;
}

.lyrics-header-btn-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lyrics-action-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-subdued);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lyrics-action-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: scale(1.08);
}

/* Scrollable Lyrics Container */
.lyrics-scroll-box {
  position: relative;
  z-index: 2;
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px 80px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-behavior: smooth;
}

.lyrics-scroll-box::-webkit-scrollbar {
  width: 6px;
}
.lyrics-scroll-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Lyrics Lines Typography */
.lyrics-line {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 12px;
  margin: 0 -12px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  letter-spacing: -0.02em;
  position: relative;
  user-select: text;
}

.lyrics-line:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(4px);
}

.lyrics-line.past-line {
  color: rgba(255, 255, 255, 0.38);
}

.lyrics-line.active-line {
  color: #ffffff !important;
  font-size: 1.78rem;
  font-weight: 900;
  transform: scale(1.02) translateX(4px);
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.4), 0 0 40px rgba(30, 215, 96, 0.3);
  background: linear-gradient(90deg, rgba(30, 215, 96, 0.14) 0%, transparent 100%);
  border-left: 3px solid var(--sp-green);
  padding-left: 12px;
}

/* ==========================================================================
   RTL / Bidirectional Synced Karaoke Typography & Animation Support
   ========================================================================== */
.lyrics-scroll-box.is-rtl,
.fs-lyrics-container.is-rtl {
  direction: rtl;
  text-align: right;
}

.lyrics-line.is-rtl,
.lyrics-scroll-box.is-rtl .lyrics-line {
  direction: rtl;
  text-align: right;
  font-family: 'Alexandria', 'Cairo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
  padding: 8px 14px;
  margin: 0 -14px;
}

.lyrics-line.is-rtl:hover {
  transform: translateX(-4px);
}

.lyrics-line.is-rtl.active-line,
.lyrics-scroll-box.is-rtl .lyrics-line.active-line {
  transform: scale(1.02) translateX(-4px);
  border-left: none !important;
  border-right: 3px solid var(--sp-green) !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
  background: linear-gradient(270deg, rgba(30, 215, 96, 0.18) 0%, transparent 100%) !important;
}

.fs-lyrics-container.is-rtl .lyrics-line {
  direction: rtl;
  text-align: right;
  font-family: 'Alexandria', 'Cairo', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.fs-lyrics-container.is-rtl .lyrics-line.active-line {
  border-left: none !important;
  border-right: 4px solid var(--sp-green) !important;
}

/* Lyrics Offset Controls & Toolbar */
.lyrics-offset-pill-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2px 4px;
  gap: 2px;
  height: 28px;
  box-sizing: border-box;
}

.lyrics-offset-btn {
  width: auto !important;
  height: 22px !important;
  padding: 0 6px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  border-radius: 11px !important;
  background: transparent !important;
  border: none !important;
  color: var(--text-subdued) !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lyrics-offset-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

.lyrics-offset-tag {
  font-size: 0.72rem;
  font-weight: 800;
  font-family: monospace;
  color: var(--sp-green);
  padding: 0 3px;
  min-width: 28px;
  text-align: center;
  user-select: none;
}

.lyrics-studio-btn {
  background: rgba(30, 215, 96, 0.15) !important;
  color: var(--sp-green) !important;
  border-color: rgba(30, 215, 96, 0.3) !important;
}

.lyrics-studio-btn:hover {
  background: var(--sp-green) !important;
  color: #000000 !important;
}

.fs-lyrics-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(18, 18, 22, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px 16px 0 0;
  margin-bottom: 8px;
}

.fs-lyrics-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sp-green);
}

.fs-lyrics-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Lyrics Studio Search Results & Cards */
.lyrics-search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.2s ease;
  gap: 12px;
}

.lyrics-search-result-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(30, 215, 96, 0.4);
}

.lyrics-search-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.lyrics-search-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lyrics-search-item-meta {
  font-size: 0.8rem;
  color: var(--text-subdued);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.lyrics-synced-chip {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(30, 215, 96, 0.2);
  color: var(--sp-green);
}

/* Empty & Loading States */
.lyrics-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-subdued);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: auto;
}

.lyrics-empty-vinyl {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(30, 215, 96, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.lyrics-empty-state h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.lyrics-empty-state p {
  font-size: 0.88rem;
  color: var(--text-subdued);
  max-width: 240px;
  line-height: 1.4;
  margin: 0;
}

.lyrics-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-subdued);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ==========================================================================
   18. ARTIFICIAL 3D SPATIAL AUDIO & 8D SOUNDSTAGE STYLES (2026)
   ========================================================================== */
.btn-spatial-3d {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-spatial-3d .badge-3d-text {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--sp-green);
  color: #000000;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  line-height: 1;
  pointer-events: none;
}

.btn-spatial-3d.active {
  color: var(--sp-green) !important;
  background: rgba(30, 215, 96, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(30, 215, 96, 0.45);
  animation: pulse3DGlow 2.5s infinite ease-in-out;
}

@keyframes pulse3DGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(30, 215, 96, 0.4); }
  50% { box-shadow: 0 0 24px rgba(30, 215, 96, 0.7); }
}

/* ==========================================================================
   QUANTUM NEURAL 3D VIRTUALIZER (QANSV 4.0 STUDIO MASTER CONSOLE)
   ========================================================================== */
.modal-backdrop.floating-mode {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none !important;
}

.modal-backdrop.floating-mode .modal-spatial-studio {
  pointer-events: auto !important;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.98), 0 0 60px rgba(30, 215, 96, 0.22) !important;
}

.modal-spatial-card.modal-spatial-studio {
  max-width: 1240px !important;
  width: min(95vw, 1240px) !important;
  height: 88vh;
  max-height: 880px;
  overflow: hidden;
  border-radius: 24px !important;
  background: rgba(12, 15, 14, 0.98) !important;
  backdrop-filter: blur(48px) !important;
  -webkit-backdrop-filter: blur(48px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.95), 0 0 80px rgba(30, 215, 96, 0.15) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box !important;
}

.modal-spatial-studio.is-fullscreen {
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  border: none !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  transform: none !important;
  box-sizing: border-box !important;
}

.spatial-studio-header {
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 20, 18, 0.95);
  flex-shrink: 0;
  cursor: grab;
  user-select: none;
}

.spatial-studio-header:active {
  cursor: grabbing;
}

.spatial-version-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 500px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.modal-spatial-card.modal-spatial-studio.is-dragging {
  transition: none !important;
}

.spatial-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spatial-action-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.spatial-action-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#minimizeSpatialPiPBtn:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

#maximizeSpatialModalBtn:hover {
  color: #1ed760;
  background: rgba(30, 215, 96, 0.22);
  border-color: rgba(30, 215, 96, 0.55);
  box-shadow: 0 0 14px rgba(30, 215, 96, 0.4);
}

.spatial-action-btn.btn-close-red:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.22);
  border-color: rgba(244, 63, 94, 0.55);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.4);
}

.modal-spatial-studio.is-fullscreen #maximizeSpatialIcon {
  transform: rotate(180deg);
}

/* 2-Column Cinema Console Grid */
.spatial-studio-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 20px;
  padding: 18px 22px;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

@media (max-width: 960px) {
  .spatial-studio-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    overflow-y: auto;
  }
  .modal-spatial-card.modal-spatial-studio {
    height: auto;
    max-height: 92vh;
  }
}

/* Left Stage: 3D Visualizer & Live Meters */
.spatial-visualizer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  height: 100%;
  max-height: 100%;
}

/* Interactive 3D Canvas Container */
.spatial-canvas-container {
  background: radial-gradient(ellipse at center, #0c1510 0%, #040806 100%);
  border: 1px solid rgba(30, 215, 96, 0.25);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.85), 0 12px 36px rgba(0, 0, 0, 0.6);
  flex: 1;
  min-height: 360px;
}

/* Dedicated Top Canvas HUD */
.spatial-canvas-top-hud {
  width: 100%;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 12, 9, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10;
  font-size: 0.72rem;
}

.spatial-canvas-top-hud .hud-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spatial-canvas-top-hud .hud-bpm-text {
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.spatial-canvas-top-hud .hud-vibe-tag {
  font-weight: 700;
  color: var(--sp-green);
  background: rgba(30, 215, 96, 0.15);
  border: 1px solid rgba(30, 215, 96, 0.35);
  padding: 1px 8px;
  border-radius: 500px;
  font-size: 0.68rem;
}

.spatial-canvas-top-hud .hud-right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-subdued);
  font-weight: 600;
  font-family: var(--font-mono);
}

#spatial3DCanvas {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: block;
  cursor: grab;
  flex: 1;
}

#spatial3DCanvas:active {
  cursor: grabbing;
}

/* Bottom Floating Camera Toolbar */
.spatial-camera-toolbar {
  position: absolute;
  bottom: 38px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
}

.cam-tool-group {
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
  background: rgba(8, 12, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 500px;
  padding: 3px 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.cam-tool-btn {
  background: transparent;
  border: none;
  color: var(--text-subdued);
  font-size: 0.70rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 500px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cam-tool-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.cam-tool-btn.active {
  color: var(--sp-green);
  background: rgba(30, 215, 96, 0.2);
  border: 1px solid rgba(30, 215, 96, 0.4);
  box-shadow: 0 0 10px rgba(30, 215, 96, 0.3);
}

.cam-tool-btn.icon-only {
  padding: 4px 7px;
}

.spatial-canvas-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  padding: 6px 12px 8px;
  background: rgba(4, 8, 6, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  color: var(--text-subdued);
  z-index: 5;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.legend-dot.listener { background: #ffffff; box-shadow: 0 0 8px #ffffff; }
.legend-dot.stem-sub { background: #10b981; box-shadow: 0 0 6px #10b981; }
.legend-dot.stem-punch { background: #f43f5e; box-shadow: 0 0 6px #f43f5e; }
.legend-dot.stem-vocal { background: #fbbf24; box-shadow: 0 0 6px #fbbf24; }
.legend-dot.stem-mids { background: #8b5cf6; box-shadow: 0 0 6px #8b5cf6; }
.legend-dot.stem-air { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }

/* Compact Floating 3D PiP Mini Widget */
.spatial-pip-widget {
  position: fixed;
  bottom: 96px;
  right: 24px;
  z-index: 9999;
  background: rgba(14, 18, 16, 0.95);
  border: 1px solid rgba(30, 215, 96, 0.4);
  border-radius: 500px;
  padding: 6px 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(30, 215, 96, 0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: grab;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.spatial-pip-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.9), 0 0 32px rgba(30, 215, 96, 0.4);
}

.spatial-pip-widget:active {
  cursor: grabbing;
}

.pip-widget-drag {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pip-widget-glow-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #1ed760 0%, #0a3d1c 100%);
  box-shadow: 0 0 12px #1ed760;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pip-pulsing-core {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px #ffffff;
  animation: pipPulse 1.2s infinite ease-in-out;
}

@keyframes pipPulse {
  0%, 100% { transform: scale(0.8); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

.pip-widget-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pip-widget-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.pip-widget-mode {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--sp-green);
  line-height: 1.1;
}

.pip-widget-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
}

/* Real-Time Psychoacoustic Stem Level Meters */
.spatial-frequency-meters {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.stem-meter-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.meter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-subdued);
}

.meter-header .meter-val {
  font-family: var(--font-mono);
  color: #ffffff;
}

.meter-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.06s linear;
}

.meter-fill.bg-emerald { background: #10b981; box-shadow: 0 0 6px #10b981; }
.meter-fill.bg-rose { background: #f43f5e; box-shadow: 0 0 6px #f43f5e; }
.meter-fill.bg-amber { background: #fbbf24; box-shadow: 0 0 6px #fbbf24; }
.meter-fill.bg-purple { background: #a855f7; box-shadow: 0 0 6px #a855f7; }
.meter-fill.bg-cyan { background: #06b6d4; box-shadow: 0 0 6px #06b6d4; }
.meter-fill.bg-blue { background: #3b82f6; box-shadow: 0 0 6px #3b82f6; }

/* Stems Bar */
.spatial-stems-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 12px;
}

.stems-bar-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-subdued);
}

.stems-toggle-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.stem-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-subdued);
  padding: 3px 9px;
  border-radius: 500px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.stem-chip.active {
  background: rgba(30, 215, 96, 0.18);
  border-color: rgba(30, 215, 96, 0.45);
  color: var(--sp-green);
  box-shadow: 0 0 10px rgba(30, 215, 96, 0.2);
}

/* Right Stage: Controls Column */
.spatial-controls-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 6px;
  padding-bottom: 24px;
  scrollbar-width: thin;
}

/* Master Hero Switch */
.spatial-master-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(30, 215, 96, 0.08);
  border: 1px solid rgba(30, 215, 96, 0.25);
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.spatial-hero-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.spatial-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 9px;
  border-radius: 500px;
  font-size: 0.70rem;
  font-weight: 700;
  color: var(--text-subdued);
  width: fit-content;
}

.spatial-live-pill.is-active {
  background: rgba(30, 215, 96, 0.2);
  border-color: rgba(30, 215, 96, 0.45);
  color: var(--sp-green);
}

.spatial-live-pill.is-active .pulse-dot {
  background: var(--sp-green);
  box-shadow: 0 0 10px var(--sp-green);
}

.spatial-hero-info h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.spatial-hero-info p {
  font-size: 0.74rem;
  color: var(--text-subdued);
  line-height: 1.35;
  margin: 0;
}

.switch-toggle-large {
  width: 56px !important;
  height: 30px !important;
}
.switch-toggle-large .slider:before {
  height: 24px !important;
  width: 24px !important;
}
.switch-toggle-large input:checked + .slider:before {
  transform: translateX(26px) !important;
}

/* Presets Grid (12 Neural Profiles) */
.spatial-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.preset-count-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--sp-green);
  background: rgba(30, 215, 96, 0.12);
  border: 1px solid rgba(30, 215, 96, 0.25);
  padding: 2px 8px;
  border-radius: 500px;
}

.spatial-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

@media (max-width: 600px) {
  .spatial-presets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spatial-preset-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.spatial-preset-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.spatial-preset-chip.active {
  background: rgba(30, 215, 96, 0.16);
  border-color: var(--sp-green);
  box-shadow: 0 0 16px rgba(30, 215, 96, 0.28);
  transform: scale(1.02);
}

.spatial-preset-chip .chip-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.spatial-preset-chip .chip-desc {
  font-size: 0.63rem;
  color: var(--text-subdued);
  white-space: nowrap;
}

/* Spatial Sliders Card */
.spatial-sliders-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.spatial-sliders-card .setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.spatial-sliders-card .setting-label-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.spatial-sliders-card .setting-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
}

.spatial-sliders-card .setting-desc {
  font-size: 0.66rem;
  color: var(--text-subdued);
}

.slider-with-val {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
}

.slider-with-val input[type="range"].spotify-range-slider {
  position: relative !important;
  flex: 1;
  width: 100%;
  height: 5px;
  accent-color: var(--sp-green);
  cursor: pointer;
}

.slider-with-val .val-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sp-green);
  min-width: 38px;
  text-align: right;
}

.spatial-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.btn-secondary-glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 10px 16px;
  border-radius: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

/* ==========================================================================
   14. iOS 18 & Native iPhone Parity System (PWA & Glassmorphic Ergonomics)
   ========================================================================== */

/* Topbar Install App Button */
.btn-install-app {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.18)) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  color: #34d399 !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  padding: 6px 12px !important;
  border-radius: 500px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-install-app:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(6, 182, 212, 0.28)) !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.btn-install-app:active {
  transform: scale(0.96) !important;
}

@media (max-width: 480px) {
  .btn-install-app .install-btn-text {
    display: none;
  }
  .btn-install-app {
    padding: 6px 8px !important;
  }
}

/* iOS Native Install Sheet Modal */
.modal-ios-install-sheet {
  max-width: 480px !important;
  width: 92% !important;
  background: rgba(22, 26, 35, 0.94) !important;
  backdrop-filter: blur(40px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 28px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.2) !important;
  padding: 12px 20px 24px 20px !important;
  animation: iosSheetSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
}

@keyframes iosSheetSlideUp {
  0% { transform: translateY(60px) scale(0.96); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.ios-sheet-handle {
  width: 36px;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  margin: 0 auto 14px auto;
}

.ios-install-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.ios-app-icon-wrap {
  position: relative;
  flex-shrink: 0;
}

.ios-sheet-app-icon {
  width: 62px;
  height: 62px;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: block;
}

.ios-app-badge-sparkle {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #ffffff;
  font-size: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ios-install-titles {
  flex: 1;
  min-width: 0;
}

.ios-sheet-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Plus Jakarta Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 3px 0;
  letter-spacing: -0.02em;
}

.ios-sheet-sub {
  font-size: 0.76rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.35;
}

.ios-close-circle {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ios-close-circle:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.ios-steps-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
}

.ios-step-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 12px 14px;
  transition: background 0.2s ease;
}

.ios-step-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.ios-step-num-badge {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-step-icon-box {
  width: 38px;
  height: 38px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-step-info {
  flex: 1;
  min-width: 0;
}

.ios-step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.ios-step-sub {
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.35;
}

.ios-install-footer {
  margin-top: 6px;
}

.ios-copy-link-btn {
  border-radius: 14px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  padding: 13px !important;
}

/* Full-Screen Player Swipe-Down Gesture Physics */
#fullscreenOverlay {
  touch-action: pan-y;
  will-change: transform;
}

#fullscreenOverlay.swiping-active {
  transition: none !important;
}

#fullscreenOverlay.swiping-dismissing {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease !important;
  transform: translateY(100%) !important;
  opacity: 0 !important;
}

#fullscreenOverlay.swiping-reset {
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transform: translateY(0) !important;
}

/* iOS Spring Micro-Interactions on Mobile Interactive Elements */
@media (hover: none) and (pointer: coarse) {
  .mob-tab-btn:active,
  .play-pause-circle-btn:active,
  .btn:active,
  .spotify-play-btn-large:active,
  .icon-round-btn:active,
  .spotify-table tbody tr:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease !important;
  }
}

/* ==========================================================================
   LEFT PANEL EXECUTIVE ADMIN BUTTONS (SPOTIFY PRO MAX)
   ========================================================================== */
.nav-admin-btn {
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  background: rgba(30, 215, 96, 0.04);
  border: 1px solid rgba(30, 215, 96, 0.12);
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.nav-admin-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: #1ed760;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-admin-btn:hover {
  background: rgba(30, 215, 96, 0.12) !important;
  border-color: rgba(30, 215, 96, 0.35);
  box-shadow: 0 4px 16px rgba(30, 215, 96, 0.15);
  transform: translateX(2px);
}

.nav-admin-btn:hover::before {
  opacity: 1;
}

.nav-admin-btn .nav-icon {
  color: #1ed760 !important;
  filter: drop-shadow(0 0 6px rgba(30, 215, 96, 0.4));
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-admin-btn:hover .nav-icon {
  transform: scale(1.12);
}

.nav-admin-badge {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* Bottom Bar Admin Command Center Pill */
.sidebar-admin-pill {
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(30, 215, 96, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fff !important;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-admin-pill:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(30, 215, 96, 0.18) 100%);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.2);
  transform: translateY(-1px);
}

/* Collapsed Sidebar Admin Icon */
.collapsed-admin-btn {
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 215, 96, 0.08);
  border: 1px solid rgba(30, 215, 96, 0.25);
  color: #1ed760;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 8px;
}

.collapsed-admin-btn:hover {
  background: rgba(30, 215, 96, 0.2);
  border-color: #1ed760;
  box-shadow: 0 0 12px rgba(30, 215, 96, 0.35);
  transform: scale(1.08);
}

/* Album Details Modal Styling */
.modal-card-album {
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-track-row:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 6px;
}

.album-track-row:hover td {
  color: #fff !important;
}

.album-card-play-btn {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
}

.spotify-card:hover .album-card-play-btn {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* ==========================================================================
   OFFLINE VAULT & DOWNLOAD MODE AESTHETICS
   ========================================================================== */
.offline-mode-toggle-btn {
  position: relative;
  transition: all 0.25s ease;
}
.offline-mode-toggle-btn.is-active {
  background: rgba(30, 215, 96, 0.2) !important;
  color: #1ed760 !important;
  border: 1px solid rgba(30, 215, 96, 0.4);
}
.offline-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1ed760;
  box-shadow: 0 0 8px #1ed760;
  display: none;
}
.offline-mode-toggle-btn.is-active .offline-dot {
  display: block;
}

/* Top Floating Offline Banner */
.offline-mode-banner {
  background: linear-gradient(90deg, rgba(30, 215, 96, 0.18), rgba(6, 182, 212, 0.12));
  border-bottom: 1px solid rgba(30, 215, 96, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 80;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.offline-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
}
.offline-banner-content svg {
  flex-shrink: 0;
}
.offline-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.offline-banner-view-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.offline-banner-view-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #1ed760;
}
.offline-banner-btn {
  background: #1ed760;
  color: #000;
  border: none;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.offline-banner-btn:hover {
  transform: scale(1.05);
  background: #22e366;
}

/* Downloaded Songs Tab Gradient */
.hero-downloaded-gradient {
  background: linear-gradient(180deg, rgba(5, 150, 105, 0.6) 0%, rgba(6, 78, 59, 0.3) 60%, rgba(18, 18, 18, 0) 100%) !important;
}
.downloaded-songs-hero-art {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Row Action Download Button */
.row-download-btn {
  background: none;
  border: none;
  color: var(--text-subdued);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.row-download-btn:hover {
  color: #ffffff;
  transform: scale(1.15);
}
.row-download-btn.is-downloaded {
  color: #1ed760 !important;
}
.row-download-btn.is-downloading {
  color: #38bdf8 !important;
  animation: spin 1s linear infinite;
}

/* Small Download Checkmark Pill in Track Row */
.track-download-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #1ed760;
  color: #000;
  font-size: 9px;
  font-weight: 900;
  margin-right: 6px;
  flex-shrink: 0;
}



