.video_cover, .video_ad {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  max-height: 300px;
}
.arrowright {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background: #ad0000cc;
  color: #fff;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  z-index: 2;
  transition: background 0.2s;
  cursor: pointer;
}
.arrowright:hover { background: #ff3333cc; }
.vsi-timer {
  position: absolute;
  bottom: 10px;
  right: 16px;
  background: #222b;
  padding: 1px 8px;
  color: #fff;
  font-size: 11px;
  border-radius: 7px;
  opacity: .90;
  z-index: 3;
}
/* ====== Video Shop Popup – revamped & responsive ====== */
#vsi-popup {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none;               /* toggled via JS */
  align-items: center;
  justify-content: center;
  z-index: 1000000;
  overflow: auto;              /* allow page-level scroll if needed */
  padding: 1rem;
}

.vsi-popup-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 920px;
  width: 100%;
  max-height: 96vh;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow-y: auto;            /* internal scroll */
  animation: popIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes popIn {
  from { transform: scale(0.94); opacity: 0 }
  to   { transform: scale(1);    opacity: 1 }
}

/* ---------- Close Button ---------- */
.vsi-popup-close {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 34px;
  color: #c00;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: color 0.25s;
  background: white;
  border-radius: 50px;
  width: 40px;
  height: 40px;
  display: flex
;
  align-items: center;
  justify-content: center;
  padding-top: 6px;
}
.vsi-popup-close:hover { color: #a00; }

/* ---------- Layout Flex ---------- */
.vsi-popup-flex {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  padding: 24px;
}
.vsi-popup-video,
.vsi-popup-info {
  flex: 1 1 320px;
  min-width: 260px;
}

/* ---------- Video Wrapper : 1:1 Square ---------- */
.vsi-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;           /* 1:1 aspect */
  border-radius: 12px;
  background: #000;
  overflow: hidden;
}
.vsi-video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

/* ---------- Tabs ---------- */
.vsi-popup-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.vsi-popup-tabs button {
  flex: 1;
  padding: 10px;
  background: #eee;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.25s;
}
.vsi-popup-tabs button:hover { background: #ddd; }

/* ---------- Info Section ---------- */
.vsi-popup-info h3 { margin: 0 0 8px; font-size: 20px; font-weight: bold; }
#vsi-popup-price { font-size: 18px; color: #090; margin-bottom: 8px; }
#vsi-popup-views { font-size: 14px; color: #888; margin-bottom: 12px; }
.vsi-link { 
    display: inline-block;
    margin-bottom: 12px;
    background: #ad0000;
    color: white;
    padding: 5px 40px;
    border-radius: 10px;
 }
 .vsi-link:hover { 
  color: #fff;
 }
.vsi-add-to-cart-btn {
  background: #ad0000;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

/* ---------- Related videos ---------- */
.vsi-popup-more { margin-top: 24px; }
.vsi-popup-more-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.vsi-related-item {
  position: relative;
  flex: 0 0 auto;
  width: 96px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.vsi-related-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vsi-related-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.25s;
}
.vsi-related-item:hover .vsi-related-play { background: rgba(0, 0, 0, 0.55); }

.vsi-show-all-btn {
  display: block;
  margin: 16px auto 0;
  background: #eee;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

/* ---------- Responsiveness ---------- */
@media (max-width: 768px) {
  .vsi-popup-flex { padding: 16px; }
  .vsi-popup-tabs button { font-size: 14px; padding: 8px; }
}




.vsi-product-videos {
    background-color: #f8f8f8;
    margin-top: 0px !important;
    max-width: 1100px;
    /* border-radius: 24px; */
    /* box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05); */
    padding: 20px;
    margin-bottom: 30px;
    margin: 0 auto;
    border: 1px solid #ccc;
}
.vsi-section-title {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 18px;
    color: #222;
    letter-spacing: -0.5px;
    text-align: right;
}
.vsi-gallery-item {
    display: flex;
    justify-content: center;
    align-items: center;
}
.vsi-cover {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(80,80,80,0.08);
    background: #f9f9f9;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.vsi-cover:hover {
    box-shadow: 0 8px 28px rgba(10,70,180,0.12);
}
.vsi-cover-img {
    display: block;
    width: 100%;
    height: 128px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.22s cubic-bezier(.21,.88,.62,1.04);
}
.vsi-cover:hover .vsi-cover-img {
    transform: scale(1.06);
}
.vsi-play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ad0000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(10,70,180,0.16);
    transition: background 0.18s;
}
.vsi-cover:hover .vsi-play-btn {
    background: rgba(220,0,62,0.95);
}
.vsi-no-cover {
    display: block;
    width: 180px; height: 180px;
    text-align: center; color: #888;
    line-height: 180px;
    background: #eee;
    border-radius: 14px;
    font-size: 0.93rem;
}

.swiper.vsi-swiper {
    margin-bottom: 0;
}
.vsi-swiper .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}
.vsi-swiper .swiper-pagination-bullet-active {
    background: #ad0000;
}
.vsi-swiper .swiper-button-next, 
.vsi-swiper .swiper-button-prev {
    background: #fff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    color: #314079;
    box-shadow: 0 2px 8px rgba(80,80,80,0.13);
    /* top: 35%; */
    transition: background 0.15s;
}
.vsi-swiper .swiper-button-next:hover, 
.vsi-swiper .swiper-button-prev:hover {
    background: #ad0000;
    color: #fff;
}
@media (max-width: 600px) {
    .vsi-cover-img, .vsi-no-cover { width: 100%; height: 140px; line-height: 140px; }
    .vsi-play-btn { width: 44px; height: 44px; font-size: 25px; }
    .vsi-section-title { font-size: 12px; }
}
