/* Contenedor principal */
.playerContainer {
  width: 100%;
  position: relative;
  font-family: inherit;
  z-index: 998;
  -webkit-tap-highlight-color: transparent; /* Eliminar highlight al tocar en móviles */
}

/* Estilos para lazy-loading optimizado */
@keyframes imageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.artistTrackItemArt img, 
.albumArt img, 
.albumArtwork img,
.queueItemArt img {
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.5s ease;
  will-change: opacity, transform; /* Optimización de rendimiento */
  background-color: #2A2A2A;
}

.artistTrackItemArt img:not([src]), 
.albumArt img:not([src]), 
.albumArtwork img:not([src]),
.queueItemArt img:not([src]) {
  opacity: 0;
}

.artistTrackItemArt img.loaded, 
.albumArt img.loaded, 
.albumArtwork img.loaded,
.queueItemArt img.loaded {
  animation: imageFadeIn 0.3s ease forwards;
}

/* Estilos para scroll optimizado */
.artistTrackList {
  scrollbar-width: thin; /* Para Firefox */
  scrollbar-color: var(--color-primary) #1A1A1A; /* Para Firefox - Usando color azul */
  -webkit-overflow-scrolling: touch; /* Mejor desplazamiento táctil */
  will-change: scroll-position; /* Optimización de rendimiento */
  contain: content; /* Mejorar rendimiento de render */
}

.artistTrackList::-webkit-scrollbar {
  width: 6px;
}

.artistTrackList::-webkit-scrollbar-track {
  background: #1A1A1A;
}

.artistTrackList::-webkit-scrollbar-thumb {
  background-color: var(--color-primary); /* Color azul como en el desktop */
  border-radius: 6px;
}

/* Reproductor minimizado (barra inferior) */
.fixedPlayer {
  display: flex;
  align-items: center;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 0;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  height: 70px;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transition: all 0.2s ease;
  border-top: 1px solid rgba(1, 183, 46, 0.1); /* Color azul del desktop */
  will-change: transform; /* Optimización de rendimiento */
}

.albumArt {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background-color: #2A2A2A; /* Color de fondo mientras carga */
}

.albumArt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.albumArt:hover img {
  transform: scale(1.1);
}

.trackDetails {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  padding-right: 12px;
}

.trackTitle {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  text-overflow: ellipsis;
  overflow: hidden;
  color: #FFFFFF;
}

.artistName {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7); /* Color secundario como en desktop */
  margin: 0;
  text-overflow: ellipsis;
  overflow: hidden;
}

.controls {
  display: flex;
  align-items: center;
}

.controlButton {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7); /* Color secundario como en desktop */
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.controlButton:hover {
  color: #FFFFFF;
  background-color: rgba(1, 183, 46, 0.1); /* Color azul del desktop */
}

.controlButton:active {
  transform: scale(0.92);
}

.playButton {
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary)); /* Colores azules del desktop */
  border: none;
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(1, 183, 46, 0.3); /* Sombra azul como desktop */
  transition: all 0.2s ease;
}

.playButton:hover {
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary)); /* Uso de lilac-light a lilac-base */
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(1, 183, 46, 0.4); /* Sombra azul como desktop */
}

.playButton:active {
  transform: scale(0.95);
  background: var(--color-primary); /* Versión dark del azul */
}

/* Reproductor expandido (pantalla completa) */
.extendedPlayer {
  width: 100%;
  height: 100vh;
  background-color: #000000;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  contain: content; /* Mejora de rendimiento */
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.extendedBackground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: opacity; /* Mejora de rendimiento */
  background-color: #000000; /* Color mientras carga la imagen */
}

.backgroundOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), #000000);
  z-index: 1;
}

.mainContent {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 20px;
  padding-top: 60px;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; /* Evitar scroll anidado */
}

.albumArtwork {
  width: 70%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 1/1;
  margin: 0 auto 32px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  background-color: #2A2A2A; /* Color mientras carga */
  border: 1px solid rgba(1, 183, 46, 0.2); /* Borde azul sutil como desktop */
}

.albumArtwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.albumArtwork:hover img {
  transform: scale(1.05);
}

