* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


@font-face {
  font-family: 'Bebas Neue';
  src:
    url('/fonts/BebasNeue-Regular.woff2') format('woff2'),
    url('/fonts/BebasNeue-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


body {
  font-family: Arial, sans-serif;
  background-image: url('/img/blindtest-music-scene-wallpaper2.png');
  background-position: center;
  /* Center the background image */
  background-repeat: no-repeat;
  /* Do not repeat the image */
  background-size: cover;
  /* Cover the entire screen */
  color: #363434;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  padding: 20px;
  position: relative;
  overflow: hidden;
}


.home-button {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 22px;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  z-index: 1000;
  overflow: hidden;
  display: inline-block;
  background: none;
  border: none;
  padding: 10px 0;
  cursor: pointer;
}

.home-button::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 36px;
  background: url("data:image/svg+xml,%3Csvg width='400' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 Q 50 50 100 20 T 200 20 T 300 20 T 400 20 V60 H0 Z' fill='rgba(63,89,149,0.6)' stroke='rgba(0,0,0,0.4)' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: cover;
  animation: waveMotion 4s linear infinite;
  z-index: -1;
  transition: transform 0.4s ease;
}

.home-button:hover::after {
  transform: translateY(-10px);
  opacity: 1;
}

@keyframes waveMotion {
  0% {
    background-position-x: 0%;
  }

  100% {
    background-position-x: -200px;
  }
}


/* ✅ Animation améliorée des particules scintillantes */
@keyframes floatingParticles {
  0% {
    opacity: 0.3;
    transform: translateY(0px) scale(0.8);
  }

  50% {
    opacity: 0.9;
    transform: translateY(-20px) scale(1.2);
  }

  100% {
    opacity: 0.3;
    transform: translateY(0px) scale(0.8);
  }
}

/* ✅ Particules lumineuses dans le faisceau */
.particle {
  position: absolute;
  width: 4px;
  /* 🔥 Augmente légèrement pour être plus visibles */
  height: 4px;
  background: rgba(255, 223, 100, 0.8);
  border-radius: 50%;
  animation: floatingParticles 4s infinite ease-in-out;
  pointer-events: none;
  z-index: 1;
}


/* ✅ Conteneur pour séparer les deux blocs */
.social-links-container {
  position: absolute;
  display: flex;
  justify-content: center;
  gap: 20px;
  /* ✅ Espace entre YouTube et Instagram */
  margin-top: 33em;
  margin-left: 200px;
}

/* ✅ Bloc YouTube */
.social-links.youtube,
.social-links.instagram {
  display: inline-block;
  padding: 5px 12px;
  /* ✅ Réduction du padding */
  background: linear-gradient(145deg, #cfcfcf, #a8a8a8);
  /* ✅ Gris légèrement plus foncé */
  border-radius: 12px;
  border: 2px solid #3d3b3b;
  transition: all 0.3s ease-in-out;
}

/* ✅ Effet au survol des blocs */
.social-links.youtube:hover,
.social-links.instagram:hover {
  background: linear-gradient(145deg, #beb9b9, #afabab);
  border-color: #1e1e1e;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.25);
}

/* ✅ Style des liens */
.social-link {
  color: black;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.1;
  transition: color 0.3s ease-in-out;
}

/* ✅ Style des icônes */
.social-link i {
  font-size: 20px;
  margin-right: 5px;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* ✅ Couleurs spécifiques */
.social-link.youtube i {
  color: #CC0000;
}

.social-link.instagram i {
  color: #C13584;
}

/* ✅ Effet au survol des icônes */
.social-link:hover i {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* ✅ Flèches */
.social-link::before {
  content: "⇒";
  border-radius: 50%;
  padding: 2px 6px;
  margin-right: 8px;
  font-size: 14px;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.social-link::after {
  content: "⇐";
  border-radius: 50%;
  padding: 2px 6px;
  margin-left: 8px;
  font-size: 14px;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* ✅ Changement de couleur des flèches au survol */
.social-link:hover::before,
.social-link:hover::after {
  background-color: white;
  color: black;
}


/* ✅ Griser le champ pseudo si désactivé */
.disabled-input {
  background-color: #555 !important;
  color: #bbb;
  cursor: not-allowed;
  border: 1px solid #777;
}

/* ✅ Griser le bouton si désactivé */
.disabled-button {
  background-color: #777 !important;
  color: #bbb;
  cursor: not-allowed;
  border: 1px solid #999;
}

/* ✅ Déplace le message vers le haut sans affecter les autres éléments */
.warning-message {
  color: #ffcc00;
  width: 300px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  position: absolute;
  /* ✅ Position absolue pour ne pas déplacer les autres éléments */
  top: 250px;
  /* ✅ Déplace le message de 50px vers le haut */
  left: 50%;
  transform: translateX(-48%);
  /* ✅ Centre horizontalement */
  background: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  border-radius: 5px;
}


/* ✅ 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);
}



/* ✅ 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);
}

/* ✅ Style pour la boîte des notifications */
#notification-box {
  display: block;
  position: absolute;
  top: 50px;
  right: 10px;
  width: 300px;
  max-height: calc(5 * 45px);
  /* ✅ Hauteur pour 5 notifications max */
  background: #333;
  color: white;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  /* Initialement invisible */
  transform: translateY(-10px);
  /* Décalage vers le haut */
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  /* Empêche l'interaction tant qu'il est invisible */
  overflow-y: auto;
  /* ✅ Ajoute un scroll */
  scrollbar-width: thin;
  /* ✅ Scrollbar discrète (Firefox) */
  scrollbar-color: #666 #333;
  /* ✅ Custom scroll */
}

/* ✅ Affichage dynamique quand actif */
#notification-box.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  /* Active l'interaction */
}

/* ✅ Ajustement des notifications individuelles */
.notification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 8px;
  border-bottom: 1px solid #444;
  min-height: 45px;
  /* ✅ Ajuste la hauteur pour que 5 notif tiennent */
}

/* ✅ 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);
}

/* ✅ Connexion : Même réduction de taille */
.login-button-google {
  display: flex;
  align-items: center;
  background-color: white;
  color: #444;
  border: 1px solid #ddd;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.login-button-google:hover {
  background-color: #f7f7f7;
}

.login-button-google .google-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
}


/* ✅ 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);
}

/* ✅ Conteneur du classement */
.classement-header {
  text-align: center;
  margin-top: 20px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

/* 🎭 Dark Mode avec Bordure Glow Fine */
.classement-link {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(135deg, #1a1a1a, #333);
  /* Fond sombre */
  color: #ffffff;
  /* Texte blanc */
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  border: 1px solid rgba(247, 242, 242, 0.5);
  /* Bordure blanche plus fine */
  box-shadow: 0px 0px 5px rgba(56, 56, 56, 0.4);
  /* Glow plus subtil */
}

/* 🔥 Effet Glow au survol */
.classement-link:hover {
  transform: scale(1.01);
}


/* 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: 210px;
  margin-left: -60px;
  border-radius: 8px;
  /* Bords arrondis */
}

/* Effet hover */
.play-button:hover {
  background: linear-gradient(45deg, #007bff, #0057e7);
  /* Bleu plus foncé */
  transform: scale(1.02);
}

.playlist-select-container {
  position: absolute;
  margin-top: 150px;
  margin-left: 270px;
  text-align: center;
}

#playlist-select {
  padding: 8px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 100%;
  max-width: 300px;
}

select:disabled {
  background-color: #ddd;
  color: #888;
  cursor: not-allowed;
}



/* 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: 18px;
  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: 270px;
  left: 36%;
}

/* 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 */
}


#game {
  position: fixed;
  width: 100%;
  background: #1d1c1c;
  /* Bordure blanche plus fine à l'extérieur */
  border: 2px solid white;
  /* Bordure extérieure blanche plus fine */

  /* Ombre pour plus de profondeur */
  box-shadow: inset 1px 1px 0px 6px #020202, inset 0px -2px 20px 0px #000000,
    0px 0px 20px 5px rgba(0, 0, 0, 0.6);
  /* Ombre externe pour la profondeur */
  height: 90vh;
  /* 85% of the viewport height */
  top: 1%;
  left: 50%;
  /* Centrer horizontalement */
  transform: translateX(-50%);
  /* Centrer horizontalement */
  width: 100%;
  max-width: 950px;
  border-radius: 15px;
  text-align: center;
  z-index: 1;
  color: white;
  /* S'assurer que le texte à l'intérieur est bien lisible */
  opacity: 1;
  /* S'assurer que l'opacité est à 1 */
}

.main-container {
  position: relative;
  margin-top: 50px;
  width: 100%;
  max-width: 800px;
  height: 670px;

  background-color: #202020;

  border: 2px solid white;
  /* Bordure extérieure blanche plus fine */

  /* Ombres avec clarté */
  box-shadow: inset 3px 3px 0px 6px rgba(8, 8, 8, 0.1),
    /* Légère lumière interne */
    0px 0px 30px 10px rgba(255, 255, 255, 0.3),
    /* Halo externe lumineux */
    0px 0px 20px 5px rgba(0, 0, 0, 0.6);
  /* Ombre externe pour la profondeur */

  border-radius: 15px;
  padding: 20px;
  text-align: center;
  z-index: 1;
  color: white;
  /* S'assurer que le texte est bien lisible */
}

/* Styliser le texte secondaire */
p.lead.text-center {
  font-size: 1.5em;
  color: #666;
  margin-bottom: 30px;
}


@font-face {
  font-family: 'WTT';
  src: url('/fonts/WTT.ttf') format('truetype');
  /* c’est ton seul fichier */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


h1 {
  font-family: 'WTT', sans-serif;
  font-weight: 300;
  /* ou 400 si la fonte n’a pas de variante */
  font-weight: lighter;
  position: relative;
  margin-bottom: 20px;
  text-align: center;
  top: 0%;

  /* Couleur principale du texte */
  color: #3582e7;

  /* Taille du texte */
  font-size: 64px;

  /* Effets visuels */
  text-transform: uppercase;
  letter-spacing: 0px;

  /* Bordure lumineuse */
  border: 2px solid transparent;
  background-color: linear-gradient(#b3bfce, #2863b1),
    linear-gradient(to right, #2f6e9e, #4b8bca);
  background-clip: text, border-box;
  background-origin: border-box;
  -webkit-background-clip: text;
}

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: -155px;
  max-width: 325px;
  max-height: 60px;
}


@font-face {
  font-family: 'BebasNeue';
  src: url('fonts/BebasNeue-Regular.ttf') format('truetype');
  font-display: swap;
  /* ✅ Améliore les performances */
}


/* ✅ Encadrer la section Playlist et ajuster la largeur */
.playlist-info {
  flex: 1;
  text-align: center;
  padding: 15px;
  border: 2px solid rgba(176, 179, 184, 0.8);
  border-radius: 10px;
  max-width: 700px;
  position: absolute;
  top: 530px;
  left: 130px;
}

/* ✅ Titre du bloc avec séparation */
.playlist-info p {
  font-size: 1.1em;
  font-weight: 550;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color: hsl(0, 0%, 98%);
  margin-bottom: 0px;
  text-transform: uppercase;
  line-height: 1.1;
  padding-bottom: 5px;
  display: inline-block;
}

/* ✅ 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;
}

.bonus-block {
  flex: 1;
  margin: 10px 10px;
  /* Ajustez la marge pour le descendre plus bas */
  padding: 20px;
  /* Garder la taille originale */
  transition: transform 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
  background: #333;
  border: 1px solid #0f0f0f;
  border-radius: 8px;
  width: 100%;
  /* Assurez-vous qu'il prend toute la largeur disponible */
  max-width: 600px;
  /* Taille maximale pour éviter qu'il devienne trop large */
}

#bonus-description {
  margin-top: 110px;
}


.bonus-block p {
  font-family: 'Montserrat', 'Helvetica', sans-serif;
  /* Priorité à Montserrat */
  height: auto;
  font-size: 1.1em;
  /* Augmenter la taille de la police */
  font-weight: 500;
  /* Mettre le texte en gras */
  color: #f8f8f8;
  /* Couleur de texte claire pour contraste */
}

.hidden {
  display: none;
}


@font-face {
  font-family: 'BebasNeue-Regular';
  src: url('fonts/BebasNeue-Regular.ttf') format('truetype');
  font-display: swap;
  /* ✅ Améliore les performances */
}

#game-info {
  font-family: 'BebasNeue-Regular', sans-serif;
  font-size: 1.3em !important;
  color: #fff;
  /* ✅ Texte blanc pour un fort contraste */
  background-color: #222222;
  /* ✅ Fond sombre pour renforcer l'effet */

  margin: 10px auto;
  margin-bottom: 40px;
  padding: 12px 20px;
  text-align: center;
  font-weight: 500;
  border-radius: 10px;

  /* 🔥 Effet de contour subtil pour faire ressortir le texte */
  text-shadow:
    2px 2px 5px rgba(0, 0, 0, 0.8),
    /* Ombre noire pour du relief */
    -2px -2px 5px rgba(50, 50, 50, 0.3);
  /* Légère lumière pour adoucir le contour */

  /* 🔥 Effet de bordure lumineuse pour attirer l'attention */
  border: 2px solid #292a2b;
  /* ✅ Bordure bleue moderne */

  /* 🔥 Effet de relief plus marqué */
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.7),
    /* Ombre portée pour créer du volume */
    0 0 0px rgba(242, 242, 243, 0.5);
  /* Halo bleu pour un effet "néon" stylé */

  width: fit-content;
}


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);
}

