/* Combined video + checkpoint-question widget.
   Player controls mirror the standalone video block, scoped to .jgt-video-quiz.
   Answer options reuse the quiz styles (.jgt-quiz-opts) enqueued alongside. */

.jgt-video-quiz { box-sizing: border-box; max-width: 100%; margin: 20px 0; }

.jgt-video-quiz .jgt-video-shell {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
.jgt-video-quiz .jgt-video-el {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  background: #000;
  object-fit: contain;
}
.jgt-video-quiz.jgt-done .jgt-video-shell { box-shadow: 0 0 0 2px #2f9172; }

/* Control bar */
.jgt-video-quiz .jgt-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #10233f;
  color: #eaf1ff;
  font: 13px/1 system-ui, sans-serif;
}
.jgt-video-quiz .jgt-play {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  border: 0; border-radius: 50%;
  background: #3a5a8c;
  cursor: pointer;
}
.jgt-video-quiz .jgt-play:hover { background: #4a6fa8; }
.jgt-video-quiz .jgt-play:disabled { opacity: .5; cursor: not-allowed; }
.jgt-video-quiz .jgt-play::before {
  content: "";
  display: block;
  width: 0; height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.jgt-video-quiz .jgt-play.is-playing::before {
  width: 12px; height: 13px;
  border: 0;
  margin-left: 0;
  background:
    linear-gradient(#fff, #fff) left  / 4px 100% no-repeat,
    linear-gradient(#fff, #fff) right / 4px 100% no-repeat;
}
.jgt-video-quiz .jgt-progress {
  flex: 1 1 auto;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}
.jgt-video-quiz .jgt-progress-fill {
  width: 0; height: 100%;
  border-radius: 3px;
  background: #4a6fa8;
  transition: width .15s linear;
}
.jgt-video-quiz .jgt-time { flex: 0 0 auto; font-variant-numeric: tabular-nums; opacity: .85; }
.jgt-video-quiz .jgt-speed { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.jgt-video-quiz .jgt-speed-sel {
  background: #0f1f38; color: #eaf1ff;
  border: 1px solid #3a5a8c; border-radius: 4px;
  padding: 2px 4px; font: 12px/1 system-ui, sans-serif;
}
.jgt-video-quiz .jgt-cc {
  flex: 0 0 auto;
  border: 1px solid #3a5a8c; border-radius: 4px;
  background: transparent; color: #eaf1ff;
  padding: 3px 7px; cursor: pointer; font: 600 12px/1 system-ui, sans-serif;
}
.jgt-video-quiz .jgt-cc--on { background: #3a5a8c; }

/* Checkpoint question panel (appears below the video while blocked) */
.jgt-vq-question {
  box-sizing: border-box;
  margin: 14px 0 0;
  padding: 16px 18px;
  border: 1px solid #b08900;
  border-left-width: 4px;
  border-radius: 10px;
  background: #1a1608;
  color: #eaf1ff;
  font: 15px/1.5 system-ui, sans-serif;
}
.jgt-vq-question .jgt-quiz-q { font-weight: 600; margin-bottom: 6px; }
.jgt-vq-question .jgt-quiz-hint { margin: 0 0 12px; font-size: 13px; opacity: .75; }

.jgt-vq-submit {
  appearance: none; border: 0; border-radius: 6px;
  padding: 9px 16px;
  background: #b08900; color: #1a1608;
  font: 600 14px/1 system-ui, sans-serif; cursor: pointer;
}
.jgt-vq-submit:hover { background: #cc9e00; }
.jgt-vq-submit:disabled { background: #2f9172; color: #fff; cursor: default; }

.jgt-vq-result { margin-top: 12px; font-weight: 600; }
.jgt-vq-result--good { color: #6fe0b8; }
.jgt-vq-result--warn { color: #f0c36d; font-weight: 500; }

/* While blocked, hint that the video is waiting on an answer. */
.jgt-video-quiz.jgt-vq-blocked .jgt-video-shell { box-shadow: 0 0 0 2px #b08900; }
