/* ==========================================================================
   VARENALIGHT MUSIC — SPOTIFY-INSPIRED UI (WHITE & ORANGE DESIGN SYSTEM)
   Modern Spotify Layout, Fluid Track Grid, Sleek Persistent Player Bar
   ========================================================================== */

:root {
  --bg: #f8fafc;
  --bg-2: #ffffff;
  --sidebar: #ffffff;
  --card: #ffffff;
  --card-hover: #fffaf5;
  --card-border: #e2e8f0;
  --card-border-hover: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;
  
  /* Signature Orange Brand */
  --primary: #ff6b00;
  --primary-hover: #ea580c;
  --primary-dark: #c2410c;
  --primary-light: #fff7ed;
  --primary-border: #fed7aa;
  --gradient: linear-gradient(135deg, #ff6b00 0%, #ea580c 100%);
  --shadow-orange: 0 8px 24px -4px rgba(255, 107, 0, 0.32);

  --green: #10b981;
  --red: #ef4444;
  --red-bg: #fef2f2;
  --red-border: #fecaca;
  --blue: #3b82f6;
  --amber: #f59e0b;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] {
  /* Spotify Deep Obsidian Charcoal */
  --bg: #090c10;
  --bg-2: #0f141c;
  --sidebar: #0e1219;
  --card: #131822;
  --card-hover: #19202e;
  --card-border: #1e2635;
  --card-border-hover: #2f3b52;
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --muted-light: #64748b;

  --primary: #ff781f;
  --primary-hover: #ff8c37;
  --primary-dark: #ea580c;
  --primary-light: rgba(255, 107, 0, 0.12);
  --primary-border: rgba(255, 107, 0, 0.30);
  --gradient: linear-gradient(135deg, #ff6b00 0%, #ea580c 100%);
  --shadow-orange: 0 8px 24px -4px rgba(255, 107, 0, 0.38);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.45);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 36px -4px rgba(0, 0, 0, 0.7);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* SLEEK SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  background-clip: padding-box;
}

/* ============ ULTRA-SMOOTH TEXT ANIMATION SUITE ============ */
@keyframes textRevealSlow {
  0% {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(8px);
  }
  65% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes textFadeSlow {
  0% {
    opacity: 0;
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes textSlideDownSmooth {
  0% {
    opacity: 0;
    transform: translateY(-12px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes textShimmerWave {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.text-reveal {
  animation: textRevealSlow 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.text-fade-slow {
  animation: textFadeSlow 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ==========================================================================
   SPOTIFY APP LAYOUT
   ========================================================================== */
.sp-app {
  display: flex;
  height: 100vh;
  overflow: hidden;
  padding-bottom: 90px; /* Space for bottom persistent player */
}

/* ============ SIDEBAR ============ */
.sp-sidebar {
  width: 250px;
  background: var(--sidebar);
  border-right: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  gap: 18px;
  flex-shrink: 0;
  overflow-y: auto;
  transition: all 0.25s ease;
}

.sp-brand {
  padding: 0 6px 4px;
}

.sp-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.sp-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.sp-brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  animation: textRevealSlow 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.sp-brand-title span {
  background: linear-gradient(135deg, #ff6b00 0%, #ff9838 30%, #ea580c 70%, #ff802b 100%);
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShimmerWave 6s ease-in-out infinite;
}

.sp-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-nav-link:hover {
  color: var(--text);
  background: var(--card-hover);
  transform: translateX(2px);
}

.sp-nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.sp-lib-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px 12px;
  min-height: 200px;
  overflow: hidden;
}

.sp-lib-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.sp-lib-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.sp-icon-add {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.sp-icon-add:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.1);
}

.sp-side-playlists {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-side-pl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.sp-side-pl-item:hover {
  background: var(--card-hover);
  color: var(--primary);
}

.sp-side-footer {
  padding-top: 6px;
}

.sp-credits-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px dashed var(--primary-border);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.sp-credits-btn:hover {
  background: var(--primary);
  color: #fff;
  border-style: solid;
  transform: translateY(-1px);
}

/* ============ MAIN WRAP & TOPBAR ============ */
.sp-main-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.sp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--card);
  border-bottom: 1px solid var(--card-border);
  z-index: 30;
  gap: 16px;
}

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

.sp-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  background: var(--bg);
  border: 1.5px solid var(--card-border);
  border-radius: 999px;
  padding: 9px 18px;
  transition: all 0.2s;
}

.sp-search-box:focus-within {
  border-color: var(--primary);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

.sp-search-box svg {
  color: var(--muted);
  flex-shrink: 0;
}

.sp-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
}

.sp-search-clear {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 3px 7px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s ease;
}

.sp-search-clear:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .sp-search-clear:hover {
  background: rgba(255, 255, 255, 0.14);
}

.sp-highlight {
  background: rgba(29, 185, 84, 0.28);
  color: inherit;
  border-radius: 3px;
  padding: 1px 3px;
}

.sp-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mp-credits {
  color: #d97706;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  background: #fffbeb;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #fef3c7;
  transition: all 0.2s;
}
[data-theme="dark"] .mp-credits {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.28);
  color: #fbbf24;
}

.mp-uname {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.mp-plan {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.mp-btn-link {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}
.mp-btn-link:hover { color: var(--red); }

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.theme-toggle-btn:hover {
  color: var(--primary);
  border-color: var(--primary-border);
  background: var(--primary-light);
}
.theme-toggle-btn .sun-icon { display: none; width: 17px; height: 17px; stroke: var(--primary); }
.theme-toggle-btn .moon-icon { display: block; width: 17px; height: 17px; stroke: var(--text); }
[data-theme="dark"] .theme-toggle-btn .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle-btn .moon-icon { display: none; }

/* ============ MAIN SCROLLABLE CONTENT ============ */
.sp-main {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 40px;
}

/* SPOTIFY HERO BANNER */
.sp-hero-banner {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.12) 0%, rgba(234, 88, 12, 0.04) 100%);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.sp-hero-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  margin-bottom: 12px;
}

.sp-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--primary-border);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  margin-bottom: 12px;
  animation: textSlideDownSmooth 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both;
}

.sp-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.25;
  animation: textRevealSlow 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

.sp-hero-title span {
  background: linear-gradient(135deg, #ff6b00 0%, #ff9e42 25%, #ff5500 50%, #ffaa5e 75%, #ff6b00 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShimmerWave 6s ease-in-out infinite;
}

.sp-hero-sub {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 580px;
  margin: 10px 0 20px;
  animation: textFadeSlow 1.25s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

.sp-hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sp-btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-orange);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.42);
}

.sp-btn-hero.ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

.sp-btn-hero.ghost:hover {
  background: var(--card-hover);
  border-color: var(--primary-border);
  color: var(--primary);
}

/* SECTIONS */
.sp-section {
  margin-bottom: 34px;
}

.sp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* ============ SPOTIFY FILTER PILLS ============ */
.sp-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.sp-filter-row::-webkit-scrollbar {
  display: none;
}
.sp-pill {
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.sp-pill:hover {
  background: var(--card-hover);
  border-color: var(--primary-border);
  color: var(--primary);
  transform: translateY(-1px);
}
.sp-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
}
.sp-section-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 500;
}

.sp-section-head h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.sp-count-badge {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.sp-btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s;
}

.sp-btn-text:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ============ SPOTIFY CARDS (RECENT & PLAYLISTS) ============ */
.sp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}

.sp-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.sp-card:hover {
  background: var(--card-hover);
  border-color: var(--primary-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.sp-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 12px;
}

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

.sp-pl-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
}

/* Spotify Floating Play Button on Cards */
.sp-card-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.sp-card-play:hover {
  transform: scale(1.08) !important;
  background: var(--primary-hover);
}

.sp-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sp-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-card-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ SPOTIFY TRACK TABLE ============ */
.sp-table-header {
  display: grid;
  grid-template-columns: 44px 1fr 140px 90px 80px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.sp-track-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-row {
  display: grid;
  grid-template-columns: 44px 1fr 140px 90px 80px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sp-row:hover {
  background: var(--card-hover);
}

.sp-row.now {
  background: var(--primary-light);
}

.sp-col-num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  width: 28px;
}

.sp-num-play {
  display: none;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  cursor: pointer;
}

.sp-row:hover .sp-num-txt { display: none; }
.sp-row:hover .sp-num-play { display: block; }

.sp-row.now .sp-num-txt {
  color: var(--primary);
}

.sp-col-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sp-track-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
}

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

.sp-track-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-row.now .sp-track-name {
  color: var(--primary);
}

.sp-track-artist {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-genre-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.sp-col-plays {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.sp-col-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.sp-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--muted);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.sp-action-btn:hover {
  color: var(--primary);
  border-color: var(--primary-border);
  background: var(--primary-light);
}

/* ==========================================================================
   SPOTIFY PERSISTENT BOTTOM PLAYER BAR
   ========================================================================== */
.sp-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  background: var(--card);
  border-top: 1px solid var(--card-border);
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  align-items: center;
  padding: 0 24px;
  z-index: 100;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  transition: background-color 0.25s, border-color 0.25s;
}

[data-theme="dark"] .sp-player {
  background: rgba(14, 18, 25, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.55);
}

/* Left: Now Playing Metadata */
.sp-player-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sp-player-cover {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  background: var(--bg);
}

.sp-player-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sp-player-meta strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-player-meta span {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-btn-fav {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.15s;
}
.sp-btn-fav:hover {
  color: var(--primary);
  transform: scale(1.15);
}

/* Center: Controls & Scrubber */
.sp-player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.sp-controls-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sp-btn-ctrl {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.15s;
}

.sp-btn-ctrl:hover {
  color: var(--text);
  transform: scale(1.1);
}

.sp-btn-ctrl.on {
  color: var(--primary);
}

.sp-lyrics-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.sp-lyrics-pill:hover {
  background: rgba(29, 185, 84, 0.12);
  color: #1db954;
}

.sp-lyrics-pill.active,
.sp-btn-ctrl#lyricsBtn.active {
  color: #1db954 !important;
  background: rgba(29, 185, 84, 0.18) !important;
  box-shadow: 0 0 14px rgba(29, 185, 84, 0.32);
}

.sp-player-left {
  cursor: pointer;
  transition: transform 0.15s ease;
  user-select: none;
}
.sp-player-left:hover .sp-player-cover {
  transform: scale(1.05);
}
.sp-player-left:hover strong {
  color: #1db954;
}

.sp-mob-lyrics-btn {
  display: none;
}

/* Big Circular Play Button */
.sp-btn-play-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-btn-play-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.45);
}

