:root {
  --bg-0: #080c12;
  --bg-1: #0e1520;
  --bg-2: #141d2e;
  --bg-3: #1c2840;
  --bg-4: #263350;
  --text-1: #e8eef8;
  --text-2: #7a90b0;
  --text-3: #445570;
  --accent: #4d9fff;
  --accent-dim: rgba(77,159,255,0.12);
  --accent-glow: rgba(77,159,255,0.3);
  --red: #ff5555;
  --bar-h: 88px;
  --sidebar-w: 260px;
  --radius: 6px;
  --transition: 0.18s cubic-bezier(0.4,0,0.2,1);
}

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

html, body {
  height: 100%;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: 'DM Mono', monospace;
  overflow: hidden;
  user-select: none;
}

/* ── LAYOUT ── */
#app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: 1fr var(--bar-h);
  height: 100vh;
}

/* ── SIDEBAR ── */
#sidebar {
  grid-row: 1 / 2;
  background: var(--bg-1);
  border-right: 1px solid #1f1f1f;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.logo {
  padding: 22px 24px 18px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.3px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #1a2035;
  flex-shrink: 0;
}

.logo svg {
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.sidebar-section { padding: 20px 16px 8px; flex-shrink: 0; }

.sidebar-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 8px;
  margin-bottom: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  transition: background var(--transition), color var(--transition);
}

.nav-item:hover { background: var(--bg-3); color: var(--text-1); }
.nav-item.active { background: var(--accent-dim); color: var(--accent); }
.nav-item svg { flex-shrink: 0; opacity: 0.7; }
.nav-item.active svg { opacity: 1; }

#playlists-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-4) transparent;
}

.loading-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  font-size: 11px;
  color: var(--text-3);
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}

.playlist-item:hover { background: var(--bg-3); }
.playlist-item.active { background: var(--accent-dim); }

.playlist-thumb {
  width: 34px; height: 34px;
  border-radius: 4px;
  background: var(--bg-4);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.playlist-thumb img { width: 100%; height: 100%; object-fit: cover; }
.playlist-info { overflow: hidden; }

.playlist-name {
  font-size: 12px;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.playlist-count { font-size: 10px; color: var(--text-3); margin-top: 1px; }

/* ── USER MENU (fixed haut-droite) ── */
#user-menu-top {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 200;
}

#user-info-top {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 12px 6px 8px;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--bg-4);
  transition: background var(--transition), border-color var(--transition);
}

#user-info-top:hover {
  background: var(--bg-3);
  border-color: var(--accent);
}

#user-info-top #user-name {
  font-size: 12px;
  color: var(--text-2);
}

.user-avatar {
  width: 28px; height: 28px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

#user-name { font-size: 12px; color: var(--text-2); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: auto;
  background: var(--bg-3);
  border: 1px solid var(--bg-4);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  min-width: 160px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.dropdown-item:hover { background: var(--bg-4); color: var(--text-1); }
.dropdown-item.danger:hover { background: rgba(255,68,68,0.12); color: var(--red); }

/* ── MAIN ── */
#main {
  grid-row: 1 / 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-0);
}

/* ── TOPBAR ── */
#topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  padding-right: 180px; /* espace pour le menu user fixe */
  border-bottom: 1px solid #1a2035;
  flex-shrink: 0;
}

#search-wrap { flex: 1; max-width: 480px; position: relative; }

#search-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--bg-4);
  border-radius: 40px;
  padding: 10px 16px 10px 40px;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--text-1);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

#search-input::placeholder { color: var(--text-3); }
#search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

.search-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3); pointer-events: none;
}

.queue-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: var(--bg-2);
  border: 1px solid var(--bg-4);
  border-radius: 40px;
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: 12px; color: var(--text-2);
  transition: all var(--transition);
  flex-shrink: 0;
}

.queue-toggle:hover { border-color: var(--accent); color: var(--accent); }
.queue-toggle.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

#queue-count {
  background: var(--accent); color: #000;
  border-radius: 10px; padding: 0 6px;
  font-size: 10px; display: none;
}

#queue-count.visible { display: inline; }

/* ── CONTENT AREA ── */
#content-area { display: flex; flex: 1; overflow: hidden; }

/* ── TRACK PANEL ── */
#track-panel {
  flex: 1; overflow-y: auto;
  padding: 24px 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-4) transparent;
}

