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


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

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

.dnerf {
  font-variant: small-caps;
}


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

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


.publication-title {}

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {}

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

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

.publication-venue {
  color: #555;
  width: fit-content;
  font-weight: bold;
}

.publication-awards {
  color: #ff3860;
  width: fit-content;
  font-weight: bolder;
}

.publication-authors {}

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

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

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

.publication-banner img {}

.publication-authors {
  /*color: #4286f4;*/
}

.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%;
}

.publication-body img {}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
  position: relative;
}

.prompt-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6), transparent);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin: 0 !important;
  text-align: left;
}

.results-carousel .item:hover .prompt-text {
  opacity: 1;
  transform: translateY(0);
}

.results-carousel video {
  margin: 0;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}


.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-video-column {}

.interpolation-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}

#interpolation-image-wrapper img {
  border-radius: 5px;
}

.video-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  margin-top: 8px;
}

.play-pause-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.play-pause-btn:hover {
  color: #3273dc;
}

.progress-container {
  flex: 1;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: #3273dc;
  border-radius: 2px;
  width: 0%;
  position: relative;
  pointer-events: none;
}

.progress-bar::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #3273dc;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}

.progress-container:hover .progress-bar::after,
.progress-container.dragging .progress-bar::after {
  opacity: 1;
}

.time-display {
  color: #888;
  font-size: 0.75rem;
  font-family: monospace;
  min-width: 80px;
  text-align: right;
}

.label-row {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  margin-bottom: 0.5rem;
}

.label-row span {
  flex: 1;
  text-align: center;
}

/* Video Comparison Slider */
.video-comparison-container {
  display: inline-block;
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.video-comparison-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: inline-block;
}

.video-left,
.video-right {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.video-left {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  /* Initial state: show left 50% */
}

.video-right {
  z-index: 1;
  /* Right video is full width underneath */
}

.comparison-slider {
  position: absolute;
  top: 0;
  left: 50%;
  /* Initial position */
  width: 4px;
  height: 100%;
  background: white;
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.comparison-slider::before {
  content: "⟨ ⟩";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 8px 4px;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.video-label {
  position: absolute;
  bottom: 10px;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 4px;
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 5;
}

.video-label.left {
  left: 10px;
}

.video-label.right {
  right: 10px;
}

/* Video Overlay Hover Effect */
.video-overlay-container {
  display: inline-block;
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.video-overlay-container .video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: inline-block;
}

.video-overlay-container .video-left,
.video-overlay-container .video-right {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.video-overlay-container .video-left {
  z-index: 2;
  opacity: 0;
  clip-path: none;
  transition: opacity 0.3s ease;
}

.video-overlay-container:hover .video-left {
  opacity: 0.8;
}

.video-overlay-container .video-right {
  z-index: 1;
  opacity: 1;
}

/* Method and Scene Selectors */
.method-selector,
.scene-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}

.method-selector button,
.scene-selector button {
  padding: 0.5rem 1rem;
  border: 2px solid #ddd;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-size: 0.9rem;
}

.method-selector button:hover,
.scene-selector button:hover {
  border-color: #3273dc;
}

.method-selector button.active,
.scene-selector button.active {
  background: #3273dc;
  color: white;
  border-color: #3273dc;
}

.scene-selector {
  margin-top: 1rem;
}

#nvs-video-container,
#joint-nvs-video-container {
  aspect-ratio: 1 / 1;
  max-width: 512px;
  /* Optional: limit width so it doesn't get too huge */
  margin: 0 auto;
  /* Center it */
}

/* Abstract Expansion Animation */
#extra-abstract {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out, opacity 0.2s ease-out, margin-top 0.2s ease-out;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
}

#extra-abstract.content {
  margin-bottom: 0;
}

#extra-abstract.expanded {
  max-height: 1000px;
  /* Arbitrary large height */
  opacity: 1;
  margin-top: 1.5rem;
}

#abstract-expand-text {
  margin-top: 0;
}

#abstract-expand-text .fa-angle-down {
  display: inline-block;
  transition: transform 0.2s ease;
}

#abstract-expand-text.expanded .fa-angle-down {
  transform: rotate(180deg);
}