/* ==========================================================================
 * 90edge 实体详情统一版式（2026-11）
 * 左：基本信息 profile rail ｜ 中：主体内容 / 数据 panes ｜ 右：关联衍生内容
 * 仅作用于 .dpage 容器，不影响站点其它页面；复用 m.css 的 token 与暗色主题。
 * ========================================================================== */

/* ---------- 1. 栅格 ------------------------------------------------------ */
.dpage {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
  width: 100%;
  min-width: 0;
}
@media (min-width: 1400px) {
  .dpage { grid-template-columns: 300px minmax(0, 1fr) 320px; gap: 20px; }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .dpage { grid-template-columns: 260px minmax(0, 1fr); }
  .dpage__side { grid-column: 1 / -1; }
}
/* 联赛详情：右栏为「全部赛事」目录，收到 240 给主栏积分榜/赛程让宽，
   主列对齐赛程页主列表节奏；仅作用于 .dpage--league，不影响球队/球员/教练页。 */
@media (min-width: 1200px) {
  .dpage--league { grid-template-columns: 280px minmax(0, 1fr) 240px; }
}
@media (min-width: 1400px) {
  .dpage--league { grid-template-columns: 300px minmax(0, 1fr) 260px; gap: 20px; }
}
@media (max-width: 1023.98px) {
  .dpage { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dpage__rail { order: 0; }
  .dpage__main { order: 1; }
  .dpage__side { order: 2; }
}

.dpage__rail,
.dpage__side,
.dpage__main { min-width: 0; }
.dpage__rail { display: flex; flex-direction: column; gap: 14px; align-self: start; }
.dpage__side { display: flex; flex-direction: column; gap: 14px; align-self: start; }
.dpage__main { display: flex; flex-direction: column; gap: 14px; }

@media (min-width: 1200px) {
  /* 右栏随页面滚动常驻，左栏只在内容较短时粘顶，避免长栏卡住 */
  .dpage__side { position: sticky; top: calc(var(--bar-h, 64px) + 14px); max-height: calc(100vh - var(--bar-h, 64px) - 28px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 2px; }
  .dpage__side::-webkit-scrollbar { width: 6px; }
  .dpage__rail--sticky { position: sticky; top: calc(var(--bar-h, 64px) + 14px); }
}

/* ---------- 2. 卡片 ------------------------------------------------------ */
.dcard {
  position: relative;
  margin: 0;
  padding: 18px;
  background: var(--m-surface);
  border: 1px solid color-mix(in srgb, var(--m-line) 78%, transparent);
  border-radius: var(--r-l, 16px);
  box-shadow: 0 1px 2px rgba(16, 20, 30, .04);
}
[data-theme="dark"] .dcard { border-color: var(--m-line); box-shadow: none; }
.dcard--plain { padding: 0; overflow: hidden; }
.dcard--soft { background: var(--m-soft); }

.dcard__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin: 0 0 14px;
}
.dcard__head h2,
.dcard__head h3 {
  position: relative;
  margin: 0;
  padding-left: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .01em;
}
.dcard__head h2::before,
.dcard__head h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 14px;
  margin-top: -7px;
  border-radius: 2px;
  background: var(--m-brand);
}
.dcard__head--plain h2,
.dcard__head--plain h3 { padding-left: 0; }
.dcard__head--plain h2::before,
.dcard__head--plain h3::before { display: none; }
.dcard__aside { margin-left: auto; font-size: 12px; color: var(--m-text-3); white-space: nowrap; }
.dcard__aside a { color: var(--m-brand); }
.dcard__aside a:hover { text-decoration: underline; text-underline-offset: 2px; }
.dcard__unit { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--m-text-3); }

/* ---------- 3. 左侧身份卡 ------------------------------------------------ */
.dprofile {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 16px;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--m-brand) 9%, transparent) 0%, transparent 62%),
    var(--m-surface);
  border: 1px solid color-mix(in srgb, var(--m-line) 78%, transparent);
  border-radius: var(--r-l, 16px);
  box-shadow: 0 1px 2px rgba(16, 20, 30, .04);
}
[data-theme="dark"] .dprofile { border-color: var(--m-line); box-shadow: none; }
.dprofile__top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dprofile__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--m-surface);
  border: 1px solid var(--m-line);
  overflow: hidden;
}
.dprofile__mark img { width: 100%; height: 100%; object-fit: contain; }
/* 队徽图沿用 m.css 的 .edetail-profile__mark（56px + 50% 圆角），会把盾形队徽裁成椭圆，
   球队页这里改成方角铺满整块，形状交给队徽自己 */
