/* ================== ARSVISIO · pages/videoclips.css ================== */

/* Grid de videoclips */
.videoclips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 180px;
  gap: 1rem;
  margin: 0 auto 3rem;
  width: 90%;
  max-width: var(--max-width);
}

/* Card de videoclip */
.videoclips-grid a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  background: #111;
  transform: scale(1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.videoclips-grid a:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 207, 255, 0.25);
}

/* Imagen */
.videoclips-grid a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  transition: filter 0.2s ease, transform 0.25s ease;
}

.videoclips-grid a:hover img {
  filter: brightness(1);
  transform: scale(1.08);
}

/* Overlay oscuro */
.videoclips-grid a .overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: background var(--transition);
}

.videoclips-grid a:hover .overlay-backdrop {
  background: rgba(0, 0, 0, 0.2);
}

/* Texto superpuesto */
.videoclips-grid a .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--c-text);
  z-index: 2;
  font-size: 1rem;
  font-weight: 700;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.videoclips-grid a:hover .overlay-text {
  transform: translate(-50%, -50%) scale(1.05);
}

/* Nombre del artista */
.videoclips-grid a .overlay-text .artista {
  font-size: 0.85rem;
  font-weight: normal;
  opacity: 0.9;
}

/* ================== Responsive ================== */
@media (max-width: 768px) {
  .videoclips-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 140px;
  }
}

@media (max-width: 480px) {
  .videoclips-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 160px;
  }
}
