:root {
  --primary: #ff9069;
  --primary-hover: #ffa07a;
  --primary-dim: #ff7440;
  --secondary: #2dbcfe;
  --tertiary: #f5aeff;
  --bg-base: #000000;
  --bg-surface: #0e0e0e;
  --bg-elevated: #141414;
  --bg-highlight: #1a1a1a;
  --bg-card: #181818;
  --bg-card-hover: #282828;
  --bg-sidebar: #000000;
  --bg-player: #181818;
  --text-primary: #ffffff;
  --text-secondary: #a7a7a7;
  --text-tertiary: #727272;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.04);
  --accent-gradient: linear-gradient(135deg, var(--primary), #ff6b3d);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --anim-fast: 0.2s var(--ease-smooth);
  --anim-normal: 0.35s var(--ease-smooth);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-card-hover) transparent;
}
*::-webkit-scrollbar { width: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--bg-card-hover); border-radius: 4px; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

#app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

.sidebar-logo {
  padding: 24px 24px 16px;
}

.sidebar-logo a {
  font-size: 1.1rem;
  font-weight: 900;
  font-style: italic;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #000;
  flex-shrink: 0;
}

.sidebar-nav {
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.85rem;
  transition: all var(--anim-fast);
  position: relative;
}

.sidebar-link:hover {
  color: var(--text-primary);
}

.sidebar-link.active {
  color: var(--text-primary);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-link .material-symbols-outlined {
  font-size: 1.35rem;
}

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

.sidebar-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  padding: 16px 24px 8px;
  font-family: 'Manrope', sans-serif;
}

.sidebar-user {
  margin-top: auto;
  padding: 8px;
  border-top: 1px solid var(--border-subtle);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: background var(--anim-fast);
  cursor: pointer;
}

.user-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-handle { font-size: 0.65rem; color: var(--text-tertiary); }

/* ===== CONTENT PANEL ===== */
.content-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-surface);
  position: relative;
}

.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 24px 24px;
}

.main-content::-webkit-scrollbar { width: 10px; }
.main-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 5px; }
.main-content::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

/* ===== TOP BAR (inside content) ===== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-surface);
}

.top-bar-search {
  position: relative;
  flex: 1;
  max-width: 360px;
}

.top-bar-search input {
  width: 100%;
  background: var(--bg-elevated);
  border: none;
  border-radius: 20px;
  padding: 10px 16px 10px 40px;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  transition: all var(--anim-fast);
}

.top-bar-search input:focus {
  outline: none;
  background: var(--bg-highlight);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.1);
}

.top-bar-search input::placeholder { color: var(--text-tertiary); }

.top-bar-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 1.2rem;
  pointer-events: none;
}

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

.top-bar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--anim-fast);
}

.top-bar-btn:hover {
  background: var(--bg-highlight);
  color: var(--text-primary);
}

/* ===== VIEW ===== */
.view {
  animation: fadeIn 0.3s var(--ease-smooth);
  padding-top: 8px;
}

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===== HERO ===== */
.hero-section {
  margin-bottom: 24px;
}

.hero-card {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}
.hero-card:hover .hero-bg { transform: scale(1.05); }

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.85) 20%, rgba(0,0,0,0.4) 60%, transparent 85%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.hero-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 8px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.hero-title .accent { color: var(--primary); display: block; }

.hero-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.5;
  margin-bottom: 16px;
}

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

/* ===== SECTION HEADERS ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.section-link {
  font-family: 'Manrope', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--anim-fast);
}
.section-link:hover { color: var(--text-primary); }

/* ===== CARDS GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all var(--anim-normal);
  border: 1px solid var(--border-card);
  position: relative;
}

.card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.card-cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}
.card:hover .card-cover img { transform: scale(1.08); }

.card-play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition: all 0.25s var(--ease-spring);
  box-shadow: 0 4px 12px rgba(255, 144, 105, 0.4);
  border: none;
  cursor: pointer;
  z-index: 2;
}

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

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

.card-play .material-symbols-outlined {
  font-size: 1.3rem;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  font-family: 'Manrope', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
}

/* ===== HORIZONTAL SCROLL ROW ===== */
.track-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
}
.track-row::-webkit-scrollbar { display: none; }