#audio {
  display: none;
}


.volume-container {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 250px;
  height: 30px;
  /* 🔥 Diminue la hauteur */
  padding: 5px 10px;
  /* 🔥 Réduction du padding pour une taille plus compacte */
  background: linear-gradient(135deg, #363638, #202020);
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6), 0 6px 12px rgba(0, 0, 0, 0.3);
}

.volume-icon {
  font-size: 18px;
  /* 🔥 Réduit légèrement la taille de l'icône */
  color: #fff;
}

input#volume {
  width: 100%;
  max-width: 200px;
}


label {
  display: none;
  margin-left: -100px;
}

.volume-control label {
  color: #fff;
}

.volume-control input[type='range'] {
  width: 100px;
}

/* Compteur de chanson */
#song-counter {
  position: absolute;
  top: 30px !important;
  /* Fixé en haut */
  left: 80px !important;
  /* Aligné à droite */
  width: 160px;
  /* Largeur fixe */
  z-index: 1000;
  /* Toujours visible */
  font-size: 16px !important;
  background: linear-gradient(135deg, #363638, #202020);
  color: white;
  font-weight: lighter;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.3);
}


#points {
  display: none;
  /* Masqué par défaut */
}

/* Barre de défilement personnalisée (Chrome, Safari) */
#album-covers-container::-webkit-scrollbar {
  width: 8px;
  /* Width of the scrollbar */
}

