@import '../style/common_mixin.scss';

.body-bg {
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  background-image: url('../../assets/player-bg.png') !important;
  background-size: 100%;
}

.player-border{
  position: absolute;
  left: calc((100% - 100vh * 1.36)/ 2);
  top: 5vh;
  right: calc((100% - 100vh * 1.36)/ 2);
  bottom: 5vh;
  text-align: center;
  // box-shadow: 0 2px 12px 0 rgba(0,0,0,.3);
  border-radius: 11px;
  border: 20px solid #23b1c2;
  background-color: #fff;
  overflow: hidden;
  color: #303133;
  transition: .3s;
}
  

.p-courseware-video {
  height: 100%;
  overflow: hidden;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  transform-style: preserve-3d;
  background-color: #333;
  @include k-img-bg();
  .video-cover{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }
  video {
    width: 100%;
    height: 93%;
  }
}

.k-play-btn {
  position: absolute;
  width: 15%;
  top: 30%;
  left: 40%;
  font-size: 12vh;
  color: #444;
  background-color: white;
  border-radius: 50%;
  opacity: 0.9;
}

.k-video-control {
  position: absolute;
  bottom: 1vh;
  left: 0;
  width: 100%;
  height: 7.5%;
  display: flex;
  color: white;
  padding: 0 8vh;
  align-items: center;
  &-bg {
    position: absolute;
    //width: 100%;
    height: 100%;
    background-color: #333;
    opacity: 0.5;
  }
  &-time-past {
    width: 3.5rem;
  }
  &-progress {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    margin: 0 3%;
    & > * {
      pointer-events: none; // Ken video seek
    }
    .i-bg {
      position: absolute;
      background-color: #aaa;
      width: 100%;
      height: 10%;
      border-radius: 1rem;
    }
    .i-before-progress {
      position: absolute;
      height: 10%;
      background-color: white;
      border-radius: 1rem;
    }
    .i-cursor {
      position: absolute;
      width: 1.5vh;
      height: 1.5vh;
      border-radius: 50%;
      background-color: white;
    }
  }
  &-time-total {
    margin-right: 3vh;
  }
  &-tool {
    display: flex;
    .i-tool-btn {
      width: 4vh;
      height: 4vh;
      background-color: white;
      border-radius: 50%;
      margin: 0 1vh;
      color: black;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 1.8vh;
      font-weight: bold;
    }
  }
}

