/* ===== Base ===== */
body {
  font-family: 'Noto Sans', sans-serif;
  color: #2d2d2d;
  background: #ffffff;
}

/* ===== Hero / Header ===== */
.hero {
  background: #f8f9fa;
  border-bottom: 1px solid #e8e8e8;
  padding: 3rem 1.5rem 2rem;
}

.venue-badge {
  display: inline-block;
  background: #0070f3;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.paper-title {
  font-weight: 700;
  line-height: 1.3;
  color: #111;
  margin-bottom: 1.4rem;
  font-size: 1.75rem !important;
}

/* ===== Author Cards ===== */
.author-cards {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: #333;
  width: 130px;
  text-align: center;
}

.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
  background: #e8ecf0;
}

.author-card sup {
  font-size: 0.7rem;
  color: #555;
  margin-left: 1px;
  margin-right: -0.8em;
}

.author-card a {
  color: #0070f3;
  text-decoration: none;
  font-weight: 600;
}

.author-card a:hover {
  text-decoration: underline;
}

.equal-contrib {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 0.6rem;
}

.affiliations {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 2rem;
}

/* ===== Navigation Pills ===== */
.nav-pills {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 0.5rem auto 0;
}

.pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #333;
  transition: transform 0.15s ease, color 0.15s ease;
}

.pill:hover {
  transform: translateY(-2px);
  color: #0070f3;
}

.pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 14px;
  font-size: 1.5rem;
  color: #444;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pill:hover .pill-icon {
  border-color: #0070f3;
  box-shadow: 0 4px 12px rgba(0, 112, 243, 0.15);
  color: #0070f3;
}

.pill-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.pill-sublabel {
  font-size: 0.65rem;
  color: #999;
  margin-top: -0.3rem;
}

.pill-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* ===== Section titles ===== */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 1.4rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #0070f3;
  margin-top: 6px;
}

.has-text-centered .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Teaser Videos ===== */
#teaser-videos {
  background: #f8f9fa !important;
  border-bottom: 1px solid #e8e8e8;
}

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.teaser-video {
  width: 100%;
  display: block;
  border-radius: 6px;
}

/* ===== Abstract ===== */
.abstract-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  text-align: justify;
}

/* ===== Alternating section background ===== */
.section-alt {
  background: #f8f9fa;
}

/* ===== Method Figures ===== */
.method-grid {
  display: grid;
  grid-template-columns: 7fr 3fr;
  grid-template-rows: 1fr auto;
  gap: 1rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
}

.method-grid>.method-figure {
  align-self: end;
}

@media (max-width: 768px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
}

.method-figure {
  margin-bottom: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.method-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.figure-caption {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin-top: 0.8rem;
  padding: 0 1rem;
}

/* ===== Video Comparisons ===== */
.comparison-subtitle {
  color: #555;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.comp-video-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1300px;
  margin: 0 auto;
}

.comp-video {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.video-cell.ours-cell {
  outline: 2.5px solid #0070f3;
  border-radius: 6px;
}

.video-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder overlay shown when video has no src */
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8ecf0;
  color: #999;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  pointer-events: none;
}

/* Hide placeholder once video loads */
.video-cell video[src]:not([src=""])~.video-placeholder {
  display: none;
}

/* ===== BibTeX ===== */
.bibtex-block {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
  overflow-x: auto;
}

.bibtex-block pre {
  background: transparent;
  padding: 0;
  margin: 0;
}

.bibtex-block code {
  color: #d4d4d4;
  font-size: 0.82rem;
  line-height: 1.7;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* ===== Footer ===== */
.footer {
  background: #f8f9fa;
  border-top: 1px solid #e8e8e8;
  padding: 1.5rem;
}

.footer a {
  color: #0070f3;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .paper-title {
    font-size: 1.35rem !important;
  }

  .video-grid,
  .video-grid-header {
    grid-template-columns: repeat(2, 1fr);
  }

  /* On mobile show only 2 columns: Input + Ours */
  .video-grid .video-cell:nth-child(3),
  .video-grid .video-cell:nth-child(4),
  .video-grid-header .video-col-label:nth-child(3),
  .video-grid-header .video-col-label:nth-child(4) {
    display: none;
  }
}