/* ================================================================
   CGWALLS — Editor's Choice Carousel
   ================================================================ */

.carousel-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
  flex: 0 0 290px;
  scroll-snap-align: start;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: var(--surface2);
  transition: transform var(--tb) var(--ease), box-shadow var(--tb) var(--ease);
}
.carousel-card:hover {
  transform: scale(1.025) translateY(-3px);
  box-shadow: var(--sh-lg), 0 0 40px rgba(170,170,170,.08);
}
.carousel-card img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform var(--ts) var(--ease);
}
.carousel-card:hover img { transform: scale(1.04); }

.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.2) 45%, transparent 70%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px;
  gap: 4px;
}

.ec-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: #0a0a0d;
  font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; padding: 4px 11px;
  border-radius: var(--r-full);
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
}
.card-name {
  font-size: 20px; font-weight: 800; line-height: 1.2; color: #fff;
}
.card-artist {
  font-size: 12px; color: rgba(255,255,255,.6);
  font-family: 'Space Mono', monospace;
}

/* ── arrows ── */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(10,10,13,.75); backdrop-filter: blur(10px);
  border: 1px solid var(--border-hi);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--tf) var(--ease), border-color var(--tf) var(--ease),
              color var(--tf) var(--ease), transform var(--tf) var(--ease);
  box-shadow: var(--sh-sm);
}
.carousel-btn:hover { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); transform: translateY(-50%) scale(1.05); }
.carousel-btn.prev { left: -18px; }
.carousel-btn.next { right: -18px; }
.carousel-btn svg  { width: 18px; height: 18px; }

/* ── dots ── */
.carousel-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 20px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border-hi); cursor: pointer;
  transition: background var(--tf) var(--ease), transform var(--tf) var(--ease), width var(--tf) var(--ease);
}
.dot.active { background: var(--accent); transform: scale(1.4); width: 18px; border-radius: 3px; }

@media (max-width: 600px) {
  .carousel-card { flex: 0 0 230px; }
  .carousel-btn.prev { left: -10px; }
  .carousel-btn.next { right: -10px; }
}
