
/* Audio oculto - común a ambas versiones */
.hiddenAudio {
  display: none;
}

/* Popup de descargas, panel de letras y overlay de descarga - común a ambas versiones */
.downloadPopup,
.lyricsPanel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  max-height: 80vh;

  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 991;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeScale 0.3s ease;
}

@keyframes fadeScale {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.downloadPopupHeader,
.lyricsHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.downloadPopupHeader h3,
.lyricsHeader h3 {
  margin: 0;
  font-size: 18px;
  color: #FFFFFF;
}

.popupCloseButton {
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.popupCloseButton:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.popupCloseButton ion-icon {
  width: 20px;
  height: 20px;
}

.downloadList {
  padding: 16px;
  overflow-y: auto;
  max-height: calc(80vh - 70px);
}

.emptyDownloadList {
  text-align: center;
  color: #808080;
  padding: 32px 0;
  font-style: italic;
}

.downloadedTrack {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 12px;
  background-color: rgba(255, 255, 255, 0.05);
}

.downloadedTrack:active {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(0.98);
}

.downloadedTrackImage {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  margin-right: 12px;
}

.downloadedTrackInfo {
  flex-grow: 1;
  overflow: hidden;
}

.downloadedTrackInfo h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.downloadedTrackInfo p {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #B3B3B3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.downloadedTrackMeta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #808080;
}

.downloadedTrackControls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 12px;
}

.downloadedTrackButton {
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.downloadedTrackButton ion-icon {
  width: 16px;
  height: 16px;
}

.downloadedTrackButton:active {
  transform: scale(0.92);
  background-color: rgba(255, 255, 255, 0.1);
}

.downloadedTrackButton:last-child:active {
  color: #E91429;
}

.lyricsContent {
  padding: 16px;
  overflow-y: auto;
  max-height: calc(80vh - 70px);
  font-size: 16px;
  line-height: 1.5;
  color: #FFFFFF;
  text-align: center;
}

.currentLyric {
  color: #1DB954;
  font-weight: 500;
}

.downloadingOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeIn 0.3s ease;
  z-index: 20;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.downloadProgressContainer {
  width: 100%;
  max-width: 300px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.downloadProgressBar {
  height: 100%;
  background-color: #1DB954;
  width: 0%;
  transition: width 0.3s ease;
}

.downloadOverlayContent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 300px;
}

.downloadText {
  font-size: 14px;
  color: #FFFFFF;
}

.cancelDownloadButton {
  background-color: transparent;
  border: 1px solid #E91429;
  color: #E91429;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancelDownloadButton:active {
  background-color: rgba(233, 20, 41, 0.1);
  transform: scale(0.95);
}

/* Contenedor principal - común a ambas versiones */
.playerContainer {
  position: relative;
  z-index: 998;
}
.desktopPlayer{z-index: 999;}
/* Media queries para definir qué versión mostrar según el ancho de pantalla */
@media (max-width: 768px) {
  .desktopPlayer {
    display: none;
  }
}

@media (min-width: 769px) {
  .collapsed, .expanded {
    display: none;
  }
}