:root {
  --bg: #0c1a12;
  --bg2: #12261a;
  --panel: #163222;
  --panel2: #1c3d29;
  --line: rgba(120, 210, 150, 0.18);
  --text: #e8f5ec;
  --muted: #9bbfa8;
  --accent: #22c55e;
  --accent2: #f97316;
  --live: #ef4444;
  --done: #64748b;
  --wait: #38bdf8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Bebas Neue", "Noto Sans SC", Impact, sans-serif;
  --wrap: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.sport {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: middle; }
button { font: inherit; }

.field-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(34, 197, 94, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(249, 115, 22, 0.18), transparent 50%),
    linear-gradient(180deg, #0a1610 0%, #0c1a12 40%, #0e2015 100%);
  pointer-events: none;
}
.field-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,.5) 50%, transparent 51%),
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(255,255,255,.25) 29px);
}

.wrap { width: min(100% - 28px, var(--wrap)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(12, 26, 18, 0.88);
  border-bottom: 1px solid var(--line);
}
.head-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.brand-text em {
  font-style: normal;
  color: var(--accent2);
  font-size: 0.78rem;
  font-weight: 600;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.main-nav a:hover,
.main-nav a.on {
  background: linear-gradient(135deg, var(--accent), #16a34a);
  color: #04140a;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 12px;
}
.sub-nav a {
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  border: 1px solid transparent;
}
.sub-nav a:hover,
.sub-nav a.on {
  border-color: var(--accent);
  color: var(--accent);
}

.site-main { padding: 22px 0 48px; }

.sport-hero {
  position: relative;
  padding: 42px 28px;
  margin-bottom: 22px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(249, 115, 22, 0.12)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.sport-hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,.35), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  text-transform: uppercase;
}
.sport-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  letter-spacing: 0.04em;
  line-height: 1;
  font-weight: 400;
}
.hero-kw {
  margin: 10px 0 0;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.2);
  color: #ffd4a8;
  font-weight: 700;
  font-size: 0.9rem;
}
.lead {
  margin: 14px 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.02rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #16a34a);
  color: #04140a;
}
.btn.ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(0,0,0,.2);
}

.hero-mini {
  padding: 18px 0 8px;
}
.hero-mini h1 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 900;
}
.hero-mini p { margin: 8px 0 0; color: var(--muted); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.chip.on,
.chip:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: var(--accent);
  color: #b7f7cb;
}

.sec { margin: 28px 0; }
.sec-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 900;
}
.sec-title span {
  position: relative;
  padding-left: 12px;
}
.sec-title span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(var(--accent), var(--accent2));
}
.sec-title small {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.league-block { margin-bottom: 18px; }
.league-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 1rem;
}
.league-title img { width: 18px; height: 18px; }
.league-title small { color: var(--muted); font-weight: 500; }

.match-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.match-card {
  display: grid;
  grid-template-columns: 140px 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform .15s, border-color .15s, background .15s;
}
.match-card:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, 0.45);
  background: var(--panel2);
}
.mc-time { display: flex; flex-direction: column; gap: 2px; }
.mc-full { font-size: 0.82rem; font-weight: 700; color: #d4f5df; }
.mc-st { font-size: 0.75rem; color: var(--muted); font-style: normal; }
.match-card.is-live .mc-st { color: var(--live); font-weight: 700; }
.match-card.is-done .mc-st { color: var(--done); }
.match-card.is-wait .mc-st { color: var(--wait); }

.mc-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mc-team.away { justify-content: flex-end; text-align: right; }
.mc-team img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  padding: 2px;
}
.mc-team strong {
  font-size: 0.95rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-score {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  min-width: 64px;
  text-align: center;
  color: #fff;
}
.mc-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent);
  white-space: nowrap;
}
.match-card.is-live .mc-btn {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
}

.date-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 16px;
  -webkit-overflow-scrolling: touch;
}
.date-item {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-align: center;
}
.date-item b { display: block; font-size: 0.95rem; }
.date-item span { font-size: 0.72rem; color: var(--muted); }
.date-item.on {
  background: linear-gradient(135deg, rgba(34,197,94,.3), rgba(249,115,22,.2));
  border-color: var(--accent);
}

