/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: "Titillium Web", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    font-weight: 300;
    font-size: 19px;
    line-height: 1.7;
    color: #222;
    margin-left: auto;
    margin-right: auto;
    width: 1000px;
    background: #fff;
}

h1 {
    font-weight: 600;
    line-height: 1.2em;
    font-size: 42px;
    text-align: center;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.65em;
    font-weight: 500;
    margin: 20px 0px 6px 0px;
    text-align: center;
    color: #111;
}

a:link, a:visited {
    color: #1772d0;
    text-decoration: none;
}

a:hover {
    color: #f09228;
}

.paper-title {
    padding: 28px 0px 20px 0px;
}

section {
    margin: 40px 0px 40px 0px;
    text-align: justify;
    clear: both;
}

.author-row, .affil-row {
    overflow: auto;
    font-size: 19px;
    font-weight: 400;
    text-align: center;
}

hr {
    height: 1px;
    border: 0;
    border-top: 1px solid #ddd;
    margin: 0;
}

.caption {
    font-size: 18px;
    color: #333;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.75;
}

.caption-center {
    font-size: 18px;
    color: #555;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.container {
    margin-left: auto;
    margin-right: auto;
}

.topnav {
    overflow: hidden;
    background-color: #F2F2F2;
    border-bottom: 1px solid #ddd;
}

.topnav a {
    float: left;
    color: #222;
    text-align: center;
    padding: 14px 18px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
}

/* Paper buttons */
.supp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #76b900;
    color: white;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    margin: 5px;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(118,185,0,0.25);
    letter-spacing: 0.02em;
}

.supp-btn:link, .supp-btn:visited {
    color: white;
}

.supp-btn:hover {
    background: #5a8f00;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(118,185,0,0.35);
}

.paper-btn-parent {
    text-align: center;
    margin: 20px 0;
}

/* Author affiliations */
#authors {
    text-align: center;
    margin-bottom: 16px;
}

.col-4, .col-5 {
    display: inline-block;
    padding: 2px 8px;
}

.venue {
    display: inline-block;
    background: #76b900;
    color: white;
    padding: 4px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 8px 0;
}

.etc-row {
    font-size: 14px;
    color: #666;
    margin: 4px 0;
}

/* Video grid layouts */
.video-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 8px 0;
}

.video-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 8px 0;
}

.video-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin: 8px 0;
}

.video-container {
    position: relative;
}

.video-container > video {
    width: 100%;
    height: auto;
    display: block;
}

/* Method labels above videos */
.method-label {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    padding: 4px 0;
    background: #f5f5f5;
    border-radius: 3px 3px 0 0;
    letter-spacing: 0.02em;
}

.ours-label {
    background: #e8f4d4;
    color: #3a6a00;
    font-weight: 600;
}

.track-viz-label {
    background: #e8eef8;
    color: #1a4a90;
}

/* Section separators between different examples */
.example-separator {
    border: 0;
    border-top: 2px dashed #ccc;
    margin: 20px 0;
}

/* Description boxes */
.description-box {
    background: #e8f0fe;
    border: 1px solid #7aa7f7;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 12px 0 18px 0;
    font-size: 17px;
    color: #2c3e50;
}

.description-box strong {
    color: #3273dc;
}

/* Subsection title within sections */
.subsection-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #222;
    margin: 24px 0 8px 0;
    text-align: left;
    letter-spacing: 0.01em;
}

/* Video loading indicator */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    z-index: 10;
    display: none;
}

/* Column headers row */
.col-headers {
    display: grid;
    gap: 6px;
    margin-bottom: 2px;
}

.col-headers-3 { grid-template-columns: repeat(3, 1fr); }
.col-headers-4 { grid-template-columns: repeat(4, 1fr); }