.trackInfo {
  text-align: center;
  margin-bottom: 32px;
}

.trackInfo .trackTitle {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}

.trackInfo .artistName {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7); /* Color secundario como en desktop */
  margin: 0;
}

/* Barra de progreso */
.progressContainer {
  margin-bottom: 24px;
  width: 100%;
}

.progressBarWrapper {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  margin-bottom: 8px;
  overflow: hidden;
}

.progressSlider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  z-index: 2;
  cursor: pointer;
}

/* Bolita del slider (thumb) como en desktop */
.progressSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.progressFill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary) 50%, var(--color-primary) 100%); /* Degradado azul como desktop */
  border-radius: 2px;
  z-index: 1;
  will-change: width; /* Optimización de rendimiento */
  box-shadow: 0 0 8px rgba(1, 183, 46, 0.5); /* Sombra azul como en desktop */
}

/* Bolita de progreso como en desktop */
.progressThumb {
  position: absolute;
  top: 50%;
  margin-left: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  left: var(--progress, 0%);
}

.progressBarWrapper:hover .progressThumb {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.timeInfo {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7); /* Color secundario como en desktop */
}

/* Controles principales */
.controlsContainer {
  margin-bottom: 32px;
}

.controlButtons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.shuffleButton,
.prevButton,
.nextButton,
.favoriteButton {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7); /* Color secundario como en desktop */
  font-size: 22px;
  padding: 10px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.shuffleButton:hover,
.prevButton:hover,
.nextButton:hover,
.favoriteButton:hover {
  color: #FFFFFF;
  background-color: rgba(1, 183, 46, 0.1); /* Color azul del desktop */
}

.shuffleButton:active,
.prevButton:active,
.nextButton:active,
.favoriteButton:active {
  transform: scale(0.92);
}

.shuffleButton.active,
.active {
  color: var(--color-primary) !important; /* Azul del desktop */
  background-color: rgba(1, 183, 46, 0.15);
  box-shadow: 0 0 8px rgba(1, 183, 46, 0.2);
}

.favoriteButton.active {
  color: #F61C5D !important; /* Coral como en desktop */
  background-color: rgba(246, 28, 93, 0.15);
  box-shadow: 0 0 8px rgba(246, 28, 93, 0.2);
}

.mainPlayButton {
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary)); /* Colores azules del desktop */
  border: none;
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(1, 183, 46, 0.6); /* Sombra azul como desktop */
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.mainPlayButton:hover {
  transform: scale(1.05);
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary)); /* Degradado desde light a base */
  box-shadow: 0 0 20px rgba(1, 183, 46, 0.8); /* Sombra azul como desktop */
}

.mainPlayButton:active {
  transform: scale(0.95);
  background: var(--color-primary); /* Dark blue */
}

/* Efecto similar al del desktop */
.mainPlayButton::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  transition: opacity 0.2s;
}

.mainPlayButton:hover::after {
  opacity: 1;
}

.mainPlayButton ion-icon {
  font-size: 30px;
  position: relative;
  z-index: 2;
}

/* Controles adicionales */
.extraControls {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 16px;
  padding: 0 16px;
}

.extraButton {
  background: transparent;
  color: rgba(255, 255, 255, 0.7); /* Color secundario como en desktop */
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.2s ease;
  position: relative;
  border-radius: 4px;
}

.extraButton:hover {
  opacity: 1;
  color: var(--color-primary); /* Color azul claro como en desktop */
  background: rgba(1, 183, 46, 0.1); /* Fondo azul translúcido */
}

.extraButton.active {
  opacity: 1;
  color: var(--color-primary) !important; /* Color azul base como en desktop */
  background: rgba(1, 183, 46, 0.15);
  box-shadow: 0 0 8px rgba(1, 183, 46, 0.2);
}

.extraButton:active {
  transform: scale(0.92);
}

.extraButton.downloading {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.downloadIndicator {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.downloadProgress {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary) 100%); /* Degradado azul como desktop */
  transition: width 0.3s linear;
  will-change: width; /* Optimización de rendimiento */
  box-shadow: 0 0 6px rgba(1, 183, 46, 0.5);
}

