/* ====================== Contenedor principal ====================== */
main.container {
  margin-top: 120px !important; /* altura del header desktop */
  position: relative;
  padding-top: 12px;
}

.back-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 6px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.artist-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 4px;
}

.back-btn:hover {
  transform: translateX(-3px);

}

.artist-name {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

/* Ajustes móviles */
@media (max-width: 991px) {
  main.container {
    margin-top: 90px;
  }
}

@media (max-width: 576px) {
  main.container {
    margin-top: 80px;
  }
}

/* ====================== Grid de elementos ====================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

/* Responsive grids */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0.5rem;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0.5rem;
  }
}

/* ====================== Card Item ====================== */
.card-item {
  text-align: center;
}

/* Nombre del artista */
.artist-name {
  font-weight: 600;
  padding: 0 1rem;
}

/* Títulos y subtítulos */
.card-item h4 {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: #fff;
}

@media (max-width: 480px) {
  .card-item h4 {
    font-size: 0.9rem;
  }
}

/* ====================== Image Wrapper ====================== */
.image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease, border 0.3s ease;
}

/* Hover: borde blanco + zoom, incluyendo play button */
.image-wrapper:hover {
  transform: scale(1.05);
  border: 2px solid white;
}

/* Imagen dentro del wrapper */
.image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1/1;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease;
}

@media (max-width: 480px) {
  .image-wrapper img {
    aspect-ratio: auto;
  }
}

/* ====================== Botón Play ====================== */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  color: black;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.play-btn:hover {
  background-color: #eaeaea;
}
