:root {
  --red: #d0121a;
  --red-deep: #a50e15;
  --ink: #1a1a1a;
  --text: #222;
  --muted: #8a8f98;
  --line: #eceff3;
  --paper: #f5f6f8;
  --card: #fff;
  --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(1180px, calc(100% - 32px)); margin: 0 auto; }
.top {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.top:before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0 42%, #f3b23a 42% 58%, #1d4e89 58% 100%);
}
.top-bar { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.logo-img { height: 48px; width: auto; display: block; }
.nav { display: flex; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  padding: 22px 12px 18px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}
.nav a.on, .nav a:hover { color: var(--red); border-bottom-color: var(--red); }
main.wrap { padding: 18px 0 56px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .7fr);
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(208,18,26,.06), transparent 42%),
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 28px 20px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.hero:before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
}
.eyebrow {
  margin: 0 0 8px;
  letter-spacing: .22em;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}
.hero h1 { margin: 0 0 8px; font-size: 42px; line-height: 1.15; letter-spacing: .02em; }
.hero-copy p { margin: 0; max-width: 640px; color: #4b5160; }
.hero-side {
  background: #16181d;
  color: #fff;
  border-radius: 8px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 148px;
}
.hero-side b { font-size: 18px; letter-spacing: .04em; }
.hero-side span { color: #c8cdd6; font-size: 13px; }
.hero-side i {
  align-self: flex-start;
  font-style: normal;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  border-radius: 2px;
  padding: 2px 8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  text-decoration: none;
  border: 1px solid #f0d0d2;
  background: #fff;
  color: var(--red-deep);
  border-radius: 2px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
}
.chip:hover, .chip.dark:hover { background: var(--red); border-color: var(--red); color: #fff; }
.chip.dark { color: #333; border-color: var(--line); }
.block { margin: 22px 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.block-head h2, .about h2, .faq h2, .sheet h2 { margin: 0 0 12px; font-size: 20px; }
.block-head h2:before, .sheet > h1:before {
  content: "";
  display: inline-block;
  width: 4px; height: 16px;
  margin-right: 8px;
  background: var(--red);
  vertical-align: -2px;
}
.block-head a { color: var(--red); text-decoration: none; font-size: 14px; }
.sheet, .about, .faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.sheet h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.35; }
.lead { color: #3d4453; margin-top: 0; }
.board { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.match-row {
  display: grid;
  grid-template-columns: 78px 96px minmax(0,1fr) 92px;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
}
.match-row:last-child { border-bottom: 0; }
.match-row:hover { background: #fff7f7; }
.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; color: var(--ink); }
.m-time span, .m-league, .vcopy span, .ncopy span, .kicker { color: var(--muted); font-size: 12px; }
.m-league {
  justify-self: start;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9a3412;
  background: #fff4ec;
  border-radius: 2px;
  padding: 2px 8px;
  font-weight: 700;
}
.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: #f6f7f9; flex: 0 0 auto;
}
.ph {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--red); font-style: normal; font-weight: 700; background: #fff1f1;
}
.score { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 18px; color: var(--ink); }
.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.end { color: #98a0ab; }
.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,.55);
  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)); }
.lcard, .vcard, .ncard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  padding: 16px;
  transition: border-color .2s, transform .2s;
}
.lcard b, .vcopy b, .ncopy b { display: block; line-height: 1.45; }
.lcard span { color: var(--muted); font-size: 13px; }
.lcard:hover, .vcard:hover, .ncard:hover { border-color: #f3b4b6; transform: translateY(-2px); }
.vgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.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; }
.ncard { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 14px; align-items: center; padding: 0; overflow: hidden; }
.ncard img, .nph { width: 180px; height: 112px; object-fit: cover; background: #f3f4f6; }
.nph { display: flex; align-items: center; justify-content: center; color: var(--red); font-weight: 800; letter-spacing: .08em; }
.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: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: #3d4453; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.crumb a { color: #555; text-decoration: none; }
.crumb a:hover { color: var(--red); }
.kicker { margin: 0 0 6px; }
.scoreboard {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: 12px;
  align-items: center;
  background: linear-gradient(180deg, #1c1f26, #121418);
  color: #fff;
  border-radius: 8px;
  padding: 22px 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 b, .scoreboard .score b { color: #fff; }
.scoreboard .mid em { display: block; font-style: normal; color: #c5cad3; font-size: 13px; margin-top: 4px; }
.scoreboard .ph, .scoreboard img { background: #fff; }
.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(--red);
  color: #fff;
  border-radius: 4px;
  padding: 14px 10px;
  font-weight: 700;
}
.lines a:hover { background: var(--red-deep); }
.replays { list-style: none; padding: 0; margin: 0 0 12px; }
.replays li { border-bottom: 1px solid var(--line); }
.replays a { display: block; padding: 12px 2px; color: var(--ink); text-decoration: none; font-weight: 600; }
.replays a:hover { color: var(--red); }
.cover { width: 100%; border-radius: 8px; margin: 8px 0 16px; max-height: 420px; object-fit: cover; }
.article p { margin: 0 0 14px; }
.article img { border-radius: 8px; 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: 4px; padding: 6px 10px; background: #fff;
}
.pager .on, .pager a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.site-foot {
  background: #17191e;
  color: #b7bdc8;
  padding: 28px 0 36px;
  font-size: 13px;
}
.site-foot p { margin: 0 0 6px; }
.to-top {
  position: fixed; right: 16px; bottom: 16px;
  width: 44px; height: 44px; border: 0; border-radius: 4px;
  background: var(--red); color: #fff; font-size: 18px;
  box-shadow: 0 8px 18px rgba(208,18,26,.28);
  display: none; align-items: center; justify-content: center; cursor: pointer;
}
.to-top.show { display: flex; }
@keyframes pulse {
  70% { box-shadow: 0 0 0 7px 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 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 760px) {
  .wrap { width: min(1180px, calc(100% - 20px)); }
  .top-bar { min-height: 58px; gap: 8px; }
  .logo-img { height: 38px; }
  .nav a { padding: 16px 10px 12px; font-size: 14px; }
  .hero { padding: 18px 14px 14px; }
  .hero h1 { font-size: 30px; }
  .sheet, .about, .faq { padding: 16px; }
  .sheet h1 { font-size: 22px; }
  .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; }
  .lcard:hover, .vcard:hover, .ncard:hover { transform: none; }
}
