/* Piman & Videojs Player */

.player_box .poster-container {
  position: relative;
  display: flex;
  margin: auto;
  justify-content: center;
  text-align: center;
  align-items: center;
  min-width: 640px;
  min-height: 360px;
  overflow: hidden;
}

.player_box .poster-container .poster-img {
  position: absolute;
}

.player_box .poster-container .poster-img-blurred {
  position: absolute;
  filter: blur(40px);
  width: 100%;
  height: 100%;
}

.player_box .poster-container .play {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/static/img/proxy-play.65692e438cc5.png");
  background-position: center;
  background-size: 150px;
  background-repeat: no-repeat;
}

.player_box .real-player {
  position: relative;
  margin: 0 auto;
  background-color: black;
}

.player_box .real-player .player-wrapper {
  position: initial;
  width: 100%;
  height: 100%;
}

.player-wrapper.video-js {
  position: initial;
}

.video-controller {
  display: block;
  background-color: #0f5781 !important;
}

.video-controller.hide {
  margin-top: 0;
  display: none;
}

#hornetPlayer.video-js.hornetPlayer-dimensions {
  width: 100%;
}

.player_box .real-player video {
  width: 100%;
  max-height: 800px;
}

.player_box .timecode {
  position: absolute;
  right: 3%;
  margin-top: 1%;
  color: yellow;
  font-weight: 700;
  text-shadow: 1px 1px 5px black;
  z-index: 1000;
  pointer-events: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loader-centered-spinner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  vertical-align: middle;
  height: 100%;
  width: 100%;
}

.player_box .loader {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("/static/img/loader.ae33e3890353.svg");
  background-position: center;
  background-size: 50px;
  background-repeat: no-repeat;
}

.player_box .loader-container {
  position: absolute;
  opacity: 0.2;
  width: 100%;
  height: 100%;
  top: 0;
  z-index: 10000;
}

.player_box .loader.dashjs {
  position: relative;
  margin: auto;
  background-image: none;
  border: 16px solid #f3f3f3; /* Light grey */
  border-top: 16px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 150px;
  height: 150px;
  animation: spin 2s linear infinite;
}

.player-navigator-obsolete {
  background-color: red;
  text-align: center;
  margin-bottom: 10px;
}

/* End Player */

/*
 * Dash JS
 */
.player-wrapper.dashjs:-webkit-full-screen {
  background-color: black;
  display: flex;
}

.player-wrapper.dashjs {
  position: relative;
  min-height: 0 !important;
}

.dashjs-watermark {
  z-index: 1049;
  text-align: center;
  font-weight: bold;
  pointer-events: none;
  width: 100%;
  height: 100%;
  display: grid;
}

.dashjs-proxy {
  outline: none;
  user-select: none;
}

video::-webkit-media-controls {
  display: none !important;
}
video::-moz-media-controls {
  display: none !important;
}
video::-o-media-controla {
  display: none !important;
}
video::-ms-media-controls {
  display: none !important;
}

.dashjs-watermark img {
  position: absolute;
  top: 0px;
  left: 0px;
}

.dashjs-watermark div {
  margin: auto;
}

/*
 * Video JS
 */
.vjs-watermark {
  z-index: 2000;
  font-size: 2.7em;
  text-align: center;
  padding-top: 80px;
  font-weight: bold;
  pointer-events: none;
  width: 640px;
}

.vjs-watermark:-webkit-full-screen {
  width: 100%;
  font-size: 5em;
}

.vjs-fullscreen .vjs-watermark {
  width: 100%;
  font-size: 5em;
}

.gecko .vjs-fullscreen .vjs-watermark {
  padding-top: 200px;
}

.webkit .vjs-fullscreen .vjs-watermark {
  padding-top: unset;
  position: absolute;
  top: 200px;
}

.vjs-watermark img {
  display: none;
}

.vjs-audio-button {
  display: none;
}

.vjs-control-bar .vjs-picture-in-picture-control {
  display: none;
}
.vjs-audio-button {
  display: block !important;
}
.vjs-audio-button.vjs-hidden {
  display: none !important;
}

#captionBtn,
#nextStep,
#prevStep,
#trackSwitchBtn {
  margin-top: -1px;
}

#photogramBtn {
  margin-top: 1px;
}

#gotoTCBtn,
#searchBtn {
  margin-top: -3px;
}


.player-group {
  padding-right: 30%;
}

.btn-extra {
  margin-top: 2px;
  float: right;
  color: white;
  padding: 9px 10px;
  cursor: pointer;
}

.btn-extra-separator {
  float: right;
  width: 16px;
  margin: 8px 0;
}

.btn-extra:active {
  color: grey;
}

.btn-extra:hover {
  opacity: 0.8;
}

.qc_error {
  color: orange;
  line-height: 16px;
}

.bookmark {
  line-height: 16px;
}

.tp-spinner {
  position: relative;
  margin: auto;
  width: 160px;
  animation: spin 3s linear infinite;
}

.tp-spinner-img {
  width: 160px;
  border-radius: 50%;
  content: url("/static/img/transperfect.e20d6333cd61.jpeg");
}

/* *************************************
  * Video Controller Cinema Mode
  ************************************* */

