:root {
  color: #202124;
  background: #fff;
  font: 100%/1.65 system-ui, sans-serif;
  --line: #d7d9dc;
  --muted: #535860;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
main a, .skip { font-weight: 700; }
a:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.wrap { width: min(100% - 2rem, 58rem); margin-inline: auto; }
.site-header, .site-footer { border-block-end: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2rem; }
.title, nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.title { font-weight: 700; padding-block: .75rem; }
nav { display: flex; flex-wrap: wrap; column-gap: 1.25rem; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; text-underline-offset: .3em; }
main { min-height: 54vh; padding-block: clamp(2rem, 6vw, 4rem); }
h1 { margin: 0 0 1.5rem; font-size: clamp(1.65rem, 4.4vw, 2.6rem); line-height: 1.25; }
h2 { margin-block: 1.75rem .6rem; font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.announcement { max-width: 44rem; }
.label, .metadata, .empty { color: var(--muted); }
.label { margin-bottom: .65rem; }
.empty { border-block: 1px solid var(--line); padding-block: 1.2rem; }
.day, .entry { margin-block: 1.25rem; }

/* 赛场之外：可点开的新闻卡片 */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; margin-block: 1.4rem; }
.news-card { display: grid; gap: .45rem; align-content: start; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 1rem 1.1rem; }
.news-card:hover, .news-card:focus-visible { border-color: var(--signal); background: var(--panel-hover); }
.news-kicker { font-size: .74rem; letter-spacing: .09em; color: var(--muted); text-transform: uppercase; }
.news-title { font-size: 1.02rem; line-height: 1.4; }
.news-excerpt { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.news-more { color: var(--signal); font-size: .82rem; letter-spacing: .06em; }
.news-article { max-width: 42rem; }
.news-article h1 { margin-block: .3rem 1rem; line-height: 1.3; }
.news-article p { line-height: 1.8; }
.news-article .news-kicker { margin-bottom: 0; }
.news-list { margin: .7rem 0; padding-left: 1.15rem; line-height: 1.85; }
.news-list li { margin-block: .1rem; }
.news-signature { margin-top: 1.4rem; color: var(--muted); text-align: right; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .news-card { transition: box-shadow .16s ease, border-color .16s ease; } }
.card { margin-block: .65rem; border: 1px solid var(--line); padding: .8rem 1rem; overflow-wrap: anywhere; }
.fixture { position: relative; }
.fixture .record-link::after { content: ''; position: absolute; inset: 0; }
.fixture .teams a { position: relative; z-index: 1; }
.fixture .record-link:focus-visible::after { outline: 2px solid var(--signal); outline-offset: 3px; }
a.card { display: block; }
.card p:last-child { margin-bottom: 0; }
.teams { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.team-slot, .record-link, .back { display: inline-flex; align-items: center; min-height: 44px; }
.team-slot { border: 1px solid var(--line); padding-inline: .7rem; }
.team-slot--pending { color: var(--muted); border-style: dashed; }
.site-footer { border-block-start: 1px solid var(--line); border-block-end: 0; color: var(--muted); padding-block: .9rem; font-size: .875rem; }
.skip { position: absolute; inset: .4rem auto auto .4rem; z-index: 2; background: var(--panel); padding: .55rem; }
.skip:not(:focus) { clip-path: inset(50%); }

/* Broadcast poster and tournament listings */
:root {
  --ink: #f0eae6;
  --paper: #211e29;
  --panel: #302c38;
  --panel-hover: #413846;
  --signal: #ffa487;
  --line: #786e7e;
  --muted: #c8becb;
  --violet: #d0b8f9;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
.wrap { width: min(100% - clamp(2rem, 7vw, 7rem), 72rem); }
.site-header { background: #19161f; border: 0; }
.site-header .wrap { justify-content: space-between; padding-block: .45rem; }
.title { font-weight: 850; letter-spacing: -.055em; }
.site-header nav { gap: 0 clamp(.8rem, 2.3vw, 2rem); }
nav a[aria-current] { color: var(--signal); text-decoration-thickness: 2px; }
main { padding-block: clamp(1.2rem, 3vw, 3rem) 4rem; min-height: 75vh; }
.poster { background: #23183d; color: #f4efed; position: relative; isolation: isolate; overflow: hidden; }
.transmission { position: absolute; right: 0; top: 0; width: 59%; height: 100%; object-fit: cover; mask-image: linear-gradient(90deg, transparent, black 12%); z-index: -1; }
.poster-type { padding: clamp(1.5rem, 4vw, 4rem); }
.dateline, .opener time { font-variant-numeric: tabular-nums; font-size: .86rem; letter-spacing: .06em; }
.dateline { color: #cec1ea; }
.poster h1 { margin: clamp(2rem, 5vw, 5rem) 0 1.5rem; }
.poster h1 strong { display: block; font: 900 clamp(5.8rem, 14vw, 13rem)/.85 "Arial Black", "Helvetica Neue", sans-serif; letter-spacing: -.09em; color: #fa997d; }
.poster h1 span { display: block; font-size: clamp(1.8rem, 4.6vw, 4.5rem); letter-spacing: -.065em; margin-top: .24em; }
.dispatch { line-height: 1.8; margin: 0; }
.opener { display: flex; align-items: center; gap: clamp(1rem, 4vw, 4rem); padding: 1.6rem 0;  }
.opener h2 { margin: 0; font-size: 1rem; }
.opener p { margin: 0; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.6rem); }
.opener p span { font-size: .85rem; color: var(--muted); vertical-align: middle; }
.opener a { margin-left: auto; padding: .65rem 1rem; background: var(--signal); color: var(--paper); text-decoration: none; }
main > h1 { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -.065em; }
a.card { margin: 0; padding: 1rem .5rem; border: 0; border-top: 1px solid var(--line); font-weight: 650; text-decoration: none; }
a.card:hover, a.card:focus-visible { color: var(--violet); background: var(--panel-hover); }
.announcement, .team-roster { max-width: 46rem; }
.announcement { line-height: 1.95; }
.roster-group ul { columns: 2 14rem; }
.roster-group li { break-inside: avoid; }
.site-footer { border-color: var(--ink); }
@media (max-width: 700px) {
  .site-header .wrap { display: block; }
  .site-header nav { font-size: .9rem; }
  .poster-type { padding: 1.35rem; }
  .transmission { position: relative; width: 100%; height: clamp(11rem, 50vw, 18rem); display: block; object-fit: contain; mask-image: none; }
  .poster h1 { margin: 1.25rem 0; }
  .opener { flex-wrap: wrap; gap: .7rem 1.2rem; }
  .opener p { flex: 1; white-space: nowrap; }
  .opener a { margin-left: 0; }
}

.directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .9rem; }
.directory-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: .9rem;
  min-height: 7rem; justify-content: flex-end; padding: 2.9rem 1.3rem 1rem; background: var(--panel);
  border: 0; text-decoration: none;

}
.directory-card strong { font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.35; overflow-wrap: anywhere; }
.card-meta, .card-foot { color: var(--muted); font-size: .85rem; }
.card-foot { margin-top: auto; }
.directory-card:hover, .directory-card:focus-visible { background: var(--panel-hover);  }
@media (prefers-reduced-motion: no-preference) {
  .transmission { animation: signal-lock 850ms ease-out both; }
  @keyframes signal-lock {
    0% { transform: translateX(6px); opacity: .62; }
    23% { transform: translateX(-3px); }
    42% { transform: translateX(2px); }
    100% { transform: none; opacity: 1; }
  }
  .directory-card { transition: background-color 150ms, transform 150ms; }
  .directory-card:hover { transform: translateY(-2px); }
}

.round-browser, .archive-day { max-width: 72rem; }
main:has(.round-browser) > h1, main:has(.archive-day) > h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); letter-spacing: -.04em; margin-bottom: .5rem; }
.draw-info { margin: 0 0 1.6rem; color: var(--muted); font-size: .9rem; }
.round-picker { gap: .25rem; margin-bottom: 1rem; }
.round-picker button { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: .6rem 1.2rem; }
.round-picker button[aria-pressed=true] { background: var(--signal); color: var(--paper); }
.round-picker button:hover:not([aria-pressed=true]) { background: var(--panel-hover); }
.round-picker button:focus-visible { outline: 2px solid var(--violet); }
.schedule-row { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 4fr) minmax(8rem, 1fr); align-items: center; gap: 1.25rem; padding: 1.15rem 1.3rem; }
.schedule-row:nth-child(odd) { background: var(--panel); }
.slot-info { display: grid; font-size: .9rem; }
.slot-info small, .versus, .fixture-detail, .scorecard-head { font-size: .82rem; color: var(--muted); }
.schedule-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; font-weight: 650; line-height: 1.4; }
.schedule-pair > :first-child { text-align: right; }
.schedule-pair a, .fixture-detail { text-decoration: none; }
.schedule-pair a:hover, .fixture-detail:hover, .back:hover, .announcement a:hover { color: var(--violet); }
.archive-day { display: grid; grid-template-columns: 10rem 1fr; gap: 1.4rem; margin-block: 1.8rem; }
.archive-day h2 { margin: .9rem 0 0; font-size: 1rem; font-weight: 600; }
.match-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.scorecard { display: grid; align-content: start; gap: .35rem; padding: .95rem 1.25rem 1.15rem; text-decoration: none; background: var(--panel); }
.scorecard:hover { background: var(--panel-hover); }
.scorecard-head, .score-side { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.scorecard-head { margin-bottom: .55rem; }
.score-side { line-height: 1.35; font-size: 1.13rem; }
@media (max-width: 750px) {
  .archive-day { display: block; }
  .archive-day h2 { margin-bottom: .6rem; }
  .schedule-row { grid-template-columns: 1fr auto; gap: .6rem; padding: .9rem; }
  .slot-info { display: flex; align-items: baseline; gap: .7rem; }
  .schedule-pair { grid-row: 2; grid-column: 1 / -1; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
  .fixture-detail { grid-column: 2; grid-row: 1; }
  .round-picker button { padding-inline: .8rem; }
}
@media (max-width: 540px) { .match-cards { grid-template-columns: 1fr; } }

.flow-map { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(1rem,4vw,4rem); align-items: center; padding: 1rem 0; }
.flow-map button { position: relative; display: grid; justify-items: start; align-content: center; min-height: 4rem; text-align: left; background: var(--panel); padding: .6rem 1rem; }
.flow-map button small { font-size: .78rem; }
.flow-map > button::after { content: '→'; position: absolute; left: 100%; width: clamp(1rem,4vw,4rem); text-align: center; top: 50%; transform: translateY(-50%); color: var(--ink); }
.medal-branches { display: grid; gap: .35rem; position: relative; }
.medal-branches::before { content: ''; position: absolute; left: -.45rem; width: .4rem; inset-block: 23%; border: solid var(--muted); border-width: 1px 0 1px 1px; }
#featured-fixtures .opener p { white-space: normal; }
@media(max-width: 600px) {
  .flow-map { gap: .8rem; }
  .flow-map button { padding: .45rem .25rem; justify-items: center; text-align: center; }
  .flow-map > button::after { width: .8rem; font-size: .75rem; }
  .flow-map button small { font-size: .68rem; }
}

.ceremony-album {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
}
.ceremony-date, .ceremony-wide { grid-column: 1 / -1; }
.ceremony-date { margin: -.5rem 0 0; color: var(--muted); }
.ceremony-album figure { margin: 0; }
.ceremony-album img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ceremony-wide img { aspect-ratio: 2.7; object-position: center 65%; }
.ceremony-album figcaption { margin-top: .5rem; font-size: .875rem; }
@media (max-width: 640px) {
  .ceremony-album { grid-template-columns: minmax(0, 1fr); }
  .ceremony-wide img { aspect-ratio: 16 / 10; }
}

/* Shared broadcast title and match axis. */
main > h1 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #30253e;
  padding: clamp(1.15rem, 3vw, 2.4rem);
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  line-height: 1.17;
}
main > h1::before {
  content: '';
  position: absolute;
  inset: 0 0 0 42%;
  z-index: -1;
  opacity: .34;
  background: url('./transmission.jpg') right 43% / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent, black 65%);
}
main:has(.round-browser) > h1, .round-browser > h2, .draw-info { text-align: center; }
.round-browser, .archive-day { margin-inline: auto; }
.flow-map button { justify-items: center; text-align: center; }
.fixture-detail { justify-self: end; }
.schedule-pair { min-width: 0; overflow-wrap: anywhere; }
.ceremony-date { margin-top: 0; }
.announcement { margin-inline: auto; }
.empty { border: 0; padding: 1.5rem; background: var(--panel); }
.back { color: var(--signal); }
@media (prefers-reduced-motion: no-preference) {
  main > h1, .poster-type { animation: tune-in .38s ease-out both; }
  .round-list > article { animation: tune-in .24s ease-out both; }
  .scorecard, .round-picker button { transition: background-color .18s ease; }
  @keyframes tune-in {
    from { opacity: .72; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

main:has(.match-sheet) { max-width: 49rem; }
.match-sheet { background: var(--panel); }
.match-summary { padding: clamp(1rem, 4vw, 2.2rem); background: #342b40; }
.match-meta, .scorers { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .9rem; }
.match-meta strong, .incident small { color: var(--signal); }
.match-board, .match-strip { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; text-align: center; gap: 1rem; }
.match-board { margin: 1.8rem 0 .5rem; font-size: clamp(1rem, 2.4vw, 1.45rem); }
.match-side { display: grid; justify-items: center; gap: .65rem; overflow-wrap: anywhere; }
.team-mark { width: 3.8rem; height: 3.8rem; object-fit: contain; }
.team-flag { display: grid; place-items: center; min-height: 3.8rem; font-size: 2rem; line-height: 1; }
.directory-card { position: relative; }
.directory-card > .team-mark, .directory-card > .team-flag { position: absolute; top: .65rem; right: .8rem; width: auto; max-width: 4.5rem; height: 2rem; min-height: 0; font-size: 1.3rem; }
.match-score { font-size: clamp(1.8rem, 5vw, 3.5rem); font-variant-numeric: tabular-nums; }
.scorers { margin-top: 1rem; }
.scorers > :last-child { text-align: right; }
.match-strip { position: sticky; z-index: 2; top: 0; padding: .65rem; background: #342b40; font-size: .9rem; }
.match-strip[hidden] { display: none; }
.match-controls { display: grid; grid-template-columns: repeat(3,1fr); }
.match-controls button { min-height: 3rem; border: 0; font: inherit; font-weight: 700; cursor: pointer; background: #25212c; color: var(--muted); }
.match-controls button[aria-pressed=true] { background: var(--panel-hover); color: var(--signal); }
.match-panel { padding: clamp(1rem, 3vw, 2rem); }
.match-panel h2, .match-squads h3 { margin-top: 0; }
.match-note { text-align: center; margin: 1.4rem 0; color: var(--muted); }
.match-squads { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; overflow-wrap: anywhere; }
.match-squads ul { list-style: none; padding: 0; }
.match-squads h4 { color: var(--violet); margin-bottom: .3rem; }
.match-stats { width: 100%; table-layout: fixed; text-align: center; border-collapse: collapse; }
.match-stats caption { font-weight: 750; margin-bottom: 1rem; }
.match-stats th, .match-stats td { padding: .55rem .2rem; overflow-wrap: anywhere; }
.match-stats tbody tr:nth-child(odd), .incident { background: var(--paper); }
.incident { margin-top: .65rem; padding: 1rem; }
@media (prefers-reduced-motion: no-preference) { .match-summary, .match-panel > * { animation: tune-in .25s ease-out both; } }

.broadcast-featured { outline: 2px solid var(--signal); outline-offset: -2px; }
.match-pregame { margin: .35rem 0 0; text-align: center; color: var(--violet); font-size: .84rem; font-weight: 700; letter-spacing: .06em; }
@media (prefers-reduced-motion: no-preference) {
  .broadcast-featured { animation: broadcast-pulse 2s ease-in-out infinite; }
  @keyframes broadcast-pulse { 50% { outline-color: var(--violet); box-shadow: inset 0 0 0 3px #d0b8f940; } }
  .round-list > .broadcast-featured { animation: broadcast-pulse 2s ease-in-out infinite; }
}

.ceremony-film { grid-column: 1 / -1; min-width: 0; }
.ceremony-film h2 { margin: 0 0 .8rem; }
.ceremony-film object { display: block; width: 100%; aspect-ratio: 1000 / 562; background: #211d2c; }
.film-controls { display: flex; gap: 1rem; align-items: center; background: var(--panel); padding: .55rem .8rem; }
.film-controls button { background: var(--signal); color: var(--paper); border: 0; padding: .45rem 1rem; font: inherit; font-weight: 700; cursor: pointer; }
.film-controls input { flex: 1; min-width: 0; accent-color: var(--signal); }
.film-controls output { font-size: .85rem; font-variant-numeric: tabular-nums; }

/* Broadcast lighting sits behind the sheet; the field markings stay in the score header. */
body:has(.match-sheet) { isolation: isolate; }
body:has(.match-sheet)::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    conic-gradient(from 151deg at 7% -4%, transparent, #b6a4db23 8deg, transparent 17deg),
    conic-gradient(from 192deg at 96% -4%, transparent, #e79e7e24 10deg, transparent 19deg),
    radial-gradient(ellipse at 50% 8%, #4b3c59, transparent 76%);
}
.match-sheet .match-summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #302638;
}
.match-sheet .match-summary::before,
.match-sheet .match-summary::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.match-sheet .match-summary::before {
  inset: 8% 5%;
  border: 1px solid #d3b7c821;
  transform: perspective(38rem) rotateX(33deg);
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), #dac2cc3b 50%, transparent calc(50% + 1px)),
    radial-gradient(circle at center, transparent 3.4rem, #dac2cc36 3.45rem, transparent 3.56rem);
}
.match-sheet .match-summary::after {
  inset: -30%;
  background:
    conic-gradient(from 145deg at 30% 0%, transparent 0deg, #ddc9fa25 11deg, transparent 22deg),
    conic-gradient(from 188deg at 72% 0%, transparent 0deg, #ffb1952c 13deg, transparent 25deg);
}
@media (prefers-reduced-motion: no-preference) {
  .match-sheet .match-summary::after { animation: floodlight-sweep 17s ease-in-out infinite alternate; }

  .match-sheet[data-air="interval"] .match-summary::after,
  body:has(.match-sheet[data-air="interval"])::before { animation-play-state: paused; }
  @keyframes floodlight-sweep {
    from { transform: translateX(-7%) rotate(-5deg); }
    to { transform: translateX(7%) rotate(6deg); }
  }

}

body:has(.match-sheet)::before,
.match-summary::before, .match-summary::after { opacity: 0; }
body:has(.match-sheet[data-air])::before,
.match-sheet[data-air] .match-summary::before,
.match-sheet[data-air] .match-summary::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  body:has(.match-sheet)::before, .match-sheet .match-summary::before,
  .match-sheet .match-summary::after { transition: opacity 1.6s ease-in-out; }
  .match-sheet:not([data-air]) .match-summary::after { animation-play-state: paused; }
}
.goal-burst { position: absolute; top: 52%; pointer-events: none; width: 0; height: 0; }
.goal-burst i { position: absolute; width: 3px; height: 7px; background: #ffa487; border-radius: 2px; }
.goal-burst i:nth-child(3n) { background: #ddc9fa; }
.goal-burst i:nth-child(3n+1) { background: #ffeac8; }

.incident:has(.blast-effect) { position: relative; isolation: isolate; overflow: hidden; }
.blast-effect { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blast-effect i { position: absolute; left: 80%; top: 46%; border-radius: 50%; }
.blast-flare { background: radial-gradient(circle, #fff4ce 0%, #ffc080 16%, #dc744d99 39%, transparent 72%); }
.blast-ring { border: 2px solid #ffd4ad; box-shadow: 0 0 9px #ec9c7680; }
.blast-smoke { background: radial-gradient(ellipse, #957e91 10%, #7f697b80 45%, transparent 72%); }
.blast-ember { background: #ffba85; box-shadow: 0 0 5px #ff906b; }

.match-meta { align-items: center; flex-wrap: wrap; }
.match-meta strong { margin-inline-start: auto; }
.match-score { display: grid; justify-items: center; }
.crowd-toggle { background: transparent; color: inherit; border: 0; padding: .15em .35em; font: inherit; line-height: 1; cursor: pointer; }
.crowd-toggle[aria-pressed="true"] { color: var(--signal); }
.crowd-toggle:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.crowd-toggle:disabled { cursor: default; }
.match-score:has(.score-value:not([hidden])) .crowd-toggle { font-size: .94rem; min-height: 1.6rem; }

.venue-film { max-width: 46rem; margin: 2rem auto; }
.venue-film object { aspect-ratio: 880 / 548; }
