:root {
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;

  --bg: #0c0e11;
  --surface: #14171c;
  --surface-2: #1b1f26;
  --surface-3: #232831;
  --border: #2a3039;
  --divider: #20252d;
  --text: #ebe8e2;
  --muted: #9097a1;
  --faint: #5d636d;
  --accent: #ff7a1a;
  --accent-soft: rgba(255, 122, 26, 0.14);
  --live: #ff4141;
  --hupu: #e9b15f;
  --hupu-soft: rgba(233, 177, 95, 0.12);
  --good2: rgba(61, 220, 132, 0.30);
  --elite: rgba(245, 190, 60, 0.34);
  --good1: rgba(61, 220, 132, 0.13);
  --bad1: rgba(255, 92, 92, 0.12);
  --bad2: rgba(255, 92, 92, 0.28);
  --good-text: #6ee7a8;
  --bad-text: #ff8a8a;
  --radius: 10px;
  --radius-sm: 6px;
  --font: "Barlow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-num: "Barlow Condensed", "Barlow", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--text-base); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums lining-nums; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: clamp(var(--space-3), 3vw, var(--space-8)); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(12, 14, 17, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--divider); }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: var(--space-3) clamp(var(--space-3), 3vw, var(--space-8)); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; font-weight: 700; font-size: var(--text-base); letter-spacing: 0.02em; }
.brand svg { color: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: var(--space-3); }
.updated { color: var(--faint); font-size: var(--text-xs); }
.icon-btn { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: var(--muted); transition: color .15s, border-color .15s; }
.icon-btn:hover { color: var(--text); border-color: var(--faint); }
.icon-btn.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.switch { display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer; font-size: var(--text-xs); color: var(--muted); user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { width: 30px; height: 18px; border-radius: 9px; background: var(--surface-3); border: 1px solid var(--border); position: relative; transition: background .15s; }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.switch input:checked + .switch-track { background: var(--accent-soft); border-color: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(12px); background: var(--accent); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Date strip */
.datebar { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-5) 0 var(--space-4); }
.datestrip { display: flex; gap: var(--space-1); overflow-x: auto; scrollbar-width: none; flex: 1; }
.datestrip::-webkit-scrollbar { display: none; }
.date-chip { flex: 0 0 auto; min-width: 64px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: transparent; border: 1px solid transparent; cursor: pointer; text-align: center; color: var(--muted); line-height: 1.2; }
.date-chip b { display: block; font-family: var(--font-num); font-size: var(--text-lg); color: var(--text); font-weight: 600; }
.date-chip small { font-size: var(--text-xs); }
.date-chip:hover { background: var(--surface); }
.date-chip.active { background: var(--surface-2); border-color: var(--accent); }
.date-chip.active b { color: var(--accent); }
.date-input { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius-sm); padding: var(--space-2); font: inherit; font-size: var(--text-sm); color-scheme: dark; }

/* Segmented control */
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: var(--text-sm); color: var(--muted); font-weight: 500; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.seg button:focus-visible { outline: 2px solid var(--accent); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.toolbar .spacer { flex: 1; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); color: var(--muted); cursor: pointer; user-select: none; }
.chk input { accent-color: var(--accent); width: 15px; height: 15px; }
.extras { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font-size: var(--text-sm); color: var(--muted); }
.pill { border: 1px solid var(--border); background: transparent; border-radius: 999px; padding: 3px 10px; font-size: var(--text-xs); cursor: pointer; color: var(--muted); }
.pill.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.search { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; color: var(--text); font: inherit; font-size: var(--text-sm); min-width: 180px; }
.search:focus { outline: none; border-color: var(--accent); }

/* Game grid */
.section-title { display: flex; align-items: baseline; gap: var(--space-3); margin: 0 0 var(--space-3); font-size: var(--text-lg); font-weight: 600; }
.section-title small { color: var(--muted); font-weight: 400; font-size: var(--text-sm); }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--space-3); }
.game-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); cursor: pointer; text-decoration: none; display: flex; flex-direction: column; gap: var(--space-3); transition: border-color .15s, transform .15s; position: relative; }
.game-card:hover { border-color: var(--faint); }
.game-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.game-card.live { border-color: rgba(255, 65, 65, 0.5); }
.gc-head { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-xs); color: var(--muted); }
.gc-head { gap: var(--space-2); min-width: 0; }
.gc-head > :first-child { flex: none; white-space: nowrap; }
.gc-head > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.status.live { color: var(--live); }
.status.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.status.final { color: var(--muted); }
.status.pre { color: var(--accent); }
.gc-team { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: var(--space-3); }
.gc-team img { width: 32px; height: 32px; object-fit: contain; }
.gc-team .tname { font-weight: 600; line-height: 1.2; }
.gc-team .tname small { display: block; color: var(--faint); font-weight: 400; font-size: var(--text-xs); }
.gc-team .score { font-family: var(--font-num); font-size: 1.75rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.gc-team.lose .score, .gc-team.lose .tname { color: var(--muted); }
.gc-leaders { font-size: var(--text-xs); color: var(--muted); border-top: 1px dashed var(--divider); padding-top: var(--space-2); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.gc-leaders b { color: var(--text); font-weight: 500; }
.gc-hupu { display: flex; align-items: center; gap: var(--space-2); background: var(--hupu-soft); border-radius: var(--radius-sm); padding: 6px 10px; font-size: var(--text-xs); color: var(--text); min-height: 30px; }
.gc-hupu .hp-tag { color: var(--hupu); font-weight: 700; letter-spacing: .02em; flex: 0 0 auto; }
.gc-hupu .hp-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.gc-hupu .hp-score { font-family: var(--font-num); font-weight: 700; color: var(--hupu); font-size: var(--text-sm); }
.gc-hupu.empty { background: var(--surface-2); color: var(--faint); }

/* Detail header */
.back { display: inline-flex; align-items: center; gap: 6px; margin: var(--space-5) 0 var(--space-3); color: var(--muted); text-decoration: none; font-size: var(--text-sm); }
.back:hover { color: var(--text); }
.scorehead { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4); }
.sh-team { display: flex; align-items: center; gap: var(--space-3); }
.sh-team.home { flex-direction: row-reverse; text-align: right; }
.sh-team img { width: 56px; height: 56px; object-fit: contain; }
.sh-team .nm { font-weight: 700; font-size: var(--text-lg); line-height: 1.2; }
.sh-team .nm small { display: block; font-weight: 400; color: var(--muted); font-size: var(--text-xs); }
.sh-team .big { font-family: var(--font-num); font-size: var(--text-xl); font-weight: 700; margin-inline: auto 0; line-height: 1; }
.sh-team.home .big { margin-inline: 0 auto; }
.sh-team.lose .big { color: var(--muted); }
.sh-mid { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.sh-mid .status { font-size: var(--text-sm); }
.linescore { border-collapse: collapse; font-size: var(--text-xs); }
.linescore th, .linescore td { padding: 2px 8px; text-align: center; font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.linescore th { color: var(--faint); font-weight: 500; }
.linescore td:first-child { color: var(--muted); text-align: left; }
.linescore td.tot { font-weight: 700; color: var(--text); }
.sh-meta { font-size: var(--text-xs); color: var(--faint); }
.sh-hupu { color: var(--hupu); font-size: var(--text-xs); font-weight: 600; }

.tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--divider); margin: var(--space-5) 0 var(--space-4); overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: var(--space-3) var(--space-4); cursor: pointer; color: var(--muted); font-weight: 600; font-size: var(--text-sm); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.tabs button:hover { color: var(--text); }
.tabs .count { font-family: var(--font-num); color: var(--faint); margin-left: 4px; }

/* Box score table */
.team-block { margin-bottom: var(--space-6); }
.team-block h3 { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); font-size: var(--text-base); }
.team-block h3 img { width: 22px; height: 22px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.box { border-collapse: separate; border-spacing: 0; width: 100%; font-size: var(--text-sm); }
table.box th, table.box td { padding: 7px 9px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--divider); }
table.box th { position: sticky; top: 0; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: var(--text-xs); letter-spacing: .03em; cursor: pointer; user-select: none; }
table.box th:hover { color: var(--text); }
table.box th.sorted { color: var(--accent); }
table.box th.cat { color: #c9cdd3; }
table.box td { font-family: var(--font-num); font-variant-numeric: tabular-nums lining-nums; font-size: 0.98rem; }
table.box tr:last-child td { border-bottom: 0; }
table.box tbody tr:hover td { background: rgba(255,255,255,.025); }
table.box .pcol { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 1; font-family: var(--font); min-width: 150px; }
table.box th.pcol { background: var(--surface-2); z-index: 2; }
table.box tbody tr:hover .pcol { background: #181b21; }
.pcell { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.pcell img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: 0 0 auto; }
.pcell .pn { font-weight: 600; font-size: var(--text-sm); line-height: 1.15; }
.pcell .pn small { display: block; color: var(--faint); font-weight: 400; font-size: var(--text-xs); }
.pcell:hover .pn { color: var(--accent); }
.starter-mark { color: var(--accent); font-size: 10px; margin-left: 3px; vertical-align: 2px; }
.court-mark { display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: #4ee0a8; vertical-align: 2px; animation: courtPulse 1.6s ease-in-out infinite; }
@keyframes courtPulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(78,224,168,.6); } 50% { opacity: .55; box-shadow: 0 0 0 3px rgba(78,224,168,0); } }
@media (prefers-reduced-motion: reduce) { .court-mark { animation: none; } }
td .sub { display: block; font-size: 0.72rem; color: var(--faint); line-height: 1; margin-top: 1px; }
td.g2 { background: var(--good2); } td.g1 { background: var(--good1); }
td.g3 { background: var(--elite); color: #ffe39a; font-weight: 700; }
td.b1 { background: var(--bad1); } td.b2 { background: var(--bad2); }
tr.totals td { font-weight: 700; background: var(--surface-2) !important; }
tr.totals .pcol { background: var(--surface-2) !important; }
tr.dnp td { color: var(--faint); }
.dnp-reason { text-align: left !important; font-family: var(--font) !important; font-size: var(--text-xs) !important; }
.hp-badge { display: inline-block; min-width: 36px; text-align: center; padding: 1px 6px; border-radius: 4px; background: var(--hupu-soft); color: var(--hupu); font-weight: 700; cursor: pointer; }
.hp-badge { border: 1px solid transparent; }
.hp-badge.t5 { background: linear-gradient(135deg, rgba(168, 120, 255, 0.30), rgba(120, 130, 255, 0.18)); color: #d2b8ff; border-color: rgba(168, 120, 255, 0.6); box-shadow: 0 0 8px rgba(168, 120, 255, 0.18); }
.hp-badge.t4 { background: rgba(90, 150, 255, 0.20); color: #82b4ff; border-color: rgba(90, 150, 255, 0.50); }
.hp-badge.t3 { background: rgba(60, 200, 190, 0.14); color: #5fd6c9; border-color: rgba(60, 200, 190, 0.36); }
.hp-badge.t2 { background: rgba(255, 138, 61, 0.16); color: #ff9f5c; border-color: rgba(255, 138, 61, 0.32); }
.hp-badge.t1 { background: rgba(255, 77, 77, 0.20); color: #ff6b6b; border-color: rgba(255, 77, 77, 0.45); }
.hpt.hpt.t5 { color: #c4a1ff; text-shadow: 0 0 12px rgba(168, 120, 255, 0.35); } .hpt.hpt.t4 { color: #82b4ff; } .hpt.hpt.t3 { color: #5fd6c9; } .hpt.hpt.t2 { color: #ff9f5c; } .hpt.hpt.t1 { color: #ff6b6b; }
.hp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: calc(-1 * var(--space-2)) 0 var(--space-4); font-size: var(--text-xs); color: var(--muted); }
.hp-lg { display: inline-flex; align-items: center; gap: 5px; }
.hp-lg i { width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.hp-lg small { color: var(--muted); font-family: var(--font-num); }
.hp-lg.t5 { color: #c4a1ff; } .hp-lg.t4 { color: #82b4ff; } .hp-lg.t3 { color: #5fd6c9; } .hp-lg.t2 { color: #ff9f5c; } .hp-lg.t1 { color: #ff6b6b; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* Hupu list */
.hp-summary { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin-bottom: var(--space-4); color: var(--muted); font-size: var(--text-sm); }
.hp-summary b { color: var(--hupu); font-family: var(--font-num); font-size: var(--text-lg); }
.hp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: var(--space-3); }
.hp-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3) var(--space-4); display: grid; grid-template-columns: 52px 1fr auto; gap: var(--space-3); cursor: pointer; text-align: left; transition: border-color .15s; }
.hp-item:hover { border-color: var(--hupu); }
.hp-item .av { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--surface-3); }
.hp-item .nm { font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hp-item .nm img { width: 16px; height: 16px; }
.hp-item .ds { color: var(--muted); font-size: var(--text-xs); margin-top: 2px; }
.hp-item .hc { font-size: var(--text-xs); color: var(--text); margin-top: 6px; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-item .sc { text-align: right; }
.hp-item .sc b { display: block; font-family: var(--font-num); font-size: 1.75rem; line-height: 1; color: var(--hupu); }
.hp-item .sc small { color: var(--faint); font-size: var(--text-xs); display: block; margin-top: 4px; white-space: nowrap; }
.label-chip { font-size: 11px; padding: 0 6px; border-radius: 4px; font-weight: 600; line-height: 18px; }

/* Team stats */
.tstats { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-5); display: grid; gap: var(--space-4); max-width: 760px; margin: 0 auto; }
.ts-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-3) var(--space-4); }
.ts-team { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.ts-team.b { justify-content: flex-end; text-align: right; }
.ts-team img { width: 40px; height: 40px; object-fit: contain; }
.ts-team b { display: block; font-size: var(--text-lg); line-height: 1.2; }
.ts-team small { color: var(--muted); font-size: var(--text-xs); }
.ts-team em { font-style: normal; font-family: var(--font-num); font-weight: 700; font-size: var(--text-base); }
.ts-team.a em { color: var(--ca); } .ts-team.b em { color: var(--ch); }
.ts-even { text-align: center; color: var(--muted); }
.ts-even b { display: block; font-family: var(--font-num); font-size: var(--text-lg); color: var(--text); line-height: 1.1; }
.ts-even small { font-size: var(--text-xs); }
.ts-strip { grid-column: 1 / -1; display: flex; height: 8px; gap: 3px; border-radius: 4px; overflow: hidden; }
.ts-strip span { min-width: 0; }
.ts-strip .a { background: var(--ca); } .ts-strip .b { background: var(--ch); } .ts-strip .e { background: var(--surface-3); }
.ts-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: var(--text-xs); color: var(--muted); padding-bottom: var(--space-3); border-bottom: 1px solid var(--divider); }
.ts-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ts-legend .lg { width: 22px; height: 6px; border-radius: 3px; }
.ts-legend .lg.lose { background: var(--ts-lose); } .ts-legend .lg.even { background: var(--ts-even); } .ts-legend .lg.slight { background: var(--ts-slight); } .ts-legend .lg.clear { background: var(--ts-clear); } .ts-legend .lg.crush { background: var(--ts-crush); box-shadow: 0 0 8px var(--ts-crush-g); }
.ts-group { display: grid; gap: 2px; }
.ts-gh { font-size: var(--text-xs); color: var(--faint); letter-spacing: .08em; margin: var(--space-2) 0 var(--space-1); text-align: center; }
.ts-row { display: grid; grid-template-columns: 76px 1fr 76px; gap: var(--space-3); align-items: center; padding: 6px 8px; border-radius: 8px; font-size: var(--text-sm); }
.ts-row .v { font-family: var(--font-num); font-size: var(--text-base); font-weight: 600; color: var(--muted); transition: color .15s; }
.ts-row .v.b { text-align: right; }
.ts-row.lead-a .v.a { color: var(--text); font-weight: 700; } .ts-row.lead-b .v.b { color: var(--text); font-weight: 700; }
.ts-row.lead-0 .v { color: var(--text); }
.ts-row.lv-crush.lead-a .v.a, .ts-row.lv-crush.lead-b .v.b { color: #c4a1ff; }
.ts-row.lv-crush.lead-a { background: linear-gradient(90deg, rgba(160,120,255,.14), transparent 55%); }
.ts-row.lv-crush.lead-b { background: linear-gradient(270deg, rgba(160,120,255,.14), transparent 55%); }
.ts-mid .lbl { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: var(--text-xs); margin-bottom: 5px; flex-wrap: wrap; }
.ts-mid .lbl small { color: var(--faint); }
.ts-track { position: relative; display: flex; gap: 3px; height: 10px; }
.ts-track .seg { display: block; height: 100%; border-radius: 5px; background: #3c424b; transition: width .3s ease; }
.ts-track .seg.l { flex: none; } .ts-track .seg.r { flex: 1; }
.tstats { --ts-lose: #30353c; --ts-even: #5c626b; --ts-slight: #7f9cc2; --ts-clear: #4f9dff; --ts-crush: linear-gradient(90deg, #8a63ff, #c4a1ff); --ts-crush-g: rgba(160,120,255,.55); }
.ts-track .seg { background: var(--ts-lose); }
.lead-0 .ts-track .seg { background: var(--ts-even); }
.lv-slight.lead-a .seg.l, .lv-slight.lead-b .seg.r { background: var(--ts-slight); }
.lv-clear.lead-a .seg.l, .lv-clear.lead-b .seg.r { background: var(--ts-clear); }
.lv-crush.lead-a .seg.l { background: linear-gradient(90deg, #c4a1ff, #8a63ff); box-shadow: 0 0 10px var(--ts-crush-g); }
.lv-crush.lead-b .seg.r { background: var(--ts-crush); box-shadow: 0 0 10px var(--ts-crush-g); }
@media (max-width: 600px) {
  .tstats { padding: var(--space-4) var(--space-3); }
  .ts-row { grid-template-columns: 52px 1fr 52px; gap: var(--space-2); padding: 6px 4px; }
  .ts-row .v { font-size: var(--text-sm); }
  .ts-team img { width: 28px; height: 28px; } .ts-team b { font-size: var(--text-base); }
}

/* Plays */
.plays { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.play { display: grid; grid-template-columns: 70px 28px 1fr 70px; gap: var(--space-3); align-items: center; padding: 8px var(--space-4); border-bottom: 1px solid var(--divider); font-size: var(--text-sm); }
.play:last-child { border-bottom: 0; }
.play .clk { font-family: var(--font-num); color: var(--muted); }
.play img { width: 22px; height: 22px; }
.play .sc { font-family: var(--font-num); text-align: right; font-weight: 600; }
.play.scoring .tx { color: var(--text); font-weight: 600; }
.play .tx { color: #c4c8ce; }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--surface); border-left: 1px solid var(--border); z-index: 50; transform: translateX(100%); transition: transform .22s ease; overflow-y: auto; overscroll-behavior: contain; }
.drawer.open { transform: none; }
.dr-head { position: sticky; top: 0; background: var(--surface); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--divider); display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-4); align-items: center; z-index: 2; }
.dr-head img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--surface-3); }
.dr-head .nm { font-weight: 700; font-size: var(--text-lg); line-height: 1.2; }
.dr-head .nm small { display: block; color: var(--muted); font-weight: 400; font-size: var(--text-xs); margin-top: 2px; }
.dr-body { padding: var(--space-4) var(--space-5) var(--space-10); display: grid; gap: var(--space-5); }
.dr-score { display: flex; align-items: center; gap: var(--space-5); }
.dr-score .big { font-family: var(--font-num); font-size: 3rem; font-weight: 700; color: var(--hupu); line-height: 1; }
.dr-score .meta { color: var(--muted); font-size: var(--text-sm); }
.dist { display: grid; gap: 4px; flex: 1; }
.dist-row { display: grid; grid-template-columns: 68px 1fr 40px; gap: 8px; align-items: center; font-size: var(--text-xs); color: var(--muted); }
.dist-row .bar { height: 6px; min-width: 0; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.dist-row .bar span { display: block; height: 100%; background: var(--hupu); border-radius: 3px; }
.dist-row .pct { text-align: right; font-family: var(--font-num); }
.statline { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: var(--space-2); }
.statline div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 6px 8px; text-align: center; }
.statline b { display: block; font-family: var(--font-num); font-size: var(--text-lg); line-height: 1.1; }
.statline small { color: var(--faint); font-size: 11px; }
.dr-section h4 { margin: 0 0 var(--space-3); font-size: var(--text-sm); color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.comment { padding: var(--space-3) 0; border-bottom: 1px solid var(--divider); display: grid; grid-template-columns: 32px 1fr; gap: var(--space-3); }
.comment img.u { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.comment .who { font-size: var(--text-xs); color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.comment .who b { color: var(--text); font-weight: 600; }
.comment .stars { color: var(--hupu); letter-spacing: 1px; }
.comment .ct { font-size: var(--text-sm); margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.comment .imgs { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.comment .imgs img { max-width: 120px; max-height: 120px; border-radius: 6px; object-fit: cover; }
.comment .light { color: var(--hupu); font-family: var(--font-num); }
.btn { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: var(--text-sm); width: 100%; color: var(--text); }
.btn:hover { border-color: var(--faint); }
.btn:disabled { opacity: .5; cursor: default; }
.close-btn { align-self: start; }

/* States */
.state { padding: var(--space-10) var(--space-4); text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); font-size: var(--text-sm); }
.state.err { color: var(--bad-text); }
.skel { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.skel-card { height: 168px; }
.legend { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; font-size: var(--text-xs); color: var(--faint); margin-top: var(--space-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }

.foot { color: var(--faint); font-size: var(--text-xs); padding-block: var(--space-10) var(--space-8); }
.foot a { color: var(--muted); }

@media (max-width: 720px) {
  .scorehead { grid-template-columns: 1fr 1fr; padding: var(--space-4); }
  .sh-mid { grid-column: 1 / -1; order: 3; }
  .sh-team, .sh-team.home { flex-direction: column; text-align: center; gap: var(--space-2); }
  .sh-team .big, .sh-team.home .big { margin: 0; }
  .sh-team img { width: 44px; height: 44px; }
  .datebar { flex-wrap: wrap; }
  .datestrip { order: 1; flex: 1 1 calc(100% - 96px); }
  .datebar > .icon-btn:first-child { order: 0; }
  .datebar > .icon-btn:nth-of-type(2) { order: 2; }
  .date-input { order: 3; width: 100%; }
  .updated { display: none; }
  .switch-label { display: none; }
  .play { grid-template-columns: 56px 22px 1fr 56px; padding-inline: var(--space-3); gap: var(--space-2); }
  table.box .pcol { min-width: 120px; }
  .pcell img { width: 20px; height: 20px; }
  .search { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Player profile drawer */
.drawer { width: min(100vw, max(760px, 61.8vw)); } /* 黄金比例：抽屉占 61.8%，左侧留 38.2% */
.dr-top { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--divider); }
.dr-top .dr-head { position: static; border-bottom: 0; padding-bottom: var(--space-2); }
.dr-tabs { display: flex; gap: var(--space-1); padding: 0 var(--space-5); }
.dr-tabs button { background: none; border: 0; padding: var(--space-2) var(--space-3); cursor: pointer; color: var(--muted); font-weight: 600; font-size: var(--text-sm); border-bottom: 2px solid transparent; }
.dr-tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.dr-tabs button:hover { color: var(--text); }
.hp-mini { color: var(--hupu); font-family: var(--font-num); }
.bio { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-2); }
.bio > div { background: var(--surface-2); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); min-width: 0; }
.bio small { display: block; color: var(--faint); font-size: var(--text-xs); }
.bio span { font-weight: 600; font-size: var(--text-sm); overflow-wrap: anywhere; }
.bio .faint { font-weight: 400; }
.bad { color: var(--bad-text); }
.awards { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.award { background: var(--accent-soft); color: var(--text); border: 1px solid rgba(255,122,26,.35); border-radius: 999px; padding: 2px 10px; font-size: var(--text-xs); }
.award b { color: var(--accent); font-family: var(--font-num); }
.note { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: #c4c8ce; line-height: 1.6; }
.note b { color: var(--text); }
.dr-section h4 .faint { font-weight: 400; font-size: var(--text-xs); }
table.box.mini th, table.box.mini td { padding: 5px 7px; }
table.box.mini td { font-size: 0.9rem; }
table.box.mini .lcol { text-align: left; font-family: var(--font); font-size: var(--text-xs); white-space: nowrap; }
table.box.mini th.lcol { position: static; }
.win { color: var(--good-text); font-weight: 700; }
.loss { color: var(--bad-text); font-weight: 700; }
.dr-body > * { min-width: 0; }
.drawer { overflow-x: hidden; }
td.val { font-weight: 700; cursor: help; }
/* Sticky column headers: tall tables scroll inside their own box */
.table-wrap.tall { max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow: auto; overscroll-behavior: auto; }
table.box thead th { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 var(--border); }
table.box thead th.pcol { z-index: 4; left: 0; }

/* Fantasy matchup */
.matchup { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); margin: var(--space-3) 0 var(--space-5); }
.mu-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.mu-side { font-weight: 700; font-size: var(--text-sm); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-side.opp { text-align: right; color: var(--muted); }
.mu-score { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; justify-content: center; font-family: var(--font-num); }
.mu-score b { font-size: 1.6rem; }
.mu-score span { color: var(--faint); }
.mu-score small { flex-basis: 100%; text-align: center; color: var(--faint); font-size: var(--text-xs); font-family: var(--font); }
.mu-score.lead b:first-child { color: var(--good-text); }
.mu-score.trail b:nth-of-type(2) { color: var(--bad-text); }
.mu-grid { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.mu-cat { background: var(--surface-2); border-radius: var(--radius-sm); padding: 6px 4px; text-align: center; font-family: var(--font-num); border: 1px solid transparent; min-width: 0; }
.mu-cat small { display: block; color: var(--faint); font-size: 11px; font-family: var(--font); }
.mu-cat b { display: block; font-size: 0.95rem; }
.mu-cat span { display: block; color: var(--muted); font-size: 0.8rem; }
.mu-cat.win { border-color: rgba(52, 199, 89, .45); background: var(--good1); }
.mu-cat.lose { border-color: rgba(255, 69, 58, .35); }
.mu-cat.lose span { color: var(--text); }
.mu-note { margin-top: var(--space-3); color: var(--faint); font-size: var(--text-xs); }
@media (max-width: 720px) { .mu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* comment thumbnails + lightbox */
.comment .cm-thumb { position: relative; padding: 0; border: 1px solid var(--border); background: var(--surface-3); border-radius: 6px; cursor: zoom-in; overflow: hidden; line-height: 0; transition: border-color .15s, transform .15s; }
.comment .cm-thumb:hover { border-color: var(--hupu); transform: translateY(-1px); }
.comment .cm-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.comment .cm-thumb img { width: 96px; height: 96px; max-width: none; max-height: none; object-fit: cover; border-radius: 0; display: block; }
.comment .gif-tag { position: absolute; left: 4px; bottom: 4px; font-size: 10px; line-height: 1; padding: 2px 4px; border-radius: 3px; background: rgba(0,0,0,.65); color: #fff; letter-spacing: .04em; }
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(5,6,8,.92); display: flex; align-items: center; justify-content: center; padding: 48px 56px; overscroll-behavior: contain; animation: lbIn .16s ease-out; }
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; height: 100%; justify-content: center; }
.lb-fig img { min-width: min(360px, 86vw); max-width: 100%; max-height: calc(100% - 32px); object-fit: contain; border-radius: 6px; cursor: zoom-in; box-shadow: 0 12px 40px rgba(0,0,0,.5); background: var(--surface-2); }
.lightbox.zoom { overflow: auto; align-items: flex-start; justify-content: flex-start; }
.lightbox.zoom .lb-fig { width: auto; height: auto; min-width: 100%; }
.lightbox.zoom .lb-fig img { max-width: none; max-height: none; width: auto; min-width: min(200%, 1600px); cursor: zoom-out; }
.lb-cap { font-size: var(--text-xs); color: var(--muted); }
.lb-cap a { color: var(--muted); }
.lb-btn { position: fixed; z-index: 1; border: 1px solid rgba(255,255,255,.14); background: rgba(20,23,28,.8); color: #fff; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 22px; line-height: 1; }
.lb-btn:hover { background: rgba(40,45,54,.95); }
.lb-btn[hidden] { display: none; }
.lb-close { top: 12px; right: 12px; font-size: 16px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 56px 8px 24px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } .lb-prev { left: calc(50% - 52px); } .lb-next { right: calc(50% - 52px); } }

.live-chip { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 999px; background: var(--live); color: #fff; vertical-align: 2px; margin-left: 4px; font-weight: 600; }
.toolbar.prange { gap: var(--space-2) var(--space-3); }
@media (max-width: 600px) {
  .toolbar.prange .spacer { display: none; }
  .toolbar.prange .search { flex: 1 1 100%; width: 100%; }
  .toolbar.prange .seg button { padding: 6px 10px; }
}
.team-sel, .left-sel { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 28px 6px 10px; color: var(--text); font: inherit; font-size: var(--text-sm); appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted, #9aa) 50%), linear-gradient(135deg, var(--text-muted, #9aa) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.team-sel:focus-visible, .left-sel:focus-visible { outline: 2px solid var(--accent, #ff7a1a); outline-offset: 1px; }
.team-sel option, .left-sel option { background: #15181d; color: var(--text); }
/* favorites */
.fav-btn { flex: none; width: 22px; height: 22px; margin: 0 -2px 0 -4px; padding: 0; border: 0; background: none; color: #5c626b; font-size: 15px; line-height: 1; cursor: pointer; border-radius: 6px; display: inline-grid; place-items: center; transition: color .15s, transform .15s; }
.fav-btn:hover { color: #ffd166; }
.fav-btn.on { color: #ffc940; filter: drop-shadow(0 0 4px rgba(255, 201, 64, .5)); }
.fav-btn:active { transform: scale(.85); }
.fav-btn:focus-visible { outline: 2px solid #ffc940; outline-offset: 1px; }
.fav-btn.big { width: 36px; height: 36px; font-size: 18px; margin: 0; border: 1px solid var(--border); background: var(--surface-2, transparent); border-radius: 8px; }
.dr-acts { display: flex; gap: var(--space-2); align-items: center; }
tr.is-fav > td.pcol { box-shadow: inset 3px 0 0 #ffc940; }
.fav-filter { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; color: var(--muted); font: inherit; font-size: var(--text-sm); cursor: pointer; white-space: nowrap; }
.fav-filter { display: inline-flex; align-items: center; gap: 6px; }
.fav-filter svg { color: #7a808a; }
.fav-filter:hover { color: var(--text); }
.fav-filter.active { color: #ffd166; border-color: rgba(255, 201, 64, .55); background: rgba(255, 201, 64, .10); }
.fav-filter.active svg { color: #ffc940; }
/* roster editor */
.btn-ghost, .btn-primary { border-radius: 8px; padding: 7px 14px; font: inherit; font-size: var(--text-sm); cursor: pointer; white-space: nowrap; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-primary { background: var(--accent, #ff7a1a); border-color: var(--accent, #ff7a1a); color: #111; font-weight: 600; }
.btn-primary:hover { filter: brightness(1.08); }
.re-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.re-top .section-title { margin: 0; }
.re-acts { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.re-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-4); }
.re-side { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: var(--space-4); min-width: 0; }
.re-label { display: grid; gap: 6px; font-size: var(--text-xs); color: var(--muted); }
.re-name { background: var(--bg, #0d0f12); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; color: var(--text); font: inherit; font-size: var(--text-base, 15px); font-weight: 600; }
.re-name:focus, .re-slot:focus { outline: 2px solid var(--accent, #ff7a1a); outline-offset: 1px; }
.re-count { margin: var(--space-4) 0 var(--space-2); font-size: var(--text-xs); color: var(--muted); }
.re-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.re-row { display: grid; grid-template-columns: 18px 74px 30px 1fr auto; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 8px; }
.re-row:hover { background: rgba(255,255,255,.03); }
.re-row img, .re-hit img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--surface-3, #222); }
.re-slot { background: var(--bg, #0d0f12); border: 1px solid var(--border); border-radius: 6px; padding: 5px 6px; color: var(--text); font: inherit; font-size: var(--text-sm); font-weight: 600; }
.re-nm { min-width: 0; font-size: var(--text-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.re-nm small { display: block; font-weight: 400; color: var(--muted); font-size: var(--text-xs); }
.re-del { width: 30px; height: 30px; }
.re-empty, .re-none { color: var(--muted); font-size: var(--text-sm); padding: var(--space-3) 6px; }
.re-add { margin-top: var(--space-3); position: relative; }
.re-add .search { width: 100%; min-width: 0; box-sizing: border-box; }
.re-sugg { display: grid; gap: 2px; margin-top: 6px; }
.re-hit { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; text-align: left; background: none; border: 1px solid transparent; border-radius: 8px; padding: 6px; color: var(--text); font: inherit; font-size: var(--text-sm); cursor: pointer; }
.re-hit:hover, .re-hit:focus-visible { background: rgba(255,255,255,.04); border-color: var(--border); outline: none; }
.re-hit small { display: block; color: var(--muted); font-size: var(--text-xs); }
.re-hit b { color: var(--accent, #ff7a1a); font-size: var(--text-xs); font-weight: 600; }
@media (max-width: 640px) { .re-acts { width: 100%; } .re-acts .btn-primary { flex: 1; } .re-row { grid-template-columns: 22px 66px 28px 1fr auto; gap: 8px; } }
@media (max-width: 640px) { .re-top .section-title { display: block; } .re-top .section-title small { display: block; margin: 4px 0 0; } }
.wk-nav { display: inline-flex; align-items: center; gap: 6px; }
.wk-nav span { display: grid; text-align: center; font-weight: 600; font-size: var(--text-sm); line-height: 1.15; min-width: 76px; }
.wk-nav small { color: var(--muted); font-weight: 400; font-size: var(--text-xs); white-space: nowrap; }
.wk-nav .icon-btn[disabled] { opacity: .35; cursor: not-allowed; }
/* time zone switch */
.tz-seg { display: inline-flex; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.tz-seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: var(--text-xs); font-weight: 600; padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.tz-seg button.active { background: var(--accent-soft); color: var(--accent); }
.tz-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.re-grip { display: grid; place-items: center; height: 30px; color: #5c626b; cursor: grab; touch-action: none; border-radius: 6px; user-select: none; }
.re-grip:hover { color: var(--text); background: rgba(255,255,255,.05); }
.re-row.re-dragging { opacity: .35; }
.re-row.re-over { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.re-ghost { position: fixed; z-index: 1000; pointer-events: none; background: var(--surface); border: 1px solid var(--accent); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.5); cursor: grabbing; list-style: none; }
body:has(.re-ghost) { cursor: grabbing; user-select: none; }
.re-hit.active { background: var(--accent-soft); border-color: var(--accent); }
.re-sugg:not(:has(.re-hit.active)) .re-hit.first { border-color: var(--border); }
.re-sugg:not(:has(.re-hit.active)) .re-hit.first b::after { content: ' ↵'; }

/* 当天有比赛的阵容球员：轻微底色 + 名字保持正常亮度 */
table.box tbody tr.has-game > td { background-image: linear-gradient(rgba(64, 196, 160, 0.075), rgba(64, 196, 160, 0.075)); }
table.box tbody tr.has-game:hover > td { background-image: linear-gradient(rgba(64, 196, 160, 0.11), rgba(64, 196, 160, 0.11)); }
tr.has-game.dnp .pn { color: var(--text); }
tr.has-game.dnp .dnp-reason { color: rgba(120, 214, 186, 0.75); }

/* 虎扑评分趋势 */
.trend-box { position: relative; }
.trend-svg { width: 100%; height: auto; display: block; overflow: visible; }
.trend-svg .tg { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 3; }
.trend-svg .ty, .trend-svg .tx { fill: var(--faint, #6b6f78); font-size: 10px; font-family: var(--font-num); }
.trend-svg .ty { text-anchor: end; }
.trend-svg .tx { text-anchor: middle; }
.trend-svg .tband { fill: rgba(255,255,255,.025); }
.trend-svg .tline { fill: none; stroke: var(--hupu); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend-svg .tarea { fill: var(--hupu); opacity: .10; }
.trend-svg .tdot { fill: var(--hupu); stroke: var(--surface); stroke-width: 2; }
.trend-svg .tlast { fill: var(--text); font-size: 11px; font-weight: 700; text-anchor: middle; font-family: var(--font-num); }
.trend-svg .thit { fill: transparent; cursor: pointer; }
.trend-tip { position: absolute; padding: 3px 8px; font-size: 11px; background: var(--surface-3); color: var(--text); border: 1px solid var(--border); border-radius: 4px; pointer-events: none; white-space: nowrap; font-family: var(--font-num); }

.trend-sec > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: var(--text-sm); font-weight: 600; color: var(--muted); padding: 2px 0; }
.trend-sec > summary::-webkit-details-marker { display: none; }
.trend-sec > summary:hover { color: var(--text); }
.trend-sec > summary .faint { margin-left: auto; font-weight: 400; font-size: var(--text-xs); }
.trend-caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .18s ease; margin-right: 2px; }
.trend-sec[open] > summary .trend-caret { transform: rotate(45deg); }
.trend-sec[open] > summary { margin-bottom: 10px; }

/* compact view bar (shared by 球员数据 / 我的阵容 / 单场) */
.toolbar.vbar { gap: var(--space-2) var(--space-3); }
.vbar .opts { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.opt { border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: 6px; padding: 5px 10px; font-size: var(--text-sm); cursor: pointer; line-height: 1.2; }
.opt:hover { color: var(--text); }
.opt.on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.opt:focus-visible { outline: 2px solid var(--accent); }
.ex-dd { position: relative; }
.ex-dd summary { list-style: none; cursor: pointer; border: 1px dashed var(--border); border-radius: 6px; padding: 5px 10px; font-size: var(--text-sm); color: var(--muted); white-space: nowrap; }
.ex-dd summary::-webkit-details-marker { display: none; }
.ex-dd[open] summary, .ex-dd summary:hover { color: var(--text); border-color: var(--accent); }
.ex-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; display: flex; flex-wrap: wrap; gap: 6px; width: 260px; padding: 10px; background: var(--surface-2, var(--surface)); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.vs-link { color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; }
.vs-link:hover { color: var(--accent); }
.g-nav { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.g-nav .back { margin-right: auto; }
.g-jump { display: inline-flex; gap: 4px; margin: var(--space-5) 0 var(--space-3); }
.g-jump a { color: var(--muted); text-decoration: none; font-size: var(--text-sm); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; }
.g-jump a:hover { color: var(--text); border-color: var(--accent); }

/* trades */
table.box tbody tr.tx-out > td { opacity: .55; }
table.box tbody tr.bench > td { opacity: .5; }
.tx-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.tx-p { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid var(--border); background: transparent; color: var(--text); border-radius: 8px; padding: 6px 8px; cursor: pointer; }
.re-row.tx-row { grid-template-columns: 74px 30px 1fr auto; }
.tx-p img { width: 30px; height: 30px; }
.tx-p img { border-radius: 50%; background: var(--surface-3); object-fit: cover; }
.tx-p.on { border-color: var(--accent); background: var(--accent-soft); }
.tx-nm { display: grid; font-size: var(--text-sm); line-height: 1.2; flex: 1; min-width: 0; }
.tx-nm small { color: var(--muted); font-size: var(--text-xs); }
.tx-card { border: 1px solid var(--border); border-radius: 10px; padding: var(--space-3); margin-bottom: var(--space-4); background: var(--surface); }
.tx-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px var(--space-3); margin-bottom: var(--space-3); font-size: var(--text-sm); }
.tx-h .spacer { flex: 1; }
.tx-sum { color: var(--text); }
.tx-body .table-wrap { margin: 0; }
.tx-dl { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--muted); }
.tx-dl .date-input { width: auto; }

/* team links, hupu scope, team drawer */
.team-link { color: inherit; text-decoration: none; cursor: pointer; border-bottom: 1px dotted transparent; }
.team-link:hover { color: var(--accent); border-bottom-color: currentColor; }
.hp-scope { margin-bottom: var(--space-4); }
.hp-gline { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); font-size: var(--text-sm); margin-bottom: var(--space-3); color: var(--text); }
.hp-gline .vs-link { color: var(--muted); text-decoration: none; font-size: var(--text-xs); }
.hp-gline .vs-link:hover { color: var(--accent); }
.hp-evs tr.hp-ev { cursor: pointer; }
.hp-evs tr.hp-ev:hover > td { background: var(--surface-2); }
.hp-chip { font-family: var(--font-num); font-weight: 700; }
.hp-sum { align-items: center; }
.hp-sum .statline { flex: 1; }
.tm-sched { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.tm-cap { font-size: var(--text-xs); color: var(--muted); margin-bottom: 4px; }
.tm-g { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; padding: 6px 4px; white-space: nowrap; border-bottom: 1px solid var(--border); font-size: var(--text-sm); text-decoration: none !important; color: var(--text); }
.tm-g:hover { background: var(--surface-2); }
.tm-roster tbody tr { cursor: pointer; }
.tm-roster tbody tr:hover > td { background: var(--surface-2); }
.tm-pl { display: inline-flex; align-items: center; gap: 8px; }
.tm-pl img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
@media (max-width: 640px) { .tm-sched { grid-template-columns: 1fr; } }

/* statline heat tiles */
.statline div.g1 { background: var(--good1); }
.statline div.g2 { background: var(--good2); }
.statline div.g3 { background: var(--elite); box-shadow: inset 0 0 0 1px rgba(255, 210, 100, .55); }
.statline div.g3 b { color: #ffe39a; }
.statline div.b1 { background: var(--bad1); }
.statline div.b2 { background: var(--bad2); }
/* 位置顺位 */
.dp-grid { display: flex; flex-direction: column; gap: 6px; }
.dp-row { display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border, rgba(255,255,255,.06)); }
.dp-row:last-child { border-bottom: 0; }
.dp-pos { font-weight: 700; font-size: var(--text-xs); color: var(--faint); padding-top: 10px; letter-spacing: .04em; }
.dp-list { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-p { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--muted, inherit); font: inherit; font-size: var(--text-xs); cursor: pointer; opacity: .62; }
.dp-p:hover { opacity: 1; background: var(--surface-2); }
.dp-p img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.dp-p.top { opacity: 1; background: var(--surface-2); color: var(--text, inherit); font-size: var(--text-sm); }
.dp-p.top img { width: 34px; height: 34px; }
.dp-p.r1 { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.dp-rk { font-size: 10px; min-width: 14px; text-align: center; color: var(--faint); font-weight: 700; }
.dp-p.top .dp-rk { color: var(--accent); }
.dp-nm { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.dp-nm small { font-size: 10px; }
.dp-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; vertical-align: middle; margin: 0 2px; font-style: normal; }
.dp-dot.me { background: var(--accent); }
.dp-dot.op { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }
.dp-tag { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: var(--text-xs); background: var(--surface-3); color: var(--faint); font-weight: 600; }
.dp-tag.top { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.dp-tag.r1 { color: var(--bg, #111); background: var(--accent); }
.dp-more { font-weight: 400; font-size: var(--text-xs); margin-left: 4px; }
.gc-team .team-link, .ts-team .team-link { position: relative; z-index: 1; }
/* 虎扑逐场趋势 */
.hp-series .tline { stroke: var(--muted); stroke-width: 1.6; opacity: .7; }
.hp-series .tbar { fill: var(--text); opacity: .07; }
.hp-series .tavg { stroke: var(--hupu); stroke-width: 1; stroke-dasharray: 4 4; opacity: .55; }
.hp-series .tpt { cursor: pointer; }
.hp-series .tpt circle:first-child { fill: currentColor; stroke: var(--surface); stroke-width: 1.5; }
.hp-series .tsc { fill: currentColor; font-size: 10.5px; font-weight: 700; text-anchor: middle; font-family: var(--font-num); }
.hp-series .thit { fill: transparent; }
.hp-series .tpt:hover circle:first-child { r: 6; }
tr.hp-ev { cursor: pointer; }
tr.hp-ev:hover > td { background-color: var(--surface-2); }
/* 返回顶部 */
.to-top { position: fixed; right: 18px; bottom: 22px; z-index: 60; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 88%, transparent); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.to-top:hover { color: var(--accent); border-color: var(--accent); }
.to-top[hidden] { display: none; }
/* 球队数据 */
.tm-stand-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 1180px) { .tm-stand-grid { grid-template-columns: 1fr 1fr; } }
.stand tr.cut6 > td { border-bottom: 1.5px solid var(--muted); }
.stand tr.cut10 > td { border-bottom: 1.5px dashed var(--faint); }
.stand tr.out > td { opacity: .72; }
.stand .tm-pl img, .tm-rank .tm-pl img { width: 22px; height: 22px; border-radius: 0; background: none; object-fit: contain; }
.tm-rank td .sub { font-size: .66rem; }
.tm-rank th[data-tsort] { cursor: pointer; white-space: nowrap; }
.tm-rank th.sorted { color: var(--accent); }

/* 宽抽屉：位置顺位 : 阵容 = 1.618 : 1 */
.dr-cols { display: grid; grid-template-columns: 1fr; gap: var(--space-5); align-items: start; }
@media (min-width: 1600px) { .dr-cols { grid-template-columns: 1.618fr 1fr; } .dr-cols > .dr-section { margin-top: 0; } }
.dp-p.me { opacity: 1; background: var(--accent-soft); border-color: var(--accent); color: var(--text); font-weight: 700; cursor: default; }
.dp-p.me .dp-rk { color: var(--accent); }
/* lineup change log */
.ln-log { margin: 4px 0 18px; padding: 10px 14px; border: 1px solid var(--border, rgba(127,127,127,.25)); border-radius: 10px; }
.ln-h { margin: 0 0 6px; font-size: 14px; }
.ln-h small { margin-left: 8px; font-weight: 400; opacity: .65; font-size: 12px; }
.ln-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-top: 1px dashed rgba(127,127,127,.2); font-size: 13px; }
.ln-row:first-of-type { border-top: 0; }
.ln-set { display: flex; gap: 6px 14px; flex-wrap: wrap; flex: 1; }
.ln-it.to-bn { opacity: .6; }
.ln-del { margin-left: auto; }
.auto-msg { display: flex; align-items: center; gap: 10px; margin: 8px 0 10px; padding: 8px 12px; border-radius: 8px; font-size: 13px; background: rgba(127,127,127,.08); }
.auto-msg span { flex: 1; }
.auto-msg .icon-btn { width: 26px; height: 26px; }
.re-count { display: flex; align-items: center; gap: 8px; }
.re-auto { margin-left: auto; padding: 3px 10px; font-size: 12px; }
.re-pend { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; opacity: .85; }
.re-pday { border: 1px solid rgba(127,127,127,.35); background: transparent; color: inherit; border-radius: 999px; padding: 1px 8px; font-size: 12px; cursor: pointer; }
.re-pday.on { border-color: var(--accent, #f58220); color: var(--accent, #f58220); }
.re-gdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good-text, #3fb87f); margin-left: 6px; vertical-align: middle; }
.re-gdot.warn { background: transparent; box-shadow: inset 0 0 0 1.5px var(--good-text, #3fb87f); }
.re-gm { color: var(--good-text, #3fb87f); opacity: .9; }
/* 手机：球员列收窄，名字和小字过长时省略，给右侧数据留空间 */
@media (max-width: 640px) {
  table.box .pcol { min-width: 0; max-width: 150px; }
  table.box .pcell { gap: 6px; }
  table.box .pcell .fav-btn, table.box .pcell > button:first-child { margin-right: -2px; }
  table.box .pcell img { width: 24px; height: 24px; }
  table.box .pcell .pn { min-width: 0; max-width: 112px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  table.box .pcell .pn small { overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; }
}
/* 本周剩余场次 */
table.box th.left-col, table.box td.left-col { text-align: center; min-width: 34px; }

.lf-sec .lf-days { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: 12px; margin: 2px 0 8px; color: var(--faint); }
.lf-sec .lf-d b { margin-left: 4px; color: var(--text); font-weight: 600; }
.lf-row { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; border-top: 1px dashed rgba(127,127,127,.18); }
.lf-row:first-of-type { border-top: 0; }
.lf-n { flex: 0 0 48px; text-align: center; font-weight: 700; border-radius: 6px; padding: 2px 0; font-size: 13px; }
.lf-teams { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
/* 平板 / 手机横屏：球员列也收窄 */
@media (max-width: 1100px) {
  table.box .pcol { min-width: 0; max-width: 210px; }
  table.box .pcell .pn { min-width: 0; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  table.box .pcell .pn small { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 640px) {
  table.box .pcol { max-width: 150px; }
  table.box .pcell .pn { max-width: 112px; }
}

/* 编辑阵容：位置合规提示（本地修复合并） */
.re-row.re-no { background: rgba(255, 77, 109, .12); box-shadow: inset 0 0 0 1px #ff4d6d; cursor: not-allowed; }
.re-row.re-warn .re-slot { border-color: #ff4d6d; color: #ff4d6d; }
.re-row.re-warn { background: rgba(255, 77, 109, .06); }
.re-badtag { color: #ff4d6d; font-weight: 700; }
.re-slot option:disabled { color: #6b7385; }

/* ---------- 今日锐评 ---------- */
.rt-top { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.rt-top .section-title { margin: 0; }
.rt-ch { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--muted); }
.rt-ch input { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); padding: 6px 10px; width: 160px; font: inherit; }
.rt-tip { color: var(--muted); font-size: var(--text-sm); margin: var(--space-2) 0 var(--space-4); max-width: 70ch; }
.rt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: var(--space-5); align-items: start; }
.rt-segs { display: grid; gap: var(--space-3); }
.rt-seg { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3) var(--space-4) var(--space-4); transition: opacity .2s; }
.rt-seg.off { opacity: .45; }
.rt-seg.off .rt-who, .rt-seg.off .rt-q, .rt-seg.off .rt-quip { display: none; }
.rt-seg header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.rt-on { display: flex; align-items: baseline; gap: var(--space-2); cursor: pointer; min-width: 0; }
.rt-on input { accent-color: var(--accent); width: 16px; height: 16px; align-self: center; margin: 0; }
.rt-on b { color: var(--accent); font-size: var(--text-base); white-space: nowrap; }
.rt-on small { color: var(--faint); font-size: var(--text-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-swap { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 10px; cursor: pointer; font-size: var(--text-xs); color: var(--muted); white-space: nowrap; display: inline-flex; gap: 6px; }
.rt-swap:hover { color: var(--text); border-color: var(--faint); }
.rt-swap .num { color: var(--faint); }
.rt-who { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.rt-av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--surface-2); flex: none; }
.rt-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rt-nm b { font-size: var(--text-base); }
.rt-nm small { color: var(--muted); font-size: var(--text-xs); }
.rt-nm a { color: inherit; }
.rt-sc { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.rt-sc .num { font-size: 2rem; font-weight: 700; line-height: 1; }
.rt-sc small { color: var(--faint); font-size: var(--text-xs); }
.rt-q { margin: var(--space-3) 0 0; padding: var(--space-2) var(--space-3); border-left: 3px solid var(--hupu); background: var(--hupu-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: var(--text-sm); position: relative; }
.rt-q-who { color: var(--muted); font-size: var(--text-xs); margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.rt-q-who .hp-badge { font-size: 11px; padding: 0 5px; }
.rt-light { display: block; color: var(--hupu); font-size: var(--text-xs); margin-top: 2px; text-align: right; }
.rt-quip { display: block; margin-top: var(--space-3); }
.rt-quip span { display: block; font-size: var(--text-xs); color: var(--faint); margin-bottom: 4px; }
.rt-quip textarea, .rt-script { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); padding: 8px 10px; font: inherit; font-size: var(--text-sm); line-height: 1.6; resize: vertical; }
.rt-quip textarea:focus, .rt-script:focus, .rt-ch input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.rt-out { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow-y: auto; scrollbar-width: thin; }
.rt-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3); }
.rt-box-h { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); flex-wrap: wrap; }
.rt-box-h b { font-size: var(--text-sm); }
.rt-box-h small { color: var(--faint); font-size: var(--text-xs); margin-right: auto; }
.rt-btn { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 5px 12px; cursor: pointer; font-size: var(--text-xs); color: var(--text); white-space: nowrap; }
.rt-btn:hover { border-color: var(--faint); }
.rt-btn.primary { background: var(--accent); border-color: var(--accent); color: #111; font-weight: 700; }
.rt-cards { transition: opacity .2s; }
.rt-cards.busy { opacity: .5; }
.rt-cards .state { padding: var(--space-5) 0; }
.rt-prev { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; align-items: center; gap: 6px; }
.rt-stage { display: flex; justify-content: center; }
.rt-stage img { height: min(60vh, 560px); width: auto; max-width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); cursor: zoom-in; touch-action: pan-y; }
.rt-arrow { width: 32px; height: 56px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.rt-arrow:hover { border-color: var(--accent); color: var(--accent); }
.rt-pcap { display: flex; align-items: center; gap: var(--space-3); padding: 8px 2px 4px; font-size: var(--text-sm); }
.rt-pname { font-weight: 600; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-pact { display: flex; gap: var(--space-3); }
.rt-pact .rt-link { font-size: var(--text-sm); }
.rt-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 2px; scrollbar-width: thin; }
.rt-thumbs button { flex: none; width: 42px; padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; opacity: .6; overflow: hidden; }
.rt-thumbs button.active { border-color: var(--accent); opacity: 1; }
.rt-thumbs img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.rt-lb { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 6, 8, .92); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.rt-lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: calc(100vw - 150px); }
.rt-lb img { height: calc(100vh - 110px); width: auto; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; touch-action: pan-y; }
.rt-lb figcaption { display: flex; align-items: center; gap: 14px; color: #ebe8e2; font-size: var(--text-sm); }
.rt-lb-a { width: 52px; height: 80px; flex: none; border-radius: 12px; border: 1px solid #3a4049; background: #14171c; color: #ebe8e2; font-size: 34px; cursor: pointer; }
.rt-lb-a:hover { border-color: var(--accent); color: var(--accent); }
.rt-lb-x { position: absolute; top: 14px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #3a4049; background: #14171c; color: #ebe8e2; font-size: 18px; cursor: pointer; }
.rt-nav { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }
.rt-nav button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.rt-nav button:hover { border-color: var(--accent); color: var(--accent); }
.rt-nav .num { min-width: 40px; text-align: center; font-size: var(--text-xs); color: var(--muted); }
.rt-open { background: none; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; color: var(--accent); font-size: var(--text-xs); cursor: pointer; white-space: nowrap; }
.rt-open:hover { border-color: var(--accent); }
.rt-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; margin-top: var(--space-3); }
.rt-chip { display: flex; flex-direction: column; gap: 1px; padding: 6px 12px; border-radius: 8px; background: var(--surface-2); min-width: 92px; }
.rt-chip small { font-size: 11px; color: var(--muted); }
.rt-chip b { font-size: 20px; line-height: 1.1; }
.rt-chip em { font-style: normal; font-size: 11px; color: var(--faint); }
.rt-chip.g b { color: #5fd6c9; }
.rt-chip.b b { color: #ff6b6b; }
.rt-chips .rt-open { align-self: center; margin-left: auto; }
.ct-hero { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-3); padding: 10px 16px; background: var(--surface-2); border-left: 4px solid var(--ct); border-radius: 10px; }
.ct-hero > div { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ct-hero small { font-size: 11px; color: var(--muted); }
.ct-hero span { font-weight: 700; font-size: var(--text-sm); }
.ct-hero em { font-style: normal; font-size: var(--text-xs); color: var(--ct); font-weight: 700; }
.ct-hero > b { font-size: 34px; font-weight: 700; color: var(--ct); white-space: nowrap; }
.ct-vs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-top: var(--space-2); }
.ct-vs-c { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; min-width: 0; line-height: 1.3; }
.ct-vs-c.foil { outline: 1px dashed color-mix(in srgb, #e9b15f 60%, transparent); }
.ct-vs-c > small { font-size: 11px; color: var(--muted); }
.ct-vs-c.foil > small { color: #e9b15f; }
.ct-vs-c > b { font-size: var(--text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-vs-c > span { font-size: 26px; font-weight: 700; line-height: 1.1; }
.ct-vs-c > em { font-style: normal; font-size: 11px; color: var(--muted); }
.ct-vs-c > i { font-style: normal; font-size: var(--text-xs); color: var(--muted); }
.ct-vs-c > i b { color: var(--text); }
.ct-vs-c .rt-link { align-self: flex-start; margin-top: 2px; }
.ct-actions { display: flex; justify-content: flex-end; margin-top: var(--space-2); }
.ct-hot { color: #e9b15f; font-weight: 600; }
.rt-link { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: var(--text-xs); padding: 0; white-space: nowrap; }
.rt-row { display: flex; gap: var(--space-3); align-items: baseline; flex-wrap: wrap; margin-top: var(--space-2); font-size: var(--text-xs); }
.rt-title p { margin: 0 0 4px; font-size: var(--text-sm); }
@media (max-width: 900px) {
  .rt-grid { grid-template-columns: 1fr; }
  .rt-out { position: static; max-height: none; overflow: visible; order: -1; }
}
@media (max-width: 480px) {
  .rt-on small { display: none; }
}

/* 数据法庭 */
.rt-mode { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.rt-mode button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 7px 16px; border-radius: 7px; cursor: pointer; }
.rt-mode button.active { background: var(--accent); color: #0c0e11; }
.ct-case { border-left: 3px solid var(--ct); }
.ct-kind { color: var(--ct) !important; }
.ct-no { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ct-sc-old { display: flex; align-items: center; gap: 8px; margin-left: auto; text-align: center; }
.ct-sc span { display: flex; flex-direction: column; line-height: 1.1; }
.ct-sc small { font-size: 11px; color: var(--muted); }
.ct-sc b { font-size: 26px; font-weight: 700; }
.ct-sc i { font-style: normal; color: var(--faint); }
.ct-ev { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ct-ev li { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 4px 10px; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); border-left: 3px solid #5fd6c9; }
.ct-ev li.bad { border-left-color: #ff6b6b; }
.ct-ev li span { font-size: 12px; color: var(--muted); }
.ct-ev li b { font-size: 18px; color: #5fd6c9; }
.ct-ev li.bad b { color: #ff6b6b; }
.ct-ev li small { font-size: 12px; color: var(--faint); justify-self: end; }
.ct-ev li p { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.5; }
.rt-seg.off .ct-ev { display: none; }
.ct-ev li.counter { background: transparent; border: 1px dashed var(--border); border-left: 3px dashed #e9b15f; } .ct-ev li.counter span { color: #e9b15f; }
.ct-ev li p { color: var(--text); }

@media (max-width: 900px) {
  .rt-stage img { height: min(62vh, 520px); }
  .rt-lb figure { max-width: calc(100vw - 20px); }
  .rt-lb-a { position: absolute; bottom: 14px; width: 56px; height: 44px; font-size: 26px; }
  .rt-lb-a.l { left: 16px; } .rt-lb-a.r { right: 16px; }
  .rt-lb img { height: calc(100vh - 170px); }
}

/* Yahoo Fantasy 同步抽屉与自动同步条 */
.league-jump {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  border-radius: 999px; border: 1px solid rgba(167, 139, 250, 0.42);
  background: rgba(124, 58, 237, 0.12); color: #e9d5ff;
  font-size: var(--text-xs); font-weight: 600; text-decoration: none;
  white-space: nowrap; transition: border-color .15s, background .15s, color .15s;
}
.league-jump:hover { border-color: #a78bfa; background: rgba(124, 58, 237, 0.22); color: #fff; }
.league-jump i { font-style: normal; opacity: 0.8; font-size: 11px; }
.lj-dot { width: 7px; height: 7px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2); flex: none; }
.btn-yahoo { border-color: rgba(167, 139, 250, 0.45); color: #d6bcfa; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.btn-yahoo:hover { border-color: #a78bfa; color: #f3e8ff; background: rgba(124, 58, 237, 0.14); }
.btn-ysync { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); padding: 6px 11px; color: var(--muted); }
.btn-ysync.ok { border-color: rgba(61, 220, 132, 0.32); color: #9be8bf; background: rgba(61, 220, 132, 0.06); }
.btn-ysync.busy { border-color: rgba(167, 139, 250, 0.45); color: #d6bcfa; }
.btn-ysync.err { border-color: rgba(255, 92, 92, 0.42); color: var(--bad-text); }
.btn-ysync .ys-ic { display: inline-block; font-style: normal; }
.btn-ysync.busy .ys-ic { animation: spin .9s linear infinite; }
.f-actions { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
@media (max-width: 520px) {
  .topbar-inner { gap: 6px; padding-inline: 10px; }
  .brand { font-size: 13.5px; gap: 5px; white-space: nowrap; flex-shrink: 0; }
  .brand svg { width: 18px; height: 18px; flex-shrink: 0; }
  .topbar-right { gap: 5px; flex-shrink: 0; }
  .league-jump { padding: 4px 7px; gap: 3px; font-size: 11.5px; }
  .lj-dot { display: none; }
  .tz-seg { flex-shrink: 0; }
  .tz-seg button { padding: 3px 6px; font-size: 11.5px; white-space: nowrap; }
  .icon-btn { width: 30px; height: 30px; flex-shrink: 0; }
}
.yh-badge { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #6d28d9, #4c1d95); color: #fff; font-weight: 800; font-size: 16px; display: grid; place-items: center; flex-shrink: 0; letter-spacing: -0.03em; }
.yh-body h4 { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.yh-ext { font-size: var(--text-xs); font-weight: 500; color: var(--accent); text-decoration: none; }
.yh-ext:hover { text-decoration: underline; }
.yh-cfg { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 8px; }
.yh-cfg label { display: flex; flex-direction: column; gap: 4px; font-size: var(--text-xs); color: var(--muted); }
.yh-in { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); padding: 7px 10px; font-size: var(--text-base); width: 100%; }
.yh-in:focus, .yh-ta:focus { outline: none; border-color: var(--accent); }
.yh-tip { font-size: var(--text-xs); margin: 8px 0 0; line-height: 1.45; }
.yh-desc { font-size: var(--text-sm); color: var(--muted); margin: 6px 0 10px; line-height: 1.5; }
.yh-status { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: var(--text-sm); line-height: 1.55; color: var(--muted); }
.yh-status.ok { border-color: rgba(61, 220, 132, 0.4); background: rgba(61, 220, 132, 0.09); color: var(--text); }
.yh-status.ok b { color: var(--good-text); }
.yh-status.warn { border-color: rgba(233, 177, 95, 0.45); background: rgba(233, 177, 95, 0.08); color: var(--text); }
.yh-status.warn > b { color: var(--hupu); }
.yh-status.err { border-color: rgba(255, 92, 92, 0.45); background: rgba(255, 92, 92, 0.09); color: var(--bad-text); }
.yh-steps { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 5px; font-size: var(--text-xs); color: var(--muted); }
.yh-steps a { color: var(--accent); }
.yh-steps b { color: var(--text); }
.yh-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.yh-actions button:disabled { opacity: 0.55; cursor: wait; }
.yh-step { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px; }
.yh-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--text-xs); margin-bottom: 10px; }
.yh-bm-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.yh-bm { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: var(--radius-sm); background: #6d28d9; color: #fff; font-size: var(--text-sm); font-weight: 600; text-decoration: none; border: 1px solid #8b5cf6; cursor: grab; user-select: none; }
.yh-bm:hover { background: #7c3aed; }
.yh-ta { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 8px 10px; resize: vertical; }
.yh-msg { margin-top: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); font-size: var(--text-xs); color: var(--muted); }
.yh-msg.err { border-color: rgba(255, 92, 92, 0.45); color: var(--bad-text); }
@media (max-width: 520px) {
  .yh-cfg { grid-template-columns: 1fr 1fr; }
  .yh-cfg button { grid-column: 1 / -1; }
}

