/* Globals */
/* Colors */
/* Z Indexes */
/* Font Styles */
/* Icons */
/* Base player container */
#newplayer {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Video container for VideoJS */
.new-player-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Container for THEOplayer */
.theoplayer-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* VideoJS element */
.video-js {
  width: 100% !important;
  height: 100% !important;
}

/* Hide default controls */
.video-js .vjs-control-bar {
  display: none !important;
}

.theoplayer-tizen .theo-bottom-control-bar,
.theoplayer-tizen .theo-top-control-bar {
  display: none !important;
}

/* Bottom overlay for controls */
.bottom-overlay {
  position: absolute;
  display: block;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 27%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
  z-index: 10 !important;
  animation: slideFromBottom 0.3s ease-in-out forwards;
}

@keyframes slideFromBottom {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Overlay headers */
.overlay-headers {
  padding-top: 2rem;
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.overlay-title {
  font-size: 38.4615384615px !important;
  color: #fff;
}

.overlay-subtitle {
  margin-top: 1rem;
  font-size: 23.0769230769px !important;
  color: #ddd;
}

/* Time display */
.time-container {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: end;
      justify-content: flex-end;
  -ms-flex-align: center;
      align-items: center;
  position: absolute;
  bottom: 10rem;
  right: 20px;
  padding: 5px 10px;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  z-index: 10;
}

.current-time {
  -ms-flex-order: 1;
      order: 1;
}

.remaining-time {
  -ms-flex-order: 2;
      order: 2;
}

/* Progress bar */
.progress-bar-container {
  position: absolute;
  bottom: 6rem;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: #444;
  border: 2px solid transparent;
  cursor: pointer !important;
  pointer-events: all;
  z-index: 1000 !important;
}

.progress-bar-container:focus,
.progress-bar:hover {
  outline: none;
  border: 2px solid #1B0407;
  box-shadow: 0 0 5px 2px rgba(255, 0, 13, 0.2);
  cursor: pointer;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #444;
  cursor: pointer;
  z-index: 9099 !important;
}

.progress-bar:focus,
.progress-bar:hover {
  filter: brightness(1.5);
}

.progress-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #e42d44;
  width: 0%;
  transition: width;
}

/* Video controls container */
.video-controls {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  height: 50px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
      justify-content: center;
  -ms-flex-align: center;
      align-items: center;
  gap: 30px;
  z-index: 9999 !important;
}

/* Control buttons */
.video-controls button {
  position: relative;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  outline: none;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: center;
      justify-content: center;
  -ms-flex-align: center;
      align-items: center;
  background-color: transparent;
  transition: transform 0.3s, filter 0.3s;
  text-align: center;
  z-index: 9999 !important;
  pointer-events: all !important;
}

.video-controls button img {
  width: 30px;
  height: 30px;
}

.video-controls button:hover,
.video-controls button:focus {
  filter: brightness(1.5);
  transform: scale(1.4);
  cursor: pointer;
}

/* Specific button styles */
.play-pause-button {
  width: 50px !important;
  height: 50px !important;
}

.back-button,
.forward-button {
  width: 30px !important;
  height: 30px !important;
  font-size: 20px !important;
}

/* Offline modal */
.modal-offline {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  -ms-flex-pack: center;
      justify-content: center;
  -ms-flex-align: center;
      align-items: center;
  color: white;
}

.modal-offline-modal-content {
  padding: 20px;
  background-color: #2B2B2B;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#closeModalBtn {
  margin-top: 20px;
  margin: 0 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #dc3545;
  color: white;
  border: 2px solid transparent !important;
}

#closeModalBtn:hover {
  border: 2px solid orange !important;
}