:root {
  --bg-dark: #0B0E14;
  --bg-sidebar: #101520;
  --bg-card: rgba(21, 27, 38, 0.7);
  --bg-card-hover: rgba(30, 39, 56, 0.85);
  --bg-input: #171E2D;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.6);
  --primary: #6366F1;
  --primary-hover: #4F46E5;
  --primary-light: #818CF8;
  --secondary: #EC4899;
  --accent-green: #10B981;
  --danger: #EF4444;
  --danger-hover: #DC2626;
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.25);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hidden {
  display: none !important;
}

.mobile-bottom-nav {
  display: none;
}

html, body {
  margin: 0;
  padding: 0;
  overscroll-behavior-y: none;
  overscroll-behavior: none;
}

/* App Layout Grid */
.app-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 1fr 88px;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark);
}

/* ============================================================= */
/* 🌌 Premium Glassmorphism Navigation Sidebar */
/* ============================================================= */
.sidebar {
  grid-row: 1;
  grid-column: 1;
  background: rgba(14, 18, 28, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}

.brand-logo {
  font-size: 26px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(236, 72, 153, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-text h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #FFF 20%, #A5B4FC 60%, #F472B6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text .badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.45);
  color: #A5B4FC;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  cursor: pointer;
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  color: #FFF;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(236, 72, 153, 0.18));
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #FFF;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.35);
}

.nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 4px;
}

/* Special 3D Visualizer Fullscreen Opener in Sidebar */
.nav-item-viz {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(236, 72, 153, 0.22));
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  color: #FFF;
}

.nav-item-viz:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.42), rgba(236, 72, 153, 0.38));
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.65);
  transform: translateX(5px) scale(1.02);
}

.nav-badge-live {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  background: linear-gradient(135deg, #EF4444, #EC4899);
  color: #FFF;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
  animation: livePulse 2s infinite ease-in-out;
}

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

.nav-icon {
  font-size: 18px;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.engine-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.btn-settings-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  cursor: pointer;
}

.btn-settings-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================================= */
/* 📑 Premium Glassmorphism Queue Drawer (Right Sidebar) */
/* ============================================================= */
.queue-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: calc(100vh - var(--player-height));
  background: rgba(13, 17, 26, 0.9);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -8px 0 35px rgba(0, 0, 0, 0.55);
  z-index: 90;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-title-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: #FFF;
}

.btn-glass-square-sm {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #FFF;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.btn-glass-square-sm:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.45), rgba(168, 85, 247, 0.45));
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.6);
  transform: translateY(-1px);
}

/* Main Content Area */
.main-content {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 60%);
}

/* Top Header */
.top-header {
  height: 68px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 14, 20, 0.6);
  backdrop-filter: blur(12px);
  z-index: 20;
}

.mobile-brand-row {
  display: none;
}

.search-bar-wrapper {
  position: relative;
  width: 100%;
  max-width: 640px;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  gap: 10px;
  transition: all 0.2s;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 14px;
}

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

.btn-clear {
  color: var(--text-muted);
  font-size: 12px;
  padding: 4px;
}

.btn-clear:hover {
  color: var(--text-primary);
}

.btn-header-action {
  font-size: 14px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.btn-header-action:hover {
  background-color: var(--bg-card-hover);
}

.btn-primary-sm {
  background-color: var(--primary);
  color: #FFF;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s;
}

.btn-primary-sm:hover {
  background-color: var(--primary-hover);
}

.btn-secondary-sm {
  background-color: var(--bg-card-hover);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  transition: 0.2s;
}

.btn-secondary-sm:hover {
  border-color: var(--primary);
}

.btn-danger-sm {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  transition: 0.2s;
}

.btn-danger-sm:hover {
  background-color: var(--danger);
  color: #FFF;
}

/* Live Suggestions Dropdown */
.suggestions-dropdown {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  z-index: 50;
  overflow: hidden;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: 0.15s;
}

.suggestion-item:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
}

/* View Viewport */
.view-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px 100px;
}

.view-viewport::-webkit-scrollbar {
  width: 8px;
}
.view-viewport::-webkit-scrollbar-thumb {
  background: var(--bg-card-hover);
  border-radius: 4px;
}

.tab-view {
  display: none;
}

.tab-view.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.view-header {
  margin-bottom: 24px;
}

.view-header h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #FFF;
  letter-spacing: -0.3px;
}

.view-header p {
  color: var(--text-secondary);
  font-size: 13px;
}

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

.playlist-header-responsive {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.playlist-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

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

.btn-action-create {
  background: linear-gradient(135deg, #6366F1, #8B5CF6, #EC4899);
  color: #FFF;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-action-create:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
}

.btn-action-create .btn-icon-symbol {
  font-size: 14px;
}

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

/* Home Mode Switcher & Header */
.home-header-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  width: 100%;
}

.home-mode-segmented {
  display: flex;
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.home-mode-pill {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.home-mode-pill:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.08);
}

.home-mode-pill.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFF;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

/* Explore Mode Layout */
.home-sub-view {
  animation: fadeIn 0.3s ease;
}

.explore-section {
  margin-bottom: 32px;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-title-row h2 {
  font-size: 18px;
  font-weight: 700;
  color: #FFF;
}

.sub-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

/* Explore Quick Pick Mix Cards */
.explore-mix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.explore-mix-card {
  position: relative;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.explore-mix-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.35);
}

.mix-card-icon {
  font-size: 32px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.mix-card-info {
  position: relative;
  z-index: 1;
}

.mix-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  color: #FFF;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mix-title {
  font-size: 16px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  line-height: 1.3;
}

.mix-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mix-play-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFF;
  color: #000;
  border: none;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

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

.mix-play-btn:hover {
  transform: scale(1.1) !important;
  background: var(--primary);
  color: #FFF;
}

/* Explore Station Cards */
.explore-station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.explore-station-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.explore-station-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.3);
}

