:root {
  --bg: #181e29;
  --bg-soft: #111522;
  --panel: #141a2a;
  --text: #e5e7eb;
  --muted: #9aa3b2;
  --accent: #4f46e5;
  --accent-2: #22d3ee;
  --ring: rgba(79, 70, 229, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
}

/* ── Lang switcher ── */
.lang-switcher {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}
.lang-btn {
  margin-top: 0px !important;
  text-shadow: none !important;
  -webkit-font-smoothing: antialiased !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.35) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 0 5px !important;
  height: 20px !important;
  line-height: 20px !important;
  width: auto !important;
  min-width: unset !important;
  border-radius: 0 !important;
  letter-spacing: 0.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: color 0.2s;
}
.lang-btn:focus,
.lang-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.lang-btn.active {
  color: #fff !important;
  border-bottom: none !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}
.lang-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  line-height: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
  background: linear-gradient(
    180deg,
    rgba(11, 14, 20, 0.9),
    rgba(11, 14, 20, 0.6)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-bar {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
  text-decoration: none;
}

.header-tabs {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tab-btn {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
}

.tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  vertical-align: middle;
}

.login-button-google {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #1e1b4b;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.15s;
}
.login-button-google:hover {
  opacity: 0.9;
}

/* Panels (onglets) */
.sliding-panels {
  position: relative;
}

.panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: var(--panel);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.panel.open {
  max-height: 420px;
}

.panel .panel-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 18px;
}

.panel h2 {
  margin: 0 0 14px;
}

/* Hero — layout simplifié, plus d'image de fond */
.hero {
  padding: 14px 16px 14px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-inner {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Join card (centré, pleine largeur maîtrisée) */
.join-card {
  width: min(1200px, 90vw);
  background: linear-gradient(180deg, #141a2a, #0f1423);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  border-radius: 18px;
  padding: 16px;
}

/* ── Cadre supérieur : titre + input + méta ── */
.join-top-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 14px;
}

/* h1 + FAQ côte à côte, FAQ collé au titre */
.join-top-box .join-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 14px !important;
  margin-bottom: 0 !important;
  flex-wrap: wrap !important;
}

/* Ligne input + player count */
.join-input-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.join-input-row input#username {
  flex: 1 !important;
  max-width: 540px !important;
  min-width: 0 !important;
  max-height: unset !important;
  position: static !important;
  margin: 0 !important;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0e1320;
  color: #fff;
  outline: none;
  font-size: 18px;
  box-sizing: border-box;
}

.join-input-row input#username:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px var(--ring);
}

.join-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex-shrink: 0;
}

.join-meta-right .player-count {
  margin-top: 0 !important;
  font-size: 13px;
  white-space: nowrap;
}

.join-meta-right .guest-warning {
  font-size: 11px !important;
  color: var(--muted);
  margin: 0 !important;
  line-height: 1.3;
}

/* Ligne pseudo + bouton côte à côte */
.join-top-row {
  display: flex;
  margin-bottom: 10px;
}

.join-top-row input#username {
  flex: 1 1 0% !important;
  position: static !important;
  margin: 0 !important;
  max-width: unset !important;
  max-height: unset !important;
  width: 100% !important;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0e1320;
  color: #fff;
  outline: none;
  font-size: 14px;
  font-style: italic;
}

.join-top-row input#username:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 4px var(--ring);
}

.join-top-row .play-button {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 11px 20px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 800;
  margin: 0 !important;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #081018;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.join-card h1 {
  font-family: 'Orbitron', sans-serif !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  margin: 0 0 10px;
}

#login input#username {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0e1320;
  color: #fff;
  outline: none;
}

#login input#username:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 4px var(--ring);
}

.playlist-select-container {
  margin-top: 12px;
}

.playlist-panel {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px;
}

.playlist-panel.locked {
  opacity: 0.6;
  pointer-events: none;
}

.playlist-scroll {
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

/* éléments “item playlist” rendus par home.js */
.playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.playlist-item.active {
  outline: 2px solid var(--accent);
}

.playlist-cover {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}

.playlist-name {
  font-weight: 500;
}

.playlist-count {
  font-size: 12px;
  color: var(--muted);
}

.play-button {
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #081018;
  font-weight: 800;
  cursor: pointer;
}

.play-button:disabled {
  opacity: 0.6;
  filter: grayscale(40%);
  cursor: not-allowed;
}

.player-count {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px !important;
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 14px;
}

.player-count img {
  width: 18px;
  height: 18px;
}

p.small-muted {
  margin-top: 0px !important;
  margin-bottom: 0 !important;
}

.small-muted {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.small-muted a {
  color: #c1d9ff;
}

.guest-warning {
  font-size: 12px !important;
  line-height: 1.3 !important;
  margin-top: 4px !important;
  margin-bottom: 0 !important;
}

footer.social {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  padding: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}

.social-link {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 980px) {
  .join-card {
    width: min(700px, 96vw);
  }

  .hero {
    padding: 16px 10px 16px;
  }

  .private-game-section {
    margin: 0 auto 40px !important;
  }
}

@media (max-width: 768px) {
  /* 3 cartes visibles sur tablette */
  .pl-card {
    --pl-visible: 3;
  }

  .join-card {
    width: 96vw;
    padding: 14px;
  }

  .join-top-row {
    flex-direction: column;
    align-items: stretch;
  }

  .join-top-row .play-button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .private-game-section {
    margin: -20px auto 40px !important;
  }
}

@media (max-width: 480px) {
  /* 2.5 cartes visibles sur mobile — peek naturel */
  .pl-card {
    --pl-visible: 2.5;
  }

  .pl-row-title {
    font-size: 10px;
  }

  .join-card {
    padding: 12px;
    border-radius: 14px;
  }

  .hero {
    padding: 10px 8px 20px;
  }
}

/* ✅ Navbar : Compacte et équilibrée */
.navbar {
  position: absolute;
  top: 10px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  /* 🔹 Espacement réduit */
  background: #222;
  /* ✅ Fond noir mat */
  padding: 8px 18px;
  border-radius: 20px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
  /* ✅ Effet de profondeur */
}

/* ✅ Bouton "Records" : Bleu */
.records-button {
  background-color: #00bfff;
  /* Bleu clair */
  color: white;
  padding: 5px 8px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition:
    background 0.3s,
    transform 0.2s;
  border: 1px solid #008cba;
}

.records-button:hover {
  background-color: #0099e6;
  transform: scale(1.05);
}

/* ✅ Bouton "Likes" : Rose/rouge doux */
.likes-button {
  background-color: #ff69b4;
  /* Rose vif */
  color: white;
  padding: 5px 8px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition:
    background 0.3s,
    transform 0.2s;
  border: 1px solid #d64f94;
}

.likes-button:hover {
  background-color: #ff85c1;
  transform: scale(1.05);
}

.suggest-button {
  background-color: #a78bfa;
  color: white;
  padding: 5px 8px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition:
    background 0.3s,
    transform 0.2s;
  border: 1px solid #7c6aff;
}

.suggest-button:hover {
  background-color: #c4b5fd;
  transform: scale(1.05);
}

/* ✅ Conteneur de la cloche */
.notification-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* 🔔 Icône de notification */
.notification-icon {
  font-size: 20px;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.notification-icon:hover {
  transform: scale(1.2);
}

/* Conteneur cloche */
.notification-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* Boîte : largeur fixe raisonnable + hauteur max + scroll */
#notification-box {
  position: absolute;
  top: 40px;
  right: 0;
  display: block;

  /* ✅ largeur maîtrisée */
  width: min(320px, 92vw);
  /* ~320-360 sur desktop, full sur mobile */
  min-width: 260px;
  max-width: 92vw;

  /* ✅ hauteur max (liste scrollable) */
  max-height: 27vh;
  overflow-y: auto;

  padding: 0px 5px;
  background: #333;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  z-index: 1000;

  /* anim d’ouverture douce */
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  pointer-events: none;

  /* texte long OK */
  white-space: normal;
  word-break: break-word;

  /* scrollbars fines */
  scrollbar-width: thin;
  scrollbar-color: #666 #333;
}

#notification-box.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Message vide compact */
#notification-box .empty-notif {
  margin: 0;
  padding: 6px 8px;
  font-size: 13px;
  color: #ccc;
  font-style: italic;
  text-align: center;
}

/* Rétrécit la boîte si elle ne contient que le message vide */
#notification-box:has(.empty-notif:only-child) {
  width: min(220px, 80vw);
  /* 🔹 plus étroit que la version normale */
  max-height: unset;
  /* pas besoin de scroll quand vide */
  padding: 4px 6px;
}

/* Item compact et net */
.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  /* texte + croix */
  align-items: start;
  gap: 8px;

  background: #444;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 6px 0;
  border: 1px solid #3a3a3a;
}

/* Texte : 3 lignes max, puis "..." */
.notification-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.32;

  /* ✅ Clamp multi-navigateurs */
  display: -webkit-box;
  display: box;
  /* vieux spec fallback */
  -webkit-box-orient: vertical;
  box-orient: vertical;
  /* fallback non-webkit */
  -webkit-line-clamp: 3;
  line-clamp: 3;
  /* propriété standard */

  overflow: hidden;
}

/* Croix à droite, pas en absolute => pas de débordement */
.delete-notif {
  position: static;
  /* ← important */
  font-size: 14px;
  color: #f66;
  cursor: pointer;
  user-select: none;
  align-self: start;
}

.delete-notif:hover {
  color: #ff7a7a;
}

/* Badge rouge (inchangé) */
#notification-count {
  position: absolute;
  top: -5px;
  left: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e00;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
  transform: translate(-50%, -50%);
}

/* Optionnel: cap un peu plus sur mobile très étroit */
@media (max-width: 420px) {
  #notification-box {
    max-width: 85vw;
  }
}

/* ✅ Amélioration du scroll (Chrome) */
#notification-box::-webkit-scrollbar {
  width: 5px;
  /* ✅ Réduit la largeur du scroll */
}

#notification-box::-webkit-scrollbar-thumb {
  background: #666;
  /* ✅ Couleur du scroll */
  border-radius: 5px;
}

/* ✅ Conteneur des notifications */
.notification-item {
  background: #444;
  padding: 8px;
  margin-bottom: 5px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  position: relative;
  /* Permet de positionner la croix */
  padding-right: 25px;
  /* Laisse de la place pour le bouton "❌" */
}

/* ✅ Texte de la notification */
.notification-item p {
  margin: 0;
  font-size: 14px;
  color: white;
  flex-grow: 1;
}

/* ✅ Style propre pour la croix ❌ sans bouton */
.delete-notif {
  position: absolute;
  top: 5px;
  right: 5px;
  color: red;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  user-select: none;
  /* Empêche la sélection du texte */
}

/* ✅ Désactiver l'effet hover (optionnel) */
.delete-notif:hover {
  color: red;
  /* Pas de changement au survol */
}

/* ✅ Désactiver tout effet de focus */
.delete-notif:focus,
.delete-notif:active {
  outline: none;
  box-shadow: none;
}

/* 🔴 Badge de notification */
#notification-count {
  position: absolute;
  top: -5px;
  /* ✅ Ajuste la hauteur pour qu'il soit bien positionné */
  right: auto;
  /* ✅ Supprime la valeur trop à droite */
  left: 15px;
  /* ✅ Déplace le badge à gauche pour qu'il colle à la cloche */
  background-color: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 5px rgba(255, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  /* ✅ Corrige l'alignement */
}

