/* VIDEO WRAPPER */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: 16px;
}

/* IFRAME */
.video-iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;

  /* IMPORTANT */
  pointer-events: none;
}

/* TOP LEFT CONTROLS */
.video-custom-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 8px;

  opacity: 1;
  transition: opacity 0.3s ease;
}

/* CENTRE PLAY/PAUSE BUTTON */
.video-play-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  z-index: 9999;

  width: 90px;
  height: 90px;
  min-width: 90px;

  padding: 0;
  border-radius: 50%;

  opacity: 1;
  transition:
    opacity 0.3s ease,
    transform 0.2s ease;
}

/* HIDE TEXT */
.video-play-toggle span {
  display: none;
}

/* FULLSCREEN BUTTON */
.video-fullscreen-toggle {
  position: absolute;
  bottom: 16px;
  right: 16px;

  z-index: 9999;

  opacity: 1;
  transition: opacity 0.3s ease;
}

/* TIMER */
.video-time-display {
  position: absolute;
  bottom: 22px;
  left: 80px;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  min-width: 92px;
  max-width: calc(100% - 44px);
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
  backdrop-filter: blur(6px);
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ALL BUTTONS */
.video-toggle,
.video-play-toggle,
.video-fullscreen-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  background: rgba(0,0,0,0.75);
  color: #fff;

  border: 0;
  border-radius: 999px;

  min-width: 42px;
  height: 42px;

  padding: 10px 14px;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  backdrop-filter: blur(6px);
}

/* PLAY BUTTON SIZE */
.video-play-toggle {
  width: 90px;
  height: 90px;
  min-width: 90px;
  padding: 0;
}

/* HOVER */
.video-toggle:hover,
.video-play-toggle:hover,
.video-fullscreen-toggle:hover {
  background: rgba(0,0,0,0.9);
}

/* ICONS */
.video-toggle i,
.video-play-toggle i,
.video-fullscreen-toggle i {
  pointer-events: none;
}

/* LARGE PLAY ICON */
.video-play-toggle i {
  font-size: 34px;
}

/* HIDE CONTROLS */
.video-wrapper.hide-controls .video-custom-controls,
.video-wrapper.hide-controls .video-play-toggle,
.video-wrapper.hide-controls .video-fullscreen-toggle,
.video-wrapper.hide-controls .video-time-display {
  opacity: 0;
  pointer-events: none;
}

/* NOTE BOX */
.video-note-box {
  margin: 18px 0;
  padding: 18px 22px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    #fff8e7 0%,
    #fff4d1 100%
  );
  border: 1px solid #f0c04a;
  box-shadow1:
    0 8px 24px rgba(0,0,0,0.08),
    0 2px 6px rgba(0,0,0,0.04);

  font-size: 15px;
  line-height: 1.6;

  color: #4d3b00;
}

.video-note-box strong {
  display: inline-block;
  margin-right: 6px;

  color: #9a6700;
  font-size: 16px;
}

.ld-lesson-topic-list {display: none;}

.video-wrapper {
  background: #fff;
}



/* Prevent video block interaction inside Gutenberg editor */
.editor-styles-wrapper .vimeo-video-block,
.editor-styles-wrapper .video-wrapper,
.editor-styles-wrapper .video-iframe,
.editor-styles-wrapper .video-toggle,
.editor-styles-wrapper .video-play-toggle,
.editor-styles-wrapper .video-fullscreen-toggle,
.editor-styles-wrapper .video-time-display {
  pointer-events: none !important;
}

/* Keep editor preview visually visible */
.editor-styles-wrapper .video-wrapper.hide-controls .video-custom-controls,
.editor-styles-wrapper .video-wrapper.hide-controls .video-play-toggle,
.editor-styles-wrapper .video-wrapper.hide-controls .video-fullscreen-toggle,
.editor-styles-wrapper .video-wrapper.hide-controls .video-time-display {
  opacity: 1 !important;
}





/* Show timeline when video is unlocked */
.vimeo-video-block.is-video-unlocked .video-progress-wrap {
  display: block !important;
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 58px;
  z-index: 99999;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Keep unlocked timeline visible even when controls auto-hide */
.vimeo-video-block.is-video-unlocked .video-wrapper.hide-controls .video-progress-wrap {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Hide timeline only when locked */
.vimeo-video-block.is-video-locked .video-progress-wrap {
  display: none !important;
}

/* Timeline input */
.vimeo-video-block.is-video-unlocked .video-progress {
  display: block !important;
  width: 100%;
  pointer-events: auto !important;
  cursor: pointer;
}


