/* ============================================
   TOPIC PAGES UNIFIED DESIGN SYSTEM
   Warm gold/amber · Editorial aesthetic · Matches index
   ============================================ */
@import url('./styles/tokens-2026.css');

/* ─── Design Tokens (legacy override — prefer styles/tokens-2026.css) ─── */
:root {
  --gold-50:  #fff9eb;
  --gold-100: #fef3c7;
  --gold-200: #fde68a;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;
  --gold-800: #92400e;
  --gold-900: #78350f;
  --surface-0:  #050508;
  --surface-1:  #0a0b12;
  --surface-2:  #11131e;
  --surface-3:  #181b2a;
  --surface-4:  #1f2336;
  --border-subtle: rgba(245, 158, 11, 0.08);
  --border-soft:   rgba(245, 158, 11, 0.15);
  --border-glow:   rgba(245, 158, 11, 0.3);
  --text-primary:  #f1f1f6;
  --text-secondary:#9ca3af;
  --text-muted:    #6b7280;
  --green: #10b981;
  --green2: #34d399;
  --red: #ef4444;
  --red2: #f87171;
  --cyan: var(--gold-400);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--surface-0);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── Background Ambient ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(245,158,11,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 90%, rgba(245,158,11,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* ─── Particles Canvas ─── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ─── Theme Toggle ─── */
#theme-toggle {
  position: fixed;
  top: 72px;
  right: 20px;
  z-index: 999;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(17,19,30,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
#theme-toggle button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 32px;
  transition: all 0.25s ease;
  color: var(--text-muted);
  line-height: 1;
}
#theme-toggle button:hover,
#theme-toggle button:focus-visible {
  background: rgba(245,158,11,0.12);
  color: var(--gold-400);
  outline: none;
}

/* ─── Navigation ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-0);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 24px;
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 2px 12px rgba(245,158,11,0.3);
}
.nav-brand span {
  color: var(--gold-400);
}
.nav-links {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  text-decoration: none;
  color: var(--gold-300);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}
.nav-links a:hover {
  color: var(--gold-200);
  background: rgba(245,158,11,0.1);
}
.nav-links a.active {
  color: var(--gold-400);
  background: rgba(245,158,11,0.15);
  font-weight: 800;
  box-shadow: 0 0 0 1px var(--border-glow) inset;
}

/* ─── Content Container ─── */
.container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ─── Topic Hero ─── */
.topic-hero {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.35s ease;
}
.topic-hero:hover {
  border-color: var(--border-soft);
}
.topic-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.2), transparent);
}
.topic-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 0% 100%, rgba(245,158,11,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.topic-hero-left {
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.topic-hero-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topic-hero-title .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.topic-hero-sub {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topic-hero-right {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  background: rgba(0,0,0,0.15);
  border-left: 1px solid var(--border-subtle);
  flex-shrink: 0;
  max-width: 420px;
  overflow: visible;
  position: relative;
  z-index: 1;
}
.topic-hero-clock {
  text-align: right;
  flex-shrink: 0;
  min-width: 0;
  overflow: visible;
}
.topic-hero-clock .label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 4px;
}
.topic-hero-clock .time {
  font-family: 'DM Serif Display', 'Noto Serif SC', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-400);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.topic-hero-clock .date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topic-hero-schedule {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.topic-hero-schedule .label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 4px;
}
.topic-hero-schedule .time {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold-400);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.topic-hero-schedule .desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ─── Topic Latest (Lottery Results) ─── */
.topic-latest {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  transition: border-color 0.35s ease;
}
.topic-latest:hover {
  border-color: var(--border-soft);
}
.topic-latest-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.topic-latest-info .label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.topic-latest-info .term {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 2px 0;
  font-variant-numeric: tabular-nums;
}
.topic-latest-info .date {
  font-size: 12px;
  color: var(--text-muted);
}
.topic-latest-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topic-latest-next {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topic-latest-next .label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.topic-latest-next .term {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-400);
  font-variant-numeric: tabular-nums;
}

/* ─── Topic Countdown ─── */
.topic-countdown {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  transition: border-color 0.35s ease;
}
.topic-countdown:hover {
  border-color: var(--border-soft);
}
.topic-countdown-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topic-countdown-left .label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}
.countdown {
  font-family: 'DM Serif Display', 'Noto Serif SC', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-400);
  font-variant-numeric: tabular-nums;
}
.draw-rule {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Section Title ─── */
.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 40px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
.section-title .icon {
  font-size: 1.2rem;
}
.section-title:first-of-type {
  margin-top: 24px;
}

/* ─── Generic Card ─── */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.15);
}
.card:hover {
  border-color: var(--border-soft);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35), 0 2px 6px rgba(245,158,11,0.08);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.card-header h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}