.dprofile__mark .edetail-profile__mark { width: 100%; height: 100%; border-radius: 0; }
.dprofile__mark .lghd__mark,
.dprofile__mark .lmark { width: 100% !important; height: 100% !important; border-radius: 0; }
.dprofile__mark--badge { color: #fff; font-size: 24px; font-weight: 700; border: 0; background: var(--m-brand); }
.dprofile__id { min-width: 0; }
.dprofile__name {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--m-text);
  overflow-wrap: anywhere;
}
.dprofile__sub { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 6px; row-gap: 2px; margin: 4px 0 0; font-size: 13px; color: var(--m-text-2); line-height: 1.45; }
.dprofile__sub a { color: var(--m-brand); }
.dprofile__team { display: inline-flex; align-items: center; gap: 5px; line-height: 1; }
.dprofile__crest { width: 14px; height: 14px; object-fit: contain; align-self: center; }
.dprofile__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.dprofile__tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 26px; padding: 0 10px;
  border-radius: 13px;
  background: var(--m-brand-soft, color-mix(in srgb, var(--m-brand) 10%, #fff));
  color: var(--m-brand);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.dprofile__tags .dprofile__tag--ghost { background: var(--m-soft); color: var(--m-text-2); }
.dprofile__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.dprofile__actions .mbtn { min-height: 36px; }

/* ---------- 4. 指标块 ---------------------------------------------------- */
.dstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; }
.dstats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dstats--3 .dstat { padding: 10px 10px; }
.dstats--1 { grid-template-columns: minmax(0, 1fr); }
.dstat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--m-soft);
  min-width: 0;
}
.dstat b { font-size: 20px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--m-text); }
.dstat span { font-size: 12px; color: var(--m-text-3); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dstat--brand b { color: var(--m-brand); }
.dstat b.dstat__b--brand { color: var(--m-brand); }
/* 位置 / 身价这类文本砖：三列格窄，值字号收一档，单行省略兜底 */
.dstat--text b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 概况卡内的赛季进度条：随卡片排布，去掉自身下间距 */
.dprofile__progress { margin: 12px 0 0; }
.dprofile__progress .ov-progress { margin-bottom: 0; }

/* ---------- 5. 基本信息行 ------------------------------------------------ */
.dfacts { display: grid; gap: 0; margin: 0; }
.dfacts__row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--m-line) 70%, transparent);
  font-size: 13px;
  line-height: 1.5;
}
.dfacts__row:last-child { border-bottom: 0; padding-bottom: 0; }
.dfacts__row:first-child { padding-top: 0; }
.dfacts__row > span:first-child { color: var(--m-text-3); }
.dfacts__row > b { color: var(--m-text); font-weight: 600; overflow-wrap: anywhere; }
.dfacts__row > b a { color: var(--m-brand); text-decoration: none; }
.dfacts__row > b a:hover { text-decoration: underline; }
.dfacts__k { color: var(--m-text-3); }
.dfacts__v { color: var(--m-text); overflow-wrap: anywhere; }
.dfacts__v a { color: var(--m-brand); }
.dfacts__v--num { font-variant-numeric: tabular-nums; }

/* 左栏简介 */
.dbio { margin: 0; font-size: 13px; line-height: 1.75; color: var(--m-text-2); }

