:root {
  color-scheme: dark;
  --text: #f4f8fc;
  --muted: #b7c5d6;
  --line: rgba(255, 255, 255, .16);
  --glass: rgba(14, 28, 44, .58);
  --accent: #8ee7ff;
  --live: #ff6b81;
  --gold: #ffe08a;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: clip; }
body {
  min-height: 100vh;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background:
    radial-gradient(920px 480px at 0% -10%, rgba(126, 224, 255, .28), transparent 58%),
    radial-gradient(760px 420px at 100% 0%, rgba(126, 104, 255, .24), transparent 52%),
    #071018;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-left: auto; margin-right: auto; }
main { display: block; width: 100%; }
.glass-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 16, 24, .66);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.bar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 18px; min-width: 0; }
.logo { flex: none; font-size: 26px; font-weight: 760; letter-spacing: .04em; color: #fff; }
.logo small { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 0 0 0 auto; padding: 0; list-style: none; min-width: 0; }
.menu a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.menu a[aria-current="page"], .menu a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-toggle, .nav-drawer { display: none; }
.hero { padding: 34px 0 10px; text-align: center; }
.hero h1 { margin: 0 0 10px; font-size: 40px; line-height: 1.2; }
.hero p, .lead { margin: 0 auto; max-width: 760px; color: var(--muted); line-height: 1.8; }
.league-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 18px 0 8px; }
.league-item {
  flex: 0 0 92px;
  text-align: center;
  padding: 10px 8px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
}
.league-item img { width: 46px; height: 46px; margin: 0 auto 6px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; }
.league-item span { font-size: 13px; }
.panel {
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.panel.wrap { margin-left: auto; margin-right: auto; }
.panel h2, .day-title { margin: 8px 0 12px; font-size: 20px; text-align: center; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 12px; }
.filters button, .signal, .match-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}
.filters button.is-on, .signal:hover, .match-btn:hover { background: rgba(142, 231, 255, .18); }
.match-list { width: 100%; }
.match-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 auto 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
}
.match-row[hidden] { display: none; }
.match-time { min-width: 0; text-align: center; }
.match-time b, .match-time span { display: block; }
.match-time b { font-size: 13px; font-weight: 650; line-height: 1.4; }
.match-time span, .muted { color: var(--muted); }
.match-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; min-width: 0; }
.side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.side.home { justify-content: flex-end; text-align: right; }
.side em { min-width: 0; flex: 1 1 0; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side img, .team-badge { width: 36px; height: 36px; object-fit: contain; flex: none; }
.score { color: var(--gold); font-weight: 760; letter-spacing: .04em; text-align: center; white-space: nowrap; }
.match-btn { justify-self: center; text-align: center; white-space: nowrap; }
.match-btn.is-live { color: #fff; background: rgba(255, 107, 129, .85); border-color: transparent; }
.match-btn.is-end { color: var(--muted); }
.cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.card-list { display: grid; gap: 12px; }
.news-card, .info-card {
  display: grid;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
}
.news-card { grid-template-columns: 108px minmax(0, 1fr); }
.info-card { grid-template-columns: minmax(0, 1fr); }
.news-card > span, .info-card > span { min-width: 0; }
.news-card img, .news-card .cover { width: 108px; height: 76px; object-fit: cover; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.article > .cover { width: min(100%, 720px); height: auto; margin: 8px auto 16px; border-radius: 16px; }
.news-card h3, .info-card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.45; }
.news-card p, .info-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.faq details {
  margin-bottom: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
}
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { color: var(--muted); line-height: 1.8; }
.article { width: min(860px, calc(100% - 32px)); margin-left: auto; margin-right: auto; padding-bottom: 20px; }
.article h1, .article .lead, .about-block h2 { text-align: center; }
.about-block p { text-align: left; }
.article h1 { font-size: 30px; line-height: 1.35; }
.meta-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 14px auto; list-style: none; }
.meta-list li { min-width: 0; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--muted); font-size: 13px; text-align: center; overflow-wrap: anywhere; }
.meta-list b { display: block; color: #fff; font-weight: 650; }
.content { overflow-wrap: break-word; }
.content p { line-height: 1.9; color: #e7eef6; }
.content img { width: auto; max-width: 100%; height: auto; margin: 12px auto; border-radius: 14px; }
.pager { display: grid; gap: 8px; margin-top: 18px; }
.pager a { display: block; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); text-align: center; }
.signals { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px auto; }
.signal { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; text-align: center; line-height: 1.5; white-space: normal; }
.scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: min(100%, 720px);
  margin: 18px auto;
}
.club { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; }
.scoreboard > img, .club img { width: 72px; height: 72px; object-fit: contain; justify-self: center; }
.club span { font-weight: 650; overflow-wrap: anywhere; }
.club-score { text-align: center; }
.scoreboard strong, .club-score strong { font-size: 36px; color: var(--gold); white-space: nowrap; }
.site-foot { margin-top: 20px; padding: 28px 0 36px; color: var(--muted); text-align: center; }
.site-foot .brand { margin: 0 0 8px; color: #fff; font-size: 20px; }
.friends a { display: inline-block; margin: 4px 8px; }
.crumb { margin: 18px auto 0; color: var(--muted); font-size: 13px; text-align: center; }
.crumb a { color: var(--accent); }
.empty { color: var(--muted); text-align: center; }
.about-block h2 { margin-top: 22px; }
@media (max-width: 980px) {
  .menu a { padding: 8px 8px; font-size: 14px; }
  .logo { font-size: 22px; }
}
@media (max-width: 860px) {
  .menu { display: none; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); }
  .nav-toggle img { width: 22px; height: 22px; }
  .nav-drawer {
    display: block;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 86vw);
    padding: 18px;
    background: rgba(8, 18, 30, .94);
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    transition: transform .25s ease;
  }
  body.nav-open .nav-drawer { transform: none; }
  .nav-drawer a { display: block; padding: 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
  .cards, .meta-list { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .match-row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .match-time, .match-btn { text-align: center; }
  .match-teams { width: min(100%, 420px); grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .side.home, .side.away { justify-content: center; text-align: center; }
  .side em { flex: 0 1 auto; max-width: calc(100% - 44px); }
  .scoreboard { width: min(100%, 420px); }
  .scoreboard strong, .club-score strong { font-size: 28px; }
  .article { width: min(860px, calc(100% - 32px)); }
}
