/* ═══════════════════════════════════════════════
   MUZIBAR PRO — CSS PRINCIPAL
   Palette : #1A1A2E (fond) #6C3FC5 (violet) #E07B00 (orange)
════════════════════════════════════════════════ */
:root {
  --bg-dark:    #1A1A2E;
  --bg-card:    #16213E;
  --bg-input:   #0F3460;
  --purple:     #6C3FC5;
  --purple-lt:  #8B5CF6;
  --orange:     #E07B00;
  --orange-lt:  #F59E0B;
  --text-main:  #FFFFFF;
  --text-muted: #AAAACC;
  --text-dark:  #1A1A2E;
  --green:      #22C55E;
  --red:        #EF4444;
  --yellow:     #F59E0B;
  --border:     rgba(108,63,197,0.3);
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --radius:     12px;
  --radius-sm:  8px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.2; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p { line-height: 1.6; color: var(--text-muted); }
a { color: var(--purple-lt); text-decoration: none; }
a:hover { color: var(--orange-lt); }

/* ── Layout ── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  width: 240px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform .3s ease;
}
.sidebar-logo {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.sidebar-logo .logo-text { font-size: 1rem; font-weight: 800; }
.sidebar-logo .logo-text span { color: var(--orange); }

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-section { padding: 0 12px; margin-bottom: 4px; }
.nav-section-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: .1em;
  color: var(--text-muted); text-transform: uppercase;
  padding: 8px 8px 4px;
}
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-weight: 500; font-size: 0.875rem;
  transition: all .2s;
}
.nav-link:hover { background: rgba(108,63,197,.15); color: var(--text-main); }
.nav-link.active { background: rgba(108,63,197,.25); color: var(--purple-lt); }
.nav-link .nav-icon { width: 18px; text-align: center; font-size: 1rem; }
.nav-badge {
  margin-left: auto;
  background: var(--orange);
  color: white; font-size: 0.7rem; font-weight: 700;
  padding: 1px 6px; border-radius: 99px; min-width: 20px; text-align: center;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: var(--radius-sm);
  cursor: pointer;
}
.sidebar-user:hover { background: rgba(255,255,255,.05); }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.user-info { overflow: hidden; }
.user-name { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 0.68rem; color: var(--text-muted); }

/* ── Main Content ── */
.main-content {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-size: 1.1rem; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.page-body { padding: 24px; flex: 1; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 0.95rem; font-weight: 700; }

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; align-items: center; gap: 14px;
}
.stat-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.stat-icon.purple { background: rgba(108,63,197,.2); }
.stat-icon.orange { background: rgba(224,123,0,.2); }
.stat-icon.green  { background: rgba(34,197,94,.2); }
.stat-icon.red    { background: rgba(239,68,68,.2); }
.stat-icon.blue   { background: rgba(59,130,246,.2); }
.stat-value { font-size: 1.6rem; font-weight: 800; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  border: none; outline: none; transition: all .2s;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--purple); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--purple-lt); color: white; }
.btn-secondary { background: rgba(108,63,197,.2); color: var(--purple-lt); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(108,63,197,.35); }
.btn-orange { background: var(--orange); color: white; }
.btn-orange:hover { background: var(--orange-lt); color: white; }
.btn-danger { background: rgba(239,68,68,.15); color: var(--red); border: 1px solid rgba(239,68,68,.3); }
.btn-danger:hover { background: var(--red); color: white; }
.btn-success { background: rgba(34,197,94,.15); color: var(--green); border: 1px solid rgba(34,197,94,.3); }
.btn-success:hover { background: var(--green); color: white; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.05); color: var(--text-main); }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 14px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-main);
  font-size: 0.875rem; outline: none; transition: border-color .2s;
}
.form-control:focus { border-color: var(--purple); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control option { background: var(--bg-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-text { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
table.data-table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem;
}
.data-table th {
  padding: 10px 14px; text-align: left;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(255,255,255,.02); }
.data-table .actions { display: flex; gap: 6px; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 99px;
  font-size: 0.72rem; font-weight: 700;
}
.badge-active  { background: rgba(34,197,94,.15);  color: var(--green); }
.badge-trial   { background: rgba(245,158,11,.15); color: var(--yellow); }
.badge-expired { background: rgba(239,68,68,.15);  color: var(--red); }
.badge-cancelled { background: rgba(156,163,175,.15); color: #9CA3AF; }
.badge-pending { background: rgba(245,158,11,.15); color: var(--yellow); }
.badge-approved { background: rgba(34,197,94,.15); color: var(--green); }
.badge-rejected { background: rgba(239,68,68,.15); color: var(--red); }
.badge-purple  { background: rgba(108,63,197,.2);  color: var(--purple-lt); }
.badge-global  { background: rgba(108,63,197,.15); color: var(--purple-lt); }
.badge-local   { background: rgba(224,123,0,.15);  color: var(--orange-lt); }
.badge-playing { background: rgba(34,197,94,.2); color: var(--green); animation: pulse 2s infinite; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.6} }

/* ── Alerts ── */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.875rem;
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px;
}
.alert-success { background: rgba(34,197,94,.1);  border: 1px solid rgba(34,197,94,.3);  color: var(--green); }
.alert-danger  { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.3);  color: var(--red); }
.alert-warning { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); color: var(--yellow); }
.alert-info    { background: rgba(108,63,197,.1); border: 1px solid var(--border);       color: var(--purple-lt); }

