:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --border: #e4e4e4;
  --accent: #2f5f8f;
  --max-w: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

header.hero {
  text-align: center;
  padding: 3.5rem 1.25rem 0;
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 400;
  line-height: 1.35;
}

.hero .brand {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.9rem;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 auto;
  max-width: none;
  text-align: center;
  font-size: 1.2rem;
}

.hero .authors {
  margin: 1.5rem 0 0.35rem;
  font-size: 1.05rem;
}

.hero .affiliation {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero .venue {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero .links {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.btn:hover {
  border-color: #c8c8c8;
  text-decoration: none;
}

.btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.btn-primary:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.btn-disabled,
.btn-disabled:hover {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

main {
  padding: 0 1.25rem 4rem;
}

section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 2.75rem;
}

section > p {
  max-width: 48rem;
}

.abstract h2 {
  text-align: center;
}

.abstract p {
  margin-left: auto;
  margin-right: auto;
}

section h2 {
  margin: 0 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 1.35rem;
  font-weight: 600;
}

section h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

section h3.subsection {
  margin-top: 2.5rem;
}

section p,
section ul {
  margin: 0 0 1rem;
  color: var(--text);
}

section ul {
  padding-left: 1.25rem;
}

.figure-block {
  margin: 1.5rem 0 0;
  text-align: center;
}

.figure-block img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  background: #fff;
}

.figure-block figcaption {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  text-align: left;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 460px) 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2.5rem;
}

.split .figure-block {
  margin: 0;
}

@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.results-intro {
  max-width: none;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.player-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.player-tabs button {
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.player-tabs button:hover {
  border-color: #c8c8c8;
}

.player-tabs button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.player video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  background: #fff;
}

.player-caption {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

footer {
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.bib-wrap {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  overflow-x: auto;
}

.bib-wrap button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 3px;
  cursor: pointer;
}
