:root {
  --bg: #070d18;
  --panel: #0f1a2e;
  --panel-2: #132238;
  --line: rgba(0, 212, 170, 0.22);
  --text: #e8eef8;
  --muted: #8a9bb5;
  --accent: #00d4aa;
  --accent-2: #ff5c4a;
  --glow: rgba(0, 212, 170, 0.35);
  --radius: 16px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --font-display: "Space Grotesk", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color .2s ease, transform .2s ease; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1140px, calc(100% - 28px)); margin: 0 auto; }
.muted { color: var(--muted); }
.center { text-align: center; }

.fx-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(0,212,170,.16), transparent 42%),
    radial-gradient(ellipse at 88% 12%, rgba(255,92,74,.12), transparent 38%),
    radial-gradient(ellipse at 50% 100%, rgba(40,90,180,.12), transparent 50%),
    linear-gradient(180deg, #050a14 0%, #0a1424 50%, #070d18 100%);
}
.fx-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,170,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  animation: gridDrift 28s linear infinite;
  opacity: .55;
}
@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(56px); }
}

.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(7, 13, 24, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px; color: inherit;
}
.brand img {
  width: 44px; height: 44px; border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(0,212,170,.4), 0 0 18px var(--glow);
  object-fit: cover;
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand:hover img {
  transform: scale(1.06) rotate(-4deg);
  box-shadow: 0 0 0 2px var(--accent), 0 0 24px var(--glow);
}
.brand strong {
  display: block; font-family: var(--font-display);
  font-size: 1.25rem; letter-spacing: .03em; color: #fff;
}
.brand small { color: var(--muted); font-size: .75rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.site-nav a {
  color: var(--text); font-size: .92rem; font-weight: 500;
  padding: 6px 4px; border-bottom: 2px solid transparent;
  position: relative;
}
.site-nav a.active, .site-nav a:hover {
  color: var(--accent); border-bottom-color: var(--accent);
}
.nav-toggle {
  display: none; background: rgba(255,255,255,.06); border: 1px solid var(--line);
  color: #fff; border-radius: 8px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer;
}

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

.hero {
  display: grid; grid-template-columns: 1.4fr .8fr; gap: 20px;
  margin-bottom: 28px;
}
.hero-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(0,212,170,.14), transparent 48%),
    linear-gradient(180deg, rgba(19,34,56,.96), rgba(10,18,34,.94));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  right: -40px; top: -50px;
  background: radial-gradient(circle, rgba(255,92,74,.28), transparent 70%);
  animation: pulseOrb 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulseOrb {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.15); opacity: 1; }
}
.kicker {
  font-family: var(--font-display);
  letter-spacing: .16em; color: var(--accent); font-size: .78rem;
  margin-bottom: 10px; position: relative;
}
.hero-card h1 {
  margin: 0 0 12px; font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem); letter-spacing: .02em;
  color: #fff; line-height: 1.15; position: relative;
}
.lead { color: var(--muted); margin: 0 0 22px; max-width: 42em; position: relative; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.center-actions { justify-content: center; margin-top: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: .92rem;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00b894);
  color: #042018;
  box-shadow: 0 8px 22px rgba(0,212,170,.28);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0,212,170,.4);
  color: #042018;
}
.btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.22);
}
.btn-ghost:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px);
}

.side-box {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 22px; padding: 18px 16px; box-shadow: var(--shadow);
}
.side-box h2 {
  margin: 0 0 12px; font-size: 1rem; font-family: var(--font-display);
  letter-spacing: .05em; color: var(--accent);
}
.side-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px; border-radius: 10px; color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .2s ease, transform .2s ease;
}
.side-list a:last-child { border-bottom: 0; }
.side-list a:hover { background: rgba(0,212,170,.08); transform: translateX(4px); }
.side-list img { width: 28px; height: 28px; object-fit: contain; }

