:root {
  --dynamic-agency-color: #ffffff;
}

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

body {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--bg, #07090e);
  transition: background 0.4s ease;
}

/* BACKGROUND AURORA ADAPTATIF APPLE */
.apple-aurora {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  filter: blur(150px);
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.45;
  animation: fluidMove 20s infinite alternate ease-in-out;
}

.blob-agency {
  width: 800px;
  height: 800px;
  background: var(--dynamic-agency-color);
  top: -20%;
  left: -10%;
  transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blob-ambient {
  width: 600px;
  height: 600px;
  background: rgba(147, 51, 234, 0.3);
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}

@keyframes fluidMove {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(80px, -60px) scale(1.1) rotate(90deg); }
  100% { transform: translate(-40px, 40px) scale(0.9) rotate(180deg); }
}

/* STRUCTURE ET INTERFACE SKELETON */
.app-fullscreen {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100vw;
  height: 100vh;
  padding: 24px;
  gap: 24px;
}

.glass-panel {
  background: var(--surface, rgba(13, 17, 23, 0.45));
  backdrop-filter: var(--blur, blur(20px) saturate(190%));
  -webkit-backdrop-filter: var(--blur, blur(20px) saturate(190%));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  border-radius: var(--radius-panel, 24px);
}

/* SIDEBAR ET MINI PLAYER */
.sidebar {
  width: 320px;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  flex-shrink: 0;
}

.sidebar-header {
  cursor: pointer;
  margin-bottom: 32px;
}

.sidebar-header h1 {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 2.2rem;
  font-weight: var(--font-weight-display, 800);
  letter-spacing: var(--letter-spacing-display, -1.5px);
  text-transform: var(--text-transform-display, none);
  background: linear-gradient(135deg, var(--text-primary, #fff) 30%, rgba(255,255,255,0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-header p {
  font-size: 0.8rem;
  color: #808799;
  font-weight: 500;
  margin-top: 2px;
}

.search-box {
  margin-bottom: 28px;
}

.search-box input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill, 14px);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.85rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-box input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
}

.agency-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 24px;
}

.agency-list::-webkit-scrollbar { width: 4px; }
.agency-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.agency-section {
  margin-bottom: 24px;
}

.agency-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  opacity: 0.9;
  transition: color 0.4s;
}

.artist-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.artist-item {
  padding: 10px 14px;
  border-radius: 10px;
  color: #a0a6b5;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.artist-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  transform: translateX(4px);
}

.artist-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.mini-player {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.player-icon-wrapper {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  flex-shrink: 0;
}

.player-track-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.track-status {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #808799;
}

.track-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-progress {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--dynamic-agency-color, #ffffff);
  border-radius: 2px;
  transition: width 0.1s linear, background 0.4s;
}

.player-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.player-btn {
  background: none;
  border: none;
  color: #a0a6b5;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.player-btn:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.player-btn.play {
  font-size: 1.3rem;
  color: #ffffff;
}

.spotify-btn {
  width: 100%;
  padding: 10px;
  background: #1db954;
  border: none;
  border-radius: var(--radius-btn, 10px);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}

.spotify-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* CONTENU PRINCIPAL GRILLE D'ALBUMS */
.main-content {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
}

.main-content::-webkit-scrollbar { width: 6px; }
.main-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }

.animate-fade {
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* MODE DASHBOARD ACCUEIL */
.welcome-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 3.5rem;
  font-weight: var(--font-weight-display, 800);
  letter-spacing: var(--letter-spacing-display, -2px);
  text-transform: var(--text-transform-display, none);
  margin-bottom: 8px;
  color: var(--text-primary, #fff);
}

.welcome-desc {
  color: #808799;
  font-size: 1.1rem;
  margin-bottom: 48px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 800px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
}

.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #808799;
  font-weight: 600;
}

/* BANNIERE ARTISTE ET GRILLE */
.artist-view-header {
  margin-bottom: 40px;
}

.breadcrumbs {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #808799;
  margin-bottom: 8px;
}

.artist-main-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 3.5rem;
  font-weight: var(--font-weight-display, 800);
  letter-spacing: var(--letter-spacing-display, -2px);
  text-transform: var(--text-transform-display, none);
  color: var(--text-primary, #fff);
  margin-bottom: 4px;
}

.album-total-count {
  font-size: 0.9rem;
  color: #808799;
}

.albums-display-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
}

.album-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.album-media-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: var(--radius-card, 16px);
  overflow: hidden;
  background: #141923;
  box-shadow: var(--card-shadow, 0 12px 40px rgba(0,0,0,0.3));
  outline: var(--card-border, none);
  outline-offset: -1px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  isolation: isolate;
}

.album-card:hover .album-media-wrapper {
  transform: translateY(-6px);
}

.album-artwork {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
  vertical-align: bottom;
  line-height: 0;
}

.album-artwork-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: #141923;
}

.album-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.album-title-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  flex: 1;
}

.status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: var(--radius-pill, 4px);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.status-badge:hover {
  transform: scale(1.08);
  filter: brightness(1.2);
}

.status-badge.owned {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.status-badge.wishlist {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.agency-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dynamic-agency-color);
  transition: color 0.4s;
}

/* DASHBOARD STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 800px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
}

.stat-card {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }

.no-result {
  color: #808799;
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
}

/* FOOTER CARTE ALBUM — agency tag + bouton Spotify */
.album-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* BOUTON ÉCOUTER SUR SPOTIFY */
.spotify-album-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(29, 185, 84, 0.1);
  border: 1px solid rgba(29, 185, 84, 0.25);
  border-radius: 6px;
  color: #1db954;
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.spotify-album-btn:hover {
  background: rgba(29, 185, 84, 0.2);
  border-color: rgba(29, 185, 84, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.15);
}

/* ==========================================
   MODAL FICHE ALBUM
   ========================================== */

#album-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
}

#album-modal-overlay.visible {
  opacity: 1;
}

.album-modal {
  background: var(--surface, rgba(13, 17, 23, 0.92));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-panel, 28px);
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  overflow: hidden;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

#album-modal-overlay.visible .album-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #808799;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Loading state */
.modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 40px;
  color: #808799;
  font-size: 0.85rem;
}

.modal-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,0.08);
  border-top-color: #1db954;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Layout intérieur */
.modal-inner {
  display: flex;
  height: 100%;
  max-height: 88vh;
}

.modal-left {
  width: 260px;
  flex-shrink: 0;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

.modal-cover-wrapper {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-cover-placeholder {
  width: 100%;
  height: 100%;
  background: #141923;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.modal-meta-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-spotify-link {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1db954;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: opacity 0.2s;
}

.modal-spotify-link:hover { opacity: 0.75; }

.modal-play-btn {
  width: 100%;
  padding: 10px;
  background: #1db954;
  border: none;
  border-radius: 10px;
  color: #000;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 2px;
}

.modal-play-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Colonne droite */
.modal-right {
  flex: 1;
  overflow-y: auto;
  padding: 36px 36px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-right::-webkit-scrollbar { width: 4px; }
.modal-right::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }

.modal-header { display: flex; flex-direction: column; gap: 4px; }

.modal-agency {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--dynamic-agency-color);
}

.modal-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 2rem;
  font-weight: var(--font-weight-display, 800);
  letter-spacing: var(--letter-spacing-display, -1px);
  text-transform: var(--text-transform-display, none);
  color: var(--text-primary, #fff);
  line-height: 1.1;
}

.modal-artist {
  font-size: 0.9rem;
  color: #808799;
  font-weight: 500;
}

/* Stats */
.modal-stats {
  display: flex;
  gap: 28px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modal-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.modal-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #808799;
  font-weight: 600;
}

.modal-label-line {
  font-size: 0.8rem;
  color: #808799;
  font-weight: 500;
}

.modal-genres {
  font-size: 0.75rem;
  color: #a0a6b5;
  font-weight: 500;
  font-style: italic;
}

/* Tracklist */
.modal-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #808799;
  margin-bottom: 12px;
}

.modal-tracks-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-track {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}

.modal-track:hover { background: rgba(255,255,255,0.04); }

.modal-track-num {
  font-size: 0.75rem;
  color: #808799;
  width: 18px;
  text-align: right;
  flex-shrink: 0;
}

.modal-track-name {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
  flex: 1;
}

.modal-track-dur {
  font-size: 0.75rem;
  color: #808799;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.modal-no-spotify {
  font-size: 0.8rem;
  color: #808799;
  font-style: italic;
  padding: 8px 0;
}

/* Rendre les cards cliquables visuellement */
.album-card {
  cursor: pointer;
}

/* ==========================================
   OVERLAY SPOTIFY SUR LA COVER
   ========================================== */

.card-spotify-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.card-spotify-overlay span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #1db954;
  color: #000;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 20px;
  pointer-events: none;
}

/* covers : règles consolidées plus haut */

/* ==========================================
   MODAL AJOUT ALBUM
   ========================================== */

.add-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.add-modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.add-modal {
  width: 100%;
  max-width: 520px;
  padding: 36px;
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.add-modal-overlay.visible .add-modal {
  transform: translateY(0) scale(1);
}

.add-modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}

.add-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.add-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.add-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.add-form-group label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #808799;
}

.add-form-group input,
.add-form-group select {
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.add-form-group input:focus,
.add-form-group select:focus {
  outline: none;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.add-form-group select option {
  background: #0d1117;
  color: #fff;
}

.add-status-toggle {
  display: flex;
  gap: 8px;
}

.status-toggle-btn {
  flex: 1;
  padding: 9px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #808799;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.status-toggle-btn.active {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.add-preview {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

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

.add-error {
  font-size: 0.8rem;
  color: #f87171;
  padding: 8px 12px;
  background: rgba(248,113,113,0.1);
  border-radius: 8px;
  border: 1px solid rgba(248,113,113,0.2);
}

.add-submit-btn {
  width: 100%;
  padding: 13px;
  background: #fff;
  border: none;
  border-radius: var(--radius-btn, 10px);
  color: #000;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}

.add-submit-btn:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-1px);
}

/* ==========================================
   BOUTON AJOUTER DANS LA SIDEBAR
   ========================================== */

.add-album-btn-wrap {
  padding: 12px 0 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 8px;
}

.add-album-nav-btn {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius-btn, 10px);
  color: #808799;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.add-album-nav-btn:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.lightstick-nav {
  color: var(--text-secondary) !important;
  font-style: italic;
  opacity: 0.75;
}

/* ==========================================
   LIGHTSTICKS
   ========================================== */

.lightsticks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 24px;
}

.lightstick-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: default;
}

.lightstick-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 140%;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

.lightstick-card:hover .lightstick-img-wrapper {
  transform: translateY(-5px);
}

.lightstick-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.lightstick-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.lightstick-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.lightstick-artist {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dynamic-agency-color);
}



/* ==========================================
   BINDER PHOTOCARDS — APPLE PREMIUM
   ========================================== */

.binder-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.binder-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.binder-filter-btn {
  padding: 5px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-pill, 20px);
  color: #808799;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.binder-filter-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.binder-filter-btn.active {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

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

.binder-nav-btn {
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.binder-nav-btn:hover:not(:disabled) { background: rgba(255,255,255,0.1); }
.binder-nav-btn:disabled { opacity: 0.2; cursor: default; }

.binder-page-label {
  font-size: 0.78rem;
  color: #808799;
  font-weight: 600;
  min-width: 44px;
  text-align: center;
}

.binder-add-page-btn {
  padding: 5px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius-btn, 8px);
  color: #808799;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.binder-add-page-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

/* ---- BOOK LAYOUT ---- */
.binder-book {
  display: flex;
  align-items: stretch;
  max-width: 700px;
  border-radius: 6px 20px 20px 6px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
}

/* Spirale minimaliste */
.binder-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  width: 28px;
  flex-shrink: 0;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.03) 100%
  );
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 28px 0;
}

.binder-ring {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  background: transparent;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.3),
    inset 0 1px 2px rgba(255,255,255,0.08);
  flex-shrink: 0;
}

/* Page glassmorphism */
.binder-page-sheet {
  flex: 1;
  background: rgba(10, 13, 20, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 28px 24px;
  position: relative;
}

.binder-page-sheet::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,0.08) 30%,
    rgba(255,255,255,0.08) 70%,
    transparent
  );
}

.binder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ---- WRAPPER (gère aura sans clip) ---- */
.binder-slot-wrapper {
  position: relative;
  aspect-ratio: 55 / 85;
}

/* aura par groupe → voir section AURA COLORÉE en bas */

/* ---- SLOT VIDE ---- */
.binder-slot.empty {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  background: rgba(255,255,255,0.02);
  z-index: 1;
}
.binder-slot.empty:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}
.binder-slot-add {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.15);
  transition: color 0.2s;
}
.binder-slot.empty:hover .binder-slot-add { color: rgba(255,255,255,0.4); }

