/* artistaCelular.module.css - Diseño optimizado para móviles */

/* Modal base y contenedor */
.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000000;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s cubic-bezier(0.2, 0, 0.2, 1);
  overflow: hidden;
}

.artistModal {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background-color: #080808;
  overflow: hidden;
}

/* Cabecera */
.modalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #222222;
}

.headerTitle {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
}

.closeButton,
.minimizeButton {
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 22px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.closeButton:active,
.minimizeButton:active {
  background-color: #262626;
  transform: scale(0.92);
}

/* Contenido principal */
.modalContent {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background: linear-gradient(to bottom, #0a0a0a, #121212 200px, #121212);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.modalContent::-webkit-scrollbar {
  display: none;
}

/* Imagen del artista */
.artistImageContainer {
  padding: 20px 0;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.2);
}

.artistImage {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  position: relative;
  border: 1px solid #333333;
}

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

.artistImage:active img {
  transform: scale(1.04);
}

/* Información del artista */
.artistInfo {
  padding: 16px;
  text-align: center;
}

.artistName {
  font-size: 26px;
  font-weight: bold;
  margin: 0 0 12px 0;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.artistMeta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.metaItem {
  display: flex;
  align-items: center;
  background-color: #262626;
  border-radius: 50px;
  padding: 8px 14px;
  color: #b3b3b3;
  font-size: 13px;
}

.metaItem ion-icon {
  margin-right: 6px;
  color: #1ed760;
  font-size: 16px;
}

/* Acciones artista */
.artistActions {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.artistAction {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background-color: #262626;
  color: #b3b3b3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.artistAction:active {
  transform: scale(0.92);
  background-color: #333333;
}

.artistAction.active {
  background-color: rgba(30, 215, 96, 0.15);
  color: #1ed760;
  border: 1px solid rgba(30, 215, 96, 0.3);
}

/* Biografía artista */
.artistBiography {
  margin: 0 16px 16px;
  padding: 16px;
  background-color: #1a1a1a;
  border-radius: 10px;
  color: #b3b3b3;
  font-size: 14px;
  line-height: 1.6;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #333333;
}

.artistBiography h4 {
  color: #1ed760;
  margin: 0 0 12px 0;
  font-size: 16px;
}

.artistBiography p {
  margin: 0 0 12px 0;
}

.artistBiography::-webkit-scrollbar {
  width: 4px;
}

.artistBiography::-webkit-scrollbar-track {
  background: transparent;
}

.artistBiography::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

/* Pestañas */
.tabContainer {
  margin-top: 10px;
}

.tabs {
  display: flex;
  padding: 0 16px;
  border-bottom: 1px solid #333333;
}

.tab {
  flex: 1;
  padding: 14px 8px;
  background-color: transparent;
  border: none;
  color: #b3b3b3;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  transition: color 0.2s ease;
  cursor: pointer;
}

.tab ion-icon {
  font-size: 18px;
}

.activeTab {
  color: #1ed760;
}

.activeTab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 25%;
  width: 50%;
  height: 3px;
  background-color: #1ed760;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 8px rgba(30, 215, 96, 0.3);
}

.tabContent {
  padding: 16px 0 80px;
}

/* Lista de pistas */
.tracksSection {
  padding: 0 16px;
}

.tracksList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trackItem {
  display: flex;
  align-items: center;
  padding: 12px 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  background-color: #181818;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  border: 1px solid #222222;
}

.trackItem:active {
  background-color: #202020;
  transform: scale(0.98);
}

.playingTrack {
  background-color: rgba(30, 215, 96, 0.1);
  border-left: 3px solid #1ed760;
  padding-left: 7px;
}

/* Número de pista */
.trackNumber {
  width: 24px;
  color: #808080;
  font-size: 14px;
  text-align: center;
  margin-right: 6px;
}

/* Animación para pista en reproducción */
.playingAnimation {
  display: flex;
  align-items: flex-end;
  height: 14px;
  gap: 2px;
  justify-content: center;
}

.bar {
  width: 3px;
  background-color: #1ed760;
  border-radius: 1px;
  height: 3px;
  animation: soundbar 0.9s ease infinite alternate;
}

.bar:nth-child(1) {
  animation-delay: 0s;
}

.bar:nth-child(2) {
  animation-delay: 0.3s;
  height: 6px;
}

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

@keyframes soundbar {
  0% { height: 3px; }
  100% { height: 14px; }
}

/* Imagen de pista */
.trackImageContainer {
  width: 45px;
  height: 45px;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid #333333;
  flex-shrink: 0;
}

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

/* Información de pista */
.trackInfo {
  flex: 1;
  overflow: hidden;
  margin-right: 8px;
}

.trackTitle {
  font-size: 14px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  font-weight: 500;
}

.trackAlbum {
  font-size: 12px;
  color: #b3b3b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Acciones de pista */
.trackActions {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.trackAction {
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  color: #b3b3b3;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
}

.trackAction:active {
  background-color: #333333;
  color: #ffffff;
}

.trackAction ion-icon[name="heart"] {
  color: #1ed760;
}

/* Grilla de álbumes */
.albumsSection {
  padding: 0 16px 20px;
}

.albumsGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.albumCard {
  border-radius: 8px;
  overflow: hidden;
  background-color: #181818;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  border: 1px solid #222222;
}

.albumCard:active {
  transform: scale(0.97);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.albumImageContainer {
  width: 100%;
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
}

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

.albumImageOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.albumCard:active .albumImageOverlay {
  opacity: 1;
}

.albumActionButton {
  width: 40px;
  height: 40px;
  background-color: #1ed760;
  border: none;
  border-radius: 50%;
  color: #000000;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.albumCard:active .albumActionButton {
  transform: translateY(0);
}

.albumInfo {
  padding: 12px;
}

.albumTitle {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.albumYear {
  color: #808080;
  font-size: 12px;
}

/* Reproductor */
.playerBar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background-color: #0a0a0a;
  border-top: 1px solid #333333;
  display: flex;
  align-items: center;
  padding: 0 12px;
  z-index: 20;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}

.playerTrackInfo {
  display: flex;
  align-items: center;
  width: 30%;
  min-width: 0;
}

.playerTrackImage {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #333333;
  flex-shrink: 0;
}

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

.playerTrackText {
  min-width: 0;
  overflow: hidden;
  display: none; /* Oculto por defecto en pantallas muy pequeñas */
}

.playerTrackTitle {
  font-size: 12px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.playerTrackArtist {
  font-size: 11px;
  color: #b3b3b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playerControls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 16px;
}

.playerPrevButton,
.playerNextButton {
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.playerPrevButton:active,
.playerNextButton:active {
  color: #ffffff;
  transform: scale(0.92);
}

.playerPlayButton {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1ed760, #19b050);
  border: none;
  color: #000000;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(30, 215, 96, 0.3);
}

.playerPlayButton:active {
  transform: scale(0.95);
  box-shadow: 0 1px 5px rgba(30, 215, 96, 0.2);
}

.playerActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 15%;
}

.playerCloseButton {
  width: 32px;
  height: 32px;
  background: #262626;
  border: none;
  color: #b3b3b3;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
}

.playerCloseButton:active {
  background-color: #333333;
  transform: scale(0.92);
}

/* Modo minimizado */
.minimizedContainer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.minimizedBar {
  height: 60px;
  background-color: #0a0a0a;
  border-top: 1px solid #333333;
  display: flex;
  align-items: center;
  padding: 0 12px;
  cursor: pointer;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
}

.minimizedArtistImage {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
  flex-shrink: 0;
  border: 1px solid #333333;
}

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

.minimizedInfo {
  flex: 1;
  overflow: hidden;
  margin-right: 12px;
}

.minimizedTitle {
  font-size: 14px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.minimizedArtist {
  font-size: 12px;
  color: #b3b3b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.minimizedControls {
  flex-shrink: 0;
}

.minimizedButton {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1ed760, #19b050);
  border: none;
  color: #000000;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(30, 215, 96, 0.3);
}

.minimizedButton:active {
  transform: scale(0.95);
  box-shadow: 0 1px 5px rgba(30, 215, 96, 0.2);
}

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

/* Imágenes optimizadas */
img.loaded {
  animation: fadeInImg 0.3s ease;
}

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

/* Media queries */
@media (min-width: 360px) {
  .playerTrackText {
    display: block;
  }
  
  .trackActions {
    gap: 4px;
  }
}

@media (min-width: 400px) {
  .artistImage {
    width: 180px;
    height: 180px;
  }
  
  .albumsGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  
  .playerControls {
    gap: 20px;
  }
  
  .minimizedArtistImage {
    width: 40px;
    height: 40px;
  }
  
  .minimizedButton {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 480px) {
  .albumsGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .tracksSection {
    padding: 0 20px;
  }
  
  .albumsSection {
    padding: 0 20px 20px;
  }
  
  .trackImageContainer {
    width: 50px;
    height: 50px;
  }
}

@media (min-width: 600px) {
  .artistImage {
    width: 200px;
    height: 200px;
  }
  
  .albumsGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .artistName {
    font-size: 28px;
  }
  
  .trackItem {
    padding: 12px 14px;
  }
  
  .playerBar {
    height: 70px;
    padding: 0 16px;
  }
  
  .playerTrackImage {
    width: 46px;
    height: 46px;
  }
  
  .playerPlayButton {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
}

/* Para pantallas pequeñas en vertical */
@media (max-height: 600px) {
  .artistImage {
    width: 140px;
    height: 140px;
  }
  
  .artistImageContainer {
    padding: 16px 0;
  }
  
  .artistName {
    font-size: 22px;
    margin-bottom: 8px;
  }
  
  .artistBiography {
    max-height: 140px;
  }
}

/* Mejoras para pantallas con notch */
@supports (padding-top: env(safe-area-inset-top)) {
  .modalHeader {
    padding-top: max(10px, env(safe-area-inset-top));
  }
  
  .playerBar {
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .minimizedBar {
    padding-bottom: env(safe-area-inset-bottom);
  }
}/* Tema claro para artistaCelular.module.css */

/* Modal base y contenedor en tema claro */
:global(.light-theme) .modalOverlay {
  background-color: #f5f5f7;
}

:global(.light-theme) .artistModal {
  background-color: #f5f5f7;
}

/* Cabecera en tema claro */
:global(.light-theme) .modalHeader {
  background-color: rgba(245, 245, 247, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #dddddd;
}

:global(.light-theme) .headerTitle {
  color: #111111;
}

:global(.light-theme) .closeButton,
:global(.light-theme) .minimizeButton {
  color: #666666;
}

:global(.light-theme) .closeButton:active,
:global(.light-theme) .minimizeButton:active {
  background-color: #e0e0e0;
}

/* Contenido principal en tema claro */
:global(.light-theme) .modalContent {
  background: linear-gradient(to bottom, #f0f0f5, #f5f5f7 200px, #f5f5f7);
}

/* Imagen del artista en tema claro */
:global(.light-theme) .artistImageContainer {
  background-color: rgba(0, 0, 0, 0.03);
}

:global(.light-theme) .artistImage {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid #dddddd;
}

/* Información del artista en tema claro */
:global(.light-theme) .artistName {
  color: #111111;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

:global(.light-theme) .metaItem {
  background-color: #ffffff;
  color: #555555;
  border: 1px solid #dddddd;
}

:global(.light-theme) .metaItem ion-icon {
  color: #1DB954;
}

/* Acciones artista en tema claro */
:global(.light-theme) .artistAction {
  background-color: #e8e8f0;
  color: #555555;
  border: 1px solid #dddddd;
}

:global(.light-theme) .artistAction:active {
  background-color: #d8d8e0;
}

:global(.light-theme) .artistAction.active {
  background-color: rgba(30, 215, 96, 0.15);
  color: #1DB954;
  border: 1px solid rgba(30, 215, 96, 0.3);
}

/* Biografía artista en tema claro */
:global(.light-theme) .artistBiography {
  background-color: #ffffff;
  border: 1px solid #dddddd;
  color: #444444;
}

:global(.light-theme) .artistBiography h4 {
  color: #1DB954;
}

:global(.light-theme) .artistBiography::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Pestañas en tema claro */
:global(.light-theme) .tabs {
  border-bottom: 1px solid #dddddd;
}

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

:global(.light-theme) .activeTab {
  color: #1DB954;
}

:global(.light-theme) .activeTab::after {
  background-color: #1DB954;
  box-shadow: 0 0 8px rgba(30, 215, 96, 0.2);
}

/* Lista de pistas en tema claro */
:global(.light-theme) .trackItem {
  background-color: #ffffff;
  border: 1px solid #dddddd;
}

:global(.light-theme) .trackItem:active {
  background-color: #f9f9f9;
}

:global(.light-theme) .playingTrack {
  background-color: rgba(30, 215, 96, 0.1);
  border-left: 3px solid #1DB954;
}

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

:global(.light-theme) .trackImageContainer {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #dddddd;
}

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

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

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

:global(.light-theme) .trackAction:active {
  background-color: #e0e0e0;
  color: #333333;
}

:global(.light-theme) .trackAction ion-icon[name="heart"] {
  color: #1DB954;
}

/* Grilla de álbumes en tema claro */
:global(.light-theme) .albumCard {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #dddddd;
}

:global(.light-theme) .albumCard:active {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

:global(.light-theme) .albumTitle {
  color: #111111;
}

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

/* Reproductor en tema claro */
:global(.light-theme) .playerBar {
  background-color: #e8e8f0;
  border-top: 1px solid #dddddd;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

:global(.light-theme) .playerTrackImage {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #dddddd;
}

:global(.light-theme) .playerTrackTitle {
  color: #111111;
}

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

:global(.light-theme) .playerPrevButton,
:global(.light-theme) .playerNextButton {
  color: #666666;
}

:global(.light-theme) .playerPrevButton:active,
:global(.light-theme) .playerNextButton:active {
  color: #333333;
}

:global(.light-theme) .playerPlayButton {
  background: linear-gradient(145deg, #1ed760, #19b050);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(30, 215, 96, 0.3);
}

:global(.light-theme) .playerCloseButton {
  background: #e0e0e0;
  color: #555555;
}

:global(.light-theme) .playerCloseButton:active {
  background-color: #d0d0d0;
}

/* Modo minimizado en tema claro */
:global(.light-theme) .minimizedBar {
  background-color: #e8e8f0;
  border-top: 1px solid #dddddd;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

:global(.light-theme) .minimizedArtistImage {
  border: 1px solid #dddddd;
}

:global(.light-theme) .minimizedTitle {
  color: #111111;
}

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

:global(.light-theme) .minimizedButton {
  background: linear-gradient(145deg, #1ed760, #19b050);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(30, 215, 96, 0.3);
}