/* Control de volumen */
.volumeControl {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.volumeButton {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7); /* Color secundario como en desktop */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.volumeButton:hover {
  color: var(--color-primary); /* Azul claro como en desktop */
  background: rgba(1, 183, 46, 0.1); /* Fondo azul translúcido */
}

.volumeButton:active {
  transform: scale(0.92);
}

.volumeSliderWrapper {
  width: 100px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  margin-left: 8px;
  cursor: pointer;
}

.volumeSlider {
  width: 100%;
  height: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  position: absolute;
  top: -2px;
  left: 0;
  margin: 0;
  padding: 7px 0;
  z-index: 10;
  cursor: pointer;
}

.volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-top: -6px;
}

.volumeSlider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.volumeSliderFill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary) 100%); /* Degradado azul como desktop */
  border-radius: 2px;
  z-index: 1;
  will-change: width; /* Optimización de rendimiento */
  box-shadow: 0 0 6px rgba(1, 183, 46, 0.5);
}

/* Bolita del volumen como en desktop */
.volumeThumb {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  transform: translateY(-50%);
  margin-left: -6px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  left: var(--volume, 80%);
}

.volumeSliderWrapper:hover .volumeThumb {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* Lista de pistas de artista - OPTIMIZADA para lazy loading */
.artistTrackSection {
  margin-top: 20px;
  padding: 20px 0;
  border-top: 1px solid rgba(1, 183, 46, 0.1); /* Borde azul como en desktop */
}

.artistTrackHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.artistTrackTitle {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.artistTrackList {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 400px; /* Altura máxima para scroll */
  overflow-y: auto;
  border-radius: 8px;
  contain: content; /* Optimización de rendimiento */
}

.artistTrackItem {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  contain: layout style; /* Optimización de rendimiento */
}

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

.artistTrackItem.currentTrack {
  background-color: rgba(1, 183, 46, 0.15);
  box-shadow: 0 0 8px rgba(1, 183, 46, 0.2);
}

.artistTrackItemArt {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 12px;
  flex-shrink: 0;
  position: relative;
  background-color: var(--bg-hover);
  border: 1px solid rgba(1, 183, 46, 0.2);
}

.artistTrackItemArt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.artistTrackItem:hover .artistTrackItemArt img {
  transform: scale(1.05);
}

.nowPlayingIndicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Indicador de reproducción actual - barras de audio */
.soundBar {
  display: flex;
  align-items: flex-end;
  height: 20px;
  width: 20px;
}

.soundBar span {
  display: inline-block;
  width: 4px;
  margin: 0 1px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary) 50%, var(--color-primary) 100%); /* Degradado azul como desktop */
  animation: soundBars 0.8s infinite alternate;
}

.soundBar span:nth-child(1) {
  height: 8px;
  animation-delay: 0s;
}

.soundBar span:nth-child(2) {
  height: 16px;
  animation-delay: 0.2s;
}

.soundBar span:nth-child(3) {
  height: 10px;
  animation-delay: 0.4s;
}

@keyframes soundBars {
  0% { height: 4px; }
  100% { height: 16px; }
}

.artistTrackItemInfo {
  flex: 1;
  overflow: hidden;
  padding-right: 12px;
}

.artistTrackItemTitle {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--text-primary);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.currentTrackLabel {
  font-size: 11px;
  color: var(--color-primary); /* Azul claro como en desktop */
  margin-left: 8px;
  font-weight: 400;
}

.artistTrackItemAlbum {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.artistTrackPlayButton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
  font-size: 18px;
  box-shadow: none;
}

.artistTrackItem:hover .artistTrackPlayButton {
  opacity: 1;
}

.artistTrackPlayButton:hover {
  background: rgba(0, 0, 0, 0.65);
}

.artistTrackPlayButton:active {
  background: rgba(0, 0, 0, 0.7);
}

/* Indicadores de carga para lazy loading */
.loadingTracks {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.7); /* Color secundario como en desktop */
}

/* Continuación del archivo celular.module.css */

.loadingSpinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-primary); /* Color azul base como en desktop */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loadingMoreItem {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.7); /* Color secundario como en desktop */
  background-color: transparent;
}

.loadingMoreItem .loadingSpinner {
  width: 24px;
  height: 24px;
  margin: 0 12px 0 0;
}

.noMoreTracksItem {
  text-align: center;
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.7); /* Color secundario como en desktop */
  font-size: 14px;
  border-top: 1px solid rgba(1, 183, 46, 0.05); /* Borde azul sutil como desktop */
}

.noArtistTracks {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.7); /* Color secundario como en desktop */
  text-align: center;
}

.noArtistTracks ion-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
  color: var(--color-primary); /* Color azul base como en desktop */
}

/* Sección de cola de reproducción */
.queueSection {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  margin-top: 16px;
  padding: 16px;
  display: none;
  animation: fadeIn 0.3s ease;
  border: 1px solid rgba(1, 183, 46, 0.1); /* Borde azul sutil como desktop */
}

.queueSection.visible {
  display: block;
}

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

.queueHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.queueTitle {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #FFFFFF;
}

.queueCloseButton {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7); /* Color secundario como en desktop */
  font-size: 22px;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.queueCloseButton:hover {
  color: #FFFFFF;
  transform: scale(1.1);
}

.queueList {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
}

.queueItem {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(1, 183, 46, 0.05); /* Borde azul sutil como desktop */
  transition: all 0.2s ease;
}

.queueItem:hover {
  background-color: rgba(1, 183, 46, 0.05); /* Fondo azul sutil como desktop */
}

.queueItemArt {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 12px;
  flex-shrink: 0;
  background-color: #2A2A2A; /* Color mientras carga */
  border: 1px solid rgba(1, 183, 46, 0.2); /* Borde azul sutil como desktop */
}

.queueItemArt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.queueItemInfo {
  flex: 1;
  overflow: hidden;
}

.queueItemTitle {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 4px;
  color: #FFFFFF;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.queueItemArtist {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7); /* Color secundario como en desktop */
  margin: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.queueItemRemove {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7); /* Color secundario como en desktop */
  padding: 5px;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.queueItemRemove:hover {
  color: #F61C5D; /* Color coral como en desktop */
  transform: scale(1.1);
}

.queueEmptyItem {
  padding: 30px 0;
  text-align: center;
}

.queueEmptyMessage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7); /* Color secundario como en desktop */
}

.queueEmptyMessage ion-icon {
  font-size: 40px;
  margin-bottom: 10px;
  opacity: 0.6;
  color: var(--color-primary); /* Color azul base como en desktop */
}

/* Botón para minimizar */
.minimizeButton {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.minimizeButton:hover {
  background-color: rgba(1, 183, 46, 0.2); /* Fondo azul sutil como desktop */
  transform: scale(1.1);
}

.minimizeButton:active {
  transform: scale(0.95);
}

/* Overlay de descarga */
.downloadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.downloadAnimation {
  font-size: 64px;
  color: var(--color-primary); /* Color azul base como en desktop */
  margin-bottom: 24px;
  animation: pulse 2s infinite;
}

.downloadProgressContainer {
  width: 80%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.downloadProgressBar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary) 100%); /* Degradado azul como desktop */
  border-radius: 4px;
  transition: width 0.3s ease;
  will-change: width; /* Optimización */
  box-shadow: 0 0 8px rgba(1, 183, 46, 0.3); /* Sombra azul como en desktop */
}

.downloadOverlayContent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  margin-top: 16px;
}

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

.cancelDownloadButton {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid #F61C5D; /* Borde coral como en desktop */
  color: #F61C5D; /* Color coral como en desktop */
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancelDownloadButton:hover {
  background-color: rgba(246, 28, 93, 0.1); /* Fondo coral sutil como desktop */
  box-shadow: 0 0 12px rgba(246, 28, 93, 0.2); /* Sombra coral como en desktop */
}

.cancelDownloadButton:active {
  transform: scale(0.95);
}

.buttonIcon {
  margin-right: 8px;
  font-size: 18px;
}

/* Panel de letras */
.lyricsOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.lyricsHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(1, 183, 46, 0.1); /* Borde azul sutil como desktop */
}

