/* ===== Reset & Tokens ===== */
:root {
  --bg: #f0f6fa;
  --surface: #ffffff;
  --surface-2: #e8f0f6;
  --text: #111827;
  --text-2: #5a6b7d;
  --text-3: #94a3b8;
  --border: #d4e0ec;
  --accent: #0CC0DF;
  --accent-hover: #0AADCA;
  --accent-soft: rgba(12, 192, 223, 0.10);
  --accent-glow: rgba(12, 192, 223, 0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --transition: 0.2s ease;
  --sidebar-w: 220px;
  --player-h: 90px;
  --nps-w: 340px;
}

body:not(.light-theme) {
  --bg: #0a0e14;
  --surface: #131920;
  --surface-2: #1a2230;
  --text: #f0f4f8;
  --text-2: #8899a8;
  --text-3: #4a5568;
  --border: #1e2a38;
  --accent: #0CC0DF;
  --accent-hover: #2cd4f0;
  --accent-soft: rgba(12, 192, 223, 0.12);
  --accent-glow: rgba(12, 192, 223, 0.30);
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: 1fr;
  min-height: 100vh;
  overflow-x: hidden;
}

button { font: inherit; border: none; cursor: pointer; background: none; }
input { font: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; fill: currentColor; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.hidden { display: none !important; }

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  z-index: 50;
  transition: transform var(--transition);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.logo-mark {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; }

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.nav-item svg {
  width: 18px; height: 18px; flex-shrink: 0;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }

.sidebar-footer-block { margin-top: auto; }

.sidebar-shortcuts-hint {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  color: var(--text-3);
  font-size: 0.78rem;
}
.sidebar-shortcuts-hint kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-2);
}

.mobile-menu-btn {
  display: none;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  flex-shrink: 0;
}
.mobile-menu-btn svg { width: 20px; height: 20px; margin: auto; }

/* ===== Main ===== */
.main {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: calc(var(--player-h) + 20px);
  transition: margin-right 0.3s ease;
}

.main.sidebar-open {
  margin-right: var(--nps-w);
}

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 28px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar-actions {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.topbar-icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.topbar-icon-btn svg { width: 18px; height: 18px; }
.topbar-icon-btn:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: rotate(15deg);
}

.theme-icon { transition: opacity 0.2s ease, transform 0.3s ease; }

.search-box {
  position: relative;
  flex: 1;
  max-width: 480px;
}
.search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-3);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 36px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-box input::placeholder { color: var(--text-3); }
.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.suggestions {
  position: absolute;
  top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: none;
  overflow: hidden;
  z-index: 30;
}
.suggestions.visible { display: block; }

.suggestion-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.88rem;
  transition: background var(--transition);
  width: 100%;
}
.suggestion-item:hover { background: var(--surface-2); }
.suggestion-item img { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; }
.suggestion-item small { color: var(--text-3); display: block; font-size: 0.78rem; }

/* ===== Content ===== */
.content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.hero-text p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 36ch;
  margin-bottom: 20px;
}

.hero-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-now-playing {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.hero-now-playing img {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.hero-now-playing .label-muted {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-now-playing h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 2px 0;
}
.hero-now-playing p {
  color: var(--text-3);
  font-size: 0.82rem;
  margin: 0;
}

#visualizer {
  width: 100%;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary svg { width: 16px; height: 16px; fill: #fff; }
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary.small { height: 34px; padding: 0 14px; font-size: 0.82rem; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px;
  padding: 0 16px;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-ghost svg { width: 16px; height: 16px; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--text-3); }
.btn-ghost.small { height: 32px; padding: 0 12px; font-size: 0.8rem; }

/* ===== Genre Tabs ===== */
.genre-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.genre-tabs::-webkit-scrollbar { display: none; }

.genre-tab {
  flex-shrink: 0;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
  white-space: nowrap;
}
.genre-tab:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--text-3);
}
.genre-tab.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* ===== Sort Dropdown ===== */
.sort-dropdown {
  position: relative;
}
.sort-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 25;
  overflow: hidden;
}
.sort-menu.hidden { display: none; }
.sort-option {
  display: block;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.82rem;
  color: var(--text-2);
  transition: all var(--transition);
}
.sort-option:hover { background: var(--surface-2); color: var(--text); }
.sort-option.active { color: var(--accent); font-weight: 600; }

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

