/* Supplementary video page. Layout follows the example CVPR supplementary page (Bulma, heading panels,
   white example cards); everything is local so the page works offline. */
html, body { margin: 0; padding: 0; overflow-x: hidden; background: #fafbfc; }
body { font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #222; }
.hero { background-color: #f5f5f5; padding: 1rem 0; }
.publication-title { font-weight: 500; }
.site-content { width: 90%; max-width: 1400px; margin: 0 auto; }
.section { padding: 1.5rem 0.5rem; }
.columns { margin: 0 !important; }
.column { padding: 0.5rem; }

.intro { max-width: 860px; margin: 0 auto 0.9rem; color: #4a4a4a; line-height: 1.5; text-align: justify; hyphens: auto; }
.intro.note { text-align: center; font-size: 0.9rem; }

/* section navigation */
.section-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 0.75rem; }
.section-nav a { font-size: 0.85rem; padding: 0.25rem 0.8rem; border-radius: 999px; background: #fff;
  border: 1px solid rgba(50, 115, 220, 0.3); color: #1d4f91; }
.section-nav a:hover { background: #e8f0ff; }

/* cards and headings (from the example page) */
.example-container { margin-bottom: 2rem; background: #fff; border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); padding: 1rem; scroll-margin-top: 1rem; }
.section-heading-panel { background: linear-gradient(135deg, #e8f0ff, #f8fbff); border-radius: 10px;
  padding: 1rem 1.5rem; margin-bottom: 1rem; box-shadow: 0 6px 18px rgba(50, 115, 220, 0.15);
  border: 1px solid rgba(50, 115, 220, 0.2); text-align: center; }
.section-heading-panel .title { color: #1d4f91; letter-spacing: 0.04em; margin-bottom: 0.25rem; }
.section-heading-panel .subtitle { font-size: 0.95rem; color: #4a5a70; margin: 0.4rem 0 0 0 !important; }
.explanation-text { background: #f8f9fa; padding: 0.75rem 1rem; border-radius: 6px; font-size: 0.95rem;
  line-height: 1.45; margin-bottom: 0.75rem; }

/* videos */
.video-title { font-weight: 600; margin-bottom: 0.25rem; text-align: center; font-size: 0.9rem; }
.video-caption { font-size: 0.82rem; color: #555; text-align: center; margin-top: 0.15rem; line-height: 1.35; }
.video-box { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #000; border-radius: 4px;
  overflow: hidden; }
.video-box.wide { aspect-ratio: 16 / 9; }
.video-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.video-box .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #9aa4b2; font-size: 0.9rem; background: repeating-linear-gradient(45deg, #1d2229, #1d2229 10px, #232a32 10px,
  #232a32 20px); text-align: center; padding: 0.5rem; }
.row-label { font-weight: 600; color: #1d4f91; font-size: 1rem; display: flex; align-items: center;
  justify-content: center; text-align: center; }
.col-head { font-weight: 600; color: #1d4f91; text-align: center; font-size: 0.95rem; }

/* tabs (one example at a time) */
.tab-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-bottom: 0.9rem; }
.tab-strip button { font-family: inherit; border: 1px solid rgba(50, 115, 220, 0.35); background: #fff; color: #1d4f91; border-radius: 6px;
  padding: 0.35rem 0.9rem; font-size: 0.88rem; cursor: pointer; }
.tab-strip button.active { background: #3273dc; color: #fff; border-color: #3273dc; }
.explainer { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.explainer .facts { font-size: 0.95rem; line-height: 1.45; }
.explainer .facts h4 { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.5rem; color: #1d4f91; }
.explainer .one-line { margin: 0 0 0.9rem; font-size: 1rem; }
.fact-list { display: flex; flex-direction: column; gap: 0.4rem; }
.fact { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.4rem 0.7rem; background: #f4f7fb;
  border-radius: 6px; }
.fact-k { color: #4a5a70; }
.fact-v { font-weight: 600; text-align: right; }
@media (max-width: 900px) { .explainer { grid-template-columns: 1fr; } }

/* simulation carousel (after the example page: active example above, thumbnail strip with prev/next and dots) */
.sim-head { text-align: center; margin-bottom: 0.6rem; }
.sim-head h3 { font-size: 1.3rem; font-weight: 600; color: #1d4f91; margin: 0; }
.sim-head p { color: #4a5a70; margin: 0.15rem 0 0; }
.sim-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 1100px;
  margin: 0 auto 1rem; }
.carousel-nav { display: flex; align-items: center; gap: 0.85rem; }
.carousel-btn { flex: 0 0 auto; border: none; background: #3273dc; color: #fff; width: 44px; height: 44px;
  border-radius: 50%; font-size: 1.4rem; cursor: pointer; line-height: 1; }
.carousel-btn:hover { background: #2754a0; }
.thumb-track { flex: 1 1 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0.6rem; }
.thumb-card { border: 2px solid transparent; border-radius: 12px; padding: 0.3rem; background: #f7f9fc; cursor: pointer;
  display: flex; flex-direction: column; gap: 0.25rem; opacity: 0.7; font-family: inherit;
  transition: border-color 0.2s, transform 0.2s, opacity 0.2s; }
.thumb-card:hover { opacity: 0.9; }
.thumb-card.current { border-color: #00b4d8; box-shadow: 0 2px 10px rgba(0, 180, 216, 0.2); background: #fff;
  transform: translateY(-2px); opacity: 1; }
.thumb-img { width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #e9ecef; }
.thumb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-card span { display: block; width: 100%; font-size: 0.8rem; text-align: center; line-height: 1.2; color: #222; }
.carousel-dots { display: flex; justify-content: center; gap: 0.45rem; margin-top: 0.6rem; }
.carousel-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #3273dc; background: transparent;
  padding: 0; cursor: pointer; }
.carousel-dots button.is-active { background: #3273dc; }

/* cross-embodiment grid: equal 4:3 cells */
.ce-grid { display: grid; gap: 0.75rem 1rem; align-items: center; }
.ce-grid .col-head { padding-bottom: 0.2rem; }
@media (max-width: 768px) {
  .sim-pair { grid-template-columns: 1fr; }
  .ce-grid { grid-template-columns: 1fr !important; }
  .ce-grid > div:empty { display: none; }
  .carousel-btn { width: 36px; height: 36px; }
}

/* speed control */
.speed-control { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.85rem;
  color: #555; margin-top: 0.5rem; }
.footer { padding: 1.5rem; background: #f5f5f5; }

/* real robot: task tabs left, run buttons right; three video frames under one controller */
.rr-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem; margin-bottom: 0.9rem; }
.rr-bar .tab-strip { margin-bottom: 0; justify-content: flex-start; }
.rr-runs button { font-size: 0.78rem; padding: 0.25rem 0.7rem; }
.rr-runs button.fail { color: #b3261e; border-color: rgba(179, 38, 30, 0.4); }
.rr-runs button.fail.active { background: #b3261e; border-color: #b3261e; color: #fff; }
.rr-media { max-width: 1100px; margin: 0.8rem auto; }
.rr-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 6px; }
.rr-side { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.rr-frame { position: relative; background: #000; border-radius: 4px; overflow: hidden; min-height: 0; }
.rr-frame.rr-main { aspect-ratio: 640 / 448; }
.rr-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.rr-label { position: absolute; top: 6px; right: 6px; background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 0.72rem;
  font-weight: 600; padding: 0.1rem 0.45rem; border-radius: 3px; }
.rr-ctl { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.5rem; }
.rr-ctl button { border: none; background: #3273dc; color: #fff; width: 38px; height: 32px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; }
.rr-ctl input { flex: 1 1 auto; min-width: 0; }
.rr-ctl span { font-size: 0.85rem; color: #4a5a70; font-variant-numeric: tabular-nums; }
.rr-text p { margin: 0 0 0.35rem; }
.rr-text p:last-child { margin-bottom: 0; }

/* carousel item with a single video (cross-embodiment) */
.sim-pair.sim-single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
