@charset "UTF-8";

/* ==============================================
   VideoPlayerControl - 视频播放器控制组件样式
   依赖：iconfont（icon-play / icon-play-1）
   ============================================== */

/* 播放控制按钮容器 + 进度环 */
.video-control-btn {
  position: absolute;
  bottom: 1.5625vw;
  right: 1.5625vw;
  width: 2.9167vw;
  height: 2.9167vw;
  cursor: pointer;
  z-index: 10;
}
.video-control-btn .progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.video-control-btn .progress-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 5;
}
.video-control-btn .progress-ring-fg {
  fill: none;
  stroke: #3967fb;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 213.6283;
  stroke-dashoffset: 213.6283;
  transition: stroke-dashoffset 0.1s linear;
}

/* 播放/暂停按钮 */
.play-pause-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.3958vw;
  height: 2.3958vw;
  background: #333;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}
/* iconfont 图标 */
.play-pause-btn .iconfont {
  color: #fff;
  font-size: 1.0417vw;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
/* 默认：显示播放图标，隐藏暂停图标 */
.play-pause-btn .icon-play {
  display: block;
  margin-left: .2604vw;
}
.play-pause-btn .icon-play-1 {
  display: none;
}

/* 播放状态：显示暂停图标，隐藏播放图标 */
.playing .play-pause-btn .icon-play {
  display: none;
}
.playing .play-pause-btn .icon-play-1 {
  display: block;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
  .video-control-btn {
    bottom: 4.2667vw;
    right: 4.2667vw;
    width: 13.3333vw;
    height: 13.3333vw;
    display: none;
  }
  .play-pause-btn {
    width: 10.6667vw;
    height: 10.6667vw;
  }
  .play-pause-btn .iconfont {
    font-size: 4.2667vw;
  }
}