.card-header .badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.card.muted {
  color: var(--text-muted);
  font-size: 14px;
}

/* ─── Tables ─── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 92%, transparent 100%);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--gold-400);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
tr:hover td {
  background: rgba(245,158,11,0.03);
}
td code {
  background: rgba(245,158,11,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--gold-300);
}

/* ─── Review Cards ─── */
.topic-reviews {
  display: grid;
  gap: 16px;
}
.review-card {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.35s ease, transform 0.2s ease;
}
.review-card:hover {
  border-color: var(--border-soft);
  transform: translateY(-2px);
}
.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.review-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge-draw {
  background: rgba(245,158,11,0.12);
  color: var(--gold-400);
}
.badge-loss {
  background: rgba(239,68,68,0.12);
  color: var(--red2);
}
.badge-win {
  background: rgba(16,185,129,0.12);
  color: var(--green2);
}
.review-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 12px 0;
}
.review-result {
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.review-result .model {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.review-result .amount {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: 'DM Serif Display', 'Noto Serif SC', Georgia, serif;
}
.review-result .detail {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.review-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.profit { color: var(--green); }
.loss { color: var(--red); }

/* ─── Knowledge Items ─── */
.knowledge-item {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 10px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.knowledge-item:hover {
  border-color: var(--border-soft);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 1px 4px rgba(245,158,11,0.05);
}
.knowledge-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 4px;
}
.knowledge-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Data Source Links ─── */
.card ul {
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  list-style: none;
}
.card ul li {
  padding: 4px 0;
  position: relative;
}
.card ul li::before {
  content: '•';
  color: var(--gold-500);
  position: absolute;
  left: -14px;
  font-weight: bold;
}
.card a {
  color: var(--gold-400);
  text-decoration: none;
  transition: color 0.2s;
}
.card a:hover {
  color: var(--gold-300);
  text-decoration: underline;
}

/* ─── Footer ─── */
footer {
  text-align: center;
  padding: 40px 0 20px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}
footer p {
  color: var(--text-muted);
}
footer p:last-child {
  margin-top: 6px;
  opacity: 0.6;
}

/* ─── Football: World Cup Banner ─── */
.world-cup-banner {
  background: linear-gradient(135deg, #0c1929, #1a2d47);
  border: 1px solid rgba(6,182,212,0.25);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 16px rgba(6,182,212,0.08);
  flex-wrap: wrap;
}
.world-cup-banner .world-cup-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}
.world-cup-banner .world-cup-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.world-cup-banner .world-cup-info p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}
.world-cup-banner .world-cup-status {
  margin-left: auto;
  text-align: center;
  flex-shrink: 0;
}
.world-cup-banner .world-cup-status .label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.world-cup-banner .world-cup-status .time {
  font-family: 'DM Serif Display', 'Noto Serif SC', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
}

/* ─── Football: Match Cards ─── */
.matches-section-card {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.day-matches-date {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.day-matches-date .count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.day-matches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.match-card {
  background: var(--surface-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.match-card:hover {
  border-color: var(--border-soft);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
/* Pool tags (竞彩玩法标签) */
.pool-tag {
  font-weight: 700;
  letter-spacing: 0.03em;
}
.match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.match-league {
  font-size: 12px;
  color: var(--gold-400);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.team-logo {
  font-size: 1.5rem;
  line-height: 1;
}
.team-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.vs {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
}
.match-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
}
.odds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}
.odd-item {
  text-align: center;
  padding: 6px 4px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}
.odd-item .odd-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.odd-item .odd-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.handicap-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}
.handicap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.handicap-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-400);
}
.handicap-odds {
  display: flex;
  gap: 12px;
}
.handicap-odd {
  display: flex;
  align-items: center;
  gap: 6px;
}
.handicap-odd-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.handicap-odd-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.countdown-badge {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 100px;
  font-weight: 700;
  background: rgba(245,158,11,0.12);
  color: var(--gold-400);
  white-space: nowrap;
}
.status-badge {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 100px;
  font-weight: 700;
  white-space: nowrap;
}
.status-live {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
}
.status-ended {
  background: rgba(107,114,128,0.12);
  color: var(--text-muted);
}

/* ─── Data Sources Grid (football & lottery pages) ─── */
.data-sources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .data-sources-grid {
    grid-template-columns: 1fr;
  }
}
.data-source-card {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.15);
}
.data-source-card:hover {
  border-color: var(--border-soft);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35), 0 2px 6px rgba(245,158,11,0.06);
}
.data-source-card .ds-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.data-source-card .ds-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ds-icon-jingcai { background: linear-gradient(135deg, #fef3c7, #f59e0b); }
.ds-icon-leisu   { background: linear-gradient(135deg, #dbeafe, #3b82f6); }
.ds-icon-api     { background: linear-gradient(135deg, #d1fae5, #10b981); }
.data-source-card .ds-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.data-source-card .ds-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}
.data-source-card .ds-info {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 10px;
}
.data-source-card .ds-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--gold-400);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.data-source-card .ds-link:hover {
  color: var(--gold-300);
  text-decoration: underline;
}
.data-source-card .ds-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.data-source-card .ds-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--surface-3);
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.data-source-card .ds-tag.priority {
  background: rgba(245,158,11,0.1);
  color: var(--gold-600);
  font-weight: 700;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .topic-hero {
    flex-direction: column;
    text-align: center;
  }
  .topic-hero-left {
    flex-direction: column;
    align-items: center;
  }
  .topic-hero-right {
    flex-direction: column;
    align-items: center;
    max-width: none;
    gap: 16px;
    padding: 16px 20px;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }
  .topic-hero-clock {
    text-align: center;
  }
  .topic-hero-title {
    font-size: 24px;
  }
  .topic-latest {
    flex-direction: column;
    align-items: flex-start;
  }
  .topic-countdown {
    flex-direction: column;
    align-items: flex-start;
  }
  .review-results {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 24px 16px 60px;
  }
  .nav-links {
    gap: 2px;
  }
  .nav-links a {
    font-size: 0.88rem;
    padding: 6px 8px;
  }
}

@media (max-width: 480px) {
  .topic-hero-title {
    font-size: 20px;
  }
  .topic-hero-left {
    padding: 20px;
  }
  .topic-latest {
    padding: 18px 20px;
  }
  .topic-countdown {
    padding: 16px 20px;
  }
  .card {
    padding: 18px 16px;
  }
  #theme-toggle {
    top: 10px;
    right: 10px;
  }
}

/* ─── Wide Screen Optimization (≥1400px) ─── */
@media (min-width: 1400px) {
  .nav-container {
    max-width: 1800px;
  }
  .container {
    max-width: 1700px;
  }
  /* Wider review results: 3-col → 4-col */
  .review-results {
    grid-template-columns: repeat(4, 1fr);
  }
  /* Wider card grids */
  .data-sources-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Wider match cards: 4 per row */
  .day-matches {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1900px) {
  .nav-container {
    max-width: 2100px;
  }
  .container {
    max-width: 1960px;
  }
  .topic-hero {
    gap: 24px;
  }
  .review-results {
    gap: 16px;
  }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Light Theme ─── */
body.light-theme {
  --surface-0: #fafaf7;
  --surface-1: #f5f4f0;
  --surface-2: #fefefe;
  --surface-3: #f0efe9;
  --surface-4: #e8e6dd;
  --text-primary: #1a1a1e;
  --text-secondary: #6b6b75;
  --text-muted: #9a9aa5;
  --border-subtle: rgba(180,83,9,0.06);
  --border-soft: rgba(180,83,9,0.12);
  --border-glow: rgba(180,83,9,0.25);
}
body.light-theme::before {
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(245,158,11,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 90%, rgba(245,158,11,0.03) 0%, transparent 60%);
}
body.light-theme #theme-toggle {
  background: rgba(255,255,255,0.85);
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  border-color: rgba(180,83,9,0.12);
}
body.light-theme #theme-toggle button {
  color: #8a8a95;
}
body.light-theme #theme-toggle button:hover,
body.light-theme #theme-toggle button:focus-visible {
  background: rgba(245,158,11,0.1);
  color: var(--gold-600);
}
body.light-theme .site-nav {
  background: #fafaf7;
}
body.light-theme .nav-brand {
  color: #1a1a1e;
}
body.light-theme .nav-brand span {
  color: var(--gold-600);
}
body.light-theme .nav-links a {
  color: #92400e;
  font-weight: 700;
}
body.light-theme .nav-links a:hover {
  color: #78350f;
  background: rgba(245,158,11,0.08);
}
body.light-theme .nav-links a.active {
  color: #78350f;
  background: rgba(245,158,11,0.12);
  box-shadow: 0 0 0 1px rgba(180,83,9,0.2) inset;
  font-weight: 800;
}
body.light-theme .topic-hero {
  background: linear-gradient(135deg, rgba(245,158,11,0.04), rgba(245,158,11,0.01));
  border-color: rgba(180,83,9,0.08);
}
body.light-theme .topic-hero-right {
  background: rgba(0,0,0,0.02);
  border-left-color: rgba(180,83,9,0.06);
}
body.light-theme .topic-hero-clock .label {
  color: #8a8a95;
}
body.light-theme .topic-hero-clock .time {
  color: #1a1a1e;
}
body.light-theme .topic-hero-clock .date {
  color: #6b6b75;
}
body.light-theme .topic-latest,
body.light-theme .topic-countdown {
  background: var(--surface-2);
  border-color: rgba(180,83,9,0.08);
}
body.light-theme .card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
}
body.light-theme .card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1), 0 2px 6px rgba(245,158,11,0.03);
}
body.light-theme .knowledge-item {
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
body.light-theme .knowledge-item:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.1), 0 1px 4px rgba(245,158,11,0.03);
}
body.light-theme .review-card {
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
body.light-theme .matches-section-card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
}
body.light-theme .match-card {
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
body.light-theme .match-card:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}
/* Light theme — pool tags: darker to stay readable */
body.light-theme .pool-tag:not(.pool-tag-single) {
  background: rgba(180,83,9,0.15) !important;
  border-color: rgba(180,83,9,0.4) !important;
  color: #92400e !important;
}
body.light-theme .pool-tag-single {
  background: rgba(5,150,105,0.15) !important;
  border-color: rgba(5,150,105,0.4) !important;
  color: #065f46 !important;
}
body.light-theme footer {
  color: #9a9aa5;
  border-top-color: rgba(180,83,9,0.06);
}
body.light-theme .section-title {
  color: var(--text-primary);
}
body.light-theme .section-title::after {
  background: rgba(180,83,9,0.12);
}
body.light-theme .knowledge-item h4 {
  color: #1a1a1e;
}
body.light-theme .knowledge-item p {
  color: #6b6b75;
}
body.light-theme .day-matches-date {
  color: var(--gold-700);
}
body.light-theme .match-league {
  color: var(--gold-700);
}
body.light-theme .match-time {
  color: var(--gold-700);
}
body.light-theme .odds-grid {
  border-top-color: rgba(180,83,9,0.06);
}
body.light-theme .odd-item {
  background: var(--surface-3);
}
body.light-theme .handicap-section {
  border-top-color: rgba(180,83,9,0.06);
}
body.light-theme .data-source-card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
body.light-theme .data-source-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
body.light-theme td code {
  background: rgba(180,83,9,0.08);
  color: var(--gold-700);
}
body.light-theme table th {
  background: var(--surface-3);
  color: var(--text-secondary);
}
body.light-theme table td {
  border-bottom-color: rgba(180,83,9,0.06);
}
body.light-theme .world-cup-banner {
  background: linear-gradient(135deg, #e8f4f8, #dbeafe);
  border-color: rgba(6,182,212,0.15);
  box-shadow: 0 2px 12px rgba(6,182,212,0.04);
}
body.light-theme .countdown-badge {
  background: rgba(245,158,11,0.1);
  color: var(--gold-700);
}
body.light-theme .status-live {
  background: rgba(239,68,68,0.08);
}
body.light-theme .status-ended {
  background: rgba(107,114,128,0.06);
}

/* ─── Number Ball (lottery balls rendered by app.js renderNumbers) ─── */
.number-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 4px 0;
}
.number-group.kl8 {
  gap: 3px;
}
.number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
  background: var(--surface-3);
  color: var(--text-primary);
  border: 2px solid var(--border-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.number:hover { transform: scale(1.12); }
.number.red {
  background: linear-gradient(135deg, #fecaca, #ef4444);
  color: #7f1d1d;
  border-color: rgba(239,68,68,0.4);
  box-shadow: 0 2px 8px rgba(239,68,68,0.25);
}
.number.blue {
  background: linear-gradient(135deg, #bfdbfe, #3b82f6);
  color: #1e3a5f;
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 2px 8px rgba(59,130,246,0.25);
}
.number.small {
  width: 28px;
  height: 28px;
  font-size: 11px;
  gap: 2px;
}
.number-separator {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--gold-400);
  margin: 0 4px;
  line-height: 1;
}

/* ─── Legacy ball classes (from older JS) ─── */
.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
  margin: 2px;
  transition: transform 0.2s ease;
}
.ball:hover { transform: scale(1.1); }
.ball-red { background: linear-gradient(135deg, #fecaca, #ef4444); color: #7f1d1d; box-shadow: 0 2px 8px rgba(239,68,68,0.25); }
.ball-blue { background: linear-gradient(135deg, #bfdbfe, #3b82f6); color: #1e3a5f; box-shadow: 0 2px 8px rgba(59,130,246,0.25); }

/* ─── Leisu Reference Panel (雷速参考) ─── */
.leisu-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}
.leisu-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--gold-400);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}
.leisu-title::before {
  content: '⚡';
  font-size: 14px;
}
.leisu-stage {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding: 4px 10px;
  display: inline-block;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
}
.leisu-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  font-size: 13px;
}
.leisu-team-row span {
  color: var(--text-primary);
  font-weight: 700;
}
.leisu-team-row b {
  font-size: 12px;
  color: var(--gold-400);
  font-weight: 700;
  background: rgba(245,158,11,0.06);
  padding: 2px 8px;
  border-radius: 100px;
}
.leisu-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}
.leisu-mini-grid > div {
  background: var(--surface-2);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.leisu-mini-grid > div span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.leisu-mini-grid > div b {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}
.leisu-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}
@media (max-width: 640px) {
  .leisu-profile-grid { grid-template-columns: 1fr; }
}
.leisu-team-profile {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  overflow: hidden;
  word-break: break-word;
}
.leisu-profile-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 6px;
  flex-wrap: wrap;
}
.leisu-profile-heading b {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}
.leisu-profile-heading span {
  font-size: 12px;
  color: var(--gold-400);
  font-weight: 700;
  background: rgba(245,158,11,0.08);
  padding: 3px 10px;
  border-radius: 100px;
}
.leisu-profile-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 12px;
  gap: 10px;
}
.leisu-profile-line span {
  color: var(--text-muted);
  font-weight: 500;
  min-width: 50px;
  flex-shrink: 0;
}
.leisu-profile-line b {
  color: var(--text-primary);
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}
.leisu-star-block {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-soft);
}
.leisu-star-block .leisu-profile-line span {
  color: var(--gold-400);
  font-size: 12px;
}
.leisu-six-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: rgba(16,185,129,0.1);
  padding: 1px 6px;
  border-radius: 4px;
}
.leisu-profile-note {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  line-height: 1.5;
  font-style: italic;
}
.leisu-coach-news {
  margin-top: 8px;
}
.leisu-coach-news summary {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-400);
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
}
.leisu-coach-news summary:hover {
  color: var(--gold-300);
}
.leisu-news-list {
  margin-top: 6px;
}
.leisu-news-list article {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
}
.leisu-news-list article:last-child { border-bottom: none; }
.leisu-news-list article b,
.leisu-news-list article a {
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
}
.leisu-news-list article a:hover { color: var(--gold-400); }
.leisu-news-list article p {
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.5;
}
.leisu-links {
  margin: 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.leisu-links a {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--surface-3);
  color: var(--gold-400);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.leisu-links a:hover {
  background: rgba(245,158,11,0.12);
  color: var(--gold-300);
}
.leisu-load-detail {
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--surface-3);
  color: var(--gold-400);
  border: 1px dashed var(--border-soft);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
}
.leisu-load-detail:hover {
  background: rgba(245,158,11,0.08);
  border-color: var(--gold-400);
  color: var(--gold-300);
}
.leisu-load-detail:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── Leisu Star Avatar & Header ─── */
.leisu-star-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 8px;
  padding: 10px 12px;
  background: var(--surface-3);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}
