body {
  font-family: 'Noto Sans', sans-serif;
}

.footer .icon-link {
  font-size: 25px;
  color: #000;
}

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.publication-authors sup {
  font-size: 0.6em;
}

.publication-venue {
  width: fit-content;
  font-weight: 600;
  margin-top: 10px;
}

.publication-venue span {
  display: inline-block;
  color: #fff;
  background: linear-gradient(135deg, #34D399, #6366F1);
  padding: 3px 16px;
  border-radius: 20px;
  font-size: 0.85em;
  letter-spacing: 0.5px;
}

.publication-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px !important;
}

.publication-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.content img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ── Mobile ── */
@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 1.5rem !important;
  }

  .publication-authors,
  .publication-venue {
    font-size: 0.95rem !important;
  }

  .compare3 {
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
  }

  .compare3-tldr {
    font-size: 0.72rem !important;
    padding: 10px 12px;
    line-height: 1.5;
  }

  .compare3-label {
    font-size: 0.65rem;
    padding: 2px 8px;
    top: 16px;
  }

  .compare3-scene-label {
    font-size: 0.6rem;
    padding: 3px 8px;
  }

  .compare3-toggle-wrap {
    gap: 4px;
  }

  .compare3-toggle-label {
    font-size: 0.6rem;
  }

  .compare3-toggle {
    width: 24px;
    height: 14px;
  }

  .compare3-toggle-slider::before {
    height: 10px;
    width: 10px;
  }

  .compare3-toggle-input:checked + .compare3-toggle-slider::before {
    transform: translateX(10px);
  }

  .compare3-bar::after {
    width: 20px;
    height: 20px;
  }

  .compare3-bar::before {
    font-size: 7px;
  }

  .compare3-bar {
    width: 2px;
  }

  .link-block a {
    font-size: 0.8rem;
    padding: 0.4em 0.8em;
  }

  .section {
    padding: 1rem 0.75rem;
  }

  .section .content {
    font-size: 0.82rem !important;
    line-height: 1.6;
  }

  .section h2 {
    font-size: 1.3rem !important;
  }

  .hero-body {
    padding: 2rem 1rem 1rem !important;
  }
}

/* ── TL;DR ── */
.compare3-tldr {
  margin: 0 0 1.2rem;
  padding: 16px 22px;
  background: #f7f7f7;
  border-left: 4px solid #22ceb1;
  border-radius: 0 8px 8px 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
}

.compare3-tldr strong {
  color: #222;
}

.ptc-highlight {
  background: rgba(52, 211, 153, 0.15);
  padding: 1px 4px;
  border-radius: 3px;
  color: inherit;
}

.ptc-brand {
  background: linear-gradient(135deg, #34D399, #6366F1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.compare3-tldr-tag {
  display: inline-block;
  background: #5BC87A;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

/* ── Results Table ── */
.ptc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: center;
}

.ptc-table th,
.ptc-table td {
  padding: 6px 8px;
  border: 1px solid #e0e0e0;
}

.ptc-table thead th {
  background: #f7f7f7;
  font-weight: 600;
  color: #333;
}

.ptc-table tbody td {
  color: #555;
}

.ptc-table .ptc-ours td {
  background: rgba(52, 211, 153, 0.08);
  color: #333;
}

.ptc-table .ptc-ours td:first-child {
  color: #22ceb1;
}

/* ── Depth Comparison Grid ── */
.ptc-comparison {
  margin: 1rem 0;
}

.ptc-comparison-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 4px;
  text-align: center;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

.ptc-comparison-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.ptc-comparison-5col {
  grid-template-columns: repeat(5, 1fr);
}

.ptc-comparison-row img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ── Depth Stack Comparison ── */
.depth-comparison-stack {
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
}

.depth-stack-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #666;
  margin-top: 8px;
}
.depth-label-left,
.depth-label-right {
  flex: 1;
  text-align: center;
}

.depth-comparison-swiper {
  padding-bottom: 0;
}

.depth-pagination {
  position: static !important;
  width: auto !important;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.depth-pagination .swiper-pagination-bullet {
  background: #aaa;
}

.depth-pagination .swiper-pagination-bullet-active {
  background: #363636;
}

.depth-vid {
  position: relative;
}

.depth-comparison-swiper .swiper-slide {
  position: relative;
}

.depth-comparison-swiper .swiper-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

.depth-comparison-swiper .swiper-button-prev,
.depth-comparison-swiper .swiper-button-next {
  color: #fff;
  background: rgba(0,0,0,0.45);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  --swiper-navigation-size: 18px;
  top: 50%;
}

.depth-baseline-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.depth-baseline-label {
  min-width: 70px;
  text-align: center;
}

.depth-arrow {
  cursor: pointer;
  font-size: 0.7rem;
  color: #aaa;
  user-select: none;
  padding: 2px 4px;
  transition: color 0.2s;
}

.depth-arrow:hover {
  color: #22ceb1;
}

.depth-stack-scene {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #555;
  text-align: center;
  margin: 10px 0 6px;
}

@media screen and (max-width: 768px) {
  .ptc-comparison-header {
    font-size: 0.65rem;
  }
}

/* ── 3-way Video Comparison ── */
.compare3 {
  max-width: 960px;
  margin: 0 auto 1rem;
  padding: 0 1.5rem;
}

.compare3-swiper {
  padding-bottom: 40px;
}

.compare3-swiper .swiper-pagination {
  position: relative;
  bottom: auto;
  margin-top: 12px;
}

.compare3-swiper .swiper-button-prev,
.compare3-swiper .swiper-button-next {
  color: #fff;
  background: rgba(0,0,0,0.45);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  --swiper-navigation-size: 18px;
  top: calc(50% - 20px);
}

.compare3-swiper .swiper-pagination-bullet-active {
  background: #363636;
}

.compare3-scene-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 15;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 16px;
  pointer-events: none;
  letter-spacing: 0.3px;
}

.compare3-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 0;
}

.compare3-toggle {
  position: relative;
  width: 28px;
  height: 16px;
  display: inline-block;
}

.compare3-toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.compare3-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc;
  border-radius: 16px;
  transition: 0.3s;
}

.compare3-toggle-slider::before {
  content: '';
  position: absolute;
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.compare3-toggle-input:checked + .compare3-toggle-slider {
  background: #22ceb1;
}

.compare3-toggle-input:checked + .compare3-toggle-slider::before {
  transform: translateX(12px);
}

.compare3-toggle-label {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #777;
}

.compare3-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1734 / 916;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
}

.compare3-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.compare3-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #fff;
  cursor: col-resize;
  z-index: 10;
  transform: translateX(-50%);
}

.compare3-bar::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.compare3-bar::before {
  content: '\25C0 \25B6';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9px;
  color: #333;
  z-index: 11;
  letter-spacing: 2px;
  white-space: nowrap;
}

.compare3-label {
  position: absolute;
  top: 27px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 5;
  pointer-events: none;
}

/* ── Video Loading Spinner ── */
.video-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 8px;
  z-index: 20;
}
.video-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
