:root {
  /* ================= 主题：暗夜（默认） ================= */
  --bg: #080b12;
  --bg-soft: #0d121c;
  --surface: #131a26;
  --surface-2: #18212f;
  --surface-3: #1e2939;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --fill-1: rgba(255, 255, 255, 0.035);
  --fill-2: rgba(255, 255, 255, 0.06);
  --fill-3: rgba(255, 255, 255, 0.1);
  --text: #eef2f8;
  --text-2: #a9b6c8;
  --text-3: #8b98ab;
  --muted: #6f7f95;
  --faint: #4d5563;
  --text-strong: #ffffff;
  --accent: #ff5f2e;
  --accent-2: #ffa62b;
  --accent-deep: #d63c17;
  --grad-a: #ff5f2e;
  --grad-b: #c2350f;
  --accent-text: #ffa62b;
  --accent-soft: rgba(255, 95, 46, 0.14);
  --accent-soft-2: rgba(255, 95, 46, 0.24);
  --accent-line: rgba(255, 160, 61, 0.4);
  --accent-glow: rgba(255, 95, 46, 0.2);
  --accent-shadow: rgba(255, 95, 46, 0.55);
  --accent-2-soft: rgba(255, 166, 43, 0.14);
  --accent-2-soft-2: rgba(255, 166, 43, 0.4);
  --tn: #c8dd5a;
  --tn-soft: rgba(200, 221, 90, 0.22);
  --green: #3ddc97;
  --green-soft: rgba(61, 220, 151, 0.13);
  --green-line: rgba(61, 220, 151, 0.35);
  --red: #ff4d5e;
  --red-soft: rgba(255, 77, 94, 0.16);
  --link: #7fb2ff;
  --link-soft: rgba(127, 178, 255, 0.12);
  --bar: rgba(30, 41, 57, 0.94);
  --bar-2: rgba(40, 48, 62, 0.96);
  --on-accent: #1a0b04;
  --glow: rgba(255, 95, 46, 0.2);
  --glow-2: rgba(64, 120, 255, 0.14);
  --bg-a72: rgba(8, 11, 18, 0.72);
  --bg-a86: rgba(8, 11, 18, 0.86);
  --bg-a92: rgba(11, 15, 23, 0.92);
  --bg-a96: rgba(8, 11, 18, 0.96);
  --bg-a98: rgba(8, 11, 18, 0.98);
  --scrim: rgba(0, 0, 0, 0.62);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.85);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* ================= 主题：墨蓝（海军蓝 + 电光蓝） ================= */
html[data-theme="ink"] {
  --bg: #070d1c;
  --bg-soft: #0a1224;
  --surface: #101a30;
  --surface-2: #16223c;
  --surface-3: #1c2b4a;
  --line: rgba(150, 190, 255, 0.1);
  --line-strong: rgba(150, 190, 255, 0.18);
  --fill-1: rgba(140, 180, 255, 0.04);
  --fill-2: rgba(140, 180, 255, 0.08);
  --fill-3: rgba(140, 180, 255, 0.12);
  --text: #eaf2ff;
  --text-2: #c2d3ec;
  --text-3: #8ba0c0;
  --muted: #6e83a4;
  --faint: #4d5f7d;
  --text-strong: #ffffff;
  --accent: #4d8dff;
  --accent-2: #7cc4ff;
  --accent-deep: #2f6bd8;
  --grad-a: #3a78e8;
  --grad-b: #20489c;
  --accent-text: #a8cbff;
  --accent-soft: rgba(77, 141, 255, 0.16);
  --accent-soft-2: rgba(77, 141, 255, 0.28);
  --accent-line: rgba(124, 196, 255, 0.45);
  --accent-glow: rgba(77, 141, 255, 0.24);
  --accent-shadow: rgba(77, 141, 255, 0.5);
  --accent-2-soft: rgba(124, 196, 255, 0.14);
  --accent-2-soft-2: rgba(124, 196, 255, 0.4);
  --tn: #c8dd5a;
  --tn-soft: rgba(200, 221, 90, 0.2);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.13);
  --green-line: rgba(52, 211, 153, 0.35);
  --red: #ff5c72;
  --red-soft: rgba(255, 92, 114, 0.16);
  --link: #8ec5ff;
  --link-soft: rgba(142, 197, 255, 0.13);
  --bar: rgba(12, 20, 38, 0.94);
  --bar-2: rgba(22, 34, 60, 0.96);
  --on-accent: #06122a;
  --glow: rgba(77, 141, 255, 0.24);
  --glow-2: rgba(124, 196, 255, 0.16);
  --bg-a72: rgba(7, 13, 28, 0.72);
  --bg-a86: rgba(7, 13, 28, 0.86);
  --bg-a92: rgba(8, 15, 32, 0.92);
  --bg-a96: rgba(7, 13, 28, 0.96);
  --bg-a98: rgba(7, 13, 28, 0.98);
  --scrim: rgba(4, 9, 22, 0.66);
}

/* ================= 主题：紫夜（紫黑 + 霓虹紫） ================= */
html[data-theme="violet"] {
  --bg: #0b0716;
  --bg-soft: #100a20;
  --surface: #171029;
  --surface-2: #1f1637;
  --surface-3: #271c45;
  --line: rgba(190, 160, 255, 0.1);
  --line-strong: rgba(190, 160, 255, 0.18);
  --fill-1: rgba(180, 150, 255, 0.04);
  --fill-2: rgba(180, 150, 255, 0.08);
  --fill-3: rgba(180, 150, 255, 0.12);
  --text: #f5f0ff;
  --text-2: #d3c8ea;
  --text-3: #9d90bb;
  --muted: #7f729e;
  --faint: #5b5177;
  --text-strong: #ffffff;
  --accent: #a06bff;
  --accent-2: #d0a6ff;
  --accent-deep: #7a45d8;
  --grad-a: #9a5cf5;
  --grad-b: #6234b8;
  --accent-text: #cbb0ff;
  --accent-soft: rgba(160, 107, 255, 0.16);
  --accent-soft-2: rgba(160, 107, 255, 0.28);
  --accent-line: rgba(208, 166, 255, 0.45);
  --accent-glow: rgba(160, 107, 255, 0.26);
  --accent-shadow: rgba(160, 107, 255, 0.5);
  --accent-2-soft: rgba(208, 166, 255, 0.14);
  --accent-2-soft-2: rgba(208, 166, 255, 0.4);
  --tn: #d3e76b;
  --tn-soft: rgba(211, 231, 107, 0.2);
  --green: #45d98f;
  --green-soft: rgba(69, 217, 143, 0.13);
  --green-line: rgba(69, 217, 143, 0.35);
  --red: #ff5c7a;
  --red-soft: rgba(255, 92, 122, 0.16);
  --link: #bda0ff;
  --link-soft: rgba(189, 160, 255, 0.13);
  --bar: rgba(20, 14, 38, 0.94);
  --bar-2: rgba(31, 22, 55, 0.96);
  --on-accent: #150a2a;
  --glow: rgba(160, 107, 255, 0.26);
  --glow-2: rgba(208, 166, 255, 0.16);
  --bg-a72: rgba(11, 7, 22, 0.72);
  --bg-a86: rgba(11, 7, 22, 0.86);
  --bg-a92: rgba(16, 10, 30, 0.92);
  --bg-a96: rgba(11, 7, 22, 0.96);
  --bg-a98: rgba(11, 7, 22, 0.98);
  --scrim: rgba(10, 5, 20, 0.66);
}

