/* =============================================
   VIDEO CAROUSEL — Frontend Styles v2
   - No prev/next buttons
   - All videos autoplay muted
   - Infinite loop one by one
============================================= */

:root {
  --vcp-radius: 16px;
  --vcp-gap: 12px;
  --vcp-accent: #a78bfa;
  --vcp-dot-size: 8px;
}

/* ── Wrapper ── */
.vcp-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
  padding-bottom: 40px;
  box-sizing: border-box;
}

.vcp-heading {
  text-align: center;
  margin: 0 0 20px;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Outer clip ── */
.vcp-track-outer {
  overflow: hidden;
  width: 100%;
}

/* ── Scrolling track ── */
.vcp-track {
  display: flex;
  gap: var(--vcp-gap);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

/* ── Individual slide ── */
.vcp-slide {
  position: relative;
  flex: 0 0 calc(
    (100% - (5 - 1) * var(--vcp-gap)) / 5
  );
  aspect-ratio: 9 / 14;
  border-radius: var(--vcp-radius);
  overflow: hidden;
  background: #111;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vcp-slide:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

/* ── Video fill ── */
.vcp-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--vcp-radius);
}

/* ── Gradient overlay ── */
.vcp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 55%,
    rgba(0, 0, 0, 0.4) 100%
  );
  border-radius: var(--vcp-radius);
  pointer-events: none;
}

/* ── Dot indicators ── */
.vcp-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 90%;
}

.vcp-dot {
  width: var(--vcp-dot-size);
  height: var(--vcp-dot-size);
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, width 0.25s;
  padding: 0;
  flex-shrink: 0;
}

.vcp-dot.active {
  background: var(--vcp-accent);
  width: 24px;
  border-radius: 4px;
}

/* ── Empty state ── */
.vcp-empty {
  text-align: center;
  padding: 40px;
  color: #888;
  font-style: italic;
  border: 2px dashed #ddd;
  border-radius: var(--vcp-radius);
}

/* ══════════════════════════
   RESPONSIVE
══════════════════════════ */

/* Tablet: 3 slides */
@media (max-width: 1024px) {
  .vcp-slide {
    flex-basis: calc((100% - 2 * var(--vcp-gap)) / 3);
  }
}

/* Mobile: 2 slides */
@media (max-width: 600px) {
  :root { --vcp-gap: 8px; }

  .vcp-slide {
    flex-basis: calc((100% - var(--vcp-gap)) / 2);
  }
}
