/* ===== CSS Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base: #0f0f0f;
  --bg-surface: #212121;
  --bg-surface-2: #2d2d2d;
  --bg-surface-3: #383838;
  --bg-hover: rgba(255,255,255,0.08);
  --bg-active: rgba(255,255,255,0.12);
  --text-primary: #fff;
  --text-secondary: rgba(255,255,255,0.7);
  --text-muted: rgba(255,255,255,0.4);
  --accent: #FF0000;
  --accent-hover: #e50000;
  --border: rgba(255,255,255,0.1);
  --nav-height: 56px;
  --player-height: 72px;
  --sidebar-width: 240px;
  --sidebar-mini: 72px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;
  --transition: 200ms ease;
}

html { font-size: 14px; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Roboto', 'YouTube Sans', sans-serif;
  overflow: hidden;
  height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; color: inherit; font-family: inherit; }
img { display: block; }
input { outline: none; font-family: inherit; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.35); }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--bg-base);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  z-index: 200;
  border-bottom: 1px solid var(--border);
}

.nav-left { display: flex; align-items: center; gap: 4px; min-width: 200px; }
.nav-center { flex: 1; display: flex; justify-content: center; }
.nav-right { display: flex; align-items: center; gap: 4px; min-width: 200px; justify-content: flex-end; }

.nav-menu-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-primary);
  transition: background var(--transition);
}
.nav-menu-btn:hover { background: var(--bg-hover); }

.nav-logo {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.logo-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

/* Search */
.search-container {
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  position: relative;
}

.search-back-btn {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-primary);
  flex-shrink: 0;
}
.search-back-btn:hover { background: var(--bg-hover); }

.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  padding: 0 40px 0 16px;
  color: var(--text-primary);
  font-size: 16px;
  transition: border-color var(--transition), background var(--transition);
}
.search-input:focus {
  border-color: #1c62b9;
  background: var(--bg-surface-2);
}
.search-input::placeholder { color: var(--text-muted); }

.search-clear-btn {
  position: absolute;
  right: 8px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  display: none;
}
.search-clear-btn:hover { background: var(--bg-hover); }
.search-clear-btn.visible { display: flex; }

.search-submit-btn {
  width: 64px; height: 40px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition);
  flex-shrink: 0;
}
.search-submit-btn:hover { background: var(--bg-surface-3); }

.nav-search-icon {
  width: 40px; height: 40px;
  display: none;
  align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-primary);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: 300;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  display: none;
}
.search-suggestions.visible { display: block; }

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition);
}
.suggestion-item:hover { background: var(--bg-hover); }
.suggestion-item svg { color: var(--text-muted); flex-shrink: 0; }
.suggestion-item span { font-size: 14px; }

.nav-icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-primary);
  transition: background var(--transition);
}
.nav-icon-btn:hover { background: var(--bg-hover); }

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  bottom: var(--player-height);
  width: var(--sidebar-width);
  background: var(--bg-base);
  padding: 8px 0;
  overflow-y: auto;
  z-index: 100;
  transition: width var(--transition), transform var(--transition);
}

.sidebar-nav { display: flex; flex-direction: column; }

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  height: 48px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  border-radius: 0;
  position: relative;
}
.sidebar-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.sidebar-item.active {
  background: var(--bg-active);
  color: var(--text-primary);
}
.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 24px;
}

/* ===== Main ===== */
.main {
  position: fixed;
  top: var(--nav-height);
  left: var(--sidebar-width);
  right: 0;
  bottom: var(--player-height);
  overflow-y: auto;
  transition: left var(--transition);
}

.main.no-sidebar { left: 0; }

#pageContent { min-height: 100%; }

/* ===== Loading ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Home Page ===== */
.home-page { padding: 24px; }