.lyricsTitle {
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
}

.lyricsCloseButton {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7); /* Color secundario como en desktop */
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lyricsCloseButton:hover {
  color: #FFFFFF;
  transform: scale(1.1);
}

.lyricsContent {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lyricsPlaceholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.7); /* Color secundario como en desktop */
}

.lyricsPlaceholder ion-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.6;
  color: var(--color-primary); /* Color azul base como en desktop */
}

/* Optimizaciones para dispositivos móviles */
@media (max-width: 480px) {
  .albumArtwork {
    width: 80%;
    max-width: 250px;
  }
  
  .mainPlayButton {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
  
  .shuffleButton,
  .prevButton,
  .nextButton,
  .favoriteButton {
    font-size: 20px;
    width: 38px;
    height: 38px;
  }
  
  .extraButton {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .volumeSliderWrapper {
    width: 70px;
  }
  
  .downloadOverlayContent {
    flex-direction: column;
    align-items: center;
  }
  
  .downloadText {
    margin-bottom: 16px;
  }
  
  /* Optimizar lista para pantallas pequeñas */
  .artistTrackList {
    max-height: 350px; /* Altura más pequeña */
    overscroll-behavior: contain;
  }
  
  .artistTrackItemArt {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 360px) {
  .albumArtwork {
    width: 90%;
    margin-bottom: 24px;
  }
  
  .controlButtons {
    padding: 0 10px;
  }
  
  .extraControls {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .queueItemTitle, .queueItemArtist {
    max-width: 150px;
  }
  
  .artistTrackItemTitle, .artistTrackItemAlbum {
    max-width: 180px;
  }
}

/* Tema claro para el reproductor de música */

/* Reproductor minimizado (barra inferior) */
:global(.light-theme) .fixedPlayer {
  background-color: #f5f5f7;
  color: #1b1b24;
  border-top: 1px solid rgba(1, 183, 46, 0.2); /* Borde azul sutil como desktop */
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1), 0 -2px 4px rgba(1, 183, 46, 0.1); /* Sombra azul como en desktop */
}
:global(.light-theme) .artistTrackItemTitle{
  color: var(--text-primary);
}
:global(.light-theme) .artistTrackItemAlbum{
  color: var(--text-secondary); 
}

:global(.light-theme) .artistTrackItem {
  background-color: rgba(0, 0, 0, 0.03);
}

:global(.light-theme) .artistTrackItem:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

:global(.light-theme) .artistTrackItemArt {
  background-color: var(--bg-hover);
}

:global(.light-theme) .trackTitle {
  color: #1b1b24;
}

:global(.light-theme) .artistName {
  color: #666666;
}

:global(.light-theme) .controlButton {
  color: #666666;
}

:global(.light-theme) .controlButton:hover {
  color: #1b1b24;
  background-color: rgba(1, 183, 46, 0.1); /* Fondo azul sutil como desktop */
}

:global(.light-theme) .playButton {
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary)); /* Colores azules del desktop */
  color: #ffffff;
  box-shadow: 0 0 15px rgba(1, 183, 46, 0.3); /* Sombra azul como en desktop */
}

:global(.light-theme) .playButton:hover {
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary)); /* Degradado desde light a base */
  box-shadow: 0 0 20px rgba(1, 183, 46, 0.4); /* Sombra azul como en desktop */
}

:global(.light-theme) .playButton:active {
  background: var(--color-primary); /* Color azul oscuro como en desktop */
}

/* Reproductor expandido (pantalla completa) */
:global(.light-theme) .extendedPlayer {
  background-color: #f5f5f7;
  color: #1b1b24;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1), 0 -2px 4px rgba(1, 183, 46, 0.1); /* Sombra azul como en desktop */
}

:global(.light-theme) .extendedBackground {
  background-color: #f0f0f5;
}