/* ✅ Masquer le compteur quand il n'y a pas de notifications */
.hidden {
  display: none;
}

/* ✅ Nom d'utilisateur : Texte plus petit, fond solide */
.username {
  color: #f1f1f1;
  font-weight: 500;
  /* 🔹 Moins gras */
  font-size: 15px;
  /* 🔹 Texte plus petit */
  background: #333;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 12px;
}

/* ✅ Voir Profil : Fond blanc, plus petit */
.profile-link {
  background-color: white;
  color: black;
  padding: 5px 8px;
  /* 🔹 Taille réduite */
  border-radius: 15px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  /* 🔹 Texte plus petit */
  transition:
    background 0.3s,
    transform 0.2s;
  border: 1px solid black;
}

.profile-link:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

/* ✅ Déconnexion : Taille réduite, vert Spotify */
.logout-button {
  background-color: #1db954;
  color: white;
  padding: 5px 8px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition:
    background 0.3s,
    transform 0.2s;
  border: 1px solid #1a9040;
}

.logout-button:hover {
  background-color: #1ed760;
  transform: scale(1.05);
}

/* ✅ Image de profil : Plus petite */
.profile-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid white;
  transition: transform 0.3s;
}

.profile-img:hover {
  transform: scale(1.1);
}

/* ✅ Onglet "Stats" : Fond jaune avec styles similaires */
.stats-button {
  background-color: #ffd700;
  /* 🔹 Jaune doré pour bien ressortir */
  color: black;
  /* 🔹 Texte noir pour bon contraste */
  padding: 5px 8px;
  /* 🔹 Taille ajustée */
  border-radius: 15px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition:
    background 0.3s,
    transform 0.2s;
  border: 1px solid #b8860b;
  /* 🔹 Bordure légèrement plus foncée */
}

.stats-button:hover {
  background-color: #ffc107;
  /* 🔹 Jaune plus foncé au survol */
  transform: scale(1.05);
}

/* ══════════════════════════════════════════════════════════
   NETFLIX PLAYLIST ROWS
══════════════════════════════════════════════════════════ */

.pl-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
  border-left: 3px solid #6366f1;
  padding-left: 12px;
}

.pl-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.pl-row-title {
  font-size: 15px;
  font-weight: 700;
  color: #e5e7eb;
  letter-spacing: 0.3px;
}

.pl-row-arrows {
  display: flex;
  gap: 5px;
}

.pl-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  line-height: 1;
  padding: 0;
}

.pl-arrow:hover {
  background: rgba(255, 255, 255, 0.13);
}

.pl-arrow:disabled {
  opacity: 0.2;
  cursor: default;
}

.pl-row-outer {
  overflow: hidden;
  position: relative;
}

.pl-row-track {
  display: flex;
  gap: 7px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Carte playlist individuelle */
.pl-card {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  border-radius: 10px;
  cursor: pointer;
  border: 1.5px solid transparent;
  background: #0f1423;
  transition:
    border-color 0.15s,
    transform 0.15s;
}

.pl-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.pl-card.active {
  border-color: var(--accent);
}

.pl-card-left-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #818cf8, #6366f1);
  border-radius: 0 2px 2px 0;
  z-index: 3;
}

.pl-card-art {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #1a2235;
}

.pl-card-art img {
  width: 100%;
  height: 100%;
  display: block;
  background: #1a2235;
}

/* Fallback emoji si pas d'image */
.pl-card-emoji {
  font-size: 32px;
  line-height: 1;
}
/* Overlay play au hover sur les cartes */
.pl-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  pointer-events: none;
}

.pl-card:hover .pl-card-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.pl-card-play {
  color: #fff;
  font-size: 30px;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1;
}

.pl-card:hover .pl-card-play {
  opacity: 1;
  transform: scale(1);
}

.pl-card.active .pl-card-overlay {
  background: rgba(79, 70, 229, 0.15);
}

/* pl-card-badge — neutralisé, voir bloc PATCH FINAL en bas */

/* pl-card-info — neutralisé, voir bloc PATCH FINAL en bas */

/* pl-card-name — neutralisé, voir bloc PATCH FINAL en bas */

/* pl-card-sub — neutralisé, voir bloc PATCH FINAL en bas */

/* Ancien .playlist-panel conservé pour compatibilité éventuelle */
.playlist-panel {
  display: none;
}
.playlist-scroll {
  display: none;
}

/* Counter live (homePlaylistStatus) sur les cartes */
/* .pl-card-art .pl-counter position:absolute — neutralisé */

.pl-card-art .pl-counter .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22d3ee;
  flex-shrink: 0;
  display: inline-block;
}

.pl-card-art .pl-counter.playing {
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #cffafe;
}

/* Carte playlist */
.playlist-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 4px;
  cursor: pointer;
  transition:
    transform 0.06s ease,
    background 0.12s ease,
    border-color 0.12s ease;

  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  /* fond légèrement plus clair */
}

/* Effet "zebra" */
.playlist-item:nth-child(even) {
  background: rgba(255, 255, 255, 0.05);
}

/* Coins arrondis premier/dernier */
.playlist-item:first-child {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.playlist-item:last-child {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-bottom: none;
}

/* Hover plus discret et sans translation */
.playlist-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  transform: none;
}

/* Actif : plus lumineux mais pas de glow bleu violent */
.playlist-item.active {
  background: rgba(255, 255, 255, 0.12);
  border-left: 3px solid #7c3aed;
  box-shadow: none;
}

/* Nom de playlist bien lisible */
.playlist-name {
  color: #fff;
  /* blanc pur */
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Vignette ===== */
.playlist-cover {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: #111827;
}

.playlist-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* ellipsis ok */
}

/* badge nb de joueurs (icône + nombre) */
.playlist-players {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}

/* petite icône “personne” (si tu gardes l’emoji) */
.playlist-players .pp-ico {
  display: inline-block;
  transform: translateY(1px);
  font-size: 14px;
}

/* nombre de joueurs */
.playlist-players .pp-num {
  font-size: 12px;
  opacity: 0.95;
}

.playlist-count {
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.1;
}

/* Badge clair mais discret */
.playlist-badge {
  display: none;
  margin-left: 8px;
  font-size: 11px;
  color: #9ca3af;
  background: #0b1220;
  border: 1px solid #243047;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Verrou visuel du panneau */
.playlist-panel.locked {
  pointer-events: none;
  /* bloque les clics (si tu veux garder le scroll, enlève cette ligne) */
  opacity: 0.55;
  filter: grayscale(0.1);
}

/* Option : badge "verrouillé" en haut à droite du panel */
.playlist-panel.locked::after {
  content: 'Verrouillé';
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
  border: 1px solid rgba(99, 102, 241, 0.5);
}

/* État grisé lisible */
select:disabled {
  background-color: #ddd;
  color: #888;
  cursor: not-allowed;
}

/* Style pour le bouton principal du login jeu  */
.play-button {
  position: absolute;
  font-family: 'Bungee', sans-serif;
  /* Style arcade */
  width: 150px;
  height: 60px;
  padding: 10px;
  background: linear-gradient(45deg, #0057e7, #0099ff);
  /* Dégradé bleu */
  color: white;
  border: none;
  font-size: 26px;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 400px;
  margin-left: -55px;
  border-radius: 8px;
  /* Bords arrondis */
}

/* Effet hover */
.play-button:hover {
  background: linear-gradient(45deg, #007bff, #0057e7);
  /* Bleu plus foncé */
  transform: scale(1.02);
}

/* Style the player count container */
#player-count {
  position: absolute;
  /* Position the container absolutely */
  display: inline-flex;
  /* Le conteneur s'ajuste à la taille du contenu */
  align-items: center;
  font-size: 17px;
  font-weight: bold;
  color: #62f10f;
  /* Gold color on hover */
  border-radius: 10px;
  /* Rounded corners for a smooth look */
  padding: 10px;
  /* Padding pour ajouter de l'espace autour du texte */
  margin-top: 450px;
  left: 38%;
}

/* Style the player icon */
#player-count img {
  width: 50px;
  /* Slightly larger icon */
  height: 50px;
  vertical-align: middle;
  /* Ensure icon is vertically aligned with text */
}

#player-count-number {
  margin-right: 4px;
  /* ou 6-8px selon ton goût */
}

/* Styliser le texte secondaire */
p.lead.text-center {
  font-size: 1.5em;
  color: #666;
  margin-bottom: 30px;
}

/* Titre principal : force Orbitron */
h1 {
  font-family: 'Orbitron', sans-serif !important;
  font-size: 60px;
  letter-spacing: 1px;
  font-weight: 400;
  color: #3582e7;
  text-transform: uppercase;
}

h2 {
  font-family: 'Anton', sans-serif;
  font-weight: 300;
  /* ✅ Plus léger pour une meilleure lisibilité */
  position: relative;
  text-align: center;
  top: -4%;

  /* ✅ Rouge plus vif et plus lisible */
  color: #e63946 !important;

  /* ✅ Taille ajustée pour plus d'équilibre */
  font-size: 27px;

  /* ✅ Espacement plus fluide */
  letter-spacing: 1.2px;

  /* ✅ Amélioration de la lisibilité */
  text-transform: uppercase;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.info-icon {
  position: absolute;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 50%;
  padding: 5px 10px 5px 5px;
  /* moins de padding à gauche pour le texte */
  display: inline-flex;
  /* pour aligner texte + svg horizontalement */
  align-items: center;
  /* centrer verticalement */
  transition:
    background 0.3s ease,
    color 0.3s ease;
  margin-left: -43px;
  margin-top: -12px;
  color: #fff;
  /* texte blanc */
  gap: 6px;
  /* espace entre texte et icône */
  text-decoration: none;
  /* enlever soulignement du lien */
}

.info-icon svg {
  width: 45px !important;
  height: 45px !important;
  fill: #fff !important;
  transition:
    fill 0.3s ease,
    transform 0.2s ease;
}

.info-icon:hover {
  color: #bbb;
  /* texte gris clair au hover */
}

.info-icon:hover svg {
  fill: #bbb !important;
  transform: scale(1.1);
}

input#username {
  position: absolute;
  margin-top: 65px;
  margin-left: -150px;
  max-width: unset !important;
  max-height: unset !important;
}

.playlist-info {
  position: absolute;
  top: 700px;
  left: 120px;
  margin-left: 60px;
  /* base typographique unique pour TOUT le bloc */
  font-size: 17px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color: #ddd;
  text-align: left;
  white-space: nowrap;
}

/* Tout ce qui est dedans hérite strictement de la base */
.playlist-info p,
.playlist-info a {
  font-size: 1.1em;
  /* = 15px exactement */
  font-family: inherit;
  /* même police pour p et a */
  font-weight: 400;
  /* même graisse pour éviter l’effet “plus gros” */
  line-height: 1.2;
  text-transform: none;
  /* pas de majuscules forcées */
}

/* Paragraphe en inline (pas de bordure ni d’effets qui débordent) */
.playlist-info p {
  margin: 0;
  display: inline;
  color: #fff;
  border: 0;
  padding: 0;
}

/* Lien, même taille, juste souligné + couleur */
.playlist-info a {
  color: #fff;
  text-decoration: underline;
}

/* Hover sans changer la taille (pour ne pas recréer l’écart) */
.playlist-info a:hover {
  color: #ffd700;
}