.station-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.station-content {
  flex: 1;
  min-width: 0;
}

.station-content h3 {
  font-size: 14px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-content p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-play-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-full);
  color: #FFF;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Chart Category Pills */
.chart-pills-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.chart-pill {
  padding: 10px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
}

.chart-pill:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.chart-pill.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFF;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.track-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.track-grid-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.btn-play-all {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFF;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
  transition: 0.2s;
}

.btn-play-all:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

/* Track List Items */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.track-item {
  display: grid;
  grid-template-columns: 32px 48px 1fr 60px 110px;
  align-items: center;
  padding: 8px 12px;
  background-color: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  cursor: pointer;
  gap: 12px;
}

.track-item:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border);
  transform: translateX(4px);
}

.track-item.playing {
  background-color: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
}

.track-index {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.track-index.top3 {
  color: #F59E0B;
  font-weight: 800;
}

.track-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.track-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 4px;
  overflow: hidden;
  min-width: 0;
}

.track-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  line-height: 1.3;
}

.track-item.playing .track-title {
  color: var(--primary-light);
}

.track-artist {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 2px;
}

.track-duration {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
}

.track-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.btn-track-action {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-track-action:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Playlist Grid & Cards */
.playlist-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.playlist-card {
  background: rgba(22, 28, 44, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.playlist-card:hover {
  background: rgba(30, 38, 60, 0.9);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.25);
}

.playlist-cover-box {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1E293B, #0F172A);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}

.playlist-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.playlist-card:hover .playlist-cover-img {
  transform: scale(1.05);
}

.playlist-cover-placeholder {
  font-size: 40px;
  color: #A5B4FC;
  opacity: 0.8;
}

.playlist-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(2px);
}

.playlist-card:hover .playlist-play-overlay {
  opacity: 1;
}

.play-btn-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transform: scale(0.85);
  transition: transform 0.2s ease;
}

.playlist-card:hover .play-btn-circle {
  transform: scale(1);
}

.btn-delete-pl-quick {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FDA4AF;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
}

.playlist-card:hover .btn-delete-pl-quick {
  opacity: 1;
}

.btn-delete-pl-quick:hover {
  background: var(--danger);
  color: #FFF;
  transform: scale(1.15);
}

.playlist-info-box h3 {
  font-size: 14px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.playlist-track-count {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Modern Empty State Hero */
.playlist-empty-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 24px;
  background: rgba(22, 28, 44, 0.6);
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  text-align: center;
  margin: 20px 0;
  backdrop-filter: blur(16px);
}

.empty-glow-disc {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, rgba(236, 72, 153, 0.15) 60%, transparent 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.3);
  animation: floatEmpty 3.5s ease-in-out infinite;
}

.empty-icon-animated {
  font-size: 42px;
}

@keyframes floatEmpty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.playlist-empty-hero h3 {
  font-size: 18px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 8px;
}

.playlist-empty-hero p {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-empty-action {
  padding: 12px 28px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6, #EC4899);
  border: none;
  border-radius: 9999px;
  color: #FFF;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.45);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-empty-action:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.6);
}

/* Empty State & Spinners */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}

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

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 100px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.toast {
  background: rgba(21, 27, 38, 0.95);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  color: #FFF;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  animation: toastIn 0.3s ease;
  transition: opacity 0.3s, transform 0.3s;
}

.toast-clickable {
  cursor: pointer;
  border-left-color: #EC4899;
}

.toast-clickable:hover {
  background: rgba(30, 39, 56, 0.98);
  border-color: rgba(236, 72, 153, 0.5);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Button Added Tactile Success Animation */
.btn-added-success {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #10B981 !important;
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
  transform: scale(1.18);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Now Playing Queue Card in Playlists View */
.now-playing-queue-card {
  border: 1.5px solid rgba(99, 102, 241, 0.45) !important;
  background: linear-gradient(135deg, rgba(21, 27, 38, 0.85) 0%, rgba(30, 27, 75, 0.5) 100%) !important;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.22) !important;
}

.now-playing-queue-card:hover {
  border-color: rgba(129, 140, 248, 0.8) !important;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.38) !important;
}

.queue-cover-gradient {
  background: linear-gradient(135deg, #4338CA 0%, #7C3AED 50%, #DB2777 100%) !important;
}

.queue-live-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.9);
  color: #FFF;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.queue-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-queue-card-save {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.5);
  color: #818CF8;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-queue-card-save:hover {
  background: rgba(99, 102, 241, 0.5);
  color: #FFF;
}

.btn-view-queue-chip {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFF;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-view-queue-chip:hover {
  background: rgba(255, 255, 255, 0.22);
}

.playlist-empty-card-note {
  grid-column: 1 / -1;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-size: 13px;
}

.empty-note-content {
  display: flex;
  align-items: center;
  gap: 10px;
}