.leisu-star-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-400);
  flex-shrink: 0;
  background: var(--surface-4);
}
.leisu-star-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  border: 2px dashed var(--border-soft);
  border-radius: 50%;
  flex-shrink: 0;
}
.leisu-star-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.leisu-star-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-300);
  word-break: break-word;
  line-height: 1.4;
}
.leisu-star-club {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.leisu-club-badge {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ─── Leisu Intel Section (inline) ─── */
.leisu-intel-section {
  margin-top: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}
.leisu-intel-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 8px;
}
.leisu-intel-list article + article {
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  margin-top: 8px;
}
.leisu-intel-details {
  margin-top: 8px;
}
.leisu-intel-details summary {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-400);
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}
.leisu-intel-details summary:hover {
  color: var(--gold-300);
}
.leisu-intel-item {
  padding: 8px 0;
}
.leisu-intel-item > div {
  display: flex;
  gap: 8px;
  font-size: 10px;
  margin-bottom: 3px;
}
.leisu-intel-item > div span {
  color: var(--text-muted);
}
.leisu-intel-item > div b {
  font-size: 10px;
}
.leisu-intel-item.good > div b { color: #22c55e; }
.leisu-intel-item.bad > div b { color: #ef4444; }
.leisu-intel-item.neutral > div b { color: var(--text-muted); }
.leisu-intel-item h5 {
  font-size: 12px;
  color: var(--text-primary);
  margin: 0 0 3px;
  font-weight: 600;
}
.leisu-intel-item p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ─── Leisu Lineup Preview ─── */
.leisu-lineup-block {
  margin: 8px 0;
  padding: 10px 12px;
  background: var(--surface-3);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}
.leisu-lineup-section {
  margin-bottom: 8px;
}
.leisu-lineup-section:last-of-type {
  margin-bottom: 6px;
}
.leisu-lineup-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.leisu-lineup-label span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 10px;
}
.leisu-lineup-players {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.leisu-player-chip {
  font-size: 10px;
  padding: 2px 7px;
  background: var(--surface-4);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-secondary);
}
.leisu-player-more {
  font-size: 10px;
  padding: 2px 7px;
  background: var(--gold-700);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
}
.leisu-lineup-value {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.leisu-lineup-link {
  font-size: 11px;
  color: var(--gold-400);
  text-decoration: none;
  display: inline-block;
  margin-top: 4px;
}
.leisu-lineup-link:hover {
  color: var(--gold-300);
  text-decoration: underline;
}

.leisu-muted {
  font-size: 10px;
  color: var(--text-muted);
  margin: 4px 0;
}

/* ─── Light Theme: Leisu Panel ─── */
body.light-theme .leisu-team-row {
  background: var(--surface-3);
}
body.light-theme .leisu-team-row b {
  background: rgba(180,83,9,0.08);
  color: var(--gold-700);
}
body.light-theme .leisu-mini-grid > div {
  background: var(--surface-3);
}
body.light-theme .leisu-team-profile {
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
body.light-theme .leisu-profile-heading span {
  background: rgba(180,83,9,0.06);
  color: var(--gold-700);
}
body.light-theme .leisu-star-block {
  background: var(--surface-4);
  border-color: rgba(180,83,9,0.12);
}
body.light-theme .leisu-star-block .leisu-profile-line span {
  color: var(--gold-700);
}
body.light-theme .leisu-six-badge {
  background: rgba(16,185,129,0.08);
}
body.light-theme .leisu-load-detail {
  background: var(--surface-3);
  color: var(--gold-700);
  border-color: rgba(180,83,9,0.15);
}
body.light-theme .leisu-load-detail:hover {
  background: rgba(245,158,11,0.06);
  color: var(--gold-600);
  border-color: var(--gold-500);
}
body.light-theme .leisu-star-header {
  background: var(--surface-4);
  border-color: rgba(180,83,9,0.1);
}
body.light-theme .leisu-star-name {
  color: var(--gold-700);
}
body.light-theme .leisu-intel-section {
  border-top-color: rgba(180,83,9,0.1);
}
body.light-theme .leisu-intel-header,
body.light-theme .leisu-intel-details summary {
  color: var(--gold-700);
}
body.light-theme .leisu-lineup-block {
  background: var(--surface-4);
  border-color: rgba(180,83,9,0.1);
}
body.light-theme .leisu-player-chip {
  background: #fff;
  border-color: rgba(180,83,9,0.12);
}
body.light-theme .leisu-intel-item h5 {
  color: var(--text-primary-dark);
}
body.light-theme .leisu-intel-item.good > div b { color: #16a34a; }
body.light-theme .leisu-intel-item.bad > div b { color: #dc2626; }

body.light-theme .leisu-links a {
  background: var(--surface-3);
  color: var(--gold-700);
}
body.light-theme .leisu-links a:hover {
  background: rgba(245,158,11,0.1);
  color: var(--gold-600);
}
body.light-theme .leisu-coach-news summary {
  color: var(--gold-700);
}
body.light-theme .leisu-coach-news summary:hover {
  color: var(--gold-500);
}

/* ─── Animations ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.topic-hero, .topic-latest, .topic-countdown, .card, .review-card, .knowledge-item, .section-title {
  animation: fadeInUp 0.5s ease both;
}
.topic-hero     { animation-delay: 0.05s; }
.topic-latest   { animation-delay: 0.1s; }
.topic-countdown{ animation-delay: 0.15s; }

/* ─── Avatar Lightbox ─── */
.avatar-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lbFadeIn 0.2s ease;
  cursor: pointer;
}
@keyframes lbFadeIn { from { opacity:0; } to { opacity:1; } }
.avatar-lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 16px;
  border: 3px solid var(--gold-400);
  box-shadow: 0 0 60px rgba(245,158,11,0.25);
  animation: lbZoomIn 0.25s cubic-bezier(0.16,1,0.3,1);
}
@keyframes lbZoomIn { from { transform:scale(0.8); opacity:0; } to { transform:scale(1); opacity:1; } }
.leisu-star-avatar-clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.leisu-star-avatar-clickable:hover {
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(245,158,11,0.35);
}

/* ─── Pool Odds Section (竞彩赔率) ─── */
.pool-odds-section {
  margin: 6px 0 0;
  border-top: 1px solid var(--border-subtle);
  padding-top: 6px;
}
.pool-odds-toggle {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-400);
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
  display: block;
}
.pool-odds-toggle:hover { color: var(--gold-300); }
.pool-odds-toggle-wrapper:not([open]) .pool-odds-panel {
  display: none;
}
.pool-odds-panel {
  margin-top: 4px;
}
.pool-odds-group {
  margin-bottom: 6px;
  padding: 5px 8px;
  background: var(--surface-3);
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}
.pool-odds-group-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 3px;
}
.pool-odds-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pool-odds-chip {
  font-size: 9px;
  padding: 1px 6px;
  background: var(--surface-4);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-secondary);
}
.pool-odds-chip strong {
  color: var(--warning, #f59e0b);
  font-weight: 700;
  margin-left: 2px;
}
.pool-odds-empty {
  font-size: 9px;
  color: var(--text-muted);
  padding: 2px 0;
}
