:root {
  --bg: #07080c;
  --bg-elev: #0c0e14;
  --surface: #141722;
  --surface-2: #1a1e2b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f5f7;
  --muted: #9aa3b5;
  --dim: #6b7385;
  --crimson: #ff2d3a;
  --crimson-2: #ff5a64;
  --crimson-deep: #b01020;
  --gold: #e8b84a;
  --live: #22c55e;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --header-h: 72px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(255, 45, 58, 0.18), transparent 60%),
    radial-gradient(720px 360px at 92% 8%, rgba(232, 184, 74, 0.08), transparent 55%),
    radial-gradient(circle at 50% 120%, rgba(255, 45, 58, 0.06), transparent 40%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--crimson);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(7, 8, 12, 0.42);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 8, 12, 0.88);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 18px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--crimson), var(--crimson-deep));
  box-shadow: 0 0 0 4px rgba(255, 45, 58, 0.16);
  display: grid;
  place-items: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  position: relative;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--crimson);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--crimson);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: #fff;
  position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

.ticker {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  background: #0a0c12;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 38px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--live);
  font-weight: 700;
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% { transform: scale(0.75); opacity: 0.7; }
}

.hero {
  position: relative;
  z-index: 1;
  padding: 72px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(232, 184, 74, 0.06);
}

h1,
.h1 {
  margin: 16px 0 14px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h1 span {
  color: var(--crimson-2);
}

.lead {
  margin: 0 0 28px;
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--crimson);
  color: #fff;
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  padding: 4px 0;
}

.stat b {
  display: block;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.stat span {
  color: var(--dim);
  font-size: 13px;
}

.live-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.live-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 20%;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 45, 58, 0.22), transparent 65%);
  pointer-events: none;
}

.live-card-top,
.scoreboard,
.match-meta {
  position: relative;
  z-index: 1;
}

.live-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.court {
  position: relative;
  height: 210px;
  border-radius: 16px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.court img,
.media img,
.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.court-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 12px;
}

.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.team {
  text-align: center;
}

.team small {
  display: block;
  color: var(--dim);
  font-size: 12px;
}

.team strong {
  font-size: 18px;
}

.score {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--crimson-2);
}

.section {
  position: relative;
  z-index: 1;
  padding: 72px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-btn,
.tab-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.filter-btn.is-active,
.tab-btn.is-active {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

th {
  color: var(--dim);
  font-weight: 600;
  background: #10131c;
}

tr:last-child td {
  border-bottom: 0;
}

.league-tag {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 700;
}

.status-live {
  color: var(--live);
  font-weight: 700;
}

.status-soon {
  color: var(--gold);
}

.link-watch {
  color: var(--crimson-2);
  font-weight: 700;
}

.note {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 12px;
}

.league-grid,
.feature-grid,
.review-grid,
.news-grid {
  display: grid;
  gap: 16px;
}

.league-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.league-card,
.feature-card,
.review-card,
.news-card,
.side-card,
.stat-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.league-card {
  overflow: hidden;
  padding: 0 0 18px;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.media {
  overflow: hidden;
}

.league-card .media {
  height: 132px;
  margin-bottom: 16px;
}

.news-card .media {
  height: 168px;
  margin: 0 -20px 14px;
}

.side-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
}

.side-card .media {
  height: 76px;
  border-radius: 12px;
}

.page-banner {
  height: 240px;
  margin: 8px 0 28px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

figure {
  margin: 0;
}

.league-card:hover {
  border-color: rgba(255, 45, 58, 0.45);
  transform: translateY(-4px);
}

.league-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 45, 58, 0.12);
  color: var(--crimson-2);
  font-size: 22px;
}

.league-card h3 {
  margin: 0 0 6px;
  padding: 0 12px;
  font-size: 20px;
}

.league-card p {
  margin: 0;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.review-card {
  padding: 24px;
}

.feature-card h3,
.review-card h3,
.news-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.feature-card p,
.review-card p,
.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.feature-no {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.news-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 16px;
}

.news-grid {
  grid-template-columns: 1fr 1fr;
}

.news-card {
  overflow: hidden;
  padding: 0 20px 20px;
}

.news-card .meta {
  display: flex;
  gap: 10px;
  color: var(--dim);
  font-size: 12px;
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-card {
  padding: 16px 18px;
}

.side-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.side-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-panel[hidden] {
  display: none;
}

.review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stars {
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 45, 58, 0.18);
  font-weight: 800;
}

.review-user small {
  display: block;
  color: var(--dim);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-item button::after {
  content: "+";
  color: var(--gold);
}

.faq-item.is-open button::after {
  content: "–";
}

.faq-item .faq-body {
  display: none;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 14px;
}

.faq-item.is-open .faq-body {
  display: block;
}

.seo-block {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), var(--surface));
}

.seo-block h2 {
  margin-top: 0;
}

.seo-block p,
.seo-block li {
  color: var(--muted);
}

.crumbs {
  position: relative;
  z-index: 1;
  padding: 22px 0 0;
  color: var(--dim);
  font-size: 13px;
}

.crumbs a:hover {
  color: var(--text);
}

.page-hero {
  position: relative;
  z-index: 1;
  padding: 28px 0 12px;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
}

.prose {
  position: relative;
  z-index: 1;
  padding-bottom: 72px;
}

.prose h2 {
  margin-top: 36px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: #08090e;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 28px;
}

.site-footer h4 {
  margin: 0 0 12px;
  font-size: 14px;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--muted);
  font-size: 14px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

.disclaimer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
  line-height: 1.8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--dim);
  font-size: 12px;
}

.hot-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.hot-search a {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
}

@media (max-width: 980px) {
  .hero-grid,
  .news-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .league-grid,
  .feature-grid,
  .review-grid,
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px 24px;
    background: #0c0e14;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero {
    padding-top: 40px;
  }

  .league-grid,
  .feature-grid,
  .review-grid,
  .news-grid,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .page-banner {
    height: 168px;
  }

  .side-card {
    grid-template-columns: 64px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot::before { animation: none; }
}
