/* ═══════════════════════════════════════════════════════════════════════════
   Jukebox Mariage — Feuille de style partagée
   Mobile-first · Thème mariage (or, ivoire, brun chaud)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Variables ──────────────────────────────────────────────────────────── */
:root {
  --gold:        #c9a96e;
  --gold-light:  #e8d5b0;
  --gold-dark:   #9a7840;
  --ivory:       #fdf8f0;
  --white:       #ffffff;
  --brown-deep:  #1e0f06;
  --brown-dark:  #2a1810;
  --brown-mid:   #4a2e1a;
  --text-dark:   #2a2118;
  --text-mid:    #5c4f3d;
  --text-muted:  #9e8e78;
  --border:      #e8dcc8;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --shadow-sm:   0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-md:   0 6px 28px rgba(0, 0, 0, 0.12);
  --ease:        0.2s ease;
}

/* ─── Reset minimal ──────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Evite le zoom iOS sur focus input (font-size >= 16px dans les inputs) */
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
               'Helvetica Neue', Arial, sans-serif;
  background: var(--ivory);
  color: var(--text-dark);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ═══════════════════════════════════════════════════════════════════════════
   PAGE SUGGESTION (mobile-first)
   ═══════════════════════════════════════════════════════════════════════════ */

.suggestion-page {
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 80px;
}

/* ── En-tête ──────────────────────────────────────────────────────────────── */
.header {
  background: linear-gradient(145deg, var(--brown-dark) 0%, var(--brown-mid) 100%);
  color: var(--gold-light);
  text-align: center;
  padding: 28px 24px 22px;
}

.header__rings {
  display: block;
  font-size: 22px;
  letter-spacing: 6px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.header__title {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--gold);
}

.header__subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 5px;
  letter-spacing: 1px;
}

/* ── Formulaire ────────────────────────────────────────────────────────────── */
.form-section {
  padding: 20px 16px 4px;
}

.input-group {
  margin-bottom: 14px;
}

.input-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 7px;
}

.input-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-size: 11px;
}

.input-field {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px;           /* ≥16px → pas de zoom iOS */
  background: var(--white);
  color: var(--text-dark);
  outline: none;
  -webkit-appearance: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.input-field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.18);
}

.input-field::placeholder {
  color: var(--text-muted);
}

/* Supprime le bouton "×" natif du champ search sur IE/Edge */
.input-field[type="search"]::-webkit-search-cancel-button { display: none; }

/* Wrapper recherche avec icône */
.search-wrapper {
  position: relative;
}

.search-wrapper .input-field {
  padding-left: 44px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  pointer-events: none;
  user-select: none;
  opacity: 0.6;
}

/* ── Loader ────────────────────────────────────────────────────────────────── */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

.loader.hidden {
  display: none;
}

/* Spinner universel (utilisé aussi dans .btn-add) */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}

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

/* ── Résultats ─────────────────────────────────────────────────────────────── */
.results {
  padding: 4px 16px 0;
}

.no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 28px 0 12px;
  font-size: 15px;
}

/* Carte de morceau */
.track-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.track-card:active {
  transform: scale(0.985);
}

/* Animation légère après ajout */
.track-card.added {
  border-color: var(--gold);
  background: linear-gradient(to right, #fffdf5, var(--white));
  animation: addPulse 0.45s ease forwards;
}

@keyframes addPulse {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.025); }
  100% { transform: scale(1); }
}

.track-img {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}

/* Image de fallback si absente */
.track-img-placeholder {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-muted);
}