:root {
  --inline-font-size: 1vw;
  --inline-font-size-tiny: 1.8vw;
  --inline-font-size-normal: 1.8vw;
  --inline-font-size-huge: 20px;
  --inline-font-size-fullscreen: 1.3vw;
  --inline-ctrl-color: purple !important;
}

.video-controller-visible {
  visibility: visible;
  opacity: 1;
}

.video-controller-hidden {
  visibility: hidden;
  opacity: 0 !important;
  transition: visibility 0s 1s, opacity 1s linear;
}

@media (max-width: 900px) {
  .video-controller-inline {
    .volume-container:not(:hover) {
        width: 7% !important;
    }

    .volumebar {
      margin-top: 11px !important;
    }

    .volume-container:hover {
      width: 110px !important;
    }

    #videoTime {
      min-width: unset !important;
    }

    .controller-button {
      div svg {
        width: 4vw !important;
      }

      .btn-play-speed {
        min-width: unset !important;
        font-size: var(--inline-font-size-tiny) !important;
      }

      .time-display {
        font-size: var(--inline-font-size-tiny) !important;
      }

      .duration-display {
        font-size: var(--inline-font-size-tiny) !important;
      }
    }
  }
}

@media (min-width: 900px) and (max-width: 1200px) {
  .video-controller-inline {
    .volume-container:not(:hover) {
      width: 50px !important;
    }

    .controller-button {
      div svg {
        width: 3vw !important;
      }
      .btn-play-speed {
        font-size: var(--inline-font-size-normal) !important;
      }

      .time-display {
        font-size: var(--inline-font-size-normal) !important;
      }

      .duration-display {
        font-size: var(--inline-font-size-normal) !important;
      }
    }
  }
}

@media (min-width: 1920px) {
  .video-controller-inline {
    .volume-container:not(:hover) {
      width: 50px !important;
    }
    .controller-button {
      div svg {
        width: 40px !important;
      }

      .btn-play-speed {
        font-size: var(--inline-font-size-huge) !important;
      }

      .time-display {
        font-size: var(--inline-font-size-huge) !important;
      }

      .duration-display {
        font-size: var(--inline-font-size-huge) !important;
      }
    }
  }
}


.video-controller-inline {
  background-color: transparent !important;
  bottom: 5%;
  width: 100%;
  position: absolute;
  opacity: 1;
  overflow: visible !important;

  .seekContainer {
    padding: 6px 20px;
    margin-top: -20px;
    height: 1.5vw;
    .seekbar {
      height: 0.4vw;
      border-radius: 10px;
    }
    .seekbar-buffer {
      /* fix white halo on seekbar left border */
      left: 1px;
    }
    .seekbar-play {
      background-color: var(--inline-ctrl-color);
    }
  }

  .unified-menu {
    bottom: 60px;
  }

  .controller-button {
    div svg {
      width: 2vw;
    }

    .btn-play-pause svg {
      display: none;
    }

    .btn-play-pause.play .play {
      display: block;
    }

    .btn-play-pause.pause .pause {
      display: block
    }

    .btn-fullscreen svg {
      display: none;
    }

    .btn-fullscreen.exit .exit {
      display: block;
    }

    .btn-fullscreen.enter .enter {
      display: block
    }

    .btn-mute svg {
      display: none;
    }

    .btn-mute.mute .mute {
      display: block;
    }

    .btn-mute.low .low {
      display: block
    }

    .btn-mute.medium .medium {
      display: block
    }

    .btn-mute.high .high {
      display: block
    }

    .btn-play-speed {
      font-size: var(--inline-font-size);
    }

    .time-display {
      font-size: var(--inline-font-size);
    }

    .duration-display {
      font-size: var(--inline-font-size);
    }

    .volumebar {
      margin-top: 17px;
    }

    .volume-container:hover {
      width: 150px;
    }

    .volume-container:not(:hover) {
      width: 50px;
    }
  }

  .controller-icon-layout-button {
    font-size: inherit;
  }

  .controller-icon-layout-button {
    padding: 9px 10px !important;
  }

  input[type='range']::-moz-range-track {
    color: var(--inline-ctrl-color);
  }

  input[type='range']#volumebar.volumebar::-webkit-slider-thumb {
    background-color: var(--inline-ctrl-color);
  }

  input[type='range']#volumebar.volumebar::-moz-range-thumb {
    background-color: var(--inline-ctrl-color);
  }
}

.fullscreen {
  .controller-button {
    position: fixed;
    height: 200px;
    bottom: -100px;
    width: 100%;
  }

  .video-controller-inline {
    .unified-menu {
      bottom: 130px !important;
    }

    .thumbnail-container {
      bottom: 130px !important;
      position: fixed;
    }

    .seekContainer {
      position: fixed;
      bottom: 100px !important;
    }

    .controller-button {
      .btn-play-speed {
        font-size: var(--inline-font-size-fullscreen);
      }

      .time-display {
        font-size: var(--inline-font-size-fullscreen);
      }

      .duration-display {
        font-size: var(--inline-font-size-fullscreen);
      }
    }
  }
}

.audio-only .video-controller-inline {
  bottom: 20px;
}


