:root {
  --ink: #0b1730;
  --red: #d0121a;
  --gold: #d4b06a;
  --paper: #f3f5f8;
  --text: #1c2430;
  --muted: #667085;
  --line: #e7edf4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
img { max-width: 100%; }
a { color: inherit; }
button, input { font-family: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 30; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.brand strong { display: block; font-size: 18px; letter-spacing: .04em; }
.brand small { display: block; color: var(--gold); font-size: 12px; }
.nav { display: flex; gap: 4px; overflow: auto; }
.nav a { color: rgba(255,255,255,.88); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.nav a.on, .nav a:hover { background: var(--red); color: #fff; }
.league-bar { display: flex; gap: 8px; overflow: auto; padding: 0 0 12px; }
.league-bar a { color: #d5dbe6; text-decoration: none; font-size: 13px; padding: 4px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; white-space: nowrap; }
.league-bar a:hover { border-color: var(--gold); color: var(--gold); }
.hero { position: relative; background: linear-gradient(180deg, #0b1730 0%, #16315f 100%); color: #fff; padding: 46px 0 36px; overflow: hidden; }
.hero:before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 100% 28px; pointer-events: none; mask-image: linear-gradient(#000, transparent 90%); }
.hero .container { position: relative; }
.eyebrow { margin: 0; color: var(--gold); letter-spacing: .14em; font-size: 13px; }
.hero-title { margin: 8px 0; font-size: 56px; line-height: 1.05; letter-spacing: .04em; }
.hero-sub { max-width: 680px; margin: 0; color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.75; }
.stats { display: flex; gap: 28px; margin-top: 22px; }
.stat strong { display: block; font-size: 26px; color: var(--gold); }
.stat span { font-size: 12px; color: rgba(255,255,255,.72); }
.wrap { padding: 28px 0 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.sec-head h2, .page-head h1, .article h1 { font-weight: 700; }
.sec-head h2 { margin: 0; font-size: 22px; padding-left: 10px; border-left: 4px solid var(--red); }
.sec-head a { color: var(--muted); font-size: 13px; text-decoration: none; }
.league-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.league-card { display: block; background: #fff; border-radius: 14px; padding: 14px 12px; text-decoration: none; color: var(--text); box-shadow: 0 10px 28px rgba(12,23,48,.05); }
.league-card:hover { transform: translateY(-2px); }
.mono { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.league-card b { display: block; font-size: 16px; }
.league-card span, .league-card small { display: block; color: var(--muted); font-size: 12px; }
.dates { display: flex; gap: 8px; overflow: auto; margin: 0 0 14px; }
.dates a { display: flex; flex-direction: column; text-decoration: none; color: #344054; background: #fff; border-radius: 14px; padding: 8px 14px; min-width: 72px; }
.dates a small { color: var(--muted); font-size: 12px; }
.dates a.on { background: var(--ink); color: #fff; }
.dates a.on small { color: var(--gold); }
.match-list { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(12,23,48,.05); }
.match { display: grid; grid-template-columns: 58px 58px minmax(0,1fr) 96px 64px; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.match:last-child { border-bottom: 0; }
.match time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.lg { color: var(--red); font-size: 13px; font-weight: 700; text-decoration: none; }
.teams { display: grid; grid-template-columns: minmax(0,1fr) 78px minmax(0,1fr); align-items: center; gap: 6px; text-decoration: none; color: inherit; min-width: 0; }
.side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.side.home { justify-content: flex-end; }
.side b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #eef2f6; flex: 0 0 auto; }
.score { display: flex; align-items: center; justify-content: center; gap: 4px; font-weight: 800; font-variant-numeric: tabular-nums; }
.score em { font-style: normal; }
.score i { color: #98a2b3; font-style: normal; }
.score.is-live, .st.live { color: var(--red); }
.st { font-size: 12px; color: var(--muted); text-align: center; }
.st.live { font-weight: 700; }
.st.live:before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 4px; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.go { display: inline-flex; justify-content: center; align-items: center; height: 32px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; font-size: 13px; }
.block { margin-bottom: 18px; }
.block h3, .day { margin: 8px 0 10px; font-size: 16px; }
.block h3 a, .day { color: var(--ink); text-decoration: none; }
.empty { background: #fff; border-radius: 16px; padding: 28px 16px; text-align: center; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 10px 28px rgba(12,23,48,.05); }
.thumb { display: block; height: 168px; background: #e9eef5; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
.card-body strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; min-height: 2.9em; }
.card-body em, .card-body small { color: var(--muted); font-style: normal; font-size: 13px; line-height: 1.5; }
.vcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.vcard { display: flex; flex-direction: column; gap: 8px; background: linear-gradient(160deg, #102246, #1b3f78); color: #fff; border-radius: 16px; padding: 16px; text-decoration: none; min-height: 128px; }
.vcard b { color: var(--gold); font-size: 12px; }
.vcard strong { font-size: 16px; line-height: 1.45; }
.vcard small { margin-top: auto; color: rgba(255,255,255,.72); }
.about, .article, .faq details { background: #fff; border-radius: 16px; box-shadow: 0 10px 28px rgba(12,23,48,.04); }
.about { padding: 22px; line-height: 1.9; }
.about a { color: #9a1c24; }
.faq details { padding: 14px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: #445064; line-height: 1.75; }
.page-head { background: var(--ink); color: #fff; padding: 22px 0 18px; }
.page-head h1 { margin: 6px 0; font-size: 32px; }
.page-head p { margin: 0; color: rgba(255,255,255,.75); max-width: 760px; line-height: 1.7; }
.crumb, .crumb a { color: rgba(255,255,255,.62); font-size: 13px; text-decoration: none; }
.sheet { padding: 22px 0 10px; }
.article { padding: 26px 22px; }
.article h1 { margin: 8px 0; font-size: 28px; line-height: 1.4; }
.meta { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.prose p { margin: 0 0 14px; line-height: 1.9; font-size: 16px; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: 12px auto; }
.lines { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.lines a { flex: 1; min-width: 140px; text-align: center; background: var(--ink); color: #fff; text-decoration: none; border-radius: 12px; padding: 14px 10px; }
.lines a small { display: block; color: var(--gold); font-size: 12px; }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 8px 0 16px; }
.scoreboard .club { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 700; }
.scoreboard img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #eef2f6; }
.board-score { font-size: 36px; font-weight: 800; letter-spacing: .04em; }
.board-score.is-live { color: var(--red); }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 18px 0; }
.pager a { background: #fff; color: var(--ink); text-decoration: none; border-radius: 999px; padding: 8px 14px; }
.miss { padding: 48px 0 20px; }
.site-footer { margin-top: 42px; background: var(--ink); color: #b7c0cf; padding: 28px 0 32px; text-align: center; font-size: 13px; line-height: 1.8; }
.site-footer p { margin: 0; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 980px) {
  .league-grid { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero-title { font-size: 38px; }
  .stats { gap: 16px; }
  .cards, .vcards, .league-grid { grid-template-columns: 1fr; }
  .match { grid-template-columns: auto 1fr auto; grid-template-areas: "time st go" "teams teams teams" "lg lg lg"; }
  .match time { grid-area: time; }
  .match .st { grid-area: st; text-align: right; }
  .match .go { grid-area: go; }
  .match .teams { grid-area: teams; }
  .match .lg { grid-area: lg; }
  .side b { max-width: 28vw; }
  .page-head h1, .article h1 { font-size: 24px; }
  .article { padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .st.live:before { animation: none; }
  .league-card:hover { transform: none; }
}
