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; }

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

/* OmniHMR additions */
.teaser-wide { margin-top: 28px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.results-table th.group { text-align: center; }
.renders { display: flex; gap: 4px; }
.renders figure { flex: 1 1 0; margin: 0; min-width: 0; }
.renders img { width: 100%; height: auto; display: block; }
.renders figcaption { text-align: center; font-size: 12px; color: #444; margin-top: 2px; }
.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; }
}