/* ================= 主题：白昼（浅灰白 + 亮橙） ================= */
html[data-theme="daylight"] {
  --bg: #f2f4f9;
  --bg-soft: #e9edf6;
  --surface: #ffffff;
  --surface-2: #f5f7fc;
  --surface-3: #e8edf7;
  --line: rgba(16, 24, 40, 0.09);
  --line-strong: rgba(16, 24, 40, 0.16);
  --fill-1: rgba(16, 24, 40, 0.03);
  --fill-2: rgba(16, 24, 40, 0.05);
  --fill-3: rgba(16, 24, 40, 0.08);
  --text: #101828;
  --text-2: #3a4560;
  --text-3: #5f6b84;
  --muted: #6e7a90;
  --faint: #a7b1c2;
  --text-strong: #0b1120;
  --accent: #dc4a0f;
  --accent-2: #d4690f;
  --accent-deep: #b53a0c;
  --grad-a: #dc4a0f;
  --grad-b: #a3340a;
  --accent-text: #b33d0a;
  --accent-soft: rgba(220, 74, 15, 0.1);
  --accent-soft-2: rgba(220, 74, 15, 0.18);
  --accent-line: rgba(220, 74, 15, 0.32);
  --accent-glow: rgba(232, 110, 50, 0.16);
  --accent-shadow: rgba(220, 74, 15, 0.28);
  --accent-2-soft: rgba(239, 138, 29, 0.12);
  --accent-2-soft-2: rgba(239, 138, 29, 0.3);
  --tn: #6f8c00;
  --tn-soft: rgba(111, 140, 0, 0.14);
  --green: #1a7f4b;
  --green-soft: rgba(26, 127, 75, 0.1);
  --green-line: rgba(26, 127, 75, 0.28);
  --red: #d92b47;
  --red-soft: rgba(217, 43, 71, 0.1);
  --link: #1f5fd0;
  --link-soft: rgba(31, 95, 208, 0.1);
  --bar: rgba(255, 255, 255, 0.94);
  --bar-2: rgba(242, 245, 251, 0.96);
  --on-accent: #ffffff;
  --glow: rgba(255, 140, 80, 0.14);
  --glow-2: rgba(80, 130, 255, 0.1);
  --bg-a72: rgba(242, 244, 249, 0.72);
  --bg-a86: rgba(242, 244, 249, 0.86);
  --bg-a92: rgba(246, 248, 252, 0.92);
  --bg-a96: rgba(242, 244, 249, 0.96);
  --bg-a98: rgba(242, 244, 249, 0.98);
  --scrim: rgba(16, 24, 40, 0.45);
  --shadow: 0 16px 40px -20px rgba(16, 24, 40, 0.18);
}

/* ================= 主题：暖沙（米色纸感 + 砖橙） ================= */
html[data-theme="sand"] {
  --bg: #f4ece1;
  --bg-soft: #efe5d6;
  --surface: #fffaf2;
  --surface-2: #f8f1e6;
  --surface-3: #efe4d2;
  --line: rgba(93, 63, 35, 0.14);
  --line-strong: rgba(93, 63, 35, 0.22);
  --fill-1: rgba(93, 63, 35, 0.04);
  --fill-2: rgba(93, 63, 35, 0.06);
  --fill-3: rgba(93, 63, 35, 0.1);
  --text: #2b211a;
  --text-2: #57463a;
  --text-3: #7d6a58;
  --muted: #8a7761;
  --faint: #b8a48d;
  --text-strong: #221a14;
  --accent: #b5430c;
  --accent-2: #b06d16;
  --accent-deep: #8a3009;
  --grad-a: #b5430c;
  --grad-b: #7f2a07;
  --accent-text: #8f340a;
  --accent-soft: rgba(181, 67, 12, 0.1);
  --accent-soft-2: rgba(181, 67, 12, 0.18);
  --accent-line: rgba(181, 67, 12, 0.32);
  --accent-glow: rgba(196, 120, 50, 0.18);
  --accent-shadow: rgba(140, 80, 30, 0.3);
  --accent-2-soft: rgba(192, 122, 26, 0.12);
  --accent-2-soft-2: rgba(192, 122, 26, 0.3);
  --tn: #6f8c00;
  --tn-soft: rgba(111, 140, 0, 0.14);
  --green: #1f7a4d;
  --green-soft: rgba(31, 122, 77, 0.1);
  --green-line: rgba(31, 122, 77, 0.28);
  --red: #b3261e;
  --red-soft: rgba(179, 38, 30, 0.1);
  --link: #8a5a12;
  --link-soft: rgba(138, 90, 18, 0.1);
  --bar: rgba(255, 250, 242, 0.94);
  --bar-2: rgba(248, 241, 230, 0.96);
  --on-accent: #fff7ec;
  --glow: rgba(196, 120, 50, 0.18);
  --glow-2: rgba(150, 110, 60, 0.12);
  --bg-a72: rgba(244, 236, 225, 0.72);
  --bg-a86: rgba(244, 236, 225, 0.86);
  --bg-a92: rgba(247, 240, 231, 0.92);
  --bg-a96: rgba(244, 236, 225, 0.96);
  --bg-a98: rgba(244, 236, 225, 0.98);
  --scrim: rgba(43, 33, 26, 0.42);
  --shadow: 0 16px 40px -20px rgba(67, 45, 24, 0.22);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(620px 380px at 12% -6%, var(--glow), transparent 62%),
    radial-gradient(520px 340px at 92% 4%, var(--glow-2), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }

.app {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(84px + var(--safe-b));
  background: linear-gradient(180deg, var(--bg-a72) 0%, var(--bg-a96) 42%);
  box-shadow: 0 0 0 1px var(--line);
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 12px;
  background: linear-gradient(180deg, var(--bg-a96), var(--bg-a72));
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 8px 20px -8px var(--accent-shadow);
}

.brand-text { min-width: 0; }
.brand-text h1 { font-size: 16px; font-weight: 700; letter-spacing: 0.3px; }
.brand-text p { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

.top-actions { display: flex; align-items: center; gap: 8px; }

.net {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--text-2);
  white-space: nowrap;
}
.net i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.net.is-off i { background: var(--muted); box-shadow: none; }
.net em { font-style: normal; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, color 0.2s ease;
}
.icon-btn:active { transform: scale(0.93); color: var(--text); }
.icon-btn.is-spinning svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 通用 ---------- */
.view { padding: 16px 18px 8px; animation: fade 0.32s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.sec { margin-bottom: 22px; }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: 0.2px; }
.sec-title::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}
.sec-sub { font-size: 11.5px; color: var(--muted); }
.sec-link { font-size: 12px; color: var(--accent-text); display: inline-flex; align-items: center; gap: 3px; }

