:root {
  --paper: #f4efe4;
  --ink: #1b1915;
  --muted: #5e584e;
  --line: #d8d0c2;
  --red: #8f2d2a;
  --green: #1d4a38;
  --card: #fffaf3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.masthead { padding: 18px 0 0; }
.mast-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  border-top: 3px solid var(--ink);
  padding-top: 8px;
}
.brand { display: flex; justify-content: center; margin: 14px 0 0; }
.brand img { width: min(280px, 72vw); height: auto; }
.brand-name {
  margin: 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--muted);
}
.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-top: 12px;
  border-top: 1px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.nav a img { width: 18px; height: 18px; }
.nav a.active { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); }
.hero { padding: 28px 0 8px; }
.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.12em;
}
.kicker img { width: 36px; height: 36px; }
h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  font-weight: 800;
}
h2 { margin: 0; font-size: 24px; line-height: 1.35; }
h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.45; }
.lead { margin: 0; color: var(--ink); font-size: 17px; }
.block { padding: 22px 0; border-top: 1px solid var(--line); }
.block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.block-head p { margin: 4px 0 0; color: var(--muted); }
.league-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.league-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}
.league-card img { width: 56px; height: 56px; object-fit: contain; }
.league-card strong { font-size: 14px; }
.match-list, .replay-list, .news-list { display: flex; flex-direction: column; }
.match, .replay-item, .news-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.match-meta, .detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}
.league-name { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 700; }
.league-name img { width: 22px; height: 22px; object-fit: contain; }
.teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}
.team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team.away { flex-direction: row-reverse; text-align: right; }
.team img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex: none;
}
.team span { overflow-wrap: anywhere; }
.score {
  min-width: 72px;
  text-align: center;
  font-weight: 800;
  font-size: 20px;
  color: var(--red);
}
.badge {
  display: inline-block;
  padding: 0 8px;
  border: 1px solid var(--ink);
  font-size: 12px;
  line-height: 22px;
  color: var(--ink);
  background: transparent;
}
.badge-live { color: #fff; background: var(--red); border-color: var(--red); }
.badge-finished { color: #fff; background: var(--green); border-color: var(--green); }
.match-go { margin-top: 8px; }
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}
.news-card, .news-row { background: transparent; }
.cat { margin: 0 0 4px; color: var(--red); font-size: 13px; font-weight: 700; }
.news-card h3, .news-row h2 { font-size: 18px; }
.news-card p, .news-row p { margin: 6px 0; color: var(--muted); }
.faq { padding: 12px 0; border-bottom: 1px solid var(--line); }
.faq p { margin: 0; }
.article { padding: 28px 0 10px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 14px 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}
.content p { margin: 0 0 12px; }
.detail-teams { margin: 18px 0; }
.detail-teams .team img { width: 64px; height: 64px; }
.signals { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.signals a, .text-link {
  display: inline-block;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.signals a:hover, .text-link:hover { background: var(--red); color: #fff; }
.neighbors { display: grid; gap: 8px; margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; padding: 18px 0; }
.empty { color: var(--muted); }
.site-foot {
  margin-top: 20px;
  padding: 22px 0 32px;
  background: var(--ink);
  color: #f4efe4;
}
.site-foot a { color: #f4efe4; }
.foot-desc { margin: 0 0 12px; }
.friends, .copy { margin: 0; color: #e4dccb; }
.friends a { margin-right: 12px; }
@media (max-width: 900px) {
  .league-grid { grid-template-columns: repeat(4, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 20px, 1080px); }
  .nav a { padding: 10px 12px; }
  .league-grid { grid-template-columns: repeat(2, 1fr); }
  .teams { grid-template-columns: 1fr; gap: 8px; }
  .team.away { flex-direction: row; text-align: left; }
  .score { text-align: left; }
  .block-head { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 28px; }
}