.section { margin: 34px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.section-head h2 {
  margin: 0; font-family: var(--font-display); letter-spacing: .03em;
  font-size: 1.45rem; color: #fff;
}
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.section-head > a { color: var(--accent); font-size: .9rem; white-space: nowrap; }

.league-chips {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px;
}
.league-chip {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px; border-radius: 14px;
  background: var(--panel); border: 1px solid rgba(255,255,255,.06);
  color: #fff; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.league-chip:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(0,212,170,.16);
}
.league-chip img { width: 40px; height: 40px; object-fit: contain; }
.league-chip span { font-size: .85rem; font-weight: 600; }

.match-list {
  display: flex; flex-direction: column; gap: 8px;
  position: relative; z-index: 1;
  min-height: 48px;
}
.match-row {
  display: grid;
  grid-template-columns: 150px 72px minmax(0, 1fr) 72px;
  gap: 10px; align-items: center;
  padding: 12px 14px;
  background: var(--panel-2);
  border: 1px solid rgba(0, 212, 170, 0.16);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.match-row:hover {
  border-color: var(--accent);
  background: #16304a;
  color: #fff;
  transform: translateX(3px);
  box-shadow: 0 8px 20px rgba(0,212,170,.1);
}
.mr-time { color: var(--muted); font-size: .82rem; }
.mr-league {
  font-size: .78rem; color: var(--accent-2); font-weight: 600;
  text-align: center;
}
.mr-teams {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center;
}
.mr-teams .side {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.mr-teams .side.away { justify-content: flex-end; }
.mr-teams img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.mr-teams b {
  font-size: .92rem; color: #f3f7ff; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mr-teams .score {
  font-family: var(--font-display); font-size: 1.05rem;
  color: var(--accent); min-width: 48px; text-align: center;
}
.mr-status {
  text-align: center; font-size: .75rem; font-weight: 700;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(255,255,255,.08); color: #d7e3f5;
}
.st-live { color: #ff6b6b; background: rgba(255,90,90,.16); animation: liveBlink 1.6s ease-in-out infinite; }
.st-upcoming { color: var(--accent); background: rgba(0,212,170,.12); }
.st-finished, .st-done { color: var(--muted); }
@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .65; }
}

.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.news-card {
  background: var(--panel); border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; overflow: hidden; color: inherit;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.news-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.news-card img {
  width: 100%; height: 150px; object-fit: cover; background: #0a1424;
  transition: transform .35s ease;
}
.news-card:hover img { transform: scale(1.04); }
.news-card .body { padding: 12px 14px 16px; }
.news-card h3 {
  margin: 0 0 8px; font-size: 1rem; line-height: 1.4; color: #fff;
}
.news-card p { margin: 0; color: var(--muted); font-size: .8rem; }

.faq details {
  background: var(--panel); border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 8px;
  transition: border-color .2s ease;
}
.faq details:hover, .faq details[open] { border-color: var(--line); }
.faq summary {
  cursor: pointer; font-weight: 600; color: #fff; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--accent); }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }

.page-banner { padding: 22px 0 8px; }
.page-banner h1 {
  margin: 0 0 6px; font-family: var(--font-display);
  font-size: 1.8rem; color: #fff; letter-spacing: .03em;
}
.page-banner p { margin: 0; color: var(--muted); }
.league-title {
  display: flex; align-items: center; gap: 12px;
}
.league-title img { width: 40px; height: 40px; object-fit: contain; }

.pager {
  display: flex; gap: 10px; justify-content: center; margin-top: 22px;
}
.pager a, .pager span {
  padding: 8px 14px; border-radius: 8px;
  background: var(--panel); border: 1px solid var(--line); color: #fff;
}
.pager .disabled { opacity: .4; pointer-events: none; }

.play-card, .article {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px; box-shadow: var(--shadow);
}
.play-vs {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin: 18px 0; flex-wrap: wrap;
}
.play-vs .team {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 110px;
}
.play-vs img { width: 64px; height: 64px; object-fit: contain; }
.play-vs .vs {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--accent);
}
.signal-tabs {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin: 0 0 16px;
}
.signal-tab {
  padding: 8px 16px; border-radius: 10px;
  background: rgba(255,255,255,.06); color: var(--text);
  border: 1px solid rgba(255,255,255,.1);
  transition: all .2s ease;
}
.signal-tab:hover, .signal-tab.active {
  background: rgba(0,212,170,.15);
  border-color: var(--accent);
  color: var(--accent);
}

.meta-bar {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  color: var(--muted); font-size: .85rem; margin-bottom: 14px;
}
.article h1 { margin: 0 0 12px; color: #fff; font-size: 1.55rem; line-height: 1.35; }
.article-cover {
  width: 100%; max-height: 360px; object-fit: cover;
  border-radius: 12px; margin-bottom: 16px;
}
.article-content { color: #d5deed; font-size: 1rem; }
.article-content img { margin: 12px auto; border-radius: 10px; }
.article-content p { margin: 0 0 1em; }
.article-nav {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
}
.article-nav a { color: var(--accent); font-size: .9rem; max-width: 46%; }

.replay-list { display: flex; flex-direction: column; gap: 8px; }
.replay-item {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 14px; background: var(--panel); border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06); color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.replay-item:hover { border-color: var(--accent); transform: translateX(3px); }
.replay-item h3 { margin: 0 0 4px; font-size: 1rem; color: #fff; }
.replay-item p { margin: 0; color: var(--muted); font-size: .82rem; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 8, 16, 0.95);
  padding: 28px 0 36px; margin-top: 20px;
}
.about-block h2 {
  margin: 0 0 12px; font-family: var(--font-display); color: #fff;
}
.about-body { color: var(--muted); font-size: .92rem; }
.about-body h3 { color: var(--accent); font-size: 1rem; margin: 16px 0 8px; }
.about-body ul { padding-left: 1.2em; margin: 0 0 8px; }
.about-body .tip { color: var(--accent-2); font-size: .85rem; }
.friend-links {
  margin: 18px 0 10px; display: flex; flex-wrap: wrap; gap: 8px 14px;
  align-items: center; color: var(--muted); font-size: .88rem;
}
.friend-links a { color: var(--muted); }
.friend-links a:hover { color: var(--accent); }
.copy { margin: 0; color: #5a6a82; font-size: .8rem; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .league-chips { grid-template-columns: repeat(4, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .match-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "time status"
      "league league"
      "teams teams";
    gap: 8px 10px;
  }
  .mr-time { grid-area: time; }
  .mr-status { grid-area: status; justify-self: end; padding: 4px 10px; }
  .mr-league { grid-area: league; text-align: left; }
  .mr-teams { grid-area: teams; width: 100%; }
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 14px; right: 14px; top: 64px;
    flex-direction: column; background: #0c1628; border: 1px solid var(--line);
    border-radius: 12px; padding: 10px; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .header-inner { position: relative; }
  .league-chips { grid-template-columns: repeat(4, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .hero-card { padding: 24px 18px; min-height: auto; }
  .mr-teams b { font-size: .82rem; }
  .article-nav { flex-direction: column; }
  .article-nav a { max-width: 100%; }
  .fx-bg::after { animation: none; }
}
