:root {
  --bg: #07111f;
  --bg-2: #0c1a2e;
  --panel: rgba(14, 32, 54, 0.82);
  --panel-solid: #102338;
  --line: rgba(0, 212, 170, 0.22);
  --cyan: #00d4aa;
  --cyan-2: #38bdf8;
  --coral: #ff6b6b;
  --ink: #e8f3ff;
  --muted: #8aa4bf;
  --glow: 0 0 24px rgba(0, 212, 170, 0.25);
  --radius: 18px;
  --font-display: "Orbitron", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--cyan-2); text-decoration: none; transition: color .2s, transform .2s; }
a:hover { color: var(--cyan); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.fx-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(0, 212, 170, 0.14), transparent 45%),
    radial-gradient(ellipse at 85% 20%, rgba(56, 189, 248, 0.12), transparent 40%),
    linear-gradient(180deg, #07111f 0%, #0a1628 50%, #07111f 100%);
}
.fx-bg .orb {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.45;
  animation: drift 14s ease-in-out infinite alternate;
}
.fx-bg .o1 {
  width: 380px; height: 380px; left: -80px; top: 80px;
  background: radial-gradient(circle, rgba(0,212,170,.5), transparent 70%);
}
.fx-bg .o2 {
  width: 420px; height: 420px; right: -100px; top: 240px;
  background: radial-gradient(circle, rgba(56,189,248,.45), transparent 70%);
  animation-delay: -4s;
}
.fx-bg .grid-line {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,170,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
#fx-particles { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -24px) scale(1.08); }
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(7, 17, 31, 0.78);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.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 {
  border-radius: 14px;
  box-shadow: var(--glow);
  border: 1px solid rgba(0,212,170,0.35);
  transition: transform .25s ease;
}
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700; color: var(--ink);
  letter-spacing: 0.04em;
}
.brand-text em { font-style: normal; font-size: 0.78rem; color: var(--cyan); }

.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--panel-solid);
  color: var(--ink); border-radius: 12px; padding: 8px 14px; cursor: pointer;
}
.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a {
  color: var(--muted); padding: 8px 14px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 500;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.main-nav a:hover, .main-nav a.on {
  background: rgba(0,212,170,0.12);
  border-color: var(--line);
  color: var(--cyan);
  box-shadow: var(--glow);
}

.league-strip { border-top: 1px solid rgba(0,212,170,0.1); }
.league-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 12px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.home-leagues { padding: 0; overflow: visible; flex-wrap: wrap; }
.league-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px; background: var(--panel);
  border: 1px solid var(--line); color: var(--ink); font-size: 0.88rem;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.league-chip.on, .league-chip:hover {
  background: rgba(0,212,170,0.16);
  box-shadow: var(--glow);
  transform: translateY(-2px);
  color: var(--cyan);
}
.league-chip img { border-radius: 50%; }

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

.hero {
  position: relative; overflow: hidden;
  padding: 48px 32px; border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(0,212,170,0.16), rgba(56,189,248,0.08) 40%, rgba(14,32,54,0.9));
  border: 1px solid var(--line);
  box-shadow: var(--glow), 0 20px 50px rgba(0,0,0,0.35);
  margin-bottom: 28px;
}
.hero-pulse {
  position: absolute; width: 220px; height: 220px; right: -40px; top: -40px;
  border-radius: 50%; background: radial-gradient(circle, rgba(0,212,170,.35), transparent 70%);
  pointer-events: none;
}
.hero-art { position: absolute; right: 28px; top: 24px; width: 160px; height: 120px; }
.hero-art .float {
  position: absolute; filter: drop-shadow(0 0 10px rgba(0,212,170,0.45));
  animation: bob 3.2s ease-in-out infinite;
}
.hero-art .f1 { right: 10px; top: 8px; }
.hero-art .f2 { right: 70px; top: 48px; animation-delay: .4s; }
.hero-art .f3 { right: 20px; top: 72px; animation-delay: .8s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero h1 {
  margin: 0 0 8px; font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 700; color: #fff;
  position: relative; z-index: 1; letter-spacing: 0.04em;
}
.hero .kw {
  display: inline-block; margin-bottom: 12px; padding: 4px 14px;
  border-radius: 999px; background: rgba(0,212,170,0.18);
  border: 1px solid var(--line); color: var(--cyan);
  font-size: 0.9rem; font-weight: 700;
  position: relative; z-index: 1;
}
.hero p { margin: 0; max-width: 36em; color: var(--muted); position: relative; z-index: 1; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; position: relative; z-index: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 18px; border-radius: 999px; color: #041018; font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  border: none;
  box-shadow: 0 8px 24px rgba(0,212,170,0.35);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { color: #041018; transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 28px rgba(0,212,170,0.45); }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.ghost:hover { color: var(--cyan); background: rgba(0,212,170,0.1); }
.btn img { display: inline-block; }

.sec { margin-bottom: 32px; }
.sec-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px; font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700; letter-spacing: 0.03em;
}
.sec-title small { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.sec-title img { width: 24px; height: 24px; filter: drop-shadow(0 0 6px rgba(0,212,170,.5)); }

.match-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.match-item {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  transform-style: preserve-3d;
  will-change: transform;
}
.match-item:hover {
  border-color: rgba(0,212,170,0.55);
  box-shadow: var(--glow);
}
.match-link { display: block; padding: 14px 16px; color: inherit; }
.match-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 10px; font-size: 0.82rem; color: var(--muted);
}
.league-ico { border-radius: 50%; }
.league-name { color: var(--cyan-2); font-weight: 600; }
.st {
  margin-left: auto; padding: 2px 10px; border-radius: 999px;
  background: rgba(56,189,248,0.15); color: var(--cyan-2); font-size: 0.75rem; font-weight: 600;
}
.st-live {
  background: rgba(255,107,107,0.18); color: var(--coral);
  animation: pulse-live 1.4s ease-in-out infinite;
}
.st-finished { background: rgba(138,164,191,0.15); color: var(--muted); }
@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,107,0.35); }
  50% { box-shadow: 0 0 0 6px rgba(255,107,107,0); }
}
.match-teams {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
}
.team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team.away { flex-direction: row-reverse; text-align: right; }
.team img {
  width: 36px; height: 36px; border-radius: 50%; background: #0a1628;
  flex-shrink: 0; border: 1px solid var(--line);
}
.team span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score {
  min-width: 64px; text-align: center; font-family: var(--font-display);
  font-size: 1.25rem; color: var(--cyan);
}

