body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #131418;
}

.video-container {
  aspect-ratio: 16 / 9;
  max-height: 100%;
  position: relative;
  color: #fff;
  overflow: hidden;
  background: rgb(25, 25, 25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.video-container video {
  max-width: 100%;
  max-height: 100%;
}

.custom-loader {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border-top: 5px solid transparent;
  border-right: 5px solid #ffffff;
  border-left: 5px solid #ffffff;
  border-bottom: 5px solid #ffffff;
  z-index: 9999;
  animation: rotation 2s infinite ease;
  -webkit-animation: rotation 2s infinite ease;
  display: none;
}

.player-state {
  display: flex;
  position: absolute;
  width: 100%;
  height: 100%;
  justify-content: space-around;
}

.player-state.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* Schwarzes halbtransparentes Overlay */	
}

.player-state > span {
  align-self: center;
}

.touchZoneL,
.touchZoneR {
  position: absolute;
  font-size: 13px;
  font-weight: 500;
  text-shadow: 0 0 2px rgba(0, 0, 0, .5);
  height: 100%;
}
.touchZoneL {
  left: 0;  
}
.touchZoneR {
  right: 0;  
}
.touchL,
.touchR {
  display: none;
  height: 100%;
  padding-top: 80%;
}
.touchL {	
	padding-left: 10%;
  background-image: linear-gradient(to left, transparent , rgba(0, 0, 0, 0.4));
}
.touchR {
	padding-right: 1.2rem;
	text-align: right;  
  background-image: linear-gradient(to right, transparent , rgba(0, 0, 0, 0.4));
}
.touchInfo {
  margin-top: 0.2rem;
  display: block;
}
.touchL .touchInfo {
  margin-left: 1.6rem
}
.touchR .touchInfo {
  margin-right: 1.2rem
}
.touchArrows {
  white-space: nowrap;
}
.touchArrows .arrow {
  width: 0;
  height: 0;
  padding: 0 0.2rem;
  border-style: solid;
  display: inline-block;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
}
.touchL .arrow {
  border-width: 8px 16px 8px 0;
  border-color: transparent #FFFFFF transparent transparent;
}
.touchR .arrow {
  border-width: 8px 0 8px 13px;
   border-color: transparent transparent transparent #FFFFFF;
}

.touchL .arrow:nth-child(3),
.touchR .arrow:nth-child(1) {
  -webkit-animation-name: arrow-fade-out-1;
  animation-name: arrow-fade-out-1;
}
.touchL .arrow:nth-child(2),
.touchR .arrow:nth-child(2) {
  -webkit-animation-name: arrow-fade-out-2;
  animation-name: arrow-fade-out-2;
}
.touchL .arrow:nth-child(1),
.touchR .arrow:nth-child(3) {
  -webkit-animation-name: arrow-fade-out-3;
  animation-name: arrow-fade-out-3;
}

@keyframes arrow-fade-out-1 {
  0% { opacity: 0; }
  17% { opacity: 0.9; }
  33% { opacity: 0.6; }
  50% { opacity: 0.3; }
  67%, 83% { opacity: 0.3; }
  100% { opacity: 0; }
}
@-webkit-keyframes arrow-fade-out-1 {
  0% { opacity: 0; }
  17% { opacity: 0.9; }
  33% { opacity: 0.6; }
  50% { opacity: 0.3; }
  67%, 83% { opacity: 0.3; }
  100% { opacity: 0; }
}

@keyframes arrow-fade-out-2 {
  0% { opacity: 0; }
  17% { opacity: 0.3; }
  33% { opacity: 0.9; }
  50% { opacity: 0.6; }
  67%, 83% { opacity: 0.3; }
  100% { opacity: 0; }
}
@-webkit-keyframes arrow-fade-out-2 {
  0% { opacity: 0; }
  17% { opacity: 0.3; }
  33% { opacity: 0.9; }
  50% { opacity: 0.6; }
  67%, 83% { opacity: 0.3; }
  100% { opacity: 0; }
}

@keyframes arrow-fade-out-3 {
  0% { opacity: 0; }
  17%, 33% { opacity: 0.3; }
  50% { opacity: 0.9; }
  67% { opacity: 0.6; }
  83% { opacity: 0.3; }
  100% { opacity: 0; }
}
@-webkit-keyframes arrow-fade-out-3 {
  0% { opacity: 0; }
  17%, 33% { opacity: 0.3; }
  50% { opacity: 0.9; }
  67% { opacity: 0.6; }
  83% { opacity: 0.3; }
  100% { opacity: 0; }
}



.state-btn {
  font-size: 2.3rem;
  width: 65px;
  height: 65px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgba(36, 36, 36, 0.667);
  z-index: 9999;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  user-select: none;
  transform: scale(0);
}

.state-forward,
.state-backward {
  font-size: 1.5rem;
}

.state-forward .forward-duration {
  margin-right: 0.5rem;
}
.state-backward .backward-duration {
  margin-left: 0.5rem;
}

.animate-state {
  /*animation: playPause 0.75s ease-in-out;*/
  animation-name: playPause;
  animation-duration: 0.75s;
  animation-timing-function: ease-in-out;  
}
@keyframes playPause {
  50% {opacity: 1; transform: scale(1.1);}
  100% {opacity: 0; transform: scale(1);}
}

.show-state {
  transform: scale(1);
  opacity: 1;
}

.show-controls {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

.controls {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 2rem 2rem 1.5rem 2rem;
  width: 100%;
  background: linear-gradient(to top, #000000b8 -100%, transparent);
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(40px);
  visibility: hidden;
  z-index: 99;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.duration {
  position: relative;
  width: 100%;
  height: 4px;
  background: #62626274;
  cursor: pointer;
  transition: all 0.2s;
}
 
.duration.bigger {
  height: 8px;
}

.duration .buffer {
  height: 100%;
  position: absolute;
  inset: 0;
  background-color: rgba(255,255,255,.4);
  z-index: 9;
  width: 0;
}

.hover-time {
  height: 100%;
  position: absolute;
  inset: 0;
  background: #ffffff9a;
  z-index: 99;
  display: flex;
  align-items: center;
  width: 0;
}

.hover-time .hover-duration {
  position: absolute;
  //right: calc((-25px / 2)); /* will nur beim Start*/
  right: -15px;
  top: -25px;
  background: #3c3c3ce6;
  padding: 0.2rem;
  border-radius: 5px;
  font-size: 0.7rem;
  visibility: hidden;
  font-weight: bold;
  opacity: 0;
  transform: scale(0);
}

.duration.hover .hover-time .hover-duration {
  visibility: visible;
  opacity: 1;
  transition: all 0.2s;
  transform: scale(1);
}
/*FÜR MOBILE*/
.duration.hovermobile .hover-time .hover-duration {
  visibility: visible;
  opacity: 1;
  /*transition: all 0.2s;
  transform: scale(1);*/

  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  right: unset;
  padding: 0.5rem 0.7rem;
  font-size: 1rem;
}


.duration .current-time {
  height: 100%;
  position: absolute;
  inset: 0;
  background: #E30C19;
  z-index: 999;
  display: flex;
  align-items: center;
  width: 0;
}
 
.current-time::before {
  content: "";
  position: absolute;
  right: calc((-25px / 2) + 6.5px);
  background: #E30C19;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  transition: all 0.2s;
  visibility: hidden;
  transform: scale(0);
}

.current-time.hover::before {
  visibility: visible;
  transform: scale(1);
}
/*FÜR MOBILE*/
.current-time.showonmobile::before {
  visibility: visible;
  transform: scale(1);
}

.btn-controls {
  padding-top: 1rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-con {
  display: flex;
  align-items: center;
}

.btn-con,
.btn-controls > span {
  cursor: pointer;
}

.play-pause {
  display: flex;
  margin-right: 0.5rem;
  padding-right: 1px
}

.control-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #33333372;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  box-sizing: border-box;
  position: relative;
  margin-right: 0.5rem;
}

.control-btn:last-child {
  margin-right: 0;
}

.control-btn:hover {
  border: 1px solid #3131315c;
}

.control-btn::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #2424246a;
  position: absolute;
  transition: all 0.1s;
  transform: scale(0);
}

.control-btn:active::before {
  transform: scale(1);
  border: 1px solid #3131315c;
}

.time-container {
  font-size: 13px;
  font-weight: 500;
  margin-left: 12px;
  text-shadow: 0 0 2px rgba(0,0,0,.5);
}

.volume {
  display: flex;
  align-items: center;
  cursor: default;
}

.mute-unmute {
  display: flex;
  cursor: pointer;
  margin-right: 1rem;
}

.max-vol {
  height: 3px;
  cursor: pointer;
  background: #ffffff6e;
  transition: all 0.1s;
  width: 0;
  visibility: hidden;
  transform: scaleX(0);
  transform-origin: left;
  display: flex;
  align-items: center;
}

.max-vol.show {
  width: 56px;
  visibility: visible;
  transform: scaleX(1);
}

.current-vol {
  position: absolute;
  inset: 0;
  width: 20%;
  height: 100%;
  background: #fff;
  display: flex;
  transition: none;
  align-items: center;
}

.current-vol::before {
  content: "";
  position: absolute;
  right: -5px;
  width: 14px;
  height: 14px;
  display: block;
  border-radius: 50%;
  background: #eee;
}

.setting-menu, 
.subtitle-menu {
  opacity: 0;
  visibility: hidden;
  list-style: none;
  padding-inline-start: 0;
  margin-block-start: 0;
  margin-block-end: 0;
  position: absolute;
  bottom: 4.5rem;
  transition: all 0.2s;
  background: rgba(28, 28, 28, 0.9);
  transform: scaleY(0);
  transform-origin: bottom;
  border-radius: 5px;
}

.setting-menu li, 
.subtitle-menu li {
  padding: 0.3rem 2rem;
  margin: 0.5rem;
  transition: all 0.2s;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
}

.option-active {
  background: #E30C19;
}

.setting-menu li:hover, 
.subtitle-menu li:hover {
  background: rgb(31, 31, 31);
}

.setting-btn, 
.subtitle-btn {
  display: flex;
}

.show-setting-menu,
.show-subtitle-menu {
  opacity: 1;
  transform: scaleY(1);
  visibility: visible;
}

.theater {
  width: 100% !important;
}

.theater-btn .theater-default,
.theater-btn .theater-active {
  display: flex;
}
.video-container.theater .theater-default {
  display: none;
}

.video-container:not(.theater) .theater-active {
  display: none;
}

.fullscreen {
  position: absolute !important;
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  background: #000 !important;
  align-items: center !important;
}

.right-controls {
  display: flex;
  align-items: center;
}

.right-controls span {
  cursor: pointer;
}

.full,
.contract {
  display: none;
}

.video-container:not(.fullscreen) .full {
  display: flex;
}

.video-container.fullscreen .contract {
  display: flex;
}


@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