/* ✅ Conteneur des colonnes */
.playlist-columns {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  position: relative;
  margin-top: 333px;
  margin-left: 210px;
  font-size: 1.05rem;
  position: absolute !important;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-weight: lighter;
  color: #ffffff;
  line-height: 1.03;
}

/* ✅ Ligne de séparation verticale entre les colonnes */
.playlist-columns::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(176, 179, 184, 0.8);
}

/* ✅ Style pour chaque colonne */
.playlist-columns .column {
  flex: 1;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* ✅ Centre le contenu horizontalement */
}

/* ✅ Liste des playlists */
.playlist-columns ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 5px;
}

.playlist-columns ul li {
  margin-bottom: 6px;
  padding-left: 0;
  margin-left: -15px;
  /* ✅ Décale le point vers la gauche */
  text-indent: 15px;
  /* ✅ Garde le texte aligné proprement */
  white-space: nowrap;
  /* ✅ Empêche le texte de sauter à la ligne si possible */
}

/* ✅ Lien stylisé */
.playlist-info a {
  display: inline-block;
  font-weight: bold;
  font-size: 19px;
  color: #1db954;
  text-decoration: none;
  background-color: rgba(29, 185, 84, 0.2);
  padding: 5px 5px;
  border-radius: 8px;
  margin-top: 0px;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

.playlist-info a:hover {
  background-color: #1aa34a;
  color: #fff;
}

img.presentation-image {
  max-width: 100%;
  /* Limiter la largeur maximale à 100% de la largeur du conteneur */
  height: auto;
  /* Hauteur automatique pour conserver le ratio de l'image */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease-in-out;
  margin-bottom: 20px;
  /* Ajouter un espace en bas pour séparer du contenu suivant */
}

img.presentation-image:hover {
  transform: scale(1.05);
}

#message {
  width: calc(100% - 22px);
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 20px;
  color: #333;
}

/* Champ de texte principal en "input#answer" */
input[type='text'] {
  width: 90%;
  height: 65px;
  padding: 15px;
  margin-bottom: 10px;
  margin-left: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 26px;
  color: #333;
}

input[type='text']:focus {
  border-color: #007bff;
  outline: none;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-5px);
  }

  40% {
    transform: translateX(5px);
  }

  60% {
    transform: translateX(-5px);
  }

  80% {
    transform: translateX(5px);
  }

  100% {
    transform: translateX(0);
  }
}

.shake {
  animation: shake 0.4s ease;
  border: 2px solid #ff4d4d !important;
  /* 🔥 Bordure rouge visible */
  box-shadow: 0 0 8px #ff4d4d;
  /* 🔥 Lueur rouge */
}

@font-face {
  font-family: 'DejaVuSans-Bold';
  src: url('/fonts/DejaVuSans-Bold.ttf') format('truetype');
  font-display: swap;
  /* ✅ Améliore les performances */
}

/* Style pour le bouton principal du login jeu mais PAS LE PLAY */
button {
  font-family: 'DejaVuSans-Bold', sans-serif;
  width: 140px;
  height: 57px;
  padding: 7px;
  background-color: #007bff;
  color: #fff;
  /* White text */
  border: none;
  font-size: 20px;
  font-weight: lighter;
  display: inline-block;
  cursor: pointer;
  transition:
    background-color 0.3s,
    transform 0.3s;
  margin-top: 30px;

  /* Adding text shadow to make white text pop */
  text-shadow:
    1px 1px 2px rgba(0, 0, 0, 0.8),
    0px 0px 10px rgba(255, 255, 255, 0.6);

  /* Adding hover effects */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);

  /* Line height for vertical alignment */
  line-height: 1.2;
  /* Adjust this value to control spacing between lines */
  text-align: center;
  /* Ensures text stays centered */
}

.custom-button {
  width: 140px;
  height: 45px;
  padding: 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 22px;
  font-weight: lighter;
  display: inline-block;
  cursor: pointer;
  transition:
    background-color 0.3s,
    transform 0.3s;
  margin-top: -2px;
}

button:hover {
  background-color: #0056b3;
  /* Darken the button on hover */
}

/* ✅ Ajustement de la largeur pour mobile */
@media (max-width: 768px) {
  /* Cacher certains éléments en mobile */
  .notification-icon,
  #notification-count,
  a.home-button,
  #toggle-chat-container,
  .playlist-info,
  .playlist-columns {
    display: none !important;
    width: 0 !important;
    /* utile seulement pour .playlist-columns */
  }

  .particle,
  .aside-alltime-top {
    display: none !important;
  }

  html,
  body {
    display: flex;
    font-family: Arial, sans-serif;
    background-position: center;
    background-repeat: repeat;
    flex-direction: column;
    min-height: 100svh;
    /* svh = small viewport height (plus fiable mobile) */
    height: auto;
    /* ne force pas 100% qui peut causer des “poussées” */
    overflow-x: hidden;
    /* évite tout scroll horizontal parasite */
    background-size: cover;
    /* fond + clean sur mobile */
    background-attachment: scroll;
    margin: 0;
    padding: 0;
  }

  .main-container {
    position: relative !important;
    z-index: 0;
    /* doit exister et gagner la cascade */
    width: 94vw;
    max-width: 420px;
    height: 74svh;
    /* svh = plus fiable sur mobile que vh */
  }

  /* Force l'absolu et les coords, même en mobile */
  .main-container .playlist-panel {
    position: absolute !important;
    top: 34vh !important;
    /* ajuste ici */
    right: 20vw !important;
    /* ajuste ici */
    max-width: 50vw !important;
    z-index: 3 !important;
  }

  /* Force la taille/scroll sur le conteneur de la liste */
  .main-container .playlist-panel .playlist-scroll {
    height: auto !important;
    /* neutralise un éventuel height */
    max-height: 100px !important;
    /* ajuste ici */
    overflow-y: auto !important;
    /* active le scroll vertical */
    -webkit-overflow-scrolling: touch;
    /* scroll fluide iOS */
  }

  /* Si un style cible l'ID (#playlist-list), on le surclasse explicitement */
  #playlist-list.playlist-scroll {
    height: auto !important;
    max-height: 155px !important;
    overflow-y: auto !important;
  }

  :root {
    --btn-shift: 20px;
    /* décale vers le bas */
    --btn-width: 85px;
    /* largeur mini encore réduite */
    --btn-height: 38px;
    /* hauteur actuelle conservée */
  }

  /* Centrage horizontal (tu gardes ce bloc existant) */
  .main-container .play-button,
  .main-container #player-count {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
  }

  /* Bouton Play plus compact en largeur */
  .main-container .play-button {
    bottom: calc(12vh - var(--btn-shift)) !important;
    width: clamp(var(--btn-width), 25vw, 110px) !important;
    /* réduit un peu la borne max */
    height: var(--btn-height) !important;
    font-size: clamp(12px, 3.2vw, 15px);
    /* texte ajusté pour rester lisible */
    line-height: 1;
    padding: 0;
  }

  /* Compteur joueurs suit le bouton */
  .main-container #player-count {
    bottom: calc(3vh - var(--btn-shift)) !important;
  }

  .main-container #current-playlist-label {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 72% !important;
    /* ↑ +10px vers le haut */
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 1000;
    /* ↑ */
  }

  /* 5) Compteur joueurs — centré sous le bouton */
  .main-container #player-count {
    bottom: 3vh !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  /* En-tête stable */
  .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: calc(10px + var(--safe-top));
    padding-bottom: 8px;
    /* espace haut adaptable */
    padding-bottom: min(2vh, 16px);
  }

  h1 {
    font-size: clamp(20px, 6vw, 28px);
    margin: 0;
    line-height: 1.2;
    text-align: center;
  }

  .join-card h1 {
    font-size: 18px !important;
    line-height: 1.2 !important;
    color: #fff !important;
  }

  .join-card h1::after {
    content: none;
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 18px;
    /* ajuste ici si besoin */
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #e6efff;
    /* couleur SOLIDE pour être visible */
  }

  /* Ajout d'espace sous le titre */
  .join-card h1::after {
    margin-bottom: 15px;
    /* espace supplémentaire */
  }

  /* Comme h1 a font-size:0, on force l'affichage en block */
  .join-card h1 {
    display: block;
  }

  h2 {
    font-size: clamp(13px, 4.5vw, 18px);
    margin-top: 2px;
    opacity: 0.9;
    margin: 2px 0 0 0;
    /* ← espace seulement avec h1 */
    line-height: 1.2;
    text-align: center;
  }

  /* Option: si ça chevauche encore le champ pseudo, on force son étage au-dessus */
  .username-form,
  .pseudo-form,
  #pseudo-section {
    position: relative;
    z-index: 3;
  }

  /* Items ultra-compacts */
  .playlist-item {
    grid-template-columns: 26px 1fr auto;
    /* ↓ 28px */
    gap: 5px;
    /* ↓ 6px */
    padding: 4px 6px;
    /* ok */
    min-height: 36px;
    padding: 4px 6px;
    gap: 5px;
    /* ↓ 45px */
  }

  .playlist-item:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
  }

  .playlist-cover {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    height: 26px;
    border-radius: 6px;
  }

  .playlist-name {
    font-size: 12px;
    line-height: 1.15;
  }

  .playlist-count {
    font-size: 10px;
  }

  .playlist-badge {
    display: none;
    font-size: 10px;
    padding: 2px 6px;
    display: none;
    /* gagne de la place; repasse en inline si tu veux */
  }

  /* Bouton Play bien centré */
  .play-button {
    position: absolute;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(120px, 35vw, 150px);
    /* reste centré, largeur fluide mais bornée */
    font-size: clamp(16px, 4vw, 22px);
    font-family: 'Bungee', sans-serif;
    background: linear-gradient(45deg, #0057e7, #0099ff);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 4;
  }

  /* Player count centré sous le bouton */
  #player-count {
    position: absolute;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(12px, 3vw, 14px);
    margin: 0;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    z-index: 1;
  }

  #player-count img {
    width: 32px;
    height: 32px;
  }

  #player-count-number {
    font-weight: bold;
    color: #62f10f;
  }

  /* État grisé lisible */
  #playlist-select:disabled {
    background-color: #eee;
    color: #777;
    border-color: #ddd;
  }

  input#username {
    position: absolute;
    margin-top: 70px;
    margin-left: -135px;
    max-width: 280px;
    max-height: 50px;
  }

  .warning-message {
    color: #ffcc00;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    position: absolute;
    top: 192px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 5px;
    max-width: 260px;
  }

  .navbar a .label {
    font-size: 10px !important;
    /* Réduit uniquement le texte */
  }

  .navbar a .icon {
    font-size: 14px !important;
    /* Icône lisible */
    margin-left: 2px;
  }

  .navbar {
    position: absolute !important;
    top: 10px !important;
    left: 5px !important;
    right: 5px !important;
    transform: none !important;

    /* largeur calée avec marges gauche/droite */
    width: calc(100% - 10px) !important;
    /* 24px = left + right */
    max-width: none !important;

    height: 44px !important;
    padding: 6px 10px !important;
    /* un peu + à droite pour "Déco" */
    box-sizing: border-box !important;
    border-radius: 12px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;

    background: rgba(34, 34, 34, 0.85) !important;
    backdrop-filter: blur(4px);
    z-index: 999 !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .navbar::-webkit-scrollbar {
    display: none;
  }

  .navbar a {
    font-size: 10px !important;
    padding: 4px 6px !important;
    border-radius: 10px !important;
    flex: 0 0 auto !important;
  }

  .navbar .profile-img {
    width: 22px !important;
    height: 22px !important;
  }

  .navbar .username {
    max-width: 40vw !important;
    font-size: 12px !important;
    padding: 2px 6px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 0 1 auto !important;
  }

  .classement-link {
    position: absolute;
    display: inline-block;
    border: 2px solid #ffffff;
    /* ✅ bordure blanche */
    border-radius: 8px;
    /* coins arrondis */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* ombre pour le contraste */
    background-color: rgba(0, 0, 0, 0.6);
    /* fond sombre semi-transparent */
    color: #fff;
    /* texte blanc */
    text-align: center;
    padding: 7px 4px;
    /* ↑ augmente la hauteur */
    width: 280px;
    font-size: 14px;
    margin-top: 30px;
    margin-left: -140px;
  }

  .info-icon {
    font-size: 20px;
    padding: 3px 6px;
    margin-left: -40px;
    margin-top: 10px;
    gap: 4px;
  }

  .info-icon svg {
    width: 28px !important;
    height: 28px !important;
  }

  .social-links-container {
    position: absolute;
    display: flex;
    justify-content: center;
    gap: 20px;
    height: 25px;
    margin-top: 800px;
    margin-left: 20px;
  }

  .social-links.youtube,
  .social-links.instagram {
    display: inline-block;
    padding: 5px 7px;
  }

  .social-link i.fa-discord {
    color: #5865f2;
    /* couleur officielle Discord */
  }

  .social-link:hover i.fa-discord {
    color: #7983f5;
  }

  .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    text-align: center;
    font-size: 12px;
    width: 100%;
  }

  h1 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 40px;
  }
}

