/* 💿 CONTENEDOR PRINCIPAL */
.modern-player-fixed {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9999;
  background: linear-gradient(to right, #006e99, #004466);
  color: white;
  padding: 12px 0;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
}

.album-cover {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 280px;
  max-height: 300px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}


/* 🌐 INTERIOR */
.modern-player-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* 🎧 TÍTULO TIPO MARQUEE */
#song-title.marquee {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  height: 38px;
  line-height: 38px;
  padding: 0 16px;
  white-space: nowrap;
}
#song-title.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-marquee 15s linear infinite;
}
@keyframes scroll-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* 🎛️ CONTROLES */
.controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.controls button {
  background-color: white;
  color: #006e99;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.3s;
}

.controls button:hover {
  background-color: #57d9fa;
}

.controls i {
  color: #006e99;
  font-size: 1.2rem;
  pointer-events: none; /* evita que el clic afecte el ícono */
}

/* 🎯 Animación tipo "pulse" al hacer clic */
.controls button:active {
  transform: scale(0.92);
}

/* 🎶 LISTA DE CANCIONES */
.playlist {
  background: rgba(255,255,255,0.05);
  color: #ffffff;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
}
.playlist .song {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  cursor: pointer;
}
.playlist .song:hover {
  background: rgba(255, 255, 255, 0.08);
}
.playlist .song.playing {
  background: rgba(0, 195, 255, 0.2);
  font-weight: bold;
  border-left: 4px solid #00c3ff;
  padding-left: 6px;
}
.song-title-text {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.song-title-text .fa-music {
  color: #00c3ff;
}

.song-buttons button,
.song-buttons a {
  margin-left: 6px;
  font-size: 14px;
  color: #fff;
  background: transparent;
  border: none;
}
.song-buttons button:hover,
.song-buttons a:hover {
  color: #cceeff;
}

/* 🔊 REPRODUCTOR */
#audio-player {
  margin-top: 0.5rem;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: margin-top 0.3s ease;
}

/* Responsive */
@media (min-width: 769px) {
  .modern-player-fixed {
    position: static;
    border-radius: 0;
  }
}
@media (max-width: 768px) {
  .modern-player-fixed .playlist {
    display: none;
  }
}
</style>
