:root {
  color-scheme: light;
  --bg: #f6f0e6;
  --bg-deep: #ede2d2;
  --surface: rgba(255, 253, 248, .92);
  --surface-solid: #fffdf8;
  --surface-soft: #f8f1e6;
  --text: #2b2221;
  --muted: #736966;
  --brand: #5b2734;
  --brand-strong: #421a24;
  --gold: #b9812e;
  --gold-soft: #e6c77c;
  --line: rgba(75, 45, 45, .14);
  --shadow: 0 20px 55px rgba(61, 35, 32, .13);
  --shadow-soft: 0 10px 30px rgba(61, 35, 32, .08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --reading-size: 1.18rem;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171315;
  --bg-deep: #21191d;
  --surface: rgba(39, 30, 34, .92);
  --surface-solid: #2a2024;
  --surface-soft: #33272b;
  --text: #fff6eb;
  --muted: #c1b5b2;
  --brand: #d4a257;
  --brand-strong: #efc77f;
  --gold: #e2b562;
  --gold-soft: #73552d;
  --line: rgba(255,255,255,.11);
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--gold) 13%, transparent), transparent 30rem),
    radial-gradient(circle at 100% 15%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 32rem),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .19;
  background-image: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%238b6548' stroke-opacity='.16'%3E%3Cpath d='M0 32h64M32 0v64M8 8l48 48M56 8 8 56'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  border-radius: 10px;
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: var(--shadow);
}
.skip-link:focus { transform: none; }
.shell {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .78rem;
  text-decoration: none;
}
.brand img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 8px 12px rgba(44, 23, 24, .16));
}
.brand-copy { line-height: 1.08; }
.brand-name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .01em;
}
.brand-note {
  display: block;
  margin-top: .2rem;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.icon-button, .action-button, .filter-button, .nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.icon-button { width: 42px; padding: 0; }
.action-button, .filter-button, .nav-button { padding: .65rem .95rem; }
.icon-button:hover, .action-button:hover, .filter-button:hover, .nav-button:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--gold) 58%, var(--line));
}
.hero {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  padding: clamp(2rem, 5vw, 4.7rem);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(125deg, rgba(255,255,255,.08), transparent 45%),
    linear-gradient(135deg, #4a202b, #6b3241 54%, #3c1a23);
  color: #fff9ef;
  box-shadow: var(--shadow);
}
.hero::after {
  content: "♪";
  position: absolute;
  right: clamp(1rem, 7vw, 6rem);
  top: 50%;
  transform: translateY(-51%) rotate(-7deg);
  font-family: Georgia, serif;
  font-size: clamp(9rem, 25vw, 19rem);
  color: rgba(237, 201, 125, .1);
  line-height: .8;
}
.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 .75rem;
  color: #f0cf8e;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: .96;
  letter-spacing: -.035em;
}
.hero p {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 1.25rem 0 0;
  color: rgba(255,249,239,.79);
  font-size: clamp(1rem, 2vw, 1.16rem);
}
.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.6rem;
}
.hero .action-button {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
  color: white;
  box-shadow: none;
}
.hero .action-button.primary {
  background: #f1d18e;
  color: #3b1a21;
  border-color: #f1d18e;
  font-weight: 800;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.7rem;
}
.stat {
  min-width: 120px;
  padding: .65rem .85rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
}
.stat strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.3rem;
}
.stat span {
  color: rgba(255,249,239,.7);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.directory {
  margin: 1.4rem 0 3rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.directory-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding: .35rem;
}
.directory-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
}
.directory-note {
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: .92rem;
}
.search-box {
  position: relative;
  margin: 1.15rem .35rem .8rem;
}
.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  color: var(--muted);
}
.search-input {
  width: 100%;
  min-height: 56px;
  padding: .8rem 3.2rem .8rem 3rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: inset 0 1px rgba(255,255,255,.4);
}
.search-input:focus {
  outline: 3px solid color-mix(in srgb, var(--gold) 26%, transparent);
  border-color: var(--gold);
}
.search-clear {
  position: absolute;
  right: .65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.search-clear:hover { background: var(--surface-soft); }
.filters {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  padding: 0 .35rem .7rem;
}
.filter-button {
  min-height: 38px;
  padding: .5rem .82rem;
  box-shadow: none;
  font-size: .86rem;
  font-weight: 750;
}
.filter-button[aria-pressed="true"] {
  background: var(--brand);
  color: var(--surface-solid);
  border-color: var(--brand);
}
.results-line {
  min-height: 1.4rem;
  margin: .1rem .45rem .8rem;
  color: var(--muted);
  font-size: .84rem;
}
.hymn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: .8rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hymn-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .85rem;
  align-items: center;
  min-height: 88px;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
  box-shadow: 0 5px 18px rgba(66, 39, 38, .035);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.hymn-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  box-shadow: var(--shadow-soft);
}
.hymn-main-link {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.hymn-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line));
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--brand);
  font-family: Georgia, serif;
  font-weight: 800;
}
.hymn-card-copy { min-width: 0; }
.hymn-card-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  line-height: 1.28;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hymn-card-kicker {
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.favourite {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.favourite:hover { background: var(--surface-soft); color: var(--gold); }
.favourite[aria-pressed="true"] { color: var(--gold); }
.empty-state {
  display: none;
  padding: 2.2rem 1rem;
  text-align: center;
  color: var(--muted);
}
.site-footer {
  padding: 1.5rem 1rem 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
}

/* Hymn pages */
.reader-wrap {
  width: min(900px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.5rem 0 3rem;
}
.reader-tools {
  position: sticky;
  top: 84px;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  gap: .7rem;
  margin-bottom: 1rem;
}
.reader-tools-group {
  display: flex;
  gap: .45rem;
}
.reader-tools .action-button {
  min-width: 42px;
  min-height: 42px;
  padding: .55rem .78rem;
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  backdrop-filter: blur(16px);
}
.hymn-sheet {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 5vw, 4.3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--gold) 5%, transparent) 1px, transparent 1px),
    linear-gradient(var(--surface-solid), var(--surface-solid));
  background-size: 28px 100%, auto;
  box-shadow: var(--shadow);
}
.hymn-sheet::before {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
  border-radius: calc(var(--radius-xl) - 10px);
}
.hymn-heading {
  position: relative;
  padding-bottom: 1.4rem;
  text-align: center;
}
.hymn-kicker {
  margin: 0 0 .6rem;
  color: var(--brand);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.hymn-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin: 1.25rem auto 0;
  color: var(--gold);
}
.ornament::before, .ornament::after {
  content: "";
  width: min(18vw, 90px);
  height: 1px;
  background: currentColor;
  opacity: .5;
}
.hymn-content {
  position: relative;
  width: min(660px, 100%);
  margin: 1rem auto 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--reading-size);
  line-height: 1.9;
}
.hymn-content p {
  margin: 1.4rem 0;
}
.hymn-content .chorus {
  margin: 1.7rem -.8rem;
  padding: 1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--gold) 25%, var(--line));
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: color-mix(in srgb, var(--gold) 6%, var(--surface-soft));
}
.hymn-content b, .hymn-content strong {
  color: var(--brand);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .78em;
  letter-spacing: .12em;
}
.reader-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .75rem;
  margin-top: 1rem;
}
.nav-button {
  min-height: 54px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.nav-button.next { text-align: right; }
.nav-button.center { min-width: 120px; }
.nav-button.disabled {
  opacity: .45;
  pointer-events: none;
}
.nav-copy {
  display: block;
  min-width: 0;
}
.nav-copy small {
  display: block;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.nav-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Georgia, serif;
  font-weight: 700;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 50;
  transform: translate(-50%, 140%);
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface-solid);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.hidden { display: none !important; }

@media (max-width: 720px) {
  .directory-head { grid-template-columns: 1fr; }
  .hero-actions .action-button { flex: 1 1 auto; }
  .reader-tools { top: 76px; }
  .reader-tools .button-label { display: none; }
  .reader-nav {
    grid-template-columns: 1fr 1fr;
  }
  .reader-nav .center {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .reader-nav .previous { grid-column: 1; }
  .reader-nav .next { grid-column: 2; }
}
@media (max-width: 480px) {
  .shell, .reader-wrap { width: min(100% - 1rem, 1160px); }
  .hero { margin-top: .75rem; border-radius: 20px; padding: 1.6rem 1.25rem 1.8rem; }
  .directory { border-radius: 20px; padding: .65rem; }
  .hymn-grid { grid-template-columns: 1fr; }
  .hymn-sheet { border-radius: 20px; }
  .hymn-sheet::before { inset: 9px; }
  .reader-tools { padding: 0 .15rem; }
  .nav-copy span { max-width: 120px; }
  .brand-note { display: none; }
}
@media print {
  .topbar, .reader-tools, .reader-nav, .site-footer { display: none !important; }
  body { background: white; }
  body::before { display: none; }
  .reader-wrap { width: 100%; padding: 0; }
  .hymn-sheet { box-shadow: none; border: 0; padding: 0; background: white; }
  .hymn-sheet::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* Donation and publisher-policy pages */
.top-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.support-link {
  min-height: 42px;
  padding: .62rem .92rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff9ef;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}
html[data-theme="dark"] .support-link {
  color: #2b1b19;
}
.support-link:hover {
  transform: translateY(-2px);
}
.donation-cta {
  position: relative;
  width: min(680px, 100%);
  margin: 2.4rem auto .3rem;
  padding: clamp(1.15rem, 4vw, 1.65rem);
  border: 1px solid color-mix(in srgb, var(--gold) 33%, var(--line));
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--gold) 14%, transparent), transparent 15rem),
    var(--surface-soft);
  text-align: center;
}
.donation-cta::before {
  content: "♥";
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto .7rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff9ef;
  font-family: system-ui, sans-serif;
  font-size: 1.1rem;
}
.donation-cta h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
}
.donation-cta p {
  margin: .5rem auto 1rem;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .92rem;
  line-height: 1.55;
}
.donate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 46px;
  padding: .72rem 1.15rem;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: #fff9ef;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 850;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}
