@playerBarBg: rgba(29, 33, 53, 0.8);

.html5-player-custom-time-slider {
  padding: 9px 28px !important;
  height: 20px;
  position: absolute;
  bottom: 30px;
  width: calc(~'100% - 12px') !important;
  max-width: calc(~'100% - 12px') !important;
  margin: 4px 6px;
  border-radius: 10px;
  background: @playerBarBg;
  opacity: 1;
  z-index: 98;
  transition: opacity 0.3s;
  visibility: visible !important;
  & > div {
    width: 100%;
  }
  //底部进度条
  .html5-player-slider-rail {
    height: 2px;
    background: #5b7eac;
    border-radius: 2px;
    transform: none;
    position: relative;
    cursor: pointer;
    // 时间截取样式
    .html5-player-selection-container {
      .html5-player-selection-left,
      .html5-player-selection-right {
        // @include setWH(7px, 16px);
        top: -7px;
        span {
          display: block;
          // @include setWH();
          background: url('/resource/image/player/CutRuler_1.svg') no-repeat center/cover;
          &:hover {
            background: url('/resource/image/player/CutRuler_2.svg') no-repeat center/cover;
          }
        }
      }
      .html5-player-selection-right {
        span {
          transform: rotate(180deg);
        }
      }
    }
    // 时间气泡
    .html5-player-for-tooltip {
      padding: 18px 0px 4px;
      &:hover {
        .html5-player-time-tooltip {
          visibility: visible;
        }
      }
      .html5-player-time-tooltip {
        position: absolute;
        bottom: 0;
        left: 0;
        white-space: nowrap;
        visibility: hidden;
      }
      .html5-player-time-tooltip-content {
        color: #fff;
        padding: 5px;
        border-radius: 4px;
        background: @playerBarBg;
      }
    }
    // 断片样式
    .html5-player-broken {
      background: rgba(29, 33, 53, 1);
      z-index: 100;
    }
    // 有视频样式
    .html5-player-hasvideo {
      background: #5b7eac;
      z-index: 98;
    }
    // 已播放的进度
    .html5-player-slider-track {
      background: #ffbb22;
      border-radius: 2px;
      z-index: 99;
      max-width: 100% !important;
      height: 2px;
    }
    // 小圆点
    .html5-player-slider-circle {
      display: block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #fa0;
      border: 1px solid #fff;
      position: absolute;
      top: -3px;
      z-index: 101;
      cursor: pointer;
    }
  }
  &:hover {
    padding: 8px 28px !important;
    .html5-player-slider-rail {
      height: 4px;
      .html5-player-slider-track {
        height: 4px;
      }
      .html5-player-slider-circle {
        top: -4px;
        width: 12px;
        height: 12px;
        margin-left: -1px;
      }
    }
  }
  .history-fragments-container {
    left: 0;
  }
  .html5-player-for-tooltip {
    position: absolute;
    width: 100%;
    padding: 8px 0;
    top: 0;
  }
  .time-line-action-item {
    display: block;
    width: 32px;
    height: 22px;
    text-align: center;
    line-height: 22px;
    color: #fff;
    position: absolute;
    top: -9px;
    &.step-prev {
      left: -29px;
      &::after {
        content: '\e71f';
      }
    }
    &.step-next {
      right: -29px;
      &::after {
        content: '\e720';
      }
    }
  }
  &.hide-timeline {
    opacity: 0;
  }
}
.html5-player-custom-time-slider {
  .html5-player-slider-onenter-rail:hover {
    .html5-player-slider-circle {
      display: block;
    }
  }
}
