html,
body {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: rgb(0, 0, 51);
  background: linear-gradient(
    25deg,
    rgba(0, 0, 51, 1) 0%,
    rgba(9, 9, 121, 1) 33%,
    rgba(211, 0, 0, 1) 100%
  );
  font-family: Helvetica, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
* {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.video-container {
  position: relative;
  width: 85%;
  max-width: 360px;
  aspect-ratio: 9/16;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  display: none;
}
.video-js {
  width: 100%;
  height: 100%;
  outline: none;
  -webkit-user-drag: none;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  background: transparent !important;
  border-radius: 10px;
}
.video-js .vjs-tech {
  object-fit: cover;
  background: transparent;
  border-radius: 10px;
}
.video-js .vjs-control-bar,
.video-js .vjs-big-play-button {
  display: none !important;
}
.control-button {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.control-button:hover {
  background: rgba(0, 0, 0, 0.3);
}
.control-button svg {
  width: 40px;
  height: 40px;
  fill: white;
}
.custom-play-button,
.custom-pause-button,
.replay-button {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.continue-button {
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  opacity: 0;
  background: rgb(50, 205, 50);
  transition: all 0.3s ease;
}
.continue-button:hover {
  background: rgba(50, 205, 50, 0.5);
}
.continue-button.show,
.replay-button.show {
  display: flex;
  opacity: 1;
}
/* Add pointer-events control to video element */
.video-js .vjs-tech {
  pointer-events: none; /* This prevents the video element from capturing clicks */
}

/* Update overlay to accept pointer events */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: auto; /* Change to auto to accept clicks */
}

/* Ensure buttons stay above overlay */
.control-button {
  z-index: 10;
}