.vlist { display: flex; flex-direction: column; gap: 8px; }
.vrow {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}
.vrow:hover { border-color: var(--accent); }
.vrow span { font-weight: 600; }
.vrow time { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.news-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}
.news-card:hover { border-color: var(--accent); }
.news-card img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  background: #0a140e;
}
.news-card h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}
.news-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card time { display: block; margin-top: 8px; color: var(--muted); font-size: 0.78rem; }

.sport-panel {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel), rgba(22, 50, 34, 0.7));
  border: 1px solid var(--line);
}
.sport-panel h2 { margin: 0 0 12px; font-size: 1.3rem; font-weight: 900; }
.sport-panel h3 { margin: 18px 0 8px; font-size: 1.05rem; color: var(--accent); }
.sport-panel p { margin: 0 0 8px; color: #cfe6d7; }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 8px 0 4px; color: var(--muted); }

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.crumb a:hover { color: var(--accent); }

.match-detail {
  padding: 22px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.match-detail .kicker { margin: 0; color: var(--muted); font-size: 0.9rem; }
.match-detail h1 { margin: 8px 0 18px; font-size: 1.55rem; }
.md-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.md-board .side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.md-board .side img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  padding: 6px;
}
.md-board .mid { text-align: center; }
.md-board .mid b {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  letter-spacing: 0.06em;
}
.badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255,255,255,.08);
}
.badge.live { background: rgba(239,68,68,.25); color: #fecaca; }
.badge.wait { background: rgba(56,189,248,.2); color: #bae6fd; }
.badge.done { background: rgba(100,116,139,.3); color: #cbd5e1; }

.signals { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.sig {
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #16a34a);
  color: #04140a;
  font-weight: 800;
}
.tip { color: var(--muted); font-size: 0.9rem; }

.article {
  padding: 22px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.article h1 { margin: 0 0 12px; font-size: 1.55rem; line-height: 1.35; }
.meta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.2);
  color: var(--muted);
  font-size: 0.85rem;
}
.article .cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
}
.article .content { font-size: 1.02rem; color: #dcefe3; }
.article .content p { margin: 0 0 1em; }
.article .content img { border-radius: 10px; margin: 8px 0; }

.pn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pn a, .pn span {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  font-size: 0.9rem;
}
.pn a:hover { border: 1px solid var(--accent); }
.pn .muted { color: var(--muted); }
.pn .next { text-align: right; }

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}
.pager a, .pager span {
  min-width: 38px;
  padding: 8px 12px;
  text-align: center;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.pager .on, .pager a:hover {
  background: var(--accent);
  color: #04140a;
  border-color: var(--accent);
  font-weight: 800;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.friends {
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.2);
  padding: 14px 0;
}
.friends .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.friends .lab { color: var(--muted); font-size: 0.85rem; margin-right: 4px; }
.friends a { color: var(--muted); font-size: 0.9rem; }
.friends a:hover { color: var(--accent); }

.site-footer {
  padding: 22px 0 36px;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer p { margin: 0 0 8px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 72px;
    flex-direction: column;
    padding: 12px;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  body.nav-open { overflow: hidden; }

  .match-card {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      "time time time"
      "home score away"
      "btn btn btn";
  }
  .mc-time { grid-area: time; flex-direction: row; justify-content: space-between; }
  .mc-team.home { grid-area: home; }
  .mc-score { grid-area: score; }
  .mc-team.away { grid-area: away; }
  .mc-btn { grid-area: btn; text-align: center; }

  .news-grid { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 96px 1fr; }
  .news-card img { width: 96px; height: 72px; }
  .pn { grid-template-columns: 1fr; }
  .pn .next { text-align: left; }
  .sport-hero { padding: 28px 18px; }
  .vrow { flex-direction: column; gap: 4px; }
  .vrow time { white-space: normal; }
}

@media (max-width: 480px) {
  .brand-text b { font-size: 1.1rem; }
  .md-board .mid b { font-size: 1.8rem; }
  .sub-nav { gap: 6px; }
  .sub-nav a { padding: 4px 8px; font-size: 0.75rem; }
}
