:root {
  --ink: #011132;
  --red: #e10600;
  --gold: #c6a15b;
  --paper: #f3f5f8;
  --card: #ffffff;
  --line: #e7e9ef;
  --text: #1b2433;
  --muted: #667085;
  --live: #e10600;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.top {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 2px solid var(--gold);
}
.top-bar { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.logo-img { height: 48px; width: auto; border-radius: 8px; display: block; }
.nav { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: #d7deea;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
}
.nav a.on, .nav a:hover { background: var(--red); color: #fff; }
main.wrap { padding: 22px 0 48px; }
.hero {
  background:
    radial-gradient(circle at 90% 0%, rgba(198,161,91,.28), transparent 36%),
    var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 32px 32px 24px;
  margin-bottom: 22px;
}
.eyebrow { margin: 0 0 8px; letter-spacing: .18em; color: var(--gold); font-size: 12px; }
.hero h1 { margin: 0 0 8px; font-size: 48px; line-height: 1.1; letter-spacing: .04em; }
.hero p { margin: 0; max-width: 680px; color: #d5dced; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
}
.hero .chip { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); }
.chip:hover, .hero .chip:hover { background: var(--red); border-color: var(--red); color: #fff; }
.block { margin: 22px 0; }
.block-head, .sheet > h1 { display: flex; }
.block-head { align-items: baseline; justify-content: space-between; gap: 12px; }
.block-head h2, .about h2, .faq h2, .sheet h2 { margin: 0 0 12px; font-size: 22px; }
.block-head a { color: var(--red); text-decoration: none; font-size: 14px; }
.sheet, .about, .faq, .board, .lgrid, .vgrid, .ngrid {
  background: var(--card);
}
.sheet, .about, .faq {
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(1,17,50,.04);
}
.sheet h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.3; }
.lead { color: #3d485b; margin-top: 0; }
.board { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.match-row {
  display: grid;
  grid-template-columns: 78px 92px minmax(0,1fr) 88px;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.match-row:last-child { border-bottom: 0; }
.match-row:hover { background: #fafbfc; }
.m-time b, .score b { font-variant-numeric: tabular-nums; }
.m-time { display: flex; flex-direction: column; line-height: 1.3; }
.m-time b { font-size: 16px; }
.m-time span, .m-league, .vcopy span, .ncopy span, .kicker { color: var(--muted); font-size: 12px; }
.m-league {
  justify-self: start;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #f4f6fa;
  border-radius: 999px;
  padding: 3px 8px;
}
.teams { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; align-items: center; }
.team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team.away { flex-direction: row-reverse; }
.team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.team img, .ph, .vlogos img, .scoreboard img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: contain; background: #f4f6fa; flex: 0 0 auto;
}
.ph {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); font-style: normal; font-weight: 700;
}
.score { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 18px; }
.score .vs, .vs { color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.score em { font-style: normal; color: var(--muted); }
.m-state { justify-self: end; font-size: 13px; color: var(--muted); }
.m-state.live { color: var(--live); font-weight: 700; }
.m-state.live:before, .mid em.live:before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px; margin-right: 5px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(225,6,0,.6);
  animation: pulse 1.6s infinite;
}
.m-only { display: none; }
.lgrid, .vgrid, .ngrid { display: grid; gap: 12px; }
.lgrid { grid-template-columns: repeat(5, minmax(0,1fr)); background: transparent; box-shadow: none; }
.lcard, .vcard, .ncard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  padding: 14px;
}
.lcard b, .vcopy b, .ncopy b { display: block; }
.lcard span { color: var(--muted); font-size: 13px; }
.lcard:hover, .vcard:hover, .ncard:hover { border-color: #f0b4b0; }
.vgrid { grid-template-columns: repeat(2, minmax(0,1fr)); background: transparent; }
.vcard { display: flex; gap: 12px; align-items: center; }
.vlogos { display: flex; }
.vlogos img, .vlogos .ph { margin-right: -8px; border: 2px solid #fff; }
.ngrid { grid-template-columns: 1fr; background: transparent; }
.ncard { display: grid; grid-template-columns: 168px minmax(0,1fr); gap: 14px; align-items: center; padding: 0; overflow: hidden; }
.ncard img, .nph { width: 168px; height: 112px; object-fit: cover; background: #eef2f7; }
.nph { display: flex; align-items: center; justify-content: center; color: var(--ink); font-weight: 800; }
.ncopy { padding-right: 14px; }
.about { margin-top: 22px; }
.about p { margin: 0 0 12px; }
.faq { margin-top: 16px; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: #3d485b; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.crumb a { color: var(--ink); text-decoration: none; }
.kicker { margin: 0 0 6px; }
.scoreboard {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: 12px;
  align-items: center;
  background: #f7f8fb;
  border-radius: 16px;
  padding: 18px;
  margin: 12px 0 18px;
}
.scoreboard .side { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 18px; }
.scoreboard .side:last-child { flex-direction: row-reverse; text-align: right; }
.scoreboard .mid { text-align: center; }
.scoreboard .mid em { display: block; font-style: normal; color: var(--muted); font-size: 13px; }
.lines { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lines a {
  flex: 1;
  min-width: 140px;
  text-align: center;
  text-decoration: none;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 14px 10px;
  font-weight: 700;
}
.lines a:hover { background: var(--red); }
.replays { list-style: none; padding: 0; margin: 0 0 12px; }
.replays a { color: var(--ink); }
.cover { width: 100%; border-radius: 14px; margin: 8px 0 16px; max-height: 420px; object-fit: cover; }
.article p { margin: 0 0 14px; }
.article img { border-radius: 12px; height: auto; }
.more-link a { color: var(--red); }
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pager a, .pager span {
  min-width: 36px; text-align: center; text-decoration: none;
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff;
}
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.site-foot { padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
.site-foot p { margin: 0 0 4px; }
.to-top {
  position: fixed; right: 16px; bottom: 16px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 8px 20px rgba(1,17,50,.16);
  display: none; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.to-top.show { display: flex; }
.to-top img { width: 18px; height: 18px; }
@keyframes pulse {
  70% { box-shadow: 0 0 0 6px rgba(225,6,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(225,6,0,0); }
}
@media (max-width: 900px) {
  .lgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 760px) {
  .wrap { width: min(1120px, calc(100% - 20px)); }
  .top-bar { min-height: 64px; gap: 10px; }
  .logo-img { height: 40px; }
  .hero { padding: 22px 16px 16px; border-radius: 16px; }
  .hero h1 { font-size: 32px; }
  .sheet, .about, .faq { padding: 16px; border-radius: 14px; }
  .sheet h1 { font-size: 24px; }
  .d-only { display: none; }
  .m-only { display: inline; }
  .m-league { display: none; }
  .match-row { grid-template-columns: 1fr auto; grid-template-areas: "time state" "teams teams"; gap: 6px 10px; }
  .m-time { grid-area: time; }
  .m-state { grid-area: state; }
  .teams { grid-area: teams; }
  .vgrid, .ncard, .lgrid { grid-template-columns: 1fr; }
  .ncard { grid-template-columns: 112px minmax(0,1fr); }
  .ncard img, .nph { width: 112px; height: 84px; }
  .scoreboard .side { font-size: 15px; }
  .team span { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .m-state.live:before, .mid em.live:before { animation: none; }
}
