/* Recent searches */
/* Search filter pills */
.search-filters {
  display: flex;
  gap: 8px;
  padding: 8px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.search-filters::-webkit-scrollbar { display: none; }

.filter-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--duration-fast);
}

.filter-pill.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.filter-pill:active { transform: scale(0.95); }

.search-discover-section {
  padding: 16px 20px 0;
}
.search-discover-section + .search-discover-section {
  padding-top: 24px;
}
.search-discover-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.search-recent-tracks {
  display: flex;
  flex-direction: column;
}
.search-recent-track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  cursor: pointer;
}
.search-recent-track:active { opacity: 0.7; }
.search-recent-art {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-elevated);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.search-recent-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.search-recent-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-recent-artist {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-searches-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.recent-searches-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.recent-searches-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.recent-search-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--duration-fast);
}

.recent-search-chip:active { background: var(--bg-active); }

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ==========================================
   HOVER STATES (desktop)
   ========================================== */
@media (hover: hover) {
  .track-item:hover { background: var(--bg-hover); }
  .queue-item:hover { background: var(--bg-hover); }
  .track-card:hover .card-play-overlay { opacity: 1; transform: scale(1); }
}

/* ==========================================
   WIDER SCREENS
   ========================================== */
@media (min-width: 600px) {
  .np-content { max-width: 500px; margin: 0 auto; }
  .np-artwork { max-width: 400px; }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01s !important;
    transition-duration: 0.01s !important;
  }
}

/* ==========================================
   HEADER USERNAME
   ========================================== */
.header-username {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================
   LIBRARY — Playlists
   ========================================== */
/* ==========================================
   LIBRARY — Top grid shortcuts
   ========================================== */
/* ==========================================
   LIBRARY — nav list
   ========================================== */
.library-nav {
  padding: 4px 0;
}
.library-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background var(--duration-fast);
}
.library-nav-item:active { background: var(--bg-hover); }
.library-nav-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.library-nav-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}
.library-nav-count {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-right: 4px;
}
.library-nav-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  flex-shrink: 0;
}
.library-nav-play:active { transform: scale(0.9); }

/* ==========================================
   FULLSCREEN OVERLAYS (liked songs, downloads)
   ========================================== */
.fullscreen-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fullscreen-overlay.hidden { display: none; }

.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  padding-top: calc(16px + var(--safe-top));
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 2;
  border-bottom: 1px solid var(--glass-border);
}
.overlay-header h2 {
  font-size: 17px;
  font-weight: 700;
}
.overlay-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--mini-player-h) + var(--tab-bar-h) + var(--safe-bottom) + 16px);
}

/* ==========================================
   LIKED SONGS — legacy compat
   ========================================== */
.liked-songs-title {
  font-size: 16px;
  font-weight: 700;
}

.liked-songs-count {
  font-size: 13px;
  color: var(--text-secondary);
}

.liked-songs-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--duration-fast) var(--ease-spring);
  box-shadow: 0 4px 12px rgba(252, 60, 68, 0.3);
}

.liked-songs-play-btn:active { transform: scale(0.9); }

.liked-songs-play-btn svg { margin-left: 2px; }

/* Quick-play grid (Spotify top section) */
.quickplay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px;
}

.quickplay-tile {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: background var(--duration-fast), transform var(--duration-fast);
  height: 58px;
}

.quickplay-tile:active {
  background: var(--bg-active);
  transform: scale(0.97);
}

.quickplay-tile-art {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--bg-hover);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.quickplay-tile-art.fav-gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
}

.quickplay-tile-art.playlist-gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1db954, #1a9147);
}

.quickplay-tile-title {
  flex: 1;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
  line-height: 1.3;
}

/* Saved artists */
.playlist-list { padding: 0; }

.playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.playlist-item:active { background: var(--bg-hover); }

