/* ═══════════════════════════════════════════════
   FJ Video Carousel – Stylesheet v1.0
   ═══════════════════════════════════════════════ */

:root {
  --fj-accent:       #6B4EFF;
  --fj-accent-hover: #7f65ff;
  --fj-bg:           #0a0a0a;
  --fj-dot-off:      rgba(255,255,255,0.28);
  --fj-dot-on:       #6B4EFF;
  --fj-gap:          16px;
}

/* Section wrapper */
.fj-vc-section {
  background: var(--fj-bg);
  padding: 60px 0 56px;
  width: 100%;
  overflow: hidden;
}

/* Title */
.fj-vc-title {
  font-family: Georgia, 'Book Antiqua', Palatino, 'Palatino Linotype', serif !important;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-align: center !important;
  margin: 0 0 44px !important;
  letter-spacing: -0.01em !important;
  line-height: 1.1 !important;
}

/* Outer flex row: [btn] [track] [btn] */
.fj-vc-outer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  width: 100%;
}

/* Arrow buttons */
.fj-vc-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--fj-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  z-index: 2;
}
.fj-vc-btn:hover  { background: var(--fj-accent-hover); transform: scale(1.07); }
.fj-vc-btn:active { transform: scale(0.94); }
.fj-vc-btn svg    { width: 22px; height: 22px; fill: #fff; }

/* Track container (clipping mask) */
.fj-vc-track-wrap {
  overflow: hidden;
  flex: 1;
}

/* Moving track */
.fj-vc-track {
  display: flex;
  gap: var(--fj-gap);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}
.fj-vc-track:active { cursor: grabbing; }

/* Individual card – 9:16 */
.fj-vc-card {
  flex-shrink: 0;
  /* width set by JS */
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
  cursor: pointer;
}

/* Thumbnail */
.fj-vc-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  pointer-events: none;
  -webkit-user-drag: none;
}
.fj-vc-card:hover .fj-vc-card__thumb { transform: scale(1.04); }

/* Gradient overlay */
.fj-vc-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* Play button */
.fj-vc-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(107, 78, 255, 0.82);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
  pointer-events: none;
}
.fj-vc-card:hover .fj-vc-card__play {
  background: var(--fj-accent);
  transform: translate(-50%, -50%) scale(1.12);
}
.fj-vc-card__play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }

/* Dot navigation */
.fj-vc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.fj-vc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--fj-dot-off);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.fj-vc-dot.is-active {
  background: var(--fj-dot-on);
  transform: scale(1.4);
}

/* ── Modal ── */
.fj-vc-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.fj-vc-modal.is-open { display: flex; }

.fj-vc-modal-inner {
  position: relative;
  /* Max-Höhe = Viewport minus Platz für den X-Button oben */
  height: calc(100vh - 80px);
  width: auto;
  aspect-ratio: 9 / 16;
  max-width: calc((100vh - 80px) * 9 / 16);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.fj-vc-modal-inner video,
.fj-vc-modal-inner iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}
.fj-vc-modal-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1000000;
}
.fj-vc-modal-close:hover { background: rgba(255,255,255,0.3); }

/* ── Responsive breakpoints ── */
@media (max-width: 539px) {
  .fj-vc-btn  { width: 36px; height: 36px; }
  .fj-vc-btn svg { width: 16px; height: 16px; }
  .fj-vc-outer { gap: 8px; }
  :root { --fj-gap: 10px; }
}
@media (min-width: 540px)  { /* 2 visible – handled in JS */ }
@media (min-width: 800px)  { /* 3 visible */ }
@media (min-width: 1100px) { /* 4 visible */ }
@media (min-width: 1400px) { /* 5 visible */ }
