/* ═══════════════════════════════════════════════════════
   VIDEO-EDITING.CSS — Section 05 (Revybe Motion)
   Video thumbnail grid · Play overlay · Electric Pink
═══════════════════════════════════════════════════════ */

/* ── Section ───────────────────────────────────────── */
.video-editing-section {
  background: #030303;
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}

.video-editing-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 65%;
  background: radial-gradient(ellipse at center, rgba(225, 17, 251, 0.065) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.ve-bg-num {
  position: absolute;
  bottom: clamp(16px, 3vw, 48px);
  right: clamp(12px, 4vw, 64px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(100px, 18vw, 220px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.028);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── Eyebrow ────────────────────────────────────────── */
.ve-eyebrow {
  margin-bottom: clamp(40px, 6vw, 64px);
  position: relative;
  z-index: 1;
}

.ve-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-pink);
}

.ve-section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-pink);
  display: block;
  flex-shrink: 0;
}

/* ── Brand hero ─────────────────────────────────────── */
.ve-brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(14px, 2vw, 22px);
  margin-bottom: clamp(48px, 7vw, 80px);
  position: relative;
  z-index: 1;
}

.ve-brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ve-brand-logo-img {
  max-height: clamp(44px, 7vw, 88px);
  max-width: clamp(320px, 65vw, 640px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 20px rgba(225,17,251,0.22));
  transition: filter 0.4s ease;
}

.ve-brand-logo-img:hover {
  filter: drop-shadow(0 0 38px rgba(225,17,251,0.5));
}

.ve-brand-name-fallback {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  color: var(--color-pink);
  letter-spacing: -0.02em;
}

.ve-brand-tagline {
  font-family: var(--font-body);
  font-size: clamp(var(--text-sm), 1.4vw, var(--text-base));
  color: var(--color-text-secondary);
  font-style: italic;
}

/* When the brand logo is removed, promote the tagline to a display heading
   so the section still opens with presence. */
.ve-brand-hero--no-logo { margin-bottom: clamp(40px, 6vw, 64px); }

.ve-brand-hero--no-logo .ve-brand-tagline {
  font-family: var(--font-brand);
  font-weight: 800;
  font-style: normal;
  font-size: clamp(1.7rem, 5vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--color-white);
}

.ve-brand-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  justify-content: center;
}

.ve-ig-handle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: rgba(225,17,251,0.65);
  text-decoration: none;
  transition: color var(--t-fast);
}

.ve-ig-handle:hover { color: var(--color-pink); }

.ve-see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border: 1px solid rgba(225,17,251,0.32);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-pink);
  text-decoration: none;
  transition:
    background var(--t-fast),
    border-color var(--t-fast),
    box-shadow var(--t-fast);
}

.ve-see-more-btn:hover {
  background: rgba(225,17,251,0.07);
  border-color: rgba(225,17,251,0.6);
  box-shadow: 0 0 20px rgba(225,17,251,0.1);
}

/* ── Footer CTA ─────────────────────────────────────── */
.ve-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 48px);
  position: relative;
  z-index: 1;
}

.ve-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border: 1px solid rgba(225,17,251,0.28);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.07em;
  color: var(--color-pink);
  text-decoration: none;
  transition:
    background var(--t-base),
    border-color var(--t-base),
    box-shadow var(--t-base),
    transform var(--t-base);
}
.ve-footer-cta svg { width: 13px; height: 13px; }

.ve-footer-cta:hover {
  background: rgba(225,17,251,0.07);
  border-color: rgba(225,17,251,0.55);
  box-shadow: 0 0 32px rgba(225,17,251,0.12);
  transform: translateY(-2px);
}

.ve-footer-or {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.22);
  text-transform: uppercase;
}