/* ---------- 6. 关联列表 -------------------------------------------------- */
.dlist { list-style: none; margin: 0; padding: 0; }
.dlist li + li { border-top: 1px solid color-mix(in srgb, var(--m-line) 70%, transparent); }
.dlist a,
.dlist .dlist__row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  color: var(--m-text);
  font-size: 13px;
  line-height: 1.45;
}
.dlist a:hover .dlist__t { color: var(--m-brand); }
.dlist__n {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 11px;
  background: var(--m-soft);
  color: var(--m-text-2);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dlist__n--brand { background: var(--m-brand-soft, color-mix(in srgb, var(--m-brand) 10%, #fff)); color: var(--m-brand); }
.dlist__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlist__t small { display: block; margin-top: 1px; font-size: 11px; color: var(--m-text-3); }
.dlist__m { color: var(--m-text-2); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 右侧同队球员：紧凑数据表（号码 / 球员 / 位置 / 出场 / 进球 / 助攻 / 评分） */
.side-sheet-wrap { min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.side-teams { table-layout: fixed; width: 100%; min-width: 0; font-size: 12px; }
.side-teams :is(th, td) { padding: 8px 4px; white-space: nowrap; }
.side-teams th { color: var(--m-text-3); font-weight: 400; }
.side-teams :is(th, td):nth-child(1) { width: 2rem; min-width: 2rem; padding-left: 0; }
.side-teams :is(th, td):nth-child(2) { min-width: 0; max-width: none; overflow: hidden; }
.side-teams :is(th, td):nth-child(3) { width: 3.4rem; min-width: 3.4rem; }
.side-teams :is(th, td):nth-child(n+4) { width: 2.5rem; min-width: 2.5rem; padding-inline: 2px; }
.side-teams__name a { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--m-text); }
.side-teams__pos { color: var(--m-text-3); overflow: hidden; text-overflow: ellipsis; }

/* 关联资讯：两行标题 + 时间 */
.dnews { list-style: none; margin: 0; padding: 0; }
.dnews li + li { border-top: 1px solid color-mix(in srgb, var(--m-line) 70%, transparent); }
.dnews a { display: block; padding: 10px 0; }
.dnews b {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--m-text);
}
.dnews a:hover b { color: var(--m-brand); }
.dnews small { display: block; margin-top: 4px; font-size: 11px; color: var(--m-text-3); }

/* ---------- 7. 中栏页签 -------------------------------------------------- */
.dtabbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  background: var(--m-surface);
  border: 1px solid color-mix(in srgb, var(--m-line) 78%, transparent);
  border-radius: var(--r-l, 16px);
  overflow-x: auto;
  scrollbar-width: none;
}
.dtabbar::-webkit-scrollbar { display: none; }
.dtabbar__i {
  flex: 1 0 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--m-text-2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.dtabbar__i i { font-style: normal; font-size: 12px; color: var(--m-text-3); }
.dtabbar__i:hover { color: var(--m-text); background: var(--m-soft); }
/* 选中态：主色文字 + 2px 底部指示线，不加背景色，
   与 m.css 的 .mtabs__i.is-on 同规格，实体页与详情页不再两套选中语言 */
.dtabbar__i.is-on {
  position: relative;
  background: transparent;
  color: var(--m-brand);
  font-weight: 600;
}
.dtabbar__i.is-on::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--m-brand);
}
.dtabbar__i.is-on i { color: color-mix(in srgb, var(--m-brand) 78%, var(--m-text-2)); }
.dtabbar__i:focus-visible { outline: 2px solid var(--m-brand); outline-offset: 2px; }

/* 中栏内容块统一节奏 */
.dpage__main .mpane { display: flex; flex-direction: column; gap: 14px; }
.dpage__main .mpane > .mcard { margin: 0; }
.dpage__main .mcard {
  border: 1px solid color-mix(in srgb, var(--m-line) 78%, transparent);
  box-shadow: 0 1px 2px rgba(16, 20, 30, .04);
}
[data-theme="dark"] .dpage__main .mcard { border-color: var(--m-line); box-shadow: none; }

/* 页签不再挂在 stage 卡片上时，去掉 stage 的 padding/阴影 */
.dpage__main .mstage { margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.dpage__main .mstage .mtabs { display: none; }

/* ---------- 8. 右栏数据小卡 --------------------------------------------- */
.dkpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--m-line); border-radius: 12px; overflow: hidden; }
.dkpi div { background: var(--m-surface); padding: 10px 12px; }
.dkpi b { display: block; font-size: 18px; font-weight: 650; line-height: 1.25; font-variant-numeric: tabular-nums; }
.dkpi span { display: block; margin-top: 2px; font-size: 11px; color: var(--m-text-3); }

/* ---------- 9. 空态与链接 ------------------------------------------------ */
.dempty { margin: 0; padding: 18px 0; text-align: center; font-size: 13px; color: var(--m-text-3); }
.dmore { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--m-brand); }
.dmore:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 10. 左栏/右栏内沿用 mcard 的旧卡片 ---------------------------- */
.dpage__rail .mcard,
.dpage__side .mcard {
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--m-line) 78%, transparent);
  box-shadow: 0 1px 2px rgba(16, 20, 30, .04);
}
[data-theme="dark"] .dpage__rail .mcard,
[data-theme="dark"] .dpage__side .mcard { border-color: var(--m-line); box-shadow: none; }