/* ===== Sections ===== */
.section { display: flex; flex-direction: column; gap: 16px; }

.section-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.section-bar h2 {
  font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em;
}

.meta { color: var(--text-3); font-size: 0.82rem; }

/* ===== Grids ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

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

.playlist-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ===== Track Card ===== */
.track-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.track-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.track-card-artwork {
  position: relative;
  overflow: hidden;
}

.track-card-artwork img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.track-card:hover .track-card-artwork img {
  transform: scale(1.05);
}

.track-card-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.track-card:hover .track-card-play-overlay {
  opacity: 1;
}

.track-card-play-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.track-card-play-icon svg { width: 22px; height: 22px; fill: #fff; }
.track-card:hover .track-card-play-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 28px var(--accent-glow);
}

.track-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.track-card-body h4 {
  font-size: 0.88rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-card-body .card-sub {
  color: var(--text-2);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-card-body .card-genre {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  width: fit-content;
}

.track-card-actions {
  display: flex;
  gap: 6px;
  padding: 0 12px 12px;
}
.track-card-actions button {
  flex: 1;
  height: 32px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background var(--transition), color var(--transition);
}
.track-card-actions button svg { width: 14px; height: 14px; }

.track-card-actions .like-card-btn,
.track-card-actions .add-card-btn {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.track-card-actions .like-card-btn:hover,
.track-card-actions .add-card-btn:hover {
  color: var(--text); background: var(--surface);
}
.track-card-actions .like-card-btn.liked {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

/* ===== Queue List ===== */
.queue-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.queue-item:hover {
  background: var(--surface-2);
}
.queue-item-num {
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}
.queue-item img {
  width: 40px; height: 40px;
  border-radius: 6px;
  object-fit: cover;
}
.queue-item-info {
  flex: 1;
  min-width: 0;
}
.queue-item-info strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-item-info small {
  color: var(--text-3);
  font-size: 0.75rem;
}
.queue-item-actions {
  display: flex; gap: 4px;
}
.queue-item.current {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ===== Playlist Card ===== */
.playlist-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.playlist-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.playlist-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.playlist-card-info {
  padding: 12px;
}
.playlist-card-info h4 {
  font-size: 0.92rem; font-weight: 600; margin-bottom: 2px;
}
.playlist-card-info p {
  color: var(--text-3); font-size: 0.78rem; margin: 0;
}
.playlist-card-footer {
  display: flex; gap: 8px; padding: 0 12px 12px;
}

/* ===== Playlist List Card ===== */
.playlist-list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.playlist-list-card .pl-header {
  display: flex; align-items: center; justify-content: space-between;
}
.playlist-list-card .pl-header h4 {
  font-size: 0.95rem; font-weight: 600;
}
.playlist-list-card .pl-header .pl-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-weight: 600;
}
.playlist-list-card .pl-count {
  color: var(--text-3); font-size: 0.82rem;
}
.playlist-list-card .pl-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.playlist-list-card .pl-header {
  cursor: pointer;
}
.playlist-list-card .pl-header:hover h4 {
  color: var(--accent);
}
.playlist-list-card .pl-tracks-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.playlist-list-card.expanded .pl-tracks-list {
  max-height: 2000px;
}
.playlist-list-card .pl-toggle-icon {
  width: 18px; height: 18px;
  color: var(--text-3);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.playlist-list-card.expanded .pl-toggle-icon {
  transform: rotate(180deg);
}
.playlist-list-card li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background var(--transition);
}
.playlist-list-card li:hover {
  background: var(--accent-soft);
}
.playlist-list-card li img {
  width: 40px; height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.playlist-list-card li .pl-track-info {
  flex: 1;
  min-width: 0;
}
.playlist-list-card li .pl-track-info strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.playlist-list-card li .pl-track-info small {
  color: var(--text-3);
  font-size: 0.75rem;
}
.playlist-list-card li .pl-track-actions {
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.playlist-list-card li small { color: var(--text-3); }

/* ===== Empty State ===== */
.empty-state {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 0.88rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

/* ===== Premium Player ===== */
.player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--player-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: 280px 1fr 200px;
  align-items: center;
  padding: 0 24px;
  z-index: 60;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
}

body:not(.light-theme) .player {
  background: rgba(19, 25, 32, 0.92);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.player-track-info {
  display: flex; align-items: center; gap: 12px; min-width: 0;
}

.player-artwork-wrap {
  position: relative;
  flex-shrink: 0;
}
.player-artwork-wrap img {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  transition: box-shadow 0.3s ease;
}

.player.playing .player-artwork-wrap img {
  box-shadow: 0 4px 20px var(--accent-glow);
}

.player-text {
  min-width: 0;
  display: flex; flex-direction: column;
}
.player-text strong {
  font-size: 0.88rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.player-text span {
  color: var(--text-3);
  font-size: 0.75rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.player-like-btn {
  flex-shrink: 0;
  margin-left: 4px;
}
.player-like-btn.liked {
  color: #ef4444 !important;
}

.player-add-btn {
  flex-shrink: 0;
}

.player-middle {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0 20px;
}

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

.ctrl-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: color var(--transition), background var(--transition), transform var(--transition);
}
.ctrl-btn svg { width: 16px; height: 16px; }
.ctrl-btn:hover { color: var(--text); background: var(--surface-2); transform: scale(1.08); }

.play-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #fff;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.play-btn svg { width: 20px; height: 20px; fill: #fff; }
.play-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.progress-row {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px;
  font-size: 0.72rem; color: var(--text-3);
}

.progress-bar-wrap {
  flex: 1;
  position: relative;
  height: 6px;
  cursor: pointer;
}

.progress-bar-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 3px;
  z-index: 0;
}

.progress-bar-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
  pointer-events: none;
  z-index: 1;
  transition: width 0.1s linear;
}
.progress-bar-wrap:hover .progress-bar-fill {
  background: linear-gradient(90deg, var(--accent), #6dd5ed);
}

.progress-bar-wrap input[type="range"] {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 6px;
  transform: translateY(-50%);
  z-index: 3;
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  outline: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.progress-bar-wrap input[type="range"]::-webkit-slider-runnable-track {
  background: transparent;
  height: 6px;
  border-radius: 3px;
}

.progress-bar-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  margin-top: -4px;
  transition: transform 0.15s ease;
  opacity: 0;
}
.progress-bar-wrap:hover input[type="range"]::-webkit-slider-thumb {
  opacity: 1;
  transform: scale(1);
}
.progress-bar-wrap input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.progress-bar-wrap input[type="range"]::-moz-range-track {
  background: transparent;
  height: 6px;
  border-radius: 3px;
  border: none;
}

.progress-bar-wrap input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* ===== Volume / Generic Range Inputs ===== */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.player-right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.player-vol {
  display: flex; align-items: center; gap: 6px;
}
.player-vol input { width: 90px; }

/* ===== Now Playing Sidebar ===== */
.now-playing-sidebar {
  position: fixed;
  top: 0; right: 0; bottom: var(--player-h);
  width: var(--nps-w);
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 45;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body:not(.light-theme) .now-playing-sidebar {
  background: rgba(19, 25, 32, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.now-playing-sidebar.open {
  transform: translateX(0);
}

.nps-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.nps-header h3 {
  font-size: 1rem; font-weight: 700;
}

.nps-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nps-artwork-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.nps-artwork-wrap img {
  width: 100%;
  max-width: 260px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 1;
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.4s ease;
}
.now-playing-sidebar.open .nps-artwork-wrap img {
  animation: artworkFloat 4s ease-in-out infinite;
}

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

.nps-artwork-glow {
  position: absolute;
  inset: 10%;
  border-radius: var(--radius-lg);
  background: var(--accent-glow);
  filter: blur(40px);
  z-index: -1;
  opacity: 0.5;
}

.nps-track-info {
  text-align: center;
}
.nps-track-info h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}
.nps-artist {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.nps-album {
  color: var(--text-3);
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.nps-genre-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
}

.nps-details {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nps-detail-row {
  display: flex; justify-content: space-between;
  font-size: 0.82rem;
}
.nps-detail-label { color: var(--text-3); }
.nps-detail-value { color: var(--text); font-weight: 500; }

.nps-up-next h4 {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-2);
}
.nps-up-next-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nps-up-next-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.nps-up-next-item:hover { background: var(--accent-soft); }
.nps-up-next-item img {
  width: 36px; height: 36px;
  border-radius: 6px;
  object-fit: cover;
}
.nps-up-next-item-info {
  min-width: 0;
}
.nps-up-next-item-info strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nps-up-next-item-info small {
  color: var(--text-3);
  font-size: 0.72rem;
}

/* ===== Lyrics Panel ===== */
.lyrics-panel {
  position: fixed;
  left: var(--sidebar-w);
  right: 0;
  bottom: var(--player-h);
  top: 0;
  background: var(--bg);
  z-index: 55;
  display: flex;
  flex-direction: column;
  animation: lyricsFadeIn 0.3s ease;
}
.lyrics-panel.hidden {
  display: none !important;
}

body:not(.light-theme) .lyrics-panel {
  background: rgba(10, 14, 20, 0.97);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

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

.lyrics-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.lyrics-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lyrics-panel-title strong {
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
}
.lyrics-panel-title small {
  color: var(--text-3);
  font-size: 0.78rem;
}

.lyrics-body {
  flex: 1;
  overflow-y: auto;
  padding: 40px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-behavior: smooth;
}

.lyrics-placeholder {
  color: var(--text-3);
  font-size: 1rem;
  text-align: center;
  margin-top: 80px;
}

.lyrics-line {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-3);
  line-height: 2.2;
  text-align: center;
  max-width: 600px;
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.4;
  cursor: pointer;
  padding: 4px 16px;
  border-radius: var(--radius-sm);
}
.lyrics-line:hover {
  opacity: 0.7;
}
.lyrics-line.active {
  color: var(--accent);
  opacity: 1;
  transform: scale(1.05);
}
.lyrics-line.past {
  opacity: 0.3;
}

.lyrics-line-unsynced {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-2);
  line-height: 2;
  text-align: center;
  max-width: 600px;
  padding: 4px 16px;
}

.lyrics-credit {
  margin-top: 40px;
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  bottom: calc(var(--player-h) + 16px);
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 340px;
}

.toast.toast-out {
  animation: toastOut 0.25s ease forwards;
}

.toast-icon {
  width: 18px; height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(16px) scale(0.95); }
}

/* ===== Keyboard Shortcuts Modal ===== */
.shortcuts-card {
  max-width: 420px;
}
.shortcuts-body {
  display: flex; flex-direction: column; gap: 0;
}
.shortcut-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.shortcut-row:last-child { border-bottom: none; }
.shortcut-row kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 28px;
  padding: 0 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
}
.shortcut-row span {
  color: var(--text-2);
  font-size: 0.85rem;
}

/* ===== Sidebar Backdrop ===== */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 48;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sidebar-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Modal ===== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4);
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal.hidden { display: none; }

.modal-card {
  width: min(480px, 100%);
  max-height: calc(100vh - 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.modal-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-top h3 { font-size: 1rem; font-weight: 600; }

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.modal-section { display: flex; flex-direction: column; gap: 8px; }
.modal-section label { font-size: 0.82rem; color: var(--text-2); font-weight: 500; }

.inline-row { display: flex; gap: 8px; }
.inline-row input {
  flex: 1;
  height: 38px;
  padding: 0 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
}
.inline-row input:focus { border-color: var(--accent); }

.choices-list { display: flex; flex-direction: column; gap: 6px; }
.choice-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}
.choice-row strong { font-size: 0.88rem; }
.choice-row .choice-meta { color: var(--text-3); font-size: 0.78rem; }

/* ===== Footer ===== */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 16px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
.footer-logo {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-3);
  letter-spacing: -0.02em;
}
.footer-credit {
  color: var(--text-3);
  font-size: 0.78rem;
}

/* ===== Active Toggle ===== */
.active-toggle {
  color: var(--accent) !important;
  background: var(--accent-soft) !important;
}

/* Hide mobile specific elements on desktop */
.bottom-nav {
  display: none;
}
.player-close-btn {
  display: none;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .main.sidebar-open { margin-right: 0; }
}

@media (max-width: 992px) {
  .player-vol {
    display: none;
  }
  .player {
    grid-template-columns: 240px 1fr 100px;
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  :root {
    --player-h: 64px;
  }

  body {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }

  /* Hide desktop sidebar and mobile menu button */
  .sidebar {
    display: none !important;
  }
  .sidebar-backdrop {
    display: none !important;
  }
  .mobile-menu-btn {
    display: none !important;
  }

  .main {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-bottom: calc(var(--player-h) + 84px) !important;
  }
  .main.sidebar-open {
    margin-right: 0;
  }

  .topbar {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    gap: 8px;
  }
  .search-box {
    max-width: none;
  }
  .search-box input {
    font-size: 0.82rem;
    padding: 0 12px 0 32px;
    height: 36px;
  }

  /* Bottom Navigation styling */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(19, 25, 32, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 900;
    justify-content: space-around;
    align-items: center;
    padding: 4px 8px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  }
  body.light-theme .bottom-nav {
    background: rgba(240, 246, 252, 0.85);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
  }
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    font-size: 0.68rem;
    font-weight: 500;
    gap: 4px;
    flex: 1;
    height: 100%;
    transition: color 0.2s ease;
  }
  .bottom-nav-item svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
  }
  .bottom-nav-item.active {
    color: var(--accent);
  }
  .bottom-nav-item.active svg {
    transform: scale(1.08);
  }

  /* Floating Mini-Player on mobile */
  .player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 76px;
    height: var(--player-h);
    padding: 0 12px;
    background: rgba(19, 25, 32, 0.88);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 850;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    overflow: hidden;
  }
  body.light-theme .player {
    background: rgba(255, 255, 255, 0.9);
  }

  .player-track-info {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 65%;
    min-width: 0;
    cursor: pointer;
  }
  .player-artwork-wrap img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
  }
  .player-text {
    min-width: 0;
    max-width: 140px;
  }
  .player-text strong {
    font-size: 0.84rem;
  }
  .player-text span {
    font-size: 0.72rem;
  }
  .player-like-btn {
    width: 32px;
    height: 32px;
    display: flex !important;
  }
  .player-add-btn {
    display: none !important;
  }

  /* Mini-player controls */
  .player-middle {
    flex: 0 0 auto;
    padding: 0;
  }
  .player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .player-controls #shuffleBtn,
  .player-controls #prevBtn,
  .player-controls #loopBtn {
    display: none !important;
  }
  .play-btn {
    width: 38px;
    height: 38px;
  }
  .play-btn svg {
    width: 16px;
    height: 16px;
  }
  .player-controls #nextBtn {
    width: 32px;
    height: 32px;
    display: inline-flex !important;
  }

  /* Hide right side of mini-player */
  .player-right {
    display: none !important;
  }

  /* Progress bar at the top edge of mini player */
  .player .progress-row {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    padding: 0;
    gap: 0;
    pointer-events: none;
  }
  .player .progress-row #currentTime,
  .player .progress-row #duration {
    display: none !important;
  }
  .player .progress-bar-wrap {
    height: 3px;
    border-radius: 0;
  }
  .player .progress-bar-track,
  .player .progress-bar-fill {
    height: 3px;
    border-radius: 0;
  }

  /* Full Screen Expanded Player State on Mobile */
  .player.expanded {
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    border-radius: 0;
    border: none;
    z-index: 1000;
    padding: 32px 24px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    background: linear-gradient(to bottom, var(--surface) 0%, var(--bg) 100%) !important;
    overflow-y: auto;
  }
  
  .player.expanded .player-close-btn {
    display: flex;
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    z-index: 1010;
    color: var(--text);
  }
  .player.expanded .player-close-btn svg {
    width: 24px;
    height: 24px;
  }

  /* Expanded artwork and details */
  .player.expanded .player-track-info {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto;
    gap: 12px;
    align-items: center;
    max-width: 100%;
    width: 100%;
    margin-top: 48px;
    cursor: default;
  }
  .player.expanded .player-artwork-wrap {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: min(280px, 70vw);
    aspect-ratio: 1;
    margin-bottom: 24px;
  }
  .player.expanded .player-artwork-wrap img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  }
  .player.expanded .player-text {
    grid-column: 1;
    max-width: none;
  }
  .player.expanded .player-text strong {
    font-size: 1.35rem;
    font-weight: 700;
    white-space: normal;
  }
  .player.expanded .player-text span {
    font-size: 0.9rem;
    color: var(--text-2);
    margin-top: 4px;
    white-space: normal;
  }
  .player.expanded .player-like-btn {
    grid-column: 2;
    width: 36px;
    height: 36px;
  }
  .player.expanded .player-add-btn {
    grid-column: 3;
    display: flex !important;
    width: 36px;
    height: 36px;
  }

  /* Expanded Seekbar row */
  .player.expanded .player-middle {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
    margin-bottom: 24px;
  }
  .player.expanded .progress-row {
    position: relative;
    top: 0;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-2);
    pointer-events: auto;
  }
  .player.expanded .progress-row #currentTime,
  .player.expanded .progress-row #duration {
    display: block !important;
  }
  .player.expanded .progress-bar-wrap {
    height: 6px;
    border-radius: 3px;
  }
  .player.expanded .progress-bar-track,
  .player.expanded .progress-bar-fill {
    height: 6px;
    border-radius: 3px;
  }
  .player.expanded .progress-bar-wrap input[type="range"]::-webkit-slider-thumb {
    opacity: 1 !important;
    transform: scale(1.1);
  }

  /* Expanded controls */
  .player.expanded .player-controls {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 8px;
    gap: 0;
  }
  .player.expanded .player-controls #shuffleBtn,
  .player.expanded .player-controls #prevBtn,
  .player.expanded .player-controls #loopBtn {
    display: inline-flex !important;
    width: 40px;
    height: 40px;
  }
  .player.expanded .player-controls #prevBtn svg,
  .player.expanded .player-controls #nextBtn svg {
    width: 20px;
    height: 20px;
  }
  .player.expanded .player-controls .play-btn {
    width: 68px;
    height: 68px;
    background: var(--accent);
    box-shadow: 0 8px 24px var(--accent-glow);
  }
  .player.expanded .player-controls .play-btn svg {
    width: 28px;
    height: 28px;
  }

  /* Expanded bottom actions row */
  .player.expanded .player-right {
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin-top: 12px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    gap: 16px;
  }
  .player.expanded .player-vol {
    display: flex !important;
  }
  .player.expanded .player-vol input {
    display: none !important;
  }

  /* Mobile Up Next Sidebar (slides up as drawer) */
  .now-playing-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100% !important;
    height: 100vh;
    z-index: 1100;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .now-playing-sidebar.open {
    transform: translateY(0) !important;
  }

  /* Lyrics Panel full screen on mobile */
  .lyrics-panel {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    z-index: 1100;
  }
  .lyrics-line {
    font-size: clamp(1.2rem, 5.5vw, 1.6rem);
    line-height: 2;
    padding: 8px 16px;
  }

  /* Center toasts on mobile screen */
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: calc(var(--player-h) + 84px) !important;
    align-items: center;
    z-index: 950;
  }
  .toast {
    max-width: 100%;
    width: 100%;
    justify-content: center;
  }

  .content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 20px 16px;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .grid-wide {
    grid-template-columns: 1fr;
  }
  .playlist-list {
    grid-template-columns: 1fr;
  }
  .hero-btns {
    flex-direction: column;
  }
  .hero-btns .btn-primary,
  .hero-btns .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .player-text {
    max-width: 90px;
  }
}

/* Touch Device Play Overlay Visual Indicator */
@media (hover: none) {
  .track-card-play-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
  }
  .track-card-play-icon {
    transform: scale(0.9) !important;
    opacity: 0.95;
  }
  .track-card:hover .track-card-play-icon {
    transform: scale(0.9) !important;
  }
}