/* Scrub Bar */
.sp-scrub-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.sp-time-text {
  font-size: 11px;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  min-width: 34px;
}

.sp-scrub-track {
  flex: 1;
  display: flex;
  align-items: center;
}

/* SPOTIFY CUSTOM RANGE SLIDER */
.sp-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--card-border);
  outline: none;
  cursor: pointer;
  transition: height 0.15s ease;
}

.sp-scrub-track:hover .sp-range-slider {
  height: 6px;
}

.sp-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sp-scrub-track:hover .sp-range-slider::-webkit-slider-thumb {
  opacity: 1;
  transform: scale(1.15);
}

/* Right: Volume & Queue */
.sp-player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.sp-vol-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sp-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 4px;
  border-radius: 999px;
  background: var(--card-border);
  outline: none;
  cursor: pointer;
}

.sp-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}

/* ============ QUEUE SLIDEOUT ============ */
.mp-queue {
  position: fixed;
  right: 0;
  bottom: 88px;
  top: 0;
  width: 340px;
  z-index: 90;
  background: var(--sidebar);
  border-left: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
  animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mp-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
}

.mp-queue-head h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.mp-queue-list {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mp-q-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.mp-q-row:hover {
  background: var(--card-hover);
}

.mp-q-row.now {
  background: var(--primary-light);
}

.mp-q-row b {
  color: var(--muted);
  font-size: 11.5px;
  width: 20px;
}

.mp-q-row strong {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-q-row span {
  font-size: 11.5px;
  color: var(--muted);
}

/* ============ MODALS & TOAST ============ */
.mp-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(8px);
}

.mp-modal-card {
  width: 100%;
  max-width: 580px;
  max-height: 84vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.mp-modal-small {
  max-width: 400px;
}

.mp-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mp-modal-head h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.mp-iconbtn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.mp-iconbtn:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
}

.mp-field {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-weight: 600;
}

.mp-field input {
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--card-border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.mp-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

.mp-btn {
  padding: 11px 20px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 13.5px;
  background: var(--gradient);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-orange);
}

.mp-btn:hover {
  transform: translateY(-1px);
}

.mp-btn.ghost {
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.mp-btn.wide {
  width: 100%;
}

.mp-toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 104px;
  z-index: 130;
  background: var(--text);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.2s;
}

.mp-toast.err {
  background: var(--red);
  color: #fff;
}

.hidden {
  display: none !important;
}

/* ============ KOLEKSI / YOUR LIBRARY MODAL ============ */
.mp-library-card {
  max-width: 520px;
}

.sp-lib-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sp-lib-modal-title svg {
  color: var(--primary);
  flex-shrink: 0;
}
.sp-lib-modal-title h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.sp-btn-library-add {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary);
  color: #000;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.sp-btn-library-add:hover {
  transform: scale(1.04);
  opacity: 0.95;
}

