/* TRoPE project styles and responsive result layouts. */
* { box-sizing: border-box; }
body { font-family: 'Avenir Next Cyr', Avenir, sans-serif; }
button, input { font: inherit; }
button { border: 0; }
button:focus-visible, a:focus-visible, video:focus-visible { outline: 3px solid #0078d4; outline-offset: 4px; }
#main { padding-left: 16px; padding-right: 16px; }
#title { margin: 0 0 20px; line-height: 1.2; }
.x-title-large { display: block; font-size: 76px; line-height: 1.15; margin-bottom: 12px; }
.x-title-medium { display: block; font-size: 38px; line-height: 1.25; }
#authors { margin: 16px auto 20px; color: #666; }
#links { margin-bottom: 24px; }
#links a { box-sizing: content-box; background: linear-gradient(107.54deg, #0078d4 .39%, #8661c5 51.23%, #ff9349 100%); }
.resource-pending { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 132px; min-height: 38px; border-radius: 50px; background: #eeeef4; color: #707181; line-height: 1.2; font-size: 15px; }
.resource-pending small { display: block; font-size: 10px; margin-top: 2px; }
.resource-pending::before { display: none; }
.intro { text-align: center; max-width: 850px; margin: 0 auto; line-height: 1.6; }
#teaser { margin-top: 32px; }
#teaser-video { display: block; width: 100%; border-radius: 10px; background: #f5f5f5; aspect-ratio: 3.25; object-fit: contain; }
.results-note { line-height: 1.6; margin-bottom: 24px; }
.x-section-title { line-height: 1.3; }
.result-card { padding: 16px; margin: 8px 8px 20px; }
.case-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.case-title { margin: 0; font-size: 14px; font-family: 'Segoe Print', 'Avenir Next Cyr', sans-serif; font-weight: 600; }
.case-dataset { color: #888; font-size: 11px; }
.result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.result-column { min-width: 0; }
.result-column .x-label { display: flex; justify-content: center; width: 100%; margin: 0 0 6px; padding: 0 4px; opacity: .8; }
.result-column video { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #f5f5f5; border-radius: 8px; }
.result-column.is-ours .x-label { opacity: 1; }
.comparison-video { display: block; width: 100%; border-radius: 8px; aspect-ratio: 1280 / 356; background: #f5f5f5; object-fit: contain; }
.result-controls { display: flex; align-items: center; gap: 12px; padding-top: 12px; }
.play-toggle { min-width: 74px; height: 30px; padding: 0 14px; border-radius: 50px; color: white; background: #6567c9; cursor: pointer; font-size: 12px; }
.timeline { flex: 1; min-width: 0; accent-color: #6567c9; cursor: pointer; }
.time-label { font-size: 11px; color: #7e7e87; min-width: 47px; text-align: right; font-variant-numeric: tabular-nums; }
.case-caption { margin: 10px 0 0; color: #888; line-height: 1.5; font-size: 11px; text-align: left; }
.x-carousel-nav button { flex-shrink: 0; }
.x-carousel-page { display: block; border: 0; padding: 0; }
.x-carousel-page.x-carousel-page-active { width: 13px; height: 13px; }
.page-status { text-align: center; color: #888; font-size: 12px; margin: 8px 0; }
.citation-actions { display: flex; align-items: center; gap: 12px; margin: 20px 16px 0; }
.citation-actions .x-button { box-shadow: none; }
#copy-status { font-size: 12px; color: #6567c9; }
.bibtex { display: block; justify-content: unset; overflow-wrap: anywhere; white-space: pre-wrap; margin: 16px; line-height: 1.65; font-weight: 400; }
.bibtex code { font-family: Consolas, monospace; }
section > .x-note { line-height: 1.6; }
@media (max-width: 700px) {
  #main { padding-top: 46px; padding-bottom: 80px; }
  .x-title-large { font-size: 61px; }
  .x-title-medium { font-size: 28px; }
  .desktop-break { display: none; }
  #links div { margin: 4px; width: 100px; }
  #links a { width: 70px; padding: 8px 12px; font-size: 14px; }
  .resource-pending { width: 94px; font-size: 14px; }
  .intro { padding: 0 8px; font-size: 15px; }
  .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .comparison-video { aspect-ratio: 652 / 720; }
  .x-section-title { font-size: 28px; padding-left: 8px; margin-top: 44px; }
  .result-card { margin-left: 0; margin-right: 0; padding: 12px; }
  .results-note { margin: 12px 8px 22px; }
  .bibtex { margin: 16px 0; padding: 16px; font-size: 12px; }
  .time-label { min-width: 38px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

/* Project identity and supplied teaser image. */
#authors { width:100%; line-height:1.6; font-size:16px; margin-bottom:4px; }
#institution { margin:0 0 18px; }
#institution .link { font-size:16px; }
#teaser.teaser-figure { margin:32px 0 0; }
#teaser a, #teaser picture { display:block; width:100%; }
#teaser img { display:block; width:100%; height:auto; }