.section { margin-bottom: 32px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.section-more {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: background var(--transition), color var(--transition);
}
.section-more:hover { background: var(--bg-hover); color: var(--text-primary); }

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

/* Cards */
.card {
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: background var(--transition);
  padding: 12px;
  position: relative;
}
.card:hover { background: var(--bg-hover); }
.card:hover .card-play { opacity: 1; transform: translateY(0); }

.card-thumb-wrap {
  position: relative;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-surface-2);
}
.card-thumb-wrap.rounded { border-radius: 50%; }
.card-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
}
.card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-surface-2);
  color: var(--text-muted);
}

.card-play {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 48px; height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s, background 0.15s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.card-play:hover { background: var(--accent-hover); }

.card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.explicit-badge {
  display: inline-block;
  background: var(--text-muted);
  color: var(--bg-base);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

/* ===== Search Results ===== */
.search-page { padding: 24px; }
.search-page-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.result-list { display: flex; flex-direction: column; }

.result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
}
.result-item:hover { background: var(--bg-hover); }
.result-item:hover .result-play { opacity: 1; }

.result-thumb-wrap {
  position: relative;
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface-2);
}
.result-thumb-wrap.rounded { border-radius: 50%; }
.result-thumb { width: 100%; height: 100%; object-fit: cover; }

.result-play {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.result-info { flex: 1; min-width: 0; }
.result-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.result-meta {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ===== Artist Page ===== */
.artist-page { }

.artist-header {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.artist-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(0px);
}
.artist-header-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 60%, var(--bg-base) 100%);
}
.artist-header-content {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
}
.artist-name {
  font-size: 48px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  line-height: 1;
  margin-bottom: 8px;
}
.artist-followers {
  font-size: 14px;
  color: var(--text-secondary);
}

.artist-body { padding: 0 24px 24px; }

/* ===== Album/Playlist Header ===== */
.collection-page { }

.collection-header {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 24px;
  background: linear-gradient(to bottom, var(--bg-surface) 0%, var(--bg-base) 100%);
}
.collection-art {
  width: 192px;
  height: 192px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  background: var(--bg-surface-2);
}
.collection-art img { width: 100%; height: 100%; object-fit: cover; }

.collection-meta { flex: 1; }
.collection-type {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.collection-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.1;
}
.collection-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.collection-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-play-all {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition);
}
.btn-play-all:hover { background: var(--accent-hover); }

.collection-body { padding: 0 24px 24px; }

/* Track list */
.track-list { display: flex; flex-direction: column; }
.track-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
}
.track-item:hover { background: var(--bg-hover); }
.track-item.active { background: rgba(255,0,0,0.1); }
.track-item.active .track-title { color: var(--accent); }

.track-num {
  width: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.track-thumb-wrap {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-surface-2);
}
.track-thumb { width: 100%; height: 100%; object-fit: cover; }