.panel-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 22px;
  margin-bottom: 6px; letter-spacing: -0.5px;
}

.panel-subtitle {
  font-size: 11px; color: var(--text-3);
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 24px;
}

/* ── SEARCH RESULTS ── */
.search-section-title {
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-3);
  margin: 24px 0 12px;
}

.best-result {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.best-result:hover { background: var(--bg-3); border-color: var(--bg-4); }

.best-cover {
  width: 72px; height: 72px;
  border-radius: 6px;
  background: var(--bg-4);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.best-cover img { width: 100%; height: 100%; object-fit: cover; }

.best-play-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: var(--accent);
}

.best-result:hover .best-play-overlay { opacity: 1; }

.best-info { flex: 1; overflow: hidden; }

.best-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 18px;
  letter-spacing: -0.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.best-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-2);
  margin-top: 4px;
}

.best-type-badge {
  background: var(--bg-4);
  border-radius: 4px; padding: 2px 8px;
  font-size: 10px; color: var(--text-2);
  letter-spacing: 0.5px;
}

/* Artists row */
.artists-row { display: flex; gap: 12px; flex-wrap: wrap; }

.artist-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 14px 12px;
  background: var(--bg-2); border-radius: 8px;
  cursor: pointer; width: 100px;
  transition: background var(--transition);
  text-align: center;
}

.artist-card:hover { background: var(--bg-3); }

.artist-pic {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-4);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}

.artist-pic img { width: 100%; height: 100%; object-fit: cover; }

.artist-name {
  font-size: 11px; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  width: 100%;
}

/* Albums row */
.albums-row { display: flex; gap: 12px; flex-wrap: wrap; }

.album-card {
  width: 110px; cursor: pointer;
  transition: opacity var(--transition);
}

.album-card:hover { opacity: 0.85; }

.album-cover {
  width: 110px; height: 110px;
  border-radius: 6px; background: var(--bg-4);
  overflow: hidden; position: relative; margin-bottom: 8px;
}

.album-cover img { width: 100%; height: 100%; object-fit: cover; }

.album-play-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
  color: var(--accent);
}

.album-card:hover .album-play-overlay { opacity: 1; }

.album-title {
  font-size: 11px; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.album-artist { font-size: 10px; color: var(--text-3); margin-top: 2px; }

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

.track-row {
  display: grid;
  grid-template-columns: 40px 44px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}

.track-row:hover { background: var(--bg-2); }
.track-row.playing { background: var(--accent-dim); }
.track-row.playing .track-title { color: var(--accent); }

.track-num { font-size: 12px; color: var(--text-3); text-align: center; }
.track-row.playing .track-num { display: none; }
.track-row.playing .playing-icon { display: flex; }

.playing-icon { display: none; align-items: center; justify-content: center; }

.playing-bars { display: flex; align-items: flex-end; gap: 2px; height: 16px; }

.playing-bars span {
  display: block; width: 3px;
  background: var(--accent); border-radius: 2px;
  animation: bars 0.8s infinite ease-in-out;
}

.playing-bars span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.playing-bars span:nth-child(2) { height: 14px; animation-delay: .15s; }
.playing-bars span:nth-child(3) { height: 10px; animation-delay: .3s; }

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

.track-cover { width: 44px; height: 44px; border-radius: 4px; background: var(--bg-4); overflow: hidden; flex-shrink: 0; }
.track-cover img { width: 100%; height: 100%; object-fit: cover; }

.track-info { overflow: hidden; }

.track-title { font-size: 13px; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist { font-size: 11px; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-duration { font-size: 11px; color: var(--text-3); }

.track-add-btn {
  background: none; border: 1px solid var(--bg-4);
  border-radius: 4px; padding: 4px 10px;
  font-family: 'DM Mono', monospace; font-size: 10px;
  color: var(--text-3); cursor: pointer; letter-spacing: .5px;
  transition: all var(--transition); white-space: nowrap;
}

.track-add-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ── SIDE PANELS (queue + lyrics) ── */
#queue-panel, #lyrics-panel {
  width: 0;
  background: var(--bg-1);
  border-left: 1px solid #1a1a1a;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: width 0.25s cubic-bezier(0.4,0,0.2,1);
  flex-shrink: 0;
}

#queue-panel.open, #lyrics-panel.open { width: 280px; }

/* ── QUEUE PANEL ── */
.queue-header {
  padding: 20px 20px 12px;
  border-bottom: 1px solid #1f1f1f;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}

.queue-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: -0.3px; }

.queue-clear {
  font-size: 10px; color: var(--text-3); cursor: pointer;
  padding: 4px 8px; border-radius: 4px;
  transition: all var(--transition);
  letter-spacing: .5px; text-transform: uppercase;
}

.queue-clear:hover { color: var(--red); background: rgba(255,68,68,.1); }

#queue-list {
  flex: 1; overflow-y: auto; padding: 8px 12px;
  scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent;
}

.queue-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: var(--radius);
  cursor: pointer; transition: background var(--transition);
}