/* Barre de défilement personnalisée pour WebKit */
#album-covers-container::-webkit-scrollbar-track {
  background: transparent;
  /* Make the track transparent */
}

/* Barre de défilement personnalisée pour WebKit */
#album-covers-container::-webkit-scrollbar-thumb {
  background-color: rgba(128,
      128,
      128,
      0.5);
  /* Gray scrollbar with some transparency */
  border-radius: 10px;
  /* Rounded scrollbar */
}

/*  Barre de défilement personnalisée pour Firefox */
#album-covers-container {
  scrollbar-width: thin;
  /* Make the scrollbar thin */
  scrollbar-color: rgba(128, 128, 128, 0.5) transparent;
  /* Thumb color and track color */
}

#album-covers-container {
  align-items: center;
  object-fit: cover;
  position: absolute;
  left: -270px;
  /* Garde la position initiale */
  top: 0;
  /* Alignement en haut */
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Remplit entièrement le conteneur parent */
  max-height: 100%;
  /* Prend toute la hauteur du conteneur `#game` */
  overflow-y: auto;
  /* Permet le défilement vertical si nécessaire */
  border-radius: 10px;
  padding: 15px;
  transition: left 0.5s ease-in-out;
}

.album-cover {
  align-items: center;
  object-fit: cover;
  width: 230px;
  height: 183px;
  margin: 5px 0;
}


