@import url("/?originalUrl=https%3A%2F%2Ffonts.googleapis.com%2Fcss2%3Ffamily%3DPlayfair%2BDisplay%3Awght%40400%3B700%26family%3DRoboto%2BMono%3Awght%40300%3B400%3B500%3B600%3B700%26display%3Dswap");

/* ===== Base ===== */
/* Original background color: #fdfaf4
Recommended background colors:
#ffffff — Pure white. Clean and minimal, standard for academic pages.
#f5f5f5 — Cool light gray. Neutral and modern, very common in tech/research sites.
#f7f8fa — Light blue-gray. Subtle cool tone, feels sleek and contemporary.
#f0ede6 — Warm gray. Similar warmth to your current cream but less yellow, more sophisticated.
#f5f7f2 — Light sage. Very subtle green undertone, feels fresh and distinctive.
#fafafa — Near-white. Almost pure white but slightly softer on the eyes. */
body {
  background-color: #f5f5f5;
  font-family: 'Playfair Display', serif;
  color: #1b1b1b;
  padding: 60px 30px;
}

/* ===== Left sidebar TOC ===== */
.toc {
  width: 180px;
  font-family: 'Roboto Mono', monospace;
  position: fixed;
  top: 250px;
  display: none;
  z-index: 1000;
}

@media (min-width: 1400px) {
  .toc {
    display: block;
    left: max(30px, calc(25vw - 330px));
  }
}

.toc h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 8px;
}

.toc hr {
  border: 0;
  height: 1px;
  background-color: #ccc;
  margin-bottom: 15px;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 7px;
}

.toc a {
  text-decoration: none;
  color: #333;
  font-size: 13px;
}

.toc a:hover {
  color: #000;
  text-decoration: underline;
}

.toc-subsection {
  margin-left: 14px;
  font-size: 0.9em;
}

/* ===== Main content column ===== */
.main-content {
  max-width: 960px;
  margin: 0 auto;
}

/* ===== Hero text ===== */
.hero-text {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.sub-hero-text {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 30px;
  line-height: 1.2;
}

/* ===== Authors block ===== */
.authors {
  font-family: 'Roboto Mono', monospace;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  margin-top: -12px;
  margin-bottom: 6px;
  text-align: left;
}

.authors span {
  display: block;
  font-size: 14px;
  color: #555;
  margin-top: 0;
}

.authors .affiliation {
  font-weight: 600;
  font-size: 16px;
  color: #111;
}

.authors .venue-badge {
  color: #111;
  font-size: 16px;
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.venue-logo {
  width: 22px !important;
  min-width: 22px;
  height: 22px !important;
  border: none !important;
  border-radius: 0 !important;
  display: inline-block !important;
  vertical-align: middle;
  object-fit: contain;
}

.authors a {
  color: inherit;
  text-decoration: none;
}

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

/* ===== Section taglines ===== */
.tagline {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #000;
  display: block;
  width: fit-content;
}

.section-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin: 30px 0 12px;
}

/* ===== Content labels (non-section titles) ===== */
.content-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  color: #1b1b1b;
  margin-bottom: 8px;
}

/* ===== Section body text ===== */
.section-text {
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 40px;
  text-align: justify;
}

/* ===== Overview two-column layout ===== */
.overview-row {
  display: flex;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 40px;
}

.overview-text {
  flex: 1 1 0;
  font-size: 20px;
  line-height: 1.7;
  display: flex;
  align-items: center;
  text-align: justify;
}

.overview-video-col {
  flex: 1 1 0;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .overview-row {
    flex-direction: column;
  }
}

.section-desc {
  font-size: 20px;
  color: #1b1b1b;
  line-height: 1.7;
  margin-bottom: 2rem;
  text-align: justify;
}

/* ===== Quick links ===== */
.quick-links {
  text-align: center;
  margin-top: 4px;
  margin-bottom: 10px;
}

.quick-links a {
  font-family: 'Roboto Mono', monospace;
  font-size: 16px;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  margin-right: 28px;
  padding: 5px 0;
}

.quick-links a:hover,
.quick-links a:focus {
  text-decoration: underline;
  color: #000;
}

/* ===== Figure captions ===== */
.figure-caption {
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  color: #555;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 40px;
  padding: 0 20px;
}

/* ===== Images ===== */
.main-content img {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-sizing: border-box;
  display: block;
}

/* ===== Videos (general) ===== */
video {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.main-content > video {
  width: 100%;
  border-radius: 10px;
}

/* ===== 16:9 video wrapper ===== */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  outline: none;
  object-fit: cover;
}

.video-native-wrapper {
  text-align: center;
  margin-bottom: 1rem;
}
.video-native-wrapper video {
  max-width: 100%;
  height: auto;
  border: none;
  border-radius: 10px;
  outline: none;
}