/* ---- SLOT REMPLI ---- */
.binder-slot.filled {
  position: absolute;
  inset: 0;
  z-index: 1;
  perspective: 800px;
  border-radius: 10px;
}

.binder-card-tilt {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.08s linear;
  position: relative;
  will-change: transform;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.3),
    0 6px 20px rgba(0,0,0,0.4);
}

.binder-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.binder-card-empty-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1f2e, #0d1117);
  font-size: 2rem;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: rgba(255,255,255,0.1);
  border-radius: 10px;
}

/* Couche holo — FAVORIS SEULEMENT, par-dessus l'image */
.holo-layer {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
  /* Le background est injecté dynamiquement par JS */
}

/* Infos */
.binder-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 8px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
  border-radius: 0 0 10px 10px;
}
.binder-slot.filled:hover .binder-card-info { opacity: 1; }

.binder-card-member {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.binder-card-artist {
  font-size: 0.57rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
}

/* Actions */
.binder-card-actions {
  position: absolute;
  top: 6px; right: 6px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 4;
}
.binder-slot.filled:hover .binder-card-actions { opacity: 1; }

.binder-fav-btn {
  width: 20px; height: 20px;
  background: rgba(0,0,0,0.55);
  border: none;
  border-radius: 50%;
  color: rgba(255,255,255,0.35);
  font-size: 0.6rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  backdrop-filter: blur(4px);
}
.binder-fav-btn:hover { color: #ffd700; }
.binder-fav-btn.active { color: #ffd700; background: rgba(0,0,0,0.7); }

.binder-remove-btn {
  width: 20px; height: 20px;
  background: rgba(0,0,0,0.55);
  border: none;
  border-radius: 50%;
  color: rgba(255,255,255,0.35);
  font-size: 0.55rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  backdrop-filter: blur(4px);
}
.binder-remove-btn:hover { background: rgba(248,113,113,0.8); color: #fff; }

/* Favori dans le modal */
#pc-toggle-favorite.active {
  background: rgba(255,215,0,0.1);
  border-color: rgba(255,215,0,0.3);
  color: #ffd700;
}

.pc-file-input {
  padding: 8px 0;
  background: none;
  border: none;
  color: #808799;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  width: 100%;
}

.pc-img-preview {
  width: 70px;
  height: 108px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ==========================================
   TOPBAR PROFIL
   ========================================== */

.topbar {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(13,17,23,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  color: #fff;
  font-family: inherit;
}

.profile-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-name-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

/* ---- MODAL PROFIL ---- */
.profile-modal {
  max-width: 400px;
}

.profile-modal-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-align: center;
}

.profile-modal-icon {
  font-size: 2.5rem;
  margin-bottom: 4px;
}

.profile-modal-sub {
  font-size: 0.85rem;
  color: #808799;
}

.google-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: #fff;
  border: none;
  border-radius: var(--radius-btn, 10px);
  color: #1a1a1a;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.google-signin-btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.profile-avatar-large:hover { border-color: rgba(255,255,255,0.3); }

.profile-avatar-upload-label {
  font-size: 0.72rem;
  color: #808799;
  cursor: pointer;
  transition: color 0.2s;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.profile-avatar-upload-label:hover { color: #fff; }

.signout-btn {
  width: 100%;
  padding: 11px;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.15);
  border-radius: var(--radius-btn, 10px);
  color: #f87171;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.signout-btn:hover {
  background: rgba(248,113,113,0.15);
  border-color: rgba(248,113,113,0.3);
}

/* ==========================================
   AURA COLORÉE PAR GROUPE (favoris)
   ========================================== */

.group-aura {
  position: absolute;
  inset: -8px;
  border-radius: 16px;
  z-index: 0;
  background: radial-gradient(
    ellipse at center,
    var(--aura-color) 0%,
    transparent 70%
  );
  opacity: 0.55;
  filter: blur(10px);
  pointer-events: none;
  animation: auraPulse 3s ease-in-out infinite alternate;
}

@keyframes auraPulse {
  from { opacity: 0.45; transform: scale(0.97); }
  to   { opacity: 0.7;  transform: scale(1.03); }
}

.binder-slot-wrapper.is-favorite:hover .group-aura {
  opacity: 0.85;
  filter: blur(12px);
}

/* ==========================================
   CSS VARIABLES THÈMES
   ========================================== */

:root {
  --bg:             #07090e;
  --surface:        rgba(13,17,23,0.45);
  --surface-hover:  rgba(255,255,255,0.06);
  --border:         rgba(255,255,255,0.06);
  --border-hover:   rgba(255,255,255,0.14);
  --text-primary:   #ffffff;
  --text-secondary: #808799;
  --text-tertiary:  #4a5060;
  --accent:         #ffffff;
  --radius-card:    16px;
  --radius-panel:   24px;
  --radius-btn:     10px;
  --grid-line:      none;
}

/* ==========================================
   TOPBAR — BOUTON SETTINGS
   ========================================== */

.topbar-settings-btn {
  width: 36px;
  height: 36px;
  background: rgba(13,17,23,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  color: #808799;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
}
.topbar-settings-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
  transform: rotate(45deg);
}

/* ==========================================
   SETTINGS OVERLAY & PANEL
   ========================================== */

.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16,1,0.3,1);
}
.settings-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.settings-panel {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  scrollbar-width: none;
}
.settings-panel::-webkit-scrollbar { display: none; }
.settings-overlay.visible .settings-panel { transform: translateY(0) scale(1); }

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

.settings-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.settings-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.settings-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.settings-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ==========================================
   THEME CARDS
   ========================================== */

.theme-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.theme-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
  position: relative;
}
.theme-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.theme-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* Preview miniature du thème */
.theme-preview {
  display: flex;
  height: 80px;
  overflow: hidden;
}

.theme-preview-dark  { background: #07090e; }
.theme-preview-grid  { background: #e8e6e1; }
.theme-preview-editorial { background: #f7f7f5; }
.theme-preview-lemontang { background: linear-gradient(135deg, #4fc3f7 0%, #81e6d9 45%, #fff176 100%); }
.theme-preview-lemontang .tp-sidebar { background: rgba(255,255,255,0.3); border-right: 1px solid rgba(255,255,255,0.4); }
.theme-preview-lemontang .tp-card { background: rgba(255,255,255,0.35); border-radius: 8px; }

.theme-preview-chatgpt { background: #212121; }
.theme-preview-chatgpt .tp-sidebar { background: #171717; border-right: 1px solid rgba(255,255,255,0.08); }
.theme-preview-chatgpt .tp-card { background: #2f2f2f; border-radius: 6px; }

.theme-preview-kpopping { background: #f7f7f8; }
.theme-preview-kpopping .tp-sidebar { background: #fff; border-right: 1px solid rgba(0,0,0,0.06); }
.theme-preview-kpopping .tp-card { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.theme-preview-lemontang .tp-sidebar { background: rgba(255,255,255,0.3); border-right: 1px solid rgba(255,255,255,0.4); }
.theme-preview-lemontang .tp-card { background: rgba(255,255,255,0.35); border-radius: 8px; }

.tp-sidebar {
  width: 28%;
  height: 100%;
  flex-shrink: 0;
}
.theme-preview-dark .tp-sidebar       { background: rgba(255,255,255,0.04); border-right: 1px solid rgba(255,255,255,0.06); }
.theme-preview-grid .tp-sidebar       { background: #dedad4; border-right: 1px solid rgba(0,0,0,0.1); }
.theme-preview-editorial .tp-sidebar  { background: rgba(255,255,255,0.8); border-right: 1px solid rgba(0,0,0,0.07); }

.tp-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 8px;
  align-content: start;
}
.tp-grid-lines {
  background-image: repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(0,0,0,0.08) 19px, rgba(0,0,0,0.08) 20px);
}
.tp-card {
  height: 28px;
  border-radius: 3px;
}
.theme-preview-dark .tp-card       { background: rgba(255,255,255,0.06); }
.theme-preview-grid .tp-card       { background: rgba(0,0,0,0.07); border-radius: 0; }
.theme-preview-editorial .tp-card  { background: rgba(0,0,0,0.06); border-radius: 6px; }

.theme-card-info {
  padding: 10px 12px 8px;
  background: var(--surface);
}

.theme-card-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}
.theme-card-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.theme-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}
.theme-card.active .theme-check { display: flex; }

/* ==========================================
   LANGUE
   ========================================== */

.lang-toggle {
  display: flex;
  gap: 8px;
}

.lang-btn {
  flex: 1;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.lang-btn.active {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  color: var(--text-primary);
}

/* ==========================================
   ACCENT COULEUR
   ========================================== */

.accent-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.accent-presets {
  display: flex;
  gap: 8px;
}

.accent-preset {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.accent-preset:hover { transform: scale(1.2); border-color: rgba(255,255,255,0.5); }

.accent-custom-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
}
.accent-custom-label input[type="color"] {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  padding: 0;
  background: none;
  cursor: pointer;
}

/* ==========================================
   TOGGLE ANIMATIONS
   ========================================== */

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.toggle-label {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-knob {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 24px;
  transition: all 0.25s;
  cursor: pointer;
}
.toggle-knob::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.toggle-switch input:checked + .toggle-knob { background: var(--accent); }
.toggle-switch input:checked + .toggle-knob::before { transform: translateX(20px); }

/* ==========================================
   ADAPTATIONS THÈME GRID (clair)
   ========================================== */

body.theme-grid {
  background: #e8e6e1;
  color: #0a0a0a;
}
body.theme-grid .sidebar-header h1,
body.theme-grid .welcome-title,
body.theme-grid .artist-main-title { -webkit-text-fill-color: #0a0a0a; }
body.theme-grid .artist-item { color: #555; }
body.theme-grid .artist-item:hover,
body.theme-grid .artist-item.active { color: #0a0a0a; background: rgba(0,0,0,0.06); }
body.theme-grid .search-box input { color: #0a0a0a; background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
body.theme-grid .album-card:hover .album-media-wrapper { transform: none; }
body.theme-grid .album-title-text,
body.theme-grid .stat-number,
body.theme-grid .track-title { color: #0a0a0a; }
body.theme-grid .stat-label,
body.theme-grid .track-status,
body.theme-grid .breadcrumbs,
body.theme-grid .album-total-count { color: #555; }
body.theme-grid .player-btn { color: #333; }
body.theme-grid .mini-player { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
/* Couverture étendue — modals, settings, profil, binder, lightsticks */
body.theme-grid .sidebar-header p,
body.theme-grid .welcome-desc,
body.theme-grid .agency-title,
body.theme-grid .album-card-footer .agency-tag,
body.theme-grid .modal-agency,
body.theme-grid .modal-artist,
body.theme-grid .modal-label-line,
body.theme-grid .modal-genres,
body.theme-grid .modal-section-title,
body.theme-grid .modal-stat-label,
body.theme-grid .settings-section-title,
body.theme-grid .toggle-label,
body.theme-grid .add-form-group label,
body.theme-grid .profile-modal-sub,
body.theme-grid .lightstick-artist,
body.theme-grid .binder-card-artist,
body.theme-grid .settings-hint { color: #555; }
body.theme-grid .modal-title,
body.theme-grid .modal-stat-value,
body.theme-grid .settings-title,
body.theme-grid .add-modal-title,
body.theme-grid .profile-name-label,
body.theme-grid .lightstick-name,
body.theme-grid .album-modal,
body.theme-grid .add-modal,
body.theme-grid .settings-panel { color: #0a0a0a; }
body.theme-grid .album-modal,
body.theme-grid .add-modal,
body.theme-grid .settings-panel,
body.theme-grid .profile-modal { background: #f0ede8; }
body.theme-grid .add-form-group input,
body.theme-grid .add-form-group select,
body.theme-grid #profile-pseudo-input,
body.theme-grid #profile-email-display { color: #0a0a0a; background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.1); }
body.theme-grid .modal-track-name,
body.theme-grid .binder-card-member { color: #0a0a0a; }
body.theme-grid .modal-close,
body.theme-grid .topbar-settings-btn,
body.theme-grid .profile-btn { color: #555; }
body.theme-grid .profile-avatar,
body.theme-grid .profile-avatar-large { background: rgba(0,0,0,0.06); color: #0a0a0a; }
body.theme-grid .modal-no-spotify { color: #888; }
body.theme-grid .binder-page-sheet { background: rgba(240,237,232,0.9); }
body.theme-grid .binder-spine { background: rgba(0,0,0,0.06); }

/* ==========================================
   ADAPTATIONS THÈME EDITORIAL (blanc)
   ========================================== */

body.theme-editorial {
  background: #f7f7f5;
  color: #0a0a0a;
}
body.theme-editorial .sidebar-header h1,
body.theme-editorial .welcome-title,
body.theme-editorial .artist-main-title { -webkit-text-fill-color: #0a0a0a; }
body.theme-editorial .artist-item { color: #6b6b6b; }
body.theme-editorial .artist-item:hover,
body.theme-editorial .artist-item.active { color: #0a0a0a; background: rgba(0,0,0,0.05); }
body.theme-editorial .search-box input { color: #0a0a0a; background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
body.theme-editorial .album-title-text,
body.theme-editorial .stat-number,
body.theme-editorial .track-title { color: #0a0a0a; }
body.theme-editorial .stat-label,
body.theme-editorial .track-status,
body.theme-editorial .breadcrumbs,
body.theme-editorial .album-total-count { color: #6b6b6b; }
body.theme-editorial .player-btn { color: #333; }
body.theme-editorial .mini-player { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.07); }
body.theme-editorial .status-badge.owned { background: rgba(0,0,0,0.06); color: #0a0a0a; }
body.theme-editorial .status-badge.wishlist { background: rgba(0,0,0,0.04); color: #6b6b6b; }
/* Couverture étendue */
body.theme-editorial .sidebar-header p,
body.theme-editorial .welcome-desc,
body.theme-editorial .agency-title,
body.theme-editorial .album-card-footer .agency-tag,
body.theme-editorial .modal-agency,
body.theme-editorial .modal-artist,
body.theme-editorial .modal-label-line,
body.theme-editorial .modal-genres,
body.theme-editorial .modal-section-title,
body.theme-editorial .modal-stat-label,
body.theme-editorial .settings-section-title,
body.theme-editorial .toggle-label,
body.theme-editorial .add-form-group label,
body.theme-editorial .profile-modal-sub,
body.theme-editorial .lightstick-artist,
body.theme-editorial .binder-card-artist,
body.theme-editorial .settings-hint { color: #6b6b6b; }
body.theme-editorial .modal-title,
body.theme-editorial .modal-stat-value,
body.theme-editorial .settings-title,
body.theme-editorial .add-modal-title,
body.theme-editorial .profile-name-label,
body.theme-editorial .lightstick-name { color: #0a0a0a; }
body.theme-editorial .album-modal,
body.theme-editorial .add-modal,
body.theme-editorial .settings-panel,
body.theme-editorial .profile-modal { background: #ffffff; }
body.theme-editorial .add-form-group input,
body.theme-editorial .add-form-group select,
body.theme-editorial #profile-pseudo-input,
body.theme-editorial #profile-email-display { color: #0a0a0a; background: rgba(0,0,0,0.025); border-color: rgba(0,0,0,0.08); }
body.theme-editorial .modal-track-name,
body.theme-editorial .binder-card-member { color: #0a0a0a; }
body.theme-editorial .modal-close,
body.theme-editorial .topbar-settings-btn,
body.theme-editorial .profile-btn { color: #6b6b6b; }
body.theme-editorial .profile-avatar,
body.theme-editorial .profile-avatar-large { background: rgba(0,0,0,0.05); color: #0a0a0a; }
body.theme-editorial .modal-no-spotify { color: #999; }
body.theme-editorial .binder-page-sheet { background: rgba(255,255,255,0.92); }
body.theme-editorial .binder-spine { background: rgba(0,0,0,0.04); }

/* ==========================================
   BOUTON RESET COLLECTION
   ========================================== */

.reset-collection-btn {
  width: 100%;
  padding: 12px;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.18);
  border-radius: var(--radius-btn);
  color: #f87171;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.reset-collection-btn:hover {
  background: rgba(248,113,113,0.15);
  border-color: rgba(248,113,113,0.35);
}

.settings-hint {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.4;
}

/* ==========================================
   THÈME LEMONTANG — Y2K FRUTIGER AERO
   ========================================== */

body.theme-lemontang {
  background: linear-gradient(160deg, #4fc3f7 0%, #6dd5ed 28%, #a3e8c4 55%, #ffe66d 80%, #fff176 100%);
  color: var(--text-primary);
}

/* Couche photo du groupe — désactivée par défaut, activée via --lemontang-bg-image */
body.theme-lemontang::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: var(--lemontang-bg-image, none);
  background-size: cover;
  background-position: center 30%;
  opacity: 0.4;
  filter: saturate(1.3) blur(1px);
  pointer-events: none;
}

/* Voile glassy par-dessus la photo pour garder la lisibilité (effet frutiger aero) */
body.theme-lemontang::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg,
    rgba(79,195,247,0.55) 0%,
    rgba(109,213,237,0.45) 30%,
    rgba(163,232,196,0.4) 55%,
    rgba(255,230,109,0.5) 80%,
    rgba(255,241,118,0.6) 100%
  );
  pointer-events: none;
}

/* .app-fullscreen est déjà position:relative par défaut dans le CSS de base.
   Les overlays (.settings-overlay, .add-modal-overlay, #album-modal-overlay)
   doivent rester en position:fixed (héritée de leur classe de base) —
   ne JAMAIS leur remettre position:relative ici, ça casse leur ancrage viewport. */

body.theme-lemontang .topbar {
  z-index: 500;
}

/* Glass panels — effet bulle savon translucide */
body.theme-lemontang .glass-panel {
  background: rgba(255,255,255,0.25);
  border: 1.5px solid rgba(255,255,255,0.55);
  box-shadow:
    0 8px 32px rgba(13,59,82,0.15),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

/* Titres — dégradé bleu→jaune façon logo Lemon Tang */
body.theme-lemontang .sidebar-header h1,
body.theme-lemontang .welcome-title,
body.theme-lemontang .artist-main-title {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #ffe14d;
  color: #ffe14d;
  text-shadow:
    0 2px 12px rgba(255,225,77,0.5),
    0 1px 0 rgba(255,255,255,0.3);
}

body.theme-lemontang .sidebar-header p,
body.theme-lemontang .welcome-desc,
body.theme-lemontang .agency-title,
body.theme-lemontang .album-card-footer .agency-tag,
body.theme-lemontang .modal-agency,
body.theme-lemontang .modal-artist,
body.theme-lemontang .modal-label-line,
body.theme-lemontang .modal-genres,
body.theme-lemontang .modal-section-title,
body.theme-lemontang .modal-stat-label,
body.theme-lemontang .settings-section-title,
body.theme-lemontang .toggle-label,
body.theme-lemontang .add-form-group label,
body.theme-lemontang .profile-modal-sub,
body.theme-lemontang .lightstick-artist,
body.theme-lemontang .settings-hint,
body.theme-lemontang .breadcrumbs,
body.theme-lemontang .album-total-count,
body.theme-lemontang .stat-label,
body.theme-lemontang .track-status {
  color: var(--text-secondary);
}

body.theme-lemontang .artist-item { color: var(--text-secondary); font-weight: 600; }
body.theme-lemontang .artist-item:hover,
body.theme-lemontang .artist-item.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.4);
}

body.theme-lemontang .search-box input {
  color: var(--text-primary);
  background: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.5);
}
body.theme-lemontang .search-box input::placeholder { color: rgba(13,59,82,0.5); }

body.theme-lemontang .album-title-text,
body.theme-lemontang .stat-number,
body.theme-lemontang .track-title,
body.theme-lemontang .modal-title,
body.theme-lemontang .modal-stat-value,
body.theme-lemontang .settings-title,
body.theme-lemontang .add-modal-title,
body.theme-lemontang .profile-name-label,
body.theme-lemontang .lightstick-name,
body.theme-lemontang .modal-track-name {
  color: var(--text-primary);
}

/* Texte sur les photocards : toujours blanc, car affiché sur overlay sombre par-dessus l'image */
body.theme-lemontang .binder-card-member { color: #ffffff; }
body.theme-lemontang .binder-card-artist { color: rgba(255,255,255,0.7); }

body.theme-lemontang .player-btn { color: #1c5c78; }
body.theme-lemontang .mini-player {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.45);
}

/* Status badges — bleu eau / jaune citron */
body.theme-lemontang .status-badge.owned {
  background: rgba(79,195,247,0.25);
  color: #0d5878;
}
body.theme-lemontang .status-badge.wishlist {
  background: rgba(255,225,77,0.3);
  color: #8a6d00;
}

/* Modals & settings — glass jaune/bleu */
body.theme-lemontang .album-modal,
body.theme-lemontang .add-modal,
body.theme-lemontang .settings-panel,
body.theme-lemontang .profile-modal {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1.5px solid rgba(255,255,255,0.6);
}

body.theme-lemontang .add-form-group input,
body.theme-lemontang .add-form-group select,
body.theme-lemontang #profile-pseudo-input,
body.theme-lemontang #profile-email-display {
  color: var(--text-primary);
  background: rgba(255,255,255,0.4);
  border-color: rgba(255,255,255,0.5);
}

body.theme-lemontang .modal-close,
body.theme-lemontang .topbar-settings-btn,
body.theme-lemontang .profile-btn {
  color: #1c5c78;
  background: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.5);
}

body.theme-lemontang .profile-avatar,
body.theme-lemontang .profile-avatar-large {
  background: rgba(255,255,255,0.4);
  color: var(--text-primary);
}

body.theme-lemontang .modal-no-spotify { color: #3d7c95; }

body.theme-lemontang .binder-page-sheet {
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(16px);
}
body.theme-lemontang .binder-spine { background: rgba(255,255,255,0.25); }

/* Boutons Spotify / submit — jaune citron pétillant */
body.theme-lemontang .spotify-btn,
body.theme-lemontang .add-submit-btn {
  background: linear-gradient(135deg, #ffe14d, #ffc832);
  color: #4a3800;
  box-shadow: 0 4px 14px rgba(255,200,50,0.4);
}

/* Aurora désactivée visuellement par JS, mais sécurité CSS */
body.theme-lemontang .apple-aurora { display: none !important; }

/* ==========================================
   FIX LISIBILITÉ — LIGHTSTICKS & BINDER
   (thèmes clairs : grid, editorial)
   ========================================== */

body.theme-grid .lightstick-name,
body.theme-editorial .lightstick-name { color: #0a0a0a; }

body.theme-grid .lightstick-artist,
body.theme-editorial .lightstick-artist { color: var(--text-secondary); }

body.theme-grid .breadcrumbs,
body.theme-editorial .breadcrumbs,
body.theme-grid .album-total-count,
body.theme-editorial .album-total-count { color: var(--text-secondary); }

body.theme-grid .artist-main-title,
body.theme-editorial .artist-main-title { -webkit-text-fill-color: #0a0a0a; }

/* Binder toolbar */
body.theme-grid .binder-filter-btn,
body.theme-editorial .binder-filter-btn {
  color: var(--text-secondary);
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}
body.theme-grid .binder-filter-btn:hover,
body.theme-editorial .binder-filter-btn:hover {
  background: rgba(0,0,0,0.08);
  color: #0a0a0a;
}
body.theme-grid .binder-filter-btn.active,
body.theme-editorial .binder-filter-btn.active {
  background: rgba(0,0,0,0.1);
  color: #0a0a0a;
  border-color: rgba(0,0,0,0.25);
}

body.theme-grid .binder-nav-btn,
body.theme-editorial .binder-nav-btn {
  color: #0a0a0a;
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}
body.theme-grid .binder-nav-btn:hover:not(:disabled),
body.theme-editorial .binder-nav-btn:hover:not(:disabled) {
  background: rgba(0,0,0,0.08);
}

body.theme-grid .binder-page-label,
body.theme-editorial .binder-page-label { color: var(--text-secondary); }

body.theme-grid .binder-add-page-btn,
body.theme-editorial .binder-add-page-btn {
  color: var(--text-secondary);
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.12);
}
body.theme-grid .binder-add-page-btn:hover,
body.theme-editorial .binder-add-page-btn:hover {
  background: rgba(0,0,0,0.07);
  color: #0a0a0a;
}

/* Binder book — page et spine */
body.theme-grid .binder-page-sheet,
body.theme-editorial .binder-page-sheet {
  background: rgba(255,255,255,0.6);
}
body.theme-grid .binder-spine,
body.theme-editorial .binder-spine {
  background: rgba(0,0,0,0.04);
  border-right-color: rgba(0,0,0,0.08);
}
body.theme-grid .binder-ring,
body.theme-editorial .binder-ring {
  border-color: rgba(0,0,0,0.2);
}

/* Slots vides */
body.theme-grid .binder-slot.empty,
body.theme-editorial .binder-slot.empty {
  border-color: rgba(0,0,0,0.15);
  background: rgba(0,0,0,0.02);
}
body.theme-grid .binder-slot-add,
body.theme-editorial .binder-slot-add { color: rgba(0,0,0,0.25); }
body.theme-grid .binder-slot.empty:hover .binder-slot-add,
body.theme-editorial .binder-slot.empty:hover .binder-slot-add { color: rgba(0,0,0,0.5); }

/* Cards photocard remplies */
body.theme-grid .binder-card-member,
body.theme-editorial .binder-card-member { color: #fff; } /* reste blanc — fond image sombre via gradient overlay */
body.theme-grid .binder-card-artist,
body.theme-editorial .binder-card-artist { color: rgba(255,255,255,0.7); }

/* Boutons actions sur card (restent sombres car sur l'image) */
body.theme-grid .binder-fav-btn,
body.theme-editorial .binder-fav-btn,
body.theme-grid .binder-remove-btn,
body.theme-editorial .binder-remove-btn { color: rgba(255,255,255,0.6); }

/* ==========================================
   SIDEBAR TABS — Albums / Photocards / Concerts
   ========================================== */

.sidebar-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
}

.sidebar-tab-btn {
  flex: 1;
  padding: 8px 6px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary, #808799);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
}

.sidebar-tab-btn:hover {
  color: var(--text-primary, #fff);
}

.sidebar-tab-btn.active {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary, #fff);
}

/* ==========================================
   CONCERTS — VUE LISTE
   ========================================== */

.concerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.concert-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border-radius: var(--radius-card, 16px);
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: var(--card-border, 1px solid rgba(255,255,255,0.05));
  box-shadow: var(--card-shadow, 0 12px 40px rgba(0,0,0,0.25));
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.concert-card:hover { transform: translateY(-5px); }

.concert-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #141923;
}

.concert-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.concert-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #1a1f2e, #0d1117);
}

.concert-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}

.concert-card-info {
  padding: 16px 16px 18px;
}

.concert-card-artist {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin-bottom: 4px;
}

.concert-card-meta {
  font-size: 0.78rem;
  color: var(--text-secondary, #808799);
  margin-bottom: 2px;
}

.concert-card-tour {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent, #fff);
  opacity: 0.7;
}

/* Étoiles */
.stars-row {
  display: inline-flex;
  gap: 2px;
}
.star-icon {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.25);
  line-height: 1;
}
.star-icon.filled { color: #ffd700; }
.stars-row.interactive .star-icon {
  cursor: pointer;
  font-size: 1.4rem;
  transition: transform 0.15s;
}
.stars-row.interactive .star-icon:hover {
  transform: scale(1.2);
}

/* État vide */
.concerts-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  gap: 8px;
}
.concerts-empty-icon { font-size: 3rem; margin-bottom: 8px; }
.concerts-empty-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary, #fff); }
.concerts-empty-desc { font-size: 0.85rem; color: var(--text-secondary, #808799); margin-bottom: 16px; }

/* ==========================================
   CONCERTS — MODAL FORMULAIRE
   ========================================== */

.concert-form-modal {
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
}

.concert-form textarea {
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-btn, 10px);
  color: var(--text-primary, #fff);
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
  min-height: 70px;
  transition: all 0.2s;
}
.concert-form textarea:focus {
  outline: none;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.concert-media-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.concert-media-item {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.concert-media-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.concert-media-remove {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  background: rgba(0,0,0,0.7);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 0.55rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.concert-media-remove:hover { background: rgba(248,113,113,0.85); }

/* ==========================================
   CONCERTS — FICHE DÉTAIL
   ========================================== */

.concert-detail-modal {
  max-width: 720px;
  max-height: 88vh;
}

.concert-detail-scroll {
  padding: 36px;
  overflow-y: auto;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.concert-detail-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.concert-detail-section {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.concert-review-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-primary, #fff);
  white-space: pre-wrap;
}

.concert-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.concert-gallery-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}
.concert-gallery-photo:hover { transform: scale(1.04); }

.concert-gallery-video {
  width: 100%;
  border-radius: 10px;
  background: #000;
}

.concert-detail-actions {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ==========================================
   CONCERTS — CHAMP URL PHOTO
   ========================================== */

.concert-url-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.concert-url-input-row input {
  flex: 1;
}

.concert-add-url-btn {
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-btn, 10px);
  color: var(--text-primary, #fff);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.concert-add-url-btn:hover {
  background: rgba(255,255,255,0.14);
}

/* ==========================================
   ÉTOILE FAVORI SUR LES ALBUMS
   ========================================== */

.album-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s;
}

.album-card:hover .album-fav-btn { opacity: 1; }
.album-fav-btn.active { opacity: 1; color: #ffd700; background: rgba(0,0,0,0.7); }
.album-fav-btn:hover  { color: #ffd700; transform: scale(1.1); }

/* ==========================================
   VUE FAVORIS
   ========================================== */

.favorites-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.favorites-section { display: flex; flex-direction: column; gap: 16px; }

.favorites-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary, #808799);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ==========================================
   PROFIL ENRICHI — BIASES & RÉSEAUX
   ========================================== */

.profile-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary, #808799);
  margin-top: 4px;
}

.biases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

.bias-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  text-align: center;
}

.bias-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  flex-shrink: 0;
}
.bias-avatar img { width: 100%; height: 100%; object-fit: cover; }

.bias-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  line-height: 1.2;
}
.bias-group {
  font-size: 0.6rem;
  color: var(--text-secondary, #808799);
  font-weight: 500;
}

.bias-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 16px; height: 16px;
  background: rgba(0,0,0,0.5);
  border: none; border-radius: 50%;
  color: rgba(255,255,255,0.5);
  font-size: 0.5rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.bias-remove:hover { background: rgba(248,113,113,0.8); color: #fff; }

.bias-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.bias-add-row input {
  flex: 1;
  min-width: 80px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-btn, 10px);
  color: var(--text-primary, #fff);
  font-family: inherit;
  font-size: 0.8rem;
}

/* ==========================================
   PROFIL PUBLIC
   ========================================== */

.public-profile-modal {
  max-width: 600px;
  max-height: 88vh;
}

.public-profile-scroll {
  padding: 40px 36px;
  overflow-y: auto;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.public-profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.public-profile-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700;
  color: var(--text-primary, #fff);
}
.public-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.public-profile-name {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary, #fff);
}

.public-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.public-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  color: var(--text-primary, #fff);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.public-social-link:hover { background: rgba(255,255,255,0.12); }
.public-social-icon { font-size: 0.7rem; opacity: 0.7; }

.public-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.public-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.public-stat-num {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.5rem; font-weight: 700;
  color: var(--text-primary, #fff);
}
.public-stat-label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-secondary, #808799); font-weight: 600;
}

.public-fav-section {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.public-fav-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-card, 14px);
  flex: 1; min-width: 120px;
}
.public-fav-label {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-secondary, #808799); font-weight: 700;
}
.public-fav-value {
  font-size: 0.9rem; font-weight: 700;
  color: var(--text-primary, #fff);
}

.public-biases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.public-bias-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 14px 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; text-align: center;
}
.public-bias-avatar {
  width: 56px; height: 56px;
  border-radius: 50%; overflow: hidden;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; color: var(--text-primary, #fff);
}
.public-bias-avatar img { width: 100%; height: 100%; object-fit: cover; }
.public-bias-name { font-size: 0.8rem; font-weight: 700; color: var(--text-primary, #fff); }
.public-bias-group { font-size: 0.65rem; color: var(--text-secondary, #808799); }

/* ==========================================
   PROFIL — PAGE PLEIN ÉCRAN
   ========================================== */

.profile-page-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg, #07090e);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16,1,0.3,1);
  overflow-y: auto;
}

.profile-page-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* État non connecté — centré */
.profile-page-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 16px;
  padding: 40px 24px;
  max-width: 420px;
  margin: 0 auto;
}

/* Layout connecté — colonne unique, topbar fixe */
.profile-page-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar fixe */
.profile-page-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(7,9,14,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.profile-page-title {
  flex: 1;
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary, #fff);
  margin: 0;
}

.profile-page-close {
  padding: 7px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  color: var(--text-secondary, #808799);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.profile-page-close:hover { color: var(--text-primary, #fff); background: rgba(255,255,255,0.1); }

.profile-save-top {
  flex-shrink: 0;
  width: auto !important;
  padding: 9px 20px !important;
}

/* Zone scrollable */
.profile-page-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

/* Avatar row */
.profile-page-avatar-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Grille de champs — 2 colonnes sur large, 1 sur petit */
.profile-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .profile-fields-grid { grid-template-columns: 1fr; }
}

.profile-page-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.profile-page-section:last-child { border-bottom: none; }

.profile-page-bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

.profile-public-btn {
  width: 100%;
  padding: 11px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-btn, 10px);
  color: var(--text-secondary, #808799);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.profile-public-btn:hover { background: rgba(255,255,255,0.08); color: var(--text-primary, #fff); }

/* Thèmes clairs */
body.theme-grid .profile-page-overlay,
body.theme-editorial .profile-page-overlay { background: var(--bg, #f7f7f5); }
body.theme-grid .profile-page-topbar,
body.theme-editorial .profile-page-topbar {
  background: rgba(240,237,232,0.9);
  border-bottom-color: rgba(0,0,0,0.08);
}
body.theme-lemontang .profile-page-overlay {
  background: linear-gradient(160deg, #4fc3f7 0%, #6dd5ed 28%, #a3e8c4 55%, #ffe66d 80%, #fff176 100%);
}
body.theme-lemontang .profile-page-topbar {
  background: rgba(79,195,247,0.6);
  backdrop-filter: blur(16px);
}

/* Gestion visibilité profil */
.profile-page-layout.profile-hidden { display: none !important; }

/* ==========================================
   THÈME CHATGPT — DARK MINIMAL
   ========================================== */

body.theme-chatgpt {
  background: #212121;
  color: #ececec;
}

body.theme-chatgpt .glass-panel {
  background: #2f2f2f;
  border-color: rgba(255,255,255,0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.theme-chatgpt .sidebar-header h1 {
  background: none;
  -webkit-text-fill-color: #ececec;
  color: #ececec;
}

body.theme-chatgpt .apple-aurora { display: none !important; }

body.theme-chatgpt .artist-item { color: #8e8ea0; }
body.theme-chatgpt .artist-item:hover,
body.theme-chatgpt .artist-item.active { color: #ececec; background: rgba(255,255,255,0.08); }

body.theme-chatgpt .search-box input {
  background: #3a3a3a;
  border-color: rgba(255,255,255,0.1);
  color: #ececec;
}

body.theme-chatgpt .album-title-text,
body.theme-chatgpt .stat-number,
body.theme-chatgpt .track-title,
body.theme-chatgpt .welcome-title,
body.theme-chatgpt .artist-main-title {
  color: #ececec;
  -webkit-text-fill-color: #ececec;
  background: none;
}

body.theme-chatgpt .sidebar-header p,
body.theme-chatgpt .welcome-desc,
body.theme-chatgpt .stat-label,
body.theme-chatgpt .track-status,
body.theme-chatgpt .breadcrumbs,
body.theme-chatgpt .album-total-count,
body.theme-chatgpt .agency-title { color: #8e8ea0; }

body.theme-chatgpt .mini-player {
  background: #3a3a3a;
  border-color: rgba(255,255,255,0.08);
}
body.theme-chatgpt .player-btn { color: #8e8ea0; }
body.theme-chatgpt .player-btn:hover { color: #ececec; }

body.theme-chatgpt .spotify-btn,
body.theme-chatgpt .add-submit-btn {
  background: #10a37f;
  color: #fff;
}

body.theme-chatgpt .add-album-nav-btn {
  color: #8e8ea0;
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
}

body.theme-chatgpt .status-badge.owned { background: rgba(16,163,127,0.15); color: #10a37f; }
body.theme-chatgpt .status-badge.wishlist { background: rgba(142,142,160,0.15); color: #8e8ea0; }

body.theme-chatgpt .album-modal,
body.theme-chatgpt .add-modal,
body.theme-chatgpt .settings-panel { background: #2f2f2f; border-color: rgba(255,255,255,0.1); }

body.theme-chatgpt .add-form-group input,
body.theme-chatgpt .add-form-group select,
body.theme-chatgpt textarea {
  background: #3a3a3a;
  border-color: rgba(255,255,255,0.1);
  color: #ececec;
}

body.theme-chatgpt .modal-title,
body.theme-chatgpt .settings-title,
body.theme-chatgpt .add-modal-title { color: #ececec; }
body.theme-chatgpt .modal-artist,
body.theme-chatgpt .modal-stat-label,
body.theme-chatgpt .settings-section-title { color: #8e8ea0; }
body.theme-chatgpt .modal-stat-value,
body.theme-chatgpt .modal-track-name { color: #ececec; }
body.theme-chatgpt .modal-track:hover { background: rgba(255,255,255,0.05); }

body.theme-chatgpt .profile-page-overlay { background: #212121; }
body.theme-chatgpt .profile-page-topbar {
  background: rgba(33,33,33,0.95);
  border-bottom-color: rgba(255,255,255,0.08);
}

body.theme-chatgpt .binder-page-sheet { background: #2a2a2a; }
body.theme-chatgpt .binder-spine { background: #1a1a1a; }
body.theme-chatgpt .binder-ring { border-color: rgba(255,255,255,0.15); }
body.theme-chatgpt .binder-slot.empty { border-color: rgba(255,255,255,0.12); }
body.theme-chatgpt .binder-filter-btn { color: #8e8ea0; background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
body.theme-chatgpt .binder-filter-btn.active { color: #ececec; background: rgba(255,255,255,0.1); }
body.theme-chatgpt .binder-page-label { color: #8e8ea0; }
body.theme-chatgpt .binder-nav-btn { color: #ececec; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }
body.theme-chatgpt .binder-add-page-btn { color: #8e8ea0; border-color: rgba(255,255,255,0.1); }

body.theme-chatgpt .lightstick-name { color: #ececec; }
body.theme-chatgpt .lightstick-artist { color: #8e8ea0; }
body.theme-chatgpt .breadcrumbs { color: #8e8ea0; }

/* ==========================================
   THÈME KPOPPING — K-POP COLORÉ
   ========================================== */

body.theme-kpopping {
  background: #f7f7f8;
  color: #0d0d0d;
}

body.theme-kpopping .glass-panel {
  background: #ffffff;
  border-color: rgba(0,0,0,0.07);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

body.theme-kpopping .apple-aurora { display: none !important; }

/* Titre avec dégradé bleu→rose comme Kpopping */
body.theme-kpopping .sidebar-header h1,
body.theme-kpopping .welcome-title,
body.theme-kpopping .artist-main-title {
  background: linear-gradient(135deg, #4f8ef7 0%, #a855f7 50%, #e040a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.theme-kpopping .sidebar-header p,
body.theme-kpopping .welcome-desc,
body.theme-kpopping .stat-label,
body.theme-kpopping .track-status,
body.theme-kpopping .breadcrumbs,
body.theme-kpopping .album-total-count,
body.theme-kpopping .agency-title { color: #6b7280; }

body.theme-kpopping .album-title-text,
body.theme-kpopping .stat-number,
body.theme-kpopping .track-title { color: #0d0d0d; }

body.theme-kpopping .artist-item { color: #6b7280; }
body.theme-kpopping .artist-item:hover { color: #0d0d0d; background: rgba(0,0,0,0.04); }
body.theme-kpopping .artist-item.active {
  color: #e040a0;
  background: rgba(224,64,160,0.07);
}

body.theme-kpopping .search-box input {
  background: #f0f0f2;
  border-color: rgba(0,0,0,0.08);
  color: #0d0d0d;
}

body.theme-kpopping .mini-player {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.07);
}
body.theme-kpopping .player-btn { color: #6b7280; }
body.theme-kpopping .player-btn:hover { color: #0d0d0d; }

body.theme-kpopping .spotify-btn,
body.theme-kpopping .add-submit-btn {
  background: linear-gradient(135deg, #4f8ef7, #e040a0);
  color: #fff;
  border: none;
}

body.theme-kpopping .status-badge.owned {
  background: rgba(79,142,247,0.1);
  color: #4f8ef7;
}
body.theme-kpopping .status-badge.wishlist {
  background: rgba(224,64,160,0.1);
  color: #e040a0;
}

body.theme-kpopping .add-album-nav-btn {
  color: #6b7280;
  border-color: rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.03);
}

body.theme-kpopping .album-modal,
body.theme-kpopping .add-modal,
body.theme-kpopping .settings-panel {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
}

body.theme-kpopping .add-form-group input,
body.theme-kpopping .add-form-group select,
body.theme-kpopping .concert-form textarea {
  background: #f7f7f8;
  border-color: rgba(0,0,0,0.1);
  color: #0d0d0d;
}

body.theme-kpopping .modal-title,
body.theme-kpopping .settings-title,
body.theme-kpopping .add-modal-title { color: #0d0d0d; }
body.theme-kpopping .modal-artist,
body.theme-kpopping .modal-stat-label,
body.theme-kpopping .settings-section-title,
body.theme-kpopping .add-form-group label { color: #6b7280; }
body.theme-kpopping .modal-stat-value,
body.theme-kpopping .modal-track-name { color: #0d0d0d; }
body.theme-kpopping .modal-track:hover { background: rgba(0,0,0,0.03); }

body.theme-kpopping .profile-page-overlay { background: #f7f7f8; }
body.theme-kpopping .profile-page-topbar {
  background: rgba(247,247,248,0.95);
  border-bottom-color: rgba(0,0,0,0.08);
}

body.theme-kpopping .binder-page-sheet { background: #ffffff; }
body.theme-kpopping .binder-spine { background: rgba(0,0,0,0.04); }
body.theme-kpopping .binder-ring { border-color: rgba(0,0,0,0.2); }
body.theme-kpopping .binder-slot.empty { border-color: rgba(0,0,0,0.12); background: rgba(0,0,0,0.01); }
body.theme-kpopping .binder-slot-add { color: rgba(0,0,0,0.25); }
body.theme-kpopping .binder-filter-btn { color: #6b7280; background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
body.theme-kpopping .binder-filter-btn.active { color: #e040a0; background: rgba(224,64,160,0.08); border-color: rgba(224,64,160,0.2); }
body.theme-kpopping .binder-page-label { color: #6b7280; }
body.theme-kpopping .binder-nav-btn { color: #0d0d0d; background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
body.theme-kpopping .binder-add-page-btn { color: #6b7280; border-color: rgba(0,0,0,0.12); }

body.theme-kpopping .lightstick-name { color: #0d0d0d; }
body.theme-kpopping .lightstick-artist { color: #6b7280; }
body.theme-kpopping .toggle-label { color: #0d0d0d; }

/* Lang buttons Kpopping */
body.theme-kpopping .lang-btn { color: #6b7280; background: #f7f7f8; border-color: rgba(0,0,0,0.08); }
body.theme-kpopping .lang-btn.active { color: #e040a0; border-color: rgba(224,64,160,0.3); background: rgba(224,64,160,0.06); }

/* Concert cards */
body.theme-kpopping .concert-card { background: #fff; }
body.theme-kpopping .concert-card-artist { color: #0d0d0d; }
body.theme-kpopping .concert-card-meta,
body.theme-kpopping .concert-card-tour { color: #6b7280; }

/* ==========================================
   FIX LISIBILITÉ KPOPPING — textes blancs restants
   ========================================== */

body.theme-kpopping .profile-name-label,
body.theme-kpopping .agency-title,
body.theme-kpopping .sidebar-header p,
body.theme-kpopping .lightstick-name,
body.theme-kpopping .lightstick-artist,
body.theme-kpopping .binder-card-artist,
body.theme-kpopping .album-total-count,
body.theme-kpopping .breadcrumbs,
body.theme-kpopping .stat-label,
body.theme-kpopping .track-status,
body.theme-kpopping .welcome-desc { color: #6b7280; }

body.theme-kpopping .profile-name-label { color: #0d0d0d; }

body.theme-kpopping .topbar-settings-btn,
body.theme-kpopping .profile-btn {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
  color: #0d0d0d;
}

body.theme-kpopping .modal-close { color: #6b7280; }

/* Sidebar tabs kpopping */
body.theme-kpopping .sidebar-tabs { background: rgba(0,0,0,0.04); }
body.theme-kpopping .sidebar-tab-btn { color: #6b7280; }
body.theme-kpopping .sidebar-tab-btn.active { background: rgba(224,64,160,0.1); color: #e040a0; }

/* Mini player */
body.theme-kpopping .track-title { color: #0d0d0d; }

/* Settings */
body.theme-kpopping .settings-section { border-bottom-color: rgba(0,0,0,0.06); }
body.theme-kpopping .theme-card { border-color: rgba(0,0,0,0.08); }
body.theme-kpopping .theme-card-name { color: #0d0d0d; }
body.theme-kpopping .theme-card-label { color: #6b7280; }
body.theme-kpopping .theme-card-info { background: #f7f7f8; }
body.theme-kpopping .accent-custom-label { color: #6b7280; }
body.theme-kpopping .settings-hint { color: #6b7280; }

/* Profile page */
body.theme-kpopping .profile-page-title { color: #0d0d0d; }
body.theme-kpopping .profile-section-label { color: #6b7280; }
body.theme-kpopping .profile-avatar-upload-label { color: #6b7280; }
body.theme-kpopping .bias-name { color: #0d0d0d; }
body.theme-kpopping .bias-group { color: #6b7280; }
body.theme-kpopping .bias-card { background: #f7f7f8; border-color: rgba(0,0,0,0.06); }
body.theme-kpopping .bias-avatar { background: rgba(0,0,0,0.06); color: #0d0d0d; }
body.theme-kpopping .bias-add-row input { background: #f7f7f8; border-color: rgba(0,0,0,0.1); color: #0d0d0d; }
body.theme-kpopping .concert-add-url-btn { color: #0d0d0d; background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }

/* Public profile */
body.theme-kpopping .public-profile-name { color: #0d0d0d; }
body.theme-kpopping .public-stat-num { color: #0d0d0d; }
body.theme-kpopping .public-stat-label { color: #6b7280; }
body.theme-kpopping .public-fav-label { color: #6b7280; }
body.theme-kpopping .public-fav-value { color: #0d0d0d; }
body.theme-kpopping .public-fav-item { background: #f7f7f8; border-color: rgba(0,0,0,0.06); }
body.theme-kpopping .public-bias-name { color: #0d0d0d; }
body.theme-kpopping .public-bias-group { color: #6b7280; }
body.theme-kpopping .public-bias-card { background: #f7f7f8; border-color: rgba(0,0,0,0.06); }
body.theme-kpopping .public-bias-avatar { background: rgba(0,0,0,0.06); color: #0d0d0d; }
body.theme-kpopping .public-social-link { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); color: #0d0d0d; }

/* Favoris section */
body.theme-kpopping .favorites-section-label { color: #6b7280; border-bottom-color: rgba(0,0,0,0.06); }

/* Concert */
body.theme-kpopping .concert-review-text { color: #0d0d0d; }
body.theme-kpopping .concert-detail-section { border-top-color: rgba(0,0,0,0.06); }
body.theme-kpopping .modal-track-num { color: #6b7280; }
body.theme-kpopping .add-submit-btn { color: #fff; }
body.theme-kpopping .signout-btn { color: #ef4444; background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.15); }
body.theme-kpopping .profile-public-btn { color: #6b7280; background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
body.theme-kpopping .reset-collection-btn { color: #ef4444; background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.15); }

/* ==========================================
   RESPONSIVE MOBILE (< 768px)
   ========================================== */

@media (max-width: 768px) {

  html, body { overflow: auto; height: auto; min-height: 100vh; }

  .app-fullscreen {
    flex-direction: row;
    padding: 8px;
    gap: 8px;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }

  /* ---- SIDEBAR EN MODE ICÔNES ---- */
  .sidebar {
    width: 64px;
    padding: 16px 8px;
    align-items: center;
    overflow: visible;
  }

  .sidebar-header {
    margin-bottom: 16px;
    text-align: center;
  }
  .sidebar-header h1 { font-size: 1.1rem; }
  .sidebar-header p { display: none; }

  .search-box { display: none; } /* recherche accessible autrement sur mobile */

  .sidebar-tabs {
    flex-direction: column;
    gap: 4px;
    padding: 4px;
    width: 100%;
  }
  .sidebar-tab-btn {
    padding: 10px 4px;
    font-size: 0; /* cache le texte */
    position: relative;
  }
  .sidebar-tab-btn::before {
    font-size: 1.1rem;
    display: block;
  }
  .sidebar-tab-btn:nth-child(1)::before { content: '💿'; }
  .sidebar-tab-btn:nth-child(2)::before { content: '🎴'; }
  .sidebar-tab-btn:nth-child(3)::before { content: '🎤'; }
  .sidebar-tab-btn:nth-child(4)::before { content: '★'; font-size: 1.3rem; }

  .agency-list { display: none; } /* liste d'artistes cachée, navigation via cards principales */

  .add-album-btn-wrap { display: none; }

  .mini-player {
    padding: 8px 4px;
    gap: 6px;
  }
  .player-body { flex-direction: column; gap: 4px; }
  .player-track-info { display: none; }
  .player-progress { display: none; }
  .player-controls { gap: 8px; }
  .player-btn { font-size: 0.9rem; }
  .player-btn.play { font-size: 1rem; }
  .spotify-btn { font-size: 0; padding: 8px; }
  .spotify-btn::before { content: '🎵'; font-size: 1rem; }

  /* ---- MAIN CONTENT ---- */
  .main-content {
    padding: 20px 14px;
    flex: 1;
    min-width: 0;
  }

  .welcome-title { font-size: 2rem; }
  .artist-main-title { font-size: 2rem; }
  .welcome-desc { font-size: 0.85rem; }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .stat-number { font-size: 2rem; }

  /* ---- GRILLE ALBUMS : 2 colonnes ---- */
  .albums-display-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .album-title-text { font-size: 0.8rem; }
  .agency-tag { font-size: 0.6rem; }

  /* ---- LIGHTSTICKS : 2 colonnes ---- */
  .lightsticks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* ---- TOPBAR ---- */
  .topbar {
    top: 10px;
    right: 10px;
    gap: 8px;
  }
  .profile-name-label { display: none; }
  .profile-btn { padding: 6px; }
  .topbar-settings-btn { width: 32px; height: 32px; }

  /* ---- BINDER : garder 3 colonnes mais plus compact ---- */
  .binder-book { max-width: 100%; }
  .binder-page-sheet { padding: 16px 12px; }
  .binder-grid { gap: 8px; }
  .binder-spine { width: 20px; padding: 16px 0; }
  .binder-ring { width: 12px; height: 12px; }
  .binder-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .binder-filters { justify-content: center; }
  .binder-page-nav { justify-content: center; }

  /* ---- CONCERTS ---- */
  .concerts-grid { grid-template-columns: 1fr; gap: 16px; }

  /* ---- MODALS : plein écran sur mobile ---- */
  .album-modal {
    max-width: 100%;
    max-height: 92vh;
    width: 100%;
  }
  .modal-inner { flex-direction: column; }
  .modal-left {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 24px 20px;
  }
  .modal-cover-wrapper { max-width: 200px; margin: 0 auto; }
  .modal-right { padding: 24px 20px; }
  .modal-title { font-size: 1.5rem; }
  .modal-stats { flex-wrap: wrap; gap: 16px; }

  .add-modal { max-width: 100%; padding: 24px 20px; }
  .add-form-row { grid-template-columns: 1fr; }

  .settings-panel { max-width: 100%; padding: 24px 20px; }
  .theme-cards { grid-template-columns: 1fr; }

  .concert-form-modal { max-width: 100%; }
  .concert-detail-modal { max-width: 100%; }
  .concert-gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* ---- PROFIL PLEIN ÉCRAN ---- */
  .profile-page-scroll { padding: 20px 16px 60px; }
  .profile-fields-grid { grid-template-columns: 1fr; }
  .profile-page-title { font-size: 1.1rem; }
  .profile-page-avatar-row { flex-direction: column; text-align: center; }
  .biases-grid { grid-template-columns: repeat(2, 1fr); }

  .public-profile-modal { max-width: 100%; }
  .public-profile-scroll { padding: 24px 20px; }
  .public-stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .public-biases-grid { grid-template-columns: repeat(2, 1fr); }

  /* ---- FAVORIS ---- */
  .favorites-content { gap: 28px; }
}

/* ==========================================
   RESPONSIVE PETIT MOBILE (< 400px)
   ========================================== */

@media (max-width: 400px) {
  .albums-display-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .welcome-title, .artist-main-title { font-size: 1.6rem; }
  .stats-grid { gap: 10px; }
  .stat-number { font-size: 1.5rem; }
  .sidebar { width: 56px; }
}

/* ==========================================
   TABLETTE (768px - 1024px)
   ========================================== */

@media (min-width: 769px) and (max-width: 1024px) {
  .sidebar { width: 260px; }
  .albums-display-grid { grid-template-columns: repeat(3, 1fr); }
  .app-fullscreen { padding: 16px; gap: 16px; }
}

/* ==========================================
   RECHERCHE MOBILE (bouton flottant + overlay)
   ========================================== */

.mobile-search-btn {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 600;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary, #fff);
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.mobile-search-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 700;
  padding: 16px;
  background: rgba(7,9,14,0.95);
  backdrop-filter: blur(20px);
  align-items: center;
  gap: 10px;
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

.mobile-search-overlay.visible {
  transform: translateY(0);
}

.mobile-search-overlay input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  color: var(--text-primary, #fff);
  font-family: inherit;
  font-size: 0.9rem;
}

.mobile-search-overlay button {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  color: var(--text-primary, #fff);
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .mobile-search-btn { display: flex; }
  .mobile-search-overlay { display: flex; }
}

/* ==========================================
   DROPDOWN MENU PROFIL
   ========================================== */

.profile-dropdown-wrap {
  position: relative;
}

.profile-btn {
  gap: 8px;
}

.profile-dropdown-chevron {
  color: var(--text-secondary, #808799);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 100%;
  width: max-content;
  background: var(--surface, rgba(13,17,23,0.95));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16,1,0.3,1);
  z-index: 1000;
}

.profile-dropdown-menu.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-primary, #fff);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  white-space: nowrap;
}

.dropdown-item:hover { background: var(--surface-hover, rgba(255,255,255,0.08)); }

.dropdown-item-icon { font-size: 1rem; width: 20px; text-align: center; }

.dropdown-item-danger { color: #f87171; }
.dropdown-item-danger:hover { background: rgba(248,113,113,0.1); }

.dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 6px 4px;
}

.topbar-logged-out {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 500;
  display: none;
  align-items: center;
  gap: 10px;
}

.topbar-logged-out.visible { display: flex; }

.google-signin-topbar-btn {
  padding: 8px 18px;
  background: #fff;
  border: none;
  border-radius: 40px;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.google-signin-topbar-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,0.3); }

/* ==========================================
   PAGE PROFIL — STYLE KPOPPING
   ========================================== */

.kprofile-page {
  min-height: 100vh;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

.kprofile-close {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
}

.kprofile-banner {
  height: 240px;
  width: 100%;
  background: linear-gradient(120deg, #4f8ef7 0%, #a855f7 50%, #e040a0 100%);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
}

/* Bannière adaptative par thème */
body.theme-chatgpt .kprofile-banner { background: linear-gradient(120deg, #10a37f 0%, #2f2f2f 100%); }
body.theme-kpopping .kprofile-banner { background: linear-gradient(120deg, #4f8ef7 0%, #a855f7 50%, #e040a0 100%); }
body.theme-lemontang .kprofile-banner { background: linear-gradient(120deg, #4fc3f7 0%, #a3e8c4 50%, #fff176 100%); }
body.theme-grid .kprofile-banner { background: linear-gradient(120deg, #ff5500 0%, #ff8800 100%); }
body.theme-editorial .kprofile-banner { background: linear-gradient(120deg, #0a0a0a 0%, #444 100%); }

.kprofile-body {
  max-width: 1140px;
  margin: 0 auto;
  padding: 160px 32px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.kprofile-left, .kprofile-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.kprofile-identity-card {
  background: var(--surface, rgba(13,17,23,0.9));
  backdrop-filter: var(--blur, blur(20px));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: var(--radius-panel, 24px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.kprofile-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
}

.kprofile-avatar-wrap .profile-avatar-large {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  border: 3px solid var(--bg, #07090e);
}

.kprofile-avatar-edit {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  background: var(--accent, #fff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  color: #000;
  border: 2px solid var(--bg, #07090e);
}

.kprofile-name-input {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 4px 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary, #fff);
  transition: border-color 0.2s;
  width: 100%;
}
.kprofile-name-input:focus { outline: none; border-bottom-color: var(--accent, #fff); }

.kprofile-email {
  font-size: 0.75rem;
  color: var(--text-secondary, #808799);
  margin-top: -8px;
}

.kprofile-fav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.06));
}

.kprofile-fav-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kprofile-fav-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary, #808799);
  font-weight: 700;
}

.kprofile-fav-item input {
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 8px;
  color: var(--text-primary, #fff);
  font-family: inherit;
  font-size: 0.8rem;
}

.kprofile-card {
  background: var(--surface, rgba(13,17,23,0.9));
  backdrop-filter: var(--blur, blur(20px));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: var(--radius-panel, 24px);
  padding: 22px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.kprofile-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.kprofile-card-icon {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kprofile-card-title {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-primary, #fff);
  letter-spacing: 0;
}

.kprofile-card-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary, #808799);
  padding: 2px 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
}

.kprofile-socials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kprofile-social-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 10px;
}

.kprofile-social-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-primary, #fff);
}

.kprofile-icon-yt { background: rgba(255,0,0,0.08); }
.kprofile-icon-tt { background: rgba(0,0,0,0.08); }
.kprofile-icon-pin { background: rgba(230,0,35,0.08); }
.kprofile-icon-kp { background: rgba(255,92,138,0.1); }

.kprofile-social-item input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary, #fff);
  font-family: inherit;
  font-size: 0.8rem;
  min-width: 0;
}
.kprofile-social-item input:focus { outline: none; }

.kprofile-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.kprofile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
}

.kprofile-stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary, #fff);
}

.kprofile-stat-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary, #808799);
  font-weight: 700;
}

.kprofile-save-bar {
  position: sticky;
  bottom: 0;
  padding: 16px 24px;
  background: linear-gradient(to top, var(--bg, #07090e) 60%, transparent);
  display: flex;
  justify-content: center;
}

.kprofile-save-bar .add-submit-btn {
  max-width: 320px;
}

/* Responsive kprofile */
@media (max-width: 900px) {
  .kprofile-body { grid-template-columns: 1fr; padding: 120px 16px 100px; }
  .kprofile-banner { height: 160px; }
  .kprofile-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .kprofile-socials-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   DROPDOWN — THÈMES CLAIRS
   ========================================== */
body.theme-grid .profile-dropdown-menu,
body.theme-editorial .profile-dropdown-menu,
body.theme-kpopping .profile-dropdown-menu {
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
body.theme-grid .dropdown-item,
body.theme-editorial .dropdown-item,
body.theme-kpopping .dropdown-item { color: var(--text-primary); }
body.theme-grid .dropdown-divider,
body.theme-editorial .dropdown-divider,
body.theme-kpopping .dropdown-divider { background: rgba(0,0,0,0.08); }

/* ==========================================
   KPROFILE — THÈMES CLAIRS
   ========================================== */
body.theme-grid .kprofile-identity-card,
body.theme-editorial .kprofile-identity-card,
body.theme-kpopping .kprofile-identity-card,
body.theme-grid .kprofile-card,
body.theme-editorial .kprofile-card,
body.theme-kpopping .kprofile-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

body.theme-grid .kprofile-name-input,
body.theme-editorial .kprofile-name-input,
body.theme-kpopping .kprofile-name-input { color: #0a0a0a; }

body.theme-grid .kprofile-email,
body.theme-editorial .kprofile-email,
body.theme-kpopping .kprofile-email { color: #6b7280; }

body.theme-grid .kprofile-stat-num,
body.theme-editorial .kprofile-stat-num,
body.theme-kpopping .kprofile-stat-num { color: #0a0a0a; }

body.theme-grid .kprofile-stat,
body.theme-editorial .kprofile-stat,
body.theme-kpopping .kprofile-stat { background: rgba(0,0,0,0.03); }

body.theme-grid .kprofile-social-item,
body.theme-editorial .kprofile-social-item,
body.theme-kpopping .kprofile-social-item {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.07);
}
body.theme-grid .kprofile-social-item input,
body.theme-editorial .kprofile-social-item input,
body.theme-kpopping .kprofile-social-item input { color: #0a0a0a; }

body.theme-grid .kprofile-fav-item input,
body.theme-editorial .kprofile-fav-item input,
body.theme-kpopping .kprofile-fav-item input {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
  color: #0a0a0a;
}

body.theme-kpopping .kprofile-banner { background: linear-gradient(120deg, #4f8ef7 0%, #a855f7 50%, #e040a0 100%); }
body.theme-grid .kprofile-banner { background: linear-gradient(120deg, #ff5500 0%, #ff8800 60%, #ffbb00 100%); }
body.theme-editorial .kprofile-banner { background: linear-gradient(120deg, #0a0a0a 0%, #555 100%); }
body.theme-chatgpt .kprofile-banner { background: linear-gradient(120deg, #10a37f 0%, #1a7a5e 100%); }
body.theme-lemontang .kprofile-banner { background: linear-gradient(120deg, #4fc3f7 0%, #a3e8c4 50%, #fff176 100%); }

body.theme-grid .profile-page-overlay,
body.theme-editorial .profile-page-overlay { background: var(--bg); }
body.theme-kpopping .profile-page-overlay { background: #f7f7f8; }

/* ==========================================
   LIGHTSTICK — bouton suppression
   ========================================== */

.lightstick-img-wrapper { position: relative; }

.lightstick-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 0.6rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightstick-card:hover .lightstick-delete-btn { opacity: 1; }
.lightstick-delete-btn:hover { background: rgba(248,113,113,0.85); }

/* ==========================================
   LIGHTSTICK — lisibilité thèmes clairs
   ========================================== */

body.theme-grid .lightstick-name,
body.theme-editorial .lightstick-name,
body.theme-kpopping .lightstick-name { color: #0a0a0a; }

body.theme-grid .lightstick-artist,
body.theme-editorial .lightstick-artist,
body.theme-kpopping .lightstick-artist { color: #6b7280; }

body.theme-lemontang .lightstick-name { color: var(--text-primary); }
body.theme-lemontang .lightstick-artist { color: var(--text-secondary); }

/* ==========================================
   LANDING PAGE — accueil sans compte
   ========================================== */

.landing-view {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.landing-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
}

.landing-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary, #808799);
}

.landing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.landing-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: #fff;
  border: none;
  border-radius: var(--radius-btn, 100px);
  color: #1a1a1a;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.landing-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.landing-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-btn, 100px);
  color: var(--text-primary, #fff);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.landing-btn-secondary:hover { background: rgba(255,255,255,0.14); }

.landing-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.landing-feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-card, 16px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.landing-feature-icon { font-size: 1.6rem; }

.landing-feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0;
}

.landing-feature-card p {
  font-size: 0.78rem;
  color: var(--text-secondary, #808799);
  line-height: 1.5;
  margin: 0;
}

/* Thèmes clairs */
body.theme-grid .landing-feature-card,
body.theme-editorial .landing-feature-card,
body.theme-kpopping .landing-feature-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
body.theme-grid .landing-btn-secondary,
body.theme-editorial .landing-btn-secondary,
body.theme-kpopping .landing-btn-secondary {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
  color: #0a0a0a;
}
body.theme-kpopping .landing-btn-primary { box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

@media (max-width: 768px) {
  .landing-features { grid-template-columns: 1fr; }
}

/* ==========================================
   DASHBOARD ENRICHI
   ========================================== */

.dash-hero-empty {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
}

.dash-empty-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  align-items: center;
}

.dash-demo-btn {
  padding: 13px 22px;
  background: transparent;
  border: 1px solid var(--border, rgba(255,255,255,0.15));
  border-radius: var(--radius-btn, 100px);
  color: var(--text-primary, #fff);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.dash-demo-btn:hover { background: rgba(255,255,255,0.06); }

.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.dash-quick-card {
  background: var(--surface, rgba(255,255,255,0.03));
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: var(--radius-card, 18px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), background 0.2s, box-shadow 0.2s;
}
.dash-quick-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.055);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.dash-quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-quick-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0;
}
.dash-quick-card p {
  font-size: 0.75rem;
  color: var(--text-secondary, #808799);
  line-height: 1.5;
  margin: 0;
}

.stat-card-clickable { cursor: pointer; transition: transform 0.2s, background 0.2s; }
.stat-card-clickable:hover { transform: translateY(-2px); }

.dash-section { margin-top: 40px; }

.dash-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary, #808799);
  margin-bottom: 14px;
}

.dash-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 780px;
}

.dash-mosaic-item {
  aspect-ratio: 1;
  border-radius: var(--radius-card, 12px);
  overflow: hidden;
  cursor: pointer;
  outline: 1px solid var(--border, rgba(255,255,255,0.08));
  outline-offset: -1px;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s;
}
.dash-mosaic-item:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}
.dash-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Thèmes clairs */
body.theme-grid .dash-quick-card,
body.theme-editorial .dash-quick-card,
body.theme-kpopping .dash-quick-card {
  background: #fff;
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
body.theme-grid .dash-quick-card:hover,
body.theme-editorial .dash-quick-card:hover,
body.theme-kpopping .dash-quick-card:hover {
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
body.theme-grid .dash-demo-btn,
body.theme-editorial .dash-demo-btn,
body.theme-kpopping .dash-demo-btn { color: #0a0a0a; border-color: rgba(0,0,0,0.15); }
body.theme-grid .dash-demo-btn:hover,
body.theme-editorial .dash-demo-btn:hover,
body.theme-kpopping .dash-demo-btn:hover { background: rgba(0,0,0,0.04); }

/* ==========================================
   MICRO-INTERACTIONS GLOBALES
   ========================================== */

.album-card-display {
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s;
}
.album-card-display:hover {
  transform: translateY(-4px);
}

.artist-item {
  transition: background 0.15s, color 0.15s, padding-left 0.2s;
}

.add-submit-btn, .concert-add-url-btn, .google-signin-btn {
  transition: transform 0.18s cubic-bezier(0.16,1,0.3,1), box-shadow 0.18s, opacity 0.18s;
}
.add-submit-btn:hover, .google-signin-btn:hover { transform: translateY(-1px); }
.add-submit-btn:active { transform: translateY(0) scale(0.98); }

input:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent, rgba(255,255,255,0.4));
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .dash-quick-grid { grid-template-columns: 1fr; }
  .dash-mosaic { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================
   DASHBOARD ENRICHI
   ========================================== */

.dash-hero-empty {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  margin-bottom: 40px;
}

.dash-empty-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.dash-demo-btn {
  padding: 13px 24px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-btn, 100px);
  color: var(--text-primary, #fff);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.dash-demo-btn:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.35); }

.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dash-quick-card {
  background: var(--surface, rgba(255,255,255,0.04));
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  border-radius: var(--radius-card, 20px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), background 0.2s, border-color 0.2s;
}
.dash-quick-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}

.dash-quick-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
}

.dash-quick-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0;
}
.dash-quick-card p {
  font-size: 0.76rem;
  color: var(--text-secondary, #808799);
  line-height: 1.5;
  margin: 0;
}

.stat-card-clickable { cursor: pointer; transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), background 0.2s; }
.stat-card-clickable:hover { transform: translateY(-2px); background: rgba(255,255,255,0.06); }

.dash-section { margin-top: 40px; }

.dash-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--text-secondary, #808799);
  margin-bottom: 14px;
}

.dash-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 760px;
}

.dash-mosaic-item {
  aspect-ratio: 1;
  border-radius: var(--radius-card, 14px);
  overflow: hidden;
  cursor: pointer;
  outline: 1px solid rgba(255,255,255,0.08);
  outline-offset: -1px;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s;
}
.dash-mosaic-item:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 32px rgba(0,0,0,0.4);
}
.dash-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Thèmes clairs */
body.theme-grid .dash-quick-card,
body.theme-editorial .dash-quick-card,
body.theme-kpopping .dash-quick-card {
  background: #fff;
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
body.theme-grid .dash-quick-card:hover,
body.theme-editorial .dash-quick-card:hover,
body.theme-kpopping .dash-quick-card:hover {
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.1);
}
body.theme-grid .dash-demo-btn,
body.theme-editorial .dash-demo-btn,
body.theme-kpopping .dash-demo-btn {
  border-color: rgba(0,0,0,0.15);
  color: #0a0a0a;
}
body.theme-grid .dash-demo-btn:hover,
body.theme-editorial .dash-demo-btn:hover,
body.theme-kpopping .dash-demo-btn:hover { background: rgba(0,0,0,0.04); }
body.theme-grid .stat-card-clickable:hover,
body.theme-editorial .stat-card-clickable:hover,
body.theme-kpopping .stat-card-clickable:hover { background: rgba(0,0,0,0.03); }
body.theme-grid .dash-mosaic-item,
body.theme-editorial .dash-mosaic-item,
body.theme-kpopping .dash-mosaic-item { outline-color: rgba(0,0,0,0.08); }

/* ==========================================
   MICRO-INTERACTIONS GLOBALES
   ========================================== */

.album-card {
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.album-card:hover { transform: translateY(-4px); }

.add-submit-btn, .google-signin-btn {
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.add-submit-btn:active, .google-signin-btn:active { transform: scale(0.98); }

.concert-card {
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s;
}
.concert-card:hover { transform: translateY(-3px); }

.lightstick-card {
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.lightstick-card:hover { transform: translateY(-4px); }

/* Focus clavier visible et propre */
button:focus-visible, input:focus-visible, [onclick]:focus-visible {
  outline: 2px solid var(--accent, #7aa2ff);
  outline-offset: 2px;
}

/* Responsive dashboard */
@media (max-width: 768px) {
  .dash-quick-grid { grid-template-columns: 1fr; }
  .dash-mosaic { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================
   PAGE DE CONNEXION — style inspiration
   ========================================== */

#profile-logged-out.profile-page-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  position: relative;
}

.signin-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, rgba(0,0,0,0.06));
  border-radius: 28px;
  padding: 44px 40px;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

.signin-logo {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text-primary, #0a0a0a);
  margin-bottom: 12px;
}

.signin-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary, #0a0a0a);
  margin: 0;
}

.signin-sub {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary, #6b7280);
  margin: 0 0 20px;
  max-width: 320px;
}

.signin-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 15px;
  background: var(--surface, #fff);
  border: 1.5px solid var(--border, rgba(0,0,0,0.12));
  border-radius: 16px;
  color: var(--text-primary, #1a1a1a);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.signin-google-btn:hover {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.22);
  transform: translateY(-1px);
}
.signin-google-btn:active { transform: scale(0.99); }

.signin-footer {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-secondary, #9ca3af);
  margin: 18px 0 0;
  max-width: 300px;
}

/* Fond adaptatif selon le thème */
body.theme-dark #profile-logged-out.profile-page-center,
body.theme-lemontang #profile-logged-out.profile-page-center,
body.theme-chatgpt #profile-logged-out.profile-page-center {
  background: var(--bg);
}
body.theme-dark .signin-card,
body.theme-chatgpt .signin-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.09);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
body.theme-dark .signin-logo,
body.theme-dark .signin-title,
body.theme-chatgpt .signin-logo,
body.theme-chatgpt .signin-title { color: #fff; }
body.theme-dark .signin-sub,
body.theme-chatgpt .signin-sub { color: #808799; }
body.theme-dark .signin-google-btn,
body.theme-chatgpt .signin-google-btn {
  background: #fff;
  color: #1a1a1a;
  border-color: transparent;
}

body.theme-kpopping .signin-title {
  background: linear-gradient(135deg, #4f8ef7 0%, #a855f7 50%, #e040a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 480px) {
  .signin-card { padding: 36px 28px; }
}

/* ==========================================
   FILET DE SÉCURITÉ — THÈMES CLAIRS
   Attrape tous les textes blancs oubliés
   ========================================== */

body.is-light .album-title-text,
body.is-light .modal-title,
body.is-light .modal-artist,
body.is-light .modal-track-name,
body.is-light .concert-title,
body.is-light .concert-venue,
body.is-light .concert-tour,
body.is-light .binder-card-title,
body.is-light .fav-section-title,
body.is-light .welcome-title,
body.is-light .artist-main-title,
body.is-light .stat-number,
body.is-light .dash-quick-card h3,
body.is-light .signin-title,
body.is-light .signin-logo,
body.is-light .kprofile-name-input,
body.is-light .kprofile-stat-num,
body.is-light .kprofile-card-title,
body.is-light .lightstick-name,
body.is-light .add-modal-title,
body.is-light .settings-title,
body.is-light .settings-section-title {
  color: var(--text-primary);
}

body.is-light .welcome-desc,
body.is-light .album-total-count,
body.is-light .breadcrumbs,
body.is-light .modal-label,
body.is-light .concert-date,
body.is-light .dash-quick-card p,
body.is-light .dash-section-label,
body.is-light .signin-sub,
body.is-light .stat-label,
body.is-light .kprofile-email,
body.is-light .lightstick-artist,
body.is-light .settings-hint,
body.is-light .profile-modal-sub {
  color: var(--text-secondary);
}

/* Les titres "raw display" (welcome-title, artist-main-title) gardent leur
   dégradé sur kpopping mais deviennent lisibles sur grid/editorial */
body.theme-grid .welcome-title,
body.theme-editorial .welcome-title,
body.theme-grid .artist-main-title,
body.theme-editorial .artist-main-title {
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
}

/* ==========================================
   MINI-PLAYER — icônes SVG
   ========================================== */

.player-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.player-btn svg { display: block; }

#player-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #808799);
}

.spotify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ==========================================
   HEADER HORIZONTAL
   ========================================== */

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  background: var(--surface, rgba(13,17,23,0.85));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.07));
}

.header-left {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.header-logo {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary, #fff);
  cursor: pointer;
  flex-shrink: 0;
}

.header-tabs {
  display: flex;
  gap: 4px;
}

.header-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: none;
  border: none;
  border-radius: 10px;
  color: var(--text-secondary, #808799);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.header-tab:hover {
  background: var(--surface-hover, rgba(255,255,255,0.06));
  color: var(--text-primary, #fff);
}
.header-tab.active {
  background: var(--surface-hover, rgba(255,255,255,0.1));
  color: var(--text-primary, #fff);
}
.header-tab svg { flex-shrink: 0; }

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface-hover, rgba(255,255,255,0.05));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 100px;
  width: 200px;
  transition: width 0.2s, border-color 0.2s;
}
.header-search:focus-within {
  width: 260px;
  border-color: var(--text-secondary, rgba(255,255,255,0.2));
}
.header-search svg { color: var(--text-secondary, #808799); flex-shrink: 0; }
.header-search input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary, #fff);
  font-family: inherit;
  font-size: 0.85rem;
  min-width: 0;
}
.header-search input:focus { outline: none; }

/* Le header contient maintenant la topbar profil : on neutralise son position fixed */
.app-header .topbar {
  position: static;
  top: auto;
  right: auto;
}

/* Décaler l'app sous le header */
.app-fullscreen {
  margin-top: 64px;
  height: calc(100vh - 64px);
}

/* Cacher les onglets et la recherche DANS la sidebar (déplacés dans le header) */
.sidebar .sidebar-tabs { display: none; }
.sidebar .search-box { display: none; }
.sidebar .sidebar-header { display: none; }

/* Thèmes clairs : header lisible */
body.is-light .app-header {
  background: rgba(255,255,255,0.85);
  border-bottom-color: rgba(0,0,0,0.07);
}
body.is-light .header-logo { color: var(--text-primary); }
body.is-light .header-tab { color: var(--text-secondary); }
body.is-light .header-tab:hover,
body.is-light .header-tab.active { color: var(--text-primary); background: rgba(0,0,0,0.05); }
body.is-light .header-search {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
}
body.is-light .header-search input { color: var(--text-primary); }
body.is-light .header-search svg { color: var(--text-secondary); }

body.theme-kpopping .header-logo {
  background: linear-gradient(135deg, #4f8ef7 0%, #a855f7 50%, #e040a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsive : sur mobile, onglets en icônes seules + recherche réduite */
@media (max-width: 768px) {
  .app-header { padding: 0 14px; gap: 12px; height: 56px; }
  .header-left { gap: 12px; }
  .header-logo { font-size: 1.2rem; }
  .header-tab { padding: 8px; font-size: 0; gap: 0; }
  .header-tab svg { width: 18px; height: 18px; }
  .header-search { width: 44px; padding: 8px; }
  .header-search:focus-within { width: 180px; }
  .header-search input { display: none; }
  .header-search:focus-within input { display: block; }
  .profile-name-label { display: none; }
  .app-fullscreen { margin-top: 56px; height: calc(100vh - 56px); }
}

/* topbar-logged-out intégré dans le header */
.app-header .topbar-logged-out {
  position: static;
  top: auto;
  right: auto;
}

/* Titres d'agence : lisibles sur thèmes clairs même sans couleur de marque */
body.is-light .agency-title:not([style*="color"]) { color: var(--text-primary); }

/* ==========================================
   MODE ACCUEIL PLEIN ÉCRAN — transition smooth
   ========================================== */

/* Transitions de base pour un mouvement fluide */
.app-fullscreen .sidebar {
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1),
              opacity 0.4s ease,
              width 0.55s cubic-bezier(0.65, 0, 0.35, 1),
              margin 0.55s cubic-bezier(0.65, 0, 0.35, 1),
              padding 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform, width;
}
.app-fullscreen .main-content {
  transition: all 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Quand le mode home est actif : la sidebar glisse à gauche et disparaît */
.app-fullscreen.home-mode .sidebar {
  transform: translateX(-110%);
  opacity: 0;
  width: 0;
  padding-left: 0;
  padding-right: 0;
  margin-right: -24px; /* compense le gap */
  pointer-events: none;
}

/* Le contenu s'étend en plein écran */
.app-fullscreen.home-mode .main-content {
  border-radius: var(--radius-panel, 24px);
}

/* ==========================================
   PAGE D'ACCUEIL — contenu
   ========================================== */

.home-view {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 12px 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.home-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: var(--font-weight-display, 800);
  letter-spacing: var(--letter-spacing-display, -2px);
  text-transform: var(--text-transform-display, none);
  color: var(--text-primary, #fff);
  line-height: 1;
  margin: 0;
}

/* Grille de stats */
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.home-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 16px;
  background: var(--surface, rgba(255,255,255,0.03));
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: var(--radius-card, 16px);
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1);
}
.home-stat:hover { transform: translateY(-3px); }

.home-stat-num {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary, #fff);
  line-height: 1;
}
.home-stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--text-secondary, #808799);
}

/* Cartes highlight (artiste top, année top) */
.home-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.home-highlight-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  background: var(--surface, rgba(255,255,255,0.03));
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: var(--radius-panel, 20px);
}

.home-highlight-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--text-secondary, #808799);
}
.home-highlight-value {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary, #fff);
  line-height: 1.1;
}
.home-highlight-sub {
  font-size: 0.8rem;
  color: var(--text-secondary, #808799);
}

/* Barres de répartition par agence */
.home-section { display: flex; flex-direction: column; gap: 14px; }

.home-bars { display: flex; flex-direction: column; gap: 10px; }

.home-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 40px;
  align-items: center;
  gap: 14px;
}
.home-bar-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-bar-track {
  height: 10px;
  background: rgba(128,128,128,0.12);
  border-radius: 100px;
  overflow: hidden;
}
.home-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.8s cubic-bezier(0.65,0,0.35,1);
}
.home-bar-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary, #808799);
  text-align: right;
}

.home-mosaic {
  grid-template-columns: repeat(8, 1fr);
  max-width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
  .home-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .home-highlights { grid-template-columns: 1fr; }
  .home-mosaic { grid-template-columns: repeat(4, 1fr); }
  .home-bar-row { grid-template-columns: 90px 1fr 32px; gap: 10px; }
}
@media (max-width: 500px) {
  .home-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================
   BOUTON AUTO-REMPLISSAGE SPOTIFY
   ========================================== */

.spotify-autofill-btn {
  width: 100%;
  padding: 11px 16px;
  background: rgba(29,185,84,0.12);
  border: 1px solid rgba(29,185,84,0.35);
  border-radius: var(--radius-btn, 10px);
  color: #1DB954;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.spotify-autofill-btn:hover:not(:disabled) {
  background: rgba(29,185,84,0.2);
  border-color: rgba(29,185,84,0.55);
}
.spotify-autofill-btn:disabled { opacity: 0.6; cursor: wait; }

.spotify-autofill-status {
  font-size: 0.78rem;
  margin-top: 8px;
  line-height: 1.4;
}

/* ==========================================
   ENCADRÉ CRÉDITS — page d'accueil
   ========================================== */

.home-credits {
  margin-top: 32px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.06));
}

.home-credits-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--text-secondary, #808799);
}

.home-credits-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.home-credit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.home-credit:hover { opacity: 1; }
.home-credit svg { flex-shrink: 0; }

.home-credits-author {
  font-size: 0.72rem;
  color: var(--text-secondary, #808799);
  font-style: italic;
  margin-top: 2px;
}

/* ==========================================
   CARTE DES CONCERTS
   ========================================== */

.concerts-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 16px;
  background: var(--surface-hover, rgba(255,255,255,0.06));
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: var(--radius-btn, 100px);
  color: var(--text-primary, #fff);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.concerts-map-btn:hover {
  background: var(--surface-hover, rgba(255,255,255,0.12));
  transform: translateY(-1px);
}

.concert-map-wrapper {
  margin-top: 24px;
  border-radius: var(--radius-panel, 20px);
  overflow: hidden;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  position: relative;
}

#concert-map {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  background: #0a0a0a;
  z-index: 1;
}

.concert-map-status {
  padding: 12px 18px;
  font-size: 0.8rem;
  color: var(--text-secondary, #808799);
  background: var(--surface, rgba(13,17,23,0.6));
  text-align: center;
}

/* Popups Leaflet — s'adapter au thème */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
}

@media (max-width: 768px) {
  #concert-map { height: 50vh; min-height: 320px; }
}

/* ==========================================
   BADGES / ACHIEVEMENTS
   ========================================== */

.badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.badge-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px 14px;
  background: var(--surface, rgba(255,255,255,0.03));
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: var(--radius-card, 16px);
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), border-color 0.2s;
}
.badge-card.unlocked:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover, rgba(255,255,255,0.15));
}
.badge-card.locked {
  opacity: 0.5;
  filter: grayscale(0.7);
}

.badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(128,128,128,0.1);
  color: var(--text-secondary, #808799);
}

.badge-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
}

.badge-desc {
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--text-secondary, #808799);
}

.badge-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: #34d399;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
}

.badge-lock {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.75rem;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .badges-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================
   STATS D'ÉCOUTE SPOTIFY — façon Wrapped
   ========================================== */

.stats-content { display: flex; flex-direction: column; gap: 40px; margin-top: 24px; }

.stats-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 20px;
  color: var(--text-secondary, #808799);
}

/* Sélecteur de période */
.stats-period-selector {
  display: inline-flex;
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  background: var(--surface-hover, rgba(255,255,255,0.05));
  border-radius: 100px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
}
.stats-period-btn {
  padding: 8px 16px;
  background: none;
  border: none;
  border-radius: 100px;
  color: var(--text-secondary, #808799);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.stats-period-btn.active {
  background: var(--accent, #e040a0);
  color: #fff;
}

.stats-section { display: flex; flex-direction: column; gap: 16px; }

/* PODIUM */
.stats-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}
.podium-spot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 160px;
}
.podium-avatar {
  position: relative;
  border-radius: 50%;
  overflow: visible;
}
.podium-avatar img, .podium-avatar-empty {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.podium-avatar-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-hover, rgba(255,255,255,0.1));
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary, #fff);
}
.podium-medal {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #000;
  border: 3px solid var(--bg, #07090e);
}
.podium-rank-1 { transform: scale(1.15); z-index: 2; }
.podium-rank-1 .podium-avatar { box-shadow: 0 0 0 3px #ffd700, 0 8px 30px rgba(255,215,0,0.35); border-radius: 50%; }
.podium-rank-1 .podium-medal { background: #ffd700; }
.podium-rank-2 .podium-avatar { box-shadow: 0 0 0 3px #c0c0c0; border-radius: 50%; }
.podium-rank-2 .podium-medal { background: #c0c0c0; }
.podium-rank-3 .podium-avatar { box-shadow: 0 0 0 3px #cd7f32; border-radius: 50%; }
.podium-rank-3 .podium-medal { background: #cd7f32; }
.podium-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  text-align: center;
  margin-top: 4px;
}
.podium-owned {
  font-size: 0.72rem;
  color: var(--accent, #e040a0);
  font-weight: 600;
}

/* LISTES (artistes 4-10, titres) */
.stats-list { display: flex; flex-direction: column; gap: 6px; }
.stats-list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-radius: 12px;
  transition: background 0.15s;
}
.stats-list-row:hover { background: var(--surface-hover, rgba(255,255,255,0.04)); }
.stats-list-rank {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-secondary, #808799);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.stats-list-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.stats-list-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
}
.stats-list-track { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.stats-list-artist {
  font-size: 0.75rem;
  color: var(--text-secondary, #808799);
}
.stats-list-name { flex: 1; }
.stats-list-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent, #e040a0);
  flex-shrink: 0;
}

/* RÉCEMMENT ÉCOUTÉS */
.stats-recent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stats-recent-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stats-recent-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
}
.stats-recent-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stats-recent-artist {
  font-size: 0.72rem;
  color: var(--text-secondary, #808799);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Prompt de connexion */
.stats-connect-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 20px;
  text-align: center;
}
.stats-connect-icon { margin-bottom: 4px; }
.stats-connect-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
}
.stats-connect-desc {
  font-size: 0.9rem;
  color: var(--text-secondary, #808799);
  max-width: 360px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .stats-recent-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-podium { gap: 10px; }
}

/* ==========================================
   VISIBILITÉ DES FONCTIONNALITÉS SPOTIFY
   Masquées par défaut, révélées seulement si l'email
   est dans la liste blanche (body.spotify-allowed)
   ========================================== */
.spotify-feature { display: none !important; }
body.spotify-allowed .mini-player.spotify-feature { display: flex !important; }
body.spotify-allowed .header-tab.spotify-feature { display: inline-flex !important; }
