:root {
  --bg: #07131f;
  --bg-2: #0c2236;
  --panel: rgba(18, 42, 64, 0.55);
  --panel-strong: rgba(14, 34, 52, 0.82);
  --line: rgba(120, 190, 220, 0.22);
  --text: #e8f3fb;
  --muted: #9eb6c9;
  --accent: #3dffb5;
  --accent-2: #1aa7ff;
  --danger: #ff5d6c;
  --warn: #ffc857;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "Noto Sans SC", "PingFang SC", sans-serif;
  --display: "Rajdhani", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #123552 0%, transparent 55%),
              radial-gradient(900px 500px at 100% 0%, #0a3a3a 0%, transparent 50%),
              linear-gradient(180deg, var(--bg), var(--bg-2) 40%, #081018);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; vertical-align: middle; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.bg-orb-a { top: -80px; left: -60px; background: #1aa7ff; }
.bg-orb-b { bottom: 10%; right: -80px; background: #3dffb5; }

.glass-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  margin: 12px auto 0;
  width: min(1180px, calc(100% - 24px));
  border-radius: 999px;
  padding: 10px 18px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}
.brand-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
}
.site-nav a.active,
.site-nav a:hover {
  color: var(--bg);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.site-main { position: relative; z-index: 1; padding: 28px 0 60px; }

.hero {
  padding: 42px 28px;
  border-radius: calc(var(--radius) + 8px);
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(26,167,255,.18), rgba(61,255,181,.08)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.hero p { margin: 0 0 20px; color: var(--muted); font-size: 1.05rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #042033;
}
.btn-ghost {
  background: rgba(255,255,255,.06);
  border-color: var(--line);
  color: var(--text);
}

.section { margin-bottom: 28px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.03em;
}
.section-head p { margin: 0; color: var(--muted); font-size: .95rem; }

.league-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}
.league-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: var(--radius);
  color: var(--text);
  transition: transform .25s ease, border-color .25s ease;
}
.league-chip:hover { transform: translateY(-3px); border-color: rgba(61,255,181,.45); }
.league-chip img { width: 36px; height: 36px; object-fit: contain; }

.match-list { display: flex; flex-direction: column; gap: 10px; }
.match-row {
  display: grid;
  grid-template-columns: 150px 1fr 110px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius);
  transition: transform .2s ease, background .2s ease;
}
.match-row:hover { transform: translateY(-2px); background: var(--panel-strong); }
.match-meta { color: var(--muted); font-size: .88rem; }
.match-meta .league { color: var(--accent); font-weight: 700; margin-right: 8px; }
.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}
.team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.team.right { justify-content: flex-end; flex-direction: row-reverse; }
.team img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.team span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.score {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  min-width: 64px;
  text-align: center;
}
.match-action { text-align: right; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
}
.badge.is-live { background: rgba(255,93,108,.18); color: var(--danger); }
.badge.is-wait { background: rgba(26,167,255,.16); color: var(--accent-2); }
.badge.is-end { background: rgba(158,182,201,.16); color: var(--muted); }

.grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.news-list, .video-list { display: flex; flex-direction: column; gap: 10px; }
.media-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  color: var(--text);
}
.media-item:hover { background: var(--panel-strong); }
.media-item img {
  width: 96px;
  height: 68px;
  object-fit: cover;
  border-radius: 12px;
  background: #123049;
}
.media-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}
.media-item .meta { color: var(--muted); font-size: .82rem; }

.card-block {
  padding: 18px;
  border-radius: var(--radius);
}
.about-box h2, .faq-box h2 { margin-top: 0; font-family: var(--display); }
.faq-item { border-top: 1px solid var(--line); padding: 12px 0; }
.faq-item:first-of-type { border-top: 0; }
.faq-item strong { display: block; margin-bottom: 6px; }
.faq-item p { margin: 0; color: var(--muted); }

.pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.pager a, .pager span {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pager .current { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #042033; border: 0; }

.article {
  padding: 24px;
  border-radius: var(--radius);
}
.article h1 { margin-top: 0; font-size: 1.7rem; line-height: 1.35; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 18px;
}
.article-content { font-size: 1.05rem; color: #d7e7f3; }
.article-content img { border-radius: 12px; margin: 12px 0; }
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.play-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: #000;
}

.signal-list { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.signal-list a {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.04);
}
.signal-list a.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #042033;
  border-color: transparent;
}

.site-footer {
  margin: 0 auto 24px;
  width: min(1180px, calc(100% - 24px));
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  z-index: 1;
}
.footer-inner { display: flex; flex-direction: column; gap: 12px; }
.footer-about p, .copyright { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.friend-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); }
.friend-links a { color: var(--muted); }
.friend-links a:hover { color: var(--accent); }

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

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .match-row { grid-template-columns: 1fr; gap: 8px; }
  .match-action { text-align: left; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    padding: 12px;
    border-radius: 16px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-header { border-radius: 20px; position: relative; }
  .team span { font-size: .92rem; }
}