/* ── Song Card ── */
.song-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  display: flex; align-items: center; gap: 12px;
  transition: border-color .2s, transform .15s;
  cursor: pointer;
}
.song-card:hover { border-color: var(--purple); transform: translateY(-1px); }
/* Pochettes Full-Bleed (Zéro bordures) */
.muzibar-cover-full {
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, var(--bg-input), var(--purple));
}
.muzibar-cover-full img {
  position: absolute !important;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.song-cover {
  width: 50px; height: 50px; border-radius: 8px;
  flex-shrink: 0;
  font-size: 1.3rem;
}
/* On applique le comportement full-bleed à song-cover */
.song-cover { position: relative; overflow: hidden; }
.song-cover img { position: absolute; top:0; left:0; width:100%; height:100%; object-fit: cover; }

.song-info { flex: 1; overflow: hidden; }
.song-title { font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-artist { font-size: 0.75rem; color: var(--text-muted); }
.song-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.song-duration { font-size: 0.7rem; color: var(--text-muted); }
.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

/* ── Queue Item ── */
.queue-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  transition: all .2s;
}
.queue-item.playing { border-color: var(--green); background: rgba(34,197,94,.05); }
.queue-pos {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(108,63,197,.2); display: flex; align-items: center;
  justify-content: center; font-size: 0.75rem; font-weight: 700;
  color: var(--purple-lt); flex-shrink: 0;
}
.queue-info { flex: 1; overflow: hidden; }
.queue-title { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-artist { font-size: 0.75rem; color: var(--text-muted); }
.queue-votes { display: flex; align-items: center; gap: 4px; color: var(--purple-lt); font-size: 0.8rem; font-weight: 700; }
.queue-actions { display: flex; gap: 6px; }

/* ── Player ── */
.player-bar {
  position: fixed; bottom: 0; left: 240px; right: 0;
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 12px 24px; z-index: 200;
  display: flex; align-items: center; gap: 20px;
}
.player-info { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.player-cover {
  width: 44px; height: 44px; border-radius: 8px;
  flex-shrink: 0;
}
.player-cover { position: relative; overflow: hidden; }
.player-cover img { position: absolute; top:0; left:0; width:100%; height:100%; object-fit: cover !important; }
.player-title { font-size: 0.85rem; font-weight: 600; }
.player-artist { font-size: 0.75rem; color: var(--text-muted); }
.player-controls {
  display: flex; align-items: center; gap: 12px; flex: 1; justify-content: center;
}
.ctrl-btn {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; padding: 6px; border-radius: 50%; transition: all .2s;
  font-size: 1.1rem; display: flex;
}
.ctrl-btn:hover { color: var(--text-main); background: rgba(255,255,255,.08); }
.ctrl-btn.play-btn {
  background: var(--purple); color: white; width: 40px; height: 40px;
  font-size: 1rem;
}
.ctrl-btn.play-btn:hover { background: var(--purple-lt); }
.player-progress { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 0.72rem; color: var(--text-muted); }
.progress-bar {
  flex: 1; height: 4px; background: var(--bg-input);
  border-radius: 2px; cursor: pointer; position: relative;
}
.progress-fill {
  height: 100%; background: var(--purple);
  border-radius: 2px; transition: width .5s linear;
  position: relative;
}
.progress-fill::after {
  content: ''; position: absolute; right: -5px; top: -4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--purple-lt);
}
.player-volume { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.volume-slider { flex: 1; accent-color: var(--purple); }

/* ── Upload Zone ── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 40px 24px; text-align: center; cursor: pointer;
  transition: all .2s; position: relative;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--purple); background: rgba(108,63,197,.05); }
.upload-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-icon { font-size: 2.5rem; margin-bottom: 12px; }
.upload-title { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.upload-hint { font-size: 0.8rem; color: var(--text-muted); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; width: 100%; max-width: 500px;
  transform: translateY(20px); transition: transform .2s;
}
.modal-overlay.show .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.3rem; cursor: pointer; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ── Search bar ── */
.search-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px;
}
.search-input-wrap { position: relative; flex: 1; min-width: 200px; }
.search-input-wrap .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-input-wrap input { padding-left: 36px; }

/* ── Bar card ── */
.bar-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; transition: border-color .2s;
}
.bar-card:hover { border-color: var(--purple); }
.bar-card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.bar-logo {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0; overflow: hidden;
}
.bar-logo img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; }
.bar-name { font-size: 1rem; font-weight: 700; }
.bar-city { font-size: 0.78rem; color: var(--text-muted); }
.bar-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bar-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