:global(.light-theme) .backgroundOverlay {
  background: linear-gradient(to bottom, rgba(245, 245, 247, 0.6), #f5f5f7);
}

:global(.light-theme) .trackInfo .trackTitle {
  color: #1b1b24;
  text-shadow: none;
}

:global(.light-theme) .trackInfo .artistName {
  color: #666666;
}

/* Barra de progreso en tema claro */
:global(.light-theme) .progressBarWrapper {
  background-color: rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
}

:global(.light-theme) .progressSlider::-webkit-slider-thumb {
  background: white;
  box-shadow: 0 0 5px rgba(1, 183, 46, 0.3); /* Sombra azul como en desktop */
}

:global(.light-theme) .progressFill {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary) 50%, var(--color-primary) 100%); /* Degradado azul como desktop */
}

:global(.light-theme) .timeInfo {
  color: #666666;
}

/* Controles principales en tema claro */
:global(.light-theme) .shuffleButton,
:global(.light-theme) .prevButton,
:global(.light-theme) .nextButton,
:global(.light-theme) .favoriteButton {
  color: #666666;
}

:global(.light-theme) .shuffleButton:hover,
:global(.light-theme) .prevButton:hover,
:global(.light-theme) .nextButton:hover,
:global(.light-theme) .favoriteButton:hover {
  color: #1b1b24;
  background-color: rgba(1, 183, 46, 0.1); /* Fondo azul sutil como desktop */
}

:global(.light-theme) .shuffleButton.active,
:global(.light-theme) .active {
  color: var(--color-primary) !important; /* Color azul oscuro como en desktop */
  background: rgba(1, 183, 46, 0.15);
}

:global(.light-theme) .favoriteButton.active {
  color: #C4144C !important; /* Color coral oscuro como en desktop */
  background: rgba(246, 28, 93, 0.15);
}

:global(.light-theme) .mainPlayButton {
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary)); /* Colores azules del desktop */
  color: #ffffff;
  box-shadow: 0 0 15px rgba(1, 183, 46, 0.3); /* Sombra azul como en desktop */
}

:global(.light-theme) .mainPlayButton:hover {
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary)); /* Degradado desde light a base */
  box-shadow: 0 0 20px rgba(1, 183, 46, 0.4); /* Sombra azul como en desktop */
}

:global(.light-theme) .mainPlayButton:active {
  background: var(--color-primary); /* Color azul oscuro como en desktop */
}

/* Controles adicionales en tema claro */
:global(.light-theme) .extraButton {
  color: #666666;
}

:global(.light-theme) .extraButton:hover {
  color: var(--color-primary); /* Color azul oscuro como en desktop */
  background: rgba(1, 183, 46, 0.1); /* Fondo azul sutil como desktop */
}

:global(.light-theme) .extraButton.active {
  color: var(--color-primary) !important; /* Color azul oscuro como en desktop */
  background: rgba(1, 183, 46, 0.15);
}

:global(.light-theme) .downloadProgress {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary) 100%); /* Degradado azul como desktop */
}

/* Control de volumen en tema claro */
:global(.light-theme) .volumeButton {
  color: #666666;
}

:global(.light-theme) .volumeButton:hover {
  color: var(--color-primary); /* Color azul oscuro como en desktop */
}

:global(.light-theme) .volumeSliderWrapper {
  background-color: rgba(0, 0, 0, 0.1);
}

:global(.light-theme) .volumeSlider::-webkit-slider-thumb {
  background: white;
  box-shadow: 0 0 5px rgba(1, 183, 46, 0.5); /* Sombra azul como en desktop */
}

:global(.light-theme) .volumeSliderFill {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary) 100%); /* Degradado azul como desktop */
}

/* Badge de calidad de audio para la vista expandida en móvil */
.qualityBadgeMobile {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 12px;
  padding: 3px 8px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  z-index: 2;
}

.qualityBadgeMobile ion-icon {
  margin-right: 4px;
  font-size: 0.8rem;
}

/* Indicador de calidad en línea junto al artista */
.audioQualityInline {
  font-size: 0.8rem;
  opacity: 0.8;
  display: inline;
}

/* Badge pequeño para modo minimizado */
.minimizedQualityBadge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  z-index: 2;
}

.miniQualityLabel {
  font-size: 0.7rem;
  opacity: 0.7;
}