.track-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.track-titre {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artiste {
  font-size: 13px;
  color: var(--text-mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Bouton "Ajouter" */
.btn-add {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease), transform var(--ease), opacity var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn-add:hover:not(:disabled) {
  background: var(--gold-dark);
  transform: scale(1.1);
}

.btn-add:active:not(:disabled) {
  transform: scale(0.93);
}

.btn-add:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-add .spinner {
  width: 16px;
  height: 16px;
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
}

/* ── Toast notification ────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 26px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
  z-index: 9999;
  box-shadow: var(--shadow-md);
  transition: top 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.toast.show {
  top: 14px;
}

.toast--success {
  background: #2e7d32;
  color: var(--white);
}

.toast--error {
  background: #c62828;
  color: var(--white);
}

/* ─── Responsive suggestion ──────────────────────────────────────────────── */
@media (min-width: 540px) {
  .suggestion-page {
    margin: 20px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   PAGE AFFICHAGE (TV / écran de salle)
   ═══════════════════════════════════════════════════════════════════════════ */

.affichage-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #0d0805 0%, #1a0e06 40%, #100a04 100%);
  color: var(--white);
  overflow-x: hidden;
}

/* ── Bandeau titre ─────────────────────────────────────────────────────────── */
.aff-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 24px 10px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.18);
  position: relative;
  flex-shrink: 0;
}

.aff-topbar__title {
  font-size: clamp(18px, 2.5vw, 32px);
  font-weight: 200;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
}

.aff-topbar__rings {
  font-size: clamp(14px, 1.5vw, 20px);
  opacity: 0.7;
}

.refresh-indicator {
  position: absolute;
  right: 16px;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
}

.refresh-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.4;
  transition: opacity 0.2s, transform 0.2s;
}

.refresh-dot.pulse { animation: dotPulse 0.55s ease; }

@keyframes dotPulse {
  0%   { opacity: 0.4; transform: scale(1); }
  45%  { opacity: 1;   transform: scale(1.8); }
  100% { opacity: 0.4; transform: scale(1); }
}

/* ── Label de section ──────────────────────────────────────────────────────── */
.aff-label {
  font-size: clamp(10px, 1vw, 12px);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

/* ── Zone "En ce moment" (pleine largeur) ──────────────────────────────────── */
.aff-now {
  padding: 14px 24px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

/* ── Grille suggestions | récents ──────────────────────────────────────────── */
.aff-grid {
  display: grid;
  grid-template-columns: 1fr;   /* mobile : 1 colonne */
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 900px) {
  .aff-grid {
    grid-template-columns: 3fr 2fr;  /* TV : queue large, récents plus étroits */
    gap: 0;
  }
}

.aff-col {
  padding: 14px 20px;
  overflow-y: auto;
}

.aff-col--queue {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.aff-col--recent {
  background: rgba(0, 0, 0, 0.15);
}

/* ── Sections (compatibilité ancienne) ─────────────────────────────────────── */
.aff-section { padding: 16px 24px; }
.aff-section__title {
  font-size: clamp(11px, 1.3vw, 14px);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}


.aff-section__title {
  font-size: clamp(11px, 1.3vw, 14px);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

/* Now playing — placeholder statique */
.now-playing-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
  gap: 10px;
}

.music-note {
  font-size: clamp(48px, 6vw, 80px);
  animation: floatNote 3.5s ease-in-out infinite;
  display: block;
  line-height: 1;
}

@keyframes floatNote {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-10px) rotate(5deg); }
}

.now-playing-placeholder p {
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 1px;
}

/* File d'attente */
.queue-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease;
  animation: slideIn 0.35s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Premier élément (prochaine lecture) mis en valeur */
.queue-item--next {
  background: rgba(201, 169, 110, 0.1);
  border-color: rgba(201, 169, 110, 0.28);
}

.queue-pos {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--gold);
  width: 32px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.85;
}

.queue-img {
  width: clamp(48px, 6vw, 68px);
  height: clamp(48px, 6vw, 68px);
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.queue-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.queue-titre {
  font-size: clamp(15px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-artiste {
  font-size: clamp(12px, 1.6vw, 17px);
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-by {
  font-size: clamp(10px, 1.1vw, 13px);
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-nom {
  font-size: clamp(11px, 1.3vw, 14px);
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.queue-extra {
  text-align: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  padding: 8px 0;
  letter-spacing: 1px;
}

/* Compteur dans le label "Prochaines suggestions" */
.aff-queue-count {
  font-size: clamp(9px, 1vw, 12px);
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
  letter-spacing: 1px;
  margin-left: 4px;
}

/* Animation d’entrée des éléments de queue */
@keyframes slideInQueue {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.queue-item--enter {
  animation: slideInQueue 0.35s ease forwards;
}

.empty-queue {
  text-align: center;
  color: rgba(255, 255, 255, 0.25);
  padding: 36px 0;
  font-size: clamp(14px, 1.8vw, 18px);
  letter-spacing: 0.5px;
}
  text-align: center;
  color: rgba(255, 255, 255, 0.25);
  padding: 36px 0;
  font-size: clamp(14px, 1.8vw, 18px);
  letter-spacing: 0.5px;
}

/* ─── QR code flottant (page affichage) ─────────────────────────────────── */
.qr-corner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  padding: 10px 10px 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 100;
  transition: opacity 0.3s;
}

.qr-corner:hover {
  opacity: 0.85;
}

.qr-corner__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #2a1810;
  text-align: center;
}

.qr-corner canvas,
.qr-corner img {
  display: block;
  border-radius: 6px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   NOW PLAYING (page affichage)
   ═══════════════════════════════════════════════════════════════════════════ */

.now-playing-card {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px);
  padding: clamp(12px, 1.5vw, 18px);
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: var(--radius-md);
  animation: slideIn 0.4s ease;
}

.now-playing-img {
  width:  clamp(80px, 10vw, 140px);
  height: clamp(80px, 10vw, 140px);
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* Glow doré pulsé autour de la pochette */
.now-playing-img--glow {
  animation: coverGlow 2.5s ease-in-out infinite;
}

@keyframes coverGlow {
  0%, 100% { box-shadow: 0 0 18px 2px rgba(201,169,110,0.25), 0 8px 32px rgba(0,0,0,0.5); }
  50%       { box-shadow: 0 0 38px 8px rgba(201,169,110,0.55), 0 8px 32px rgba(0,0,0,0.5); }
}

.now-playing-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.now-playing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(9px, 1vw, 11px);
  font-weight: 700;
  letter-spacing: 2px;
  color: #1db954;
  margin-bottom: 2px;
}

.now-playing-badge .dot {
  width: 7px;
  height: 7px;
  background: #1db954;
  border-radius: 50%;
  animation: blink 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.15; }
}

.now-playing-titre {
  font-size:  clamp(22px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing-artiste {
  font-size:  clamp(15px, 2.2vw, 28px);
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing-album {
  font-size:  clamp(11px, 1.3vw, 15px);
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing-suggestedby {
  font-size: clamp(11px, 1.2vw, 14px);
  color: var(--gold);
  opacity: 0.75;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Barre de progression */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.progress-time {
  font-size: clamp(10px, 1vw, 12px);
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #c9a96e, #1db954);
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s linear;
}


/* ═══════════════════════════════════════════════════════════════════════════
   RECENTLY PLAYED (page affichage)
   ═══════════════════════════════════════════════════════════════════════════ */

.recently-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 5px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.recently-item:hover { opacity: 0.85; }

.recently-img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.07);
}

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

.recently-titre {
  font-size: clamp(11px, 1.3vw, 14px);
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recently-artiste {
  font-size: clamp(10px, 1vw, 12px);
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recently-check {
  color: #1db954;
  font-size: clamp(12px, 1.2vw, 15px);
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   PAROLES SYNCHRONISÉES (LRCLIB)
   ═══════════════════════════════════════════════════════════════════════════ */

.lyrics-container {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  height: clamp(100px, 12vw, 150px);   /* hauteur fixe — ne bouge jamais */
  padding: 0 16px;
  text-align: center;
  border-top: 1px solid rgba(201, 169, 110, 0.1);
  margin-top: 8px;
  overflow: hidden;
}

.lyrics-line {
  max-width: 92%;
  margin: 0 auto;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: opacity 0.15s ease;
}

.lyrics-prev,
.lyrics-next {
  font-size: clamp(13px, 1.6vw, 20px);
  color: rgba(255, 255, 255, 0.28);
  font-weight: 400;
}

.lyrics-curr {
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(201, 169, 110, 0.45);
  letter-spacing: 0.3px;
}

/* Pendant un break instrumental : la dernière ligne reste visible mais estompée */
.lyrics-curr--break {
  color: rgba(201, 169, 110, 0.35);
  text-shadow: none;
  font-weight: 400;
}

/* Chiffre du décompte avant reprise des paroles */
.lyrics-countdown {
  font-size: clamp(22px, 3vw, 44px);
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 6px;
  animation: countdownPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes countdownPop {
  from { transform: scale(1.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   PAGE DE CONFIRMATION (suggestion ajoutée)
   ═══════════════════════════════════════════════════════════════════════════ */

.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 2, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.confirm-card {
  background: linear-gradient(145deg, #1a0f06, #2a1810);
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  max-width: 340px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.confirm-confetti {
  font-size: 48px;
  animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

.confirm-img {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.confirm-titre {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-top: 4px;
}

.confirm-artiste {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
}

.confirm-msg {
  font-size: 18px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.confirm-btn {
  margin-top: 8px;
  padding: 12px 24px;
  background: rgba(201, 169, 110, 0.15);
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: var(--gold);
  border-radius: 50px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.confirm-btn:hover {
  background: rgba(201, 169, 110, 0.28);
}


/* ═══════════════════════════════════════════════════════════════════════════
   PAGE ADMIN
   ═══════════════════════════════════════════════════════════════════════════ */

.admin-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-dark);
}

.admin-card p {
  margin-top: 4px;
  color: var(--text-mid);
  font-size: 13px;
  line-height: 1.5;
}

.admin-card--ok   { border-color: #81c784; background: #f1fdf2; }
.admin-card--warn { border-color: #ffb74d; background: #fffbf0; }

.admin-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}

.admin-status-dot--ok   { background: #2e7d32; }
.admin-status-dot--warn { background: #e65100; }

.admin-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  background: #1db954;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}

.admin-btn:hover {
  background: #17a349;
  transform: scale(1.01);
}

.admin-btn--secondary {
  background: var(--border);
  color: var(--text-mid);
}

.admin-btn--secondary:hover { background: #d8cdb8; }

.admin-btn--ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  padding: 10px 18px;
  width: auto;
  font-size: 13px;
  font-weight: 600;
}

.admin-btn--ghost:hover {
  background: var(--ivory);
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: none;
}

.admin-notice {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.admin-notice--ok  { background: #e8f5e9; color: #2e7d32; }
.admin-notice--err { background: #ffebee; color: #c62828; }
