/* Estilos específicos para la página de discografía */



/* Contenedor principal - Desktop: NO SCROLL global */
.content-box {
  position: fixed;
  top: 6.5rem;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 96vw;
  max-width: 1600px;
  border: 2px solid #ffffff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
  /* Desktop default */
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

.page-title {
  text-align: center;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Contenedor de álbumes: grid 3 columnas, altura limitada para mostrar solo 3 filas */
.albums-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.5rem;
  box-sizing: border-box;
  align-items: start; /* Alinear cards al inicio */
}

/* Custom Scrollbar for albums container - Vertical */
.albums-container::-webkit-scrollbar {
  width: 6px;
}

.albums-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.albums-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
}

.albums-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Tarjetas */
/* Tarjetas */
.album-card {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  position: relative;
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  aspect-ratio: 0.82; /* Un poco más alto para que se vean los iconos */
  overflow: visible;
  box-sizing: border-box;
}

.album-card:hover {
  border-color: #ffffff;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.album-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 1; /* Imagen cuadrada como disco físico */
  object-fit: cover; /* Cubrir el espacio manteniendo proporciones */
  display: block;
  margin: 0 auto;
  flex-shrink: 0;
  border-radius: 4px;
  background: transparent;
  max-height: 280px; /* Limitar altura para dejar espacio a los iconos */
}

.streaming-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
  opacity: 1;
  visibility: visible;
}

.streaming-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.streaming-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.streaming-btn img {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain;
}

/* Modal */
.album-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  overflow-y: auto;
  padding: 2rem;
  box-sizing: border-box;
}

.album-modal.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-top: 3rem;
  align-items: center;
}

.modal-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 2001;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-cover {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.album-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  width: 100%;
  padding: 0.5rem 0;
  margin-top: auto; /* Empujar hacia abajo */
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.album-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}

.modal-year {
  font-size: 1rem;
  color: #cccccc;
  margin: 0;
}

.album-year {
  font-size: 0.9rem;
  color: #cccccc;
  margin: 0;
  margin-top: 0.25rem; /* Más espacio arriba para separar del título */
  margin-bottom: 0; /* Sin margen inferior para que los iconos estén justo debajo */
  white-space: nowrap;
  opacity: 0.9;
  font-weight: 500;
}

.modal-description {
  display: none !important; /* Descripción eliminada - solo mostrar título y año */
}

.album-description {
  display: none !important; /* Descripción eliminada - solo mostrar título y año */
}

.modal-streaming {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.album-streaming {
  display: flex !important;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  padding: 0.5rem 0 0 0;
  margin-top: 0.5rem; /* Espacio entre año y botones */
  width: 100%;
  min-height: 40px; /* Asegurar espacio para los iconos */
  visibility: visible !important;
  opacity: 1 !important;
}



/* Responsive */
@media (max-width: 968px) {
  .content-box {
    position: fixed;
    top: 7rem;
    bottom: 2rem;
    width: 95vw;
    height: auto;
    padding: 2rem;
    overflow: hidden;
    /* Scroll solo en albums-container */
    display: block;
  }

  .albums-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    height: auto;
    max-height: calc(4 * 320px + 3 * 1.5rem); /* 4 filas en tablet */
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.5rem;
  }

  .album-card {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 0.82; /* Un poco más alto en tablet para que se vean los iconos */
  }

  .modal-content {
    padding-top: 4rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 640px) {
  .content-box {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: calc(100vw - 2rem) !important;
    max-width: none !important;
    margin: 4.5rem 1rem 1rem 1rem !important;
    /* Margen superior: altura del header (~3.5rem) + margen (1rem) = 4.5rem para estar más cerca del header */
    padding: 1.5rem !important;
    border: 2px solid #ffffff !important;
    box-sizing: border-box !important;
    min-height: auto !important;
    gap: 1rem !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    /* Permitir scroll dentro de la sección */
    max-height: calc(100vh - 6.5rem) !important;
    /* Altura máxima para permitir scroll dentro */
  }

  .page-title {
    font-size: 1.3rem !important;
    margin-bottom: 1rem !important;
    padding: 0 !important;
  }

  .albums-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 0.5rem 0.5rem 0 0.5rem !important;
    margin-bottom: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(3 * 300px + 2 * 1.2rem); /* 3 cards en móvil */
  }

  .album-card {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 0.82; /* Un poco más alto en móvil para que se vean los iconos */
    padding: 1.25rem;
  }
  }

  .albums-container > *:last-child {
    margin-bottom: 0 !important;
  }
}