.playlist-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.playlist-cover {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-elevated);
}
.playlist-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.playlist-cover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
}
.playlist-cover-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.playlist-cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.playlist-title {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-meta {
  font-size: 12px;
  color: var(--text-tertiary);
}

.playlist-delete-btn {
  background: none;
  border: none;
  color: var(--text-tertiary);
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.playlist-delete-btn:active { color: var(--accent); }

/* ==========================================
   LIBRARY — Stats
   ========================================== */
/* Stats — Period pills */
.stats-period-pills {
  display: flex;
  gap: 8px;
  padding: 12px 20px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.stats-period-pills::-webkit-scrollbar { display: none; }

.stats-period-pill {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--divider);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast);
}
.stats-period-pill.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* Stats — Hero numbers */
.stats-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 0 8px;
}
.stats-hero-stat {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}
.stats-hero-value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.stats-hero-label {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Stats — Podium (top 3) */
.stats-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
}
.stats-podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90px;
  text-align: center;
  cursor: pointer;
}
.stats-podium-item.gold {
  order: 0;
}
.stats-podium-item:first-child { order: -1; } /* silver left */
.stats-podium-item:last-child { order: 1; }   /* bronze right */

.stats-podium-medal {
  font-size: 20px;
  margin-bottom: 6px;
}
.stats-podium-art {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  margin-bottom: 8px;
}
.stats-podium-item.gold .stats-podium-art {
  width: 88px;
  height: 88px;
  border: 2px solid var(--accent);
}
.stats-podium-title {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.stats-podium-meta {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* Stats — Artist rows */
.stats-artists-section {
  display: flex;
  flex-direction: column;
}
.stats-artist-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.stats-artist-row + .stats-artist-row {
  border-top: 1px solid var(--divider);
}
.stats-artist-rank {
  width: 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-align: center;
  flex-shrink: 0;
}
.stats-artist-info { flex: 1; min-width: 0; }
.stats-artist-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stats-artist-count {
  display: block;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Legacy stat-card (still used elsewhere) */
.stat-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-card-wide {
  grid-column: 1 / -1;
}

.top-artist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.top-artist-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.top-artist-plays {
  font-size: 13px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.track-rank {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-tertiary);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.top-tracks-list-inner .track-item {
  padding: 10px 20px;
}
.top-tracks-list-inner .track-item + .track-item {
  border-top: 1px solid var(--glass-border);
}

/* Weekly bars */
.weekly-stats {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.weekly-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.weekly-bar-row + .weekly-bar-row {
  border-top: 1px solid var(--glass-border);
}

.weekly-label {
  font-size: 13px;
  color: var(--text-secondary);
  width: 36px;
  flex-shrink: 0;
  text-align: right;
}

.weekly-bar-bg {
  flex: 1;
  height: 6px;
  background: var(--bg-hover);
  border-radius: 3px;
  overflow: hidden;
}

.weekly-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: width var(--duration-slow) var(--ease-out);
}

.weekly-value {
  font-size: 13px;
  color: var(--text-secondary);
  width: 48px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* About modal */
.about-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.about-modal-content {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  max-width: 280px;
  width: 100%;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.about-logo { margin-bottom: 16px; }
.about-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}
.about-version {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.about-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 0 20px 16px;
}
.about-line {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.about-numbers {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 8px;
  letter-spacing: 2px;
}

.about-update-btn {
  background: var(--bg-hover);
  border: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-fast);
  width: 100%;
}
.about-update-btn:active {
  background: var(--bg-active);
}
.about-update-btn:disabled {
  color: var(--text-tertiary);
  cursor: wait;
}

/* Logout button */
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background var(--duration-fast);
}

.btn-secondary:active { background: var(--bg-hover); }

/* ==========================================
   SETTINGS
   ========================================== */
.settings-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 20px 6px;
}
.settings-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  min-height: 44px;
}
.settings-row + .settings-row {
  border-top: 1px solid var(--glass-border);
}
.settings-row-action {
  cursor: pointer;
  transition: background var(--duration-fast);
}
.settings-row-action:active {
  background: var(--bg-hover);
}
.settings-row-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.settings-label {
  flex: 1;
  font-size: 15px;
  color: var(--text-primary);
}
.settings-value {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Downloads management view */
.downloads-storage-info {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--divider);
}
.downloads-manage-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--mini-player-h) + 20px);
}
.dl-manage-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  transition: background var(--duration-fast);
}
.dl-manage-item + .dl-manage-item {
  border-top: 1px solid var(--divider);
}
.dl-manage-art {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-hover);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.dl-manage-info {
  flex: 1;
  min-width: 0;
}
.dl-manage-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dl-manage-meta {
  display: block;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.dl-manage-remove {
  background: none;
  border: none;
  color: var(--text-tertiary);
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration-fast);
}
.dl-manage-remove:active,
.dl-manage-remove:hover {
  color: var(--accent);
}

