:root {
  --plyr-color-main: #82ba26;
}

/* Plyr Container Fixes */
.video-js.vjs-vertical {
  aspect-ratio: 9 / 16;
  width: 100%;
  height: 100%;
}

video:-webkit-full-screen,
video:-moz-full-screen,
video:-ms-fullscreen,
video:fullscreen {
  object-fit: contain; /* oder cover */
  aspect-ratio: 9 / 16;
  background: black;
}

.video-player-container.fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 10000 !important;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player-container.fullscreen video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.video-js {
  object-fit: contain;
  background-color: #000;
}

/* YouTube spezifische Fixes */
.plyr--youtube .plyr__video-wrapper {
  background-color: #000000;
}

.plyr--youtube .plyr__video-wrapper iframe {
  border-radius: inherit;
}

/* Lazy Loading Placeholder */
.video-placeholder {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  border-radius: inherit;
}

.video-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: inherit;
}

.video-placeholder .play-button {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.video-placeholder .play-button::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 18px solid #000;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

.video-placeholder:hover .play-button {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.video-slider-section {
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: transparent;
}

.video-slider-container {
  display: flex;
  will-change: transform;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  touch-action: pan-y;
}

.video-slide {
  flex: 1 1 50%;
  width: auto;
  box-sizing: border-box;
  padding: 0px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-content-area {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.video-info {
  text-align: left;
}

.video-info-heading {
  text-transform: uppercase;
  color: #ffffff;
  font-size: 42px;
  line-height: 1.1em;
}

.video-info-heading-main {
  font-weight: 300 !important;
  text-transform: uppercase;
  line-height: normal;
  color: #ffffff;
  font-size: 26px;
  margin: 0;
  padding: 0px;
}

.video-info-description {
  color: #ffffff;
  margin-bottom: 30px;
}

.video-player-container {
  min-width: 260px;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 16;
  background-color: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-player-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 991px) {
  .video-player-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

.video-info .slider-button {
  display: inline-block;
  padding: 6px 16px;
  background-color: #ffffff;
  color: #000000;
  text-decoration: none;
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 900;
  transition: 0.3s ease;
}

.video-info .slider-button:hover {
  background-color: #000000;
  color: #ffffff;
}

/* Mobile Ansicht */
@media (max-width: 991px) {
  .video-slide {
    padding: 30px 20px 50px;
    align-items: flex-start;
  }

  .slide-content-area {
    flex-direction: column;
    gap: 25px;
    max-width: 500px;
  }

  .video-info {
    flex-basis: auto;
    text-align: center;
    order: 2;
    width: 100%;
  }

  .video-player-container {
    flex-basis: auto;
    order: 1;
    width: 100%;
    max-width: 200px;
    min-width: 200px;
    margin-bottom: 0;
  }

  .video-info-heading-main {
    font-size: 26px !important;
    line-height: 1.2em !important;
    margin-bottom: 0 !important;
    font-weight: 900 !important;
  }

  .video-info h2.video-info-heading {
    font-size: 1.6em !important;
  }

  .video-info p {
    font-size: 1em;
  }
}

@media (max-width: 576px) {
  .video-slide {
    padding: 20px 15px 40px;
  }
  .slide-content-area {
    max-width: 100%;
  }
  .video-player-container {
    max-width: 250px;
  }
  .video-info h2 {
    font-size: 18px;
  }

  .video-info p {
    font-size: 16px;
    line-height: 24px;
  }
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffffff;
  color: black;
  border: none;
  padding: 2px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}
.slider-nav.prev {
  left: 20px;
}
.slider-nav.next {
  right: 20px;
}
.slider-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .slider-nav {
    display: none;
  }

  .slide-indicators {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    padding-top: 20px;
  }

  .indicator-dot {
    width: 20px;
    height: 5px;
    background-color: #ffffff50;
    cursor: pointer;
    outline: none;
    border: none;
    transition: background-color 0.3s ease;
  }

  .indicator-dot.active {
    background-color: #ffffff;
  }
}
