/* cms-enhancements.css
   Styles for release-filter chips (lyrics section) and
   arrow-navigation carousels (release-grid / press-grid / masonry).
   Pairs with assets/js/cms-enhancements.js. Additive only —
   does not override existing grid/list styles.
*/

/* --- Release filter chips --- */
.release-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem 0;
}

.release-chip {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.release-chip:hover {
  border-color: rgba(0, 0, 0, 0.35);
}

.release-chip.is-active {
  background: currentColor;
  color: #fff;
  border-color: transparent;
}

.release-chip.is-active {
  background: #111;
  color: #fff;
}

/* --- Carousel wrapper & arrows --- */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-wrapper > .release-grid,
.carousel-wrapper > .press-grid,
.carousel-wrapper > .masonry {
  flex: 1 1 auto;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.carousel-wrapper > .release-grid::-webkit-scrollbar,
.carousel-wrapper > .press-grid::-webkit-scrollbar,
.carousel-wrapper > .masonry::-webkit-scrollbar {
  height: 6px;
}

.carousel-wrapper > .release-grid::-webkit-scrollbar-thumb,
.carousel-wrapper > .press-grid::-webkit-scrollbar-thumb,
.carousel-wrapper > .masonry::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
}

.carousel-arrow {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.carousel-arrow:hover:not(:disabled) {
  transform: scale(1.08);
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* --- Dot indicators --- */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active {
  background: #111;
  transform: scale(1.25);
}

/* --- Responsive: stack arrows below on very small screens --- */
@media (max-width: 480px) {
  .carousel-arrow {
    width: 1.9rem;
    height: 1.9rem;
    font-size: 0.95rem;
  }
}
