/*
 * 批次2测试页视频控件层
 * 引入顺序：请放在 node-ui-batch1.css 之后；仅增强测试页视频预览/灯箱。
 */

.ld-video-control-host {
  position: relative;
  overflow: hidden !important;
  isolation: isolate;
}

.video-node .video-tech-preview.ld-video-control-host,
.video-node .video-preview-card.ld-video-control-host,
#outputLightboxShell .ld-video-control-host,
#outputPreview.ld-video-control-host {
  background: radial-gradient(circle at 50% 18%, rgba(99, 102, 241, 0.18), rgba(10, 12, 24, 0.94) 42%, rgba(4, 6, 15, 0.98) 100%) !important;
  border-radius: 22px !important;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16), 0 18px 60px rgba(0, 0, 0, 0.32) !important;
}

.ld-video-control-host > video.video-tech-result-video,
.ld-video-control-host > video.generated-result-media,
.ld-video-control-host > #outputLightboxVideo {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  border-radius: inherit !important;
  background: rgba(3, 7, 18, 0.94) !important;
}

.ld-video-controls-batch2 {
  --ld-video-indigo: #6366f1;
  --ld-video-indigo-soft: rgba(99, 102, 241, 0.24);
  --ld-video-panel-bg: rgba(8, 11, 24, 0.76);
  --ld-video-panel-border: rgba(199, 210, 254, 0.22);
  --ld-video-text: rgba(248, 250, 252, 0.94);
  --ld-video-muted: rgba(203, 213, 225, 0.74);
  --ld-video-progress: 0%;
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 14;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, filter 160ms ease;
}

.ld-video-control-host:hover .ld-video-controls-batch2,
.ld-video-control-host:focus-within .ld-video-controls-batch2,
.ld-video-control-host.is-paused .ld-video-controls-batch2,
.ld-video-controls-batch2.is-scrubbing {
  opacity: 1;
  transform: translateY(0);
  filter: drop-shadow(0 0 18px rgba(99, 102, 241, 0.2));
}

.ld-video-batch2-panel {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto auto auto auto auto;
  align-items: center;
  gap: 8px;
  width: min(100%, 520px) !important;
  min-height: 42px !important;
  padding: 7px 9px;
  border: 1px solid var(--ld-video-panel-border) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), var(--ld-video-panel-bg)) !important;
  color: var(--ld-video-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 42px rgba(0, 0, 0, 0.34) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.18);
  backdrop-filter: blur(16px) saturate(1.18) !important;
  pointer-events: auto;
  user-select: none;
}

.ld-video-controls-batch2 button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px;
  padding: 0;
  border: 1px solid rgba(199, 210, 254, 0.16) !important;
  border-radius: 999px !important;
  background: rgba(30, 41, 59, 0.72) !important;
  color: rgba(248, 250, 252, 0.92) !important;
  font: 700 13px/1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.ld-video-controls-batch2 button:hover,
.ld-video-controls-batch2 button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(165, 180, 252, 0.5) !important;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.92), rgba(79, 70, 229, 0.88)) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px var(--ld-video-indigo-soft), 0 8px 22px rgba(79, 70, 229, 0.34) !important;
  outline: none;
}

.ld-video-controls-batch2 button:disabled {
  transform: none;
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none !important;
}

.ld-video-play {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.98), rgba(67, 56, 202, 0.96)) !important;
  border-color: rgba(199, 210, 254, 0.38) !important;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.32) !important;
}

.ld-video-seek {
  width: 100% !important;
  min-width: 80px;
  height: 6px !important;
  margin: 0;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #818cf8 var(--ld-video-progress, 0%), rgba(100, 116, 139, 0.46) var(--ld-video-progress, 0%)) !important;
  accent-color: var(--ld-video-indigo);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.ld-video-seek::-webkit-slider-thumb {
  width: 14px !important;
  height: 14px !important;
  border: 2px solid rgba(255, 255, 255, 0.96) !important;
  border-radius: 999px !important;
  background: #6366f1 !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18), 0 4px 12px rgba(0, 0, 0, 0.28) !important;
  appearance: none;
  -webkit-appearance: none;
}

.ld-video-seek::-moz-range-thumb {
  width: 14px !important;
  height: 14px !important;
  border: 2px solid rgba(255, 255, 255, 0.96) !important;
  border-radius: 999px !important;
  background: #6366f1 !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18), 0 4px 12px rgba(0, 0, 0, 0.28) !important;
}

.ld-video-time {
  min-width: 76px;
  color: var(--ld-video-muted) !important;
  font: 700 11px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: -0.02em !important;
  text-align: center;
  white-space: nowrap;
}

.ld-video-control-host.is-playing .ld-video-play {
  background: rgba(30, 41, 59, 0.78) !important;
  box-shadow: inset 0 0 0 1px rgba(199, 210, 254, 0.1) !important;
}

.ld-video-control-host.is-muted .ld-video-mute {
  color: #c7d2fe !important;
  background: rgba(67, 56, 202, 0.72) !important;
}

.video-result-thumb video {
  border-radius: 14px !important;
  object-fit: cover;
  background: rgba(2, 6, 23, 0.92) !important;
}

@media (max-width: 720px) {
  .ld-video-controls-batch2 {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .ld-video-batch2-panel {
    grid-template-columns: auto minmax(72px, 1fr) auto auto auto;
    gap: 6px;
    padding: 6px 7px;
  }

  .ld-video-time {
    display: none;
  }

  .ld-video-open,
  .ld-video-download {
    display: none;
  }
}

