:root {
  --page-bg: #ffffff;
  --soft-bg: #f7f8fb;
  --panel-bg: #ffffff;
  --text-main: #1f2937;
  --text-soft: #4b5563;
  --text-muted: #6b7280;
  --line: #e5e7eb;
  --accent: #3273dc;
  --accent-dark: #2557a7;
  --accent-soft: #eef4ff;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--text-main);
  background:
    linear-gradient(180deg, #f7f9ff 0, #ffffff 360px),
    var(--page-bg);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 48px;
}

.hero-panel {
  padding: 18px 0 34px;
  text-align: center;
}

.hero-content {
  max-width: 950px;
  margin: 0 auto;
}

.page-title {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(2.35rem, 5.8vw, 4.5rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
  color: #111827;
}

.title-acronym {
  color: var(--accent);
  white-space: nowrap;
}

.title-source {
  color: var(--accent);
  font-weight: 900;
}

.author-line {
  max-width: 900px;
  margin: 28px auto 0;
  font-size: 1.03rem;
  line-height: 1.75;
  color: #374151;
}

.author-line sup,
.affiliation-line sup {
  font-size: 0.68em;
  line-height: 0;
}

.affiliation-line {
  margin: 10px auto 0;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 40px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(50, 115, 220, 0.22);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.pill-link:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
  box-shadow: 0 14px 28px rgba(50, 115, 220, 0.24);
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-top: 18px;
}

.content-card {
  background: var(--panel-bg);
}

.video-card {
  padding: 0;
}

.video-header,
.intro-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-label {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.18;
  font-weight: 800;
  color: #111827;
}

.video-card h2,
.intro-card h2 {
  margin: 0;
  font-size: clamp(1.12rem, 2.2vw, 1.35rem);
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-soft);
}

.video-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b1220;
  box-shadow: var(--shadow);
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-caption {
  max-width: 820px;
  margin: 14px auto 0;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.intro-card {
  padding: 30px 34px 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(247, 248, 251, 0.72), #ffffff 42%),
    #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.intro-topbar {
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  display: none;
  max-width: 900px;
  margin: 0 auto;
}

.intro-copy.is-active {
  display: block;
}

.intro-copy h2 {
  margin-top: 24px;
  margin-bottom: 16px;
  text-align: center;
  color: #111827;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.25;
  font-weight: 800;
}

.intro-copy h3 {
  margin: 26px 0 12px;
  color: #111827;
  font-size: 1.16rem;
  line-height: 1.35;
  font-weight: 800;
}

.intro-copy p {
  margin: 0 0 16px;
  font-size: 1.03rem;
  line-height: 1.82;
  color: #374151;
}

.intro-copy strong {
  color: #111827;
  font-weight: 800;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.lang-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  padding: 3px;
  border: 1px solid #d6e3fb;
  border-radius: 999px;
  background: var(--accent-soft);
}

.lang-button {
  border: 0;
  min-width: 58px;
  padding: 7px 13px;
  border-radius: 999px;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.lang-button.is-active {
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 5px 14px rgba(50, 115, 220, 0.16);
}

.footer {
  padding: 36px 0 0;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 1040px);
    padding: 34px 0 38px;
  }

  .hero-panel {
    padding-bottom: 24px;
  }

  .action-row {
    gap: 10px;
  }

  .pill-link {
    min-width: 92px;
    min-height: 38px;
    padding: 8px 14px;
  }

  .content-stack {
    gap: 26px;
  }

  .video-header,
  .intro-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-card {
    padding: 24px 20px 26px;
  }

  .intro-copy h2 {
    text-align: left;
  }
}
