.sample-panels video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #101b2a;
}

.depth-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 20px;
}
.depth-baseline { min-width: 0; }
.depth-baseline > h4 { margin: 0 0 10px; font-size: 17px; }
.depth-video-stack { display: grid; gap: 16px; }

.rgbd-card {
  min-width: 0;
  margin: 0;
}


.rgbd-player {
  overflow: hidden;
  border: 1px solid #304357;
  border-radius: 12px;
  background: #101b2a;
  color: #f2f6fc;
}

.rgbd-stage {
  --split: 50%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #111b28;
}

.rgbd-stage canvas { display: block; width: 100%; height: 100%; }
.rgbd-card video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.rgbd-label {
  position: absolute;
  top: 8px;
  max-width: calc(50% - 12px);
  padding: 4px 6px;
  border-radius: 5px;
  background: #0c1829e8;
  font-size: clamp(9px, .9vw, 12px);
  line-height: 1.25;
  pointer-events: none;
}
.rgbd-label:first-of-type { left: 8px; }
.rgbd-label:nth-of-type(2) { right: 8px; text-align: right; }

.rgbd-divider {
  position: absolute;
  inset-block: 0;
  left: var(--split);
  width: 2px;
  transform: translateX(-50%);
  background: #fff;
  pointer-events: none;
}

.rgbd-handle {
  position: absolute;
  top: 50%;
  left: clamp(15px, var(--split), calc(100% - 15px));
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid #b9c7d6;
  border-radius: 50%;
  background: #132438e8;
  color: white;
  pointer-events: none;
}

.rgbd-stage input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.rgbd-stage:has(input:focus-visible) { box-shadow: inset 0 0 0 3px #8cb3fc; }
.rgbd-stage:has(input:focus-visible) .rgbd-handle { outline: 3px solid #8cb3fc; }

.rgbd-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 4px 8px;
  background: #101b2a;
}
.rgbd-controls button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.rgbd-controls button[hidden] { display: none; }
.rgbd-controls button:hover { background: #29405b; }
.rgbd-controls button:focus-visible { outline: 2px solid #8cb3fc; }
.rgbd-controls svg { width: 17px; height: 17px; }
.rgbd-play[data-playing="true"] .rgbd-play-icon, .rgbd-play[data-playing="false"] .rgbd-pause-icon { display: none; }
.rgbd-seek { flex: 1; min-width: 24px; margin: 0; accent-color: #b8d3ff; }
.rgbd-controls output { font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rgbd-card:fullscreen { display: grid; place-items: center; background: #101b2a; }
.rgbd-card:fullscreen .rgbd-player { width: min(100vw, calc((100vh - 54px) * 4 / 3)); }

@media (max-width: 1060px) {
  .depth-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .depth-video-grid { grid-template-columns: minmax(0, 1fr); }
}

#comparison .sample-panels { gap: 12px; }
#comparison .scene-panels > video { scroll-snap-align: start; }