/* ===== Stacked videos ===== */
.stacked-videos {
  margin-bottom: 40px;
}
.stacked-video-item {
  margin-bottom: 2rem;
}
.stacked-video-item video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}
.stacked-video-item .figure-caption {
  margin-top: 8px;
}

/* ===== Grid system (Bulma replacement) ===== */
.video-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.video-col-full { flex: 0 1 100%; }
.video-col-half { flex: 0 1 calc(50% - 8px); }
.video-col-quarter { flex: 0 1 calc(25% - 12px); }
.video-col-third { flex: 0 1 calc(33.33% - 10px); }

.video-col-half,
.video-col-quarter,
.video-col-third,
.video-col-full {
  text-align: center;
}

.video-col-half video,
.video-col-quarter video,
.video-col-third video,
.video-col-full video {
  width: 100%;
  border-radius: 10px;
}

.video-col-half img,
.video-col-quarter img,
.video-col-third img,
.video-col-full img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.video-title {
  font-family: 'Roboto Mono', monospace;
  font-weight: normal;
  font-size: 1rem;
  margin-top: 0.2rem;
  color: #333;
}

@media (max-width: 768px) {
  .video-col-quarter {
    flex: 0 1 calc(50% - 8px);
  }
  .video-col-third {
    flex: 0 1 calc(50% - 8px);
  }
}

@media (max-width: 480px) {
  .video-col-half,
  .video-col-quarter,
  .video-col-third {
    flex: 0 1 100%;
  }
}

/* ===== Switcher buttons ===== */
.switcher-buttons {
  text-align: center;
  margin-bottom: 1.5rem;
}

.switcher-btn {
  margin: 0 0.3rem;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  background-color: #dbdbdb;
  color: #363636;
}

.switcher-btn.active {
  background-color: #363636;
  color: white;
}

.switcher-btn:hover {
  background-color: #363636;
  color: white;
}

/* ===== Thumbnail gallery ===== */
.thumbnail-gallery {
  display: inline-block;
  position: relative;
  background-color: #f5f5f5;
  border-radius: 10px;
  padding: 15px;
  max-width: 800px;
  margin-top: 1rem;
}

.thumbnail-gallery .indicator-bar {
  position: absolute;
  top: 10px;
  height: 4px;
  background-color: #363636;
  border-radius: 2px;
  transition: left 0.3s ease;
}

.thumbnail-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.thumb-item {
  flex: 1;
  cursor: pointer;
  position: relative;
}

.thumb-item video {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid transparent;
}

.thumb-item.active video {
  border-color: #363636;
}

.thumb-label {
  text-align: center;
  margin-top: 3px;
  font-size: 0.7rem;
  color: #666;
  font-family: 'Roboto Mono', monospace;
}

.thumb-item.active .thumb-label {
  font-weight: bold;
  color: #363636;
}

/* ===== Switched video container (single video visible at a time) ===== */
.switched-video-container {
  text-align: center;
}

.switched-video-container video {
  border-radius: 10px;
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== User play overlay ===== */
.user-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
}

.play-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-triangle {
  margin-left: 6px;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 26px solid white;
}

/* ===== BibTeX ===== */
.bibtex-code {
  background-color: rgba(80, 80, 80, 0.8);
  color: #f1f1f1;
  padding: 20px;
  border-radius: 8px;
  margin: 80px auto -40px;
  max-width: 1000px;
  box-sizing: border-box;
  font-size: 14px;
  position: relative;
}

.bibtex-title {
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  font-size: 1.15em;
  margin-bottom: 10px;
  color: #f1f1f1;
}

.bibtex-code pre {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  margin: 0;
}

.bibtex-code code {
  font-family: 'Courier New', Courier, monospace;
  overflow-wrap: break-word;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #363636;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.8rem;
  cursor: pointer;
}

.copy-btn:hover {
  background-color: #000;
}

/* ===== Footer ===== */
.footer {
  font-size: 14px;
  font-family: 'Roboto Mono', monospace;
  color: #666;
  margin-top: 80px;
  border-top: 1px solid #ccc;
  padding-top: 30px;
  text-align: center;
}

.footer a {
  color: #333;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  body {
    padding: 30px 15px;
  }
  .hero-text {
    font-size: 40px;
  }
  .sub-hero-text {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .authors {
    font-size: 14px;
  }
  .tagline {
    font-size: 18px;
  }
  .quick-links a {
    margin: 0 12px;
    font-size: 14px;
  }
  .thumbnail-gallery {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-text {
    font-size: 32px;
  }
  .sub-hero-text {
    font-size: 22px;
  }
  .quick-links a {
    margin: 0 8px;
    font-size: 13px;
  }
}
