:root {
      --blue-100: #e8f4fd;
      --blue-200: #c5e3f7;
      --blue-400: #5dace8;
      --blue-500: #2e8fd6;
      --blue-600: #1a6fab;
      --blue-800: #0d3f6b;
      --ink:     #0f1923;
      --muted:   #5a6a78;
      --surface: #f7fbfe;
      --white:   #ffffff;
      --radius:  10px;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--surface);
      color: var(--ink);
      line-height: 1.7;
      font-size: 17px;
    }

    /* ── HERO ─────────────────────────────────────────── */
    .hero {
      background: linear-gradient(160deg, #ddf0fc 0%, #eef8ff 40%, #f7fbfe 100%);
      border-bottom: 1px solid var(--blue-200);
      padding: 80px 24px 64px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(93,172,232,.15) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(30,120,200,.10) 0%, transparent 70%);
      pointer-events: none;
    }

    .venue-tag {
      display: inline-block;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--blue-600);
      background: var(--blue-100);
      border: 1px solid var(--blue-200);
      border-radius: 999px;
      padding: 5px 16px;
      margin-bottom: 28px;
    }

    .hero h1 {
      font-family: 'DM Serif Display', serif;
      font-size: clamp(2rem, 5vw, 3.2rem);
      line-height: 1.2;
      color: var(--blue-800);
      max-width: 820px;
      margin: 0 auto 32px;
    }

    .hero h1 em {
      font-style: italic;
      color: var(--blue-500);
    }

    .authors {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 6px 20px;
      margin-bottom: 12px;
    }

    .authors span {
      font-size: 15px;
      font-weight: 500;
      color: var(--ink);
    }

    .affiliation {
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 36px;
    }

    .btn-group {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 22px;
      border-radius: 999px;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      transition: transform .15s, box-shadow .15s;
    }
    .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(14,80,160,.18); }

    .btn-primary {
      background: var(--blue-600);
      color: var(--white);
    }
    .btn-outline {
      background: var(--white);
      color: var(--blue-600);
      border: 1.5px solid var(--blue-400);
    }
    .btn svg { width: 16px; height: 16px; flex-shrink: 0; }

    /* ── LAYOUT ───────────────────────────────────────── */
    .container {
      max-width: 900px;
      margin: 0 auto;
      padding: 0 24px;
    }

    section { padding: 72px 0; }
    section + section { border-top: 1px solid var(--blue-200); }

    h2 {
      font-family: 'DM Serif Display', serif;
      font-size: 1.75rem;
      color: var(--blue-800);
      margin-bottom: 20px;
    }

    p { color: var(--muted); margin-bottom: 16px; }
    p:last-child { margin-bottom: 0; }

    /* ── ABSTRACT ─────────────────────────────────────── */
    .abstract-box {
      background: var(--white);
      border: 1px solid var(--blue-200);
      border-left: 4px solid var(--blue-400);
      border-radius: var(--radius);
      padding: 28px 32px;
    }
    .abstract-box p { font-size: 16px; line-height: 1.8; }

    /* ── TEASER VIDEO ─────────────────────────────────── */
    .video-teaser {
      background: var(--ink);
      border-radius: 14px;
      overflow: hidden;
      aspect-ratio: unset;  /* remove the 16/9 constraint */
      height: auto;
      background: transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }
    video:fullscreen {
      object-fit: contain;
      background: black;
    }

    /* For Firefox */
    video:-moz-full-screen {
      object-fit: contain;
      background: black;
    }

    /* For older WebKit/Safari */
    video:-webkit-full-screen {
      object-fit: contain;
      background: black;
    }

    .video-teaser iframe,
    .video-teaser video {
      width: 100%;
      height: auto;      /* natural proportions in normal view */
      object-fit: unset; /* let :fullscreen rules take over */
    }

    .video-placeholder {
      width: 100%;
      aspect-ratio: 16/9;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 16px;
      background: linear-gradient(135deg, #0b2a45 0%, #0d3f6b 100%);
      border-radius: 14px;
      color: rgba(255,255,255,.6);
      font-size: 14px;
    }

    .play-btn {
      width: 64px; height: 64px;
      border-radius: 50%;
      background: rgba(255,255,255,.15);
      border: 2px solid rgba(255,255,255,.3);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: background .2s;
    }
    .play-btn:hover { background: rgba(255,255,255,.25); }
    .play-btn svg { width: 28px; height: 28px; fill: white; margin-left: 4px; }

    .video-caption {
      text-align: center;
      font-size: 13px;
      color: var(--muted);
      margin-top: 12px;
    }

    /* ── IMAGE GRID ───────────────────────────────────── */
    .img-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 16px;
      margin-top: 8px;
    }

    .img-card {
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--white);
      border: 1px solid var(--blue-200);
      box-shadow: 0 2px 8px rgba(14,80,160,.06);
      transition: box-shadow .2s, transform .2s;
    }
    .img-card:hover { box-shadow: 0 8px 24px rgba(14,80,160,.12); transform: translateY(-3px); }

    .img-card img {
      width: 100%;
      aspect-ratio: 4/3;
      object-fit: cover;
      display: block;
    }

    .img-card .img-label {
      padding: 10px 14px;
      font-size: 13px;
      color: var(--muted);
      border-top: 1px solid var(--blue-100);
    }

    /* ── VIDEO GRID ───────────────────────────────────── */
    .video-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 16px;
      margin-top: 8px;
    }

    .video-card {
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--white);
      border: 1px solid var(--blue-200);
      box-shadow: 0 2px 8px rgba(14,80,160,.06);
    }

    .video-card .v-thumb {
      aspect-ratio: 16/9;
      background: linear-gradient(135deg, #0b2a45, #1a6fab);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }

    .video-card .v-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.7;
      position: absolute;
      inset: 0;
    }

    .video-card .v-thumb .play-sm {
      width: 44px; height: 44px;
      border-radius: 50%;
      background: rgba(255,255,255,.2);
      border: 2px solid rgba(255,255,255,.4);
      display: flex; align-items: center; justify-content: center;
      position: relative; z-index: 1;
    }

    .video-card .v-thumb .play-sm svg { width: 18px; height: 18px; fill: white; margin-left: 3px; }

    .video-card .v-label {
      padding: 10px 14px;
      font-size: 13px;
      color: var(--muted);
      border-top: 1px solid var(--blue-100);
    }

    /* ── BIBTEX ───────────────────────────────────────── */
    .bibtex-box {
      position: relative;
      background: var(--ink);
      border-radius: var(--radius);
      padding: 24px 28px;
    }

    .bibtex-box pre {
      font-family: 'DM Mono', 'Courier New', monospace;
      font-size: 13px;
      line-height: 1.7;
      color: #b0d4ef;
      white-space: pre-wrap;
      word-break: break-word;
    }

    .copy-btn {
      position: absolute;
      top: 14px;
      right: 14px;
      background: rgba(255,255,255,.1);
      border: 1px solid rgba(255,255,255,.2);
      color: rgba(255,255,255,.7);
      padding: 5px 12px;
      border-radius: 6px;
      font-size: 12px;
      cursor: pointer;
      transition: background .2s, color .2s;
    }
    .copy-btn:hover { background: rgba(255,255,255,.2); color: white; }

    /* ── FOOTER ───────────────────────────────────────── */
    footer {
      background: var(--blue-100);
      border-top: 1px solid var(--blue-200);
      text-align: center;
      padding: 32px 24px;
      font-size: 13px;
      color: var(--muted);
    }

    footer a { color: var(--blue-600); text-decoration: none; }
    footer a:hover { text-decoration: underline; }

    /* ── FADE-IN ──────────────────────────────────────── */
    .fade-in {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity .6s ease, transform .6s ease;
    }
    .fade-in.visible { opacity: 1; transform: translateY(0); }

    @media (max-width: 600px) {
      .hero { padding: 56px 20px 48px; }
      h2 { font-size: 1.4rem; }
    }
    .authors sup, .affiliation sup {
  font-size: 10px;
  vertical-align: super;
  color: var(--blue-600);
}
/* ── CAROUSEL ─────────────────────────────────────── */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--blue-200);
  background: var(--white);
}

.carousel-track {
  display: flex;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
}

.carousel-slide video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
}

.carousel-label {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--blue-100);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.85);
  border: 1px solid var(--blue-200);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  z-index: 2;
}
.carousel-btn:hover { background: var(--white); box-shadow: 0 4px 12px rgba(14,80,160,.15); }
.carousel-btn svg { width: 18px; height: 18px; color: var(--blue-600); }

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-200);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
  padding: 0;
}
.carousel-dot.active {
  background: var(--blue-500);
  transform: scale(1.3);
}
/* ── RESULTS TABLE ────────────────────────────────── */
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

.results-table th {
  text-align: center;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 14px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.results-table th:first-child { text-align: left; }

.results-table td {
  text-align: center;
  padding: 8px 14px;
  color: var(--muted);
}

.results-table td:first-child {
  text-align: left;
  color: var(--ink);
  font-weight: 500;
}

/* .results-table tbody tr:last-child td {
  border-bottom: 2px solid var(--ink);
} */

.results-table tbody tr:hover td { background: var(--blue-100); }

.results-table th {
  border-top: 2px solid var(--blue-600);
  border-bottom: 1px solid var(--blue-400);
}

.results-table tbody tr:last-child td {
  border-bottom: 2px solid var(--blue-600);
}