/* ── Fill the content area fully ── */
.vc-widget {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 1.5em 0;
}

/* Expand Sphinx RTD content area when widget is present */
.wy-nav-content:has(.vc-widget) {
  max-width: none;
}

/* ── Master controls ── */
.vc-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 12px;
}

.vc-controls button {
  background: #2980B9;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.85em;
  white-space: nowrap;
}
.vc-controls button:hover { background: #2471a3; }

.vc-controls .vc-btn-secondary { background: #7f8c8d; }
.vc-controls .vc-btn-secondary:hover { background: #6c7a7b; }

.vc-timeline {
  flex: 1;
  margin: 0;
  accent-color: #2980B9;
}

.vc-time-display {
  font-size: 0.8em;
  color: #555;
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  text-align: right;
}

/* ── Video strip: reference + comparison slots, all same height ── */
.vc-strip {
  display: flex;
  gap: 6px;
  align-items: stretch;
  margin-bottom: 12px;
}

/* Each video column (reference or comparison) */
.vc-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.vc-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  min-height: 28px;
}

.vc-col-title {
  font-weight: 600;
  font-size: 0.85em;
  color: #333;
}

.vc-col-remove {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 1.1em;
  line-height: 1;
  padding: 0 4px;
}
.vc-col-remove:hover { color: #e44; }

/* Slider area between header and video */
.vc-sliders {
  padding: 6px 8px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-top: none;
  border-bottom: none;
}

.vc-slider-group { margin-bottom: 4px; }
.vc-slider-group:last-child { margin-bottom: 0; }

.vc-slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75em;
  color: #555;
  margin-bottom: 1px;
}

.vc-slider-label .vc-slider-value {
  font-weight: 600;
  color: #2980B9;
}

.vc-slider-axis-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65em;
  color: #999;
}

.vc-slider-group input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: #2980B9;
}

/* Video wrapper — fills remaining column height */
.vc-video-wrap {
  flex: 1;
  position: relative;
  background: #000;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.vc-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.vc-video-label {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.7em;
  padding: 2px 8px;
  border-radius: 3px;
  pointer-events: none;
}

.vc-no-video {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 200px;
  color: #999;
  font-size: 0.85em;
  background: #1a1a1a;
}

/* Reference column styling */
.vc-col.vc-ref .vc-col-header {
  background: #eaf2f8;
  border-color: #aed6f1;
}
.vc-col.vc-ref .vc-video-wrap {
  border-color: #aed6f1;
}

/* Add-slot button */
.vc-add-col {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  border: 2px dashed #ccc;
  border-radius: 6px;
  cursor: pointer;
  color: #999;
  font-size: 1.8em;
  background: transparent;
  transition: border-color 0.2s, color 0.2s;
}
.vc-add-col:hover {
  border-color: #2980B9;
  color: #2980B9;
}