@media (max-width: 375px) {
  .particle,
  .aside-alltime-top {
    display: none !important;
  }

  .main-container {
    position: relative !important;
    z-index: 0;
    /* doit exister et gagner la cascade */
    width: 94vw;
    max-width: 420px;
    height: 74svh;
    /* svh = plus fiable sur mobile que vh */
  }

  /* Force l'absolu et les coords, même en mobile */
  .main-container .playlist-panel {
    position: absolute !important;
    top: 38vh !important;
    /* ajuste ici */
    right: 20vw !important;
    /* ajuste ici */
    max-width: 50vw !important;
    z-index: 3 !important;
  }

  /* Force la taille/scroll sur le conteneur de la liste */
  .main-container .playlist-panel .playlist-scroll {
    height: auto !important;
    /* neutralise un éventuel height */
    max-height: 100px !important;
    /* ajuste ici */
    overflow-y: auto !important;
    /* active le scroll vertical */
    -webkit-overflow-scrolling: touch;
    /* scroll fluide iOS */
  }

  /* Si un style cible l'ID (#playlist-list), on le surclasse explicitement */
  #playlist-list.playlist-scroll {
    height: auto !important;
    max-height: 100px !important;
    overflow-y: auto !important;
  }

  :root {
    --btn-shift: 20px;
    /* décale vers le bas */
    --btn-width: 85px;
    /* largeur mini encore réduite */
    --btn-height: 38px;
    /* hauteur actuelle conservée */
  }

  /* Centrage horizontal (tu gardes ce bloc existant) */
  .main-container .play-button,
  .main-container #player-count {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
  }

  /* Bouton Play plus compact en largeur */
  .main-container .play-button {
    bottom: calc(10vh - var(--btn-shift)) !important;
    width: clamp(var(--btn-width), 25vw, 110px) !important;
    /* réduit un peu la borne max */
    height: var(--btn-height) !important;
    font-size: clamp(12px, 3.2vw, 15px);
    /* texte ajusté pour rester lisible */
    line-height: 1;
    padding: 0;
  }

  /* Compteur joueurs suit le bouton */
  .main-container #player-count {
    bottom: calc(3vh - var(--btn-shift)) !important;
  }

  .main-container #current-playlist-label {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 76% !important;
    /* ↑ +10px vers le haut */
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 1000;
    /* ↑ */
  }

  /* 5) Compteur joueurs — centré sous le bouton */
  .main-container #player-count {
    bottom: 1vh !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
}

/* Cacher panneau all-time en dessous de 1024px */
@media (min-width: 800px) and (max-width: 1024px) {
  .aside-alltime-top {
    display: none;
  }

  .main-container {
    position: absolute;
  }

  .classement-link {
    display: none;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
  a.home-button {
    display: none;
  }

  .main-container {
    position: absolute;
  }

  .particle,
  .aside-alltime-top {
    display: none !important;
  }
  .hero {
    min-height: auto !important;
    padding: 5px 0 10px !important;
  }
  .private-game-section {
    margin: 10px auto 40px !important;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  a.home-button {
    display: none;
  }

  .particle,
  .aside-alltime-top {
    display: none !important;
  }

  .button2 {
    width: 140px;
    height: 45px;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    /* White text */
    border: none;
    border-radius: 20px;
    font-size: 22px;
    font-weight: lighter;
    display: inline-block;
    cursor: pointer;
    transition:
      background-color 0.3s,
      transform 0.3s;
    margin-top: 30px;
  }
}

/* Styles for screens with a resolution of 1680x1050 or smaller */
@media screen and (max-width: 1680px) and (max-height: 1050px) {
  a.home-button {
    display: none;
  }

  .particle,
  .aside-alltime-top {
    display: none !important;
  }

  .button2 {
    width: 140px;
    height: 45px;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    /* White text */
    border: none;
    border-radius: 20px;
    font-size: 22px;
    font-weight: lighter;
    display: inline-block;
    cursor: pointer;
    transition:
      background-color 0.3s,
      transform 0.3s;
    margin-top: 30px;
  }
}

/* === PATCH DE REPLACEMENT FINAL === */

/* Base : assure que le hero sert de référence */
.hero {
  position: relative;
}

/* 1) Empêche les règles globales absolues de s'appliquer dans la carte */
.join-card #username,
.join-card .playlist-panel,
.join-card #current-playlist-label,
.join-card .play-button,
.join-card #player-count {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  margin: 0 !important;
  transform: none !important;
}

/* 2) Disposition verticale propre à l'intérieur de la carte */
.join-card #login {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.join-card #username {
  max-width: 100%;
  height: 46px;
  padding: 10px 12px;
}

.join-card .playlist-select-container {
  margin-top: 4px;
}

.join-card .playlist-panel {
  width: 100% !important;
  background: #141a2a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px;
}

.join-card .playlist-scroll {
  max-height: 260px;
}

/* 3) Label "Playlist en cours" sous la liste */
.join-card #current-playlist-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  margin-top: 6px !important;
}

/* 4) Bouton JOUER plein large et compteur en dessous */
.join-card .play-button {
  width: 100% !important;
  height: 52px;
  font-size: 18px;
  border-radius: 12px;
  margin-top: 8px !important;
}

.join-card #player-count {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #9aa3b2;
  padding: 0;
  border: 0;
}

.join-card #player-count img {
  width: 18px;
  height: 18px;
}

/* 5) Positionnement de la carte */
@media (min-width: 981px) {
  .join-card {
    position: absolute;
    right: 6vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }
}

@media (max-width: 980px) {
  .join-card {
    position: static;
    transform: none;
    margin: 24px auto;
    width: min(560px, 92vw);
    z-index: 10;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1366px) and (orientation: portrait) {
  .join-card {
    position: static !important;
    transform: none !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  .hero-inner {
    grid-template-columns: 1fr !important;
  }
  .hero {
    min-height: auto !important;
    padding: 5px 0 10px !important;
  }
  .private-game-section {
    margin: 10px auto 40px !important;
  }
}

/* 6) Évite que d’anciens styles absolus reciblent ces éléments hors carte */
.hero input#username,
.hero #current-playlist-label,
.hero .play-button,
.hero #player-count,
.hero .playlist-panel {
  position: static;
}

/* Empêche l'overlay du hero de bloquer les clics */
.hero::after {
  pointer-events: none !important;
}

/* Les panneaux d’onglets restent sous la carte */
.sliding-panels .panel {
  position: relative;
  z-index: 1;
}

/* Sécurité : header au-dessus mais hors de la zone input */
.header-bar,
.site-header {
  position: relative;
  z-index: 50;
}

/* Forcer l’interaction à l’intérieur de la carte */
.join-card,
.join-card * {
  pointer-events: auto;
}

/* --- Header: liens/onglets compacts (override) --- */
.header-tabs {
  gap: 6px;
}

.tab-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.2s;
}

.tab-link:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

/* --- Zone sous header: grille 2 colonnes --- */
.hero {
  position: relative;
  min-height: auto;
  padding: 10px 0 56px;
  background: none !important;
}

.hero::after {
  display: none !important;
}

/* enlève le voile cliquable */

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

/* Illustration à gauche (mets ton image ici) */
.hero-illustration {
  min-height: 380px;
  border-radius: 18px;
  background: #0f1423 url('/img/illustration-home.webp') center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Carte “Jouer” dans le flux (plus d'absolu en desktop) */
@media (min-width: 981px) {
  .join-card {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0;
    width: 100%;
  }
}

/* Responsive: pile en une colonne */
@media (max-width: 980px) {
  .hero {
    padding: 5px 0 10px;
  }
  .private-game-section {
    margin: 15px auto 40px !important;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-illustration {
    min-height: 220px;
  }

  .join-card {
    margin-top: 16px;
  }
}

/* — petits raffinements visuels dans la join-card (facultatif) */
.join-card {
  background: linear-gradient(180deg, #141a2a, #0f1423);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(6px);
}

.join-card h1 {
  font-size: 22px;
  margin: 0 0 14px;
}

#login input#username {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0e1320;
  color: #fff;
  outline: none;
}

#login input#username:focus {
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.35);
}

.playlist-select-container {
  margin-top: 12px;
}

.join-card .playlist-panel {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px;
  position: static !important;
}

.join-card .playlist-scroll {
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.join-card .play-button {
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(90deg, #4f46e5, #22d3ee);
  color: #081018;
  font-weight: 800;
  cursor: pointer;
}

.join-card .play-button:disabled {
  opacity: 0.6;
  filter: grayscale(40%);
  cursor: not-allowed;
}

/* === Illustration gauche : image + overlay + texte === */
.hero-illustration {
  position: relative;
  border-radius: 18px;
  background: #0f1423 center/cover no-repeat;
  /* l'image arrive via style inline background-image */
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  min-height: 460px;
  overflow: hidden;
}

/* voile pour lisibilité du texte, façon Massive Music Quiz */
.hero-illustration::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 7, 18, 0.25) 0%,
    rgba(3, 7, 18, 0.65) 55%,
    rgba(3, 7, 18, 0.85) 100%
  );
  pointer-events: none;
}

/* Bloc texte superposé */
.hero-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #e8eefc;
}

.hero-title {
  margin: 0;
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 16px);
  color: #cfd7f7;
  max-width: 52ch;
}

.hero-cta {
  align-self: flex-start;
  margin-top: 6px;
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, #4f46e5, #22d3ee);
  color: #081018;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.hero-cta:hover {
  filter: brightness(1.05);
}