.track-row .card {
  min-width: 160px;
  max-width: 180px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* ===== ALBUM/TRACK LIST ===== */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track-list-item {
  display: grid;
  grid-template-columns: 32px 40px 1fr 80px 36px;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--anim-fast);
}

.track-list-item:hover {
  background: rgba(255,255,255,0.04);
}

.track-list-item .track-num {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  text-align: center;
  font-weight: 400;
}

.track-list-item .track-art-sm {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.track-list-item .track-art-sm img { width: 100%; height: 100%; object-fit: cover; }

.track-list-item .track-info {
  min-width: 0;
}
.track-list-item .track-info .name {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-list-item .track-info .artist {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-list-item .track-duration {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-align: right;
}

.track-list-item .track-list-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--anim-fast);
}

.track-list-item:hover .track-list-play {
  opacity: 1;
}

.track-list-item .track-list-play:hover {
  background: rgba(255,255,255,0.08);
}

/* ===== ALBUM HEADER ===== */
.album-header {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 24px 0;
  flex-wrap: wrap;
}

.album-cover-lg {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.album-cover-lg img { width: 100%; height: 100%; object-fit: cover; }

.album-info { flex: 1; min-width: 200px; }

.album-info .album-type {
  font-family: 'Manrope', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.album-info h1 {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.album-info .album-artist {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.album-info .album-stats {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.album-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  padding: 10px 24px;
  background: var(--accent-gradient);
  color: #000;
  border: none;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--anim-spring);
  box-shadow: 0 4px 16px rgba(255, 121, 72, 0.3);
}

.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(255, 121, 72, 0.4);
}

.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  padding: 10px 24px;
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--anim-fast);
  font-family: 'Inter', sans-serif;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* ===== AUDIO PLAYER ===== */
.audio-player {
  flex-shrink: 0;
  height: 80px;
  background: var(--bg-player);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  z-index: 50;
  position: relative;
}

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

.player-album-art {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-elevated);
}
.player-album-art img { width: 100%; height: 100%; object-fit: cover; }

.player-meta { min-width: 0; }
.player-track-title {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-artist-name {
  font-size: 0.65rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-like {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 6px;
  transition: all var(--anim-fast);
  flex-shrink: 0;
}
.player-like:hover { color: var(--text-primary); }
.player-like.liked { color: var(--primary); }

.player-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 600px;
  margin: 0 auto;
}

.player-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--anim-fast);
  border-radius: 50%;
}

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

.player-btn-primary {
  width: 40px;
  height: 40px;
  background: var(--text-primary);
  color: #000 !important;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.player-btn-primary:hover {
  transform: scale(1.06);
  color: #000 !important;
}

.player-btn-primary .material-symbols-outlined {
  font-size: 1.5rem;
}

.player-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.player-time {
  font-family: 'Manrope', sans-serif;
  font-size: 0.6rem;
  color: var(--text-tertiary);
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: height var(--anim-fast);
}
.progress-bar:hover { height: 6px; }

.progress-fill {
  height: 100%;
  background: var(--text-primary);
  border-radius: 4px;
  width: 0%;
  position: relative;
  transition: width 0.1s linear;
}

.progress-bar:hover .progress-fill {
  background: var(--primary);
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--text-primary);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--anim-fast);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.progress-bar:hover .progress-fill::after {
  opacity: 1;
}

.player-extras {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 25%;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-slider {
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: height var(--anim-fast);
}
.volume-slider:hover { height: 6px; }

.volume-fill {
  height: 100%;
  background: var(--text-primary);
  border-radius: 4px;
  width: 75%;
}
.volume-slider:hover .volume-fill { background: var(--primary); }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bg-player);
  border-top: 1px solid var(--border-subtle);
  z-index: 100;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 12px;
  color: var(--text-tertiary);
  text-decoration: none;
  font-family: 'Manrope', sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  transition: color var(--anim-fast);
}

