:root {
  --bg: #0b1f14;
  --bg-2: #123022;
  --card: rgba(16, 48, 32, 0.88);
  --card-border: rgba(74, 222, 128, 0.22);
  --text: #eef8f0;
  --muted: #9fbfa8;
  --accent: #22c55e;
  --accent-2: #f97316;
  --accent-3: #facc15;
  --success: #4ade80;
  --warn: #fb923c;
  --danger: #ef4444;
  --radius: 16px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --font: "DIN Alternate", "Trebuchet MS", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(11,31,20,0.92), rgba(8,24,16,0.96)),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.03) 0,
      rgba(255,255,255,0.03) 2px,
      transparent 2px,
      transparent 48px
    ),
    radial-gradient(900px 480px at 15% -5%, #1a5c35 0%, transparent 55%),
    radial-gradient(700px 420px at 90% 10%, #7a3a12 0%, transparent 50%),
    #091810;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.field-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(74,222,128,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,222,128,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  opacity: 0.45;
}

.site-header, .site-main, .site-footer { position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(9, 24, 16, 0.82);
  border-bottom: 2px solid rgba(34, 197, 94, 0.28);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  flex-shrink: 0;
}
.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(250, 204, 21, 0.65);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25), 0 8px 20px rgba(0,0,0,0.35);
  background: #0f3d24;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.15rem; letter-spacing: 0.5px; }
.brand-text em { font-style: normal; font-size: 0.78rem; color: var(--accent-3); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}
.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}
.site-nav li.active a,
.site-nav a:hover {
  color: #052e16;
  background: linear-gradient(135deg, #4ade80, #22c55e);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
  display: block;
}

.hero { padding: 36px 0 14px; }
.hero-panel {
  position: relative;
  padding: 36px 32px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(34,197,94,0.18), rgba(249,115,22,0.12) 55%, rgba(15,61,36,0.9)),
    #123022;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #22c55e 0 18px,
    #f97316 18px 36px,
    #facc15 36px 54px
  );
}
.hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: 1px;
}
.hero p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.02rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e8f8ec;
  font-size: 0.86rem;
}

.section { padding: 28px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  position: relative;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.section-head p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.league-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.league-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  transition: transform .22s ease, border-color .22s ease;
}
.league-chip:hover {
  transform: translateY(-4px);
  border-color: rgba(34,197,94,0.55);
  color: #fff;
}
.league-chip img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.match-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.match-card {
  display: block;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.match-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249,115,22,0.5);
  color: inherit;
}
.match-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.84rem;
  color: var(--muted);
}
.league-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d9f7e2;
}
.league-tag img { width: 18px; height: 18px; object-fit: contain; }
.match-card__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}
.team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.team:last-child { flex-direction: row-reverse; text-align: right; }
.team img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
}
.team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.score {
  min-width: 72px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-3);
}
.score.vs { color: var(--muted); font-size: 1rem; }

.status {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  border: 1px solid transparent;
  font-weight: 700;
}
.status--live { color: #fff; background: rgba(239,68,68,0.25); border-color: rgba(239,68,68,0.5); }
.status--upcoming { color: #052e16; background: rgba(74,222,128,0.85); border-color: rgba(34,197,94,0.6); }
.status--finished,
.status--replay { color: var(--muted); background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.news-card {
  display: block;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  color: inherit;
  height: 100%;
  transition: transform .2s ease;
}
.news-card:hover { transform: translateY(-3px); color: inherit; }
.news-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.45;
}
.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #7fa68a;
}

.content-panel,
.detail-panel,
.about-panel,
.faq-panel {
  padding: 24px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.page-title {
  margin: 28px 0 18px;
  font-size: 1.6rem;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 14px 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: #fff;
}
.faq-item p { margin: 0; color: var(--muted); }

.about-panel h2,
.detail-panel h1 { margin-top: 0; }
.about-panel h3 { margin: 22px 0 10px; color: #bbf7d0; }
.about-panel p, .about-panel li { color: var(--muted); }
.about-panel ul { padding-left: 1.2em; }

.signal-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.signal-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34,197,94,0.25), rgba(249,115,22,0.2));
  border: 1px solid rgba(34,197,94,0.35);
  color: #fff;
  font-weight: 700;
}
.signal-btn:hover { color: #fff; filter: brightness(1.08); }
.signal-btn span {
  background: #f97316;
  color: #111;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
}

.article-body {
  color: #d7eedc;
  font-size: 1.02rem;
}
.article-body 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 rgba(255,255,255,0.08);
}
.article-nav a { color: #bbf7d0; max-width: 48%; }

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 14px;
}

.site-footer {
  margin-top: 40px;
  padding: 28px 0 36px;
  border-top: 2px solid rgba(34,197,94,0.2);
  background: rgba(0,0,0,0.28);
}
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.footer-brand img { border-radius: 50%; }
.footer-brand p { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
}
.friend-links a { color: #a7d4b4; }
.copyright { margin: 0; color: #6f917a; font-size: 0.84rem; }

.play-stage {
  min-height: 360px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(160deg, #0f3d24, #1a2e18 50%, #3b1d0c);
  border: 1px solid var(--card-border);
  text-align: center;
  padding: 28px;
}
.play-stage .spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .league-grid { grid-template-columns: repeat(3, 1fr); }
  .match-list, .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    background: rgba(10, 28, 18, 0.97);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { display: block; }
  .hero-panel { padding: 28px 18px 22px; }
  .match-card__teams { grid-template-columns: 1fr; text-align: center; }
  .team, .team:last-child { justify-content: center; flex-direction: row; text-align: center; }
  .score { margin: 6px 0; }
  .article-nav { flex-direction: column; }
  .article-nav a { max-width: 100%; }
}