.hero-note {
  margin: 2px 0 0;
  font-size: 13px;
  color: #9aa3b2;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-illustration {
    min-height: 280px;
  }

  .hero-copy {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

/* === Compactage du bloc texte sur l'illustration === */
.hero-copy {
  left: 16px;
  right: 16px;
  bottom: 16px;
  gap: 6px;
  max-width: 68ch;
  /* évite les lignes très longues */
}

/* Titre "Guess The Song" encore plus grand et impactant */
.hero-title {
  font-size: clamp(26px, 4vw, 42px);
  /* ✅ Plus grand partout */
  font-weight: 800;
  /* plus massif */
  letter-spacing: 0.6px;
  /* espacement pour respirer */
  text-transform: uppercase;
  /* majuscules pour plus de présence */
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.55);
  /* glow plus marqué pour le contraste */
}

.hero-subtitle {
  font-size: clamp(12px, 1.4vw, 14px);
  /* avant 14–16px */
  opacity: 0.95;
}

.hero-cta {
  margin-top: 4px;
  padding: 8px 12px;
  /* bouton plus fin */
  font-size: 14px;
  border-radius: 10px;
}

/* Voile plus léger pour mieux voir l'illustration */
.hero-illustration::after {
  background: linear-gradient(
    180deg,
    rgba(3, 7, 18, 0.12) 0%,
    rgba(3, 7, 18, 0.42) 55%,
    rgba(3, 7, 18, 0.65) 100%
  );
}

/* Mobile : encore plus petit pour ne pas sortir du cadre */
@media (max-width: 980px) {
  .hero-title {
    font-size: 18px;
  }

  .hero-subtitle {
    font-size: 12px;
  }

  .hero-cta {
    font-size: 13px;
    padding: 7px 11px;
  }

  .hero-copy {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

/* === Footer collé en bas === */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main,
.hero {
  flex: 1;
}

footer.site-footer {
  margin-top: auto;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

footer.site-footer .social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

footer.site-footer a[href*='youtube'] i {
  color: #ff0000;
}

footer.site-footer a[href*='instagram'] i {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.footer-legal {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal:hover {
  color: var(--text);
}

/* Mobile */
@media (max-width: 600px) {
  footer.site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
  }
  .footer-right {
    justify-content: center;
  }
}

/* Mobile-first: illustration masquée et pas d'image chargée */
.hero-illustration {
  display: none !important;
  background: none !important;
  min-height: 0 !important;
}

/* Desktop (>=981px): ré-affiche + remet l'image */
@media (min-width: 981px) {
  .hero-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
  }

  .hero-illustration {
    display: block !important;
    min-height: 460px !important;
    border-radius: 18px;
    background: #0f1423 url('/img/illustration-home.png') center/cover no-repeat !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    overflow: hidden;
  }
}

/* ==== HEADER — FIX MOBILE OVERFLOW ==== */
@media (max-width: 768px) {
  /* 1) Le header devient une colonne : titre puis 2 bandes scrollables */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 60;
  }

  .lang-switcher {
    display: none !important;
  }

  .header-bar {
    height: auto;
    min-height: 56px;
    padding: 6px 8px;
    gap: 6px;
    display: flex;
    flex-direction: column;
    /* brand puis les bandes */
    align-items: stretch;
  }

  .brand {
    padding-left: 2px;
  }

  /* 2) Bandes de pilules : aucune ne casse à la ligne,
        on scrolle horizontalement plutôt que déborder */
  .header-tabs,
  .nav-right,
  .navbar {
    /* si ton ancien .navbar existe encore */
    display: flex;
    flex-wrap: nowrap;
    /* no wrap */
    overflow-x: auto;
    /* scroll horizontal */
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding: 4px 2px;
    max-width: 100%;
    scrollbar-width: none;
    /* FF: cacher la scrollbar */
  }

  .header-tabs::-webkit-scrollbar,
  .nav-right::-webkit-scrollbar,
  .navbar::-webkit-scrollbar {
    display: none;
  }

  /* WebKit: cacher la scrollbar */

  /* 3) Empêche les pilules de s’étirer et de pousser le layout */
  .header-tabs > *,
  .nav-right > *,
  .navbar > * {
    flex: 0 0 auto;
    /* largeur auto, pas d’étirement */
  }

  /* 4) Taille compacte des boutons/pilules */
  .tab-link,
  .records-button,
  .likes-button,
  .stats-button,
  .logout-button,
  .profile-link,
  .suggest-button,
  .login-button-google,
  .username {
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 14px;
    line-height: 1;
  }

  .nav-right .suggest-button {
    display: none !important;
  }

  .profile-img {
    width: 26px;
    height: 26px;
  }

  /* 5) Nom tronqué (pas de débordement) */
  .username {
    max-width: 44vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 6) Boîte de notif contenue à l’écran */
  #notification-box {
    right: 0;
    left: auto;
    width: min(88vw, 300px);
  }
}

@media (max-width: 768px) {
  .logout-button::after {
    content: 'Déco';
    /* remplace le texte */
  }

  .logout-button {
    font-size: 11px;
    padding: 4px 6px;
  }

  /* Cache le texte d'origine */
  .logout-button {
    font-size: 0;
    /* masque le texte réel */
  }

  .logout-button::after {
    font-size: 12px;
    /* texte visible */
    font-weight: 500;
  }
}

/* === Ajustement join-card pour grands écrans smartphones (ex: iPhone 14 Pro/Max) === */
@media (min-width: 430px) and (max-width: 820px) and (orientation: portrait) {
  .join-card {
    max-width: 380px;
    /* moins large que 92vw pour éviter effet "géant" */
    margin: 0 auto;
    /* centre horizontalement */
    position: relative;
    top: 50%;
    /* centre verticalement */
    transform: translateY(-50%);
  }
  .hero {
    padding: 5px 0 10px !important;
    min-height: auto !important;
  }
  .private-game-section {
    margin: 10px auto 40px !important;
  }
}

@media (min-width: 981px) and (max-width: 1100px) {
  .hero {
    padding: 5px 0 10px;
    min-height: auto;
  }
  .private-game-section {
    margin: 10px auto 40px !important;
  }
}

/* Sécurité: pour les écrans < 380px (ex: Galaxy S8) -> on garde full largeur */
@media (max-width: 380px) {
  .join-card {
    max-width: 92vw;
    margin: 24px auto;
    top: auto;
    transform: none;
  }
}

/* === iPhone 14 / 14 Pro Max (430px portrait) : centrer + largeur confortable === */
@media (min-width: 420px) and (max-width: 460px) and (orientation: portrait) {
  .hero-inner {
    display: block;
    /* évite tout alignement de grid qui tire à gauche */
  }

  .join-card {
    max-width: 420px;
    /* moins compact que 380px */
    width: 100%;
    margin: 24px auto;
    /* centre horizontalement */
    position: static !important;
    /* annule tout top/right hérité */
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    /* pas de translateY qui peut décaler */
    align-self: center;
    /* sécurité si grid/flex s’applique */
  }
}

/* === iPhone 14 / 14 Pro Max (430x932) — décompactage vertical === */
@media (min-width: 420px) and (max-width: 460px) and (min-height: 900px) and (orientation: portrait) {
  .join-card {
    max-width: 420px;
    width: 100%;
    margin: 40px auto;
    /* plus de marge haut/bas pour qu'elle "respire" */
    padding: 28px 24px !important;
    /* plus de padding intérieur */
    position: static !important;
    top: auto !important;
    transform: none !important;
  }

  #login input#username {
    height: 50px;
    /* champ pseudo un poil plus haut */
    font-size: 16px;
  }

  .playlist-panel {
    max-height: 320px;
    /* plus de hauteur visible pour la liste */
  }

  .join-card .play-button {
    height: 56px;
    font-size: 18px;
  }
}

.join-card .info-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  margin: -4px 0 8px 0;
  /* espace avant/après */
  color: #cfd7f7;
  text-decoration: none;
}

.join-card .info-icon i {
  font-size: 18px;
  color: #4f46e5;
}

.join-card .info-icon:hover {
  color: #ffffff;
}

/* Barre d'entête dans la carte : titre + FAQ */
.join-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  /* espace clair au-dessus de l'input */
}

.join-card-header h1 {
  margin: 0;
}

/* Bouton/puce FAQ propre (remplace .info-icon) */
.faq-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #cfd7f7;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}

.faq-pill i {
  font-size: 16px;
  color: #4f46e5;
}

.faq-pill:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Mobile : un poil plus compact */
@media (max-width: 480px) {
  .faq-pill {
    padding: 5px 8px;
    font-size: 13px;
  }
}

/* === Titre Choisis un univers : plus lisible et moins "gras" === */
.join-card-header h1 {
  color: #ffffff !important;
  font-weight: 500;
  /* moins gras que 800 */
  font-size: 22px;
  letter-spacing: 0.6px;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.6),
    0 0 12px rgba(255, 255, 255, 0.15);
  margin-bottom: 10px;
  /* petit souffle avant le champ pseudo */
}

/* === Espace supplémentaire sous "Choisissez une playlist :" === */
.join-card .playlist-select-container label {
  display: block;
  margin-bottom: 10px;
  /* espace avant la liste */
  font-size: 14px;
  font-weight: 500;
  color: #cfd6e6;
}

/* === Bouton JOUER : police plus grande et plus impactante === */
.join-card .play-button {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  /* police plus nette */
  font-size: 20px;
  /* un peu plus gros */
  font-weight: 800;
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  background: linear-gradient(90deg, #7c3aed, #22d3ee) !important;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.join-card .play-button:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
}

/* === PLAYLIST – STYLE TWITCH (gris sombre, pas de bg/hover, accent violet) === */

/* Panneau (conteneur) : gris très sombre, cadre discret */
.join-card .playlist-panel {
  padding: 6px !important;
  background: #1d1a22 !important;
  /* ~ Twitch sidebar */
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 10px;
  box-shadow: none !important;
}

/* Reset dur sur TOUS les items (écrase zebra, fonds, bordures, focus) */
.join-card .playlist-scroll > *,
.playlist-item,
.playlist-item:nth-child(even),
.playlist-item:nth-child(odd) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Items : texte gris clair, aucune plaque de fond */
.playlist-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  margin: 2px 0;
  cursor: pointer;
  color: #e6e6e6;
  /* comme Twitch */
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.12s ease;
}

/* Hover : pas de fond, juste texte un peu plus clair */
.playlist-item:hover {
  background: transparent !important;
  color: #ffffff;
}

/* Actif : aucune plaque de fond — juste une barre violette à gauche */
.playlist-item.active {
  background: transparent !important;
  color: #ffffff;
  font-weight: 600;
  border-left: 3px solid #0a21eef5 !important;
  /* violet Twitch */
  padding-left: 7px;
  /* compense la barre */
}

/* Focus navigateur neutralisé (évite le halo bleu/violet) */
.playlist-item:focus,
.playlist-item:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Scrollbar sombre et fine (optionnel) */
.join-card .playlist-scroll {
  max-height: 300px;
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a #0f0f10;
  gap: 4px;
}

.join-card .playlist-scroll::-webkit-scrollbar {
  width: 6px;
}

.join-card .playlist-scroll::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 6px;
}

.join-card .playlist-scroll::-webkit-scrollbar-track {
  background: #0f0f10;
}

/* === Typo plus lisible sur les items */
.playlist-item {
  color: #f2f5ff;
  /* plus clair */
  font-size: 15px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* pour les séparateurs */
  position: relative;
  margin: 0;
  /* pas d'espace vertical entre items */
}

/* === Séparateur fin entre chaque playlist (pas de fond) */
.join-card .playlist-scroll {
  gap: 0;
}

