@charset "UTF-8";

/* ==============================================
   VideoPlayerControl - 瑙嗛鎾斁鍣ㄦ帶鍒剁粍浠舵牱寮
   渚濊禆锛歩confont锛坕con-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;
}

/* ==============================================
   CSS conic-gradient 鍦嗗舰杩涘害鐜紙鏇夸唬 SVG progress-ring锛
   缁撴瀯锛?progress-ring-conic锛堣建閬撹儗鏅級
         ::before锛堝畬鏁?60掳褰╄壊 + mask瑁佸壀鎵囧舰锛
         .progress-ring-conic-inner锛堝唴灞傚疄蹇冨渾锛
   棰滆壊鏂规锛 #B859FD 鈫 #3943FF 鈫 #30D9FF 鈫 #3A43FF 鈫 #B859FD
   ============================================== */
.video-control-btn .progress-ring-conic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* 搴曞眰锛氬崐閫忔槑鐧借壊瀹屾暣鍦嗭紙杞ㄩ亾鑳屾櫙锛 */
  background: rgba(255, 255, 255, 0.6);
}

/* ::before 浼厓绱狅細瀹屾暣360掳褰╄壊鍦嗙幆 + mask瑁佸壀 */
.video-control-btn .progress-ring-conic::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* 瀹屾暣360掳褰╄壊 conic-gradient锛岄鑹插潎鍖€鍒嗗竷鍦ㄦ暣鍦 */
  background: conic-gradient(
    from 0deg,
    #B859FD 0deg,
    #3943FF 96.9231deg,
    #30D9FF 188.654deg,
    #3A43FF 276.923deg,
    #B859FD 360deg
  );
  /* mask锛氫粠0掳鍒 progress*360掳 鏄剧ず锛屽叾浣欓殣钘 */
  mask: conic-gradient(
    from 0deg,
    #000 0deg,
    #000 calc(var(--progress) * 360deg),
    transparent calc(var(--progress) * 360deg),
    transparent 360deg
  );
  -webkit-mask: conic-gradient(
    from 0deg,
    #000 0deg,
    #000 calc(var(--progress) * 360deg),
    transparent calc(var(--progress) * 360deg),
    transparent 360deg
  );
}

/* 鍐呭眰瀹炲績鍦嗭細瑕嗙洊涓棿褰㈡垚鐜舰鏁堟灉 */
.video-control-btn .progress-ring-conic-inner {
  position: absolute;
  /* 鐜 鈮 5px 鈫 5/19.20 = 0.2604vw */
  top: 0.2604vw;
  left: 0.2604vw;
  width: calc(100% - 0.5208vw);
  height: calc(100% - 0.5208vw);
  border-radius: 50%;
  background: #333333;
  z-index: 1;
}

/* 鎾斁/鏆傚仠鎸夐挳 */
.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;
  }
  /* conic 杩涘害鐜Щ鍔ㄧ */
  .video-control-btn .progress-ring-conic-inner {
    /* 鐜 鈮 4px 鈫 4/3.75 = 1.0667vw */
    top: 1.0667vw;
    left: 1.0667vw;
    width: calc(100% - 2.1334vw);
    height: calc(100% - 2.1334vw);
  }
}