.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- 首屏主卡 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(150deg, var(--grad-a) 0%, var(--accent) 55%, var(--grad-b) 100%);
  box-shadow: 0 24px 48px -26px var(--accent-shadow);
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -58px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.34), transparent 68%);
  pointer-events: none;
}
.hero::before {
  content: var(--hero-mark, "CBA");
  position: absolute;
  right: 10px;
  bottom: -24px;
  font-size: 96px;
  font-weight: 900;
  letter-spacing: -2px;
  color: rgba(255, 255, 255, 0.11);
  pointer-events: none;
}
.hero-top { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; }
.hero-season {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  letter-spacing: 0.4px;
}
.hero-date { display: flex; align-items: flex-end; gap: 10px; margin: 12px 0 2px; }
.hero-day { font-size: 42px; font-weight: 800; line-height: 1; letter-spacing: -1.5px; }
.hero-md { display: flex; flex-direction: column; padding-bottom: 3px; font-size: 12px; color: rgba(255, 255, 255, 0.9); }
.hero-md b { font-size: 15px; font-weight: 700; }
.hero-headline { font-size: 13.5px; color: rgba(255, 255, 255, 0.94); margin-top: 4px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}
.hero-stat { display: flex; flex-direction: column; gap: 1px; }
.hero-stat b { font-size: 19px; font-weight: 800; line-height: 1.1; }
.hero-stat span { font-size: 10.5px; color: rgba(255, 255, 255, 0.78); }

.hero-progress { margin-top: 13px; }
.hero-progress-bar { height: 5px; border-radius: 999px; background: rgba(0, 0, 0, 0.2); overflow: hidden; }
.hero-progress-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff, #ffe6c9);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-progress-txt {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- 比赛卡片 ---------- */
.game-list { display: flex; flex-direction: column; gap: 10px; }

.game {
  position: relative;
  padding: 13px 14px 12px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.game:active { transform: scale(0.995); }
.game.is-live { border-color: rgba(255, 77, 94, 0.4); background: linear-gradient(160deg, rgba(255, 77, 94, 0.13), var(--surface)); }

.game-top { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.game-stage { color: var(--text-2); }
.game-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.game-time { margin-left: auto; font-variant-numeric: tabular-nums; letter-spacing: 0.3px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-2);
}
.pill.live { background: var(--red-soft); color: var(--red); }
.pill.live i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); animation: pulse 1.3s ease-in-out infinite; }
.pill.done { background: rgba(255, 255, 255, 0.05); color: var(--muted); }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.8); } }

.game-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }

.side { display: flex; align-items: center; gap: 9px; min-width: 0; }
.side.away { flex-direction: row-reverse; text-align: right; }