.mobile-nav-item.active { color: var(--text-primary); }
.mobile-nav-item .material-symbols-outlined { font-size: 1.3rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  .sidebar { display: none; }
  .mobile-nav { display: flex; }
  .main-content { padding: 0 16px 72px; }
  .audio-player { height: 64px; padding: 0 10px; gap: 10px; }
  .player-track-info { width: auto; flex: 1; }
  .player-extras { display: none; }
  .player-album-art { width: 40px; height: 40px; }
  .player-btn-primary { width: 36px; height: 36px; }
  .player-btn-primary .material-symbols-outlined { font-size: 1.3rem; }
  .player-buttons { gap: 10px; }
  .album-cover-lg { width: 160px; height: 160px; }
  .album-info h1 { font-size: 1.8rem; }
  .hero-card { height: 200px; }
  .hero-title { font-size: 1.8rem; }
  .hero-content { padding: 20px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .track-row .card { min-width: 140px; max-width: 155px; }
  .track-list-item { grid-template-columns: 28px 36px 1fr 36px; }
  .track-list-item .track-duration { display: none; }
}

@media (max-width: 639px) {
  .main-content { padding: 0 12px 72px; }
  .hero-card { height: 180px; border-radius: var(--radius-md); }
  .hero-title { font-size: 1.4rem; }
  .hero-description { font-size: 0.75rem; margin-bottom: 12px; }
  .hero-content { padding: 16px; }
  .hero-label { font-size: 0.55rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 8px; }
  .card-cover { margin-bottom: 8px; }
  .card-title { font-size: 0.75rem; }
  .card-subtitle { font-size: 0.65rem; }
  .card-play { width: 34px; height: 34px; right: 6px; bottom: 6px; }
  .card-play .material-symbols-outlined { font-size: 1.1rem; }
  .section-title { font-size: 1.1rem; }
  .album-cover-lg { width: 120px; height: 120px; }
  .album-info h1 { font-size: 1.3rem; }
  .album-header { padding: 16px 0; gap: 16px; }
  .track-row .card { min-width: 130px; max-width: 145px; }
  .track-row { gap: 10px; }
  .top-bar-search { max-width: none; }
  .top-bar-search input { font-size: 0.75rem; padding: 8px 12px 8px 36px; }
  .track-list-item { padding: 4px 8px; gap: 8px; grid-template-columns: 24px 32px 1fr 32px; }
  .track-list-item .track-info .name { font-size: 0.78rem; }
  .btn-primary { padding: 8px 18px; font-size: 0.75rem; }
  .btn-secondary { padding: 8px 18px; font-size: 0.75rem; }
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card-hover);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: toastIn 0.3s var(--ease-spring);
  pointer-events: auto;
  min-width: 200px;
  text-align: center;
}

.toast.error { border-left: 3px solid #ff716c; }
.toast.success { border-left: 3px solid #22c55e; }
.toast.info { border-left: 3px solid var(--secondary); }

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

/* ===== SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card-hover) 50%, var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-card { aspect-ratio: 1; border-radius: var(--radius-md); margin-bottom: 8px; }
.skeleton-text { height: 12px; border-radius: 3px; margin-bottom: 6px; }
.skeleton-text-sm { height: 10px; width: 60%; border-radius: 3px; }

/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}
.empty-state .material-symbols-outlined { font-size: 3rem; color: var(--text-tertiary); margin-bottom: 12px; opacity: 0.5; }
.empty-state h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.empty-state p { color: var(--text-secondary); font-size: 0.8rem; max-width: 300px; }

/* ===== GENRE GRID ===== */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.genre-card {
  padding: 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--anim-fast);
  border: 1px solid transparent;
}

.genre-card:hover {
  transform: translateY(-2px);
}

.genre-card .material-symbols-outlined { font-size: 2rem; margin-bottom: 12px; }
.genre-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.genre-description { font-size: 0.7rem; color: var(--text-secondary); }

/* ===== LIBRARY ===== */
.library-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
}

.library-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-elevated);
  flex-shrink: 0;
}
.library-avatar img { width: 100%; height: 100%; object-fit: cover; }

.library-info h1 { font-size: 1.5rem; font-weight: 800; }
.library-stats { display: flex; gap: 20px; margin-top: 4px; color: var(--text-secondary); font-size: 0.8rem; }
.library-stats strong { color: var(--text-primary); }

.library-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  overflow-x: auto;
}

.library-tab {
  padding: 10px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--anim-fast);
  white-space: nowrap;
}

.library-tab:hover { color: var(--text-primary); }
.library-tab.active { color: var(--text-primary); border-bottom-color: var(--primary); }

