.slider-wrap {
  overflow: hidden;
  width: 100%;
}

.popular-slider {
  display: flex;
  gap: 18px;
  transition: transform 0.5s ease;
}

.popular-slide {
  position: relative;
  flex: 0 0 calc((100% - 36px) / 3);
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1f;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
}

.popular-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.3); /* crops the sample thumbnails' own watermark border out of view */
}

.popular-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--accent-popular-rank);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.popular-slide-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 55%, rgba(0,0,0,0) 100%);
  z-index: 2;
}

.popular-slide-idol {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.popular-slide-group {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 750px) {
  .popular-slide {
    flex: 0 0 100%;
  }
}

.popular-slide.is-clickable {
  cursor: pointer;
  transition: transform 0.15s;
}

.popular-slide.is-clickable:hover {
  transform: translateY(-2px);
}

/* ---------- Arrow buttons (shown at the right end of the section title, never over the images) ---------- */

.slider-arrows {
  display: flex;
  gap: 8px;
}

.slider-arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1f;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.slider-arrow:hover {
  color: var(--text);
  border-color: var(--accent);
}

.slider-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
