@import "src/assets/css/variable";
$tabHeight: 44px;

.play {
  .video {
    width: 100%;
    height: 215px;
    background-color: $black;
    position: relative;

    .video-js {
      width: 100%;
      height: 100%;

      .vjs-custom-play-button-cover {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.5);

        .vjs-custom-play-button {
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          width: 27px;
          height: 27px;
          background: url("./images/play.png") no-repeat;
          background-size: contain;
        }
      }

      &.vjs-has-started {
        .vjs-custom-play-button-cover {
          bottom: 2.9em;
        }
      }

      &.vjs-playing {
        .vjs-custom-play-button-cover {
          display: none;
        }
      }
    }

    .purchase-box {
      width: 100%;
      height: 100%;
      position: absolute;
      left: 0;
      top: 0;
      background-color: rgba(0, 0, 0, 0.8);
      display: flex;
      flex-flow: column;
      justify-content: center;
      align-items: center;

      .hint {
        font-size: $font_14;
        color: $white;
        margin-bottom: 20px;
      }

      @mixin button {
        display: block;
        -webkit-appearance: none;
        outline: none;
        border: none;
        background-color: transparent;
        border-radius: 5px;
        line-height: 30px;
        font-size: 13px;
        padding: 0 9px;
      }

      .btns {
        width: 100%;
        padding: 0 60px;
        display: flex;
        justify-content: space-around;
      }

      .purchase-class {
        @include button;
        background-color: $white;
        color: $color_FF4000;
      }

      .purchase-episode {
        @include button;
        background-color: $bg_FF4000;
        color: $white;
      }
    }

    .is-aist-box {
      width: 100%;
      height: 100%;
      position: absolute;
      left: 0;
      top: 0;
      background-color: rgba(0, 0, 0, 0.8);
      display: flex;
      flex-flow: column;
      justify-content: center;
      align-items: center;
      color: #fff;

      i {
        font-size: 34px;
      }

      .time {
        font-size: 16px;
      }
    }

    video {
      width: 100%;
      height: 100%;
    }
  }

  .tab {
    height: $tabHeight;
    max-height: $tabHeight;
    line-height: $tabHeight;
    text-align: center;
    background: #fff;
    flex: 1 0 auto;
    display: flex;
    justify-content: center;

    & > div {
      flex: 1 0 auto;
    }

    a {
      display: inline-block;
      height: $tabHeight;
      font-size: $font_16;
      border-bottom: 1px solid transparent;

      &.active {
        border-bottom: 1px solid $active;
      }
    }
  }

  .active {
    color: $active;

    .iconiconfront-74 {
      color: $color_555;
    }
  }

  .progress-share-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 290px;
    height: 332px;
    padding: 18px 15px;
    background: url("./images/progress-share-bg.png");
    background-size: contain;

    & > .title {
      font-size: 21px;
      color: #00656f;
      line-height: 30px;
      text-align: center;
      margin-bottom: 20px;
    }

    .progress-container {
      display: flex;
      justify-content: space-between;
      margin-bottom: 20px;

      li {
        flex: 1;

        .title {
          font-size: 14px;
          color: #00838f;
          line-height: 20px;
          text-align: center;
          flex: 1;
          margin-bottom: 10px;
        }

        .number {
          font-size: 15px;
          color: #00656f;
          text-align: center;

          .num {
            font-size: 33px;
            color: #00656f;
          }
        }
      }
    }

    .share-container {
      .title {
        position: relative;
        text-align: center;
        font-size: 14px;
        color: #00838f;
        margin-bottom: 25px;

        &::before {
          position: absolute;
          top: 50%;
          left: 30px;
          transform: translateY(-50%);
          content: "";
          display: block;
          width: 70px;
          height: 1px;
          background: #77c4bf;
        }

        &::after {
          position: absolute;
          top: 50%;
          right: 30px;
          transform: translateY(-50%);
          content: "";
          display: block;
          width: 70px;
          height: 1px;
          background: #77c4bf;
        }
      }

      ul {
        display: flex;
        justify-content: space-around;
        padding: 0 20px;
        text-align: center;

        li {
          font-size: 12px;
          color: #00838f;

          .iconfont {
            font-size: 40px;
            color: #00838f;
          }
        }
      }
    }

    .close {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: -63px;
      color: #fff;
      font-size: 30px;
    }

    &-wrapper {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      touch-action: none;
      z-index: 100;
    }
  }
}

.limit-free-cover {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
}

.free-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 290px;
  height: 366px;
  border-radius: 5px !important;
  padding: 0 !important;
  background: url("https://cdn.julyedu.com/time_limited_free/M/popup-bg.png") !important;
  background-size: cover !important;

  .title {
    display: flex;
    align-items: center;
    height: 125px;
    padding: 0 20px;
    color: #fff !important;
    font-size: 15px;
  }

  .des {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 20px;

    .qrcode {
      margin-bottom: 10px;
      width: 118px;
      height: 118px;
    }

    & > span:nth-of-type(1) {
      color: #666;
      font-size: 13px;
      margin-bottom: 10px;
    }

    & > span:nth-of-type(2) {
      color: #333;
      font-size: 15px;
      margin-bottom: 14px;
    }

    span span {
      color: #ff2121;
    }

    .no-prompt {
      label {
        position: relative;
        padding-left: 21px;
        height: 14px;
      }

      input,
      .checkbox-label {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 13px;
        height: 13px;
        -webkit-appearance: none;
        outline: 0;
        background: #fff;
      }

      input {
        opacity: 0;
      }

      .checkbox-label {
        border: 1px solid rgba(84, 92, 100, 0.6);
        border-radius: 1px;
        left: -1px;
        box-sizing: border-box;

        .iconfont {
          color: #fff;
          font-size: 12px;
        }
      }

      span {
        color: #545c64;
        font-size: 13px;
        margin-bottom: 0;
        line-height: 14px;
      }

      .checked {
        background: #09f;
      }
    }
  }

  .close-btn {
    position: absolute;
    bottom: -44px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 26px;
    color: #fff;
  }
}