.song-title,
.song-artist {
  color: #fff;
  /* White text color */
  background: linear-gradient(135deg, #464649, #5a5454);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.3);
  /* Ombres plus accentuées */
  font-size: 14px;
  /* Taille de la police */
  font-weight: bold;
  /* Texte en gras pour le titre */
  padding: 4px 8px;
  /* Padding around the text */
  border-radius: 5px;
  /* Coins arrondis */
  margin-top: 0px;
  /* Espace au-dessus du texte */
  margin-left: 15px;
  max-width: 200px;
  /* Ajustez la largeur maximale pour forcer le passage à la ligne */
  text-align: center;
  /* Centre le texte à l'intérieur du bloc */
  align-items: center;
  /* Centre l'image et le texte horizontalement */
  word-wrap: break-word;
  /* Permet au texte de passer à la ligne si nécessaire */
  white-space: normal;
  /* Permet au texte de passer à la ligne */
  overflow-wrap: break-word;
  /* Brise les mots longs pour éviter les débordements */
}

.best-time {
  background-color: #4caf50;
  /* Green background */
  color: #fff;
  /* White text */
  padding: 4px 8px;
  /* Padding around the text */
  text-align: center;
  /* Centre le texte à l'intérieur du bloc */
  align-items: center;
  /* Centre l'image et le texte horizontalement */
  border-radius: 5px;
  /* Rounded corners */
  font-weight: bold;
  /* Bold text */
  font-size: 0.8em;
  /* Slightly smaller font size */
  margin-top: 5px;
  /* Espace au-dessus du texte */
  margin-left: 20px;
  max-width: 190px;
  /* Ajustez la largeur maximale pour forcer le passage à la ligne */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  /* Add a slight shadow for better visibility */
  word-wrap: break-word;
  /* Permet au texte de passer à la ligne si nécessaire */
  white-space: normal;
  /* Permet au texte de passer à la ligne */
  overflow-wrap: break-word;
  /* Brise les mots longs pour éviter les débordements */
}

/* Container for like and dislike buttons */
.like-dislike-container {
  cursor: pointer;
  /* Rend l'ensemble cliquable */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  gap: 20px;
  transition: background-color 0.3s ease;
  /* Effet au survol */
  /* Adjust the gap between buttons */
}

.like-container:hover,
.dislike-container:hover {
  background-color: rgba(0, 0, 0, 0.2);
  /* Change légèrement la couleur au survol */
}

/* Like and dislike buttons styling */
.like-button {
  cursor: pointer;
  /* Pointer for clickable buttons */
  background: linear-gradient(135deg, #464649, #5a5454);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.3);
  /* Ombres plus accentuées */
  color: #4caf50;
  /* Green color for likes */
  padding: 3px 3px;
  /* Padding around the text */
  text-align: left;
  align-items: center;
  /* Centre l'image et le texte horizontalement */
  border-radius: 5px;
  /* Rounded corners */
  font-weight: bold;
  /* Bold text */
  margin-top: 0px;
  /* Espace au-dessus du texte */
  margin-left: -20px;
  word-wrap: break-word;
  /* Permet au texte de passer à la ligne si nécessaire */
  white-space: normal;
  /* Permet au texte de passer à la ligne */
  overflow-wrap: break-word;
  /* Brise les mots longs pour éviter les débordements */
  width: 50px;
  height: 30px;
  font-size: 20px;
  font-weight: bold;
}

.dislike-button {
  cursor: pointer;
  /* Pointer for clickable buttons */
  background: linear-gradient(135deg, #464649, #5a5454);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.3);
  /* Ombres plus accentuées */
  color: #f44336;
  /* Red color for dislikes */
  padding: 3px 3px;
  /* Padding around the text */
  text-align: left;
  align-items: center;
  /* Centre l'image et le texte horizontalement */
  border-radius: 5px;
  /* Rounded corners */
  font-weight: bold;
  /* Bold text */
  margin-top: 0px;
  /* Espace au-dessus du texte */
  margin-left: 20px;
  word-wrap: break-word;
  /* Permet au texte de passer à la ligne si nécessaire */
  white-space: normal;
  /* Permet au texte de passer à la ligne */
  overflow-wrap: break-word;
  /* Brise les mots longs pour éviter les débordements */
  width: 50px;
  height: 30px;
  font-size: 20px;
  font-weight: bold;
}

.like-button:active,
.dislike-button:active {
  transform: scale(0.95);
}

/* Additional styles for count display */
.like-count::before,
.dislike-count::before {
  content: attr(data-track-id) ': ';
  font-weight: normal;
  color: #555;
}

.like-count {
  cursor: pointer;
  /* Pointer for clickable buttons */
  color: #4caf50;
  /* Green color for likes */
  font-size: 15px;
  margin-left: -50px;
  font-weight: bold;
}

.dislike-count {
  cursor: pointer;
  /* Pointer for clickable buttons */
  color: #f44336;
  /* Red color for dislikes */
  font-size: 15px;
  margin-left: -50px;
  font-weight: bold;
}


/* === Chat Container (Amélioré) === */
.chat-container {
  position: absolute;
  top: 80px;
  right: 0;
  width: 330px;
  height: calc(100% - 200px);
  background-color: #1a1b1b;
  border: 2px solid #eceef0;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 15px;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.7);
  z-index: 1000;
  transition: transform 0.3s ease;
  overflow: hidden;
  /* ✅ Évite débordements verticaux */
}

/* === Fenêtre de messages === */
#chat-window {
  flex: 1 1 auto;
  /* ✅ Prend tout l’espace restant sans forcer le layout */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  scrollbar-width: none;
  /* ✅ Masque scrollbar Firefox */
  -ms-overflow-style: none;
  /* ✅ Masque scrollbar IE/Edge */
}

#chat-window::-webkit-scrollbar {
  display: none;
  /* ✅ Masque scrollbar Chrome/Safari */
}

/* ✅ Style des messages dans le chat */
#chat-window p {
  padding: 10px 12px;
  margin-bottom: 12px;
  /* ✅ espace sous chaque message */
  background-color: #1b1a1a;
  border-radius: 8px;
  border: 1px solid #3b3b3b;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  word-break: break-word;
  white-space: pre-wrap;
}

