body {
  font-family: "Noto Sans", "Segoe UI", sans-serif;
  color: #363636;
  background: #fff;
}

.publication-title {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.15;
  color: #222;
  margin-bottom: 1.4rem;
}

.authors {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.affiliations,
.equal-note {
  color: #4a4a4a;
  line-height: 1.45;
  margin-bottom: 0.15rem;
}

.published {
  margin-top: 1.15rem;
  margin-bottom: 1.15rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #222;
}

.hero .button {
  margin: 0.25rem;
}

.hero .button .icon {
  margin-right: 0.15rem;
}

.hero .hero-body {
  padding-bottom: 1.25rem;
}

.clip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.clip {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #111;
  border-radius: 2px;
}

.clip video {
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.section-title {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 700;
  color: #363636;
  margin-bottom: 1.25rem;
}

.abstract-copy {
  color: #4a4a4a;
  font-size: 1.05rem;
  line-height: 1.75;
}

.fig-stage {
  position: relative;
  background: #f4f4f4;
  border-radius: 4px;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3.4rem;
}

.fig-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

#fig-cap {
  min-height: 4.5em;
}

.fig-stage .qual-nav {
  z-index: 1;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  align-items: start;
}

.pair h3 {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.pair .compare {
  font-size: 0.88rem;
}

.pair .compare th,
.pair .compare td {
  white-space: normal;
  padding: 0.4rem 0.28rem;
}

.table-note,
.clip-caption {
  color: #4a4a4a;
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.table-scroll {
  overflow-x: auto;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.98rem;
}

.compare th,
.compare td {
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid #e8e8e8;
  white-space: nowrap;
}

.compare thead th {
  font-weight: 600;
  color: #363636;
  border-bottom: 1px solid #dbdbdb;
}

.compare td:first-child,
.compare th:first-child {
  text-align: left;
  font-weight: 600;
}

.compare tr.ours td {
  background: #f5d0c4;
  font-weight: 700;
}

.qual-stage {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.qual-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.qual-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.qual-frame video.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

#qual-note {
  min-height: 3em;
}

.qual-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  color: #363636;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.qual-nav.prev { left: -8px; }
.qual-nav.next { right: -8px; }

.dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #d0d0d0;
  cursor: pointer;
}

.dots button[aria-current="true"] {
  background: #363636;
}

#bibtex pre {
  background: #f5f5f5;
  border-radius: 4px;
  padding: 1.25rem 1.4rem;
  overflow-x: auto;
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: left;
}

.footer {
  background: #fafafa;
  padding: 2rem 1.5rem;
}

.footer p {
  color: #7a7a7a;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .pair { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .clip-row { grid-template-columns: 1fr 1fr; }
  .qual-nav.prev { left: 4px; }
  .qual-nav.next { right: 4px; }
  .fig-stage { height: 380px; }
}
