.movie-grid,
.series-grid,
.show-grid,
.artist-grid,
.book-grid {
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 0.75rem;
}

.movie-card,
.series-card,
.show-card,
.artist-card,
.book-card {
  min-width: 0;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover,
.movie-card:focus-visible,
.series-card:hover,
.series-card:focus-visible,
.show-card:hover,
.show-card:focus-visible,
.artist-card:hover,
.artist-card:focus-visible,
.book-card:hover,
.book-card:focus-visible {
  z-index: 1;
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(74, 48, 24, 0.2);
  outline: 2px solid rgba(185, 0, 54, 0.45);
  outline-offset: 2px;
}

.movie-card figcaption,
.series-card figcaption,
.show-card figcaption,
.book-card figcaption {
  padding: 0.65rem 0.7rem 0.75rem;
}

.movie-card strong,
.series-card strong,
.show-card strong,
.book-card strong {
  font-size: 0.75rem;
}

.movie-card span,
.series-card span,
.show-card span,
.book-card span {
  font-size: 0.58rem;
}

.artist-card {
  min-height: 0;
  aspect-ratio: 2 / 3;
}

.artist-card figcaption {
  inset: auto 0.7rem 0.7rem;
  max-width: calc(100% - 1.4rem);
  font-size: clamp(0.76rem, 0.9vw, 0.95rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.collection-lightbox {
  width: auto;
  max-width: 92vw;
  max-height: 94vh;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #fffaf0;
}

.collection-lightbox::backdrop {
  background: rgba(24, 14, 10, 0.88);
  backdrop-filter: blur(10px);
}

.collection-lightbox-shell {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
}

.collection-lightbox-image {
  display: block;
  width: auto;
  max-width: min(84vw, 760px);
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  background: #18100c;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.collection-lightbox-caption {
  display: grid;
  gap: 0.25rem;
  max-width: min(84vw, 760px);
  text-align: center;
}

.collection-lightbox-caption strong {
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  line-height: 1.15;
}

.collection-lightbox-caption span {
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.collection-lightbox-close {
  position: absolute;
  top: -0.85rem;
  right: -0.85rem;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: #b90036;
  color: white;
  font: 900 1.25rem/1 sans-serif;
  cursor: pointer;
}

@media (max-width: 480px) {
  .movie-grid,
  .series-grid,
  .show-grid,
  .artist-grid,
  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-lightbox-image {
    max-width: 90vw;
    max-height: 76vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .movie-card,
  .series-card,
  .show-card,
  .artist-card,
  .book-card {
    transition: none;
  }
}
