body {
  padding: 24px 18px;
  background: var(--surface);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 30px 72px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

p {
  margin: 0 0 1rem;
  color: var(--ink);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.paper-header {
  text-align: center;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.paper-title {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  line-height: 1.24;
  letter-spacing: -0.015em;
  max-width: 860px;
  margin: 0 auto 20px;
}

.authors {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 8px;
}

.authors span {
  display: inline-block;
  margin: 0 10px;
}

.authors sup,
.affiliation-notes sup {
  font-size: 0.72em;
  line-height: 0;
}

.affiliations {
  font-size: 0.96rem;
  color: var(--muted);
  margin: 0 0 6px;
}

.affiliation-notes {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0 0 20px;
}

.paper-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.98rem;
}

.paper-links a {
  font-weight: 500;
}

.link-sep {
  color: var(--muted);
}

.section {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.section h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 16px;
}

.video-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.video-column {
  margin: 0;
}

.video-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 8px;
  font-size: 0.9rem;
}

.video-label {
  font-weight: 600;
  color: var(--ink);
}

.video-metric {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.video-pair video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 832 / 480;
  background: #000000;
  border: 1px solid var(--line);
}

.comparison-controls {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 14px;
}

.action-button {
  flex-shrink: 0;
  appearance: none;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--accent);
  padding: 6px 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
}

.action-button:hover {
  border-color: var(--accent-hover);
  background: var(--surface);
}

.comparison-caption {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.method-figure {
  margin: 0;
}

.method-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--paper);
}

.method-figure figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.result-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.result-item {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.result-figure {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.85rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}

.result-detail {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
}

.cta-row {
  margin-top: 12px;
}

.cta-link {
  font-weight: 600;
}

.citation-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}

.citation-header h2 {
  margin-bottom: 0;
}

#bibtex {
  margin: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink);
}

@media (max-width: 700px) {
  body {
    padding: 0;
  }

  .page {
    border: 0;
    padding: 36px 18px 52px;
  }

  .video-pair,
  .result-columns {
    grid-template-columns: 1fr;
  }

  .comparison-controls {
    flex-direction: column;
    gap: 10px;
  }
}
