:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5e9;
  --paper: #fff;
  --soft: #f5f5f7;
  --orange: #ff5a21;
  --navy: #2a2b3d;
  --sky: #3ab2da;
  --mint: #6fdba1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: #256e87; text-underline-offset: 3px; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible, audio:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }
button { cursor: pointer; }
.shell { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; left: 18px; top: -80px; padding: 12px; background: #fff; z-index: 10; }
.skip-link:focus { top: 10px; }

/* Keep the quieter navigation local to the Realistic pages. */
.version-bar { background: #fff; border-color: var(--line); color: var(--ink); }
.version-inner { min-height: 76px; padding-block: 14px; }
.version-brand { color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -.025em; }
.version-switcher { gap: 3px; padding: 4px; border: 0; border-radius: 12px; background: var(--soft); }
.version-switcher a { min-height: 34px; padding: 7px 12px; font-size: 12px; font-weight: 500; border-radius: 9px; color: var(--muted); }
.version-switcher a span { font-size: 10px; }
.version-switcher a:hover { color: var(--ink); background: #eaeaee; }
.version-switcher a[aria-current="page"] { color: var(--ink); background: #fff; box-shadow: 0 1px 4px #1d1d1f12; }
.version-bar a:focus-visible { outline-color: var(--sky); }

.hero { text-align: center; padding: 90px 0 72px; }
h1 { color: var(--muted); font-size: clamp(19px, 2.4vw, 24px); font-weight: 500; line-height: 1.3; letter-spacing: -.025em; margin: 0 0 22px; }
.hero-copy { color: var(--ink); font-size: clamp(35px, 5.8vw, 62px); font-weight: 600; line-height: 1.1; letter-spacing: -.045em; margin: 0 0 28px; }
.hero-detail { max-width: 520px; margin: 0 auto; color: var(--muted); font-size: 15px; }
.hero-detail strong { font-weight: 500; color: var(--ink); }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 28px 0 38px; }
.button { display: inline-flex; gap: 9px; align-items: center; justify-content: center; padding: 10px 17px; min-height: 43px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-size: 13px; font-weight: 500; text-decoration: none; transition: background-color .15s, border-color .15s; }
.button img { display: block; flex-shrink: 0; object-fit: contain; }
.button > span { color: var(--muted); font-size: 12px; margin-left: 4px; }
.button:hover { background: var(--soft); border-color: #c8c8ce; }
.model-link:hover { background: #fff5ef; border-color: var(--orange); }
.paper-link:hover { background: #f0faff; border-color: var(--sky); }
.hero-facts { display: flex; justify-content: center; gap: 0; color: var(--muted); font-size: 12px; }
.hero-facts span { padding: 0 30px; border-right: 1px solid var(--line); }
.hero-facts span:last-child { border: 0; }
.hero-facts strong { font-size: 20px; font-weight: 500; color: var(--ink); margin-right: 5px; font-variant-numeric: tabular-nums; }

.listening { padding-top: 50px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.eyebrow { font-size: 12px; font-weight: 500; color: var(--muted); margin: 0 0 9px; }
h2 { font-size: 32px; line-height: 1.3; font-weight: 600; letter-spacing: -.035em; margin: 0; }
.example-total { font-size: 12px; color: var(--muted); white-space: nowrap; padding-bottom: 4px; }
.section-copy { font-size: 15px; color: var(--muted); max-width: 760px; margin: 15px 0 10px; line-height: 1.7; }
.listening-note { max-width: 850px; font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0 0 30px; }
.listening-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 4px; background: var(--soft); padding: 4px; border-radius: 12px; }
.filters button { border: 1px solid transparent; border-radius: 9px; background: transparent; padding: 7px 14px; font-size: 12px; font-weight: 500; color: var(--muted); min-height: 36px; }
.filters button span { margin-left: 7px; font-weight: 400; opacity: .85; }
.filters button[aria-pressed=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px #1d1d1f12; }
.filters button:hover { color: var(--ink); }
.jump-label { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.jump-label select { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 28px 8px 10px; max-width: 190px; min-height: 38px; font-size: 12px; color: var(--ink); }
.result-count { font-size: 11px; color: var(--muted); margin: 13px 0 24px; }

.sample-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 30px; scroll-margin-top: 24px; }
.sample-card[hidden] { display: none; }
.sample-head { padding: 26px 26px 21px; border-bottom: 1px solid #eeeef0; }
.sample-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.sample-meta h3 { font-size: 12px; color: var(--muted); font-weight: 500; margin: 0; }
.language-tag { font-size: 10px; background: var(--soft); color: var(--muted); border-radius: 6px; padding: 2px 7px; }
.sample-link { margin-left: auto; color: #77777d; font-size: 13px; text-decoration: none; }
.prompt { font-size: 19px; line-height: 1.65; letter-spacing: -.02em; white-space: pre-line; margin: 0; max-width: 1080px; }
.prompt[lang=zh] { font-size: 19px; letter-spacing: .01em; }
.reference-text { margin-top: 15px; font-size: 12px; color: var(--muted); }
.reference-text summary { cursor: pointer; display: list-item; width: fit-content; }
.reference-text p { margin: 7px 0 0; max-width: 1000px; line-height: 1.7; }
.players { padding: 20px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.player { min-width: 0; background: #f7f7f9; border: 1px solid transparent; padding: 12px; border-radius: 12px; }
.player-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; min-height: 43px; margin-bottom: 10px; align-content: center; }
.player h4 { margin: 0; font-size: 11px; line-height: 1.4; font-weight: 600; }
.size { display: inline-block; white-space: nowrap; font-size: 10px; font-weight: 500; padding: 1px 6px; background: #eaeaee; color: #53535a; border-radius: 5px; }
.player audio { width: 100%; display: block; height: 35px; min-width: 0; }
.duration { font-size: 10px; color: var(--muted); display: block; margin-top: 7px; font-variant-numeric: tabular-nums; }
.player.focus { grid-column: 1 / -1; background: #f7fbf8; border: 1px solid #d9e8df; border-left: 3px solid var(--mint); display: grid; grid-template-columns: minmax(200px, 1fr) minmax(250px, 2fr); align-items: center; gap: 20px; padding: 16px 18px; }
.focus .player-heading { margin: 0; min-height: 0; }
.focus h4 { color: var(--ink); font-size: 13px; }
.focus .size { background: #e8f3ec; color: #43594a; }
.focus-caption { display: block; width: 100%; font-size: 10px; color: var(--muted); margin-top: 2px; font-weight: 400; }
.audio-error { color: #a23434; font-size: 11px; margin: 4px 0 0; }
.notes { margin-top: 55px; padding: 32px 0 38px; border-top: 1px solid var(--line); }
.notes h2 { font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.notes p { font-size: 12px; line-height: 1.8; color: var(--muted); max-width: 1040px; margin: 10px 0; }
.site-footer { border-top: 1px solid var(--line); padding: 25px 0 35px; display: flex; justify-content: space-between; gap: 18px; font-size: 11px; color: var(--muted); }
.site-footer strong { color: var(--ink); font-weight: 500; }
.site-footer a { text-decoration: none; }
.loading { padding: 50px; text-align: center; color: var(--muted); }

@media (max-width: 1100px) {
  .players { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .player-heading { min-height: 32px; }
  .player.focus { grid-template-columns: 1fr 2fr; }
  .shell { width: calc(100% - 40px); }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .version-inner { gap: 12px; padding-block: 17px; }
  .version-switcher { width: 100%; }
  .version-switcher a { padding-inline: 7px; font-size: 11px; }
  .hero { padding: 62px 0 48px; }
  h1 { font-size: 19px; margin-bottom: 21px; }
  .hero-copy { font-size: clamp(31px, 7.1vw, 45px); margin-bottom: 24px; }
  .hero-detail { font-size: 13px; max-width: 360px; }
  .hero-actions { margin: 24px 0 29px; gap: 7px; }
  .button { font-size: 12px; padding: 9px 12px; gap: 7px; }
  .button > span { margin-left: 0; }
  .hero-facts { font-size: 10px; }
  .hero-facts span { flex: 1; padding: 0 9px; max-width: 150px; }
  .hero-facts strong { display: block; font-size: 22px; margin: 0 0 3px; }
  .listening { padding-top: 36px; }
  .section-heading { align-items: end; gap: 12px; }
  .section-heading h2 { font-size: 28px; }
  .example-total { font-size: 10px; white-space: normal; text-align: right; max-width: 95px; padding-bottom: 3px; }
  .section-copy { font-size: 14px; }
  .listening-note { margin-bottom: 25px; font-size: 11px; }
  .listening-controls { align-items: start; flex-direction: column; gap: 14px; }
  .jump-label select { max-width: 240px; }
  .sample-head { padding: 21px 17px 18px; }
  .prompt { font-size: 16px; }
  .prompt[lang=zh] { font-size: 17px; }
  .players { padding: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .player { padding: 11px; }
  .player.reference { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; align-items: center; }
  .reference .player-heading { margin: 0; }
  .player.focus { display: block; padding: 14px; }
  .focus .player-heading { margin-bottom: 12px; }
  .focus-caption { width: auto; margin: 0; }
  .player-heading { min-height: 39px; }
  .site-footer { align-items: start; font-size: 10px; }
  .site-footer span { max-width: 230px; }
}
@media (max-width: 380px) {
  .players { grid-template-columns: 1fr; }
  .player.reference { display: block; }
  .reference .player-heading { margin-bottom: 9px; }
  .player-heading { min-height: 0; }
  .button { padding: 9px 10px; }
  .button > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
