/* football.css — 足球模块: 联赛视图 (赛果 / 赛程 / 积分榜 / 球员榜) + 比赛 / 球队 / 球员详情。
   只用 app.css 的 token; 数据可视化色 (球场绿、评分红绿、黄红牌、积分榜分区) 写死在下面这组变量里。 */
:root {
  --fx-good: #22c55e;  --fx-good-ink: #052611;
  --fx-bad: #ef4444;   --fx-bad-ink: #ffffff;
  --fx-mid: #f59e0b;   --fx-mid-ink: #1b1300;
  --fx-yellow: #facc15; --fx-red: #ef4444;
  --fx-pitch: #1d6b3a; --fx-pitch-2: #1a6234;
  --fx-home: #4ade80;  --fx-away: #93c5fd;
}
:root[data-theme="light"] { --fx-yellow: #eab308; }

.fx-img-ph { display: inline-block; flex: none; }

/* ── 联赛视图: 二级胶囊吸在赛事栏下方 ── */
.fx-tabs {
  position: sticky; top: calc(var(--safe-top) + var(--hz-bar-h)); z-index: 90;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.fx-pane { padding-bottom: 24px; }
.fx-sentinel { height: 1px; }

/* 轮次标题 (球队页「最近一场 / 接下来」同款) */
.fx-round { padding: 16px 16px 4px; text-align: center; color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .02em; }

/* ── 比赛行 (已赛 / 进行中) ── */
.fx-row {
  display: block; padding: 10px 16px 12px; border-bottom: 1px solid var(--line); cursor: pointer;
  content-visibility: auto; contain-intrinsic-size: auto 104px;
}
.fx-row:active { background: var(--surface); }
.fx-when { margin-bottom: 6px; color: var(--text); font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-time { color: var(--muted); }
.fx-comp { margin-right: 6px; color: var(--accent); font-weight: 600; }
.fx-tag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 10.5px; font-weight: 700; line-height: 16px; vertical-align: 1px; }
.fx-tag.live { background: var(--accent-soft); color: var(--accent); }
.fx-tag.warn { color: var(--warn); }

/* 主客两行共用一张网格: [队徽][队名][比分] | 竖线 | [评分栏, 跨两行]; 队名列定宽 → 比分 / 竖线全页对齐 */
.fx-body {
  --fx-name-w: 8.2rem;
  display: grid; grid-template-columns: 34px var(--fx-name-w) 1.4rem; justify-content: start;
  align-items: center; column-gap: .5rem; row-gap: 6px;
}
.fx-body.has-rt { grid-template-columns: 34px var(--fx-name-w) 1.4rem 1px minmax(0, 1fr); justify-content: stretch; }
.fx-logo { grid-column: 1; width: 34px; height: 34px; object-fit: contain; cursor: pointer; }
.fx-name { grid-column: 2; min-width: 0; color: var(--text-2); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-score { grid-column: 3; color: var(--text-2); font-size: 17px; font-weight: 700; text-align: center; }
.fx-name.win, .fx-score.win { color: var(--text); }
.fx-name.win { font-weight: 600; }
.fx-div { grid-column: 4; grid-row: 1 / span 2; align-self: stretch; width: 1px; background: var(--line-2); }
.fx-rts { grid-column: 5; grid-row: 1 / span 2; min-width: 0; margin: 0; padding: 0 0 0 4px; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.fx-rt { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 11px; line-height: 1.3; }
.fx-rt.fx-hi + .fx-rt.fx-lo { margin-top: 3px; }
.fx-rt-logo { flex: none; width: 12px; height: 12px; object-fit: contain; }
.fx-rt-name { flex: 0 1 auto; min-width: 0; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-rt-marks { flex: none; display: inline-flex; align-items: center; gap: 1px; color: var(--text-2); }
.fx-rt-val { flex: none; margin-left: auto; min-width: 2.2em; padding: 0 3px; border-radius: 3px; font-weight: 700; text-align: center; }
.fx-rt.fx-hi .fx-rt-val { background: var(--fx-good); color: var(--fx-good-ink); }
.fx-rt.fx-lo .fx-rt-val { background: var(--fx-bad); color: var(--fx-bad-ink); }
.fx-mk { display: inline-block; font-style: normal; line-height: 1; }
.fx-mk-goal { font-size: .85em; }
.fx-mk-boot { width: 1.45em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fx-mk-red { width: .5em; height: .72em; border-radius: 1px; background: var(--fx-red); }

/* ── 未赛一行: [主队名 队徽] [日期 / 时间] [队徽 客队名], 长队名折行 ── */
.fx-up { padding: 10px 12px; contain-intrinsic-size: auto 62px; }
.fx-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 8px; }
.fx-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fx-side.home { justify-content: flex-end; text-align: right; }
.fx-slogo { flex: none; width: 32px; height: 32px; object-fit: contain; cursor: pointer; }
.fx-sname { min-width: 0; color: var(--text); font-size: 14px; line-height: 1.25; overflow-wrap: break-word; }
.fx-kick { display: flex; flex-direction: column; align-items: center; min-width: 3.8rem; line-height: 1.25; }
.fx-kick .fx-comp { margin: 0 0 1px; font-size: 10.5px; white-space: nowrap; }
.fx-k-date { color: var(--muted); font-size: 11px; }
.fx-k-time { color: var(--text); font-size: 16px; font-weight: 700; }
.fx-k-tag { color: var(--warn); font-size: 11px; font-weight: 700; }

@media (min-width: 520px) {
  .fx-body { --fx-name-w: 11rem; column-gap: .65rem; }
  .fx-rt { font-size: 12px; }
  .fx-rt-logo { width: 14px; height: 14px; }
  .fx-logo { width: 38px; height: 38px; }
  .fx-body, .fx-body.has-rt { grid-template-columns: 38px var(--fx-name-w) 1.4rem; }
  .fx-body.has-rt { grid-template-columns: 38px var(--fx-name-w) 1.4rem 1px minmax(0, 1fr); }
  .fx-slogo { width: 36px; height: 36px; }
  .fx-sname { font-size: 15px; }
}

/* ── 积分榜 ── */
.st-wrap { padding: 4px 8px 8px; }
.st-group { margin: 16px 8px 4px; color: var(--text); font-size: 14px; font-weight: 700; }
.st-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.st-table th { padding: 8px 2px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11.5px; font-weight: 600; text-align: center; white-space: nowrap; }
.st-table td { padding: 9px 2px; border-bottom: 1px solid var(--line); color: var(--text); text-align: center; white-space: nowrap; }
.st-table tbody tr { cursor: pointer; }
.st-table tbody tr:active td { background: var(--surface); }
.st-table .st-c-rank { width: 2em; }
.st-table th.st-c-n { width: 2em; }
.st-table .st-c-gfga { width: 3.6em; display: none; }
.st-table th.st-c-gd { width: 2.6em; }
.st-table th.st-c-pts { width: 2.4em; }
.st-table .st-c-form { width: 6.4em; display: none; }
.st-table .st-c-team { text-align: left; padding-left: 4px; }
.st-c-team > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.st-c-team span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.st-logo { flex: none; width: 22px; height: 22px; object-fit: contain; }
td.st-c-rank { position: relative; color: var(--muted); }
td.st-c-rank::before { content: ""; position: absolute; left: 1px; top: 22%; bottom: 22%; width: 3px; border-radius: 2px; background: transparent; }
td.st-c-pts { color: var(--accent); font-weight: 800; }
.st-z-r16, .st-z-ucl { --z: #3b82f6; }
.st-z-kpo { --z: #a78bfa; }
.st-z-uel { --z: #f59e0b; }
.st-z-uecl { --z: #14b8a6; }
.st-z-relpo { --z: #fb923c; }
.st-z-rel { --z: #ef4444; }
td.st-c-rank[class*="st-z-"]::before { background: var(--z); }
.st-f { display: inline-block; width: 7px; height: 7px; margin: 0 1.5px; border-radius: 50%; background: var(--muted); }
.st-f.W { background: var(--fx-good); }
.st-f.L { background: var(--fx-bad); }
.st-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 8px 0; color: var(--muted); font-size: 12px; }
.st-leg { display: inline-flex; align-items: center; gap: 6px; }
.st-leg i { width: 10px; height: 10px; border-radius: 2px; background: var(--z); }
@media (min-width: 480px) {
  .st-table .st-c-gfga { display: table-cell; }
  .st-table th.st-c-n { width: 2.4em; }
}
@media (min-width: 560px) {
  .st-table .st-c-form { display: table-cell; }
}

/* ── 球员榜 ── */
.bd-kinds { padding-bottom: 4px; }
.bd-wrap { padding: 0 16px; }
.bd-head, .bd-row { display: flex; align-items: center; gap: 10px; }
.bd-head { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11.5px; font-weight: 600; }
.bd-h-player { flex: 1 1 auto; min-width: 0; padding-left: calc(1.6rem + 36px + 20px); }
.bd-row { padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.bd-row:active { background: var(--surface); }
.bd-rank { flex: none; width: 1.6rem; color: var(--muted); font-size: 13px; text-align: center; }
.bd-photo { flex: none; width: 36px; height: 36px; object-fit: contain; }
.bd-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bd-main b { color: var(--text); font-size: 14.5px; font-weight: 600; }
.bd-team { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; }
.bd-tlogo { flex: none; width: 14px; height: 14px; object-fit: contain; }
.bd-sub { flex: none; width: 2.4rem; color: var(--text-2); font-size: 13px; text-align: center; white-space: nowrap; }
.bd-val { flex: none; width: 2.6rem; color: var(--accent); font-size: 20px; font-weight: 800; text-align: center; white-space: nowrap; }
.bd-val.yellow { color: var(--fx-yellow); }
.bd-val.red { color: var(--fx-red); }
.bd-head .bd-sub, .bd-head .bd-val { color: var(--muted); font-size: 11.5px; font-weight: 600; }

/* ── 详情页通用: 顶栏下的分段 tab 吸顶 ── */
.md-tabs, .pl-tabs {
  position: sticky; top: calc(var(--safe-top) + var(--bar-h)); z-index: 90;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

/* ── 比赛页 hero ── */
.md-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 14px 12px 6px; }
.md-side { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; cursor: pointer; }
.md-logo { width: 56px; height: 56px; object-fit: contain; }
.md-tname { color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.25; overflow-wrap: break-word; }
.md-center { min-width: 6.5rem; text-align: center; }
.md-round { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.md-score { display: flex; justify-content: center; gap: 8px; color: var(--text); font-size: 34px; font-weight: 800; line-height: 1.15; }
.md-dash { color: var(--muted); font-weight: 400; }
.md-vs { font-size: 24px; }
.md-status { color: var(--muted); font-size: 12px; font-weight: 600; }
.md-status.live { color: var(--accent); }
.md-meta { padding: 2px 16px 10px; color: var(--muted); font-size: 12px; text-align: center; }
.md-body { padding: 12px 16px 28px; }
.md-h3 { margin: 20px 0 6px; color: var(--text); font-size: 15px; font-weight: 700; }
.md-h3:first-child { margin-top: 2px; }
.md-card { display: inline-block; width: .55em; height: .78em; margin-right: 3px; border-radius: 1.5px; vertical-align: -.08em; }
.md-card.yellow { background: var(--fx-yellow); }
.md-card.red { background: var(--fx-red); }
.fx-hi { --rt-bg: var(--fx-good); --rt-ink: var(--fx-good-ink); }
.fx-mid { --rt-bg: var(--fx-mid); --rt-ink: var(--fx-mid-ink); }
.fx-lo { --rt-bg: var(--fx-bad); --rt-ink: var(--fx-bad-ink); }

/* 阵容: 竖向球场 */
.md-formation { max-width: 440px; margin: 0 auto 18px; }
.md-pitch-label { display: flex; align-items: center; gap: 8px; padding: 6px 2px; color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.md-pitch-label b { margin-left: auto; color: var(--accent); }
.md-pl-logo { flex: none; width: 22px; height: 22px; object-fit: contain; }
.md-pitch {
  position: relative; aspect-ratio: 68 / 112; overflow: hidden; border-radius: 10px; color: rgba(255, 255, 255, .42);
  background: repeating-linear-gradient(180deg, var(--fx-pitch) 0 9.09%, var(--fx-pitch-2) 9.09% 18.18%);
}
.md-pitch-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.md-pp { position: absolute; display: flex; flex-direction: column; align-items: center; width: 4.6rem; transform: translate(-50%, -50%); cursor: pointer; }
.md-pp-av { position: relative; width: 32px; height: 32px; }
.md-pp-photo { display: block; width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 1px 2px #0008); }
.md-pp.away .md-pp-photo { border-color: var(--fx-away); }
.md-pp-num { position: absolute; left: -7px; bottom: -3px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: #0b1f14; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.md-pp-rt { position: absolute; right: -13px; top: -6px; height: 16px; padding: 0 4px; border-radius: 4px; background: var(--rt-bg); color: var(--rt-ink); font-size: 10px; font-weight: 800; line-height: 16px; }
.md-pp-name { max-width: 100%; margin-top: 3px; padding: 0 4px; border-radius: 3px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 10.5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-pm-goal { margin-right: 1px; font-size: .85em; font-style: normal; }

/* 阵容: 名单两栏 (主左客右, 客队镜像) */
.md-lu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; }
.md-lu-head { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--text); font-size: 14px; font-weight: 700; }
.md-lu-head.away { flex-direction: row-reverse; }
.md-lu-logo { flex: none; width: 22px; height: 22px; object-fit: contain; }
.md-lu-coach { min-height: 1.4em; color: var(--muted); font-size: 11.5px; }
.md-lu-coach.away { text-align: right; }
.md-lu-sec { grid-column: 1 / -1; margin: 14px 0 2px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .03em; text-align: center; }
.md-lu-row { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.md-lu-list.away .md-lu-row { flex-direction: row-reverse; text-align: right; }
.md-lu-row.unused { opacity: .45; }
.md-lu-photo { flex: none; width: 28px; height: 28px; object-fit: contain; }
.md-lu-num { flex: none; width: 1.5em; color: var(--muted); font-size: 11.5px; text-align: center; }
.md-lu-name { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 4px; color: var(--text); }
.md-lu-list.away .md-lu-name { flex-direction: row-reverse; }
.md-lu-name em { flex: none; padding: 0 3px; border-radius: 3px; background: var(--surface-3); color: var(--text-2); font-size: 10px; font-style: normal; }
.md-lu-in { flex: none; font-size: 11px; }
.md-lu-in { color: var(--accent); }
.md-lu-rt { flex: none; min-width: 2.1em; padding: 1px 3px; border-radius: 4px; background: var(--rt-bg); color: var(--rt-ink); font-size: 11px; font-weight: 700; text-align: center; }
.md-lu-rt.none { background: none; }

/* 时间线: 主队左半, 客队右半 */
.md-tl { display: flex; flex-direction: column; }
.md-tl-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 600; }
.md-tl-head > span { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 50%; }
.md-tl-head > span:last-child { flex-direction: row-reverse; }
.md-tl-logo { flex: none; width: 20px; height: 20px; object-fit: contain; }
.md-tl-row { display: flex; align-items: center; gap: 6px; width: 50%; padding: 5px 0; }
.md-tl-row.home { align-self: flex-start; padding-right: 6px; }
.md-tl-row.away { align-self: flex-end; flex-direction: row-reverse; padding-left: 6px; text-align: right; }
.md-tl-min { flex: none; min-width: 2.7em; color: var(--muted); font-size: 11.5px; }
.md-tl-row.away .md-tl-min { text-align: right; }
.md-tl-body { flex: 1 1 auto; min-width: 0; }
.md-tl-main, .md-tl-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-tl-main { color: var(--text); font-size: 13px; line-height: 1.35; }
.md-tl-main em { color: var(--accent); font-size: .82em; font-style: normal; }
.md-tl-sub { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.md-ico { margin-right: 4px; font-size: .9em; font-style: normal; }
.md-ico.miss { color: var(--danger); }
.md-ico.var { padding: 0 4px; border-radius: 3px; background: var(--surface-3); color: var(--text-2); font-size: 9.5px; font-weight: 800; vertical-align: .1em; }
.md-arr { margin-right: 3px; font-style: normal; font-weight: 700; }
.md-arr.in { color: var(--accent); }
.md-arr.out { color: var(--danger); }
.md-tl-sep { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; color: var(--muted); font-size: 11.5px; letter-spacing: .04em; }
.md-tl-sep::before, .md-tl-sep::after { content: ""; flex: 1 1 0; height: 1px; background: var(--line); }

/* 统计: 对比条 */
.md-st-row { padding: 7px 0; }
.md-st-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 5px; color: var(--text); font-size: 14px; }
.md-st-head .num { min-width: 3em; }
.md-st-head .num:last-child { text-align: right; }
.md-st-head .lead { color: var(--accent); font-weight: 700; }
.md-st-label { color: var(--muted); font-size: 12.5px; text-align: center; }
.md-st-bar { display: flex; gap: 6px; height: 6px; }
.md-st-bar > span { flex: 1 1 0; display: flex; overflow: hidden; border-radius: 3px; background: var(--surface-2); }
.md-st-bar > .home { justify-content: flex-end; }
.md-st-bar i { display: block; height: 100%; border-radius: 3px; background: var(--muted); opacity: .55; }
.md-st-bar i.lead { background: var(--accent); opacity: 1; }

/* 射门 */
.md-sm-desc { margin: 0 0 10px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.md-sm-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.md-sm-card { min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.md-sm-team { display: flex; align-items: center; gap: 6px; min-width: 0; margin-bottom: 4px; color: var(--text); font-size: 13px; font-weight: 600; }
.md-sm-team i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.md-sm-card.home .md-sm-team i { background: var(--fx-home); }
.md-sm-card.away .md-sm-team i { background: var(--fx-away); }
.md-sm-logo { flex: none; width: 18px; height: 18px; object-fit: contain; }
.md-sm-kv { display: flex; justify-content: space-between; gap: 6px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.md-sm-kv b { color: var(--text); }
.md-sm-svg { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--fx-pitch); color: rgba(255, 255, 255, .5); }
.md-sm-half { fill: rgba(255, 255, 255, .78); font-size: 3px; font-weight: 700; text-anchor: middle; }
.md-sm-dot { fill-opacity: .15; stroke-width: .35; }
.md-sm-dot.home { fill: var(--fx-home); stroke: var(--fx-home); }
.md-sm-dot.away { fill: var(--fx-away); stroke: var(--fx-away); }
.md-sm-dot.goal { fill-opacity: .95; stroke: #fff; stroke-width: .45; }
.md-xg-svg { display: block; width: 100%; height: auto; }
.md-xg-axis text { fill: var(--muted); font-size: 8px; text-anchor: middle; }
.md-xg-axis text.y { text-anchor: end; }
.md-xg-axis line { stroke: var(--line-2); stroke-width: .6; }
.md-xg-axis line.ht { stroke-dasharray: 2 2; }
.md-xg-line { fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.md-xg-line.home, .md-xg-goal.home { stroke: var(--accent); }
.md-xg-line.away, .md-xg-goal.away { stroke: var(--info); }
.md-xg-goal { stroke-width: 1.2; }
.md-xg-goal.home { fill: var(--accent); stroke: var(--bg); }
.md-xg-goal.away { fill: var(--info); stroke: var(--bg); }
.md-sk-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.md-sk-min { flex: none; width: 2.4em; color: var(--muted); font-size: 12.5px; text-align: right; }
.md-sk-logo { flex: none; width: 20px; height: 20px; object-fit: contain; }
.md-sk-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; color: var(--text-2); font-size: 13.5px; }
.md-sk-main b { color: var(--text); }
.md-sk-row.goal .md-sk-main b { color: var(--accent); }
.md-sk-sub { color: var(--muted); font-size: 11.5px; }
.md-sk-xg { flex: none; min-width: 2.8em; padding: 1px 5px; border-radius: 4px; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 700; text-align: center; }
.md-src { margin-top: 10px; color: var(--muted); font-size: 11.5px; text-align: right; }

/* ── 球队页 ── */
.team-hero, .pl-hero { display: flex; align-items: center; gap: 16px; padding: 16px; border-bottom: 1px solid var(--line); }
.team-logo { flex: none; width: 104px; height: 104px; object-fit: contain; }
.team-info, .pl-info { flex: 1 1 auto; min-width: 0; }
.team-name, .pl-name { margin: 0; color: var(--text); font-size: 21px; font-weight: 800; line-height: 1.2; overflow-wrap: break-word; }
.team-league, .pl-meta { margin-top: 3px; color: var(--accent); font-size: 13px; font-weight: 600; }
.team-facts, .pl-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; }
.team-facts dt, .pl-facts dt { color: var(--muted); }
.team-facts dd, .pl-facts dd { margin: 0; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-sched { padding-bottom: 24px; }
.team-more { display: flex; justify-content: center; padding: 16px; }

/* ── 球员页 ── */
.pl-photo { flex: none; width: 104px; height: 104px; object-fit: contain; }
.pl-pending { margin-top: 4px; color: var(--muted); font-size: 13px; }
.pl-body { padding: 8px 16px 28px; }
.pl-cap { margin: 6px 0 4px; color: var(--muted); font-size: 12px; }
.pl-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; }
.pl-table th { width: 3em; padding: 8px 2px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11.5px; font-weight: 600; text-align: center; white-space: nowrap; }
.pl-table td { padding: 9px 2px; border-bottom: 1px solid var(--line); color: var(--text); text-align: center; }
.pl-table .pl-c-comp { width: auto; text-align: left; }
.pl-table th.pl-c-rt { width: 3.8em; }
.pl-table td.pl-c-rt { color: var(--accent); font-weight: 700; }
.pl-c-comp > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pl-c-comp > div > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pl-c-comp small { color: var(--muted); font-size: 11.5px; }
.pl-tlogo { flex: none; width: 22px; height: 22px; object-fit: contain; }
.pl-h { margin: 18px 0 4px; color: var(--accent); font-size: 14px; font-weight: 700; }
.pl-h:first-child { margin-top: 6px; }
.pl-club { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 14px; }
.pl-club-logo { flex: none; width: 24px; height: 24px; object-fit: contain; }
.pl-club-yrs { flex: none; margin-left: auto; color: var(--muted); font-size: 12.5px; }
.pl-tr-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pl-tr-date { flex: none; width: 4.4em; color: var(--muted); font-size: 12px; }
.pl-tr-move { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 5px; color: var(--text); }
.pl-tr-move .ellipsis { flex: 0 1 auto; min-width: 0; }
.pl-tr-logo { flex: none; width: 18px; height: 18px; object-fit: contain; }
.pl-tr-arrow { flex: none; color: var(--muted); }
.pl-tr-type { flex: none; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 11.5px; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-trophy { height: auto; padding: 4px 10px; font-size: 12.5px; }
