/* GLOBAL */
body {
  font: 16px Arial, sans-serif;
  background: url('icons/fond.png') no-repeat center center fixed;
  background-size: cover;
  color: #eee;
  text-align: center;
  margin: 0;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


h1 { margin-bottom: 20px; }

/* PLAYER */
.amplitude-player {
  background: #101f33;
  border-radius: 20px;
  padding: 1.5rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  margin-bottom: 2rem;
}


.song-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.time-info {
  font-size: 0.85rem;
  color: #aad0ff;
  margin-bottom: 1rem;
}


#song-played-progress {
  width: 100%;
  height: 8px;
  appearance: none;
  border-radius: 4px;
  margin-bottom: 1rem;
  background: #2d3d50;
}

#song-played-progress::-webkit-progress-bar {
  background-color: #2d3d50;
  border-radius: 4px;
}
#song-played-progress::-webkit-progress-value {
  background-color: #00ccff;
  border-radius: 4px;
}


#volume-slider {
  width: 30%;
  margin-bottom: 15px;
}

.amplitude-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 15px;
}

.amplitude-controls i {
  font-size: 1.25rem;
}
.amplitude-controls button {
  background: #1c2d44;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  color: white;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  cursor: pointer;
}

.amplitude-controls button:hover {
  background: #00baff;
}
.amplitude-controls .amplitude-playing {
  background: #00baff !important;
}
.amplitude-controls .amplitude-prev:hover,
.amplitude-controls .amplitude-next:hover {
  background: #00baff;
}
.amplitude-controls .amplitude-shuffle.amplitude-shuffle-on,
.amplitude-controls .amplitude-repeat.amplitude-repeat-on {
  background: #00cc99;
}


/* PLAYLIST GRID */
.playlists-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-top: 20px;
}


.playlists-container > .playlist {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 15px;
}

.playlists-container .playlist h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1em;
  text-decoration: underline;
  text-decoration-color: #ffffff;
  text-underline-offset: 4px;
}

.playlists-container .playlist ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.playlists-container .playlist li {
  margin: 5px 0;
  cursor: pointer;
}

.playlists-container .playlist li.amplitude-active-song-container {
  color: #00ffcc;
  font-weight: bold;
}

/* MOBILE */
@media (max-width: 600px) {
  #volume-slider { width: 70%; }
  .playlists-container { grid-template-columns: 1fr; }
}
/* ACCORDÉON PLAYLISTS */
.accordion-button {
  width: 60%;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  margin-top: 0.1rem;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  color: #fff;
  text-align: center;

  /* Centrage horizontal du contenu */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}