/* === Zone de saisie du message === */
textarea#message {
  resize: none;
  flex: 0 0 auto;
  /* ✅ Taille fixe, pas de compression */
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  font-size: 17px;
  color: #000;
  background-color: #ffffff;
  border: 2px solid #072649;
  border-radius: 8px;
  padding: 5px 10px;
  width: calc(100% - 30px);
  right: -35px;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);

  white-space: nowrap;
  /* ✅ Empêche retour à la ligne */
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

textarea#message::-webkit-scrollbar {
  display: none;
}

textarea#message:focus {
  border-color: #104099;
  background-color: #f9f9f9;
}



/* === Zone de saisie du Chat === */
input#message {
  color: #000;
  /* ✅ Texte en noir pour bien contraster sur le fond blanc */
  background-color: #ffffff;
  /* ✅ Fond blanc pour la zone de texte */

  height: 40px;
  /* 🔥 Hauteur ajustée */
  font-size: 17px;
  /* ✅ Police lisible mais pas trop grosse */
  border: 2px solid #072649;
  /* ✅ Bordure bleue pour bien démarquer la zone de saisie */
  border-radius: 8px;
  /* ✅ Coins arrondis pour un look moderne */

  padding: 5px 10px;
  /* ✅ Espacement interne pour rendre l'écriture agréable */

  /* ✅ Décalage pour ajuster la position */
  position: relative;
  /* 🔥 Nécessaire pour pouvoir utiliser 'top' et 'right' */
  top: 0px;
  /* 🔥 Remonte de 20px */
  right: -20px;
  /* 🔥 Décale de 20px à droite */

  outline: none;
  /* 🔥 Supprimer le contour bleu intense des navigateurs */
  width: calc(100% - 30px);
  /* ✅ Largeur ajustée pour ne pas être collée aux bords */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  /* ✅ Ombre subtile pour un effet "posé" */
}

