#video-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
}

#video-container {
  background: #000;
  width: 100%;
  height: 100%;
}

#closeVideoButton {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10000;
}

#loader {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #555;
  width: 120px;
  height: 120px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-animation: spin 1s linear infinite; /* Safari */
  animation: spin 1s linear infinite;
  margin-left: -60px;
  margin-top: -60px;
}

/* Safari */
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

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

#myVideo {
  user-select: none;
  display: none;
}

#videoControls {
  position: absolute;
  top: 20px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10000;
  padding: 5px 10px;
}

#videoControls span {
  font-size: 32px;
  color: #ffffff;
  font-weight: bold;
}

/* skip button is wider rectangle */
#closeVideoIcon {
  width: 170px;
  height: 80px;
  cursor: pointer;
  padding: 5px;
}

#playPauseIcon {
  width: 80px;
  height: 80px;
  cursor: pointer;
  padding: 5px;
}


#videoControlsLeftUpper {
  position: absolute;
  top: 20px;
  left: 25px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 10000;
  padding: 5px 10px;
}

#videoControlsLeftUpper span {
  font-size: 32px;
  color: #ffffff;
  font-weight: bold;
}

#videoControlsLeftUpper img {
  width: 80px;
  height: 80px;
  cursor: pointer;
  padding: 5px;
}

#manualPlayButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 1001;
    display: none;
}

#manualPlayImage {
    width: 80px; 
    height: 80px; 
    transition: transform 0.2s ease-in-out;
}

#manualPlayButton:hover #manualPlayImage {
    transform: scale(1.1); 
}