/* Settings toggle switch (iOS style) */
.settings-toggle {
  position: relative;
  width: 51px;
  height: 31px;
  flex-shrink: 0;
}
.settings-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.settings-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-hover);
  border-radius: var(--radius-lg);
  transition: background var(--duration-normal);
  cursor: pointer;
}
.settings-toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s var(--ease-spring);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.settings-toggle input:checked + .settings-toggle-slider {
  background: var(--success);
}
.settings-toggle input:checked + .settings-toggle-slider::before {
  transform: translateX(20px);
}

/* ==========================================
   ADMIN PANEL
   ========================================== */
.admin-scroll {
  padding: 16px;
}
.admin-user-card {
  margin-bottom: 8px;
}
.admin-user-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 12px;
}
.admin-user-info {
  flex: 1;
  min-width: 0;
}
.admin-user-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.admin-user-meta {
  display: block;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.admin-user-menu-btn {
  background: none;
  border: none;
  color: var(--text-tertiary);
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--duration-fast);
}
.admin-user-menu-btn:active {
  background: var(--bg-hover);
}

/* Admin dialogs */
.admin-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: calc(100% - 48px);
  max-width: 320px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.admin-dialog h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.admin-input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.admin-input:focus {
  border-color: var(--accent);
}
.admin-input::placeholder {
  color: var(--text-tertiary);
}
.admin-dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.admin-btn-cancel {
  flex: 1;
  background: var(--bg-hover);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}
.admin-btn-confirm {
  flex: 1;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  cursor: pointer;
}
.admin-btn-cancel:active { opacity: 0.7; }
.admin-btn-confirm:active { opacity: 0.7; }

.admin-menu-title {
  padding: 12px 16px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Download progress bar */
.dl-progress-bar {
  position: fixed;
  bottom: calc(var(--tab-bar-h) + var(--safe-bottom) + 60px);
  left: 16px;
  right: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  z-index: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: toast-in var(--duration-normal) var(--ease-out);
}
.dl-progress-bar.dl-progress-done {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s var(--ease-out);
}
.dl-progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.dl-progress-title {
  font-size: 13px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  margin-right: 8px;
}
.dl-progress-pct {
  font-size: 13px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.dl-progress-track {
  height: 4px;
  background: var(--bg-hover);
  border-radius: 2px;
  overflow: hidden;
}
/* (Legacy monthly-stats-card CSS removed — replaced by stats-hero + stats-podium) */

/* Accent color picker */
.accent-color-picker {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.accent-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring), border-color var(--duration-fast);
  padding: 0;
}
.accent-dot.active {
  border-color: white;
  transform: scale(1.15);
}
.accent-dot:active {
  transform: scale(0.9);
}

/* Smart playlist cards */
.smart-playlist-card {
  flex-shrink: 0;
  width: 150px;
  cursor: pointer;
}
.smart-playlist-cover {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform var(--duration-fast) var(--ease-out);
}

/* Gesture hints */
.gesture-hint-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s var(--ease-out);
  animation: tab-fade-in 0.3s var(--ease-out);
}
.gesture-hint-content {
  text-align: center;
  color: white;
}
.gesture-hint-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 20px;
  opacity: 0.9;
}
.gesture-hint-item svg {
  opacity: 0.6;
}
.gesture-hint-dismiss {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 24px;
}

/* Empty states */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-secondary);
}
.empty-state svg {
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.empty-state p {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.empty-state-hint {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--text-tertiary);
}

/* Skeleton loaders */
.skeleton {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.skeleton-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}
.skeleton-art {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skeleton-line {
  height: 12px;
  border-radius: var(--radius-xs);
}
.skeleton-line:first-child { width: 70%; }
.skeleton-line:last-child { width: 45%; }
.skeleton-card {
  width: 140px;
  flex-shrink: 0;
}
.skeleton-card-art {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}
.skeleton-card-line {
  height: 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 6px;
}
.skeleton-card-line:first-of-type { width: 80%; }
.skeleton-card-line:last-of-type { width: 50%; }
.skeleton-quickplay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px;
}
.skeleton-tile {
  height: 56px;
  border-radius: var(--radius-sm);
}

/* Pull-to-refresh */
.pull-refresh-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.dl-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out);
}

