:root {
  color-scheme: light;
  --paper: #f1f3ef;
  --white: #fff;
  --ink: #16231c;
  --muted: #4d5c54;
  --line: #d9e0d9;
  --green: #006c50;
  --deep: #004936;
  --mint: #e3f2e8;
  --warning: #805717;
  --soft: #f9f4e9;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; font-size: 1rem; }
a { color: var(--deep); text-underline-offset: .22em; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid #1c976e; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-header { min-height: 4.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem max(1.25rem, calc((100vw - 78rem)/2)); background: #14382c; color: #fff; }
.identity { display: inline-flex; align-items: baseline; color: inherit; gap: .85rem; text-decoration: none; white-space: nowrap; }
.identity strong { font-size: 1.52rem; letter-spacing: -.045em; }
.identity span { color: #dcebe1; font-size: .9rem; }
nav { display: flex; flex-wrap: wrap; gap: .45rem 1.5rem; }
nav a { color: #f2f8f4; font-size: .9rem; text-decoration: none; }
nav a:hover, .text-link:hover { text-decoration: underline; }
main, footer { width: min(calc(100% - 2.5rem), 78rem); margin-inline: auto; }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2.2rem 0 1.8rem; }
.eyebrow { color: var(--deep); font-weight: 700; letter-spacing: .045em; margin: 0 0 .42rem; font-size: .9rem; }
.eyebrow span { margin-inline: .22rem; color: #608578; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(2rem, 4.7vw, 3.7rem); letter-spacing: -.06em; line-height: 1.16; }
.intro-copy { margin-top: .72rem; color: var(--muted); }
.intro-side { flex: 0 0 12rem; display: grid; text-align: center; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: .75rem; }
.intro-side img { width: 100%; height: 5.3rem; object-fit: cover; object-position: center 57%; }
.intro-side p { color: var(--deep); padding: .26rem .65rem .54rem; font-size: .88rem; font-weight: 650; }
.panel { padding: clamp(.85rem, 2.4vw, 1.5rem); margin: 0 0 1.25rem; border-radius: 1rem; border: 1px solid var(--line); background: var(--white); scroll-margin-top: 1rem; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: .85rem; margin-bottom: 1rem; }
.section-heading h2 { font-size: clamp(1.28rem, 2.2vw, 1.68rem); line-height: 1.22; letter-spacing: -.035em; }
.section-heading p { margin-top: .38rem; color: var(--muted); font-size: .94rem; }
.modes { display: flex; padding: .25rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--paper); flex-shrink: 0; gap: .2rem; }
.modes button { padding: .45rem .7rem; border: 0; border-radius: .42rem; color: var(--muted); font-size: .88rem; background: none; white-space: nowrap; }
.modes button[aria-pressed="true"] { background: #fff; color: var(--deep); font-weight: 700; box-shadow: 0 1px 3px #102d201c; }
.transport { display: flex; gap: .65rem 1rem; align-items: center; padding: .65rem; background: var(--mint); border-radius: .65rem; }
.primary, .secondary, .angle { min-height: 2.5rem; border-radius: .5rem; padding: .36rem .75rem; font-weight: 650; }
.primary { color: #fff; background: var(--deep); border: 1px solid var(--deep); white-space: nowrap; }
.primary:hover { background: #00674a; }
.secondary, .angle { background: var(--white); border: 1px solid var(--line); color: var(--deep); font-size: .88rem; }
.secondary:hover, .angle:hover, .angle[aria-pressed="true"] { background: var(--mint); border-color: #8db5a2; }
.scrub { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 6rem; }
.scrub input { flex: 1; min-width: 0; margin: 0; accent-color: var(--deep); }
output { min-width: 2.7rem; text-align: right; color: var(--deep); font-size: .86rem; font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: center; gap: .3rem; font-size: .88rem; color: var(--deep); white-space: nowrap; }
.check input { accent-color: var(--deep); }
.angles { display: flex; flex-wrap: wrap; gap: .45rem; margin: .7rem 0 .9rem; }
.angle { font-weight: 500; min-height: 2rem; padding: .24rem .65rem; }
.players { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; }
.players.with-reference { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { min-width: 0; border-radius: .7rem; border: 1px solid var(--line); overflow: hidden; background: #fcfdfc; }
.card-head { padding: .66rem .75rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .5rem; }
.card-head h3 { font-size: 1.06rem; line-height: 1.25; }
.tag { color: var(--deep); font-size: .84rem; font-weight: 650; }
.tag.warning { color: var(--warning); }
.view { display: grid; place-items: center; height: clamp(15rem, 28vw, 22.5rem); background: #e5e9e5; overflow: hidden; }
.view video { height: 100%; width: 100%; display: block; object-fit: contain; min-height: 0; }
.placeholder { background: repeating-linear-gradient(135deg, #f2f4f0 0 12px, #fafbf9 12px 24px); text-align: center; padding: 1rem; }
.placeholder strong { display: block; color: var(--ink); }
.placeholder span { display: block; margin-top: .42rem; max-width: 16ch; color: var(--muted); font-size: .9rem; }
.card-body { padding: .7rem .75rem; }
.card-body p { color: var(--muted); font-size: .88rem; }
.card-body p + p { margin-top: .24rem; }
.card-time { font-variant-numeric: tabular-nums; }
.card-actions { display: flex; flex-wrap: wrap; gap: .35rem .45rem; align-items: center; margin-top: .7rem; }
.card-actions .secondary { min-height: 2.13rem; padding: .25rem .52rem; }
.card-actions [aria-pressed="true"] { background: var(--mint); border-color: #8db5a2; }
.card-actions a { font-size: .88rem; padding: .3rem .1rem; }
.fine-print { color: var(--muted); margin-top: .75rem; font-size: .9rem; }
.text-link { font-size: .9rem; white-space: nowrap; }
.refs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.refs figure { border: 1px solid var(--line); border-radius: .6rem; overflow: hidden; background: #fff; }
.refs img { display: block; width: 100%; height: clamp(6rem, 15vw, 10rem); object-fit: contain; }
.refs figcaption { background: #f6f8f5; padding: .55rem .65rem; display: flex; gap: .18rem .55rem; justify-content: space-between; flex-wrap: wrap; }
.refs figcaption span { color: var(--muted); font-size: .85rem; }
.prompt { padding: .75rem; border: 1px solid var(--line); background: #fafbf9; border-radius: .6rem; margin-top: .8rem; }
.prompt summary { cursor: pointer; color: var(--deep); font-weight: 700; }
.prompt p { margin: .54rem 0 .72rem; color: var(--muted); line-height: 1.8; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 38rem; border-collapse: collapse; text-align: left; font-size: .92rem; }
th, td { vertical-align: top; padding: .75rem .55rem; border-bottom: 1px solid var(--line); }
thead th { color: var(--deep); background: #f1f7f3; }
tbody th { min-width: 9rem; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding: 0 0 1.6rem; font-size: .87rem; color: var(--muted); }
@media (max-width: 55rem) {
  .players, .players.with-reference { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .view { height: clamp(11rem, 48vw, 22rem); }
}
@media (max-width: 38rem) {
  main, footer { width: calc(100% - 1.2rem); }
  .site-header { padding-inline: .75rem; flex-wrap: wrap; gap: .1rem; }
  nav { gap: .8rem; }
  .identity strong { font-size: 1.32rem; }
  .intro { padding-block: 1.25rem; align-items: flex-start; gap: .75rem; }
  .intro-copy { font-size: .92rem; }
  .intro-side { flex-basis: 5.6rem; }
  .intro-side img { height: 3.25rem; }
  .intro-side p { font-size: .72rem; padding-inline: .12rem; }
  .section-heading { flex-direction: column; }
  .transport { flex-wrap: wrap; }
  .check { width: 100%; }
  .players { gap: .45rem; }
  .view { height: min(61vw, 17rem); }
  .card-head, .card-body { padding: .55rem .43rem; }
  .card-head h3 { font-size: .93rem; }
  .card-body p, .card-head .tag { font-size: .84rem; }
  .refs figcaption { display: block; padding: .4rem; }
  .refs figcaption span { display: block; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
