/* albumCelular.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;
}

.albumModal {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background-color: #0a0a0a;
  overflow: hidden;
}

/* Cabecera */
.modalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background-color: #0a0a0a;
  border-bottom: 1px solid #222222;
  position: sticky;
  top: 0;
  z-index: 10;
}

.headerTitle {
  font-size: 16px;
  font-weight: 500;
  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: 16px 0;
  background-color: #121212;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

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

/* Imagen del álbum */
.albumImageContainer {
  padding: 0 16px 16px;
  margin-bottom: 4px;
  display: flex;
  justify-content: center;
}

.albumImage {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  position: relative;
}

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

/* Información del álbum */
.albumInfo {
  padding: 0 16px 16px;
  text-align: center;
}

.albumTitle {
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 6px 0;
  color: #ffffff;
}

.albumArtist {
  font-size: 18px;
  color: #1ed760;
  margin: 0 0 16px 0;
  font-weight: 500;
}

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

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

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

/* Acciones álbum */
.albumActions {
  display: flex;
  justify-content: center;
}

.albumAction {
  width: 40px;
  height: 40px;
  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;
}

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

.albumAction.active {
  background-color: rgba(30, 215, 96, 0.15);
  color: #1ed760;
}

/* Descripción álbum */
.albumDescription {
  margin: 12px 16px;
  padding: 16px;
  background-color: #1d1d1d;
  border-radius: 8px;
  color: #b3b3b3;
  font-size: 14px;
  line-height: 1.5;
}

.albumDescription h4 {
  color: #ffffff;
  margin: 0 0 12px 0;
  font-size: 16px;
}

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

.albumDescription strong {
  color: #ffffff;
  font-weight: 600;
}

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

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

.tab {
  flex: 1;
  padding: 12px 4px;
  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;
}

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

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

/* Lista de pistas */
.tracksSection,
.relatedSection {
  padding: 0 8px;
}

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

.trackItem {
  display: flex;
  align-items: center;
  padding: 10px 8px;
  margin-bottom: 6px;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.trackItem:active {
  background-color: #262626;
}

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

/* 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;
  transition: height 0.2s ease;
}

.playingAnimation.active .bar:nth-child(1) {
  animation: soundbar 0.9s ease infinite alternate;
  animation-delay: 0s;
}

.playingAnimation.active .bar:nth-child(2) {
  animation: soundbar 0.9s ease infinite alternate;
  animation-delay: 0.3s;
}

.playingAnimation.active .bar:nth-child(3) {
  animation: soundbar 0.9s ease infinite alternate;
  animation-delay: 0.6s;
}

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

/* Imagen de pista */
.trackImageContainer {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 10px;
  flex-shrink: 0;
}

.trackImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* 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;
}

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

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

/* Duración */
.trackDuration {
  font-size: 12px;
  color: #808080;
  margin-right: 8px;
  flex-shrink: 0;
  width: 40px;
  text-align: right;
}

/* Acciones de pista */
.trackActions {
  display: flex;
  gap: 4px;
}

.trackAction {
  width: 32px;
  height: 32px;
  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;
}

/* Spinner de carga */
.loadingSpinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top: 2px solid #1ed760;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Mensaje sin pistas */
.noTracksMessage {
  padding: 30px 20px;
  text-align: center;
  color: #b3b3b3;
}

.spinnerSmall {
  width: 24px;
  height: 24px;
  margin: 0 auto 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top: 2px solid #1ed760;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Reproductor */
.playerBar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: #000000;
  border-top: 1px solid #333333;
  display: flex;
  align-items: center;
  padding: 0 8px;
  z-index: 20;
}

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

.playerTrackImage {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-right: 8px;
  flex-shrink: 0;
}

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

.playerBufferingOverlay {
  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;
}

.bufferingSpinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top: 2px solid #1ed760;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.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:disabled,
.playerNextButton:disabled {
  opacity: 0.5;
  cursor: default;
}

.playerPlayButton {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #1ed760;
  border: none;
  color: #000000;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

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

.playerPlayButton.buffering {
  opacity: 0.8;
}

.miniSpinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top: 2px solid #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.playerActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 25%;
  gap: 4px;
}

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

.playerActionButton:active {
  background-color: #262626;
}

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

.playerCloseButton:active {
  background-color: #262626;
}

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

.minimizedBar {
  height: 56px;
  background-color: #0a0a0a;
  border-top: 1px solid #333333;
  display: flex;
  align-items: center;
  padding: 0 12px;
  cursor: pointer;
}

.minimizedAlbumImage {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 12px;
  flex-shrink: 0;
}

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

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

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

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

.minimizedControls {
  flex-shrink: 0;
}

.minimizedButton {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1ed760;
  border: none;
  color: #000000;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

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

/* Pantalla de carga */
.loadingContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  text-align: center;
  color: #b3b3b3;
  padding: 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #1ed760;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

  .trackDuration {
    width: 45px;
  }
}

@media (min-width: 400px) {
  .albumImage {
    width: 220px;
    height: 220px;
  }

  .trackActions {
    gap: 8px;
  }

  .playerControls {
    gap: 24px;
  }

  .playerPrevButton,
  .playerNextButton {
    font-size: 22px;
  }

  .playerPlayButton {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
}

@media (min-width: 600px) {
  .albumImage {
    width: 240px;
    height: 240px;
  }

  .modalContent {
    padding: 24px 0;
  }

  .albumInfo {
    padding: 0 24px 24px;
  }

  .albumImageContainer {
    padding: 0 24px 24px;
  }

  .albumTitle {
    font-size: 24px;
  }

  .trackItem {
    padding: 12px 16px;
  }

  .tracksSection,
  .relatedSection {
    padding: 0 16px;
  }
}

/* Para dispositivos pequeños en vertical */
@media (max-height: 600px) {
  .albumImage {
    width: 160px;
    height: 160px;
  }

  .albumTitle {
    font-size: 20px;
  }

  .albumArtist {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .modalContent {
    padding: 12px 0;
  }

  .albumImageContainer {
    padding: 0 16px 12px;
  }

  .albumInfo {
    padding: 0 16px 12px;
  }
}/* Album Celular - Light Theme */

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

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

/* Cabecera */
:global(.light-theme) .modalHeader {
  background-color: #f0f0f5;
  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: #e0e0e6;
}

/* Contenido principal */
:global(.light-theme) .modalContent {
  background-color: #f5f5f7;
}

/* Imagen del álbum */
:global(.light-theme) .albumImage {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Información del álbum */
:global(.light-theme) .albumTitle {
  color: #111111;
}

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

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

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

/* Acciones álbum */
:global(.light-theme) .albumAction {
  background-color: #e8e8f0;
  color: #666666;
  border: 1px solid #dddddd;
}

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

:global(.light-theme) .albumAction.active {
  background-color: rgba(30, 215, 96, 0.15);
  color: #1DB954;
}

/* Descripción álbum */
:global(.light-theme) .albumDescription {
  background-color: #ffffff;
  color: #555555;
  border: 1px solid #dddddd;
}

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

:global(.light-theme) .albumDescription strong {
  color: #333333;
}

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

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

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

/* Lista de pistas */
:global(.light-theme) .trackItem:active {
  background-color: #e8e8f0;
}

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

/* Número de pista */
:global(.light-theme) .trackNumber {
  color: #777777;
}

/* Información de pista */
:global(.light-theme) .trackTitle {
  color: #111111;
}

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

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

/* Duración */
:global(.light-theme) .trackDuration {
  color: #777777;
}

/* Acciones de pista */
:global(.light-theme) .trackAction {
  color: #666666;
}

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

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

/* Spinner de carga */
:global(.light-theme) .loadingSpinner {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top: 2px solid #1DB954;
}

/* Mensaje sin pistas */
:global(.light-theme) .noTracksMessage {
  color: #666666;
}

:global(.light-theme) .spinnerSmall {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top: 2px solid #1DB954;
}

/* Reproductor */
:global(.light-theme) .playerBar {
  background-color: #e8e8f0;
  border-top: 1px solid #dddddd;
}

:global(.light-theme) .playerBufferingOverlay {
  background-color: rgba(255, 255, 255, 0.7);
}

:global(.light-theme) .bufferingSpinner {
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top: 2px solid #1DB954;
}

: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) .playerPlayButton {
  background-color: #1DB954;
  color: #ffffff;
}

:global(.light-theme) .miniSpinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
}

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

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

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

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

/* Modo minimizado */
:global(.light-theme) .minimizedBar {
  background-color: #e8e8f0;
  border-top: 1px solid #dddddd;
}

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

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

:global(.light-theme) .minimizedButton {
  background-color: #1DB954;
  color: #ffffff;
}

/* Pantalla de carga */
:global(.light-theme) .loadingContainer {
  color: #666666;
}

:global(.light-theme) .spinner {
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top: 3px solid #1DB954;
}