/* important pour un trait continu */
.playlist-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 62px;
  /* aligne le trait après l’icône (48) + gap (~14) */
  right: 8px;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  /* fin et discret */
}

/* Le trait réagit légèrement au survol/actif pour garder la hiérarchie */
.playlist-item:hover::after {
  background: rgba(255, 255, 255, 0.12);
}

.playlist-item.active::after {
  background: rgba(255, 255, 255, 0.16);
}

/* === On garde ton actif “barre colorée” à gauche (déjà en place) === */
/* .playlist-item.active{ border-left:3px solid #0a21eef5; padding-left:7px; color:#fff; font-weight:600; } */

/* === PLAYLISTS — hauteur parfaitement uniforme =================== */
.join-card .playlist-panel {
  padding: 6px !important;
}

.join-card .playlist-scroll {
  display: block;
  /* évite un grid/gap qui fausse les hauteurs */
  padding: 0 !important;
  margin: 0 !important;
}

/* Reset fort sur chaque item (écrase tout style hérité) */
.join-card .playlist-scroll .playlist-item {
  display: grid !important;
  grid-template-columns: 48px 1fr auto !important;
  align-items: center !important;

  /* même padding & hauteur pour TOUTES les lignes */
  padding: 12px 10px !important;
  min-height: 54px !important;

  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  color: #f4f6ff;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* fin trait de séparation (n’ajoute PAS de hauteur au premier) */
.join-card .playlist-scroll .playlist-item + .playlist-item {
  border-top: 1px solid rgba(247, 237, 237, 0.1) !important;
}

/* actif façon Twitch (barre violette à gauche) sans changer la hauteur */
.join-card .playlist-scroll .playlist-item.active {
  border-left: 3px solid #0a21eef5 !important;
  padding-left: 7px !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.join-card .playlist-scroll .playlist-item:hover {
  background: transparent !important;
  color: #fff !important;
}

/* === INPUT PSEUDO — fond blanc / texte noir / focus blanc ========= */
#login input#username {
  height: 60px !important;
  font-size: 16px !important;

  background: #ffffff !important;
  color: #111 !important;

  border: 1px solid #ffffff !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

#login input#username::placeholder {
  color: #111 !important;
  opacity: 0.6 !important;
}

#login input#username:focus {
  border-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35) !important;
  outline: none !important;
}

/* === COMPTEUR & TEXTE BAS — tout en blanc + icône plus grande ===== */
#player-count,
#player-count * {
  color: #fff !important;
}

#player-count {
  font-size: 16px !important;
  gap: 10px !important;
}

#player-count img {
  width: 28px !important;
  height: 28px !important;
}

.small-muted,
.small-muted a {
  color: #fff !important;
}

/* === PLACEHOLDER EN NOIR ====================== */
#login input#username::placeholder {
  color: #444141 !important;
  opacity: 0.75 !important;
  /* assez visible mais pas criard */
}

/* === INPUT PSEUDO — plus lisible ====================== */
#login input#username {
  color: #131212 !important;
  font-weight: 500 !important;
  height: 64px !important;
  font-size: 18px !important;
  letter-spacing: 0.4px;
}

/* === SCROLLBAR PLAYLIST EN BLANC ================== */
.join-card .playlist-scroll {
  scrollbar-width: thin;
  scrollbar-color: #ffffff #1a1a1b;
  /* curseur blanc, fond gris sombre */
}

/* Pour Chrome / Edge / Safari */
.join-card .playlist-scroll::-webkit-scrollbar {
  width: 6px;
}

.join-card .playlist-scroll::-webkit-scrollbar-thumb {
  background-color: #ffffff;
  /* curseur blanc */
  border-radius: 6px;
}

.join-card .playlist-scroll::-webkit-scrollbar-track {
  background-color: #1a1a1b;
  /* fond sombre du panneau */
}

/* === Nom de playlist en blanc pur === */
.playlist-item .playlist-name,
.playlist-item .playlist-title {
  color: #ffffff !important;
}

/* === C. Texte du bas & icône : en BLANC + icône plus grande === */
.player-count,
.player-count * {
  color: #e5e7eb !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.player-count img {
  display: none !important;
}

/***** === PATCH RÉTABLI — Panel Playlists (look “ancien”) === *****/

/* Conteneur panel : fond gris-bleu + cadre discret */
.join-card .playlist-panel {
  background: #1a2233 !important;
  border: 1px solid #2f3b52 !important;
  border-radius: 12px !important;
  padding: 8px !important;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6) !important;
  position: relative !important;
}

/* Liste : hauteur et scroll comme avant, pas de gap */
.join-card .playlist-scroll {
  max-height: 260px !important;
  overflow-y: auto !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  /* scrollbar blanche */
  scrollbar-width: thin;
  scrollbar-color: #ffffff #1a2233;
}

.join-card .playlist-scroll::-webkit-scrollbar {
  width: 6px;
}

.join-card .playlist-scroll::-webkit-scrollbar-thumb {
  background: #ffffff;
  border-radius: 6px;
}

.join-card .playlist-scroll::-webkit-scrollbar-track {
  background: #1a2233;
}

/* Item : grille + fond très léger + trait séparateur */
.join-card .playlist-scroll .playlist-item {
  display: grid !important;
  grid-template-columns: 48px 1fr auto !important;
  align-items: center !important;
  padding: 4px !important;
  margin: 0 !important;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  outline: 0 !important;
}

/* enlève d’anciens traits “custom” éventuels */
.join-card .playlist-scroll .playlist-item::after {
  display: none !important;
}

/* Effet zebra */
.join-card .playlist-scroll .playlist-item:nth-child(even) {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Coins arrondis premier / dernier + pas de double trait en bas */
.join-card .playlist-scroll .playlist-item:first-child {
  border-top-left-radius: 10px !important;
  border-top-right-radius: 10px !important;
}

.join-card .playlist-scroll .playlist-item:last-child {
  border-bottom-left-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
  border-bottom: none !important;
}

/* Hover BLEU (plus visible) */
.join-card .playlist-scroll .playlist-item:hover {
  background: rgba(80, 120, 200, 0.25) !important;
  /* bleu clair translucide */
  border-color: rgba(99, 155, 255, 0.6) !important;
  box-shadow: 0 0 6px rgba(99, 155, 255, 0.35) !important;
  /* petit glow bleu */
  transform: none !important;
}

/* Actif : plus lumineux + petit accent violet à gauche */
/* === STYLE POUR ITEM ACTIF (sélectionné) === */
.join-card .playlist-scroll .playlist-item.active {
  background: rgba(99, 102, 241, 0.35) !important;
  /* bleu/violet bien visible */
  border: 1px solid #6366f1 !important;
  border-left: 3px solid #6366f1 !important;
  /* barre accentuée à gauche */
  box-shadow:
    0 0 10px rgba(99, 102, 241, 0.45),
    inset 0 0 0 1px rgba(99, 102, 241, 0.45) !important;
  padding-left: 7px !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  font-weight: 600;
}

/* Vignette et textes (blanc pur) */
.join-card .playlist-scroll .playlist-cover {
  width: 36px !important;
  height: 36px !important;
  border-radius: 6px !important;
  object-fit: cover !important;
  background: #111827 !important;
}

.join-card .playlist-scroll .playlist-name {
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.join-card .playlist-scroll .playlist-count {
  color: #9ca3af !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
}

/* ⚠️ Neutralise les règles “twitch” qui cassaient le rendu */
.join-card .playlist-scroll > *,
.playlist-item:nth-child(even),
.playlist-item:nth-child(odd) {
  background: unset;
  border: unset;
  box-shadow: unset;
}

.playlist-item.active {
  border-left: unset;
}

/* la vraie règle active est ci-dessus */

/* ====== MOBILE – plus de place pour la liste, moins pour le bas ====== */
@media (max-width: 480px) {
  .hero {
    padding: 5px 0 10px;
  }
  .private-game-section {
    margin: -10px auto 40px !important;
  }
  /* Carte plus compacte globalement */
  .join-card {
    padding: 14px 12px;
    border-radius: 14px;
  }

  /* Titre + FAQ un peu plus petits pour gagner de la place */
  .join-card-header {
    margin-bottom: 8px;
  }

  .join-card-header h1 {
    font-size: 22px;
    letter-spacing: 0.5px;
    margin: 0;
  }

  .faq-pill {
    font-size: 12px;
    padding: 4px 8px;
  }

  /* Masquer le casque uniquement sur mobile */
  .join-card-header h1 .icon,
  .join-card-header h1 svg,
  .join-card-header h1 i {
    display: none !important;
  }

  /* Champ pseudo : légèrement plus fin en hauteur */
  #login input#username {
    height: 40px;
    /* tu peux descendre à 52 si besoin */
    font-size: 16px;
  }

  /* Panel playlists : resserrer les marges et AUGMENTER la hauteur visible */
  .playlist-select-container {
    margin-top: 8px;
  }

  .join-card .playlist-panel {
    margin-top: 6px;
  }

  .join-card .playlist-scroll {
    max-height: 62vh;
    /* ↗️ l’élément clé : plus de playlists visibles */
  }

  /* Items : compacts mais lisibles */
  .playlist-item {
    min-height: 50px;
    padding: 8px 10px !important;
  }

  /* Bouton : moins haut et texte un peu plus petit */
  .join-card .play-button {
    height: 44px;
    /* ↘️ */
    font-size: 15px;
    letter-spacing: 0.6px;
    margin-top: 10px;
  }

  /* Compteur et phrase du bas plus discrets */
  #player-count {
    font-size: 13px;
    margin-top: 6px;
  }

  .small-muted {
    font-size: 12px;
    margin-top: 6px;
  }
}

/* iPhone 12/14 Pro/Max (largeur ~ 390–432) : on pousse encore la hauteur */
@media (min-width: 390px) and (max-width: 432px) and (orientation: portrait) {
  .join-card .playlist-scroll {
    max-height: 66vh;
    /* encore + de place pour scroller */
  }
}

/* Petits écrans (≤360px) : un cran plus compact */
@media (max-width: 360px) {
  .join-card .playlist-scroll {
    max-height: 58vh;
  }

  .join-card .play-button {
    height: 42px;
    font-size: 14px;
  }
}

/* Corrige la couleur du logo Google dans le bouton */
.login-button-google svg,
.login-button-google img {
  fill: initial !important;
  color: initial !important;
  filter: none !important;
}

/* === Bouton Google officiel === */
.login-button-google {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  /* fond blanc officiel */
  color: #3c4043;
  /* texte gris Google */
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #dadce0;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.login-button-google:hover {
  background: #f7f8f8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.login-button-google .google-icon {
  width: 18px;
  height: 18px;
}

/* --- Kill the veil on the hero illustration, for good --- */
.hero-illustration::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* ✅ Bouton Google - version mobile */
@media (max-width: 480px) {
  .login-button-google {
    transform: scale(0.85);
    /* Réduction globale du bouton */
    transform-origin: top right;
    /* Garde l’alignement en haut à droite */
    padding: 4px 8px;
    /* Moins de padding */
    font-size: 12px;
    /* Texte plus petit */
    gap: 6px;
  }

  .login-button-google img {
    width: 16px;
    /* Icône Google plus petite */
    height: 16px;
  }
}

/* 🔧 Champ pseudo plus compact */
#login input#username,
.join-card #username {
  height: 45px !important;
  /* ↓ hauteur réduite */
  padding: 6px 10px !important;
  /* ↓ padding vertical */
  border-radius: 8px !important;
}