.queue-item:hover { background: var(--bg-3); }
.queue-item.current { background: var(--accent-dim); }

.queue-item-cover { width: 36px; height: 36px; border-radius: 3px; background: var(--bg-4); overflow: hidden; flex-shrink: 0; }
.queue-item-cover img { width: 100%; height: 100%; object-fit: cover; }

.queue-item-info { flex: 1; overflow: hidden; }
.queue-item-title { font-size: 11px; color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item.current .queue-item-title { color: var(--accent); }
.queue-item-artist { font-size: 10px; color: var(--text-3); margin-top: 1px; }

.queue-remove {
  background: none; border: none; color: var(--text-3);
  cursor: pointer; padding: 4px; border-radius: 3px;
  opacity: 0; transition: all var(--transition);
  flex-shrink: 0; display: flex; align-items: center;
}

.queue-item:hover .queue-remove { opacity: 1; }
.queue-remove:hover { color: var(--red); background: rgba(255,68,68,.12); }
.queue-empty { text-align: center; padding: 40px 20px; color: var(--text-3); font-size: 12px; line-height: 1.8; }

/* ── LYRICS PANEL ── */
.lyrics-header {
  padding: 20px 20px 12px;
  border-bottom: 1px solid #1f1f1f;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}

.lyrics-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: -0.3px; }

.lyrics-close {
  color: var(--text-3); cursor: pointer; padding: 4px;
  border-radius: 4px; transition: all var(--transition);
  display: flex;
}

.lyrics-close:hover { color: var(--text-1); background: var(--bg-3); }

#lyrics-content {
  flex: 1; overflow-y: auto; padding: 16px;
  scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent;
}

.lyrics-empty { text-align: center; padding: 40px 20px; color: var(--text-3); font-size: 12px; line-height: 1.8; }

.lyric-line {
  padding: 6px 8px; border-radius: 4px;
  font-size: 13px; color: var(--text-3);
  cursor: pointer; line-height: 1.6;
  transition: color var(--transition), background var(--transition);
}

.lyric-line:hover { color: var(--text-2); background: var(--bg-2); }

.lyric-line.active {
  color: var(--text-1);
  font-size: 15px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
}

.lyrics-plain { padding: 4px 0; }

.lyric-line-plain {
  padding: 3px 8px;
  font-size: 12px; color: var(--text-2);
  line-height: 1.8;
}

/* ── PLAYER BAR ── */
#player-bar {
  grid-column: 1 / 3;
  background: var(--bg-1);
  border-top: 1px solid #1f1f1f;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr 260px;
  align-items: center;
  padding: 0 20px 0 0;
  height: var(--bar-h);
}

#now-playing {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; overflow: hidden;
}

#np-cover { width: 54px; height: 54px; border-radius: 5px; background: var(--bg-3); overflow: hidden; flex-shrink: 0; }
#np-cover img { width: 100%; height: 100%; object-fit: cover; }

.cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--text-3); }

#np-info { overflow: hidden; flex: 1; min-width: 0; }

#np-title { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#np-title.muted { color: var(--text-3); }
#np-artist { font-size: 11px; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lyrics-btn {
  background: none; border: 1px solid var(--bg-4);
  border-radius: var(--radius);
  padding: 6px 8px; color: var(--text-3);
  cursor: pointer; opacity: 0.5;
  transition: all var(--transition);
  display: flex; align-items: center;
  flex-shrink: 0;
}

.lyrics-btn:hover { border-color: var(--accent); color: var(--accent); opacity: 1; background: var(--accent-dim); }
.lyrics-btn.active { border-color: var(--accent); color: var(--accent); opacity: 1; background: var(--accent-dim); }