.badge {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--c, #2b3648);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.badge img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.badge b { font-weight: 700; }
.badge.sm { width: 28px; height: 28px; font-size: 11px; }

.side-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.side-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-role { font-size: 10px; color: var(--muted); }
.game.is-finished .side.is-loser .side-name { color: var(--text-2); font-weight: 500; }
.game.is-finished .side.is-loser .badge { opacity: 0.62; filter: grayscale(0.35); }

.game-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 74px; }
.score { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.score b { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; color: var(--text); }
.score b.win { color: var(--accent-text); }
.score i { font-style: normal; font-size: 13px; color: var(--muted); }
.vs { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.score-sub { font-size: 10px; color: var(--muted); }

.game-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--muted);
}
.game-foot .tag {
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
}
.game-foot .sp { margin-left: auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 转播信息 */
.game-cast {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-2);
}
.cast-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.cast-item b {
  font-weight: 400;
  font-size: 10px;
  color: var(--muted);
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.cast-item.tv b { color: var(--accent-text); border-color: var(--accent-line); }
.cast-item.net b { color: var(--green); border-color: var(--green-line); }
.cast-ch { white-space: nowrap; }
.cast-ch em { font-style: normal; font-size: 10px; color: var(--muted); }
.migu-tag {
  display: inline-block;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 9.5px;
  font-style: normal;
  line-height: 15px;
  vertical-align: 1px;
}
.migu-tag.free { color: var(--green); background: var(--green-soft); }
.migu-tag.paid { color: var(--accent-text); background: var(--accent-2-soft); }
.migu-tag.unknown { color: var(--muted); background: rgba(255, 255, 255, 0.06); }

/* 观赛指南 */
.guide { padding: 4px 14px 12px; }
.guide-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-areas: "name scope" "detail detail";
  gap: 2px 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.guide-row:last-of-type { border-bottom: 0; }
.guide-name { grid-area: name; font-size: 13px; font-weight: 700; color: var(--text); }
.guide-scope {
  grid-area: scope;
  font-size: 11px;
  color: var(--muted);
  align-self: center;
}
.guide-scope.all { color: var(--green); }
.guide-detail { grid-area: detail; font-size: 11px; color: var(--muted); line-height: 1.5; }
.guide-tip {
  margin: 10px 0 0;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* 昨日战报紧凑行 */
.result-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.result-row:last-child { border-bottom: 0; }
.result-row .team { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.result-row .team.away { justify-content: flex-end; }
.result-row .team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-row .team.win span { font-weight: 700; color: var(--text); }
.result-row .team:not(.win) span { color: var(--text-2); }
.result-row .sc { display: flex; gap: 4px; align-items: center; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; }
.result-row .sc em { font-style: normal; color: var(--muted); font-weight: 400; }
.result-row .sc .lose { color: var(--text-2); font-weight: 600; }

/* 卡片容器 */
.panel {
  padding: 4px 14px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* 头条 */
.feature {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-body { padding: 12px 14px 14px; background: linear-gradient(180deg, var(--fill-3), var(--surface) 40%); }
.feature-tag { display: inline-block; margin-bottom: 6px; font-size: 10.5px; color: var(--accent-text); letter-spacing: 0.4px; }
.feature-title { font-size: 14.5px; font-weight: 700; line-height: 1.45; color: var(--text); }
.feature-meta { margin-top: 7px; font-size: 11px; color: var(--muted); }

/* 榜单速览 */
.mini-rank { display: flex; flex-direction: column; }
.mini-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto 46px;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mini-row:last-child { border-bottom: 0; }
.mini-no { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.mini-no.top { color: var(--accent-text); }
.mini-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.mini-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-rec { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mini-pct { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }

/* ---------- 空状态 ---------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 34px 18px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}
.empty-ico { font-size: 26px; opacity: 0.8; }
.empty b { color: var(--text-2); font-size: 13px; }

/* ---------- 赛程页 ---------- */
.chips-wrap {
  position: sticky;
  top: 61px;
  z-index: 20;
  margin: -4px -18px 12px;
  padding: 10px 18px;
  background: linear-gradient(180deg, var(--bg-a98), var(--bg-a86));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  transition: all 0.18s ease;
}
.chip.on {
  color: #fff;
  font-weight: 600;
  border-color: transparent;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  box-shadow: 0 8px 18px -10px var(--accent-shadow);
}

.day-group { margin-bottom: 18px; }
.day-head {
  position: sticky;
  top: 111px;
  z-index: 10;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 2px 8px;
  background: linear-gradient(180deg, var(--bg-a96), var(--bg-a72));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.day-date { font-size: 14px; font-weight: 700; }
.day-week { font-size: 11.5px; color: var(--muted); }
.day-count { margin-left: auto; font-size: 11px; color: var(--muted); }
.day-head.is-today .day-date { color: var(--accent-text); }
.day-head.is-today::after {
  content: "今天";
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10px;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.jump {
  position: fixed;
  right: max(18px, calc(50% - 240px + 18px));
  bottom: calc(94px + var(--safe-b));
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--bar);
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 26px -12px #000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.jump:active { transform: scale(0.96); }

/* ---------- 榜单页 ---------- */
.leader {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(150deg, var(--accent-2-soft), var(--accent-soft) 55%, var(--surface));
  border: 1px solid var(--accent-line);
  box-shadow: var(--shadow);
}
.leader-top { display: flex; align-items: center; gap: 12px; }
.leader-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #ffd479, #ff9c2b);
  color: #3a1a00;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 24px -12px var(--accent-shadow);
}
.leader-meta { min-width: 0; }
.leader-kicker { font-size: 10.5px; letter-spacing: 1px; color: var(--accent-text); font-weight: 700; }
.leader-name { font-size: 19px; font-weight: 800; letter-spacing: 0.2px; margin-top: 1px; }
.leader-note { font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
.leader-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.leader-stat { padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.24); border: 1px solid var(--line); }
.leader-stat b { display: block; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.leader-stat span { font-size: 10px; color: var(--muted); }

.rank-table { border-radius: var(--radius); background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); overflow: hidden; }
.rt-head, .rt-row {
  display: grid;
  grid-template-columns: 30px 1fr 34px 34px 58px 92px;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
}
.rt-head { font-size: 10.5px; color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.rt-head span:not(:nth-child(2)) { text-align: center; }
.rt-row { border-bottom: 1px solid var(--line); }
.rt-row:last-child { border-bottom: 0; }
.rt-row.is-me { background: var(--accent-soft); }
.rt-no { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.rt-no.top { color: var(--accent-text); }
.rt-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rt-team span { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-num { font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; color: var(--text-2); }
.rt-pct { font-size: 12px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.rt-form { display: flex; gap: 3px; justify-content: center; }
.form-dot {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
}
.form-dot.w { background: var(--accent-soft-2); color: var(--accent-text); }
.form-dot.l { background: rgba(255, 255, 255, 0.06); color: var(--muted); }

.hint { margin: 10px 2px 0; font-size: 10.5px; color: var(--muted); line-height: 1.6; }

/* ---------- 资讯页 ---------- */
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-item {
  display: flex;
  gap: 11px;
  width: 100%;
  padding: 11px;
  text-align: left;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: transform 0.16s ease;
}
.news-item:active { transform: scale(0.99); }
.news-thumb {
  flex: 0 0 auto;
  width: 88px;
  height: 66px;
  border-radius: 11px;
  object-fit: cover;
  background: var(--surface-3);
}
.news-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.news-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); }
.news-meta .top { color: var(--accent-text); }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 40;
  display: grid;
  /* 五个 tab：今日 / 赛程 / 榜单 / 资讯 / 看点。
     看点 2026-10-22 从「今日」页顶部档位栏回退到这里 —— 顶部档位栏要留给五项运动
     （含新增的网球），两处各 5 项，都不需要横向滚动 */
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  max-width: 480px;
  padding: 8px 10px calc(8px + var(--safe-b));
  background: var(--bg-a92);
  border-top: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0 2px;
  min-width: 0;
  white-space: nowrap;
  color: var(--muted);
  font-size: 10.5px;
  transition: color 0.2s ease;
}
.tab svg { width: 21px; height: 21px; }
.tab.is-on { color: var(--accent-text); }
.tab.is-on svg { filter: drop-shadow(0 0 10px var(--accent-2-soft-2)); }

/* ---------- 资讯详情 ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-mask { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(2px); animation: fade 0.2s ease both; }
.sheet-body {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  border-top: 1px solid var(--line-strong);
  animation: rise 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes rise { from { transform: translateY(28px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
}
.sheet-label { font-size: 11px; letter-spacing: 1px; color: var(--accent-text); font-weight: 700; }
.sheet-content { padding: 18px 18px calc(28px + var(--safe-b)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sheet-content h2 { font-size: 18px; line-height: 1.45; font-weight: 800; letter-spacing: 0.2px; }
.sheet-meta { display: flex; gap: 8px; margin: 9px 0 16px; font-size: 11px; color: var(--muted); }
.article { font-size: 14.5px; line-height: 1.85; color: var(--text-2); }
.article p { margin: 0 0 14px; }
.article img { width: 100%; height: auto; border-radius: 12px; margin: 6px 0 14px; }
.article h3, .article h4 { font-size: 15px; margin: 18px 0 10px; color: var(--text); }
.article a { color: var(--accent-text); }
.article blockquote { margin: 0 0 14px; padding: 8px 12px; border-left: 2px solid var(--accent); color: var(--text-2); background: var(--fill-1); }
.skeleton-line { height: 12px; border-radius: 6px; margin-bottom: 10px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.11), rgba(255,255,255,.05)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 80;
  max-width: 76vw;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
  background: rgba(30, 41, 57, 0.96);
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 30px -14px #000;
  animation: fade 0.2s ease both;
}
.toast[hidden] { display: none; }

/* ---------- 桌面端 ---------- */
@media (min-width: 720px) {
  body { padding: 28px 0; }
  .app { border-radius: 30px; min-height: calc(100vh - 56px); border: 1px solid rgba(255, 255, 255, 0.07); overflow: hidden; padding-bottom: 96px; }
  .app::after { content: ""; position: absolute; inset: 0; border-radius: 30px; pointer-events: none; box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.5); }
  .tabbar { bottom: 28px; border-radius: 0 0 30px 30px; max-width: 480px; }
  .jump { bottom: 128px; }
  .sheet { align-items: center; }
  .sheet-body { border-radius: 22px; max-height: 82vh; margin-bottom: 24px; }
}

/* 骨架 */
.sk-game { height: 108px; border-radius: var(--radius); margin-bottom: 10px; background: linear-gradient(100deg, var(--surface), var(--surface-3), var(--surface)); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.sk-hero { height: 178px; border-radius: 22px; margin-bottom: 18px; background: linear-gradient(100deg, var(--surface), var(--surface-3), var(--surface)); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }

/* ============ 历史战报 · 技术统计 ============ */
.report { border-bottom: 1px solid var(--line); }
.report:last-child { border-bottom: 0; }
.report > summary {
  position: relative;
  padding-right: 74px;
  list-style: none;
  cursor: pointer;
}
.report > summary::-webkit-details-marker { display: none; }
.report > summary::marker { content: ''; }
.report .result-row { border-bottom: 0; padding: 11px 0; }
.report-hint {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  letter-spacing: 0.2px;
  color: var(--accent-text);
  background: var(--accent-2-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.report[open] .report-hint {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}
.bx { padding: 2px 0 14px; }
.bx-tb-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bx-tb { width: 100%; border-collapse: collapse; font-size: 12px; }
.bx-tb th, .bx-tb td {
  padding: 5px 5px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.bx-tb thead th { color: var(--muted); font-weight: 500; font-size: 10.5px; }
.bx-tb tbody th.bx-team {
  text-align: left;
  color: var(--text-2);
  font-weight: 600;
  max-width: 104px;
  padding-left: 2px;
}
.bx-tb tbody tr + tr th, .bx-tb tbody tr + tr td { border-top: 1px solid var(--line); }
.bx-tb tbody td { color: var(--text); }
.bx-tb .tot { color: var(--accent-text); font-weight: 700; }
.bx-tb .ot { color: var(--text-2); }
.bx-best { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.bx-best-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  color: var(--text-2);
}
.bx-tag {
  flex: none;
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 5px;
}
.bx-face {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-3);
}
.bx-name { color: var(--text); font-weight: 700; }
.bx-stats { margin-left: auto; white-space: nowrap; }
.bx-stats b { color: var(--accent-text); font-weight: 700; }

/* ============ 历史战报 · 双方大名单 ============ */
.bx-rosters {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bx-roster {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 10px 8px;
  background: rgba(255, 255, 255, 0.02);
}
.bx-roster-h {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px 8px;
}
.bx-side {
  flex: none;
  font-size: 9.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}
.bx-roster-team {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bx-roster-score {
  margin-left: auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
.bx-rtb {
  min-width: 620px;
  font-size: 11.5px;
}
.bx-rtb thead th { padding-bottom: 6px; }
.bx-rtb th.bx-player {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface-2, #12161d);
  text-align: left;
  padding-left: 2px;
  max-width: 132px;
  white-space: nowrap;
}
.bx-rtb td { white-space: nowrap; }
.bx-st {
  display: inline-block;
  width: 13px;
  font-style: normal;
  font-size: 9px;
  color: var(--accent-text);
}
.bx-st.off { opacity: 0; }
.bx-no {
  display: inline-block;
  width: 18px;
  margin-right: 4px;
  text-align: right;
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.bx-pname {
  color: var(--text);
  font-weight: 600;
  font-size: 11.5px;
}
.bx-rtb tbody tr.dnp .bx-pname,
.bx-rtb tbody tr.dnp td { color: var(--muted); }
.bx-rtb td.bx-pt { color: var(--accent-text); font-weight: 700; }
.bx-sum th,
.bx-sum td {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  color: var(--text-2);
  font-weight: 700;
}
.bx-sum em {
  font-style: normal;
  margin-left: 3px;
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 400;
}
.bx-note {
  margin: 6px 2px 0;
  font-size: 10px;
  color: var(--muted);
}
@media (max-width: 480px) {
  .bx-roster { padding: 9px 8px 6px; }
  .bx-rtb { min-width: 580px; }
}

/* ================= 运动切换（篮球 / 足球） ================= */
:root {
  --topbar-h: 61px;
  --sport-h: 51px;
}

.sportbar {
  position: sticky;
  top: var(--topbar-h);
  z-index: 25;
  display: flex;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(180deg, var(--bg-a98), var(--bg-a86));
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.sport-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: all 0.18s ease;
}
.sport-btn i { font-style: normal; font-size: 14px; line-height: 1; }
.sport-btn span { font-size: 9.5px; letter-spacing: 0.3px; color: var(--muted); }
.sport-btn.is-on {
  /* 选中项是强调色实底，文字必须用反白色 */
  color: #fff;
  font-weight: 600;
  border-color: transparent;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  box-shadow: 0 8px 18px -10px var(--accent-shadow);
}
.sport-btn.is-on span { color: rgba(255, 255, 255, 0.82); }

/* 吸顶基准要算上运动切换条 */
.chips-wrap { top: calc(var(--topbar-h) + var(--sport-h)); }
.day-head { top: calc(var(--topbar-h) + var(--sport-h) + 50px); }

/* ================= 足球积分榜 ================= */
.fb-table {
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.fb-tr {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 30px 66px 44px 42px;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.fb-tr:last-child { border-bottom: 0; }
.fb-tr.fb-th {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.fb-c1 { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.fb-c1.hot { color: var(--accent-text); }
.fb-c2 { display: flex; align-items: center; gap: 7px; min-width: 0; }
.fb-name { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-c3 { text-align: center; font-size: 11.5px; color: var(--text-2); }
.fb-c4 { text-align: center; font-size: 11.5px; color: var(--text-2); }
.fb-c5 { text-align: center; font-size: 11.5px; color: var(--muted); }
.fb-c5.gd-up { color: var(--accent-text); }
.fb-c5.gd-down { color: var(--link); }
.fb-c6 { text-align: right; font-size: 14px; font-weight: 800; color: var(--accent-text); }

/* 足球下 4 项统计（胜/平/负/积分） */
.leader-stats.four { grid-template-columns: repeat(4, 1fr); }

/* 足球卡片：比分字号略收一点，避免长队名挤压 */
.fb-game .game-mid { min-width: 66px; }
.fb-game .score b { font-size: 21px; }
.fb-game .side-name { font-size: 13px; }

/* ================= 足球历史：赛季 / 页签 / 技术统计 ================= */
.fb-years {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
}
.fb-years::-webkit-scrollbar { display: none; }

.fb-year {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: all 0.16s ease;
}
.fb-year.is-on {
  color: #fff;
  font-weight: 700;
  border-color: transparent;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  box-shadow: 0 8px 18px -12px var(--accent-shadow);
}

.fb-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.fb-tab {
  flex: 1;
  height: 34px;
  border: 0;
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--text-2);
  background: transparent;
  transition: all 0.16s ease;
}
.fb-tab.is-on {
  color: var(--accent-text);
  font-weight: 600;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.fb-metrics {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
}
.fb-metrics::-webkit-scrollbar { display: none; }

.fb-metric {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.fb-metric.is-on {
  color: var(--accent-text);
  border-color: var(--accent-line);
  background: var(--accent-2-soft);
}

.fb-stats {
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 4px 14px;
}

.fb-stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.fb-stat-row:last-child { border-bottom: 0; }

.fb-stat-pos {
  width: 18px;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.fb-stat-pos.hot { color: var(--accent); font-weight: 700; }

.fb-stat-main { flex: 1; min-width: 0; }
.fb-stat-name {
  display: block;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fb-bar {
  display: block;
  margin-top: 5px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.fb-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.fb-stat-val {
  min-width: 58px;
  text-align: right;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
.fb-stat-val em {
  margin-left: 2px;
  font-style: normal;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}

.fb-note {
  margin: 8px 2px 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

.fb-cups {
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 4px 14px;
}

.fb-cup-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.fb-cup-row:last-child { border-bottom: 0; }

.fb-cup-year {
  width: 42px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.fb-cup-main { flex: 1; min-width: 0; }
.fb-cup-main b { display: block; font-size: 13px; font-weight: 600; }
.fb-cup-main em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

.fb-cup-tag {
  font-size: 10.5px;
  color: var(--accent-text);
  background: var(--accent-2-soft);
  border-radius: 999px;
  padding: 3px 9px;
}
.fb-cup-tag.live {
  color: var(--link);
  background: rgba(91, 141, 239, 0.14);
}

/* ================= 羽毛球（BWF） ================= */
.bm-list { display: flex; flex-direction: column; gap: 10px; }

.bm-more {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 13px 0;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.bm-more:hover { border-color: var(--accent); color: var(--accent); }

.bm-game {
  padding: 12px 14px 10px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.bm-game.is-live { border-color: rgba(255, 77, 94, 0.35); }

.bm-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.bm-stage { color: var(--text-2); font-weight: 600; letter-spacing: 0.2px; }
.bm-when { margin-left: auto; font-variant-numeric: tabular-nums; }

.bm-body { display: flex; flex-direction: column; gap: 6px; }

.bm-side { display: flex; align-items: center; gap: 8px; min-height: 22px; }

.bm-cc {
  flex: 0 0 auto;
  min-width: 34px;
  max-width: 96px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.bm-name {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-side.is-win .bm-name { color: var(--text); font-weight: 700; }

.bm-score {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}

.bm-side.is-win .bm-score { color: var(--accent); }

.bm-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
  overflow: hidden;
}

.bm-sets { color: var(--text-2); letter-spacing: 0.6px; }
.bm-foot .sp { margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 结果行（最近赛果） */
.bm-row {
  display: grid;
  grid-template-columns: 52px 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.bm-row:last-child { border-bottom: 0; }
.bm-row-ev { color: var(--muted); font-size: 10.5px; }
.bm-row-name { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-row-name.win { color: var(--text); font-weight: 700; }
.bm-row-sc { font-weight: 700; color: var(--accent); }
.bm-row-sets { color: var(--muted); font-size: 10.5px; white-space: nowrap; }

/* 赛事行 */
.bm-tour {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.bm-tour:last-child { border-bottom: 0; }

.bm-cat {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent-2-soft);
  border: 1px solid var(--accent-line);
}

.bm-tour-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.bm-tour-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-tour-meta { font-size: 10.5px; color: var(--muted); }
.bm-tour-start { flex: 0 0 auto; font-size: 10.5px; color: var(--muted); }

@media (max-width: 380px) {
  .bm-row { grid-template-columns: 44px 1fr auto 1fr; }
  .bm-row-sets { display: none; }
}

/* ================= 乒乓球（WTT） ================= */
.tt-list { display: flex; flex-direction: column; gap: 10px; }

.tt-game {
  padding: 12px 14px 10px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-left: 3px solid rgba(255, 138, 61, 0.55);
  box-shadow: var(--shadow);
}

.tt-game.is-live { border-color: rgba(255, 77, 94, 0.35); border-left-color: rgba(255, 77, 94, 0.7); }

.tt-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.tt-stage { color: var(--text-2); font-weight: 600; letter-spacing: 0.2px; }
.tt-when { margin-left: auto; font-variant-numeric: tabular-nums; }

.tt-body { display: flex; flex-direction: column; gap: 6px; }

.tt-side { display: flex; align-items: center; gap: 8px; min-height: 22px; }

.tt-cc {
  flex: 0 0 auto;
  min-width: 34px;
  max-width: 76px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
  letter-spacing: 0.4px;
  color: var(--muted);
}

.tt-name {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tt-side.is-win .tt-name { color: var(--text); font-weight: 700; }

.tt-score {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tt-side.is-win .tt-score { color: var(--accent-text); }

.tt-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
  overflow: hidden;
}

.tt-sets { color: var(--text-2); letter-spacing: 0.6px; white-space: nowrap; }
.tt-none { color: var(--muted); font-style: italic; }
.tt-foot .sp { margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 结果行 */
.tt-row {
  display: grid;
  grid-template-columns: 62px 1fr 42px 1fr 96px;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.tt-row:last-child { border-bottom: 0; }
.tt-row-ev { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-row-name { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-row-name.win { color: var(--text); font-weight: 600; }
.tt-row-sc { text-align: center; font-weight: 700; color: var(--muted); }
.tt-row-sets { color: var(--muted); font-size: 11px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 赛事行 */
.tt-ev {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}

.tt-ev:last-child { border-bottom: 0; }

.tt-cat {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 138, 61, 0.14);
  color: var(--accent-text);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.tt-ev-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.tt-ev-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-ev-meta { font-size: 10.5px; color: var(--muted); }
.tt-ev-start { flex: 0 0 auto; font-size: 10.5px; color: var(--muted); }

/* 空窗期说明 */
.tt-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 14px 0;
  padding: 22px 18px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.tt-idle-ico { font-size: 26px; line-height: 1; }
.tt-idle b { font-size: 13.5px; color: var(--text-2); }
.tt-idle span { font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* 四档切换后按钮更挤：收窄字号，副标题在窄屏隐藏 */
.sportbar { gap: 6px; }
.sport-btn { padding: 0 6px; font-size: 12px; gap: 4px; }

@media (max-width: 420px) {
  .sport-btn span { display: none; }
  .tt-row { grid-template-columns: 48px 1fr 32px 1fr 62px; font-size: 11.5px; }
}

/* ================= 当日看点（四项赛事汇总，今日页第一档） ================= */

/* 档位栏现在是 5 项（看点 + 四项运动）：平分一行时必须收紧，
   否则「羽毛球」「乒乓球」会被挤到断行；来源小字只在宽屏保留。
   看点在切到赛程/榜单/资讯时隐藏（JS 加 .is-hidden）。 */
.sportbar { gap: 6px; padding: 8px 14px; }
.sport-btn { gap: 4px; padding: 0 4px; font-size: 12px; white-space: nowrap; min-width: 0; }
.sport-btn span { display: none; }
.sport-btn.is-hidden { display: none; }

@media (min-width: 561px) {
  .sport-btn span { display: inline; }
}

.hl-sum {
  position: relative;
  margin: 12px 0 4px;
  padding: 18px 16px 14px;
  border-radius: var(--radius);
  overflow: hidden;
  /* 汇总卡保留原有的暖色偏光：起点用强调色底纹，浅色主题下不会变成一块灰 */
  background: linear-gradient(120deg, var(--accent-soft) 0%, var(--surface-2) 46%, var(--surface) 100%);
  border: 1px solid var(--accent-soft-2);
}

.hl-sum::before {
  content: '';
  position: absolute;
  left: -80px;
  top: -110px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 66%);
  pointer-events: none;
}

.hl-sum-main {
  position: relative;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-text);
  letter-spacing: 0.3px;
}

.hl-sum-sub {
  position: relative;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--muted);
}

.hl-sum-chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.hl-sum-chip {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.hl-sec {
  margin: 12px 0;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}

.hl-sec-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
}

.hl-sec-ico { font-size: 16px; line-height: 1; }

.hl-sec-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.hl-sec-src { font-size: 10.5px; color: var(--muted); }

.hl-sec-n {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-text);
}

.hl-sec-n-idle {
  font-weight: 500;
  color: var(--muted);
}

.hl-sec-go {
  margin-left: 10px;
  padding: 3px 9px;
  border: none;
  border-radius: 999px;
  font-size: 11px;
  color: var(--accent-text);
  background: rgba(255, 138, 76, 0.12);
  cursor: pointer;
}

.hl-sec-go:hover { background: rgba(255, 138, 76, 0.2); }

.hl-list { padding: 4px 0 6px; }

.hl-game {
  display: grid;
  grid-template-columns: 46px 1fr 78px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 13px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.hl-game:last-child { border-bottom: none; }
.hl-game:hover { background: rgba(255, 255, 255, 0.03); }

.hl-time {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hl-side {
  font-size: 12.5px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hl-side.hl-right { text-align: right; }
.hl-side.is-win { font-weight: 700; color: var(--text); }

.hl-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hl-score > .is-win { color: var(--accent-text); }
.hl-score-sep { color: var(--muted); font-weight: 500; }

/* 没有比分时不要渲染数字，否则用户会以为是 0:0 */
.hl-score.hl-noscore {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
}

.hl-meta {
  grid-column: 1 / -1;
  padding-left: 46px;
  font-size: 10.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hl-meta .hl-sets { font-style: normal; color: var(--text-2); }
.hl-meta .hl-venue { font-style: normal; }

.hl-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
}

.hl-pill.hl-live { color: var(--accent-text); background: var(--accent-soft); }
.hl-pill.hl-done { color: var(--green); background: var(--green-soft); }
.hl-pill.hl-wait { color: var(--muted); background: rgba(255, 255, 255, 0.06); }

.hl-more {
  display: block;
  width: 100%;
  padding: 11px 13px 13px;
  border: none;
  background: none;
  font-size: 11.5px;
  color: var(--accent-text);
  text-align: center;
  cursor: pointer;
}

.hl-more:hover { background: rgba(255, 138, 76, 0.08); }

.hl-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 18px 14px 20px;
  text-align: center;
}

.hl-idle-t { font-size: 12.5px; color: var(--text-2); }
.hl-idle-n { font-size: 11px; color: var(--muted); }
/* ================= 主题选择面板 ================= */
.theme-content { padding-top: 14px; }
.theme-tip { margin-bottom: 14px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.theme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.theme-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 8px;
  border-radius: 14px;
  text-align: left;
  background: var(--fill-1);
  border: 1px solid var(--line);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
}
.theme-card:active { transform: scale(0.985); }
.theme-card.is-on { border-color: var(--accent); background: var(--accent-soft); }
.theme-prev { display: block; height: 58px; padding: 7px; border-radius: 10px; overflow: hidden; }
.theme-prev-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 8px;
  border-radius: 7px;
}
.theme-bar { display: block; width: 46%; height: 5px; margin-bottom: 5px; border-radius: 3px; }
.theme-line { display: block; width: 100%; height: 4px; margin-bottom: 4px; border-radius: 2px; opacity: 0.45; }
.theme-line.wide { width: 66%; margin-bottom: 0; opacity: 0.26; }
.theme-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.theme-name { font-size: 13px; font-weight: 700; color: var(--text); }
.theme-kind { padding: 1px 6px; border-radius: 5px; font-size: 9.5px; color: var(--text-3); background: var(--fill-2); }
.theme-desc { display: block; margin-top: 3px; font-size: 10.5px; line-height: 1.35; color: var(--muted); }
.theme-check {
  position: absolute;
  top: 12px;
  right: 12px;
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.theme-card.is-on .theme-check { display: block; }

/* ================= 网球（ATP / WTA） ================= */
.tn-list { display: flex; flex-direction: column; gap: 10px; }

.tn-card {
  padding: 12px 14px 10px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-left: 3px solid var(--tn);
  box-shadow: var(--shadow);
}

.tn-card.is-live { border-color: rgba(255, 77, 94, 0.32); border-left-color: rgba(255, 77, 94, 0.7); }

.tn-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.tn-stage { color: var(--text-2); font-weight: 600; letter-spacing: 0.2px; }

.tn-right { margin-left: auto; font-variant-numeric: tabular-nums; }
.tn-right.is-live { color: #ff5d6c; font-weight: 600; }
.tn-right.is-time { color: var(--tn); font-weight: 600; }

.tn-side {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
}

.tn-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text-2);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tn-side.is-win .tn-name { color: var(--text-strong, #fff); font-weight: 600; }

/* 种子号：网球里「(3)」这类信息很关键 */
.tn-seed {
  flex-shrink: 0;
  padding: 0 5px;
  font-size: 10px;
  line-height: 16px;
  color: var(--tn);
  background: var(--tn-soft);
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

.tn-cc {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--faint, var(--muted));
  letter-spacing: 0.4px;
  min-width: 26px;
  text-align: center;
}

.tn-cells { display: flex; flex-shrink: 0; }

.tn-cell {
  min-width: 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tn-side.is-win .tn-cell { color: var(--text-2); }

.tn-won {
  flex-shrink: 0;
  min-width: 18px;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tn-side.is-win .tn-won { color: var(--tn); }

.tn-vs {
  flex-shrink: 0;
  font-size: 10.5px;
  color: var(--faint, var(--muted));
  letter-spacing: 0.5px;
}

.tn-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
}

.tn-tour { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tn-none { flex-shrink: 0; }

/* 赛事行（rank / home 共用） */
.panel-row.tn-tour-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.panel-row.tn-tour-row:last-child { border-bottom: none; }
.tn-tour-flag { flex-shrink: 0; font-size: 15px; }
.tn-tour-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tn-tour-main b { font-size: 13px; color: var(--text-2); font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tn-tour-sub { font-size: 10.5px; color: var(--muted); }
.tn-tour-live { flex-shrink: 0; font-size: 10.5px; color: #ff5d6c; font-weight: 600; }
.tn-tour-cnt { flex-shrink: 0; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 排名表 */
.tn-rank {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 12px;
}

.tn-rank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.tn-rank-row:last-child { border-bottom: none; }
.tn-rank-no { width: 26px; flex-shrink: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.tn-rank-name { flex: 1; min-width: 0; color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tn-rank-cc { width: 34px; flex-shrink: 0; text-align: center; font-size: 10px; color: var(--muted); letter-spacing: 0.4px; }
.tn-rank-pts { width: 58px; flex-shrink: 0; text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tn-rank-trend { width: 30px; flex-shrink: 0; text-align: right; font-size: 10.5px; color: var(--faint, var(--muted)); font-variant-numeric: tabular-nums; }
.tn-rank-trend.is-up { color: #34d399; }
.tn-rank-trend.is-down { color: #ff5d6c; }

/* 首页 ATP / WTA 前三预览 */
.tn-rank2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tn-rank2-col {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.tn-rank2-h { display: block; margin-bottom: 6px; font-size: 11px; color: var(--tn); letter-spacing: 0.6px; }
.tn-rank2-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 12px;
  color: var(--text-2);
}
.tn-rank2-row .mono { width: 14px; flex-shrink: 0; color: var(--muted); font-size: 10.5px; }

/* 赛程页：单双打二级筛选 */
.chips-wrap.chips-sub { top: calc(var(--topbar-h) + var(--sport-h) + 46px); }
.chip.chip-sm { height: 28px; line-height: 26px; padding: 0 12px; font-size: 11.5px; }
.chip.chip-sm.is-on { color: var(--text-strong, #fff); border-color: var(--tn); background: var(--tn-soft); font-weight: 600; }
