body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #333;
}

.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 {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #000;
}

.publication-banner {
  max-height: parent;
}

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

.publication-header .hero-body {
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
  margin: 1.5rem 0;
  font-size: 1.1rem;
}

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

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

.author-block {
  display: inline-block;
  margin: 0 0.5rem;
}

.author-block sup {
  color: #3273dc;
  font-weight: bold;
}

.publication-banner img {
}

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

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

.publication-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

.results-carousel video {
  margin: 0;
}

.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-image-wrapper {
  width: 100%;
}

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

.hero {
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9));
  padding: 3rem 0;
}

.hero .title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 3.0rem;
  line-height: 1.3;
  margin-bottom: 2rem;
  color: #000;
}

.publication-links {
  margin-top: 2rem;
}

.link-block {
  margin: 0.5rem;
}

.link-block a {
  color: #000;
}

.link-block a:hover {
  color: #000;
}

.button.is-dark {
  background-color: #000;
  transition: all 0.3s ease;
  border: 1px solid #000;
}

.button.is-dark:hover {
  background-color: #fff;
  color: #000;
}

.button.is-dark:hover .icon {
  color: #000;
}

.bilibili-icon {
  fill: currentColor;
  vertical-align: middle;
}

.section {
  padding: 3rem 1.5rem;
}

.section .title {
  color: #000;
  margin-bottom: 2rem;
}

/* Demo videos section styles */
.section .content {
  background: transparent;
  margin: 3;
  padding: 0;
}

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
}

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

.section .content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section .content .video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  margin-top: 0.5rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section .content .video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.section .column {
  padding: 0.3rem;
}

/* Ensure the content sections have proper width */
.section .container {
  max-width: 1800px;
  width: 95%;
  margin: 0 auto;
}

.section .columns {
  margin: 0;
  padding: 0;
}

.keyword-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 900px;
}

.keyword-container ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  flex: 1;
  min-width: 250px;
}

.keyword-container li {
  margin: 0.5rem 0;
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  border-radius: 5px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.keyword-container li:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.title {
  color: #000;
}

.content iframe {
  max-width: 100%;
  margin: 0 auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content {
  margin-bottom: 2rem;
}

.institution-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.institution-logos img {
  height: 65px;
  object-fit: contain;
  transition: transform 0.2s;
}

.institution-logos img:hover {
  transform: scale(1.05);
}

/* Video loading styles */
.video-container {
  position: relative;
  min-height: 200px;
}

.lazy {
  background: #f0f0f0 url('../images/white_block.png') no-repeat center center;
  background-size: 50px;
}

/* Add poster image fallback for videos */
video.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

video.lazy.loaded {
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 1.8rem;
  }
  
  .publication-authors {
    font-size: 0.9rem;
  }
  
  .keyword-container {
    flex-direction: column;
  }
}
