/* ========================================
   PLAYIFI – Light Theme
   White & grey, clean and minimal
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Accents */
  --accent:          #f97316;
  --accent-hover:    #fb923c;
  --accent-dark:     #ea580c;
  --accent-glow:     rgba(249, 115, 22, 0.20);

  /* Surfaces */
  --surface-bg:        #ffffff;
  --surface-raised:    #f9fafb;
  --surface-hover:     #f3f4f6;
  --surface-border:    #e5e7eb;
  --surface-border-lg: #d1d5db;

  /* Text */
  --text-primary:    #111827;
  --text-secondary:  #6b7280;
  --text-muted:      #9ca3af;

  /* Chrome (sidebar / player / topbar) */
  --chrome-bg:       #ffffff;
  --chrome-border:   #e5e7eb;

  /* Layout */
  --sidebar-width:   240px;
  --player-height:   90px;
  --topbar-height:   56px;
  --bottomnav-height:60px;
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  margin: 0; padding: 0;
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: #f3f4f6;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* ════════════════════════════════════════
   MOBILE TOPBAR
════════════════════════════════════════ */
.mobile-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-height);
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--chrome-border);
  z-index: 1040;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ════════════════════════════════════════
   OFFCANVAS SIDEBAR
════════════════════════════════════════ */
.playifi-offcanvas {
  background: var(--chrome-bg) !important;
  color: var(--text-primary);
  width: var(--sidebar-width) !important;
  border-right: 1px solid var(--chrome-border) !important;
}
.playifi-offcanvas .offcanvas-body {
  padding: 8px 12px 16px;
}

/* ════════════════════════════════════════
   DESKTOP LAYOUT
════════════════════════════════════════ */
.app-container {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: 1fr var(--player-height);
  height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.sidebar {
  background: var(--chrome-bg);
  border-right: 1px solid var(--chrome-border);
  padding: 24px 12px;
  overflow-y: auto;
  grid-row: 1 / 2;
  flex-direction: column;
  gap: 8px;
  box-shadow: 1px 0 0 var(--chrome-border);
}

.main-content {
  background: #f3f4f6;
  overflow-y: auto;
  padding: 24px;
  grid-column: 2;
}

.player-bar {
  grid-column: 1 / 3;
  background: var(--chrome-bg);
  border-top: 1px solid var(--chrome-border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  z-index: 100;
  box-shadow: 0 -1px 0 var(--chrome-border);
}

/* ════════════════════════════════════════
   LOGO
════════════════════════════════════════ */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 24px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo svg { width: 32px; height: 32px; }
.logo-text {
  color: var(--text-primary);
}

/* ════════════════════════════════════════
   SIDEBAR NAV
════════════════════════════════════════ */
.nav-section { margin-bottom: 8px; }
.nav-label {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.15s;
  cursor: pointer;
}
.nav-item:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}
.nav-item.active {
  color: var(--accent);
  background: var(--surface-hover);
}
.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ════════════════════════════════════════
   BOTTOM NAV (mobile)
════════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottomnav-height);
  background: var(--chrome-bg);
  border-top: 1px solid var(--chrome-border);
  z-index: 1040;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
  box-shadow: 0 -1px 4px rgba(0,0,0,.06);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.15s;
  flex: 1;
  text-align: center;
  text-decoration: none;
}
.bottom-nav-item:hover,
.bottom-nav-item.active { color: var(--accent); }

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn-green {
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  border: none;
  border-radius: 500px;
  padding: 12px 32px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.btn-green:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
  color: #fff !important;
}
.btn-outline {
  background: var(--surface-bg);
  color: var(--text-primary) !important;
  font-weight: 700;
  border: 1px solid var(--surface-border-lg);
  border-radius: 500px;
  padding: 11px 32px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: scale(1.02);
}
.btn-sm { padding: 6px 18px; font-size: 0.75rem; }
.btn-icon { padding: 8px; border-radius: 50%; min-width: 0; }

