:root { --accent: #C2562A; --ink: #1D2330; --muted: #6B7280; }
body { background: #fff; color: var(--ink); overflow-x: hidden; }
.anchorman { color: var(--accent); font-weight: 700; font-style: italic; }
.hl { color: var(--accent); }
.publication-authors a { color: var(--accent) !important; }
.teaser-sub { margin-top: 1rem; font-size: 1.1rem; line-height: 1.6; }
img { max-width: 100%; height: auto; }
.section h3.title { margin-top: 2.75rem; }
.section-note { text-align: center; color: var(--muted); margin: -0.5rem auto 1.25rem; max-width: 860px; }
.fig { display: block; margin: 0 auto 0.75rem; }
.fig-lg { width: 100%; }
.fig-md { width: 72%; }
.fig-caption { color: var(--muted); font-size: 0.95rem; text-align: justify; max-width: 900px; margin: 0 auto 1.5rem; }
.method-text { max-width: 860px; margin: 0 auto 1rem; text-align: justify; }
dl.stats { max-width: 860px; margin: 1rem auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
dl.stats div { border: 1px solid #E5E7EB; border-radius: 8px; padding: 0.75rem 0.9rem; text-align: center; }
dl.stats dt { color: var(--accent); font-weight: 700; font-size: 1.35rem; }
dl.stats dd { color: var(--muted); margin-left: 0; font-size: 0.9rem; }

.result-item { margin: 0 auto 2rem; max-width: 1152px; }
.vbox { position: relative; line-height: 0; }
.vbox video { display: block; width: 100%; height: auto; background: #f3f4f6; border-radius: 6px; }
.tags { position: absolute; inset: 0; display: grid; pointer-events: none; }
.tags.c2 { grid-template-columns: repeat(2, 1fr); }
.tags.c3 { grid-template-columns: repeat(3, 1fr); }
.tags span { align-self: start; justify-self: start; margin: 6px; padding: 2px 8px; line-height: 1.5;
  font-size: 0.8rem; color: #fff; background: rgba(17, 24, 39, 0.62); border-radius: 4px; white-space: nowrap; }
.tags span.ours { background: var(--accent); }
.result-caption { text-align: center; margin-top: 0.45rem; line-height: 1.5; }
.result-grid-2 { display: grid; grid-template-columns: 1fr; gap: 0; }

pre { white-space: pre-wrap; word-break: break-word; }
.bibtex-wrap { position: relative; }
.copy-btn { position: absolute; top: 0.5rem; right: 0.5rem; }

@media (max-width: 768px) {
  .publication-title br { display: none; }
  .fig-md { width: 100%; }
  dl.stats { grid-template-columns: 1fr; }
  .tags span { margin: 3px; padding: 0 4px; font-size: 0.6rem; }
  .result-caption { font-size: 0.9rem; }
  .teaser-sub { font-size: 1rem; }
}

.clip-labels { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-bottom: 0.3rem; line-height: 1.3; }
.clip-labels span { font-size: 0.95rem; color: var(--muted); padding: 0 2px; }
.clip-labels span.ours { color: var(--accent); font-weight: 600; }
@media (max-width: 768px) {
  .clip-labels span { font-size: 0.72rem; }
  .content.has-text-justified, .method-text, .fig-caption { text-align: left; }
}
.content pre, .bibtex-wrap pre { white-space: pre-wrap; word-break: break-word; overflow-x: hidden; padding-top: 2.75rem; }

.result-item.narrow { max-width: 720px; }

.carousel { margin: 0 auto 2.5rem; }
.carousel-stage { position: relative; max-width: 1152px; margin: 0 auto; }
.carousel-stage.narrow-stage { max-width: 720px; }
.carousel .slide { display: none; }
.carousel .slide.is-active { display: block; }
.carousel .slide .result-item { margin-bottom: 0.5rem; }
.car-btn { position: absolute; top: 42%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #D1D5DB; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 30px; line-height: 40px;
  cursor: pointer; padding: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.car-btn:hover { border-color: var(--accent); color: var(--accent); }
.car-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.car-prev { left: -60px; }
.car-next { right: -60px; }
.carousel-nav { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 0.25rem; }
.car-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #D1D5DB; cursor: pointer; }
.car-dot.is-active { background: var(--accent); }
.car-count { margin-left: 6px; color: var(--muted); font-size: 0.85rem; min-width: 2.6em; }
@media (max-width: 1300px) {
  .car-prev { left: 6px; }
  .car-next { right: 6px; }
}
@media (max-width: 768px) {
  .car-btn { width: 34px; height: 34px; font-size: 24px; line-height: 30px; }
}

.car-btn { display: flex; align-items: center; justify-content: center; font-size: 0; line-height: 0; }
.car-btn svg { display: block; }
@media (max-width: 768px) { .car-btn svg { width: 16px; height: 16px; } }
