/* Imagen de portada */
.audio-player img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #2f2f2f30;
  border: 4px solid #00000030;
}

/* Controles principales */
.audio-player .controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 5px;
  width: 100%;
}

/* Línea de tiempo y texto */
.audio-player .timeline {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Barra de progreso */
#audioProgressBar {
  flex-grow: 1;
  appearance: none;
  background: #444;
  border-radius: 5px;
  outline: none;
  margin: 0 10px;
  cursor: url(../assets/cursorWhite.png) 16 16, auto !important;
  height: 6px;
  margin-left: 35px;
}

#audioProgressBar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
}

#audioProgressBar:hover {
  background: #666;
}

#audioProgressBar::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

#audioProgressBar:active::-webkit-slider-thumb {
  transform: scale(1.1);
}

/* Control de volumen */
#audioVolumeControl {
  appearance: none;
  width: 80px;
  background: #444;
  border-radius: 5px;
  outline: none;
  cursor: url(../assets/cursorWhite.png) 16 16, auto !important;
  margin-top: 17px;
  height: 6px;
}

#audioVolumeControl::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
}

#audioVolumeControl:hover {
  background: #666;
}

#audioVolumeControl::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

#audioVolumeControl:active::-webkit-slider-thumb {
  transform: scale(1.1);
}

/* Botón de reproducción */
#audioPlayPauseButton {
  background: none;
  border: none;
  font-size: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: url(../assets/cursorWhite.png) 16 16, auto !important;
  margin-left: 100px;
  margin-top: 17px;
  user-select: none;
  padding: 2px;

  /* separar el boton del volumen */
}
.fa-play:before {
  padding: 5.5px;
}
/* separar el boton del volumen */
.fa-pause:before {
  padding: 6.5px;
}

/* Texto del tiempo */
#currentAudioTime {
  font-size: 10px;
  color: #fff;
  font-family: "Unbounded";
  position: fixed;
  margin-left: -167px;
}
#totalAudioTime {
  font-size: 10px;
  color: #fff;
  font-family: "Unbounded";
  position: relative;
}

/* Contenedor de tiempo */
.time-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  margin: 0 50px;
  margin-top: 17px;
}

/* Contenedor principal del reproductor de audio */
.audio-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-width: 1px;
  border-radius: 10px;
  border-color: #000000a8;
  width: 100%; /* Ocupa el 100% del contenedor padre */
  max-width: 500px;
  margin: 20px auto; /* Centrado en la página */
  margin-top: 240px;
  background: #00000038;
}

/* Asegura que el contenedor del audio esté alineado horizontalmente */
.audio-player {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  /* background: #00000038;
  backdrop-filter: blur(100px);
  box-shadow: 0 0 25px #00000031; */
}

.song-title {
  margin-bottom: 8px; /* Espacio entre el nombre y la barra de progreso */
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-align: center;
}
