.product-video-modal-mask {
  position: fixed;
  inset: 0;
  display: flex;
  background: #00000080;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
}

.product-video-modal-mask.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.product-video-modal-panel {
  position: relative;
  width: min(880px, 100%);
  max-height: calc(100vh - 64px);
  overflow: auto;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  padding: 40px;
  box-sizing: border-box;
  transform: scale(0.97);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.product-video-modal-mask.active .product-video-modal-panel {
  transform: scale(1);
  opacity: 1;
}

.product-video-modal-close {
  position: absolute;
  right: 6px;
  top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 0;
  line-height: 0;
  color: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.product-video-modal-close::before {
  content: '';
  width: 20px;
  height: 20px;
  background: url('https://singapore-1312056779.cos.accelerate.myqcloud.com/site_style/productCenter/reyeeProductDetail/RJ-img/closeSvg.png') center/contain no-repeat;
}

.product-video-modal-stage {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.product-video-modal-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.product-video-modal-player,
.product-video-modal-iframe {
  display: block;
  width: calc(100% + 2px);
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 70vh;
  background: transparent;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.product-video-modal-player {
  object-fit: cover;
  right: 2px;
}

.product-video-modal-preview {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.18) 100%);
  z-index: 1;
}

.product-video-modal-preview-play {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
  position: relative;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.product-video-modal-preview-play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-38%, -50%);
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 24px solid #fff;
}

.product-video-modal-title {
  margin: 12px 0;
  color: #2A2B2E;
  font-size: 18px;
  font-weight: 600;
  height: auto;
  line-height: 1.2;
  word-break: break-word;
}

.product-video-modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #989898;
  font-size: 14px;
  line-height: 1.5;
  height: 32px;
}

.product-video-modal-meta-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #6A6B6D;
  font-size: 14px;
  font-weight: 400;
  justify-content: flex-start;
}

.product-video-modal-meta-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 8px;
  color: #7f8187;
  box-sizing: border-box;
}

.product-video-modal-feedback-group,
.product-video-modal-copy-group {
  display: inline-flex;
  align-items: center;
  height: 32px;
  gap: 8px;
  padding: 0 16px;
  border-radius: 999px;
  background: #F1F3F5;
  box-sizing: border-box;
}

.product-video-modal-feedback-text {
  color: #77797f;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: #2A2B2E;
}

.product-video-modal-feedback-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
}

.product-video-modal-feedback-btn {
  width: 38px;
  height: 22px;
  padding: 0;
  border: 1px solid #9B9FA8;
  background: transparent;
  color: #9B9FA8;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
  border-radius: 999px;
  cursor: pointer;
  box-sizing: border-box;
}

.product-video-modal-feedback-btn.active {
  background: #ffffff;
  color: #0175E8;
  border-color: #0175E8;
}

.product-video-modal-meta-actions {
  justify-content: flex-end;
  gap: 0;
}

.product-video-modal-views-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-video-modal-meta-separator {
  width: 1px;
  height: 20px;
  background: #D5D5D5;
}

.product-video-modal-copy {
  border: 0;
  background: transparent;
  color: #2A2B2E;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  vertical-align: middle;
}

.product-video-modal-copy::before {
  content: '';
  width: 18px;
  height: 20px;
  margin-top: 3px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url('https://singapore-1312056779.cos.accelerate.myqcloud.com/site_style/productCenter/reyeeProductDetail/RJ-img/copyLink.png');
}

.product-video-modal-copy-group:hover {
  background: #E4E8EB;
}

.product-video-modal-copy-status {
  color: #6b7280;
  font-size: 12px;
}

.n-videoContainer {
  cursor: pointer;
}

.n-videoContainer .n-video-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
}

.n-videoContainer .n-video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.n-detail-video-list #videoDetailSwiper .swiper-slide {
  width: 320px;
}

.n-detail-video-list #videoDetailSwiper {
  position: relative;
}



.n-detail-video-list #videoDetailSwiper .swiper-button-next,
.n-detail-video-list #videoDetailSwiper .swiper-button-prev {
  z-index: 3;
}

@media screen and (max-width: 768px) {
  
  .n-detail-video-list #videoDetailSwiper::after {
    display: none;
  }

  .n-detail-video-list {
    padding: 0 20px;
  }

  .product-video-modal-mask {
    padding: 16px;
  }

  .product-video-modal-panel {
    width: min(324px, 100%);
    max-height: none;
    overflow: visible;
    padding: 0;
    border-radius: 4px;
  }

  .product-video-modal-close {
    top: -30px;
    right: 0;
    width: 24px;
    height: 24px;
    z-index: 4;
  }

  .product-video-modal-close::before {
    width: 24px;
    height: 24px;
    background-image: url('https://singapore-1312056779.cos.accelerate.myqcloud.com/site_style/productCenter/reyeeProductDetail/RJ-img/closeH5Svg.png');
  }

  .product-video-modal-stage {
    border-radius: 4px;
  }

  .product-video-modal-player,
  .product-video-modal-iframe {
    max-height: none;
    min-height: 164px;
  }

  .product-video-modal-title {
    margin: 12px;
    font-size: 14px;
    line-height: 150%;
  }

  .product-video-modal-meta {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 12px;
    height: auto;
    font-size: 12px;
    margin: 0 12px 12px;
  }

  .product-video-modal-meta-main,
  .product-video-modal-meta-feedback,
  .product-video-modal-meta-actions {
    justify-content: flex-start;
    gap: 8px;
  }

  .product-video-modal-meta-main {
    width: 100%;
    height: 20px;
    font-size: 12px;
  }

  .product-video-modal-meta-separator {
    height: 16px;
  }

  .product-video-modal-meta-feedback {
    flex: none;
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .product-video-modal-feedback-group,
  .product-video-modal-copy-group {
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
    padding: 0 10px;
  }

  .product-video-modal-feedback-group {
    gap: 6px;
  }

  .product-video-modal-feedback-text,
  .product-video-modal-copy {
    font-size: 12px;
  }

  .product-video-modal-copy::before {
    width: 14px;
    height: 14px;
    margin-top: 0;
  }
}