/* Contenedor general */
.mp3-player, .mp3-playlist {
  max-width: 100%;
  margin: 1rem auto;
  padding: 1rem;
  background: #2c2c2c; /* negro clarito */
  color: #ffffff;      /* texto en blanco para contraste */
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-family: sans-serif;
}

/* Botones de reproducción */
.play-pause, .prev, .next {
  background: none;
  border: none;
  font-size: 1.5rem;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.play-pause:hover, .prev:hover, .next:hover {
  transform: scale(1.2);
}

/* Información de pista */
.track-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}
.track-title {
  font-weight: bold;
}
.track-time {
  font-size: 0.875rem;
  color: #ffffff;
}

/* Barra de progreso */
.progress-container {
  position: relative;
  background: #555555;
  height: 0.5rem;
  border-radius: 0.25rem;
  overflow: hidden;
  margin: 0.75rem 0;
}
.progress-bar {
  width: 0;
  height: 100%;
  background: #0073aa;
  transition: width 0.1s linear;
}

/* Lista de reproducción */
.playlist-tracks {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
}
.playlist-tracks li {
  padding: 0.5rem;
  border-bottom: 1px solid #444444;
  cursor: pointer;
  transition: background 0.2s ease;
}
.playlist-tracks li:hover, .playlist-tracks li.active {
  background: #000000;
  color: #ffffff;
}