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

:root {
  --purple: #7F77DD;
  --purple-light: #EEEDFE;
  --purple-dark: #534AB7;
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --border: rgba(0,0,0,0.1);
  --bg: #f8f8f6;
  --card: #ffffff;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f0f0f0;
    --text-secondary: #999;
    --border: rgba(255,255,255,0.1);
    --bg: #111;
    --card: #1c1c1c;
  }
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 0.5px solid var(--border);
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple);
}

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

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-username {
  font-size: 14px;
  color: var(--text-secondary);
}

/* BOUTONS */
.btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 0.5px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--bg);
}

.btn-primary {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
}

/* HERO */
.hero {
  padding: 40px 24px 32px;
  border-bottom: 0.5px solid var(--border);
  background: var(--card);
}

.hero h1 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 6px;
}

.hero p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.stats-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px 18px;
  min-width: 100px;
}

.stat-val {
  font-size: 22px;
  font-weight: 600;
}

.stat-lbl {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* SECTIONS */
.section {
  padding: 28px 24px 0;
  max-width: 900px;
  margin: 0 auto;
}

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

.section-title {
  font-size: 16px;
  font-weight: 600;
}

/* SONGS */
.songs-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 32px;
}

.song-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 0.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s;
}

.song-row:hover {
  background: var(--card);
  border-color: var(--border);
}

.song-num {
  font-size: 13px;
  color: var(--text-secondary);
  width: 18px;
  text-align: right;
  flex-shrink: 0;
}

.song-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--purple-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.song-info {
  flex: 1;
  min-width: 0;
}

.song-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  font-size: 12px;
  color: var(--text-secondary);
}

.song-duration {
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.play-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text);
  transition: background 0.15s;
}

.play-btn:hover {
  background: var(--purple-light);
}

/* ARTISTES */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.artist-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px 14px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
  display: block;
}

.artist-card:hover {
  border-color: var(--purple);
}

.artist-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin: 0 auto 10px;
  object-fit: cover;
}

.artist-name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 3px;
}

.artist-meta {
  font-size: 11px;
  color: var(--text-secondary);
}

/* UPLOAD BANNER */
.upload-banner {
  margin: 0 24px 32px;
  max-width: 852px;
  margin-left: auto;
  margin-right: auto;
  border: 0.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  display: block;
  color: var(--text);
}

.upload-banner:hover {
  background: var(--card);
}

.upload-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple-light);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-banner h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.upload-banner p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* LECTEUR AUDIO */
.player {
  position: sticky;
  bottom: 0;
  background: var(--card);
  border-top: 0.5px solid var(--border);
  padding: 12px 24px;
  display: none;
  align-items: center;
  gap: 16px;
  z-index: 100;
}

.player.active {
  display: flex;
}

.player-info {
  flex: 1;
  min-width: 0;
}

.player-title {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist {
  font-size: 12px;
  color: var(--text-secondary);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.player-btn.main {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  width: 40px;
  height: 40px;
}

.player-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.player-progress input[type=range] {
  flex: 1;
}

/* EMPTY STATE */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* GENRE BADGE */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  background: var(--purple-light);
  color: var(--purple-dark);
}