/* 中栏顶部的赛季选择条 */
.dmainbar { padding: 12px 16px; overflow: hidden; }
.dmainbar__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dmainbar__label { flex: 0 0 auto; font-size: 12px; color: var(--m-text-3); }
.dmainbar .spick--stack {
  flex: 1 1 auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.dmainbar .spick--stack .spick__block { flex: 1 1 auto; flex-direction: row; align-items: center; gap: 8px; min-width: 0; }
.dmainbar .spick--stack .spick__k { flex: 0 0 auto; }
.dmainbar .spick--stack .spick__chips { flex-wrap: nowrap; max-height: none; max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.dmainbar .spick--stack .spick__chips::-webkit-scrollbar { display: none; }

.dprofile__top .pavatar,
.dprofile__top .cavatar,
.dprofile__top .pavatar--lg {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  font-size: 24px;
  display: grid;
  place-items: center;
}

/* 页签上的计数 */
.dtabbar__i span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--m-line) 70%, transparent);
  color: var(--m-text-2);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dtabbar__i.is-on span { background: color-mix(in srgb, var(--m-brand) 14%, transparent); color: var(--m-brand); }

/* 教练页兼容：chips 横向标签 */
.cpage__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }

/* 裁判页：右栏的教练交锋收成单列，表格可横向滚动 */
.dpage__side .dref-coach__cols { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.dpage__side .dref-coach__cols h3 { margin: 0 0 6px; font-size: 13px; color: var(--m-text-2); }
.dpage__main .dref-win,
.dpage__main .rpage table { max-width: 100%; overflow-x: auto; }
.dpage .capnote { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: var(--m-text-3); }

/* ---------- 11. 窄屏（<=560）细节 ---------------------------------------- */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .dstats--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .dcard { padding: 14px; border-radius: 14px; }
  .dprofile { padding: 16px 14px 14px; }
  .dprofile__mark { width: 56px; height: 56px; border-radius: 14px; }
  .dprofile__name { font-size: 19px; }
  .dstats, .dstats--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dpage__side { display: grid; grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 12. 赛事详情：左栏 = 比赛信息 + 当日赛程 --------------------- */
/* .mlay--day / .mpage / .match-context 的三列定义已收口到 m.css（@layer site）
   ——原来这里、m.css、match-detail.css 各写一遍，值还不一致。此处不再重复声明，
   要调宽度改 --desk-col-l-wide / --desk-col-r / --desk-gap 三个 token。 */

/* ---------- 13. 列表页外壳（复用详情页卡片语言） ------------------------- */
.lpage {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: 100%;
  min-width: 0;
}
.lpage--3 { grid-template-columns: 280px minmax(0, 1fr) 300px; }
@media (min-width: 1400px) {
  .lpage { grid-template-columns: 300px minmax(0, 1fr); gap: 20px; }
  .lpage--3 { grid-template-columns: 300px minmax(0, 1fr) 320px; }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .lpage--3 { grid-template-columns: 250px minmax(0, 1fr); }
  .lpage--3 > .lpage__side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023.98px) {
  .lpage { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lpage__rail { order: 0; }
  .lpage__main { order: 1; }
  .lpage__side { order: 2; }
}
.lpage__rail,
.lpage__main,
.lpage__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; align-self: start; }
.lpage__side { gap: 14px; }
@media (min-width: 1200px) {
  .lpage__side { position: sticky; top: calc(var(--bar-h, 64px) + 14px); max-height: calc(100vh - var(--bar-h, 64px) - 28px); overflow: auto; scrollbar-width: thin; }
}

/* 顶部标题条 */
.lbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: var(--m-surface);
  border: 1px solid color-mix(in srgb, var(--m-line) 78%, transparent);
  border-radius: var(--r-l, 16px);
}
.lbar__t { min-width: 0; }
.lbar__t h1 { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.lbar__t p { margin: 4px 0 0; font-size: 13px; color: var(--m-text-3); }
.lbar__ops { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 列表主卡：表格/分组直接贴边 */
.lcard { padding: 0; overflow: hidden; }
.lcard > .plb-sheet { padding: 0; margin: 0; }
.lcard .plb-more { margin: 0; padding: 12px 18px; }
.lcard .me-async__body { padding: 0; }
.lcard .sheet-wrap { border: 0; border-radius: 0; }
.lcard .table th:first-child,
.lcard .table td:first-child { padding-left: 18px; }
.lcard .table th:last-child,
.lcard .table td:last-child { padding-right: 18px; }
/* 卡片自身 overflow:hidden 会成为 sticky 容器，表头会错位到首行下方 */
.lcard .sheet thead th { position: static; top: auto; }
.lcard .plb-rk { width: 44px; white-space: nowrap; }
.lcard .table .num { white-space: nowrap; }

/* 赛事筛选 / 赛季条在侧栏里的形态 */
.lpage .sfilt { display: flex; flex-direction: column; gap: 2px; padding: 0; }
.lpage .sfilt__i { border-radius: 10px; padding: 7px 9px; }
.lpage .sfilt__i.is-on { background: var(--m-brand-soft); color: var(--m-brand); font-weight: 600; }
.lpage .pseas__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lpage .pseas__chips .chip { height: 28px; padding: 0 11px; font-size: 12px; }
.lpage .compbar__chips { flex-wrap: wrap; gap: 6px; }
.lpage .compbar__chips .chip { height: 28px; padding: 0 11px; font-size: 12px; }

/* 目录分组行、教练行 */
.lpage .mgroup--grid { border: 0; background: transparent; }
.lpage .erow { border-radius: 10px; }
.lpage .erow:hover { background: var(--m-soft); }
.lpage .dirhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0; }
.lpage .dirhead h1 { margin: 0; font-size: 20px; }
.lpage .efind { margin: 0; }

/* 统计条（赛事目录/裁判页侧栏） */
.lstat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lstat-grid > div { padding: 10px 12px; border-radius: 10px; background: var(--m-soft); }
.lstat-grid b { display: block; font-size: 18px; line-height: 1.2; }
.lstat-grid span { display: block; margin-top: 2px; font-size: 12px; color: var(--m-text-3); }

@media (max-width: 560px) {
  .lbar { padding: 14px; }
  .lbar__t h1 { font-size: 18px; }
  .lcard .table th:first-child,
  .lcard .table td:first-child { padding-left: 12px; }
}

/* 赛事目录在列表外壳里的收边 */
.lcard .ldir__countries { padding: 6px 14px 16px; grid-template-columns: minmax(0, 1fr); }
.lcard .ldir__country { background: transparent; min-width: 0; }
.lcard .ldir__country > .ldir__csum { min-width: 0; }
.lcard .ldir__cname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lpage .capnote { text-align: left; }
.lpage__side .ldir__top { margin: 0; }
.lpage__side .ldir__tiles.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
.lpage__side .ldir__top .tile { min-height: 72px; }
@media (min-width: 1024px) {
  .lpage__rail .sfilt { max-height: calc(100vh - 300px); overflow: auto; scrollbar-width: thin; }
  .lpage__rail .sfilt::-webkit-scrollbar { width: 6px; }
}
@media (max-width: 1023.98px) {
  .lpage__side .ldir__tiles.tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 14. 球队 / 球员详情：左栏下拉 + 中栏对齐赛事详情页 --------------- */
/* 队名（球员名）右侧国家、赛事/赛季两个下拉沿用 league-detail.css 的 league-profile-* / league-season-dialog。
   侧栏只有 280~300px：按钮过长要省略，不能把卡片撑出边框。 */
.dpage--team .league-profile-selects button,
.dpage--player .league-profile-selects button,
.dpage--coach .league-profile-selects button {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dpage--team .league-profile-country img,
.dpage--player .league-profile-country img,
.dpage--coach .league-profile-country img { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; }
/* 教练页左栏两个数值砖（胜率 / 年龄）沿用两列布局，去掉头像后信息区占满整行 */

/* 中栏：白卡包住页签 + 面板，页签等高铺满并居中（与赛事详情页一致） */
.dpage.dpage--team > .dpage__main,
.dpage.dpage--player > .dpage__main,
.dpage.dpage--coach > .dpage__main {
  gap: 0;
  background: var(--m-surface);
  border: 1px solid color-mix(in srgb, var(--m-line) 78%, transparent);
  border-radius: var(--r-l, 16px);
  overflow: hidden;
}
.dpage.dpage--team .dpage__main > .dtabbar,
.dpage.dpage--player .dpage__main > .dtabbar,
.dpage--coach .dpage__main > .dtabbar {
  display: flex;
  gap: 0;
  justify-content: flex-start;
  padding: 0 12px;
  margin: 0;
  border: 0;
  /* 分隔线用 inset 阴影画在盒子内部，选中线才压得住同一条像素 */
  box-shadow: inset 0 -1px 0 var(--m-line);
  border-radius: 0;
  /* 3 个页签不会横向溢出；关掉 overflow 裁剪，选中线才能压在底 border 上 */
  overflow: visible;
}
.dpage--team .dpage__main > .dtabbar .dtabbar__i,
.dpage--player .dpage__main > .dtabbar .dtabbar__i,
.dpage--coach .dpage__main > .dtabbar .dtabbar__i {
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  background: transparent;
}
.dpage--team .dpage__main > .dtabbar .dtabbar__i.is-on,
.dpage--player .dpage__main > .dtabbar .dtabbar__i.is-on,
.dpage--coach .dpage__main > .dtabbar .dtabbar__i.is-on {
  background: transparent;
  color: var(--m-brand);
  font-weight: 600;
}
/* 选中线：70px 居中，3px 高压在卡片底部 border 上（底边与 border 同一像素，不留缝）
   注意 .dpage__main 有 overflow:hidden，线不能溢出 nav 的盒子 */
.dpage--team .dpage__main > .dtabbar .dtabbar__i.is-on::after,
.dpage--player .dpage__main > .dtabbar .dtabbar__i.is-on::after,
.dpage--coach .dpage__main > .dtabbar .dtabbar__i.is-on::after {
  left: 50%;
  right: auto;
  bottom: -1px;
  width: 70px;
  max-width: calc(100% - 24px);
  height: 3px;
  transform: translateX(-50%);
}
.dpage--team .dpage__main > .mpane,
.dpage--player .dpage__main > .mpane,
.dpage--coach .dpage__main > .mpane {
  padding-top: 0;
  margin-top: 0;
  background: var(--m-surface);
}
.dpage--team .mpane .mcard,
.dpage--player .mpane .mcard,
.dpage--coach .mpane .mcard { border: 0; border-radius: 0; box-shadow: none; }
/* 球队页中栏分组卡（赛程/阵容/数据）与 mcard 口径一致：去掉圆角，保留白底与阴影 */
.dpage--team .mpane .mgroup { border-radius: 0; }
/* 中栏第一块内容不要再画一条上边框（否则会和页签底分隔线叠成两条线，选中线看着没压上） */
.dpage--team .mpane > *:first-child,
.dpage--team .mpane > .me-async > *:first-child,
.dpage--team .mpane .me-async__body > *:first-child,
.dpage--player .mpane > *:first-child,
.dpage--player .mpane > .me-async > *:first-child,
.dpage--player .mpane .me-async__body > *:first-child,
.dpage--coach .mpane > *:first-child,
.dpage--coach .mpane > .me-async > *:first-child,
.dpage--coach .mpane .me-async__body > *:first-child {
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow: none;
}
/* 教练块：外面已经是大白卡，里面不再套一层带边框的小卡 */
.dpage--team .mpane .team-coach {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
/* 教练页中栏：外层已经是大白卡，分区卡不再叠第二层边框，分区之间用一条细线隔开 */
.dpage--coach .mpane > .dcard {
  padding: 16px 18px;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.dpage--coach .mpane > .dcard + .dcard { border-top: 1px solid var(--m-line); }

/* 左栏「赛事」下拉按钮 与 「选择赛事」弹层条目：带赛事 logo */
.league-profile-selects button { display: inline-flex; align-items: center; gap: 5px; }
.lmark--pick {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  font-size: 9px;
  object-fit: contain;
}
.league-season-dialog .league-season-item { gap: 6px; }
@media (max-width: 767px) {
  .dpage--team .dpage__main > .dtabbar .dtabbar__i,
  .dpage--player .dpage__main > .dtabbar .dtabbar__i,
  .dpage--coach .dpage__main > .dtabbar .dtabbar__i { min-height: 44px; padding: 0 8px; }
}
/* 数据页容器留白与赛事详情页一致（图表贴边太紧） */
.dpage--team .mpane[data-pane="data"],
.dpage--player .mpane[data-pane="data"] { padding: 16px 12px; }
.dpage--team .mpane[data-pane="data"] .mcard,
.dpage--player .mpane[data-pane="data"] .mcard { border-radius: 0; box-shadow: none; }

/* ---------- 15. 球队数据：同赛事百分位横条（赛季数据砖） -------------------- */
.sb { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.sbrow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 4px 0;
  border-bottom: 1px solid var(--m-line);
}
.sbrow:last-child { border-bottom: 0; }
.sbrow__k {
  flex: 0 0 84px;
  font-size: 12px;
  color: var(--m-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 轨道：条长 = 同赛事百分位，竖线 = 联赛中位（50） */
.sbrow__track {
  position: relative;
  flex: 1 1 auto;
  min-width: 48px;
  height: 8px;
  border-radius: 4px;
  background: var(--m-surface-2);
}
.sbrow__track--flat { background: transparent; border-top: 1px dashed color-mix(in srgb, var(--m-line) 90%, transparent); height: 1px; }
.sbrow__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 4px;
  background: var(--m-brand);
}
.sbrow__mid {
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: color-mix(in srgb, var(--m-text-3) 55%, transparent);
}
.sbrow__v {
  flex: 0 0 auto;
  min-width: 44px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--m-text);
}
.sbrow__r {
  flex: 0 0 28px;
  text-align: right;
  font-size: 10px;
  line-height: 1;
  color: var(--m-text-3);
}
@media (max-width: 767px) {
  .sbrow__k { flex-basis: 72px; }
  .sbrow__r { flex-basis: 24px; }
}

/* ---------- 16. 球员赛程：比赛列不再独占宽度（ltable--plain 的 tm 默认 100%） ------ */
.ltable--pfx .ltable__tm { width: auto; max-width: none; }
.ltable--pfx .pfx__when { width: 56px; white-space: nowrap; }
.ltable--pfx .pfx__lg { width: 96px; white-space: nowrap; }
.ltable--pfx .pfx__role { width: 136px; white-space: nowrap; }
@media (max-width: 767px) {
  .ltable--pfx .pfx__when,
  .ltable--pfx .pfx__lg,
  .ltable--pfx .pfx__role { width: auto; white-space: normal; }
}

/* ---------- 17. 球队赛程页签：比赛行复用赛程页赛事 item 的横向一行排版 ---------- */
/* 不套卡片外壳、不要概率条和四格数据 card；行内结构与基础 .mrow 一致：
   左为赛事 + 日期/时间/状态，中间主队列名/比分/队徽，右侧留角球等数据与竞彩编号。 */
.dpage--team .mpane .schedfx .mrow.mrow--schedule {
  margin: 0;
  padding: var(--s3) var(--s4);
  background: none;
  border: 0;
  border-radius: 0;
  grid-template-columns: 52px minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "comp comp comp comp" "t h sc a";
}
.dpage--team .mpane .schedfx .mrow.mrow--schedule:hover { background: color-mix(in srgb, var(--m-surface-2) 60%, transparent); }
/* 赛事名 / 日期 / 时间 / 状态排在同一行（对齐赛程页赛事 item） */
.dpage--team .mpane .schedfx .mrow.mrow--schedule .mrow__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
}
.dpage--team .mpane .schedfx .mrow.mrow--schedule .mrow__t {
  flex-direction: row;
  align-items: center;
  align-self: auto;
  gap: 8px;
}
/* 概率条 / 四格数据 card / 标签底行一律不渲染 */
.dpage--team .mpane .schedfx .mrow.mrow--schedule .mrow__prob,
.dpage--team .mpane .schedfx .mrow.mrow--schedule .mrow__strip,
.dpage--team .mpane .schedfx .mrow.mrow--schedule .mrow__foot { display: none; }


/* ---------- 17. 阵容页签：主教练卡（去掉头像，补战绩 + 近 5 场） ---------- */
.dpage--team .mpane .team-coach__body { display: flex; flex-direction: column; gap: 8px; }
.dpage--team .mpane .team-coach__id { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; min-width: 0; }
.dpage--team .mpane .team-coach__name { font-size: 14px; font-weight: 600; color: var(--m-text); }
.dpage--team .mpane .team-coach__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--m-text-3); }
.dpage--team .mpane .team-coach__flag { border-radius: 2px; object-fit: cover; }
.dpage--team .mpane .team-coach__country { color: var(--m-text-2); }
.dpage--team .mpane .team-coach__age { font-variant-numeric: tabular-nums; }
.dpage--team .mpane a.team-coach__name { text-decoration: none; }
.dpage--team .mpane a.team-coach__name:hover { color: var(--m-brand); }
.dpage--team .mpane .team-coach__rec { font-size: 12.5px; font-weight: 600; color: var(--m-text-2); font-variant-numeric: tabular-nums; }
.dpage--team .mpane .team-coach__form { display: flex; align-items: center; gap: 8px; }
.dpage--team .mpane .team-coach__form-l { flex: 0 0 auto; font-size: 11px; color: var(--m-text-3); }
.dpage--team .mpane .team-coach__seq { margin: 0; gap: 4px; }
.dpage--team .mpane .team-coach__seq .seq__i { width: 18px; height: 18px; font-size: 10px; }

/* ---------- 18. 教练数据页（同赛事排名 / 平均值） + 右栏阵型说明 --------------- */
.dpage--coach .mpane .sbrow__hint { margin: 0 0 6px; font-size: 12px; line-height: 1.5; color: var(--m-text-3); }
/* 同行平均值：贴在数值右侧，窄屏也不换行（比页签条那一列宽 60px） */
.sbrow__avg {
  flex: 0 0 auto;
  min-width: 58px;
  text-align: right;
  font-size: 11px;
  color: var(--m-text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .sbrow__avg { min-width: 50px; font-size: 10px; }
  .sbrow__k { flex-basis: 66px; }
}

/* 阵型说明：每项一个 <details>，常用阵型默认展开并高亮 */
.fguide__list { display: grid; gap: 6px; }
.fguide__i {
  border: 1px solid var(--m-line);
  border-radius: 10px;
  background: var(--m-surface);
  overflow: hidden;
}
.fguide__i.is-on {
  border-color: color-mix(in srgb, var(--m-brand) 45%, var(--m-line));
  background: color-mix(in srgb, var(--m-brand) 4%, var(--m-surface));
}
.fguide__sum { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 10px; cursor: pointer; list-style: none; }
.fguide__sum::-webkit-details-marker { display: none; }
.fguide__code {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 650;
  color: var(--m-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fguide__use {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  color: var(--m-text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fguide__tag {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--m-brand-soft);
  color: var(--m-brand);
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}
.fguide__chev { flex: 0 0 auto; color: var(--m-text-3); transition: transform .18s ease; }
.fguide__i[open] .fguide__chev { transform: rotate(180deg); }
.fguide__body { display: grid; gap: 9px; padding: 0 10px 11px; }
.fguide__lead { margin: 0; font-size: 12px; line-height: 1.6; color: var(--m-text-3); }
.fguide__var b { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--m-text); }
.fguide__var p { margin: 0; font-size: 12px; line-height: 1.62; color: var(--m-text); opacity: .82; }

/* 阵容页签：教练块与球员分组之间的空隙收紧；两块的左右内容线对齐 */
.dpage--team .mpane .team-coach { padding: 12px 0 8px; margin-bottom: 0; }
.dpage--team .mpane .league-player-boards { padding-top: 8px; }
/* 号码列贴左边：第一列不再居中留白 */
.dpage--team .mpane .league-player-boards .lgboard__table :is(th,td):first-child {
  width: 34px; padding-inline: 0; text-align: left;
}

/* ---------- 18. 球员赛程页签：复用比赛详情页「近期战绩」hrecrow 列表 ---------- */
.dpage--player .hrec--pfx .hrec__hd,
.dpage--player .hrec--pfx .hrecrow {
  grid-template-columns: 72px 48px minmax(0, 1fr) 52px minmax(0, 1fr) 96px;
}
.dpage--player .hrecrow--pfx .hrecrow__role {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: left; font-size: 11.5px; font-weight: 400; color: var(--m-text-3);
}
.dpage--player .hrecrow--pfx .hrecrow__role:empty { color: var(--m-text-3); }
@media (max-width: 640px) {
  .dpage--player .hrec--pfx .hrec__hd,
  .dpage--player .hrec--pfx .hrecrow {
    grid-template-columns: 54px 52px minmax(0, 1fr) 36px minmax(0, 1fr) 72px;
    gap: 3px;
  }
  .dpage--player .hrecrow--pfx .hrecrow__role { font-size: 11px; }
}
.dpage--player .hrecrow--pfx .hrecrow__vs { color: var(--m-text-3); font-weight: 500; }

/* ---------- 19. 球队 / 联赛赛程页签：复用比赛详情页「近期战绩」hrecrow 列表（纯赛事信息，无预测） ---------- */
/* 赛事列比比赛详情页宽一档，容纳「联赛 + 第 N 轮」 */
.dpage--team .hrec__hd,
.dpage--team .hrecrow,
.dpage--league .hrec__hd,
.dpage--league .hrecrow {
  grid-template-columns: 72px 92px minmax(0, 1fr) 52px minmax(0, 1fr) 72px;
}
/* 表格两侧贴卡片边缘：不留左右行内间距，外框仍铺满整宽 */
.dpage--team .hrec--schedule .hrec__hd,
.dpage--team .hrec--schedule .hrecrow,
.dpage--league .hrec--schedule .hrec__hd,
.dpage--league .hrec--schedule .hrecrow {
  padding-inline: 0;
}
.dpage--team .hrecrow__res--dim,
.dpage--league .hrecrow__res--dim { color: var(--m-text-3, #86909c); font-weight: 400; font-size: 11.5px; }
.dpage--team .hrecrow__vs,
.dpage--league .hrecrow__vs { color: var(--m-text-3, #86909c); font-weight: 500; }
@media (max-width: 640px) {
  .dpage--team .hrec__hd,
  .dpage--team .hrecrow,
  .dpage--league .hrec__hd,
  .dpage--league .hrecrow {
    grid-template-columns: 54px 64px minmax(0, 1fr) 36px minmax(0, 1fr) 44px;
  }
  .dpage--team .hrec--schedule .hrec__hd,
  .dpage--team .hrec--schedule .hrecrow,
  .dpage--league .hrec--schedule .hrec__hd,
  .dpage--league .hrec--schedule .hrecrow {
    padding-inline: 0;
  }
}
