:root {
  --cyan: #38bdf8;
  --cyan-deep: #0ea5e9;
  --violet: #818cf8;
  --ink: #e8f1ff;
  --muted: #9bb0c9;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --line: rgba(56, 189, 248, 0.28);
  --shadow: 0 12px 40px rgba(2, 12, 32, 0.35);
  --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: #07111f;
  line-height: 1.7;
  min-height: 100vh;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #7dd3fc; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.glass-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 10% -5%, rgba(14, 165, 233, 0.35), transparent 55%),
    radial-gradient(700px 480px at 90% 0%, rgba(129, 140, 248, 0.28), transparent 50%),
    radial-gradient(640px 420px at 50% 100%, rgba(6, 182, 212, 0.18), transparent 55%),
    linear-gradient(180deg, #06101d 0%, #0a1628 45%, #07111f 100%);
}
.glass-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(56,189,248,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .45;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(7, 17, 31, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0; position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand img {
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(56,189,248,.35), 0 8px 24px rgba(14,165,233,.25);
  background: rgba(255,255,255,.08);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700; letter-spacing: .04em; color: #f0f9ff;
}
.brand-text em { font-style: normal; font-size: 0.75rem; color: var(--muted); }

.nav-toggle {
  display: none; border: 1px solid var(--line);
  background: var(--glass); color: var(--ink);
  border-radius: 12px; padding: 8px 14px; cursor: pointer;
  backdrop-filter: blur(10px);
}
.main-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink); padding: 8px 14px; border-radius: 12px;
  border: 1px solid transparent;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.main-nav a:hover, .main-nav a.on {
  background: linear-gradient(135deg, rgba(14,165,233,.35), rgba(129,140,248,.28));
  border-color: var(--line);
  box-shadow: 0 0 20px rgba(56,189,248,.15);
  color: #fff;
}

.league-strip { border-top: 1px solid rgba(56,189,248,.15); }
.league-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 12px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.league-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--line);
  color: var(--ink); font-size: 0.88rem;
  backdrop-filter: blur(12px);
}
.league-chip.on, .league-chip:hover {
  background: var(--glass-strong); border-color: var(--cyan); color: #e0f2fe;
}
.league-chip img { border-radius: 50%; background: rgba(255,255,255,.85); }

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

.hero {
  position: relative; overflow: hidden;
  padding: 42px 28px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(14,165,233,.18), rgba(129,140,248,.14));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  margin-bottom: 28px;
}
.hero::before {
  content: "";
  position: absolute; width: 220px; height: 220px; right: -40px; top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.35), transparent 70%);
  pointer-events: none;
}
.hero h1 {
  margin: 0 0 8px; font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 700;
  letter-spacing: .06em; color: #f8fbff; position: relative;
}
.hero .kw {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px;
  border-radius: 999px; background: rgba(56,189,248,.16);
  border: 1px solid var(--line); color: var(--cyan); font-size: 0.9rem;
}
.hero p { margin: 0; max-width: 38em; color: var(--muted); position: relative; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; position: relative; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 12px; color: #041018; font-weight: 600;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  box-shadow: 0 8px 22px rgba(14,165,233,.35);
}
.btn.ghost {
  background: var(--glass); color: var(--ink); border: 1px solid var(--line);
  box-shadow: none; font-weight: 500;
}

.sec { margin-bottom: 32px; }
.sec-title {
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 0 14px; font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700; letter-spacing: .04em;
}
.sec-title small { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.sec-title img { width: 22px; height: 22px; }

.match-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.match-item {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); overflow: hidden;
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.match-item:hover {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,.55);
  box-shadow: 0 16px 36px rgba(2,12,32,.45), 0 0 24px rgba(56,189,248,.12);
}
.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%; background: rgba(255,255,255,.9); }
.league-name { color: var(--cyan); font-weight: 500; }
.st {
  margin-left: auto; padding: 2px 10px; border-radius: 999px;
  background: rgba(129,140,248,.22); color: #c7d2fe; font-size: 0.75rem;
}
.st-live { background: rgba(239,68,68,.22); color: #fecaca; }
.st-finished { background: rgba(148,163,184,.18); color: #cbd5e1; }
.st-upcoming { background: rgba(56,189,248,.18); color: #bae6fd; }
.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: rgba(255,255,255,.92); flex-shrink: 0;
}
.team span { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score {
  min-width: 64px; text-align: center; font-family: var(--font-display);
  font-size: 1.15rem; color: var(--cyan); letter-spacing: .04em;
}
.vod-title {
  margin: 10px 0 0; font-size: .9rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.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(--glass); border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(12px); color: inherit; transition: transform .25s, border-color .25s;
}
.news-card:hover { transform: translateY(-2px); color: inherit; border-color: var(--cyan); }
.news-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 500; }
.news-card time, .news-card .cat { font-size: 0.8rem; color: var(--muted); }

.about, .faq, .page-head, .article, .play-box {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: 22px; padding: 24px; box-shadow: var(--shadow);
  backdrop-filter: blur(14px); margin-bottom: 24px;
}
.about h2, .faq h2, .page-head h1, .article h1 {
  margin-top: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: .03em;
}
.about h3 { color: var(--cyan); font-size: 1.05rem; margin: 18px 0 8px; }
.about p, .faq p { color: var(--muted); }

.faq details {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; margin-bottom: 10px; background: rgba(255,255,255,.05);
}
.faq summary { cursor: pointer; font-weight: 500; 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 solid var(--line);
}
.pager-nav a {
  flex: 1 1 220px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--ink);
}
.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: 10px;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink);
}
.pager .on {
  background: linear-gradient(135deg, var(--cyan-deep), var(--violet));
  color: #041018; border-color: transparent; font-weight: 600;
}

.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%;
  background: rgba(255,255,255,.92);
}
.play-box .vs { font-family: var(--font-display); font-size: 1.5rem; color: var(--cyan); }
.play-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.video-links { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.video-links a {
  display: block; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--ink);
}
.empty {
  text-align: center; padding: 28px; color: var(--muted);
  background: rgba(255,255,255,.04); border-radius: var(--radius); border: 1px dashed var(--line);
}

.friends {
  border-top: 1px solid var(--line);
  background: rgba(7,17,31,.65);
  backdrop-filter: blur(10px);
  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) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 16px; right: 16px; top: 68px;
    flex-direction: column; z-index: 60;
    background: rgba(10, 22, 40, 0.96); border: 1px solid var(--line);
    border-radius: 16px; padding: 10px; box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }
  .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; }
  .hero { padding: 28px 18px; }
  .st { margin-left: 0; }
  .brand-text strong { font-size: 1.05rem; }
}