.accordion-button.face-a {
  background: linear-gradient(90deg, #0077be, #00c8ff);
}
.accordion-button.face-b {
  background: linear-gradient(90deg, #ff6b6b, #ffa947);
}
.accordion-button.face-c {
  background: linear-gradient(90deg, #6a11cb, #2575fc);
}
.accordion-button.face-d {
  background: linear-gradient(90deg, #1abc9c, #16a085);
}
.accordion-button.face-e {
  background: linear-gradient(90deg, #f39c12, #e67e22);
}
.accordion-button.face-f {
  background: linear-gradient(90deg, #34495e, #2c3e50);
}
.accordion-button.face-g {
  background: linear-gradient(90deg, #c0392b, #e74c3c);
}


.accordion-panel {
  background-color: #1b2b3a;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
  border-radius: 1rem;
  margin-bottom: 0.1rem;
}

.accordion-panel ul {
  list-style: none;
  padding: 1rem 1.2rem;
  margin: 0;
}

.accordion-panel ul li {
  font-weight: bold;
  padding: 0.5rem 0;
  border-bottom: 1px solid #3a4b5c;
  transition: color 0.2s;
  cursor: pointer;
}

.accordion-panel ul li:hover {
  color: #00ffff;
}
.slamb-logo {
  margin-bottom: 20px;
}

.slamb-logo img {
  width: 180px; /* ou ajuste selon ton design */
  height: auto;
  display: block;
  margin: 0 auto;
}
.mentions-link {
  color: #00ccff; /* couleur claire lisible sur fond sombre */
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.mentions-link:hover {
  color: #00ffff;
}
.user-menu-container {
  position: relative;
  margin-bottom: 20px;
}

.user-button {
  background: #00ccff;
  color: black;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.95rem;
}

.user-dropdown {
  position: absolute;
  top: 45px;
  right: 0;
  background: #1c2d44;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  display: none;
  min-width: 180px;
  z-index: 10;
  padding: 0.5rem 0;
}

.user-dropdown a,
.user-dropdown button {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  color: white;
  text-align: left;
  background: none;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: #00baff;
}
.add-to-playlist-btn {
  background-color: #00b9fe;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}
.add-to-playlist-btn:hover {
  background-color: #008fcc;
}

/* BOUTON RETOUR */
.back-container {
  margin-bottom: 20px;
}

.back-button {
  background: #00ccff;
  color: black;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.2s ease;
}

.back-button:hover {
  background: #00ffff;
}

/* PLAYLIST CREATOR (theme dark cohérent) */
.playlist-creator {
  background: #101f33;
  border-radius: 20px;
  padding: 1.2rem 1.2rem;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.2rem;
}

.playlist-creator h2 {
  margin: 0 0 0.9rem 0;
  color: #ffffff;
  font-size: 1.2rem;
}

#create-playlist-form {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* mobile friendly */
}

#playlist-name {
  background: #1c2d44;
  border: 1px solid #2d3d50;
  color: #fff;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  outline: none;
  width: min(320px, 100%);
  font-weight: bold;
}

#playlist-name::placeholder {
  color: #aad0ff;
  opacity: 0.8;
}

#playlist-name:focus {
  border-color: #00ccff;
  box-shadow: 0 0 0 3px rgba(0, 204, 255, 0.15);
}

.create-btn {
  background: #00ccff;
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
}

.create-btn:hover {
  background: #00ffff;
}

/* Mobile: bouton pleine largeur si besoin */
@media (max-width: 600px) {
  #create-playlist-form {
    flex-direction: column;
    align-items: stretch;
  }

  #playlist-name,
  .create-btn {
    width: 100%;
  }
}

/* === Bandeau playlist: titre centré + actions à droite === */
.accordion-button {
  width: 90%;
  max-width: 520px;
  justify-content: space-between;
  padding: 1rem 1.1rem;
}

/* Le span du titre (1er enfant) prend la place et se centre */
.accordion-button > span:first-child {
  flex: 1;
  text-align: center;
  font-weight: 900;
}

/* Groupe de boutons à droite */
.playlist-actions {
  display: flex;
  gap: 0.45rem;
  margin-left: 0.75rem;
}

/* Mini-boutons "glass" */
.pl-mini-btn {
  width: 44px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(10, 20, 35, 0.28);
  color: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  padding: 0;
  box-shadow: 0 10px 20px rgba(0,0,0,0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.pl-mini-btn:hover {
  transform: translateY(-1px);
  background: rgba(10, 20, 35, 0.40);
  border-color: rgba(255,255,255,0.55);
  box-shadow: 0 14px 26px rgba(0,0,0,0.35), 0 0 0 3px rgba(0, 204, 255, 0.18);
}

.pl-mini-btn:active {
  transform: translateY(0px) scale(0.98);
}

/* Icônes bootstrap dans les mini boutons */
.pl-mini-btn i {
  font-size: 1.15rem;
  line-height: 1;
  pointer-events: none;
  color: rgba(255,255,255,0.95);
}

/* Mobile */
@media (max-width: 600px) {
  .accordion-button {
    width: 94%;
  }
  .pl-mini-btn {
    width: 46px;
    height: 38px;
    border-radius: 15px;
  }
}

/* Bouton play actif (petit glow vert/bleu) */
.pl-mini-btn.is-playing {
  background: rgba(0, 204, 255, 0.25);
  border-color: rgba(0, 204, 255, 0.65);
  box-shadow: 0 14px 26px rgba(0,0,0,0.35), 0 0 0 3px rgba(0, 204, 255, 0.22);
}

.playlist-now-playing {
  font-size: 0.9rem;
  font-weight: 700;
  color: #aad0ff;
  margin-bottom: 0.35rem;
  letter-spacing: 0.3px;
}