
:root {
  --ink: #1b1916;
  --muted: #4e4942;
  --paper: #f3efe6;
  --card: #fffcf7;
  --line: #d8d0c3;
  --accent: #9e2a2b;
  --max: 1120px;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "PMingLiU", "PingFang SC", "Microsoft YaHei", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}
img { max-width: 100%; }
a { color: #8d2426; }
a:hover { color: #111; }
:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #111;
  color: #fff;
  padding: 8px 12px;
  z-index: 2;
}
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.mast-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.mast-brand {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 22px 0 18px;
}
.logo { width: 168px; height: 42px; }
.kicker { margin: 0; color: var(--accent); font-size: 13px; letter-spacing: .12em; }
h1 {
  margin: 2px 0 8px;
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.2;
  font-weight: 700;
}
.lede, .foot-desc { margin: 0; color: var(--muted); }
.double-rule { border: 0; border-top: 1px solid var(--ink); border-bottom: 4px solid var(--ink); height: 7px; margin: 0; }
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 12px 0 4px;
}
.nav-list a { color: var(--ink); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.nav-list a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-toggle { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.nav-btn { display: none; }
main { padding: 28px 0 48px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); gap: 22px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); padding: 16px; }
.sec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 14px;
  border-top: 1px solid var(--ink);
  padding-top: 12px;
}
.sec-no { font-family: var(--serif); color: var(--accent); font-size: 22px; }
.icon { width: 22px; height: 22px; border-radius: 4px; }
h2, h3 { font-family: var(--serif); line-height: 1.3; }
h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 10px; }
.sec-head h2 { margin: 0; }
h3 { font-size: 20px; margin: 0 0 6px; }
.league-grid, .news-grid { display: grid; gap: 14px; }
.league-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}
.card p, .note { margin: 0; color: var(--muted); }
.league-card { display: flex; gap: 12px; align-items: center; }
.league-cover, .badge { object-fit: cover; background: #fff; flex: none; }
.league-cover { width: 72px; height: 72px; }
.badge { width: 36px; height: 36px; border-radius: 50%; }
.team .badge { width: 72px; height: 72px; }
.live-list, .schedule, .plain-list { list-style: none; margin: 0; padding: 0; }
.live-list, .schedule { border-top: 1px solid var(--line); }
.live-list a, .schedule a, .plain-list a {
  display: grid;
  grid-template-columns: minmax(13em, auto) 4.5em minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.plain-list a { grid-template-columns: 168px minmax(0, 1fr) auto; }
.vs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 700; min-width: 0; }
.vs b { font-weight: 700; }
.state { color: var(--accent); font-size: 14px; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.team-cell { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.faq details p { margin: 0 0 12px; }
.about h3 { margin-top: 18px; }
.match-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 18px;
}
.team { width: 120px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 700; }
.team img { width: 72px; height: 72px; border-radius: 50%; background: #fff; }
.scoreboard { text-align: center; }
.scoreboard .score { margin: 0; font-family: var(--serif); font-size: 36px; line-height: 1.1; }
.meta-grid, .ameta, .signal-grid { display: grid; gap: 10px; }
.meta-grid, .ameta { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0; }
.signal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.meta-grid div, .ameta div { background: var(--card); border: 1px solid var(--line); padding: 10px 12px; }
.ameta dt { color: var(--muted); font-size: 13px; }
.ameta dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  text-decoration: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: #7d2122; color: #fff; }
.crumb { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.crumb a { color: inherit; }
.article { max-width: 72ch; }
.article p { margin: 0 0 14px; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; }
.pager a { font-weight: 700; }
footer { border-top: 4px solid var(--ink); background: #ebe6dc; padding: 22px 0 32px; }
.friends { margin: 12px 0 0; }
.friends a { display: inline-block; margin: 4px 14px 4px 0; min-height: 44px; line-height: 44px; }
.copy { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .league-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-list a, .schedule a, .plain-list a { grid-template-columns: 1fr; }
  .mast-brand { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .wrap { width: min(100% - 24px, var(--max)); }
  .nav-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 10px 0;
    padding: 0 14px;
    border: 1px solid var(--ink);
    background: var(--card);
    font-weight: 700;
    cursor: pointer;
  }
  .nav-btn .close { display: none; }
  .nav-toggle:checked + .nav-btn .open { display: none; }
  .nav-toggle:checked + .nav-btn .close { display: inline; }
  .nav-list { display: none; flex-direction: column; gap: 0; padding-top: 0; }
  .nav-toggle:checked ~ .nav-list { display: flex; }
  .feature, .league-grid, .news-grid, .meta-grid, .ameta, .signal-grid { grid-template-columns: 1fr; }
  .live-list a, .schedule a, .plain-list a { grid-template-columns: 1fr; }
  .match-hero { flex-direction: column; }
  .pager { flex-direction: column; }
  .team { width: auto; }
}
