html {
  font-size: 16px;
}

.highlight-object {
  color: #4EA72E; /* 초록색 */
  font-weight: 600;
}

.highlight-src {
  color: #FF0000; /* 빨간색 */
  font-weight: 600;
}

@media screen and (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 12px;
  }
}

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

.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
  margin-bottom: 0.15rem;
  line-height: 1.5;
}

.publication-authors a {
  color: hsl(204, 86%, 53%);
  text-decoration: none;
}

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

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

.publication-venue {
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.publication-links {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.link-block {
  margin: 0;
}

.hero.is-light {
  background-color: #f5f5f5;
}

.section {
  padding: 3rem 1.5rem;
}

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

.subtitle {
  margin-top: 1rem;
  color: #363636;
}

.content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.content.has-text-justified {
  text-align: justify;
}

pre {
  background-color: #f5f5f5;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
}

code {
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
}

video {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: auto;
}

img {
  border-radius: 4px;
  width: 100%;
  height: auto;
}

.warning-text {
  color: #ff0000;
  font-style: italic;
  font-weight: bold !important;
}

.container-wide {
  max-width: 1400px;
}

.gallery-link-container {
  text-align: center;
  margin-top: 1.5rem;
}

.section-header {
  margin-bottom: 2rem;
}

.columns.is-multiline {
  margin-top: 1rem;
}

.column {
  padding: 0.75rem;
}

.button.is-rounded {
  border-radius: 290486px;
  padding-left: 1.25em;
  padding-right: 1.25em;
}

.button.is-dark {
  background-color: #363636;
  border-color: transparent;
  color: #fff;
}

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

.footer {
  background-color: #fafafa;
  padding: 3rem 1.5rem 3rem;
  margin-top: 3rem;
}

.footer .content {
  color: #7a7a7a;
  font-size: 0.9rem;
}

.footer a {
  color: hsl(204, 86%, 53%);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 1.5rem;
  }

  .publication-authors {
    font-size: 1rem;
  }

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

  .container.is-max-desktop {
    padding: 0 1rem;
  }

  .hero-body {
    padding: 1.5rem 1rem;
  }

  .publication-links {
    gap: 0.75rem;
  }

  .button.is-normal {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}

@media screen and (max-width: 640px) {
  .carousel-with-thumbnails {
    flex-direction: column !important;
    align-items: center !important;
  }

  .results-carousel {
    width: 100% !important;
  }

  .carousel-thumbnails {
    flex-direction: row !important;
    width: 100% !important;
    justify-content: center !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding: 0.5rem 0 !important;
  }

  .thumbnail-item {
    min-width: 60px !important;
    width: 60px !important;
    flex-shrink: 0 !important;
  }

  .thumbnail-item video {
    width: 100% !important;
    height: auto !important;
  }
}

.hero-body {
  padding: 2rem 1.5rem;
}

.container.is-max-desktop {
  max-width: 960px;
}

.has-text-centered {
  text-align: center;
}

.has-text-justified {
  text-align: justify;
}

#bibtex {
  scroll-margin-top: 2rem;
}

.carousel-with-thumbnails {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 1.5rem;
}

.results-carousel {
  overflow: hidden;
  flex: 1;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border-radius: 8px;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 140px;
  flex-shrink: 0;
}

.thumbnail-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.thumbnail-item.active {
  border-color: #CC3333;
  box-shadow: 0 4px 12px rgba(204, 51, 51, 0.3);
}

.thumbnail-item video,
.thumbnail-item img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.tab-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tab-header {
  display: flex;
  background: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
  flex-wrap: wrap;
}

.tab-button {
  flex: 0 0 20%;
  background: none;
  border: none;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #6c757d;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  position: relative;
  white-space: nowrap;
  text-align: center;
}

.tab-button:hover {
  background: #e9ecef;
  color: #495057;
}

.tab-button.active {
  color: #37bcff;
  background: white;
  border-bottom-color: #8FC9E6;
}

.tab-content {
  display: none;
  padding: 35px;
  animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
  display: block;
}

.description-box {
  background: #ecf5fa;
  border: 1px solid #8FC9E6;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  color: #2c3e50;
  font-size: 0.95rem;
  line-height: 1.6;
}

.description-box strong {
  color: #37bcff;
  font-weight: 600;
}

/* .description-box {
  background: #fff0e8;
  border: 1px solid #BD413B;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  color: #2c3e50;
  font-size: 0.95rem;
  line-height: 1.6;
}

.description-box strong {
  color: #e8524a;
  font-weight: 600;
} */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-carousel .slider-pagination {
  display: none !important;
}

.streaming-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.streaming-grid-featured {
  grid-template-columns: repeat(3, 1fr);
}

.streaming-grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
}

.comparison-row {
  margin-bottom: 35px;
}

.comparison-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e9ecef;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.long-video-row {
  margin-bottom: 35px;
}

.long-video-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e9ecef;
}

.long-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.motion-transfer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

.camera-control-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

.guidance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 35px;
}

.evaluation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 35px;
}

.i2v-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 35px;
}

.world-exploration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 35px;
}

.video-container {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-label {
  padding: 10px;
  background: white;
  font-size: 0.85rem;
  font-weight: 500;
  color: #495057;
  text-align: center;
  border-top: 1px solid #e9ecef;
}

.fa3-tag {
  display: inline-block;
  background: #CC3333;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
}

.method-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid #dee2e6;
}

.track-viz-label {
  background: #FFF5F5;
  color: #CC3333;
}

.ours-label {
  background: #FFE6E6;
  color: #CC3333;
}

@media screen and (max-width: 1024px) {
  .streaming-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .streaming-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

@media screen and (max-width: 768px) {
  .tab-button {
    padding: 15px 10px;
    font-size: 13px;
  }
}

/* ------------------ */

.qa-carousel {
  position: relative;
  max-width: 980px;
  margin: 0 auto 2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.qa-carousel-track {
  width: 100%;
}

.qa-slide {
  display: none;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
}

.qa-slide.active {
  display: block;
}

.qa-image-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.qa-image-wrapper img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.sample-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #7b1fa2;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
}

.qa-question {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.qa-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  margin-bottom: 1.4rem;
}

.qa-options label {
  font-size: 1rem;
  cursor: pointer;
}

.answer-toggle-btn {
  background: #fff7e6;
  color: #d97706;
  border: 2px solid #f59e0b;
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.answer-toggle-btn:hover {
  background: #ffefc7;
}

.ground-truth-text {
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #b45309;
  min-height: 1.5rem;
}

.carousel-arrow {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: #222;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.carousel-arrow:hover {
  background: #444;
}

@media screen and (max-width: 768px) {
  .qa-carousel {
    gap: 0.5rem;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .qa-slide {
    padding: 1rem;
  }

  .qa-options {
    flex-direction: column;
    gap: 0.8rem;
  }
}