/* ── Bars grid ── */
.bars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* ── Pagination ── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.page-btn {
  padding: 7px 13px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.8rem; cursor: pointer;
}
.page-btn.active { background: var(--purple); color: white; border-color: var(--purple); }
.page-btn:hover:not(.active) { border-color: var(--purple); }

/* ── Toast ── */
#toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 500;
  min-width: 220px; max-width: 320px;
  animation: slideIn .3s ease;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow);
}
.toast-success { background: rgba(34,197,94,.9); color: white; }
.toast-danger  { background: rgba(239,68,68,.9); color: white; }
.toast-warning { background: rgba(245,158,11,.9); color: white; }
.toast-info    { background: rgba(108,63,197,.9); color: white; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
.toast.closing { animation: slideOut 0.3s ease forwards; }

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh; background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.auth-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px; width: 100%; max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-logo {
  text-align: center; margin-bottom: 28px;
}
.auth-logo .logo-big {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 12px;
}
.auth-logo h1 { font-size: 1.5rem; }
.auth-logo h1 span { color: var(--orange); }
.auth-logo p { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.auth-divider { text-align: center; position: relative; margin: 16px 0; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { position: relative; background: var(--bg-card); padding: 0 12px; color: var(--text-muted); font-size: 0.78rem; }

/* ── Projection Page ── */
.projection-page {
  background: #000; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.projection-cover {
  width: 280px; height: 280px; border-radius: 20px;
  box-shadow: 0 20px 60px rgba(108,63,197,.5);
  margin-bottom: 28px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-input), var(--purple));
  font-size: 4rem;
}
.projection-cover img { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 20px; display: block; }
.projection-title { font-size: 2.5rem; font-weight: 800; text-align: center; }
.projection-artist { font-size: 1.3rem; color: var(--text-muted); text-align: center; margin-top: 8px; }

/* ── Landing Page ── */
.landing { min-height: 100vh; background: var(--bg-dark); }
.landing-hero {
  padding: 60px 24px 40px; text-align: center;
  background: linear-gradient(135deg, rgba(108,63,197,.15), rgba(224,123,0,.1));
}
.landing-hero h1 { font-size: 2.5rem; margin-bottom: 12px; }
.landing-hero h1 span { color: var(--orange); }
.landing-hero p { font-size: 1rem; color: var(--text-muted); max-width: 500px; margin: 0 auto 28px; }
.landing-bars { padding: 32px 24px; max-width: 900px; margin: 0 auto; }
.landing-bars h2 { font-size: 1.2rem; margin-bottom: 20px; }
.bar-select-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: all .2s;
}
.bar-select-card:hover { border-color: var(--purple); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,63,197,.2); }
.bars-select-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }

/* ── Scrollable list ── */
.list-scroll { max-height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; display: block; }
.empty-state p { font-size: 0.875rem; }

/* ── Files upload list ── */
.file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.file-item {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  display: flex; align-items: center; gap: 10px; font-size: 0.82rem;
}
.file-item .fi-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .fi-size { color: var(--text-muted); font-size: 0.75rem; }
.file-item .fi-remove { background: none; border: none; color: var(--red); cursor: pointer; font-size: 0.9rem; }
.upload-progress { height: 4px; background: var(--bg-input); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.upload-progress-fill { height: 100%; background: var(--purple); border-radius: 2px; transition: width .3s; }

/* ── Responsive ── */
.hamburger { display: none; background: none; border: none; color: var(--text-main); font-size: 1.3rem; cursor: pointer; }
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .player-bar { left: 0; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .songs-grid { grid-template-columns: 1fr; }
  .bars-grid { grid-template-columns: 1fr; }
  .page-body { padding: 16px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 24px; }
}

/* ── Utilities ── */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.text-muted { color: var(--text-muted); }
.text-orange { color: var(--orange); }
.text-purple { color: var(--purple-lt); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.fs-sm { font-size: 0.8rem; }
.w-100 { width: 100%; }
.overlay-sidebar { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99; }
.overlay-sidebar.show { display: block; }