/* ════════════════════════════════════════
   CARDS
════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.music-card {
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 16px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.music-card:hover {
  background: var(--surface-bg);
  border-color: var(--surface-border-lg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.10);
}
.music-card-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-raised);
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.music-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.music-card-cover .cover-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  display: flex; align-items: center; justify-content: center;
}
.music-card-title {
  font-weight: 700; font-size: 0.9rem; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text-primary);
}
.music-card-subtitle {
  color: var(--text-secondary); font-size: 0.8rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.play-btn-overlay {
  position: absolute; bottom: 80px; right: 24px;
  width: 48px; height: 48px;
  background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(8px); transition: all 0.3s;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.music-card:hover .play-btn-overlay { opacity: 1; transform: translateY(0); }
.play-btn-overlay svg { color: #fff; }

/* ════════════════════════════════════════
   PLAYER BAR
════════════════════════════════════════ */
.player-track-info { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 0 0 auto; max-width: 220px; }
.player-track-cover { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--surface-raised); flex-shrink: 0; border: 1px solid var(--surface-border); }
.player-track-name { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.player-track-artist { font-size: 0.7rem; color: var(--text-secondary); white-space: nowrap; }
.player-controls { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.player-buttons { display: flex; align-items: center; gap: 16px; }
.player-btn { background: none; border: none; color: var(--text-secondary); cursor: pointer; transition: color 0.15s; padding: 4px; display: flex; }
.player-btn:hover { color: var(--text-primary); }
.player-play-btn {
  background: var(--accent) !important;
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: #fff !important; flex-shrink: 0;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.player-play-btn:hover { background: var(--accent-hover) !important; transform: scale(1.08); }
.progress-bar-container { width: 100%; display: flex; align-items: center; gap: 8px; }
.progress-time { font-size: 0.65rem; color: var(--text-secondary); min-width: 30px; flex-shrink: 0; }
.progress-bar { flex: 1; height: 4px; background: var(--surface-border); border-radius: 2px; cursor: pointer; position: relative; min-width: 0; }
.progress-fill { height: 100%; background: var(--text-muted); border-radius: 2px; transition: width 0.1s linear; }
.progress-bar:hover .progress-fill { background: var(--accent); }
.player-volume { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.volume-slider { width: 80px; height: 4px; background: var(--surface-border); border-radius: 2px; cursor: pointer; }

/* ════════════════════════════════════════
   PAGE HERO
════════════════════════════════════════ */
.page-hero {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 24px 0 24px;
  flex-wrap: wrap;
}
.page-hero-cover {
  width: 140px; height: 140px;
  border-radius: 12px; object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,.15), 0 0 0 1px var(--surface-border);
  background: var(--surface-raised); flex-shrink: 0;
}
.page-hero-info { flex: 1; min-width: 200px; }
.page-hero-type { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; color: var(--text-secondary); }
.page-hero-title { font-size: clamp(1.4rem, 4vw, 2.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 8px; color: var(--text-primary); }
.page-hero-sub { color: var(--text-secondary); font-size: 0.9rem; }

/* ════════════════════════════════════════
   TRACK LIST
════════════════════════════════════════ */
.track-list { width: 100%; }
.track-row {
  display: grid;
  grid-template-columns: 36px 1fr auto 70px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.15s;
  cursor: pointer;
}
.track-row:hover { background: var(--surface-hover); }
.track-num { color: var(--text-muted); font-size: 0.85rem; text-align: center; }
.track-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.track-cover { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--surface-raised); flex-shrink: 0; border: 1px solid var(--surface-border); }
.track-title { font-size: 0.9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.track-artist { font-size: 0.78rem; color: var(--text-secondary); }
.track-duration { color: var(--text-secondary); font-size: 0.82rem; text-align: right; font-variant-numeric: tabular-nums; }
.track-row.locked { cursor: default; }

/* ════════════════════════════════════════
   SECTION HEADERS
════════════════════════════════════════ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; margin-top: 32px; flex-wrap: wrap; gap: 8px;
}
.section-title { font-size: 1.3rem; font-weight: 700; margin: 0; color: var(--text-primary); }
.section-link { color: var(--text-secondary); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.section-link:hover { color: var(--text-primary); text-decoration: underline; }

/* ════════════════════════════════════════
   FORMS
════════════════════════════════════════ */
.form-card {
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 8px; color: var(--text-secondary); text-transform: uppercase; }
.form-control {
  width: 100%;
  background: var(--surface-raised);
  border: 1px solid var(--surface-border);
  color: var(--text-primary);
  border-radius: 10px; padding: 12px 16px;
  font-size: 0.9rem; transition: border-color 0.15s, background 0.15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.10);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-select {
  background-color: var(--surface-raised) !important;
  color: var(--text-primary) !important;
  border-color: var(--surface-border) !important;
}
.form-check { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.form-check input[type="radio"],
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

/* ════════════════════════════════════════
   STATS
════════════════════════════════════════ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 28px; }
.stat-card {
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  border-radius: 12px; padding: 16px; text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.stat-value { font-size: 1.7rem; font-weight: 900; color: var(--accent); }
.stat-label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* ════════════════════════════════════════
   ALERTS
════════════════════════════════════════ */
.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 0.9rem; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-danger  { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-info    { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.btn-close-white { filter: none; }

/* ════════════════════════════════════════
   MUSICIAN PROFILE
════════════════════════════════════════ */
.musician-avatar {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--surface-border-lg);
  background: var(--surface-raised);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

/* ════════════════════════════════════════
   VAULT
════════════════════════════════════════ */
.vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.vault-card {
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  border-radius: 14px; overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.vault-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.10);
  transform: translateY(-2px);
}
.vault-card-cover { width: 100%; aspect-ratio: 1; object-fit: cover; max-height: 180px; background: var(--surface-raised); }
.vault-card-body { padding: 14px; }
.vault-card-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; color: var(--text-primary); }
.vault-card-sub { color: var(--text-secondary); font-size: 0.82rem; margin-bottom: 10px; }

/* ════════════════════════════════════════
   AUTH PAGES
════════════════════════════════════════ */
.auth-container {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 50%, #f3f4f6 100%);
  position: relative; z-index: 1;
}
.auth-card {
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 40px 32px;
  width: 100%; max-width: 460px;
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
}
.auth-logo { display: flex; justify-content: center; margin-bottom: 28px; }
.auth-title { font-size: 1.4rem; font-weight: 900; text-align: center; margin-bottom: 6px; color: var(--text-primary); }
.auth-sub { color: var(--text-secondary); text-align: center; font-size: 0.88rem; margin-bottom: 28px; }

/* ════════════════════════════════════════
   ROLE SELECTOR
════════════════════════════════════════ */
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.role-card {
  border: 2px solid var(--surface-border);
  border-radius: 12px;
  padding: 18px 14px;
  cursor: pointer; transition: all 0.2s; text-align: center; position: relative;
  background: var(--surface-raised);
}
.role-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--surface-hover);
  box-shadow: 0 0 0 3px rgba(31,41,55,.08);
}
.role-card input[type="radio"] { position: absolute; opacity: 0; }
.role-card-icon { font-size: 1.8rem; margin-bottom: 8px; }
.role-card-title { font-weight: 700; font-size: 0.88rem; color: var(--text-primary); }
.role-card-desc { font-size: 0.72rem; color: var(--text-secondary); margin-top: 4px; }

/* ════════════════════════════════════════
   TAGS / BADGES
════════════════════════════════════════ */
.badge-genre {
  background: var(--surface-hover);
  color: var(--text-secondary);
  border: 1px solid var(--surface-border);
  border-radius: 6px; padding: 3px 8px;
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-price {
  background: var(--accent);
  color: #fff;
  border-radius: 6px; padding: 4px 10px;
  font-size: 0.82rem; font-weight: 800;
}
.divider { border: none; border-top: 1px solid var(--surface-border); margin: 20px 0; }

/* ════════════════════════════════════════
   PACKAGE ROW (musician dashboard)
════════════════════════════════════════ */
.pkg-row {
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 14px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  transition: box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.pkg-row:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.pkg-row-cover { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--surface-raised); flex-shrink: 0; border: 1px solid var(--surface-border); }
.pkg-row-info { flex: 1; min-width: 120px; }
.pkg-row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ════════════════════════════════════════
   ARTIST GRID CARD
════════════════════════════════════════ */
.artist-card {
  text-align: center;
  display: block;
  padding: 14px;
  border-radius: 12px;
  transition: background 0.2s, transform 0.2s;
}
.artist-card:hover {
  background: var(--surface-hover);
  color: inherit;
  transform: translateY(-2px);
}
.artist-avatar {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 10px; display: block;
  background: var(--surface-raised);
  border: 2px solid var(--surface-border);
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}

/* ════════════════════════════════════════
   SCROLLBAR
════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-border-lg); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ════════════════════════════════════════
   TABLET
════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991px) {
  .app-container {
    grid-template-columns: 1fr;
    grid-template-rows: var(--topbar-height) 1fr var(--player-height);
  }
  .main-content { grid-column: 1; padding-top: 80px; padding-left: 16px; padding-right: 16px; }
  .player-bar { grid-column: 1; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ════════════════════════════════════════
   MOBILE
════════════════════════════════════════ */
@media (max-width: 991px) {
  .app-container { display: block; height: auto; overflow: visible; }
  .main-content {
    padding: calc(var(--topbar-height) + 16px) 14px calc(var(--bottomnav-height) + var(--player-height) + 16px);
    min-height: 100vh;
    overflow: visible;
    background: #f3f4f6;
  }
  .player-bar {
    position: fixed;
    bottom: var(--bottomnav-height); left: 0; right: 0;
    height: var(--player-height);
    z-index: 1035;
  }
  .player-track-info { max-width: 160px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .page-hero { padding: 12px 0 16px; gap: 16px; }
  .page-hero-cover { width: 100px; height: 100px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .track-row { grid-template-columns: 28px 1fr 60px; }
  .track-row > :nth-child(3) { display: none; }
  .vault-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .section-title { font-size: 1.1rem; }
  .pkg-row { flex-wrap: wrap; }
  .auth-card { padding: 28px 20px; }
  .role-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .music-card { padding: 10px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero { flex-direction: column; align-items: flex-start; }
  .page-hero-cover { width: 120px; height: 120px; }
  .track-row { padding: 6px 8px; gap: 8px; }
  .player-track-info { max-width: 130px; }
  .bottom-nav-item { padding: 4px 6px; font-size: 0.58rem; }
}

/* ════════════════════════════════════════
   DESKTOP
════════════════════════════════════════ */
@media (min-width: 992px) {
  .mobile-topbar { display: none !important; }
  .bottom-nav { display: none !important; }
}

/* ══════════════════════════════════════════════
   HERO BANNER
══════════════════════════════════════════════ */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%);
  border-radius: 20px;
  padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 56px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.hero-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(255,255,255,.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(255,255,255,.05) 0%, transparent 45%);
  pointer-events: none;
}
.hero-banner::after {
  content: '♪';
  position: absolute; right: -20px; top: -30px;
  font-size: 280px; opacity: .04; line-height: 1;
  pointer-events: none; user-select: none;
  color: #fff;
}
.hero-content { position: relative; flex: 1; }
.hero-eyebrow {
  font-size: .8rem; font-weight: 600;
  color: rgba(255,255,255,.7); letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 12px;
}
.hero-heading {
  font-size: clamp(1.8rem, 5vw, 3.2rem); font-weight: 900;
  line-height: 1.1; color: #fff; margin-bottom: 16px; letter-spacing: -.02em;
}
.hero-sub {
  font-size: clamp(.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,.65); max-width: 480px; line-height: 1.6; margin-bottom: 0;
}
.btn-lg-hero { padding: 14px 32px; font-size: 1rem; font-weight: 700; border-radius: 50px; background: #fff; color: var(--accent) !important; border: none; }
.btn-lg-hero:hover { background: #f3f4f6; transform: scale(1.03); }
.btn-outline-hero {
  display: inline-block; padding: 13px 28px; font-size: 1rem; font-weight: 600;
  color: #fff; border: 2px solid rgba(255,255,255,.35); border-radius: 50px;
  text-decoration: none; transition: border-color .2s, background .2s;
  background: rgba(255,255,255,.08);
}
.btn-outline-hero:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.15); color: #fff; }
.hero-stats {
  position: relative;
  display: flex; align-items: center; gap: 24px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px; padding: 24px 32px; flex-shrink: 0;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-stat-num { font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; }
.hero-stat-label { font-size: .75rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .06em; }
.hero-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.2); }

/* ══════════════════════════════════════════════
   SECTION SEE ALL
══════════════════════════════════════════════ */
.section-see-all {
  font-size: .82rem; font-weight: 600; color: var(--text-secondary);
  text-decoration: none; letter-spacing: .04em; text-transform: uppercase; transition: color .2s;
}
.section-see-all:hover { color: var(--accent); }
.badge-genre-active { background: var(--accent) !important; color: #fff !important; }

/* ══════════════════════════════════════════════
   CAROUSELS
══════════════════════════════════════════════ */
.carousel-section { position: relative; }
.carousel-wrapper { position: relative; display: flex; align-items: center; gap: 0; }
.carousel-track {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 8px 4px 16px; flex: 1;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card { scroll-snap-align: start; flex-shrink: 0; width: 160px; }
.carousel-card.music-card { width: 160px; }
.carousel-card.artist-card { width: 130px; }
.carousel-btn {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  color: var(--text-primary); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s;
  z-index: 2; position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.carousel-btn:hover { background: var(--surface-hover); transform: scale(1.08); border-color: var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.carousel-prev { margin-right: 8px; }
.carousel-next { margin-left: 8px; }

@media (max-width: 576px) {
  .carousel-btn { display: none; }
  .carousel-card.music-card { width: 140px; }
  .carousel-card.artist-card { width: 110px; }
  .hero-banner { padding: 28px 20px; }
  .hero-banner::after { display: none; }
}

/* ══════════════════════════════════════════════
   TOP CHARTS
══════════════════════════════════════════════ */
.top-charts-list { display: flex; flex-direction: column; gap: 4px; }
.chart-row {
  display: flex; align-items: center; gap: 16px; padding: 10px 14px;
  border-radius: 10px; text-decoration: none; color: inherit; transition: background .15s;
}
.chart-row:hover { background: var(--surface-hover); color: inherit; }
.chart-rank { font-size: 1rem; font-weight: 700; color: var(--text-muted); min-width: 24px; text-align: center; }
.chart-rank-top { color: var(--accent); }
.chart-cover { flex-shrink: 0; }
.chart-cover img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; border: 1px solid var(--surface-border); }
.chart-info { flex: 1; min-width: 0; }
.chart-title { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.chart-artist { font-size: .78rem; color: var(--text-secondary); }
.chart-meta { align-items: center; gap: 8px; }
.chart-price { flex-shrink: 0; }
