/* Piman & Videojs Player */
.player-container {
  text-align: -webkit-center;
}

.real-player {
  position: relative;
  display: grid;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
}
@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.real-player.audio-only .poster {
  background-color: initial;
}
.real-player.audio-only .poster-container.hide {
  display: flex !important;
  opacity: 1;
  pointer-events: none;
}
.real-player.audio-only .poster-container.hide .poster::before {
  opacity: 0;
  animation: none;
}
.real-player.audio-only .video-container {
  z-index: 2001;
}
.real-player.audio-only .video-container video {
  opacity: 0;
}
.real-player.audio-only .video-container .vjs-device-iphone video {
  opacity: 0.5;
}
.real-player .poster-container {
  grid-area: 1/1;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-self: start;
  justify-self: start;
  z-index: 14;
  opacity: 1;
  transition: opacity 1s ease-out;
  overflow: hidden;
}
.real-player .poster-container.hide {
  display: flex !important;
  opacity: 0;
  pointer-events: none;
  background: none;
  animation: none;
}
.real-player .poster {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  background-color: #1a1a1a;
  position: relative;
  overflow: hidden;
}
.real-player .poster::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(26, 26, 26, 0.4) 0%, rgba(60, 60, 60, 0.4) 50%, rgba(26, 26, 26, 0.4) 100%);
  background-size: 200% 100%;
  animation: skeleton-loading 3s ease-in-out infinite;
  z-index: 14;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}
.real-player .poster.loaded::before {
  opacity: 0;
  animation: none;
}
.real-player .fake-video-controller {
  width: 100%;
  height: 39px;
  flex-shrink: 0;
  background-color: transparent;
}
.real-player .poster-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}
.real-player .poster-img-blurred {
  filter: blur(40px);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
.real-player .vjs-tech {
  position: relative !important;
}
.real-player .video-container {
  grid-area: 1/1;
  position: relative;
  width: 100%;
  max-width: 100%;
}
.real-player .video-container video {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  z-index: 8;
}
.real-player .video-container .video-js {
  position: initial;
}

.video-controller {
  display: block;
  position: relative;
  background-color: #0f5781 !important;
  transform: translateY(0);
  transition: transform 0.3s ease-out;
}
.video-controller.hide {
  display: none;
}

/**
  Sliding in animation for video controller
**/
.sliding-in .video-controller {
  animation: slideDown 1s ease-out forwards;
  z-index: 8;
}
.sliding-in .video-controller.video-controller-inline {
  animation: none;
}
.sliding-in.isolated-window .video-controller {
  animation: none;
}
.sliding-in.audio-only .poster {
  background-color: #1a1a1a;
}
.sliding-in.audio-only .video-container {
  animation: backToFront 1s ease-out forwards;
  background-color: none !important;
}

@keyframes slideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
    z-index: 7;
  }
  99% {
    z-index: 7;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    z-index: 8;
  }
}
@keyframes backToFront {
  0% {
    z-index: auto;
  }
  99% {
    z-index: auto;
  }
  100% {
    z-index: 2001;
  }
}
/* For vjs only */
#pimanPlayer.pimanPlayer-dimensions {
  width: 100%;
  height: auto !important;
  outline: none;
}

.timecode {
  position: absolute;
  right: 3%;
  margin-top: 1%;
  color: yellow;
  font-size: 1vw;
  font-weight: 700;
  text-shadow: 1px 1px 5px black;
  z-index: 9;
  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%;
}

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

.detached-player .loader,
.floatting-player .loader {
  width: 13em !important;
  height: 13em !important;
}

.floatting-player .video-container {
  box-shadow: rgba(0, 0, 0, 0.8) 0px 3px 8px;
}

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

.loader.dashjs {
  position: relative;
  margin: auto;
  background-image: none;
  border: 16px solid #f3f3f3;
  border-top: 16px solid #3498db;
  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
 */
.video-container.dashjs:-webkit-full-screen {
  background-color: black;
  display: flex;
}

.video-container.dashjs {
  position: relative;
  min-height: 0 !important;
}

.player-watermark {
  z-index: 9;
  position: absolute;
  width: 100%;
  height: 100%;
  font-weight: bold;
  pointer-events: none;
  top: 0px;
  left: 0px;
  display: grid;
}
.player-watermark.huge div, .player-watermark.standard div {
  opacity: 0.5;
}
.player-watermark.discreet div, .player-watermark.tiny div {
  opacity: 0.25;
}
.player-watermark img {
  position: absolute;
  top: 0px;
  left: 0px;
  opacity: 0.5;
}
.player-watermark div {
  position: relative;
  height: 60%;
  top: 0px;
  left: 0px;
  margin: auto;
  color: #ddd;
}

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

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

/*
 * Video JS
 */
.video-js .timecode {
  top: 0px;
}
.video-js {
  font-size: 14px !important;
  font-family: initial !important;
}

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

.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;
}

.btn-extra {
  float: right;
  color: white;
  cursor: pointer;
}
.btn-extra i {
  font-size: 20px;
}

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

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

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

.extra-controller {
  overflow: overlay;
  justify-self: center;
  display: inline-flex;
}

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

.bookmark {
  line-height: 16px;
}

.volume-container-proxy {
  display: flex;
  overflow: hidden;
  float: right;
  flex-direction: row-reverse;
}

.volume-container-proxy .volume-bar {
  float: right;
  width: auto !important;
}