/* 🔥 Effet au focus (quand l'utilisateur clique pour écrire) */
input#message:focus {
  border-color: #104099;
  /* ✅ Bordure bleue plus soutenue au focus */
  background-color: #f9f9f9;
  /* ✅ Fond légèrement plus clair au focus */
}

#toggle-chat-container::before {
  content: "💬";
  /* ✅ Emoji ajouté via CSS */
  margin-right: 8px;
  /* ✅ Espacement avec le texte */
  font-size: 18px;
  /* ✅ Taille ajustée */
}

/* === Bouton Toggle dans le conteneur #game === */
#toggle-chat-container {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: lighter;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;

  position: absolute;
  top: 10px;
  right: 110px;

  /* 🔥 Style épuré et sombre */
  background-color: #2a2a2a;
  color: #ffffff;
  border: 1px solid #3b3b3b;
  border-radius: 4px;

  /* ✅ Ajustement du texte et de l'espacement */
  font-size: 16px;
  height: 30px;
  padding: 0 8px;
  /* 🔥 Réduction du padding à gauche/droite */
  line-height: 30px;
  width: 90px;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

/* ✅ Effet hover */
#toggle-chat-container:hover {
  background-color: #3b3b3b;
}


#message {
  width: calc(100% - 22px);
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 20px;
  color: #333;
}

