$class-prefix-control-bar: "vf-control-bar";

.#{$class-prefix-control-bar} {
  position: absolute;
  z-index: 100;
  height: var(--vf-control-bar-height);
  width: calc(100% - 24px);
  bottom: 0;
  left: 12px;
  color: var(--vf-color-white);
  padding-top: 3px;
  opacity: 1;
  display: flex;
  align-items: center;
  // transition: opacity 0.1s cubic-bezier(0.4, 0, 1, 1);
  // -webkit-transition: opacity 0.1s cubic-bezier(0.4, 0, 1, 1);
  // -moz-transition: opacity 0.1s cubic-bezier(0.4, 0, 1, 1);
  // -ms-transition: opacity 0.1s cubic-bezier(0.4, 0, 1, 1);
  // -o-transition: opacity 0.1s cubic-bezier(0.4, 0, 1, 1);
  transition: all 0.2s;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  -ms-transition: all 0.2s;
  -o-transition: all 0.2s;

  &-left,
  &-right {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
  }

  &-left {
    flex: 1;
  }

  &-volume-area {
    display: flex;
    align-items: center;
    column-gap: 13px;
    padding-right: 10px;
  }
}

.#{$class-prefix-control-bar}-hidden {
  transform: translateY(100%);
  -webkit-transform: translateY(100%);
  -moz-transform: translateY(100%);
  -ms-transform: translateY(100%);
  -o-transform: translateY(100%);
}

.#{$class-prefix-control-bar}-button {
  cursor: pointer;
  width: fit-content;
  padding: 0 10px;
  height: 30px;
  opacity: 0.9;
  display: inline-block;
  color: var(--vf-color-white) !important;

  -webkit-transition: opacity 0.1s cubic-bezier(0.4, 0, 1, 1);
  transition: opacity 0.1s cubic-bezier(0.4, 0, 1, 1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  & > * {
    line-height: 0;
    color: var(--vf-color-white) !important;
  }

  &:hover {
    background-color: var(--vf-color-primary);
  }
  transition: all 0.4s;
  -webkit-transition: all 0.4s;
  -moz-transition: all 0.4s;
  -ms-transition: all 0.4s;
  -o-transition: all 0.4s;
}

.#{$class-prefix-control-bar}-button-tooltip {
  background-color: rgba(14, 14, 14, 0.907) !important;
  padding: 0 8px !important;
  min-height: 23px !important;
  width: fit-content !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px !important;
  text-transform: capitalize;
  font-weight: 400 !important;
  letter-spacing: 0.5px;
  border-radius: 7px !important;
  -webkit-border-radius: 5px !important;
  -moz-border-radius: 7px !important;
  -ms-border-radius: 7px !important;
  -o-border-radius: 7px !important;
}

.#{$class-prefix-control-bar}-video-preview {
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
  & > div:first-child {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 2px 0;
    height: 25px;
  }
}

.vf-duration {
  font-size: 15px;
  white-space: nowrap;
  color: var(--vf-color-white);
}

.vf-slider {
  width: 80px !important;
  transition: all 0.2s !important;
  -webkit-transition: all 0.2s !important;
  -moz-transition: all 0.2s !important;
  -ms-transition: all 0.2s !important;
  -o-transition: all 0.2s !important;
  .rc-slider-handle {
    border-color: var(--vf-color-primary) !important;
    &:focus-visible {
      box-shadow: 0 0 0 3px var(--vf-color-primary) !important;
    }
  }

  .rc-slider-handle.rc-slider-handle-dragging {
    box-shadow: 0 0 0 5px var(--vf-color-primary) !important;
    border-color: var(--vf-color-primary);
  }

  .rc-slider-track {
    background-color: var(--vf-color-primary);
  }
}