.track-info { flex: 1; min-width: 0; }
.track-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-duration {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ===== Player ===== */
.player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--player-height);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  z-index: 300;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  flex: 1;
}
.player-thumbnail-wrap {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface-2);
}
.player-thumbnail { width: 100%; height: 100%; object-fit: cover; }
.player-info { min-width: 0; }
.player-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-artist {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-like-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.player-like-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

.player-center {
  flex: 1;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.player-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.player-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.player-play-btn {
  width: 48px; height: 48px;
  color: var(--text-primary);
}

.player-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.player-time {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 35px;
  text-align: center;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-surface-3);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.progress-bar:hover .progress-thumb { opacity: 1; }
.progress-bar:hover .progress-fill { background: var(--accent); }
.progress-fill {
  height: 100%;
  background: var(--text-secondary);
  border-radius: 2px;
  pointer-events: none;
  transition: background 0.1s;
}
.progress-thumb {
  position: absolute;
  top: 50%;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s;
}

.player-right {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 200px;
  justify-content: flex-end;
}
.volume-control {
  display: flex;
  align-items: center;
  gap: 4px;
}
.volume-slider {
  width: 80px;
  height: 4px;
  accent-color: var(--text-secondary);
  cursor: pointer;
  appearance: none;
  background: var(--bg-surface-3);
  border-radius: 2px;
  outline: none;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.player-expand-btn { }

/* ===== Expanded Player ===== */
.expanded-player {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: stretch;
}

.exp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.95);
}

.exp-content {
  position: relative;
  width: 100%;
  display: flex;
  height: 100%;
}

.exp-close {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.exp-close:hover { background: var(--bg-hover); color: var(--text-primary); }

.exp-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  gap: 24px;
}

.exp-album-art {
  width: 300px; height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 64px rgba(0,0,0,0.6);
  background: var(--bg-surface-2);
  flex-shrink: 0;
}
.exp-album-art img { width: 100%; height: 100%; object-fit: cover; }

.exp-song-info { text-align: center; }
.exp-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.exp-artist {
  font-size: 15px;
  color: var(--text-secondary);
}

.exp-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.exp-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.exp-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.exp-play-btn {
  width: 64px; height: 64px;
  background: var(--accent);
  color: #fff;
  transition: background var(--transition);
}
.exp-play-btn:hover { background: var(--accent-hover); }

.exp-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}
.exp-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-surface-3);
  border-radius: 2px;
  cursor: pointer;
}
.exp-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}
.exp-progress span { font-size: 12px; color: var(--text-muted); min-width: 35px; text-align: center; }

.exp-right {
  width: 380px;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}

.exp-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.exp-tab {
  flex: 1;
  padding: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  text-align: center;
}
.exp-tab:hover { color: var(--text-primary); }
.exp-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.exp-panel { flex: 1; overflow-y: auto; padding: 8px 0; }

.queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background var(--transition);
}
.queue-item:hover { background: var(--bg-hover); }
.queue-item.active { background: rgba(255,0,0,0.1); }
.queue-item.active .queue-title { color: var(--accent); }

.queue-thumb-wrap {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-surface-2);
  position: relative;
}
.queue-thumb { width: 100%; height: 100%; object-fit: cover; }
.queue-now-playing {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.queue-info { flex: 1; min-width: 0; }
.queue-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-artist {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-duration {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.lyrics-text {
  padding: 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre-line;
}

/* ===== YouTube iframe (hidden behind) ===== */
#ytIframe {
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ===== Chips / Filters ===== */
.chips {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  background: transparent;
  color: var(--text-secondary);
}
.chip:hover { background: var(--bg-hover); color: var(--text-primary); }
.chip.active {
  background: var(--text-primary);
  color: var(--bg-base);
  border-color: var(--text-primary);
}

/* ===== Error / Empty ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  gap: 12px;
  color: var(--text-muted);
}
.empty-state svg { opacity: 0.4; }
.empty-state p { font-size: 15px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .sidebar { width: var(--sidebar-mini); }
  .sidebar-item span { display: none; }
  .sidebar-item { justify-content: center; padding: 0; }
  .main { left: var(--sidebar-mini); }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .main { left: 0; }
  .search-container { max-width: 100%; }
  .nav-left { min-width: auto; }
  .nav-right { min-width: auto; }
  .collection-header { flex-direction: column; align-items: center; text-align: center; }
  .collection-art { width: 160px; height: 160px; }
  .artist-name { font-size: 32px; }
  .exp-right { display: none; }
  .volume-control { display: none; }
  .shelf { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.2s ease; }

/* Now playing bars */
.now-playing-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}
.now-playing-bars span {
  display: block;
  width: 3px;
  background: var(--accent);
  border-radius: 1px;
  animation: bars 1s ease-in-out infinite;
}
.now-playing-bars span:nth-child(1) { height: 60%; animation-delay: 0s; }
.now-playing-bars span:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.now-playing-bars span:nth-child(3) { height: 40%; animation-delay: 0.4s; }

@keyframes bars {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}