.pl-counter {
  margin-left: 0.5rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

.pl-counter.playing {
  font-weight: 600;
}

/* ===== Playlists home: layout anti-wrap, ultra spécifique ===== */
#playlist-list .playlist-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  justify-content: flex-start !important;
  /* pas de space-between ici */
  flex-wrap: nowrap !important;
  /* aucune deuxième ligne */
  overflow: hidden !important;
}

#playlist-list .playlist-cover {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
}

#playlist-list .playlist-meta {
  flex: 1 1 auto !important;
  /* prend la place restante */
  min-width: 0 !important;
}

#playlist-list .playlist-name,
#playlist-list .playlist-count {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#playlist-list .playlist-count:empty {
  display: none !important;
}

/* Groupe de droite = une seule ligne compacte */
#playlist-list .playlist-right {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

/* Compteur compact */
#playlist-list .pl-counter {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  opacity: 0.9;
  font-variant-numeric: tabular-nums;
}

#playlist-list .pl-counter .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  display: inline-block;
}

/* Bonhomme compact */
#playlist-list .playlist-players {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

/* ─── Partie privée ────────────────────────────── */
.private-game-section {
  max-width: 1100px;
  margin: -40px auto 40px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
.private-game-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 48px 32px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  color: #111;
}
.private-game-header {
  position: absolute;
  top: 18px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.private-bar {
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, #34d399, #3b82f6);
  border-radius: 2px;
}
.private-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}
.private-icon-wrap {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  font-size: 32px;
}
.private-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.private-heading {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.private-desc {
  font-size: 14px;
  color: #9aa3b2;
  margin: 0;
  max-width: 500px;
  line-height: 1.5;
}
.spotify-link {
  color: #1db954;
  font-weight: 700;
}
.deezer-link {
  color: #a78bfa;
  font-weight: 700;
}
.private-cta {
  display: inline-flex;
  align-items: center;
  padding: 11px 32px;
  background: #f1f5f9;
  border: none;
  border-radius: 10px;
  color: #1e1b4b;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.15s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.private-cta:hover {
  transform: translateY(-1px);
  background: #fff;
}

@media (max-width: 700px) {
  .private-game-card {
    flex-direction: column;
    padding: 48px 22px 22px;
  }
}

@media (max-width: 1078px) and (min-width: 945px) {
  .tab-link {
    font-size: 11px !important;
    padding: 4px 7px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 967px) and (min-width: 770px) {
  .tab-link {
    font-size: 11px !important;
    padding: 4px 7px !important;
    white-space: nowrap !important;
  }
}

/* ══════════════════════════════════════════════════════════
   HAMBURGER MENU
══════════════════════════════════════════════════════════ */
.hamburger-btn {
  display: none;
  position: fixed;
  top: -20px;
  right: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 20px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
  z-index: 998;
}
.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Overlay sombre derrière le panneau */
.hamburger-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999;
}
.hamburger-overlay.open {
  display: block;
}

/* Panneau latéral */
.hamburger-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #111827;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 20px 0 32px;
  overflow-y: auto;
}
.hamburger-panel.open {
  transform: translateX(0);
}

/* Bouton fermer */
.hamburger-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #9aa3b2;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  opacity: 0.5;
}
.hamburger-close:hover {
  color: #fff;
  opacity: 1;
}

/* Bloc utilisateur */
.hamburger-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 20px;
  border-bottom: 2px solid rgba(99, 120, 255, 0.5); /* ← déplacé ici */
  margin-bottom: 0;
}
.hamburger-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.hamburger-username {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Liens */
.hamburger-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 12px;
  flex: 1;
  border-top: none;
  border-bottom: none;
}

.hamburger-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 0;
  color: #e8eefc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.15s,
    border-left 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid transparent;
}

.hamburger-link:last-child {
  border-bottom: none;
}

.hamburger-link:hover {
  background: rgba(99, 120, 255, 0.08);
  border-left: 3px solid rgba(99, 120, 255, 0.6);
  color: #fff;
}
.hamburger-logout {
  color: #9aa3b2;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12); /* ← ligne grise au-dessus déco */
  padding-top: 16px;
  border-radius: 0;
  border-left: 3px solid transparent;
}

.hamburger-logout:hover {
  color: #fff;
  background: rgba(255, 80, 80, 0.08);
  border-left: 3px solid rgba(255, 80, 80, 0.5);
}

.hamburger-suggest {
  margin-top: 8px;
}
.hamburger-suggest:hover {
  background: rgba(255, 255, 255, 0.07);
}

.hamburger-login {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

/* Switcher langue bas du panneau */
.hamburger-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 20px 0;
}

/* ══════════════════════════════════════════════════════════
   MOBILE : afficher hamburger, cacher nav classique
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  /* Cache tous les liens de nav sur mobile */
  .nav-right .profile-link,
  .nav-right .stats-button,
  .nav-right .records-button,
  .nav-right .likes-button,
  .nav-right .suggest-button,
  .nav-right .logout-button,
  .nav-right .login-button-google,
  .nav-right .lang-switcher,
  .nav-right .username,
  .nav-right .profile-img,
  .header-tabs {
    display: none !important;
  }

  /* Garde uniquement la cloche et le hamburger */
  .nav-right {
    margin-left: auto;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    overflow: visible !important;
  }

  .header-bar {
    height: 56px !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0 12px !important;
    gap: 0 !important;
  }

  .hamburger-login .google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
}

/* ══════════════════════════════════════════════════════════
   MODAL AUTH (Google / Twitch)
══════════════════════════════════════════════════════════ */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.auth-modal-box {
  position: relative;
  z-index: 10000;
  background: linear-gradient(180deg, #141a2a, #0f1423);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px 32px 32px;
  width: min(420px, 92vw);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
  overflow: hidden;
}

.auth-modal-close {
  all: unset;
  position: absolute;
  top: 14px;
  right: 16px;
  color: #9aa3b2;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s;
  z-index: 1;
}
.auth-modal-close:hover {
  opacity: 1;
  color: #fff;
}
.auth-modal-close:focus,
.auth-modal-close:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.auth-modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}

.auth-modal-subtitle {
  font-size: 14px;
  color: #9aa3b2;
  margin: 0 0 28px;
}

.auth-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.15s,
    opacity 0.15s;
  cursor: pointer;
}
.auth-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.auth-btn-google {
  background: #fff;
  color: #1e1b4b;
}

.auth-btn-twitch {
  background: #9146ff;
  color: #fff;
}

.auth-btn-discord {
  background: #5865f2;
  color: #fff;
  border: none;
}
.auth-btn-discord:hover {
  background: #4752c4;
}

/* ── Bouton connexion header ── */
a.login-button-google {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #1e1b4b;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.15s;
}
a.login-button-google:hover {
  opacity: 0.9;
  color: #1e1b4b;
}

/* ── Bouton hero CTA ── */
a.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #081018;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}
a.hero-cta:hover {
  opacity: 0.9;
  color: #081018;
}

/* ══════════════════════════════════════════════════════════
   NOUVEAU LAYOUT — RESET COMPLET (toujours en dernier)
   Ces règles écrasent tout ce qui précède dans le fichier.
══════════════════════════════════════════════════════════ */

/* Hero */
section.hero {
  position: static !important;
  min-height: unset !important;
  background: #181e29 !important;
  padding: 24px 16px 32px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
section.hero::after {
  display: none !important;
}

.hero-inner {
  position: static !important;
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  display: block !important;
}

/* Join card */
.join-card {
  position: static !important;
  transform: none !important;
  right: unset !important;
  top: unset !important;
  width: 100% !important;
  min-height: unset !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 20px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #141a2a, #0f1423) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.join-card h1 {
  font-size: 17px !important;
  margin: 0 0 14px !important;
}

/* Input + bouton sur la même ligne */
.join-top-row {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  margin-bottom: 14px !important;
  width: 100% !important;
}

/* Reset complet de l'input */
#login .join-top-row input#username {
  all: unset !important;
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 11px 14px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: #0e1320 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-family: inherit !important;
  outline: none !important;
}
#login .join-top-row input#username:focus {
  border-color: rgba(79, 70, 229, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25) !important;
}

/* Reset complet du bouton */
#login .join-top-row .play-button {
  all: unset !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 11px 22px !important;
  border-radius: 12px !important;
  background: linear-gradient(90deg, #4f46e5, #22d3ee) !important;
  color: #081018 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  font-family: inherit !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}
#login .join-top-row .play-button:hover {
  opacity: 0.9 !important;
}

/* Rangées Netflix */
.pl-rows {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  margin-bottom: 12px !important;
  width: 100% !important;
}

.pl-row-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 7px !important;
}

.pl-row-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #e5e7eb !important;
}

.pl-row-outer {
  overflow: hidden !important;
  padding-right: 2px !important;
  padding-left: 2px !important;
  border-radius: 10px !important;
  width: 100% !important;
  position: relative !important;
  display: block !important;
}

.pl-row-track {
  display: flex !important;
  gap: 7px !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  will-change: transform;
}

/* Carte — largeur fixée par JS */
.pl-card {
  flex-shrink: 0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  border: 1.5px solid transparent !important;
  border-left: 3px solid #6366f1 !important;
  background: #0f1423 !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  transition:
    border-color 0.15s,
    transform 0.15s !important;
}
.pl-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
.pl-card.active {
  border-color: #4f46e5 !important;
}

/* pl-card-art — voir FIX FINAL en bas */
.pl-card-emoji {
  font-size: 30px !important;
  line-height: 1 !important;
}

/* pl-card-badge+counter bloc intermédiaire — neutralisé, voir PATCH FINAL */

/* pl-card-info — neutralisé, voir bloc PATCH FINAL en bas */

/* Flèches carousel */
.pl-arrow {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  font-size: 12px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s !important;
  padding: 0 !important;
}
.pl-arrow:hover {
  background: rgba(255, 255, 255, 0.13) !important;
}
.pl-arrow:disabled {
  opacity: 0.2 !important;
  cursor: default !important;
}

/* Footer dans la join card */
.player-count {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 10px !important;
  font-size: 13px !important;
  color: #9aa3b2 !important;
}
.player-count img {
  width: 18px !important;
  height: 18px !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-inner {
    max-width: 100% !important;
  }

  .join-top-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  #login .join-top-row .play-button {
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  section.hero {
    padding: 12px 10px 20px !important;
  }
  .join-card {
    padding: 14px !important;
    border-radius: 14px !important;
  }
}

/* ── Parties privées — layout compact horizontal ── */
section.private-game-section {
  max-width: 760px !important;
  margin: 0 auto 32px !important;
  padding: 0 16px !important;
}