/* Controls */
#controls { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 24px; }

.ctrl-btns { display: flex; align-items: center; gap: 20px; }

.ctrl-btn {
  background: none; border: none;
  color: var(--text-2); cursor: pointer;
  padding: 6px; border-radius: 50%;
  transition: color var(--transition), transform var(--transition);
  display: flex; align-items: center; justify-content: center;
}

.ctrl-btn:hover { color: var(--text-1); }
.ctrl-btn:active { transform: scale(.92); }

#btn-play {
  width: 38px; height: 38px;
  background: var(--accent); border-radius: 50%; color: #000;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

#btn-play:hover { background: #6db3ff; box-shadow: 0 0 18px var(--accent-glow); transform: scale(1.06); }

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

.time-label { font-size: 10px; color: var(--text-3); min-width: 32px; text-align: center; flex-shrink: 0; }

.progress-bar {
  flex: 1; height: 4px; background: var(--bg-4);
  border-radius: 4px; cursor: pointer; position: relative;
  transition: height var(--transition);
}

.progress-bar:hover { height: 6px; }

#progress-fill {
  height: 100%; background: var(--accent);
  border-radius: 4px; width: 0%;
  transition: width .2s linear;
  pointer-events: none; position: relative;
}

#progress-fill::after {
  content: '';
  position: absolute; right: -5px; top: 50%;
  transform: translateY(-50%) scale(0);
  width: 10px; height: 10px;
  background: var(--text-1); border-radius: 50%;
  transition: transform var(--transition);
}

.progress-bar:hover #progress-fill::after { transform: translateY(-50%) scale(1); }

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

#vol-icon { color: var(--text-2); cursor: pointer; flex-shrink: 0; }
#vol-icon:hover { color: var(--text-1); }

.volume-bar {
  width: 80px; height: 4px; background: var(--bg-4);
  border-radius: 4px; cursor: pointer; position: relative;
  transition: height var(--transition);
}

.volume-bar:hover { height: 6px; }

#volume-fill {
  height: 100%; width: 70%; background: var(--text-2);
  border-radius: 4px; pointer-events: none;
  transition: background var(--transition); position: relative;
}

.volume-bar:hover #volume-fill { background: var(--accent); }

#volume-fill::after {
  content: '';
  position: absolute; right: -5px; top: 50%;
  transform: translateY(-50%) scale(0);
  width: 10px; height: 10px;
  background: var(--text-1); border-radius: 50%;
  transition: transform var(--transition);
}

.volume-bar:hover #volume-fill::after { transform: translateY(-50%) scale(1); }

/* ── EMPTY STATE ── */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 60%; gap: 12px; }
.empty-state-icon { font-size: 48px; opacity: .2; }
.empty-state-text { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 600; color: var(--text-3); letter-spacing: -0.3px; }
.empty-state-sub { font-size: 12px; color: var(--text-3); }

/* ── SPINNER ── */
.spinner { width: 16px; height: 16px; border: 2px solid var(--bg-4); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST ── */
#toast {
  position: fixed;
  bottom: calc(var(--bar-h) + 14px); left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-3); border: 1px solid var(--bg-4);
  border-radius: 40px; padding: 10px 20px;
  font-size: 12px; color: var(--text-1);
  opacity: 0; transition: opacity .2s, transform .2s;
  pointer-events: none; z-index: 999; white-space: nowrap;
}

#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.error { border-color: var(--red); color: var(--red); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 500;
  backdrop-filter: blur(4px);
}

.modal-card {
  background: var(--bg-2);
  border: 1px solid var(--bg-4);
  border-radius: 12px;
  padding: 28px;
  width: 100%; max-width: 440px;
  animation: fadeUp .2s ease;
}

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

.modal-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 10px; }

.modal-sub { font-size: 12px; color: var(--text-2); line-height: 1.7; margin-bottom: 20px; }
.modal-sub strong { color: var(--text-1); }
.modal-sub code { background: var(--bg-3); padding: 1px 5px; border-radius: 3px; color: var(--accent); }

.modal-input {
  width: 100%; background: var(--bg-1); border: 1px solid var(--bg-4);
  border-radius: var(--radius); padding: 11px 14px;
  font-family: 'DM Mono', monospace; font-size: 12px;
  color: var(--text-1); outline: none; margin-bottom: 16px;
  transition: border-color var(--transition);
}

