/* ========================================
   视频弹窗组件样式
   ======================================== */

/* 弹窗按钮 */
.video-btn {
  display: inline-block;
  padding: 12px 32px;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 20px;
}

.video-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 158, 224, 0.3);
}

/* 弹窗*/
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.video-modal.active {
  display: flex;
}

/* 弹窗内容 */
.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  padding: 10px;
}

/* 关闭按钮 */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg);
}

/* 弹窗内视频高度 */
.modal-content .video-js {
  width: 100%;
  height: 450px;
}

/* video.js 自定义大播放按钮 */
    .video-js .vjs-big-play-button {
      font-size: 4em;
      background: url(../images/flowplayer/play_white.png) no-repeat center / auto 80%;
      border: 0;
    }

    .video-js .vjs-big-play-button .vjs-icon-placeholder:before {
      content: '';
    }

/* ========================================
   移动端适配
   ======================================== */
@media only screen and (max-width: 600px) {
  /* 弹窗适配 */
  .video-modal {
    padding: 0 10px;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
  }

  .modal-content .video-js {
    height: 56.25vw;
    /* 16:9 比例 */
  }

  .close-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
    top: 10px;
    right: 10px;
  }

  .video-btn {
    padding: 10px 24px;
    font-size: 14px;
    margin: 20px auto;
    display: block;
  }
}
