/* ============================================
   Video Testimonial Slider — vts.css v5.1.0
   Full-width infinite marquee
   ============================================ */

.vts-marquee-wrap {
  --vts-cw:   220px;
  --vts-ch:   390px;
  --vts-gap:  14px;
  --vts-r:    16px;
  --vts-blue: #2563eb;
  font-family: 'Plus Jakarta Sans', sans-serif;
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0 24px;
  box-sizing: border-box;
}

/* ── fade masks ── */
.vts-fade-left,
.vts-fade-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}
.vts-fade-left  { left:  0; background: linear-gradient(to right, #fff, transparent); }
.vts-fade-right { right: 0; background: linear-gradient(to left,  #fff, transparent); }

/* ── viewport clips overflow ── */
.vts-marquee-viewport {
  width: 100%;
  overflow: hidden;
}

/* ── track: two sets side-by-side, CSS scroll ── */
.vts-marquee-track {
  display: flex;
  width: max-content;
  animation: vts-scroll linear infinite;
  animation-play-state: running;
  /* duration set by JS from data-speed */
}

/* hover → pause entire marquee */
.vts-marquee-wrap:hover .vts-marquee-track {
  animation-play-state: paused;
}

@keyframes vts-scroll {
  0%   { transform: translateX(0);    }
  100% { transform: translateX(-50%); }
}

/* ── each set ── */
.vts-set {
  display: flex;
  gap: var(--vts-gap);
  padding: 0 calc(var(--vts-gap) / 2);
  flex-shrink: 0;
}

/* ══════════════════
   CARD
══════════════════ */
.vts-card {
  flex-shrink: 0;
  width:  var(--vts-cw);
  height: var(--vts-ch);
  border-radius: var(--vts-r);
  position: relative;
  overflow: hidden;
  background: #111;
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
  cursor: pointer;
  transition: transform .3s cubic-bezier(.34,1.2,.64,1), box-shadow .3s;
}
.vts-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 48px rgba(0,0,0,.32);
  z-index: 5;
}

/* ── thumbnail ── */
.vts-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--vts-r);
  z-index: 1;
  transition: opacity .7s ease;
}
.vts-card.vts-loaded .vts-thumb { opacity: 0; }

/* ── iframe ── */
.vts-frame-wrap {
  position: absolute; inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: var(--vts-r);
  background: #000;
  transform: scale(1.09);
}
.vts-frame {
  width: 100%; height: 100%;
  border: none; display: block;
  pointer-events: none;
}

/* ── overlay gradient ── */
.vts-overlay {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: var(--vts-r);
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0,0,0,.20) 58%,
    rgba(0,0,0,.88) 100%
  );
}

/* ══════════════════
   BOTTOM CONTROLS BAR
   [ ▶ ][ 0:00 ][ 🔇 ][ ⛶ ]
══════════════════ */
.vts-bar {
  position: absolute;
  bottom: 22px; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  padding: 0 10px;
  height: 30px;
  gap: 2px;
}

.vts-bc {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 4px 5px;
  opacity: .92;
  transition: opacity .15s, transform .15s;
  line-height: 1;
  flex-shrink: 0;
}
.vts-bc:hover { opacity: 1; transform: scale(1.18); }
.vts-ico { display: block; }

.vts-pp   .vts-ico { width: 15px; height: 15px; }
.vts-mute .vts-ico { width: 14px; height: 14px; }
.vts-fs   .vts-ico { width: 13px; height: 13px; }

.vts-time {
  font-size: .6rem;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  letter-spacing: .04em;
  padding: 0 4px 0 2px;
  flex: 1;
  user-select: none;
  cursor: default;
}
.vts-time:hover { opacity: .88 !important; transform: none !important; }

/* unmuted = blue speaker */
.vts-card.vts-unmuted .vts-mute { color: #60a5fa; }

/* ── progress bar (bottom edge) ── */
.vts-prog {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.22);
  z-index: 5;
  border-radius: 0 0 var(--vts-r) var(--vts-r);
  overflow: hidden;
}
.vts-prog-fill {
  height: 100%;
  background: #fff;
  width: 0%;
  transition: width .15s linear;
}

/* ── name + role ── */
.vts-info {
  position: absolute;
  bottom: 56px; left: 0; right: 0;
  padding: 0 12px;
  z-index: 5;
  pointer-events: none;
}
.vts-name {
  font-size: .84rem; font-weight: 700; color: #fff;
  text-shadow: 0 1px 5px rgba(0,0,0,.8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vts-role {
  font-size: .68rem; color: rgba(255,255,255,.6);
  font-weight: 500; margin-top: 2px;
}

/* ══════════════════
   FULLSCREEN MODAL
══════════════════ */
.vts-modal {
  position: fixed; inset: 0; z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  animation: vtsFadeIn .22s ease both;
}
.vts-modal.vts-out { animation: vtsFadeOut .18s ease both; }
@keyframes vtsFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes vtsFadeOut { from { opacity: 1; } to { opacity: 0; } }

.vts-modal-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
}
.vts-modal-box {
  position: relative;
  width: min(360px, 90vw);
  aspect-ratio: 9 / 16;
  border-radius: 20px; overflow: hidden;
  background: #000;
  box-shadow: 0 40px 100px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08);
  z-index: 1;
  animation: vtsBoxIn .28s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes vtsBoxIn {
  from { transform: scale(.86); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.vts-modal-frame { width: 100%; height: 100%; border: none; display: block; }

.vts-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.65); border: 1.5px solid rgba(255,255,255,.3);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .18s, transform .15s;
}
.vts-modal-close svg { width: 17px; height: 17px; }
.vts-modal-close:hover { background: rgba(220,38,38,.85); transform: scale(1.1); }

.vts-modal-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  color: #fff; font-weight: 700; font-size: .9rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.vts-modal-label small {
  display: block; font-size: .7rem;
  color: rgba(255,255,255,.6); font-weight: 500; margin-top: 2px;
}

/* ── responsive ── */
@media (max-width: 640px) {
  .vts-marquee-wrap { --vts-cw: 175px; --vts-ch: 311px; }
  .vts-fade-left, .vts-fade-right { width: 50px; }
}
@media (max-width: 420px) {
  .vts-marquee-wrap { --vts-cw: 148px; --vts-ch: 262px; }
}