.modal-input:focus { border-color: var(--accent); }

.modal-btns { display: flex; gap: 10px; justify-content: flex-end; }

.modal-btn-cancel {
  background: none; border: 1px solid var(--bg-4);
  border-radius: var(--radius); padding: 9px 18px;
  font-family: 'DM Mono', monospace; font-size: 12px;
  color: var(--text-2); cursor: pointer;
  transition: all var(--transition);
}

.modal-btn-cancel:hover { border-color: var(--text-2); color: var(--text-1); }

.modal-btn-save {
  background: var(--accent); border: none;
  border-radius: var(--radius); padding: 9px 18px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px;
  color: #000; cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
}

.modal-btn-save:hover { background: #6db3ff; box-shadow: 0 0 14px var(--accent-glow); }

/* ── AUTH ERROR (réutilisé dans la modal) ── */
.auth-error {
  background: rgba(255,68,68,.1); border: 1px solid rgba(255,68,68,.3);
  border-radius: var(--radius); padding: 10px 14px;
  font-size: 12px; color: var(--red); margin-bottom: 16px;
}

/* ── SHUFFLE / REPEAT ── */
.ctrl-btn.active { color: var(--accent) !important; }
.ctrl-btn.active svg { filter: drop-shadow(0 0 4px var(--accent-glow)); }

/* Petit point indicateur sous le bouton actif */
.ctrl-btn-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.ctrl-btn-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  position: absolute; bottom: -6px;
  opacity: 0; transition: opacity var(--transition);
}
.ctrl-btn.active + .ctrl-btn-dot { opacity: 1; }

/* ── SCROLLBARS ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }

.modal-label {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 5px;
  margin-top: 12px;
}

.modal-label:first-of-type { margin-top: 0; }


/* ── PAGE ARTISTE ── */


.artist-hero-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 20px;
  width: 100%;
}

.artist-hero-pic {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(77,159,255,0.4);
  background: var(--bg-4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.artist-hero-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-hero-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.5px;
  color: var(--text-1);
}

.artist-hero-fans {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
}

/* ── BOUTONS NAVIGATION ← → ── */
.nav-arrows {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.nav-arrow-btn {
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.nav-arrow-btn:hover:not(:disabled) {
  background: var(--bg-3);
  color: var(--text-1);
}

.nav-arrow-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

/* ── SETTINGS MODAL TABS ── */
.settings-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--bg-4);
  padding-bottom: 0;
}

.settings-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  cursor: pointer;
  letter-spacing: .5px;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -1px;
}

.settings-tab:hover { color: var(--text-1); }
.settings-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.settings-tab.danger-tab:hover { color: var(--red); }
.settings-tab.danger-tab.active { color: var(--red); border-bottom-color: var(--red); }

.settings-panel { animation: fadeUp .15s ease; }

/* Auth success message */
.auth-success {
  background: rgba(77,159,255,.1);
  border: 1px solid rgba(77,159,255,.3);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ── HERO ARTISTE — fix bannière ── */
.artist-hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  background: var(--bg-2);
}

.artist-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  filter: brightness(0.3);
}

.artist-bio {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.8;
  padding: 12px 4px;
  max-height: 120px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.artist-bio.expanded { max-height: none; }

.artist-bio::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--bg-0));
  pointer-events: none;
}

.artist-bio.expanded::after { display: none; }

/* ── HERO ALBUM ── */
.album-hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  background: var(--bg-2);
}

.album-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.25);
}

.album-hero-content {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 20px;
  width: 100%;
}

.album-hero-cover {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.album-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-hero-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--text-1);
  margin-bottom: 6px;
}

.album-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--text-2);
}

.album-hero-meta span::after {
  content: '·';
  margin-left: 8px;
  opacity: 0.4;
}

.album-hero-meta span:last-child::after { display: none; }

.album-hero-artist {
  color: var(--accent);
  cursor: pointer;
}

.album-hero-artist:hover { text-decoration: underline; }

/* ── SORT CONTROLS ── */
.sort-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 12px;
  flex-wrap: wrap;
}

.sort-label {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 4px;
}

.sort-btn {
  background: none;
  border: 1px solid var(--bg-4);
  border-radius: 20px;
  padding: 3px 10px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: .3px;
}

.sort-btn:hover { border-color: var(--text-2); color: var(--text-2); }
.sort-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }