@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@rec-video-view-prefix-cls: ~'@{ant-prefix}-hk-h5-player-view';

.@{rec-video-view-prefix-cls} {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;

  &-content {
    flex: 1;
    display: flex;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
  }

  &-video {
    flex: 1;
    width: 100%;
    overflow: hidden;
  }

  &-time {
    flex: none;
    overflow: hidden;
    width: 100%;
  }

  &-control {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: #161616;
    opacity: 0.8;
    list-style: none;
    margin: 0;

    >li {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 20px;
      height: 100%;
    }

    &-play {
      cursor: pointer;
    }

    &-speed {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 24px !important;
      border-radius: 6px;
      background-color: #333333;
      color: #ffffff;
      font-size: 12px;
      contain: layout style paint;

      &-value {
        width: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      &-btn {
        width: 30px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;

        &:hover {
          background-color: #444444;
        }
      }

      &-none {
        pointer-events: none !important;
        cursor: no-drop;
      }
    }

    &-sound {
      cursor: pointer;
      position: relative;

      &-slider {
        display: none;
        position: absolute;
        bottom: 41px;
        width: 40px;
        padding: 10px 0 15px 0;
        border-radius: 5px;
        background-color: #161616;
        height: 120px;
        align-items: center;
        justify-content: center;
      }

      &:hover {
        .@{rec-video-view-prefix-cls}-control-sound-slider {
          display: flex;
        }
      }
    }

    &-full {
      cursor: pointer;
    }

    &-reload {
      cursor: pointer;
    }
  }

  &-stream {
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    >img {
      width: 60px;
      cursor: pointer;
    }

    >span {
      margin-top: 10px;
      color: #ffffff;
    }
  }

  &-spin {
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    &-box {
      color: #ffffff;
    }

    .@{ant-prefix}-spin-text {
      margin-top: 10px;
    }
  }

  &-load {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  &-progress {
    width: 100%;
    overflow: hidden;
    width: 50%;
    margin-bottom: 10px;
  }

  &-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  :global {
    .timeslider-canvas-wrap-his {
      height: 72px;
      width: 100%;
    }
  }
}