#color-picker {
  position: absolute;
  top: 90%;
  left: 4%;
  width: 25px;
  height: 25px;
  border: none;
  cursor: pointer;
}

/* ✅ Style du bouton emoji (ouvre la palette) */
#toggle-emoji-btn {
  position: absolute;
  font-size: 20px;
  top: 90%;
  left: 3%;
  padding: 5px;
  border: none;
  background: #ffcc00;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 30px;
  height: 30px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#toggle-emoji-btn:hover {
  background: #ff9900;
}

/* ✅ Conteneur des emojis – scroll compact et collé */
.emoji-selector {
  position: absolute;
  font-size: 18px;
  top: 74%;
  left: 23%;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  /* ✅ Supprime l’espacement entre les boutons */
  justify-content: flex-start;
  background: #000;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  max-width: 220px;
  max-height: 160px;
  padding: 4px;
  overflow-y: auto;
  z-index: 100;
  animation: fadeIn 0.2s ease-out;
}

/* ✅ Effet d’apparition */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ✅ Boutons emoji compacts */
.emoji-btn {
  font-size: 16px;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.emoji-btn:hover {
  background: #333;
  transform: scale(1.05);
}

/* ✅ Cacher la palette */
.hidden {
  display: none;
}



@font-face {
  font-family: 'BebasNeue-Regular';
  src: url('fonts/BebasNeue-Regular.ttf') format('truetype');
  font-display: swap;
  /* ✅ Améliore les performances */
}


/* ✅ Masque scrollbar sur Chrome/Safari */
#chat-window::-webkit-scrollbar {
  display: none;
}

.chat-container::-webkit-scrollbar {
  width: 10px;
}

.chat-container::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.chat-container::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.2);
}

.timestamp {
  color: #999;
  font-size: 0.9em;
}

#output {
  color: #fff;
}

#feedback {
  color: #ccc;
}


