/* ModalArtistaReproductor.module.css - Mejorado con la paleta de azules */

/* Variables de diseño - Asegurando consistencia con desktop.module.css */
.modalOverlay {
  --lilac-base: #ffffff;
  --lilac-dark: #e0e0e0;
  --lilac-light: #ffffff;
  
  --mint-base: #1ED89B;
  --mint-dark: #15A77A;
  --mint-light: #7EE9C2;
  
  --blue-base: #ffffff;
  --blue-dark: #e0e0e0;
  --blue-light: #ffffff;
  
  --coral-base: #F61C5D;
  --coral-dark: #C4144C;
  --coral-light: #FF88A8;
  
  /* Colores base */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --bg-color: #000000;
  --bg-player: #080808;

  /* Posicionamiento y estilo original */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modalContent {
  position: relative;
  width: 50%;
  max-height: 72vh;
  background-color: #121212;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-light);
  animation: slideUp 0.4s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Botón de cerrar - Mejorado con efectos */
.closeButton {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 20px;
  padding: 0;
}

.closeButton:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

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

/* Loader de esqueleto durante carga - Actualizado con los nuevos colores */
.skeletonContainer {
  width: 100%;
  height: 100%;
  min-height: 500px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.skeletonTitle {
  height: 36px;
  width: 200px;
  background: linear-gradient(90deg, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%);
  border-radius: 8px;
  animation: shimmer 1.5s infinite;
}

.skeletonBody {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.skeletonImage {
  width: 250px;
  height: 250px;
  background: linear-gradient(90deg, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%);
  border-radius: 50%;
  animation: shimmer 1.5s infinite;
}

.skeletonDetails {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 10px;
}

.skeletonLine {
  height: 24px;
  width: 100%;
  background: linear-gradient(90deg, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%);
  border-radius: 6px;
  animation: shimmer 1.5s infinite;
}

.skeletonLine:nth-child(2) {
  width: 80%;
}

.skeletonLine:nth-child(3) {
  width: 60%;
}

@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

/* Indicador de carga - Actualizado con la paleta azul */
.loadingIndicator {
  margin-top: 30px;
  text-align: center;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.progressBar {
  width: 60%;
  height: 6px;
  background-color: #2a2a2a;
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
}

.progressBarFill {
  height: 100%;
  background: linear-gradient(90deg, var(--lilac-dark) 0%, var(--lilac-base) 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

/* Contenedor de error - Actualizado con estilos más consistentes */
.errorContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  min-height: 300px;
}

.errorIcon {
  font-size: 48px;
  color: var(--coral-base);
  margin-bottom: 20px;
}

.errorContainer h3 {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.errorContainer p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 400px;
  margin-bottom: 30px;
}

.errorActions {
  display: flex;
  gap: 15px;
}

.retryButton {
  background: #ffffff;
  border: none;
  color: #000000;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.retryButton:hover {
  background: #e0e0e0;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

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

/* Contenido principal del artista - Mejorado */
.artistContent {
  padding: 40px 30px 100px;
  width: 100%;
  height: 100%;
}

/* Cabecera del artista - Mejorada con efectos similares a desktop.module.css */
.artistHeader {
  display: flex;
  margin-bottom: 40px;
  gap: 30px;
}

.artistAvatar {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.artistAvatar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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


.artistAvatar:hover {
  transform: none;
}

.artistInfo {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.artistType {
  text-transform: uppercase;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 10px;
  letter-spacing: 1.5px;
}

.artistName {
  font-size: 42px;
  font-weight: 900;
  margin: 0 0 10px;
  color: var(--text-primary);
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.artistMeta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.artistFollowers,
.albumCount {
  display: flex;
  align-items: center;
  gap: 5px;
}

.artistFollowers ion-icon,
.albumCount ion-icon {
  font-size: 16px;
}

.artistActions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.playAllButton {
  background: var(--color-primary);
  border: none;
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.playAllButton:hover {
  filter: brightness(0.85);
}

.playAllButton:active {
  filter: brightness(0.7);
}

/* Tabs de navegación - Mejorados con efectos alineados */
.tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.tabButton {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.2s ease;
  position: relative;
}

.tabButton::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.tabButton:hover::before {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.tabButton:hover {
  color: white;
}

.activeTab {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.activeTab ion-icon {
  color: var(--lilac-base);
}

/* Cuerpo del artista */
.artistBody {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sectionTitle {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sectionTitle ion-icon {
  font-size: 24px;
  color: var(--text-secondary);
}

/* Lista de pistas populares - Mejorado con efectos hover mejor definidos */
.tracksList {
  width: 100%;
  border-radius: 8px;
}

.trackItem {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 6px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.trackItem:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.activeTrack {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.activeTrack:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
}

.trackNumber {
  width: 30px;
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-right: 15px;
}

.playingIndicator {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 16px;
}

.playingIndicator .bar {
  width: 3px;
  height: 100%;
  background-color: var(--lilac-base);
  margin: 0 1px;
  animation: sound 0.5s infinite alternate;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

.playingIndicator .bar:nth-child(2) {
  animation-delay: 0.2s;
}

.playingIndicator .bar:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes sound {
  0% { height: 3px; }
  100% { height: 16px; }
}

.trackCover {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
}

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

.trackCoverOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.trackCoverOverlay ion-icon {
  color: white;
  font-size: 20px;
}

.trackItem:hover .trackCoverOverlay,
.activeTrack .trackCoverOverlay {
  opacity: 1;
}

.trackInfo {
  flex: 1;
}

.trackTitle {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-weight: 500;
}

.trackAlbum {
  font-size: 14px;
  color: var(--text-secondary);
}

.trackDuration {
  width: 50px;
  text-align: right;
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 10px;
}

.trackActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 40px;
  gap: 8px;
}

.actionButton {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.actionButton:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.favoriteActive {
  color: var(--coral-base) !important;
}



.downloadButton {
  background-color: rgba(1, 183, 46, 0.15); /* semitransparente, igual que badge */
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.downloadButton:hover {
  background-color: var(--color-primary);
  color: #fff;
}

/* Grid de álbumes - Mejorado con efectos 3D sutiles */
.albumsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.albumCard {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  padding: 8px;
}

.albumCard:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.06);
  background-color: rgba(255, 255, 255, 0.03);
}

.albumCardCover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
}

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

.albumCardCover:hover img {
  transform: scale(1.08);
}

.albumCardOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.albumCardCover:hover .albumCardOverlay {
  opacity: 1;
}

.playAlbumButton {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.playAlbumButton::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;
}

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

.playAlbumButton:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.albumCardInfo {
  padding: 5px;
}

.albumCardTitle {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.albumCard:hover .albumCardTitle {
  color: var(--lilac-light);
}

.albumCardYear {
  font-size: 12px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.albumCard:hover .albumCardYear {
  color: var(--lilac-base);
}

/* Sección de información - Mejorada */
.infoSection {
  max-width: 800px;
}

.artistBio {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 30px;
  padding: 15px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--text-secondary);
}

.genresSection {
  margin-top: 20px;
}

.genresSection h4 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.genresTags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genreTag {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 1px solid var(--border-light);
}

.genreTag:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estado vacío - Mejorado */
.emptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: var(--text-secondary);
  text-align: center;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin: 20px 0;
}

.emptyState ion-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  opacity: 0.7;
}

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

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Adaptaciones para pantallas pequeñas */
@media (max-width: 768px) {
  .modalContent {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  
  .artistContent {
    padding: 30px 15px 120px;
  }
  
  .artistHeader {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
  }
  
  .artistAvatar {
    width: 200px;
    height: 200px;
  }
  
  .artistName {
    font-size: 28px;
  }
  
  .artistMeta {
    justify-content: center;
  }
  
  .artistActions {
    justify-content: center;
  }
  
  .tabs {
    overflow-x: auto;
    padding-bottom: 5px;
    justify-content: flex-start;
    white-space: nowrap;
  }
  
  .tabButton {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .albumsGrid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
}

/* Tema claro - Actualizado para coincidir con los nuevos estilos de azul */
:global(.light-theme) .modalOverlay {
  background-color: rgba(245, 245, 247, 0.85);
}

:global(.light-theme) .modalContent {
  background-color: #f5f5f7;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

:global(.light-theme) .closeButton {
  background: rgba(0, 0, 0, 0.04);
  color: #64748b;
}

:global(.light-theme) .closeButton:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #1e293b;
}

:global(.light-theme) .artistName {
  color: #000000;
  text-shadow: none;
}

:global(.light-theme) .artistType,
:global(.light-theme) .artistMeta,
:global(.light-theme) .trackAlbum,
:global(.light-theme) .trackDuration,
:global(.light-theme) .albumCardYear {
  color: #555555;
}

:global(.light-theme) .sectionTitle {
  color: #000000;
}

:global(.light-theme) .trackTitle,
:global(.light-theme) .albumCardTitle {
  color: #000000;
}

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

:global(.light-theme) .tabButton {
  color: #555555;
}

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

:global(.light-theme) .activeTab {
  color: #000000;
  background-color: rgba(0, 0, 0, 0.06);
}

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

:global(.light-theme) .activeTrack {
  background-color: rgba(0, 0, 0, 0.06) !important;
}

:global(.light-theme) .activeTrack:hover {
  background-color: rgba(0, 0, 0, 0.08) !important;
}

:global(.light-theme) .trackNumber {
  color: #555555;
}

:global(.light-theme) .genreTag {
  background-color: rgba(0, 0, 0, 0.04);
  color: #000000;
  border: 1px solid var(--border-light);
}

:global(.light-theme) .skeletonTitle,
:global(.light-theme) .skeletonImage,
:global(.light-theme) .skeletonLine {
  background: linear-gradient(90deg, #e0e0e0 0%, #f0f0f0 50%, #e0e0e0 100%);
}

:global(.light-theme) .loadingIndicator {
  color: #555555;
}

:global(.light-theme) .progressBar {
  background-color: #dddddd;
}

:global(.light-theme) .errorContainer h3 {
  color: #000000;
}

:global(.light-theme) .errorContainer p {
  color: #555555;
}

:global(.light-theme) .actionButton {
  color: #555555;
}

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

/* Estilos para esqueletos de carga - Actualizado con tonos azules */
.skeletonContainer {
  width: 100%;
  padding: 1.5rem;
}

.skeletonHeader {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.skeletonArtistImage {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  animation: pulse 1.5s infinite ease-in-out;
}

.skeletonArtistInfo {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.skeletonTitle {
  height: 32px;
  width: 60%;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  animation: pulse 1.5s infinite ease-in-out;
}

.skeletonSubtitle {
  height: 20px;
  width: 40%;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  animation: pulse 1.5s infinite ease-in-out;
}

.skeletonButtonGroup {
  height: 40px;
  width: 120px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  margin-top: 1rem;
  animation: pulse 1.5s infinite ease-in-out;
}

.skeletonTabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.skeletonTab {
  height: 36px;
  width: 120px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  animation: pulse 1.5s infinite ease-in-out;
}

/* Estilos para esqueleto de carga de pistas */
.tracksLoadingSkeleton {
  padding: 1rem 0;
}

.trackItemSkeleton {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  background-color: rgba(255, 255, 255, 0.03);
  animation: pulse 1.5s infinite ease-in-out;
}

.trackCoverSkeleton {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  margin-right: 15px;
  flex-shrink: 0;
}

.trackInfoSkeleton {
  flex: 1;
}

.trackTitleSkeleton {
  height: 16px;
  width: 70%;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.trackAlbumSkeleton {
  height: 12px;
  width: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.trackDurationSkeleton {
  width: 40px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  margin: 0 10px;
}

.trackActionsSkeleton {
  display: flex;
  align-items: center;
  gap: 8px;
}

.actionButtonSkeleton {
  width: 24px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.downloadButtonSkeleton {
  width: 70px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

/* Estilos para esqueleto de carga de álbumes */
.albumsLoadingSkeleton {
  padding: 1rem 0;
}

.albumsGridSkeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.albumCardSkeleton {
  display: flex;
  flex-direction: column;
  animation: pulse 1.5s infinite ease-in-out;
}

.albumCardCoverSkeleton {
  width: 100%;
  aspect-ratio: 1/1;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.albumCardInfoSkeleton {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.albumCardTitleSkeleton {
  height: 16px;
  width: 90%;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.albumCardYearSkeleton {
  height: 12px;
  width: 40%;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.loadingText {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.loadingIndicator {
  margin-top: 2rem;
  text-align: center;
}

.progressBar {
  height: 4px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progressBarFill {
  height: 100%;
  background: linear-gradient(90deg, var(--lilac-dark) 0%, var(--lilac-base) 100%);
  border-radius: 2px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

/* Animación de pulso para elementos de carga */
@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.6;
  }
}

/* Efectos adicionales para mejor interactividad */
.artistAvatar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 2;
  pointer-events: none;
}

/* Efecto de brillo en los botones principales */
.retryButton:hover,
.playAlbumButton:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Hover de álbum con efecto levitante */
.albumCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
}

/* Modo oscuro para los esqueletos */
.skeletonTitle,
.skeletonImage,
.skeletonLine,
.skeletonArtistImage,
.skeletonSubtitle,
.skeletonButtonGroup,
.skeletonTab,
.trackItemSkeleton,
.trackNumberSkeleton,
.trackCoverSkeleton,
.trackTitleSkeleton,
.trackAlbumSkeleton,
.trackDurationSkeleton,
.actionButtonSkeleton,
.albumCardCoverSkeleton,
.albumCardTitleSkeleton,
.albumCardYearSkeleton {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.03) 0%, 
    rgba(255, 255, 255, 0.06) 50%, 
    rgba(255, 255, 255, 0.03) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Efecto de ondas para botones activos */
.activeTrack,
.retryButton,
.playAlbumButton {
  position: relative;
  overflow: hidden;
}

.activeTrack::after,
.retryButton::after,
.playAlbumButton::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 65%);
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 0.5;
  }
  100% {
    width: 300%;
    height: 300%;
    opacity: 0;
  }
}

/* Cursor personalizado para elementos interactivos */
.trackItem,
.albumCard,
.retryButton,
.playAlbumButton,
.tabButton,
.actionButton,
.closeButton {
  cursor: pointer;
}

/* Efectos de transición en hover para todos los elementos interactivos */
.trackItem,
.albumCard,
.retryButton,
.playAlbumButton,
.tabButton,
.actionButton,
.closeButton,
.artistAvatar,
.trackCover,
.albumCardCover {
  transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

/* Efecto de brillo en los bordes para elementos activos */
.activeTrack {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Estilos para filas alternadas */
.evenTrack {
  background-color: #0c0c0c;
}

.oddTrack {
  background-color: transparent;
}

/* En modo claro, ajustar los colores */
:global(.light-theme) .evenTrack {
  background-color: rgba(0, 0, 0, 0.03);
}

:global(.light-theme) .oddTrack {
  background-color: transparent;
}

/* Icono de reproducción siempre visible */
.trackItem .hoverPlayIcon {
  display: flex;
  align-items: center;
  margin-right: 10px;
  margin-left: 10px;
}

.trackItem .hoverPlayIcon ion-icon {
  font-size: 24px;
  color: var(--text-secondary);
  transition: transform 0.2s ease, color 0.2s ease;
}

.trackItem:hover .hoverPlayIcon ion-icon {
  transform: scale(1.2);
  color: var(--text-primary);
}

/* Mantener las filas alternadas incluso cuando hay hover */
.trackItem:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

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

.oddTrack:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* Ajustes para el tema claro */
:global(.light-theme) .trackItem:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

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

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