body { background: #fff; color: #222; }
#main { padding-bottom: 40px; }
h3 { margin-top: 36px; }
.title { margin-top: 32px; line-height: 1.35; font-size: clamp(20px, 2.9vw, 30px); }
.authors { font-size: 18px; margin-bottom: 4px; }
.authors li { padding: 0 12px; }
.affil { margin: 0; color: #444; }
.links { margin-top: 18px; }
.links h4 { margin: 6px 0 0; }
.links img, .links .icon { display: block; height: 60px; width: auto; margin: 0 auto; }
.caption { color: #444; margin-top: 10px; }

/* Teaser: three panels at one height (flex-grow = width/height of each image) */
.teaser { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; }
.teaser figure { margin: 0; min-width: 0; }
.teaser img { width: 100%; height: auto; display: block; }
.teaser figcaption { text-align: center; font-size: 13px; color: #444; margin-top: 4px; }

video.full { width: 100%; display: block; background: #000; }

/* Results: scene picker + three portrait videos */
.scene-picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.scene-picker button {
    border: 2px solid transparent; border-radius: 6px; padding: 0; background: none; cursor: pointer;
    width: 64px; text-align: center; font-size: 11px; color: #444; line-height: 1.2;
}
.scene-picker button img { width: 100%; height: 72px; object-fit: cover; border-radius: 4px; display: block; margin-bottom: 2px; }
.scene-picker button.active { border-color: #337ab7; color: #000; font-weight: bold; }
.scene-picker button:focus-visible { outline: 2px solid #337ab7; outline-offset: 2px; }
.scene-videos { display: flex; gap: 8px; align-items: flex-end; max-width: 860px; margin: 0 auto; }
.scene-videos figure { flex: 1 1 0; margin: 0; min-width: 0; }
.scene-videos video { width: 100%; height: auto; display: block; background: #eee; }
.scene-videos figcaption { text-align: center; font-size: 13px; color: #444; margin-top: 4px; }

.results-table { font-size: 13px; margin-top: 14px; margin-bottom: 0; }
.results-table th, .results-table td { text-align: center; white-space: nowrap; }
.results-table th:first-child, .results-table td:first-child { text-align: left; }
.results-table th.group { border-bottom: 1px solid #ccc; }
.results-table tr.ours { background: #f2f7fc; }

.teaser-img { margin-top: 28px; }

/* Rollout clips (alone | steered, already side by side inside each clip) */
.rollouts { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.rollouts figure { margin: 0; }
.rollouts video { width: 100%; height: auto; display: block; background: #0d1117; }
.rollouts figcaption { font-size: 14px; color: #444; margin-top: 6px; }

/* Real robot 2x2 */
.real-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; margin-top: 12px; }
.real-head { text-align: center; font-weight: bold; }
.real-task { grid-column: 1 / -1; text-align: center; font-weight: bold; margin-top: 6px; }
.real-grid figure { margin: 0; position: relative; border: 2px solid; }
.real-grid figure.fail { border-color: #a31515; }
.real-grid figure.ok { border-color: #2e7d32; }
.real-grid figure img { width: 100%; height: auto; display: block; }
.real-grid figure span { position: absolute; top: 0; left: 0; color: #fff; font-size: 13px; padding: 0 6px; }
.real-grid figure.fail span { background: #a31515; }
.real-grid figure.ok span { background: #2e7d32; }

.results-table tr.block td { text-align: left; color: #555; background: #fafafa; }
.results-table td.sub { padding-left: 18px !important; }
.narrow-table { max-width: 520px; margin-left: auto; margin-right: auto; }

.bibtex { font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.footer { margin-top: 30px; }

@media (max-width: 767px) {
    .links { display: flex; }
    .links > li { flex: 1 1 0; }
    .links img, .links .icon { height: 44px; }
    .links h4 { font-size: 15px; }
}

@media (max-width: 600px) {
    .text-justify { text-align: left; }
    .teaser { flex-direction: column; align-items: stretch; }
    .teaser figure { flex: none !important; }
    .scene-videos figcaption { font-size: 11px; }
    .authors { font-size: 16px; }
}