.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.news-card {
  display: block; padding: 16px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,212,170,0.5);
  box-shadow: var(--glow);
  color: inherit;
}
.news-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 600; }
.news-card .sum { margin: 0 0 8px; color: var(--muted); font-size: .9rem; }
.news-card time, .news-card .cat { font-size: 0.8rem; color: var(--muted); }
.news-card .cat {
  display: inline-block; margin-bottom: 8px; padding: 2px 8px;
  border-radius: 8px; background: rgba(0,212,170,0.14); color: var(--cyan); font-weight: 600;
}

.about, .faq, .page-head, .article, .play-box {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 22px; padding: 24px;
  margin-bottom: 24px;
}
.about h2, .faq h2, .page-head h1, .article h1, .play-box h1 {
  margin-top: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em;
}
.about h3 { color: var(--cyan); font-size: 1.05rem; margin: 18px 0 8px; }
.about p, .faq p { color: var(--muted); }
.inline-ico {
  display: inline; vertical-align: middle; border-radius: 50%;
  margin-right: 8px;
}

.faq details {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; margin-bottom: 10px; background: rgba(7,17,31,0.45);
  transition: border-color .2s, box-shadow .2s;
}
.faq details:hover, .faq details[open] {
  border-color: rgba(0,212,170,0.45);
  box-shadow: var(--glow);
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq details[open] summary { color: var(--cyan); }

.crumb { margin-bottom: 16px; font-size: 0.88rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb span { margin: 0 6px; }

.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  font-size: 0.85rem; color: var(--muted); margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px dashed var(--line);
}
.article-body { color: var(--ink); font-size: 1.02rem; }
.article-body p { margin: 0 0 1em; }
.article-body img { border-radius: 12px; margin: 12px 0; }
.pager-nav {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 16px; border-top: 1px dashed var(--line);
}
.pager-nav a {
  flex: 1 1 220px; padding: 12px 14px; border-radius: 14px;
  background: rgba(7,17,31,0.55); border: 1px solid var(--line); color: var(--ink);
}
.pager-nav a:hover { border-color: var(--cyan); color: var(--cyan); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 36px; text-align: center; padding: 8px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
}
.pager .on { background: var(--cyan); color: #041018; border-color: var(--cyan); }

.play-box .play-sub {
  text-align: center; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
}
.play-box .play-sub img { display: inline-block; border-radius: 50%; }
.play-box .teams {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin: 20px 0; flex-wrap: wrap;
}
.play-box .teams .side { text-align: center; }
.play-box .teams img {
  width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%;
  border: 2px solid var(--line); box-shadow: var(--glow);
}
.play-box .vs { font-family: var(--font-display); font-size: 1.7rem; color: var(--cyan); }
.play-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.play-tip { margin-top: 18px; color: var(--muted); font-size: .9rem; text-align: center; }
.empty {
  text-align: center; padding: 28px; color: var(--muted);
  background: rgba(7,17,31,0.45); border-radius: var(--radius);
  border: 1px dashed var(--line);
}

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

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

@media (max-width: 860px) {
  .wrap { width: calc(100% - 24px); }
  .nav-toggle { display: inline-flex; }
  .site-header { position: relative; }
  .main-nav {
    display: none; position: absolute; left: 12px; right: 12px; top: 68px;
    flex-direction: column; background: var(--panel-solid); border: 1px solid var(--line);
    border-radius: 16px; padding: 10px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.45); z-index: 60;
  }
  .main-nav.open { display: flex; }
  body.nav-open { overflow: hidden; }
  .match-teams { grid-template-columns: 1fr; gap: 8px; }
  .team.away { flex-direction: row; text-align: left; }
  .score { order: -1; justify-self: start; }
  .hero { padding: 28px 18px; border-radius: 18px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-art { display: none; }
  .st { margin-left: 0; }
  .about, .faq, .page-head, .article, .play-box { padding: 18px; border-radius: 16px; }
  .news-grid { grid-template-columns: 1fr; }
  .article-meta { gap: 6px 12px; }
  .pager-nav a { flex-basis: 100%; }
}

@media (max-width: 480px) {
  .brand-text strong { font-size: 1.1rem; }
  .match-link { padding: 12px; }
  .team span { font-size: 0.95rem; }
  .friends .wrap { gap: 8px 12px; }
  .btn { width: 100%; justify-content: center; }
  .hero-cta { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-bg .orb, .hero-art .float, .st-live { animation: none; }
  .match-item, .news-card, .league-chip, .btn { transition: none; }
}
