/* HLS seekbar screenshot preview */
.vjs-hls-shot-preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999999;
  width: 4cm;
  height: 2.25cm; /* 16:9 */
  display: none;
  overflow: hidden;
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 7px;

  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(0, 0, 0, 0.45),
    0 6px 18px rgba(0, 0, 0, 0.45);

  pointer-events: none;
  box-sizing: border-box;
}

.vjs-hls-shot-preview.is-visible {
  display: block;
}

.vjs-hls-shot-preview video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.vjs-hls-shot-preview.vjs-hls-shot-loading video {
  opacity: 0.72;
}

.vjs-hls-shot-preview .vjs-hls-shot-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px 4px;
  font-size: 10px;
  line-height: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}

.vjs-hls-shot-preview.vjs-hls-shot-loading .vjs-hls-shot-status,
.vjs-hls-shot-preview.vjs-hls-shot-error .vjs-hls-shot-status {
  display: block;
}

/* TransAct R01: buffered seekbar hover preview, 2026-11-16.
   Old selectors are deliberately preserved for compatibility. */
.vjs-hls-shot-preview {
  width: 200px;
  height: 122px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 10px;
  background: #10151d;
  box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.35);
  pointer-events: none;
}
.vjs-hls-shot-preview video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border: 0 !important;
}
.vjs-hls-shot-preview .vjs-hls-shot-status {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 8px 6px;
  line-height: 16px;
  text-align: right;
  font: 600 12px/16px Arial, sans-serif;
  letter-spacing: .25px;
  text-shadow: 0 1px 2px #000;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  box-sizing: border-box;
}
.vjs-hls-shot-preview.vjs-hls-shot-loading video { opacity: .55; }
.vjs-hls-shot-preview.vjs-hls-shot-error .vjs-hls-shot-status { color: #ffc7c7; }
.vjs-hls-shot-preview.vjs-hls-shot-loading::after {
  content: '';
  position: absolute;
  left: calc(50% - 9px);
  top: calc(50% - 9px);
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: transact-hover-spin .8s linear infinite;
}
@keyframes transact-hover-spin { to { transform: rotate(360deg); } }
@media (max-width: 420px) {
  .vjs-hls-shot-preview { width: 156px; height: 98px; }
}