.private-game-card {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: #0e131e !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-left: 3px solid #4f46e5 !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  /* reset tout layout interne existant */
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

.private-game-header {
  display: none !important;
}

.private-icon-wrap {
  flex-shrink: 0 !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #1a2035 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.private-icon {
  font-size: 16px !important;
}

.private-content {
  flex: 1 !important;
  min-width: 0 !important;
}

.private-heading {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 3px !important;
  font-family: inherit !important;
}

.private-desc {
  font-size: 12px !important;
  color: #9aa3b2 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.private-cta {
  flex-shrink: 0 !important;
  font-size: 14px !important;
  padding: 7px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 9px !important;
  color: #1e1b4b !important;
  background: #ffffff !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
}
.private-cta:hover {
  background: #f1f5f9 !important;
  color: #1e1b4b !important;
}

/* Parties Privées titre en haut (visible sur la section) */
.private-title {
  display: none !important;
}

/* Mobile : passe en colonne */
@media (max-width: 600px) {
  .private-game-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .private-desc {
    white-space: normal !important;
  }
  .private-cta {
    width: 100% !important;
    text-align: center !important;
  }
}

/* ── Taille Netflix + compacité verticale ── */

/* Art — aspect-ratio géré dans FIX FINAL en bas */

/* Réduit l'espacement entre les 3 rangées */
.pl-rows {
  gap: 8px !important;
  margin-bottom: 8px !important;
}

/* Titre de rangée + flèches plus compact */
.pl-row-header {
  margin-bottom: 5px !important;
}

/* Join card : padding réduit pour gagner de la hauteur */
.join-card {
  padding: 16px !important;
}

/* Titre moins imposant */
.join-card h1 {
  font-size: 15px !important;
  margin: 0 0 10px !important;
}

/* Input row moins de marge basse */
.join-top-row {
  margin-bottom: 10px !important;
}

/* pl-card-name 11px — neutralisé, voir bloc PATCH FINAL en bas */

/* Footer de la join card plus compact */
.player-count {
  margin-top: 8px !important;
}

p.small-muted {
  margin-top: 4px !important;
  font-size: 11px !important;
}

/* Parties privées encore plus slim */
.private-game-card {
  padding: 10px 16px !important;
  border-radius: 12px !important;
}

section.private-game-section {
  margin: 6px auto 20px !important;
}

/* ══ FIX CRITIQUE : empêche .playlist-item de casser le layout vertical des cartes ══ */
.pl-row-track .playlist-item,
.pl-row-track .pl-card {
  display: block !important;
  grid-template-columns: unset !important;
  grid-template-rows: unset !important;
  border-bottom: none !important;
  border-left: none !important;
  background: #0f1423 !important;
  padding: 0 !important;
}

/* pl-row-track .pl-card .pl-card-art — géré dans FIX FINAL en bas */

.pl-row-track .pl-card .playlist-meta,
.pl-row-track .pl-card .playlist-right,
.pl-row-track .pl-card .playlist-players,
.pl-row-track .pl-card .playlist-badge {
  display: none !important; /* cache les anciens éléments */
}

/* pl-card-players intermédiaire — neutralisé, voir PATCH FINAL */

/* ══════════════════════════════════════════════════════════
   LAYOUT NETFLIX — PLEINE LARGEUR
   Supprime la boîte conteneur, étale les rangées sur toute
   la largeur de l'écran comme Netflix.
══════════════════════════════════════════════════════════ */

section.hero {
  padding: 24px 4% 28px !important;
  max-width: unset !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.hero-inner {
  max-width: unset !important;
  width: 100% !important;
}

/* Join card = transparent, pas de boîte */
.join-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: unset !important;
}

/* En-tête : titre + FAQ sur la même ligne */
.join-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 16px !important;
}

.join-card h1 {
  font-family: 'Orbitron', sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 !important;
  letter-spacing: 0.5px !important;
}

/* Input + bouton : centré, max 680px */
.join-top-row {
  max-width: 680px !important;
  margin: 0 0 24px 0 !important;
  display: flex !important;
  gap: 10px !important;
}

/* Rangées pleine largeur */
.pl-rows {
  width: 100% !important;
  gap: 20px !important;
  margin-bottom: 20px !important;
}

.pl-row-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #e5e7eb !important;
  letter-spacing: 0.3px !important;
}

.pl-row-header {
  margin-bottom: 10px !important;
}

/* Flèches plus grandes et visibles */
.pl-arrow {
  width: 32px !important;
  height: 32px !important;
  font-size: 15px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
.pl-arrow:hover {
  background: rgba(255, 255, 255, 0.18) !important;
}

/* Art en 16/9 — aspect-ratio géré dans FIX FINAL en bas */

.pl-card-emoji {
  font-size: 38px !important;
}

/* pl-card-name/sub/info — neutralisés, voir bloc PATCH FINAL en bas */

/* pl-card:hover scale — neutralisé */

/* ── Indicateur joueurs en ligne — plus gros et vivant ── */
.player-count {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 0 !important;
  padding: 8px 16px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #e5e7eb !important;
}

#player-count-number {
  color: #22d3ee !important;
}

.player-count img {
  display: none !important; /* remplacé par le dot animé */
}

/* Dot live animé devant le chiffre */
#player-count-number::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}

#player-count-label {
  color: #ffffff !important;
  font-weight: 400 !important;
  font-size: 14px !important;
}

p.small-muted {
  margin-top: 8px !important;
  font-size: 12px !important;
}

/* ── Parties privées — bande slim en bas ── */
section.private-game-section {
  width: 92% !important;
  max-width: 900px !important;
  margin: 0 auto 28px !important;
  padding: 0 !important;
}

.private-game-card {
  padding: 12px 20px !important;
  gap: 16px !important;
}

.private-heading {
  font-size: 18px !important;
}

.private-desc {
  font-size: 14px !important;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  section.hero {
    padding: 20px 3% 24px !important;
  }
}

@media (max-width: 600px) {
  section.hero {
    padding: 14px 4% 20px !important;
  }
  .join-card h1 {
    font-size: 17px !important;
  }
  .join-top-row {
    flex-direction: column !important;
    max-width: 100% !important;
  }
  #login .join-top-row .play-button {
    width: 100% !important;
  }
}

/* ══ MOBILE : join-top-box ═══════════════════════════════════ */
@media (max-width: 768px) {
  .join-top-box .join-card-header {
    flex-wrap: wrap !important;
    gap: 6px 10px !important;
    width: 100% !important;
  }
  .join-card h1 {
    font-size: 15px !important;
    white-space: nowrap !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }
  .faq-pill {
    flex-shrink: 0 !important;
    font-size: 12px !important;
    padding: 4px 8px !important;
  }
  .join-input-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .join-input-row input#username {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 16px !important;
  }
  .join-meta-right {
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
  }
}

/* ── Vote pill — collé à droite dans le join-card-header ── */
.vote-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 12px !important;
  margin-left: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  align-self: flex-end !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition:
    background 0.15s,
    color 0.15s !important;
  flex-shrink: 0 !important;
  background: #ffffff !important;
  color: #1e1b4b !important;
  border: none !important;
}
.vote-pill:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}
@media (max-width: 768px) {
  .vote-pill {
    display: none !important;
  }
}

/* ── Mobile : badges plus petits + parties privées complète ── */
@media (max-width: 600px) {
  /* Badge bonhomme joueurs mobile — neutralisé, voir bloc PATCH FINAL en bas */

  /* Parties privées — visible en entier */
  section.private-game-section {
    width: auto !important;
    padding: 0 8px !important;
    margin: 8px 0 6px !important;
  }

  .private-game-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 16px !important;
    gap: 10px !important;
  }

  .private-desc {
    white-space: normal !important;
  }

  .private-cta {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

/* ── Gain de place vertical pour voir parties privées ── */
.join-top-box {
  padding: 10px 14px !important;
  margin-bottom: 8px !important;
}

.pl-rows {
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.pl-row-header {
  margin-bottom: 6px !important;
}

/* ══════════════════════════════════════════════════════════
   PATCH FINAL — pl-card layout définitif
   Structure JS :
     .pl-card
       .pl-card-art  (image)
       .pl-card-info
         .pl-card-name     (nom playlist)
         .pl-card-meta-row
           .pl-card-sub    (10 titres) — gauche
           .pl-card-badge  (0/10)     — droite
           .pl-card-players (👤 0)    — droite
══════════════════════════════════════════════════════════ */

/* Zone texte sous l'image */
.pl-card-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 5px 8px 7px !important;
  gap: 3px !important;
}

/* Nom de la playlist — grand, à gauche */
.pl-card-name {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-align: left !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  word-break: break-word !important;
}

/* Ligne meta : sub à gauche, badges à droite */
.pl-card-meta-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  gap: 5px !important;
  margin-top: 1px !important;
}

/* "10 titres" — prend l'espace, pousse badges à droite */
.pl-card-sub {
  font-size: 12px !important;
  color: #9ca3af !important;
  margin: 0 !important;
  flex: 1 1 auto !important;
  text-align: left !important;
}

/* Badge 0/10 — à droite */
.pl-card-badge {
  position: static !important;
  bottom: unset !important;
  right: unset !important;
  top: unset !important;
  left: unset !important;
  flex-shrink: 0 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 2px 7px !important;
  border-radius: 5px !important;
  font-family: inherit !important;
  display: inline-block !important;
}

/* Badge joueurs — à droite, après le 0/10 */
.pl-card-players {
  position: static !important;
  top: unset !important;
  left: unset !important;
  bottom: unset !important;
  right: unset !important;
  flex-shrink: 0 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #22d3ee !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}

/* Counter live dans l'art — garde position absolute pour overlay */
.pl-card-art .pl-counter {
  position: absolute !important;
  bottom: 4px !important;
  right: 4px !important;
  background: rgba(0, 0, 0, 0.7) !important;
  font-size: 10px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  font-family: monospace !important;
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
}

@media (max-width: 600px) {
  .pl-card-name {
    font-size: 13px !important;
  }
  .pl-card-sub {
    font-size: 11px !important;
  }
  .pl-card-badge {
    font-size: 11px !important;
  }
  .pl-card-players {
    font-size: 11px !important;
  }
}

/* ══ FIX badges droite ══ */
.pl-card-meta-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
  gap: 5px !important;
}

.pl-card-sub {
  flex: 1 1 0% !important;
  min-width: 0 !important;
}

.pl-card-badge {
  margin-left: 0 !important;
  flex-shrink: 0 !important;
}

.pl-card-players {
  flex-shrink: 0 !important;
}

/* Cache le texte invité */
.guest-warning {
  display: none !important;
}

/* ══ COMPACT vertical pour voir parties privées sans scroll ══ */
.join-top-box {
  padding: 6px 12px !important;
  margin-bottom: 4px !important;
  gap: 4px !important;
}

.guest-warning {
  display: none !important;
}

.pl-rows {
  gap: 2px !important;
  margin-bottom: 2px !important;
}

.pl-row-header {
  margin-bottom: 2px !important;
}

section.hero {
  padding: 2px 4% 6px !important;
}

section.private-game-section {
  margin-top: 0px !important;
  margin-bottom: 6px !important;
}

.vote-pill {
  margin-top: 0 !important;
}

@media (max-width: 600px) {
  section.private-game-section {
    width: 85% !important;
    margin: -20px auto 24px !important;
  }
  .private-heading {
    font-size: 15px !important;
  }

  .private-desc {
    font-size: 11px !important;
  }

  .private-cta {
    font-size: 13px !important;
  }
}

/* ══════════════════════════════════════════════
   FIX FINAL IMAGES — modifier UNIQUEMENT ICI
   Pour changer la hauteur des cartes, ajuster
   aspect-ratio ci-dessous (ex: 16/9, 4/3, 3/2)
══════════════════════════════════════════════ */
.pl-card-art,
.pl-row-track .pl-card .pl-card-art {
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  display: block !important;
  width: 100% !important;
  position: relative !important;
  background: #1a2235 !important;
}

.pl-card-art img,
.pl-card-art img.playlist-cover,
.pl-row-track .pl-card .pl-card-art img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  padding: 0 !important;
  position: static !important;
}