html[data-theme="dark"] .donate-button {
  color: #2b1b19;
}
.donate-button:hover {
  transform: translateY(-2px);
}
.donate-button[data-not-configured="true"] {
  border-style: dashed;
}
.policy-shell {
  width: min(900px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 2rem 0 3.5rem;
}
.policy-card {
  padding: clamp(1.3rem, 5vw, 3.3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.policy-card h1 {
  margin: 0 0 .6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.policy-card h2 {
  margin: 2rem 0 .45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}
.policy-card h3 {
  margin: 1.4rem 0 .35rem;
  font-size: 1rem;
}
.policy-card p, .policy-card li {
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
}
.policy-card a {
  color: var(--brand);
  font-weight: 750;
}
.policy-lead {
  max-width: 720px;
  margin: .3rem 0 1.5rem;
  color: var(--muted) !important;
  font-size: 1.05rem;
}
.policy-meta {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: .83rem;
}
.notice {
  margin: 1.3rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: var(--surface-soft);
}
.setup-warning {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px dashed var(--gold);
  border-radius: 14px;
  background: color-mix(in srgb, var(--gold) 7%, var(--surface-soft));
}
.contact-panel, .donation-options {
  display: grid;
  gap: 1rem;
  margin-top: 1.3rem;
}
.contact-method, .donation-option {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}
.contact-method strong, .donation-option strong {
  display: block;
  margin-bottom: .3rem;
}
.site-footer {
  border-top: 1px solid var(--line);
}
.footer-inner {
  width: min(1000px, calc(100% - 2rem));
  margin-inline: auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem 1rem;
  margin: 0 0 .7rem;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.ad-safe-note {
  margin-top: 1.4rem;
  padding: .75rem .9rem;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .82rem;
}
@media (max-width: 520px) {
  .support-link {
    width: 42px;
    padding: 0;
    font-size: 0;
  }
  .support-link::before {
    content: "♥";
    font-size: 1rem;
  }
}


/* GitHub-generated edition additions */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 40px;
  padding: .55rem .78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 800;
}
.social-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--gold) 60%, var(--line));
}
.social-link svg {
  width: 17px;
  height: 17px;
}
.site-intro {
  max-width: 760px;
}
.hymn-heading h1 .title-number {
  color: var(--gold);
}
.hymn-extra {
  position: relative;
  width: min(680px, 100%);
  margin: 2rem auto 0;
}
.hymn-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: center;
  margin: 1rem auto 0;
}
.hymn-fact {
  padding: .38rem .66rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font: 750 .76rem/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
}
.video-section {
  margin: 2rem auto 0;
}
.video-section h2 {
  font-family: Georgia, "Times New Roman", serif;
}
.video-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #000;
  box-shadow: var(--shadow-soft);
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.share-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  margin-top: 1rem;
}
.related-section {
  margin: 1.3rem 0 0;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.related-section h2 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
}
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .7rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-list a {
  display: block;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-solid);
  text-decoration: none;
}
.install-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .8rem;
}
.footer-social {
  justify-content: center;
  margin: .8rem 0;
}
.footer-social .social-link {
  box-shadow: none;
}
code {
  padding: .12rem .3rem;
  border-radius: 5px;
  background: var(--surface-soft);
}
@media (max-width: 620px) {
  .top-actions .header-social {
    display: none;
  }
}