/* ===== SEARCH ===== */
.search-header {
  padding-top: 16px;
  margin-bottom: 16px;
}
.search-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }

/* ===== EDITORIAL CARDS (curated) ===== */
.editorial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.editorial-card {
  background: var(--bg-card);
  padding: 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--anim-normal);
  border: 1px solid var(--border-card);
}

.editorial-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.editorial-cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--bg-elevated);
}

.editorial-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}
.editorial-card:hover .editorial-cover img { transform: scale(1.08); }

.editorial-name { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editorial-description { font-size: 0.7rem; color: var(--text-secondary); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.editorial-meta { font-family: 'Manrope', sans-serif; font-size: 0.6rem; font-weight: 600; color: var(--text-tertiary); text-transform: uppercase; margin-top: 6px; letter-spacing: 0.05em; }

/* ===== TRACK DETAIL ===== */
.track-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 0;
}

@media (min-width: 1024px) {
  .track-detail {
    grid-template-columns: 300px 1fr;
    gap: 32px;
  }
}

.track-detail-art {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.track-detail-art img { width: 100%; height: 100%; object-fit: cover; }

.track-detail-info { display: flex; flex-direction: column; gap: 16px; }
.track-detail-type { font-family: 'Manrope', sans-serif; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); }
.track-detail-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
.track-detail-artist { font-size: 1rem; color: var(--text-secondary); }
.track-detail-stats { display: flex; gap: 20px; color: var(--text-tertiary); font-size: 0.8rem; }
.track-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== FILTER CHIPS ===== */
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filter-chip {
  padding: 6px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--anim-fast);
}
.filter-chip:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.filter-chip.active { background: var(--text-primary); color: #000; border-color: var(--text-primary); }

/* ===== SEARCH DROPDOWN ===== */
.search-dropdown {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  overflow: hidden;
}
.search-results-header { padding: 8px 12px; font-size: 0.7rem; color: var(--text-tertiary); border-bottom: 1px solid var(--border-subtle); }
.search-result-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; transition: background var(--anim-fast); }
.search-result-item:hover { background: rgba(255,255,255,0.04); }
.search-result-img { position: relative; width: 40px; height: 40px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.search-result-img img { width: 100%; height: 100%; object-fit: cover; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-info h4 { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.search-result-info p { font-size: 0.7rem; color: var(--text-secondary); margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-view-all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); cursor: pointer; border-top: 1px solid var(--border-subtle); transition: all var(--anim-fast); }
.search-view-all:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }

/* ===== BENTO GRID (for home featured) ===== */
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.bento-large { min-height: 200px; border-radius: var(--radius-md); overflow: hidden; position: relative; cursor: pointer; transition: all var(--anim-normal); }
.bento-large:hover { transform: translateY(-2px); }
.bento-small { display: flex; flex-direction: column; gap: 12px; }
.bento-card { position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; min-height: 94px; transition: all var(--anim-normal); }
.bento-card:hover { transform: translateY(-2px); }
.bento-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-smooth); }
.bento-card:hover .bento-card-img { transform: scale(1.08); }
.bento-card-gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 60%); }
.bento-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; }
.bento-card-title { font-weight: 700; font-size: 1rem; }
.bento-card-subtitle { font-size: 0.75rem; color: var(--text-secondary); }
.bento-card.live .bento-card-content { top: 0; bottom: auto; }
.live-indicator { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.live-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; }
.live-text { font-family: 'Manrope', sans-serif; font-size: 0.55rem; font-weight: 700; text-transform: uppercase; color: var(--text-secondary); letter-spacing: 0.08em; }

@media (max-width: 1023px) {
  .bento-grid { grid-template-columns: 1fr; gap: 10px; }
  .bento-small { flex-direction: row; }
}

/* ===== LOADING SPINNER ===== */
.loading-state { display: flex; flex-direction: column; align-items: center; padding: 40px; }
.loading-spinner { width: 28px; height: 28px; border: 2px solid rgba(255,255,255,0.06); border-top-color: var(--text-primary); border-radius: 50%; animation: spin 0.7s linear infinite; margin-bottom: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== MISC ===== */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
::selection { background: var(--primary); color: #000; }
html { scroll-behavior: smooth; }