.col-header {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    padding: 5px 0;
    color: #444;
    border-bottom: 2px solid #76b900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Comparison section example group */
.example-group {
    margin: 16px 0;
}

/* ── Method section ──────────────────────────────────────────────────────── */
.method-float-fig {
    float: right;
    width: 280px;
    margin: 0 0 12px 24px;
    text-align: center;
}

.method-float-fig img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.method-float-fig figcaption {
    font-size: 14px;
    color: #555;
    margin-top: 6px;
    line-height: 1.5;
    text-align: left;
}

/* BibTeX */
pre {
    background: #f5f5f5;
    padding: 14px;
    border-radius: 4px;
    font-size: 13px;
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    text-align: left;
}

code {
    font-family: 'Source Code Pro', 'Fira Code', 'Menlo', 'Consolas', monospace;
}

#bibtex pre {
    font-size: 14px;
    background-color: #eee;
    padding: 16px;
    text-align: center;
    display: inline-block;
    text-align: left;
}

#bibtex {
    text-align: center;
}


/* Video comparison slider */
.compare {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: col-resize;
  border-radius: 4px;
}

.compare .base {
  width: 100%;
  height: auto;
  display: block;
}

.compare .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
}

.compare .overlay .top {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
}

.compare .divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: white;
  transform: translateX(-1px);
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.compare .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

.compare .divider::before {
  content: '\25C0  \25B6';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: #555;
  z-index: 1;
  white-space: nowrap;
  letter-spacing: -1px;
}

.compare .compare-label {
  position: absolute;
  bottom: 6px;
  padding: 2px 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
  pointer-events: none;
  z-index: 3;
  letter-spacing: 0.03em;
}

.compare .label-left {
  left: 6px;
}

.compare .label-right {
  right: 6px;
}

/* Responsive */
@media (max-width: 1050px) {
    body { width: 100%; padding: 0 12px; }
}

@media (max-width: 700px) {
    .video-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .video-grid-3 { grid-template-columns: repeat(1, 1fr); }
}

/* Material icons */
.material-icons {
    font-size: 18px;
    vertical-align: middle;
}

/* ── Interactive Motion selector ─────────────────────────────────────────── */
.motion-selector {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
    width: 100%;
    box-sizing: border-box;
    margin: 14px 0 12px;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 20px;
}

.motion-subgroup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.motion-group-label {
    font-size: 12px;
    font-weight: 700;
    color: #3273dc;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    width: 100%;
}

.motion-icons-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.motion-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 2px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    width: 100px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.motion-icon img {
    width: 100%;
    height: 62px;
    object-fit: cover;
    display: block;
}

.motion-icon:hover {
    border-color: #3273dc;
    box-shadow: 0 2px 8px rgba(50,115,220,0.2);
}

.motion-icon.active {
    border-color: #3273dc;
    box-shadow: 0 2px 10px rgba(50,115,220,0.3);
}


.motion-viewport {
    width: 100%;
    overflow: hidden;
}

.motion-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.motion-slide {
    min-width: 100%;
    box-sizing: border-box;
}

/* ── Teaser carousel ──────────────────────────────────────────────────────── */

/* Nav row: left arrow + icon strip */
.teaser-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 12px 0 10px;
}

.teaser-icons {
    display: flex;
    gap: 10px;
}

.teaser-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border: 2px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    width: 120px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.teaser-icon img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    display: block;
}


.teaser-icon:hover {
    border-color: #888;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.teaser-icon.active {
    border-color: #555;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.teaser-icon.active span {
    background: #e8e8e8;
    color: #222;
}

/* Full-width viewport (no side arrows shrinking it) */
.teaser-viewport {
    width: 100%;
    overflow: hidden;
}

.teaser-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.teaser-slide {
    min-width: 100%;
    box-sizing: border-box;
}

/* Bulma-styled arrow buttons */
.teaser-arrow {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #aaa;
    background: #fff;
    color: #444;
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
    padding: 0;
    user-select: none;
}

.teaser-arrow:hover:not(:disabled) {
    background: #444;
    border-color: #444;
    color: #fff;
}

.teaser-arrow:disabled {
    opacity: 0.25;
    cursor: default;
}

/* TLDR box */
.tldr-box {
    background: #f4f8ed;
    border: 1.5px solid #76b900;
    border-radius: 8px;
    padding: 14px 20px;
    text-align: center;
    margin: 16px 0 28px 0;
    font-size: 17px;
    line-height: 1.65;
    box-shadow: 0 2px 8px rgba(118,185,0,0.1);
}