.big-play-button {
  display: flex;
  position: absolute;
  color: white;
  top: 0px;
  right: 0px;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}
.big-play-button div {
  font-size: min(12vw, 120px);
}

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

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

.unified-menu-tabs {
  background: linear-gradient(135deg, #0f5781 0%, rgba(70, 90, 120, 0.6) 100%) !important;
}

/***************************************
  * Video Controller Inline Mode (Cinema Mode)
  ************************************* */
.poster-container.controller-inline .fake-video-controller {
  height: 0px;
}

.video-controller-inline .extra-controller-container {
  display: flow;
  width: 60%;
}

.volume-container input[type=range].volume-bar::-moz-range-track, .video-controller-inline input[type=range].volume-bar::-moz-range-track {
  color: rgba(181, 0, 105, 0.8);
}
.volume-container input[type=range].volume-bar::-webkit-slider-thumb, .video-controller-inline input[type=range].volume-bar::-webkit-slider-thumb {
  background-color: rgba(181, 0, 105, 0.8);
}
.volume-container input[type=range].volume-bar::-moz-range-thumb, .video-controller-inline input[type=range].volume-bar::-moz-range-thumb {
  background-color: rgba(181, 0, 105, 0.8);
}
.volume-container input[type=range].volume-bar::-moz-range-thumb, .video-controller-inline input[type=range].volume-bar::-moz-range-thumb {
  background-color: rgba(181, 0, 105, 0.8);
}

.video-controller.video-controller-inline {
  background-color: transparent !important;
  bottom: 0;
  width: 100%;
  position: absolute;
  opacity: 1;
  overflow: visible !important;
  line-height: inherit;
  height: 62px;
  overflow: visible;
  z-index: 8;
}
.video-controller.video-controller-inline .player-group .btn-extra i {
  display: block;
  font-size: 24px;
}
.video-controller.video-controller-inline .duration-display {
  float: left;
  cursor: pointer;
  color: grey;
}
.video-controller.video-controller-inline .extra-controller {
  float: right;
  font-size: 26px;
  margin-top: -2px;
}
.video-controller.video-controller-inline .controller-button {
  /* font-size: 1.3vw; */
  font-size: 18px;
}
.video-controller.video-controller-inline .time-container {
  display: flex;
}
.video-controller.video-controller-inline .seek-container {
  position: absolute;
  bottom: 70px !important;
  padding: 6px 10px;
  margin-top: -20px;
  height: 12px;
}
.video-controller.video-controller-inline .seek-container .seekbar {
  height: 7px;
  border-radius: 10px;
}
.video-controller.video-controller-inline .seek-container .seekbar-buffer {
  /* fix white halo on seekbar left border */
  left: 1px;
}
.video-controller.video-controller-inline .seek-container .seekbar-play {
  background-color: rgba(181, 0, 105, 0.8);
}
.video-controller.video-controller-inline .unified-menu {
  bottom: 80px;
}
.video-controller.video-controller-inline .controller-button div svg {
  width: 1.6em;
}
.video-controller.video-controller-inline .controller-button .btn-play-pause svg {
  display: none;
}
.video-controller.video-controller-inline .controller-button .btn-play-pause.play .play {
  display: block;
}
.video-controller.video-controller-inline .controller-button .btn-play-pause.pause .pause {
  display: block;
}
.video-controller.video-controller-inline .controller-button .btn-fullscreen svg {
  display: none;
}
.video-controller.video-controller-inline .controller-button .btn-fullscreen.exit .exit {
  display: block;
}
.video-controller.video-controller-inline .controller-button .btn-fullscreen.enter .enter {
  display: block;
}
.video-controller.video-controller-inline .controller-button .btn-mute svg {
  display: none;
}
.video-controller.video-controller-inline .controller-button .btn-mute.mute .mute {
  display: block;
}
.video-controller.video-controller-inline .controller-button .btn-mute.low .low {
  display: block;
}
.video-controller.video-controller-inline .controller-button .btn-mute.medium .medium {
  display: block;
}
.video-controller.video-controller-inline .controller-button .btn-mute.high .high {
  display: block;
}
.video-controller.video-controller-inline .controller-button .btn-mute {
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 2;
}
.video-controller.video-controller-inline .controller-button .btn-mute:hover + .volume-bar {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.video-controller.video-controller-inline .controller-button .volume-bar:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.video-controller.video-controller-inline .controller-button .btn-mute::after {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  width: 5px;
  height: 100%;
  background: transparent;
  z-index: 3;
}

.isolated-window .fake-video-controller {
  background-color: #1a1a1a;
}

.time-container {
  overflow: hidden;
  display: inline;
}

/*****************************************
  * Video Controller Fullscreen Mode
  ************************************* */
.fullscreen .controller-button {
  position: fixed;
  height: 200px;
  bottom: -140px;
  width: 100%;
}
.fullscreen .ambient-container {
  display: none;
}
.fullscreen .video-controller-inline:hover,
.fullscreen .video-controller-inline:focus-within {
  visibility: visible !important;
  opacity: 1 !important;
  transition: none !important;
}
.fullscreen .seek-container {
  position: fixed;
}
.fullscreen .video-controller-inline .unified-menu {
  bottom: 90px !important;
}
.fullscreen .video-controller-inline .thumbnail-container {
  bottom: 90px !important;
  position: fixed;
}
.fullscreen .video-controller-inline .seek-container {
  bottom: 70px !important;
}