/* ============================================================
   BD Music Archive — Global Stylesheet
   Design: Dark premium, purple/indigo accent, glassmorphism
   ============================================================ */

/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Color palette — Grounded Obsidian & Streaming Emerald */
  --bg-base:      #0a0a0c;
  --bg-elevated:  #121216;
  --bg-card:      #17171d;
  --bg-hover:     #202028;
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);

  /* Authentic Music Accent */
  --accent:        #1ed760;
  --accent-dark:   #16a34a;
  --accent-light:  #22c55e;
  --accent-glow:   rgba(30, 215, 96, 0.2);

  /* Secondary neutral surface */
  --secondary:     #27272a;
  --secondary-dark:#18181b;

  /* Typography */
  --text-primary:   #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted:     #71717a;

  /* Status */
  --danger:  #ef4444;
  --success: #1ed760;
  --warning: #f59e0b;

  /* Sizes */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  /* Natural depth shadows (no gaudy neon blurs) */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 8px 32px rgba(0, 0, 0, 0.7);

  /* Player height */
  --player-height: 80px;

  /* Transitions */
  --t-fast:   140ms ease;
  --t-normal: 220ms ease;
  --t-slow:   350ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: var(--player-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.player-active { padding-bottom: calc(var(--player-height) + 8px); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ─── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* ─── UTILITIES ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.gradient-text {
  color: #fff;
  font-weight: 800;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.glass-card:hover {
  border-color: var(--border-hover);
}

/* ─── SKELETON ─────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #18181c 25%, #222228 50%, #18181c 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-text { height: 1em; border-radius: 4px; }
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  transition: all var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #000000;
  font-weight: 700;
  border: none;
}
.btn-primary:hover {
  background: #22ea6a;
  transform: scale(1.02);
}
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  color: #fff;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.22); color: #fff; }

.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }
.btn-lg { padding: 13px 26px; font-size: 0.95rem; }
.btn-icon { padding: 9px; border-radius: var(--radius-full); }

/* ─── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.navbar.scrolled {
  background: rgba(10, 10, 12, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  padding: 0 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon { width: 36px; height: 36px; }
.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--t-fast);
}
.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-search-wrap { flex: 1; max-width: 360px; }

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 9px 16px 9px 38px;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--t-normal);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-card);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  z-index: 100;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}
.search-results.active { display: block; }

.search-section { padding: 8px 0; }
.search-section-title {
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--t-fast);
}
.search-item:hover { background: var(--bg-hover); }
.search-item-title { font-size: 0.875rem; font-weight: 500; }
.search-item-sub { font-size: 0.75rem; color: var(--text-muted); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.auth-area { display: flex; gap: 8px; align-items: center; }

.user-menu { position: relative; }
.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: all var(--t-fast);
}
.user-avatar-btn:hover {
  border-color: var(--accent);
  background: var(--bg-card);
}
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-hover);
}
.user-name { font-size: 0.875rem; font-weight: 500; }

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  z-index: 200;
  display: none;
  overflow: hidden;
}
.user-dropdown.open { display: block; animation: dropIn 0.2s ease; }
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--t-fast);
}
.dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: rgba(239,68,68,0.1); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--t-normal);
}

/* ─── HERO (Editorial Music Banner) ────────────────────────── */
.hero {
  position: relative;
  min-height: auto;
  padding: calc(64px + 40px) 0 60px;
  background: linear-gradient(180deg, #101014 0%, var(--bg-base) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}

.hero-text {
  max-width: 640px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* Hero Spotlight Card */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.featured-song {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.featured-cover {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: var(--bg-hover);
  flex-shrink: 0;
  overflow: hidden;
}
.featured-cover img { width: 100%; height: 100%; object-fit: cover; }
.featured-info { flex: 1; min-width: 0; }
.featured-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.featured-artist { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
.featured-plays { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.featured-play-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--t-fast), background var(--t-fast);
}
.featured-play-btn:hover { transform: scale(1.08); background: #25ea6b; }
.featured-play-btn svg { fill: #000; margin-left: 2px; }

.mini-playlist { display: flex; flex-direction: column; gap: 4px; }
.mini-song {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t-fast);
}
.mini-song:hover { background: var(--bg-hover); }
.mini-song-num {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.mini-song-title { flex: 1; font-size: 0.85rem; font-weight: 500; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.mini-song-dur { font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.mini-song.active .mini-song-num { color: var(--accent); font-weight: 700; }
.mini-song.active .mini-song-title { color: var(--accent); font-weight: 600; }

/* ─── SECTIONS ─────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-elevated); }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.section-sub { color: var(--text-muted); font-size: 0.9rem; }

/* ─── SONGS GRID ───────────────────────────────────────────── */
.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.song-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
  position: relative;
}
.song-card:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
}

.song-rank {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 26px;
  text-align: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.song-rank.top3 { color: #ffffff; }

.song-cover {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #202028;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.song-cover img { width: 100%; height: 100%; object-fit: cover; }
.song-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c1c24;
  color: var(--text-muted);
}

.song-info { flex: 1; min-width: 0; }
.song-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-artist { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
.song-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
}
.song-plays { font-size: 0.73rem; color: var(--text-muted); }
.song-dur { font-size: 0.73rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.song-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.song-card:hover .song-actions { opacity: 1; }
.song-action-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  transition: all var(--t-fast);
}
.song-action-btn:hover { background: rgba(255, 255, 255, 0.16); color: #ffffff; transform: scale(1.05); }
.song-action-btn.play { background: var(--accent); color: #000000; }
.song-action-btn.play:hover { background: #25ea6b; transform: scale(1.08); }
.song-action-btn.wishlist-btn.active { color: var(--accent); }

/* ─── ARTISTS ROW ──────────────────────────────────────────── */
.artists-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.artist-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.artist-card:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.artist-img-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1f1f26;
}
.artist-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.artist-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.artist-verified {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #000000;
  display: flex; align-items: center; justify-content: center;
}

.artist-name { font-weight: 700; font-size: 0.92rem; color: #ffffff; margin-bottom: 3px; }
.artist-meta { font-size: 0.75rem; color: var(--text-muted); }

/* ─── GENRE GRID ───────────────────────────────────────────── */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.genre-card {
  height: 94px;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--genre-bg, #1a1a22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.genre-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
}
.genre-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.genre-tagline {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── ALBUMS ROW ───────────────────────────────────────────── */
.albums-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.album-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.album-card:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.album-cover {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: #1c1c24;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 10px;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.album-card:hover .album-cover-overlay { opacity: 1; }

.album-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  transform: translateY(6px);
  transition: transform var(--t-fast), background var(--t-fast);
}
.album-card:hover .album-play-btn { transform: translateY(0); }
.album-play-btn:hover { background: #25ea6b; transform: scale(1.08) !important; }
.album-play-btn svg { fill: #000000; margin-left: 2px; }

.album-info { padding: 0 2px 2px; }
.album-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.album-artist { font-size: 0.8rem; color: var(--text-secondary); }
.album-meta { font-size: 0.73rem; color: var(--text-muted); margin-top: 4px; }

/* ─── CTA BANNER ───────────────────────────────────────────── */
.cta-banner {
  background: #131318;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.cta-text p { color: var(--text-secondary); font-size: 0.95rem; }

/* ─── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-logo { margin-bottom: 16px; }
.footer-tagline { font-size: 0.875rem; color: var(--text-muted); max-width: 280px; line-height: 1.6; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h3 { font-weight: 700; font-size: 0.875rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); }
.footer-col a { display: block; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 10px; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

/* ─── BOTTOM PLAYER ────────────────────────────────────────── */
.bottom-player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--player-height);
  background: #121216;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 280px 1fr 1fr 200px;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.player-track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.player-cover {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #1f1f26;
}
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.player-meta { flex: 1; min-width: 0; }
.player-song-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-artist { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }

.like-btn {
  color: var(--text-muted);
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.like-btn:hover, .like-btn.active { color: var(--accent); }
.like-btn.active svg { fill: var(--accent); }

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ctrl-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: all var(--t-fast);
  position: relative;
}
.ctrl-btn:hover { color: #ffffff; background: var(--bg-hover); }
.ctrl-btn:active { transform: scale(0.92); }
.ctrl-btn.active { color: var(--accent); }

.skip-btn {
  color: var(--text-secondary);
}
.skip-btn:hover {
  color: #ffffff;
}
.skip-btn svg text {
  pointer-events: none;
}

/* ─── SPA TOP PROGRESS BAR ─────────────────────────────────── */
.spa-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(30, 215, 96, 0.4);
  z-index: 99999;
  transition: width 0.25s ease, opacity 0.3s ease;
  pointer-events: none;
}

.play-btn {
  width: 40px; height: 40px;
  background: #ffffff !important;
  color: #000000 !important;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.play-btn:hover { transform: scale(1.06); background: #ffffff !important; }
.play-btn svg { fill: #000000; }

.player-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.time { font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: height var(--t-fast);
}
.progress-bar:hover { height: 6px; }
.progress-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 4px;
  width: 0%;
  pointer-events: none;
  transition: background var(--t-fast);
}
.progress-bar:hover .progress-fill {
  background: var(--accent);
}
.progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  left: 0%;
  opacity: 0;
  transition: opacity var(--t-fast);
  pointer-events: none;
}
.progress-bar:hover .progress-thumb { opacity: 1; }

.player-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.volume-bar {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: height var(--t-fast);
}
.volume-bar:hover { height: 6px; }
.volume-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 4px;
  pointer-events: none;
  transition: background var(--t-fast);
}
.volume-bar:hover .volume-fill {
  background: var(--accent);
}

/* ─── TOAST ────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: calc(var(--player-height) + 16px);
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-card);
  animation: toastIn 0.3s ease;
  max-width: 320px;
}
.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--danger); }
.toast.info    { border-color: var(--accent); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast-out { animation: toastOut 0.3s ease forwards; }
@keyframes toastOut {
  to { opacity: 0; transform: translateX(20px); }
}

/* ─── PAGE HEADER (reused across pages) ────────────────────── */
.page-header {
  padding: 100px 0 44px;
  background: linear-gradient(180deg, #15151c 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 8px;
}
.page-header p { color: var(--text-secondary); font-size: 0.95rem; }

/* ─── ALBUM & ARTIST HERO HEADERS ─────────────────────────── */
.album-hero,
.artist-hero {
  position: relative;
  padding: calc(64px + 44px) 0 48px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: linear-gradient(180deg, #181822 0%, var(--bg-base) 100%);
}

.album-hero-inner {
  display: flex;
  align-items: flex-end;
  gap: 36px;
  flex-wrap: wrap;
}

.album-cover-lg {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  background: #181820;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.album-cover-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-meta-col {
  flex: 1;
  min-width: 280px;
}

.album-type-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.album-title-lg {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.album-subinfo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.album-artist-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.album-artist-link:hover {
  color: var(--accent);
}

.album-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.artist-hero-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.artist-avatar-lg {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  background: #181820;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.artist-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-details {
  flex: 1;
  min-width: 260px;
}

.artist-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.artist-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.artist-badge-verified {
  background: var(--accent);
  color: #000000;
  font-size: 0.85rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.artist-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.artist-stat-row {
  display: flex;
  gap: 28px;
  margin-bottom: 22px;
  font-size: 0.875rem;
}

.artist-stat-item {
  display: flex;
  flex-direction: column;
}

.artist-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.artist-stat-lbl {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.artist-hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 20px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.track-row {
  display: grid;
  grid-template-columns: 40px 1fr 100px 80px 80px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  transition: background 0.2s ease;
  cursor: pointer;
}
.track-row:hover { background: var(--bg-hover); }
.track-num { color: var(--text-muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.track-info { overflow: hidden; }
.track-title { font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.95rem; }
.track-plays { color: var(--text-muted); font-size: 0.85rem; text-align: right; }
.track-dur { color: var(--text-muted); font-size: 0.85rem; text-align: right; }
.track-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ─── FILTER BAR ───────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.filter-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 16px 10px 40px;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--t-normal);
  flex: 1;
  min-width: 200px;
}
.filter-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }
.filter-input::placeholder { color: var(--text-muted); }

.filter-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  transition: all var(--t-normal);
}
.filter-select:focus { border-color: var(--accent); }
.filter-select option { background: var(--bg-card); }

.filter-tag {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.filter-tag:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.filter-tag.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

/* ─── SONGS LIST (full page) ───────────────────────────────── */
.songs-list { display: flex; flex-direction: column; gap: 4px; }

.songs-list .song-card {
  border-radius: var(--radius-md);
}

/* ─── PAGINATION ───────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 32px 0;
}
.page-btn {
  min-width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
}
.page-btn:hover { border-color: var(--border-hover); color: #ffffff; background: var(--bg-card); }
.page-btn.active { background: #ffffff; border-color: #ffffff; color: #000000; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── EMPTY STATE ──────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; display: block; opacity: 0.6; }
.empty-title { font-size: 1.15rem; font-weight: 700; color: #ffffff; margin-bottom: 6px; }
.empty-sub { font-size: 0.875rem; }

/* ─── LOGIN PAGE ───────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  background: linear-gradient(180deg, #14141a 0%, var(--bg-base) 100%);
}
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-title { font-size: 1.75rem; font-weight: 800; text-align: center; margin-bottom: 8px; letter-spacing: -0.02em; }
.login-sub { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }

.oauth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px;
  border-radius: var(--radius-full);
  background: #fff;
  color: #111;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
  margin-bottom: 16px;
}
.oauth-btn:hover { transform: scale(1.02); }

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; }
.form-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--t-normal);
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }
.form-input::placeholder { color: var(--text-muted); }

.form-submit {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 700;
  background: var(--accent);
  color: #000000;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
  margin-top: 8px;
}
.form-submit:hover { transform: scale(1.02); background: #25ea6b; }
.dev-note { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-top: 16px; }

/* ─── ADMIN PANEL ──────────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
  padding-top: 64px;
}
.admin-sidebar {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.sidebar-section { margin-bottom: 32px; }
.sidebar-section-title {
  padding: 0 20px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--t-fast);
  cursor: pointer;
}
.sidebar-link:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar-link.active { background: rgba(30, 215, 96, 0.1); color: var(--accent); border-right: 2px solid var(--accent); }
.sidebar-link svg { width: 16px; height: 16px; flex-shrink: 0; }

.admin-content { padding: 32px; overflow-y: auto; }
.admin-section { display: none; }
.admin-section.active { display: block; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.stat-card-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 8px; }
.stat-card-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.stat-card-icon { font-size: 1.25rem; margin-bottom: 8px; }

.admin-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th {
  background: var(--bg-elevated);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-hover); color: var(--text-primary); }

.table-action-btn {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  margin-right: 4px;
}
.table-action-btn.edit { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.table-action-btn.edit:hover { background: rgba(255,255,255,0.15); }
.table-action-btn.delete { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.table-action-btn.delete:hover { background: rgba(239,68,68,0.2); }
.table-action-btn.publish { background: rgba(30,215,96,0.1); color: var(--success); border: 1px solid rgba(30,215,96,0.2); }

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }

/* ─── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-overlay.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  position: relative;
  z-index: 100000;
  transform: translateY(0) scale(1);
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalPop {
  from { transform: scale(0.93) translateY(14px); opacity: 0.8; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-title { font-size: 1.25rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--t-fast);
}
.modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ─── PROFILE PAGE ─────────────────────────────────────────── */
.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.profile-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
  background: var(--bg-hover);
}
.profile-name { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.profile-email { color: var(--text-muted); font-size: 0.9rem; }
.profile-role {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(30, 215, 96, 0.12);
  color: var(--accent);
  border: 1px solid rgba(30, 215, 96, 0.25);
  margin-top: 6px;
}

/* ─── BADGES ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-accent  { background: rgba(30, 215, 96, 0.12); color: var(--accent); border: 1px solid rgba(30, 215, 96, 0.25); }
.badge-muted   { background: var(--bg-hover); color: var(--text-muted); }

/* ─── MOBILE BOTTOM NAVIGATION ─────────────────────────────── */
.mobile-bottom-nav {
  display: none;
}
.admin-mobile-tabs {
  display: none;
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .bottom-player { grid-template-columns: 1fr auto 1fr; }
  .player-volume { display: none; }
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.player-active {
    padding-bottom: calc(64px + 64px + env(safe-area-inset-bottom, 0px) + 20px) !important;
  }

  .nav-links { display: none; }
  .nav-search-wrap { display: none; }
  .hamburger { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
    z-index: 999;
  }

  /* 4-Button Mobile Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    background: rgba(12, 12, 16, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid var(--border) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6) !important;
    z-index: 1200 !important;
    align-items: center !important;
    justify-content: space-around !important;
  }

  .mobile-nav-btn {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
  }

  .mobile-nav-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    transition: stroke 0.2s ease, transform 0.2s ease;
  }

  .mobile-nav-btn:hover,
  .mobile-nav-btn:active {
    color: var(--text-primary);
  }

  .mobile-nav-btn:active svg {
    transform: scale(0.92);
  }

  .mobile-nav-btn.active {
    color: #ffffff;
  }

  .mobile-nav-btn.active svg {
    color: var(--accent);
    stroke: var(--accent);
    transform: translateY(-1px);
    filter: none;
  }

  .mobile-nav-btn.active span {
    color: var(--accent);
    font-weight: 700;
  }

  /* Active pill indicator at the top edge of active button */
  .mobile-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
    transition: transform 0.2s ease;
  }

  .mobile-nav-btn.active::before {
    transform: translateX(-50%) scaleX(1);
  }

  /* Floating Mini Audio Player docked neatly right above the mobile bottom nav */
  .bottom-player {
    position: fixed !important;
    left: 8px !important;
    right: 8px !important;
    bottom: calc(60px + env(safe-area-inset-bottom, 0px) + 8px) !important;
    height: 60px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(22, 22, 28, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7) !important;
    z-index: 1100 !important;
    grid-template-columns: 1fr auto !important;
    padding: 8px 12px 10px !important;
    gap: 10px !important;
    margin: 0 !important;
  }

  .bottom-player .player-volume {
    display: none !important;
  }

  .bottom-player .player-controls #shuffleBtn,
  .bottom-player .player-controls #repeatBtn,
  .bottom-player .player-controls #prevBtn,
  .bottom-player .player-controls #nextBtn {
    display: none !important;
  }

  .bottom-player .player-controls {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .bottom-player .player-controls .skip-btn {
    display: flex !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    color: var(--text-secondary) !important;
    opacity: 0.9;
    transition: transform var(--t-fast), color var(--t-fast);
  }
  .bottom-player .player-controls .skip-btn:active {
    transform: scale(0.85);
    color: var(--accent) !important;
  }
  .bottom-player .player-controls .play-btn {
    width: 38px !important;
    height: 38px !important;
    background: #ffffff !important;
    color: #000000 !important;
  }
  .bottom-player .player-controls .play-btn svg {
    fill: #000000 !important;
  }

  /* Sleek progress bar running directly along bottom edge inside mini player pill */
  .bottom-player .player-progress {
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    height: 2px;
    display: block !important;
    margin: 0;
    padding: 0;
  }
  .bottom-player .player-progress .time { display: none !important; }
  .bottom-player .player-progress .progress-bar {
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
  }
  .bottom-player .player-progress .progress-fill {
    background: var(--accent);
  }
  .bottom-player .player-progress .progress-thumb { display: none !important; }

  /* Admin responsive layout with bottom bar & mobile tabs */
  .admin-layout {
    grid-template-columns: 1fr !important;
    padding-top: 56px !important;
  }
  .admin-sidebar {
    display: none !important; /* replaced by 4-button mobile bottom navigation */
  }
  .admin-content {
    padding: 16px 14px 40px !important;
  }

  .admin-mobile-tabs {
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 14px 12px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 56px;
    z-index: 95;
    -webkit-overflow-scrolling: touch;
    margin: -16px -14px 20px -14px;
  }
  .admin-mobile-tabs::-webkit-scrollbar { display: none; }
  .admin-mobile-chip {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--t-fast);
  }
  .admin-mobile-chip.active {
    background: rgba(30, 215, 96, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 700;
  }

  /* Responsive modals */
  .modal {
    padding: 20px 16px !important;
    margin: 12px !important;
    max-width: calc(100vw - 24px) !important;
    max-height: 86vh !important;
  }

  /* Mobile song card refinements: actions visible without hover */
  .song-card .song-actions {
    opacity: 1 !important;
  }
  .song-card {
    padding: 12px 14px;
    gap: 12px;
  }

  /* General mobile refinements */
  .container {
    padding: 0 16px;
  }
  .hero-title { font-size: 2.25rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; text-align: center; }
  .filter-bar { gap: 8px; padding: 12px 0; }
  .filter-input { min-width: 140px; }

  /* Mobile Album & Artist Hero headers with generous gap below fixed navbar */
  .album-hero,
  .artist-hero {
    padding: calc(64px + 36px) 0 32px !important;
    text-align: center;
  }
  .album-hero-inner,
  .artist-hero-inner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 18px !important;
  }
  .album-cover-lg {
    width: 170px !important;
    height: 170px !important;
    font-size: 4rem !important;
    margin: 0 auto !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7) !important;
  }
  .artist-avatar-lg {
    width: 130px !important;
    height: 130px !important;
    font-size: 3.2rem !important;
    margin: 0 auto !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7) !important;
  }
  .album-meta-col,
  .artist-details {
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
  }
  .album-type-label {
    font-size: 0.75rem !important;
    margin-bottom: 4px !important;
  }
  .album-title-lg {
    font-size: 2rem !important;
    margin-bottom: 8px !important;
    text-align: center !important;
  }
  .artist-title-row {
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
  }
  .artist-title {
    font-size: 1.95rem !important;
    text-align: center !important;
  }
  .artist-bio {
    font-size: 0.875rem !important;
    margin: 0 auto 16px !important;
    max-width: 100% !important;
    text-align: center !important;
  }
  .album-subinfo {
    justify-content: center !important;
    gap: 8px !important;
    font-size: 0.85rem !important;
    margin-bottom: 20px !important;
  }
  .artist-stat-row {
    justify-content: center !important;
    gap: 20px !important;
    margin-bottom: 18px !important;
  }
  .artist-stat-item {
    align-items: center !important;
  }
  .artist-stat-num {
    font-size: 1.15rem !important;
  }
  .album-actions,
  .artist-hero-actions {
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .album-actions .btn,
  .artist-hero-actions .btn {
    flex: 1 !important;
    max-width: 160px !important;
    min-height: 44px !important;
    justify-content: center !important;
  }
  .album-page-main,
  .main-content-gap {
    padding: 34px 0 110px !important;
  }
  .section-header-row {
    margin: 28px 0 14px !important;
  }
}

@media (max-width: 480px) {
  .songs-grid { grid-template-columns: 1fr; }
  .genre-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links { grid-template-columns: 1fr; }
  .admin-content { padding: 12px 10px 40px !important; }
}
