:root {
  --primary: #2c3e50;
  --accent: #3498db;
  --bg: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --code-bg: #f5f5f5;
  --max-width: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 60px 0 30px;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.25;
}

.badge {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.authors {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.6;
}

.authors a {
  text-decoration: none;
  color: var(--text);
}

.authors a:hover {
  color: var(--accent);
}

.affiliations {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.equal-contrib {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 20px;
}

.links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-paper {
  background: var(--accent);
  color: #fff;
}

.btn-paper:hover {
  background: #2980b9;
}

.btn-code {
  background: #333;
  color: #fff;
}

.btn-code:hover {
  background: #555;
}

/* ── Sections ────────────────────────────────────── */
section {
  padding: 40px 0;
}

section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin: 24px 0 12px;
}

section p {
  margin-bottom: 14px;
  text-align: justify;
}

/* ── Figures ─────────────────────────────────────── */
.figure {
  margin: 28px 0;
  text-align: center;
}

.figure img,
.figure object {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.figure-caption {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 10px;
  font-style: italic;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.figure-wide img,
.figure-wide object {
  width: 100%;
}

/* ── Results highlights ──────────────────────────── */
.results-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.highlight-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border);
}

.highlight-card .value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.highlight-card .label {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ── Video grid ──────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.video-grid video {
  width: 100%;
  border-radius: 6px;
  background: #000;
}

/* ── BibTeX ──────────────────────────────────────── */
.bibtex-container {
  position: relative;
}

.bibtex-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: #2980b9;
}

/* ── Footer ──────────────────────────────────────── */
footer {
  text-align: center;
  padding: 30px 0;
  font-size: 0.88rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

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

/* ── Side-by-side figures ────────────────────────── */
.figures-row {
  display: flex;
  gap: 20px;
  margin: 28px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.figures-row .figure {
  flex: 1;
  min-width: 280px;
  margin: 0;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .results-highlights {
    grid-template-columns: 1fr 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .figures-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .results-highlights {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.35rem;
  }
}