.sp-lib-liked-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #450af5 0%, #8e8ee5 100%);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(69, 10, 245, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}
.sp-lib-liked-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(69, 10, 245, 0.38);
}
.sp-lib-liked-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sp-lib-liked-info {
  flex: 1;
  min-width: 0;
}
.sp-lib-liked-info strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}
.sp-lib-liked-info span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.sp-lib-guest-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--card-border);
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

.sp-lib-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sp-lib-section-head h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.sp-lib-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}

.sp-lib-pl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.sp-lib-pl-item:hover {
  background: var(--bg-hover);
}
.sp-lib-pl-cover {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  color: var(--primary);
  border: 1px solid var(--card-border);
}
.sp-lib-pl-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sp-lib-pl-meta {
  flex: 1;
  min-width: 0;
}
.sp-lib-pl-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-lib-pl-meta span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.sp-lib-pl-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.sp-lib-pl-item:hover .sp-lib-pl-play {
  background: var(--primary);
  color: #000;
}

@media (max-width: 767px) {
  .mp-modal {
    padding: 0;
    align-items: flex-end;
  }
  .mp-modal-card {
    max-height: 88vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
    padding: 20px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

/* ============ SPOTIFY LYRICS FULLSCREEN / OVERLAY ============ */
.sp-lyrics-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 88px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
  background: #ffffff;
}

/* Light Mode (Mode Terang Default - Putih & Signature) */
:root .sp-lyrics-overlay,
html:not([data-theme="dark"]) .sp-lyrics-overlay {
  background: radial-gradient(circle at 50% 12%, var(--sp-ambient-glow, rgba(29, 185, 84, 0.16)) 0%, #ffffff 45%, #f1f5f9 100%);
  transition: background 0.6s ease;
}

:root .sp-lyrics-overlay .sp-lyrics-header,
html:not([data-theme="dark"]) .sp-lyrics-overlay .sp-lyrics-header {
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
}

:root .sp-lyrics-titles strong,
html:not([data-theme="dark"]) .sp-lyrics-titles strong {
  color: #0f172a;
}

:root .sp-lyrics-titles span,
html:not([data-theme="dark"]) .sp-lyrics-titles span {
  color: #64748b;
}

:root .sp-lyrics-close,
html:not([data-theme="dark"]) .sp-lyrics-close {
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

/* Hitam Pudar untuk lirik yang belum/sudah lewat di mode Terang */
:root .sp-lyric-line,
html:not([data-theme="dark"]) .sp-lyric-line {
  color: #000000;
  opacity: 0.32;
}

:root .sp-lyric-line:hover,
html:not([data-theme="dark"]) .sp-lyric-line:hover {
  opacity: 0.75;
  color: #000000;
  background: rgba(0, 0, 0, 0.04);
}

/* Hitam Pekat & Tegas saat bait lirik aktif di mode Terang */
:root .sp-lyric-line.active,
html:not([data-theme="dark"]) .sp-lyric-line.active {
  color: #000000 !important;
  opacity: 1 !important;
  font-weight: 800;
  transform: scale(1.04);
  transform-origin: left center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

:root .sp-lyric-line.plain,
html:not([data-theme="dark"]) .sp-lyric-line.plain {
  color: #1e293b;
  opacity: 0.88;
}

/* Dark Mode (Mode Gelap - Obsidian Spotify) */
[data-theme="dark"] .sp-lyrics-overlay {
  background: radial-gradient(circle at 50% 18%, var(--sp-ambient-glow, rgba(29, 185, 84, 0.28)) 0%, #121212 55%, #070707 100%);
  transition: background 0.6s ease;
}

[data-theme="dark"] .sp-lyrics-header {
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
}

[data-theme="dark"] .sp-lyrics-titles strong {
  color: #ffffff;
}

[data-theme="dark"] .sp-lyrics-titles span {
  color: #94a3b8;
}

[data-theme="dark"] .sp-lyrics-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}

/* Putih Pudar untuk lirik yang belum/sudah lewat di mode Gelap */
[data-theme="dark"] .sp-lyric-line {
  color: #ffffff;
  opacity: 0.32;
}

[data-theme="dark"] .sp-lyric-line:hover {
  opacity: 0.75;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* Putih Bersih Terang saat bait lirik aktif di mode Gelap */
[data-theme="dark"] .sp-lyric-line.active {
  color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 800;
  transform: scale(1.04);
  transform-origin: left center;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .sp-lyric-line.plain {
  color: #e2e8f0;
  opacity: 0.88;
}

.sp-lyrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px 12px;
  z-index: 10;
  background: transparent;
  border-bottom: none;
}

.sp-lyrics-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sp-lyrics-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.sp-lyrics-titles {
  display: flex;
  flex-direction: column;
}

.sp-lyrics-titles strong {
  font-size: 17px;
  font-weight: 800;
}

.sp-lyrics-titles span {
  font-size: 13px;
  margin-top: 2px;
}

.sp-lyrics-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sp-lyrics-btn {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.sp-lyrics-offset-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 2px 4px;
  gap: 2px;
}

[data-theme="dark"] .sp-lyrics-offset-wrap {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.sp-offset-btn {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text);
  transition: all 0.15s;
}

.sp-offset-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.sp-offset-val {
  font-size: 11px;
  font-weight: 800;
  padding: 0 4px;
  color: var(--muted);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.sp-lyrics-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.sp-lyrics-close:hover {
  color: var(--primary);
  transform: scale(1.08);
}

.sp-lyrics-body {
  flex: 1;
  overflow-y: auto;
  padding: 30px 48px 120px;
  scroll-behavior: smooth;
  display: flex;
  justify-content: center;
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.sp-lyrics-lines {
  max-width: 820px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sp-lyric-line {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  cursor: pointer;
  transition: color 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 6px 14px;
  border-radius: 10px;
  line-height: 1.45;
  user-select: none;
}

.sp-lyric-line.active::before {
  content: "♪ ";
  color: var(--primary);
  font-size: 0.85em;
  margin-right: 4px;
}

.sp-lyrics-empty {
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  padding: 80px 20px;
}

/* Spotify Shimmer Skeleton Pulse */
.sp-lyrics-skeleton {
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 0;
}

.sp-skel-line {
  height: 32px;
  border-radius: 8px;
  animation: spPulse 1.3s ease-in-out infinite;
}

:root .sp-skel-line,
html:not([data-theme="dark"]) .sp-skel-line {
  background: rgba(0, 0, 0, 0.08);
}

:root .sp-skel-line.active,
html:not([data-theme="dark"]) .sp-skel-line.active {
  background: rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .sp-skel-line {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .sp-skel-line.active {
  background: rgba(255, 255, 255, 0.24);
}

.w-50 { width: 50%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }

@keyframes spPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

@media (max-width: 860px) {
  .sp-lyrics-overlay {
    bottom: 0 !important;
    z-index: 120 !important;
  }
  .sp-lyrics-header {
    padding: 16px 20px;
  }
  .sp-lyrics-body {
    padding: 30px 20px 100px;
  }
  .sp-lyric-line {
    font-size: 24px;
    gap: 16px;
    padding: 8px 10px;
  }
}
.sp-btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.sp-btn-back-home:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
}

.sp-nav-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sp-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sp-arrow-btn:hover {
  background: var(--card-hover);
  color: var(--primary);
}

.sp-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
}
.sp-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-uname {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.sp-plan-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ============ SPOTIFY QUICK TILES (6-GRID) ============ */
.sp-quick-section {
  margin-bottom: 28px;
}
.sp-quick-head {
  margin-bottom: 16px;
}
.sp-greeting {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.sp-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.sp-quick-card {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  height: 64px;
}
.sp-quick-card:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
  border-color: var(--primary-border);
}
.sp-quick-cover {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: cover;
}
.sp-quick-title {
  padding: 0 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.sp-quick-play {
  position: absolute;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}
.sp-quick-card:hover .sp-quick-play {
  opacity: 1;
  transform: scale(1);
}
.sp-quick-play:hover {
  transform: scale(1.1) !important;
  background: var(--primary-hover);
}

/* ============ SPOTIFY DEVICE MODE & MOBILE FULL PLAYER ============ */
.sp-device-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--card-border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.sp-device-pill:hover {
  background: var(--card-hover);
  border-color: #1db954;
  color: #1db954;
  transform: translateY(-1px);
}

.sp-btn-fav, .sp-mob-quick-like, .sp-mob-fp-like {
  color: #b3b3b3;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.sp-btn-fav.active, .sp-mob-quick-like.active, .sp-mob-fp-like.active {
  color: #1db954 !important;
}
.sp-btn-fav.active svg, .sp-mob-quick-like.active svg, .sp-mob-fp-like.active svg {
  fill: #1db954;
  stroke: #1db954;
  transform: scale(1.1);
}

.sp-mob-quick-like {
  display: none;
}

/* Spotify Mini Progress Line */
.sp-mini-progress {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden;
}
.sp-mini-progress-fill {
  height: 100%;
  width: 0%;
  background: #1db954;
  transition: width 0.15s linear;
}

/* ============ SPOTIFY MOBILE FULLSCREEN NOW PLAYING MODAL ============ */
.sp-mobile-full-player {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #121212;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  transform: translateY(105%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
  user-select: none;
  visibility: hidden;
}
.sp-mobile-full-player.open {
  transform: translateY(0);
  visibility: visible;
}
.sp-mob-ambient {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(70px) brightness(0.4);
  opacity: 0.85;
  transform: scale(1.4);
  pointer-events: none;
  transition: background-image 0.5s ease;
}
.sp-mob-fp-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sp-mob-fp-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.sp-mob-fp-btn:active {
  transform: scale(0.88);
}
.sp-mob-fp-sub {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sp-mob-fp-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #b3b3b3;
  font-weight: 700;
}
.sp-mob-fp-context {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.sp-mob-fp-scroll {
  position: relative;
  z-index: 2;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 24px 44px;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}
.sp-mob-fp-art-wrap {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  margin: 10px auto 26px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.8);
}
.sp-mob-fp-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.sp-mob-fp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.sp-mob-fp-titles {
  min-width: 0;
  flex: 1;
}
.sp-mob-fp-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 4px;
}
.sp-mob-fp-artist {
  font-size: 14px;
  color: #b3b3b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.sp-mob-fp-like {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sp-mob-fp-scrub {
  margin-bottom: 22px;
}
.sp-mob-fp-progress-track {
  width: 100%;
}
.sp-mob-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  outline: none;
  cursor: pointer;
}
.sp-mob-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.sp-mob-fp-times {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #b3b3b3;
  font-family: ui-monospace, monospace;
}
.sp-mob-fp-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding: 0 4px;
}
.sp-mob-ctrl-btn {
  background: transparent;
  border: none;
  color: #b3b3b3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: transform 0.15s ease, color 0.15s ease;
}
.sp-mob-ctrl-btn:active {
  transform: scale(0.88);
  color: #ffffff;
}
.sp-mob-ctrl-btn.active {
  color: #1db954;
}
.sp-mob-play-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.sp-mob-play-btn:active {
  transform: scale(0.92);
}
.sp-mob-fp-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sp-mob-device-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #1db954;
}
.sp-mob-bottom-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sp-mob-bottom-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.sp-mob-bottom-btn:active {
  background: rgba(255, 255, 255, 0.2);
}
.sp-mob-lyrics-card {
  background: linear-gradient(145deg, var(--sp-ambient-glow, rgba(29, 185, 84, 0.22)), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 18px 20px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, background 0.4s ease, border-color 0.2s ease;
}
.sp-mob-lyrics-card:active {
  transform: scale(0.985);
  background: linear-gradient(145deg, var(--sp-ambient-glow, rgba(29, 185, 84, 0.3)), rgba(255, 255, 255, 0.1));
}
.sp-mob-lyrics-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sp-mob-lyrics-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}
.sp-mob-lyrics-ctrls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sp-offset-compact {
  padding: 1px 3px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.sp-offset-compact .sp-offset-btn {
  padding: 2px 6px !important;
  font-size: 10.5px !important;
  color: #ffffff !important;
}
.sp-offset-compact .sp-offset-val {
  font-size: 10.5px !important;
  color: #1db954 !important;
}
.sp-mob-lyrics-expand-btn {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 700;
  color: #1db954;
  cursor: pointer;
  padding: 2px 4px;
}
.sp-mob-lyrics-window {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  justify-content: center;
}
.sp-mob-lyric-item {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.45);
  transition: all 0.25s ease;
}
.sp-mob-lyric-item.active {
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 800;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.4);
  transform: translateX(4px);
}
.sp-mob-lyric-item.active::before {
  content: "♪ ";
  color: #1db954;
}
.sp-mob-lyrics-preview {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* ============ SPOTIFY RESPONSIVE MODE STYLES (PC VS MOBILE) ============ */
.sp-mobile-nav {
  display: none;
}

/* Mode Mobile Rules: when screen is <= 860px OR body has .mode-mobile (unless .mode-pc is forced) */
@media (max-width: 860px) {
  body:not(.mode-pc) .sp-sidebar {
    display: none !important;
  }
  body:not(.mode-pc) .sp-topbar {
    padding: 8px 12px !important;
    height: 56px !important;
    gap: 8px !important;
  }
  body:not(.mode-pc) .sp-topbar-left {
    gap: 8px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }
  body:not(.mode-pc) .sp-nav-arrows {
    display: none !important;
  }
  body:not(.mode-pc) .sp-user-pill {
    display: none !important;
  }
  body:not(.mode-pc) .sp-search-box {
    max-width: 100% !important;
    padding: 7px 12px !important;
  }
  body:not(.mode-pc) .sp-btn-back-home span {
    display: none !important;
  }
  body:not(.mode-pc) .sp-btn-back-home {
    padding: 7px !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
  body:not(.mode-pc) .theme-toggle-btn {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
  }

  body:not(.mode-pc) .sp-app {
    padding-bottom: 145px !important;
  }

  /* SPOTIFY MOBILE QUICK PICKS (2 Kolom Rapi 52px) */
  body:not(.mode-pc) .sp-quick-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  body:not(.mode-pc) .sp-quick-card {
    height: 52px !important;
    border-radius: 6px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  body:not(.mode-pc) .sp-quick-cover {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
  }
  body:not(.mode-pc) .sp-quick-title {
    font-size: 11.5px !important;
    padding: 0 8px !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  body:not(.mode-pc) .sp-quick-play {
    display: none !important;
  }

  /* SPOTIFY MOBILE SHELVES (Carousel Horizontal - Foto Kompak Tidak Gede) */
  body:not(.mode-pc) .sp-card-grid {
    display: flex !important;
    overflow-x: auto !important;
    gap: 12px !important;
    padding: 4px 2px 14px !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  body:not(.mode-pc) .sp-card-grid::-webkit-scrollbar {
    display: none !important;
  }
  body:not(.mode-pc) .sp-card {
    flex: 0 0 136px !important;
    width: 136px !important;
    min-width: 136px !important;
    max-width: 136px !important;
    padding: 8px !important;
    border-radius: 10px !important;
    scroll-snap-align: start !important;
    background: var(--card) !important;
    border: 1px solid var(--card-border) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  }
  body:not(.mode-pc) .sp-card-cover {
    width: 100% !important;
    height: 120px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
  }
  body:not(.mode-pc) .sp-card-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  body:not(.mode-pc) .sp-card-body {
    padding-top: 6px !important;
  }
  body:not(.mode-pc) .sp-card-title {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    max-height: 2.7em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
  }
  body:not(.mode-pc) .sp-card-sub {
    font-size: 11px !important;
    color: var(--muted) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  body:not(.mode-pc) .sp-card-play {
    display: none !important;
  }

  /* SPOTIFY MOBILE TRACK LIST (Baris Ringkas Seperti Spotify Asli) */
  body:not(.mode-pc) .sp-table-header {
    display: none !important;
  }
  body:not(.mode-pc) .sp-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 7px 8px !important;
    border-radius: 8px !important;
    gap: 10px !important;
  }
  body:not(.mode-pc) .sp-col-num,
  body:not(.mode-pc) .sp-col-genre,
  body:not(.mode-pc) .sp-col-plays {
    display: none !important;
  }
  body:not(.mode-pc) .sp-col-title {
    flex: 1 !important;
    min-width: 0 !important;
    gap: 10px !important;
  }
  body:not(.mode-pc) .sp-track-thumb {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 6px !important;
  }
  body:not(.mode-pc) .sp-track-name {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  body:not(.mode-pc) .sp-track-artist {
    font-size: 12px !important;
    color: var(--muted) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  body:not(.mode-pc) .sp-col-actions {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }
  body:not(.mode-pc) .sp-action-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 15px !important;
  }

  /* SPOTIFY MOBILE MINI PLAYER (Adaptif Mode Terang / Gelap) */
  body:not(.mode-pc) .sp-player {
    position: fixed;
    bottom: 64px;
    left: 8px;
    right: 8px;
    height: 60px;
    border-radius: 12px;
    grid-template-columns: 1fr auto !important;
    padding: 0 12px;
    z-index: 9998;
    cursor: pointer;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  }
  [data-theme="dark"] body:not(.mode-pc) .sp-player {
    background: #181818 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
  }

  body:not(.mode-pc) .sp-player-title {
    color: #0f172a !important;
  }
  [data-theme="dark"] body:not(.mode-pc) .sp-player-title {
    color: #ffffff !important;
  }

  body:not(.mode-pc) .sp-player-artist {
    color: #64748b !important;
  }
  [data-theme="dark"] body:not(.mode-pc) .sp-player-artist {
    color: #a7a7a7 !important;
  }

  body:not(.mode-pc) .sp-btn-ctrl {
    color: #0f172a !important;
  }
  [data-theme="dark"] body:not(.mode-pc) .sp-btn-ctrl {
    color: #ffffff !important;
  }

  body:not(.mode-pc) .sp-mini-progress {
    display: block !important;
  }

  body:not(.mode-pc) .sp-player-cover {
    width: 44px;
    height: 44px;
    border-radius: 6px;
  }

  body:not(.mode-pc) .sp-player-left {
    min-width: 0;
    flex: 1;
  }

  body:not(.mode-pc) .sp-player-center {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: auto !important;
    margin: 0 !important;
  }

  body:not(.mode-pc) .sp-scrub-row, 
  body:not(.mode-pc) .sp-controls-row .sp-btn-ctrl:not(.sp-mob-quick-like):not(#nextBtn) {
    display: none !important;
  }

  body:not(.mode-pc) .sp-mob-quick-like {
    display: inline-flex !important;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  body:not(.mode-pc) #nextBtn {
    display: inline-flex !important;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
  }

  body:not(.mode-pc) .sp-btn-play-circle {
    width: 38px;
    height: 38px;
  }

  body:not(.mode-pc) .sp-player-right {
    display: none !important;
  }

  /* SPOTIFY MOBILE BOTTOM NAVIGATION (Adaptif Mode Terang / Gelap) */
  body:not(.mode-pc) .sp-mobile-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
    z-index: 9999;
    align-items: center;
    justify-content: space-around;
  }
  [data-theme="dark"] body:not(.mode-pc) .sp-mobile-nav {
    background: rgba(18, 18, 18, 0.98) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
  }

  body:not(.mode-pc) .sp-mob-tab {
    color: #64748b !important;
  }
  [data-theme="dark"] body:not(.mode-pc) .sp-mob-tab {
    color: #a7a7a7 !important;
  }

  body:not(.mode-pc) .sp-mob-tab.active,
  body:not(.mode-pc) .sp-mob-tab:hover {
    color: #1db954 !important;
    font-weight: 700;
  }
}

/* Explicit forced Mobile Mode via .mode-mobile */
body.mode-mobile .sp-sidebar {
  display: none !important;
}
body.mode-mobile .sp-topbar {
  padding: 8px 12px !important;
  height: 56px !important;
  gap: 8px !important;
}
body.mode-mobile .sp-topbar-left {
  gap: 8px !important;
  flex: 1 !important;
  min-width: 0 !important;
}
body.mode-mobile .sp-user-pill {
  display: none !important;
}
body.mode-mobile .sp-search-box {
  max-width: 100% !important;
  padding: 7px 12px !important;
}
body.mode-mobile .sp-nav-arrows {
  display: none !important;
}
body.mode-mobile .sp-btn-back-home span {
  display: none !important;
}
body.mode-mobile .sp-btn-back-home {
  padding: 7px !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
body.mode-mobile .theme-toggle-btn {
  width: 36px !important;
  height: 36px !important;
  flex-shrink: 0 !important;
}
body.mode-mobile .sp-app {
  padding-bottom: 145px !important;
}

body.mode-mobile .sp-quick-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
}
body.mode-mobile .sp-quick-card {
  height: 52px !important;
  border-radius: 6px !important;
  padding: 0 !important;
  overflow: hidden !important;
}
body.mode-mobile .sp-quick-cover {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
}
body.mode-mobile .sp-quick-title {
  font-size: 11.5px !important;
  padding: 0 8px !important;
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
body.mode-mobile .sp-quick-play {
  display: none !important;
}

body.mode-mobile .sp-card-grid {
  display: flex !important;
  overflow-x: auto !important;
  gap: 12px !important;
  padding: 4px 2px 14px !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}
body.mode-mobile .sp-card-grid::-webkit-scrollbar {
  display: none !important;
}
body.mode-mobile .sp-card {
  flex: 0 0 136px !important;
  width: 136px !important;
  min-width: 136px !important;
  max-width: 136px !important;
  padding: 8px !important;
  border-radius: 10px !important;
  scroll-snap-align: start !important;
  background: var(--card) !important;
  border: 1px solid var(--card-border) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}
body.mode-mobile .sp-card-cover {
  width: 100% !important;
  height: 120px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}
body.mode-mobile .sp-card-cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
body.mode-mobile .sp-card-body {
  padding-top: 6px !important;
}
body.mode-mobile .sp-card-title {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  max-height: 2.7em !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
}
body.mode-mobile .sp-card-sub {
  font-size: 11px !important;
  color: var(--muted) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body.mode-mobile .sp-card-play {
  display: none !important;
}

body.mode-mobile .sp-table-header {
  display: none !important;
}
body.mode-mobile .sp-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 7px 8px !important;
  border-radius: 8px !important;
  gap: 10px !important;
}
body.mode-mobile .sp-col-num,
body.mode-mobile .sp-col-genre,
body.mode-mobile .sp-col-plays {
  display: none !important;
}
body.mode-mobile .sp-col-title {
  flex: 1 !important;
  min-width: 0 !important;
  gap: 10px !important;
}
body.mode-mobile .sp-track-thumb {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 6px !important;
}
body.mode-mobile .sp-track-name {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body.mode-mobile .sp-track-artist {
  font-size: 12px !important;
  color: var(--muted) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
body.mode-mobile .sp-col-actions {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
}
body.mode-mobile .sp-action-btn {
  width: 32px !important;
  height: 32px !important;
  font-size: 15px !important;
}

body.mode-mobile .sp-player {
  position: fixed !important;
  bottom: 64px !important;
  left: 8px !important;
  right: 8px !important;
  height: 60px !important;
  border-radius: 12px !important;
  grid-template-columns: 1fr auto !important;
  padding: 0 12px !important;
  z-index: 9998 !important;
  cursor: pointer !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}
[data-theme="dark"] body.mode-mobile .sp-player {
  background: #181818 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
}

body.mode-mobile .sp-player-title {
  color: #0f172a !important;
}
[data-theme="dark"] body.mode-mobile .sp-player-title {
  color: #ffffff !important;
}

body.mode-mobile .sp-player-artist {
  color: #64748b !important;
}
[data-theme="dark"] body.mode-mobile .sp-player-artist {
  color: #a7a7a7 !important;
}

body.mode-mobile .sp-btn-ctrl {
  color: #0f172a !important;
}
[data-theme="dark"] body.mode-mobile .sp-btn-ctrl {
  color: #ffffff !important;
}

body.mode-mobile .sp-mini-progress {
  display: block !important;
}
body.mode-mobile .sp-player-cover {
  width: 44px !important;
  height: 44px !important;
  border-radius: 6px !important;
}
body.mode-mobile .sp-player-left {
  min-width: 0 !important;
  flex: 1 !important;
}
body.mode-mobile .sp-player-center {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  margin: 0 !important;
}
body.mode-mobile .sp-scrub-row,
body.mode-mobile .sp-controls-row .sp-btn-ctrl:not(.sp-mob-quick-like):not(#nextBtn) {
  display: none !important;
}
body.mode-mobile .sp-mob-quick-like {
  display: inline-flex !important;
}
body.mode-mobile #nextBtn {
  display: inline-flex !important;
}
body.mode-mobile .sp-btn-play-circle {
  width: 38px !important;
  height: 38px !important;
}
body.mode-mobile .sp-player-right {
  display: none !important;
}

body.mode-mobile .sp-mobile-nav {
  display: flex !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 60px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04) !important;
  z-index: 9999 !important;
  align-items: center !important;
  justify-content: space-around !important;
}
[data-theme="dark"] body.mode-mobile .sp-mobile-nav {
  background: rgba(18, 18, 18, 0.98) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

body.mode-mobile .sp-mob-tab {
  color: #64748b !important;
}
[data-theme="dark"] body.mode-mobile .sp-mob-tab {
  color: #a7a7a7 !important;
}

body.mode-mobile .sp-mob-tab.active,
body.mode-mobile .sp-mob-tab:hover {
  color: #1db954 !important;
  font-weight: 700 !important;
}

/* Explicit forced PC Mode via .mode-pc */
body.mode-pc .sp-sidebar {
  display: flex !important;
}
body.mode-pc .sp-nav-arrows {
  display: flex !important;
}
body.mode-pc .sp-btn-back-home span {
  display: inline !important;
}
body.mode-pc .sp-player {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 90px !important;
  border-radius: 0 !important;
  background: #181818 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5) !important;
  grid-template-columns: 30% 40% 30% !important;
  padding: 0 24px !important;
  cursor: default !important;
}
body.mode-pc .sp-mini-progress {
  display: none !important;
}
body.mode-pc .sp-mob-quick-like {
  display: none !important;
}
body.mode-pc .sp-scrub-row {
  display: flex !important;
}
body.mode-pc .sp-controls-row .sp-btn-ctrl {
  display: inline-flex !important;
}
body.mode-pc .sp-player-right {
  display: flex !important;
}
body.mode-pc .sp-mobile-nav {
  display: none !important;
}
body.mode-pc #mobFullPlayer {
  display: none !important;
}

.sp-mob-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #b3b3b3;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex: 1;
  height: 100%;
  transition: color 0.15s ease;
}

.sp-mob-tab.active, .sp-mob-tab:hover {
  color: var(--primary);
}

.sp-mob-tab svg {
  transition: transform 0.15s ease;
}
.sp-mob-tab:active svg {
  transform: scale(0.9);
}