/* 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) {

  html,
  body {
    display: flex;
    font-family: Arial, sans-serif;
    background-image: url('/img/blindtest-music-scene-wallpaper2.png');
    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;
  }

  /* Conteneur principal plus compact sur mobile */
  .main-container {
    position: relative;
    min-height: 72svh;
    /* une hauteur mini raisonnable */
    height: 550px;
    min-height: auto;
    padding-bottom: 20px;
  }

  /* Bouton Play descendu */
  .main-container .play-button {
    position: absolute;
    bottom: 150px;
    /* ↓ avant 200px */
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 52px;
    margin: 0;
    font-size: 20px;
    border-radius: 10px;
    z-index: 2;
  }

  /* Menu déroulant descendu */
  .main-container .playlist-select-container {
    position: absolute;
    bottom: calc(150px + 52px + 10px);
    /* ↓ avant 200px */
    left: 50%;
    transform: translateX(-50%);
    width: 170px;
    margin: 0;
    text-align: center;
    z-index: 2;
  }

  /* Style du select */
  #playlist-select {
    display: block;
    width: 100%;
    padding: 6px 8px;
    font-size: 14px;
    border-radius: 8px;
  }

  /* État grisé lisible */
  #playlist-select:disabled {
    background-color: #eee;
    color: #777;
    border-color: #ddd;
  }

  /* Compteur joueurs centré et remonté */
  #player-count {
    position: absolute;
    bottom: 42px;
    /* ↑ avant 12px → +30px */
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 6px 8px;
    font-size: 14px;
    border-radius: 6px;
    z-index: 1;
  }

  a.home-button {
    display: none;
  }

  #toggle-chat-container {
    display: none !important;
  }

  .playlist-columns {
    display: none !important;
    width: 0px !important;
  }


  .playlist-info {
    display: none;
  }

  h1 {
    font-size: 35px !important;
    position: relative;
    margin-bottom: 20px;
    text-align: center;
    top: 2%;
  }

  h2 {
    position: relative;
    text-align: center;
    top: -4%;
    font-size: 20px;
  }

  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: 220px;
    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: 12px !important;
    right: 12px !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;
    padding: 5px;
    width: 260px;
    font-size: 13px;
    margin-top: 30px;
    margin-left: -150px;
  }

  .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 {
    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 only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {

  a.home-button {
    display: none;
  }

  .classement-link {
    padding: 12px 25px;
    font-size: 20px;
    margin-top: -25px;
    margin-left: -550px;
  }
}


@media only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {

  a.home-button {
    display: none;
  }

  .classement-link {
    padding: 12px 25px;
    font-size: 20px;
    margin-top: -25px;
    margin-left: -380px;
  }

  #toggle-chat-container {
    gap: 6px;
    position: absolute;
    top: -10px !important;
    right: 50px;
    font-size: 16px;
    height: 30px;
    padding: 0 8px;
    /* 🔥 Réduction du padding à gauche/droite */
    line-height: 30px;
    width: 90px;
  }


  .chat-container {
    position: absolute;
    right: 10px;
    top: 50px;
    flex-direction: column;
    z-index: 2;
  }

  .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;
  }

  #game {
    position: fixed;
    width: 100%;
    height: 95vh !important;
    top: 1%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
  }

  .chat-container {
    width: 300px;
    height: 80%;
    padding: 20px;
    border-radius: 15px;
    position: fixed;
    right: 20px;
    top: 80px;
  }

  .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;
  }

  #toggle-chat-container {
    position: absolute;
    top: 10px;
    right: 110px;
    /* ✅ Ajustement du texte et de l'espacement */
    font-size: 16px;
    height: 30px;
    padding: 0 8px;
    /* 🔥 Réduction du padding à gauche/droite */
    line-height: 30px;
    width: 90px;
  }

  #chat-window {
    flex-grow: 1;
    /* Permettre au chat de s'étendre pour remplir l'espace disponible */
    overflow-y: scroll;
    /* Utilisez scroll au lieu de auto pour forcer le comportement de défilement */
    scrollbar-width: none;
    /* Pour les navigateurs Firefox */
    -ms-overflow-style: none;
    /* Pour Internet Explorer et Edge */
    margin-bottom: 10px;
  }


  /* Compteur de chanson */
  #song-counter {
    font-size: 18px !important;
    margin-top: 10px !important;
    margin-left: -20px;
    background: linear-gradient(135deg, #363638, #202020);
    color: white;
    font-weight: lighter;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}