:root {
  --accent: #1f6feb;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
}

body {
  font-family: "Google Sans", "Noto Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
}

/* ---- Hero ---- */
.publication-title {
  font-weight: 700;
  line-height: 1.2;
}
.author-block {
  display: inline-block;
  margin: 0 0.35rem;
  font-size: 1.1rem;
}
.author-block a {
  color: var(--ink);
}
.author-block a:hover {
  color: var(--accent);
}
.affiliation {
  color: var(--muted);
  margin-top: 0.5rem;
}
.venue-badge {
  display: inline-block;
  margin: 0.75rem auto 0;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(110deg,
    #0f172a 0%, #1e3a8a 25%, #60a5fa 45%, #ffffff 50%,
    #60a5fa 55%, #1e3a8a 75%, #0f172a 100%);
  background-size: 220% auto;
  text-shadow: 0 0 4px rgba(255,255,255,0.4);
  animation: icra-shine 2.8s linear infinite, icra-glow 1.5s ease-in-out infinite;
}
@keyframes icra-shine {
  to { background-position: -220% center; }
}
@keyframes icra-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(96,165,250,0.5); opacity: 0.92; }
  50%      { box-shadow: 0 0 16px rgba(96,165,250,1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .venue-badge { animation: none; background: #0f172a; }
}

/* ---- Link buttons ---- */
.link-buttons {
  margin-top: 1.5rem;
}
.link-buttons .button {
  margin: 0.25rem;
  border-radius: 999px;
  background: #363636;
  color: #fff;
  border: none;
}
.link-buttons .button:hover {
  background: var(--accent);
  color: #fff;
}
.link-buttons .button[disabled],
.link-buttons .button.is-placeholder {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---- Sections ---- */
.section-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.teaser img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.teaser .caption,
.figure .caption {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}
.abstract-text {
  text-align: justify;
  font-size: 1.05rem;
  line-height: 1.7;
}
.figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ---- Video ---- */
.video-wrapper {
  max-width: 960px;
  margin: 0 auto;
}
.video-wrapper video {
  width: 100%;
  border-radius: 6px;
  background: #000;
}
.placeholder-box {
  border: 2px dashed #c9c9c9;
  border-radius: 8px;
  background: #fafafa;
  color: var(--muted);
  text-align: center;
  padding: 3rem 1rem;
}
.placeholder-box .ratio-16x9 {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Poster ---- */
.poster-embed {
  width: 100%;
  height: 80vh;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

/* ---- BibTeX ---- */
pre.bibtex {
  background: #f5f5f5;
  border-radius: 6px;
  padding: 1.25rem;
  overflow-x: auto;
  text-align: left;
  font-size: 0.9rem;
}

.footer-small {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- Open to Work ---- */
.opentowork-card {
  border: 1px solid #d9ead9;
  border-left: 4px solid #2e9e5b;
  background: #f4fbf6;
  border-radius: 8px;
  padding: 1.75rem 2rem;
}
.opentowork-text {
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
}
.qr-img,
.qr-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 8px;
}
.qr-img {
  object-fit: contain;
  background: #fff;
  border: 1px solid #e0e0e0;
}
.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #b7d4bf;
  background: #fff;
  color: var(--muted);
  margin: 0 auto;
}
.qr-placeholder p {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.2;
}
