/* 视频浮层样式 */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal.active {
  display: flex;
  opacity: 1;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-video {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.video-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: rotate(90deg);
}

.video-modal-close::before,
.video-modal-close::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: #fff;
}

.video-modal-close::before {
  transform: rotate(45deg);
}

.video-modal-close::after {
  transform: rotate(-45deg);
}

/* 禁止页面滚动 */
body.video-modal-open {
  overflow: hidden;
  height: 100vh;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .video-modal-content {
    width: 95%;
  }

  .video-modal-close {
    top: -45px;
    width: 36px;
    height: 36px;
  }

  .video-modal-close::before,
  .video-modal-close::after {
    width: 18px;
  }
}
