/* ═══════════════════════════════════════════════════
   SAMIX VIDEO CAROUSEL — carousel.css
   Hosted on GitHub → served via jsDelivr CDN
   ═══════════════════════════════════════════════════ */

.videoSwiper {
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: 20px 48px 48px;
  background: #fdfbf7;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  touch-action: pan-y;
}

.video-card {
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* 9:16 aspect ratio */
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 177.78%;
  background: #000;
  cursor: pointer;
}

.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  transition: background 0.2s;
}
.play-overlay:hover { background: rgba(0,0,0,0.1); }

.play-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}
.play-overlay:hover .play-circle { transform: scale(1.1); }
.play-circle svg { margin-left: 5px; }

/* Iframe — lazy, shown only on click */
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}
.video-frame iframe.active      { display: block; }
.video-frame .play-overlay.hidden { display: none; }
.video-frame .video-thumb.hidden  { display: none; }

/* Swiper arrows */
.swiper-button-next,
.swiper-button-prev {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.14);
  color: #41B9EB;
  top: 42%;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 16px;
  font-weight: 700;
}

/* Pagination */
.swiper-pagination { bottom: 12px !important; }

.swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: #EEF6FF;
  opacity: 1;
}
.swiper-pagination-bullet-active { background: #41B9EB; }

/* Mobile */
@media (max-width: 600px) {
  .videoSwiper {
    max-width: 100%;
    padding: 12px 36px 40px;
    border-radius: 12px;
  }
  .swiper-button-next,
  .swiper-button-prev {
    width: 32px;
    height: 32px;
  }
  .swiper-button-next::after,
  .swiper-button-prev::after { font-size: 13px; }
}