/* ── Block intro (description above each video type) ── */
.ve-block-intro {
  text-align: center;
  max-width: 660px;
  margin: 0 auto clamp(20px, 3vw, 34px);
  position: relative;
  z-index: 1;
}
.ve-block-intro--spaced {
  margin-top: clamp(48px, 7vw, 84px);
}
.ve-block-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 10px;
}
.ve-block-desc {
  font-family: var(--font-body);
  font-size: clamp(var(--text-sm), 1.4vw, var(--text-base));
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* ── Featured long-form videos ──────────────────────────
   Driven by the SAME carousel engine as the social section
   (window.__jlCarousel): 1:1 drag → scrollLeft, snap to nearest,
   coverflow, seamless clone loop, dots, native mobile scroll-snap.
   So the row / card / dots CSS below mirrors the social carousel
   (#sm-cards-row / .sm-card / .sm-dots), sized for 16:9 videos.
   Each card is a click-to-play thumbnail. */
#ve-featured-wrap { position: relative; z-index: 1; }

.ve-video-row {
  --ve-per-view: 1.5;                 /* big center video + side peeks, coverflow like social */
  --ve-gap: 20px;
  position: relative;                 /* offsetParent for the coverflow math */
  display: flex;
  gap: var(--ve-gap);
  max-width: 1180px;
  margin-inline: auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 26px 4px 30px;
  cursor: pointer;
  -webkit-overflow-scrolling: touch;
}
.ve-video-row::-webkit-scrollbar { display: none; }
.ve-video-row img,
.ve-video-row svg { -webkit-user-drag: none; }
.ve-video-row.sm-dragging {           /* engine toggles .sm-dragging during a drag */
  scroll-behavior: auto;
  user-select: none;
  -webkit-user-select: none;
}

/* Video card = one 16:9 thumbnail; the engine drives its coverflow transform inline */
.ve-vcard {
  flex: 0 0 auto;
  width: calc((100% - (var(--ve-per-view) - 1) * var(--ve-gap)) / var(--ve-per-view));
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #050505;
  border: 1px solid rgba(225, 17, 251, 0.18);
  box-shadow: 0 0 40px rgba(225, 17, 251, 0.08), 0 20px 50px rgba(0, 0, 0, 0.5);
  backface-visibility: hidden;
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.ve-vcard.sm-cf { will-change: transform, opacity; }
.ve-vcard:hover {
  border-color: rgba(225, 17, 251, 0.4);
  box-shadow: 0 0 60px rgba(225, 17, 251, 0.18), 0 20px 50px rgba(0, 0, 0, 0.5);
}

.ve-vcard__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* pointer-events:none so a drag/swipe passes through the playing video to the
   carousel track (an iframe would otherwise swallow the gesture). */
.ve-vcard iframe,
.ve-vcard .ve-vcard__player { position: absolute; inset: 0; width: 100%; height: 100%; border: none; display: block; z-index: 1; pointer-events: none; }

.ve-vcard__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(225, 17, 251, 0.22);
  border: 1.5px solid rgba(225, 17, 251, 0.6);
  box-shadow: 0 0 26px rgba(225, 17, 251, 0.3);
  pointer-events: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
}
.ve-vcard__play svg { width: 20px; height: 20px; margin-left: 2px; }
.ve-vcard:hover .ve-vcard__play {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(225, 17, 251, 0.35);
  box-shadow: 0 0 24px rgba(225, 17, 251, 0.4);
}
.ve-vcard--playing .ve-vcard__play,
.ve-vcard--playing .ve-vcard__poster { opacity: 0; pointer-events: none; }

/* Full-surface tap layer — tap/click anywhere on the video toggles
   play/pause; a centered control shows the current state. Sits above the
   pointer-events:none iframe; a drag still swipes the carousel (handled in JS). */
.ve-vcard__tap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.ve-vcard__tap:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }

/* Centered play/pause control — always visible (dimmed while playing),
   brightens on hover and when paused. */
.ve-vcard__toggle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(10, 6, 12, 0.5);
  border: 1px solid rgba(225, 17, 251, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  opacity: 0.5;
  transition: opacity 0.22s ease, transform 0.16s ease, background 0.2s ease, border-color 0.2s ease;
}
.ve-vcard__ticon { display: grid; place-items: center; width: 28px; height: 28px; }
.ve-vcard__toggle svg { width: 28px; height: 28px; }
.ve-vcard--paused .ve-vcard__toggle,
.ve-vcard:hover .ve-vcard__toggle {
  opacity: 1;
  background: rgba(225, 17, 251, 0.34);
  border-color: rgba(225, 17, 251, 0.75);
  box-shadow: 0 0 22px rgba(225, 17, 251, 0.28);
}
.ve-vcard__tap:active .ve-vcard__toggle { transform: scale(0.92); }

/* Stage wraps the scrolling row so the nav arrows can sit still over the video */
.ve-video-stage { position: relative; }

/* Prev/next arrows — same white circular style as the reels arrows */
.ve-varrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  min-width: 0;
  min-height: 0;
  border-radius: 50%;
  background: rgba(12, 12, 14, 0.82);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: none;                 /* shown on desktop; touch uses swipe */
  place-items: center;
  cursor: pointer;
  z-index: 4;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.ve-varrow svg { width: 22px; height: 22px; }
.ve-varrow:hover { background: rgba(0, 0, 0, 0.92); border-color: rgba(255, 255, 255, 0.3); }
.ve-varrow:active { transform: translateY(-50%) scale(0.92); }
.ve-varrow:focus-visible { outline: 2px solid var(--color-pink); outline-offset: 2px; }
@media (hover: none) { .ve-varrow { display: none !important; } }  /* touch: swipe only */

/* Dots reuse the shared .sm-dots look (via class), tinted pink for this section */
#ve-video-dots { margin-top: 14px; }
#ve-video-dots button { background: rgba(255, 255, 255, 0.28); }
#ve-video-dots button:hover { background: rgba(255, 255, 255, 0.55); }
#ve-video-dots button[aria-current="true"] { background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, 0.5); }

/* Desktop / tablet: break the row out to the full screen width so the main
   video is ~70vw, with a ~20vw peek of the next and ~8vw gap between them. */
@media (min-width: 640px) {
  /* full-bleed stage, shifted right so the main video sits a bit toward centre
     (the engine rests the active card flush-left, so padding can't inset it —
     translating the stage does). The arrows live on the stage so they don't
     scroll with the row. */
  .ve-video-stage {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    transform: translateX(10vw);
  }
  .ve-video-row {
    max-width: none;
    --ve-gap: 2vw;
    padding-left: 2vw;
    padding-right: 2vw;
    scroll-padding-left: 2vw;
  }
  /* Let the shared engine's coverflow scale the videos LIVE as you swipe — the
     same continuous growing/shrinking as the social carousel. Scale from the
     LEFT edge so the shrunk peek stays tucked next to the main (no big gap).
     (No CSS transition here: the engine drives the scale every scroll frame,
     so a transition would lag it.) */
  .ve-vcard { width: 60vw; }
  .ve-video-row .ve-vcard { transform-origin: left center; }
  /* Prev/next arrows at the far edges of the whole video strip. The stage is
     translated +10vw, so undo that to land them at the viewport edges.
     (Shown only on mouse-pointer desktops — see the query below; touch/mobile
     uses swipe and gets no arrows.) */
  .ve-varrow--prev { left: calc(2vw - 10vw); right: auto; }
  .ve-varrow--next { right: calc(2vw + 10vw); left: auto; }
}

/* Show the arrows only on real mouse-pointer desktops — never on mobile/touch
   (which navigates by swiping). */
@media (min-width: 640px) and (hover: hover) and (pointer: fine) {
  .ve-varrow { display: grid; }
}

/* Phone: big main video (~85vw) + a small next peek, with native snap. */
@media (max-width: 639px) {
  .ve-video-row {
    --ve-per-view: 1.15;
    --ve-gap: 10px;
    scroll-snap-type: x mandatory;
    padding-left: 14px;
    padding-right: 8px;
    scroll-padding-left: 14px;
  }
  .ve-vcard { scroll-snap-align: start; }
}

/* ── Vertical Videos Grid ───────────────────────────── */
.ve-vertical-wrap {
  margin-top: clamp(16px, 2.5vw, 28px);
  position: relative;
  z-index: 1;
}

/* FB/IG Reels-style horizontal scroll of portrait cards */
.ve-vertical-grid {
  display: flex;
  gap: clamp(10px, 1.4vw, 16px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 2px 8px;
  position: relative;
  z-index: 1;
}
.ve-vertical-grid::-webkit-scrollbar { display: none; }

.ve-vertical-card {
  flex: 0 0 auto;
  width: clamp(150px, 16vw, 196px);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #111;
  border: 1px solid rgba(225, 17, 251, 0.14);
  box-shadow: 0 0 32px rgba(225, 17, 251, 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

/* Reels scroll arrows (white circular, like FB) */
.ve-reels-arrow {
  position: absolute;
  top: calc(50% - 6px);
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: background 0.2s, transform 0.15s;
}
.ve-reels-arrow svg { width: 22px; height: 22px; }
.ve-reels-arrow:hover { background: #fff; }
.ve-reels-arrow:active { transform: translateY(-50%) scale(0.92); }
.ve-reels-arrow--prev { left: -8px; }
.ve-reels-arrow--next { right: -8px; }
.ve-reels-arrow[hidden] { display: none; }
@media (hover: none) { .ve-reels-arrow { display: none; } }  /* touch: swipe only */

.ve-vertical-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.ve-vertical-card:hover {
  border-color: rgba(225, 17, 251, 0.35);
  box-shadow: 0 0 48px rgba(225, 17, 251, 0.14);
}

.ve-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.ve-play-overlay.ve-playing {
  opacity: 0;
  pointer-events: none;
}

.ve-play-overlay:hover {
  background: rgba(0, 0, 0, 0.28);
}

.ve-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(225, 17, 251, 0.18);
  border: 1.5px solid rgba(225, 17, 251, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
}

.ve-play-overlay:hover .ve-play-btn {
  transform: scale(1.12);
  background: rgba(225, 17, 251, 0.35);
  box-shadow: 0 0 24px rgba(225, 17, 251, 0.4);
}

.ve-vertical-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1a0d20 0%, #0a0a0a 50%, #200d1a 100%);
}

.ve-vertical-placeholder svg {
  width: 36px;
  height: 36px;
  color: rgba(225, 17, 251, 0.25);
}

@media (max-width: 640px) {
  .ve-vertical-grid { gap: 10px; }
  .ve-vertical-card { width: 42vw; }
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
  .ve-brand-actions { flex-direction: column; align-items: center; gap: var(--sp-3); }
}
