body {
  font-family: 'Noto Sans', sans-serif;
  background: linear-gradient(165deg, #e8f0fe 0%, #f0edff 30%, #f8f6ff 60%, #ffffff 100%);
  background-attachment: fixed;
}

/* ============ HERO / TITLE ============ */

.hero.hero-header {
  background: transparent;
  padding-bottom: 0;
}

.hero.hero-header .hero-body {
  padding-bottom: 2rem;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #1a1a2e 20%, #2563eb 60%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.publication-subtitle {
  font-family: 'Google Sans', sans-serif;
  font-weight: 400;
  color: #4a4a4a;
  margin-top: -0.5rem;
}

.publication-authors {
  margin-bottom: 0.5rem;
}

.publication-authors .author-block {
  display: inline-block;
  margin-right: 0.2em;
}

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

.link-block .button {
  font-family: 'Google Sans', sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.link-block .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  background-color: #363636;
}

/* Separator between hero and teaser */
.hero-separator {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.08), transparent);
  max-width: 700px;
  margin: 0 auto;
}

/* ============ TEASER / YOUTUBE ============ */

.hero.teaser .hero-body {
  padding-top: 1.5rem;
}

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

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

.hero.teaser .subtitle {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.1rem;
  max-width: 720px;
  margin: 1.2rem auto 0;
  color: #555;
}

/* ============ VIDEO CARDS ============ */

.video-pair {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.video-pair video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* Standalone videos also get card treatment */
.video-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.video-card video {
  width: 100%;
  border-radius: 6px;
  display: block;
}

/* ============ VIDEO LABELS ============ */

.video-labeled {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.video-label {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  font-family: 'Google Sans', sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
  line-height: 1.4;
}

.video-label-condition {
  background: rgba(0,0,0,0.55);
  color: #fff;
}

.video-label-output {
  background: rgba(59,130,246,0.75);
  color: #fff;
}

/* ============ SECTIONS ============ */

.section {
  padding: 3rem 1.5rem;
}

.section + .section {
  padding-top: 1rem;
}

hr {
  margin: 2.5rem 0;
  background-color: #e5e5e5;
  height: 1px;
}

/* ============ RESULTS TABLE ============ */

.results-table {
  font-size: 0.95rem;
}

.results-table th {
  background-color: #f5f5f5;
  font-family: 'Google Sans', sans-serif;
}

/* ============ BIBTEX ============ */

#BibTeX pre {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 1.25rem;
  font-family: 'Castoro', monospace;
  font-size: 0.85rem;
  overflow-x: auto;
}

/* ============ SECTIONS - transparent for gradient ============ */

.section {
  background: transparent;
}

.hero.teaser {
  background: transparent;
}

/* ============ FOOTER ============ */

.footer {
  padding: 2rem 1.5rem;
  background-color: transparent;
}

.footer p {
  font-size: 0.85rem;
  color: #888;
}

/* ============ RESPONSIVE ============ */

@media screen and (max-width: 768px) {
  .columns.is-mobile .column {
    padding: 0.25rem;
  }

  .title.is-1 {
    font-size: 2rem;
  }

  .title.is-3 {
    font-size: 1.5rem;
  }

  .video-label {
    font-size: 0.55rem;
    padding: 1px 5px;
  }
}
