/* Detail-only rhythm; shared site tokens keep themes consistent. */
/* 右栏「会员权益 / 教程概要」两张卡：app.css 里只有 margin-bottom 8px，视觉上贴成一块。
   这里（本文件未分包在 @layer 里）强制成 16px 真间隙。 */
.mlay .match-context { display: flex; flex-direction: column; gap: 16px; }
.mlay .match-context > .match-context__card { margin: 0; }

.mpage { font-family: var(--m-font); font-size: var(--fs-body); line-height: 1.6; color: var(--m-text); }
.mpage button, .mpage input, .mpage select { font-family: inherit; }
.has-inner-loading { position:relative; }
.match-inner-loading { position:absolute; inset:0; z-index:20; display:flex; align-items:flex-start; justify-content:center; padding-top:100px; background:color-mix(in srgb,var(--m-surface,#fff) 78%,transparent); cursor:wait; }
.match-inner-loading__spinner { width:24px; height:24px; border:2px solid var(--m-line,#e5e6eb); border-top-color:var(--m-brand,#794DFF); border-radius:50%; animation:match-inner-spin .7s linear infinite; }
@keyframes match-inner-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .match-inner-loading__spinner { animation:none; } }
.xi-status { margin-left:auto; color:var(--m-text-2); font-size:12px; font-weight:400; }
@media (max-width: 767px) {
  .wrap:has(.mpage) { padding-inline: 0; }
  .mlay:has(> .mpage), .mpage, .mpage__body { min-width: 0; max-width: 100%; margin-inline: 0; }
}
.mpage > .hero { margin-bottom: 16px; padding: 20px 24px; min-height: 0; }
.mpage .hero__main { margin: 20px auto 16px; max-width: 640px; gap: 12px; }
.mpage .hero__comp { font-size: 12px; line-height: 1.5; letter-spacing: 0; text-transform: none; color: var(--m-text-2); }
/* 赛事信息行：没竞彩时整行左对齐；有竞彩时「赛事信息在左、竞彩编号在右」两端拉边 */
.mpage .hero__comp { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 10px; text-align: left; }
.mpage .hero__comp-l { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 0 1 auto; }
.mpage .hero__comp .hero__jc { flex: 0 0 auto; margin-left: auto; }
@media (max-width: 420px) {
  .mpage .hero__comp { flex-wrap: wrap; }
}
.mpage .hero__name { font-size: 16px; line-height: 1.5; font-weight: 600; }
.mpage .hero__score .board__nums { font-size: clamp(32px, 4vw, 44px); line-height: 1.2; font-weight: 700; }
.mpage .hero__countdown {
  margin: 0 auto 12px;
  color: var(--m-text-2);
  font-size: 13px;
  text-align: center;
}
.hero__countdown [data-countdown-value] {
  margin-inline-start: 4px;
  color: var(--m-text);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.mpage .hero__bar:empty { display: none; }
.mpage .hero__prob { max-width: 640px; margin-inline: auto; position: relative; }
/* WDL 概率条：沿用首页那套「独立圆弧块 + 段内百分比」，不合成一个整块 */
.mpage .hero__prob .mrow__bar {
  height: 13px; gap: 1px; border-radius: 0; overflow: visible; background: transparent;
}
.mpage .hero__prob .mrow__bar i {
  display: flex; align-items: center; justify-content: center;
  flex: 0 1 auto; min-width: 0; height: 100%; border-radius: 999px;
  overflow: hidden;
}
.mpage .hero__prob .mrow__bar .h { background: #8E37D7; }
.mpage .hero__prob .mrow__bar .d { background: #7A6A92; opacity: 1; }
.mpage .hero__prob .mrow__bar .a { background: #17A2B8; }
.mpage .hero__prob .mrow__bar i b {
  display: block; color: #fff; font-size: 10.5px; font-weight: 500; font-style: normal;
  line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.mpage .hero__prob .mrow__bar i b[hidden] { display: none; }
.mpage .hero__prob-line small { display: none; }
.mpage .mrow__prob--empty .state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 10px;
  padding: 10px 12px;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  background: var(--m-surface-2);
  text-align: start;
}
.mpage .mrow__prob--empty .state__icon {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--m-brand-soft);
  color: var(--m-brand);
}
.mpage .mrow__prob--empty .state__icon svg { width: 17px; height: 17px; }
.mpage .mrow__prob--empty .state__title {
  color: var(--m-text);
  font-size: 13px;
  line-height: 1.4;
}
.mpage .mrow__prob--empty .state__desc {
  max-width: none;
  color: var(--m-text-2);
  font-size: 12px;
  line-height: 1.45;
}
.mlay__rail .mday__prob-void {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--m-surface-2);
  color: var(--m-text-2);
  font-size: 11px;
  line-height: 1.45;
}
.mlay__rail .mday__prob-void svg { flex: 0 0 14px; width: 14px; height: 14px; }
/* 四格「标签在上 / 数值在下」，第四格「信号」有值时可点开说明 */
.mpage .hero__prob .hero__strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.mpage .hero__prob .hero__strip > span,
.mpage .hero__prob .hero__strip > .hero__strip-tag {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 5px 2px 4px; border-radius: 8px; min-width: 0;
  background: var(--m-brand-soft, #f7f4fb); color: var(--m-text);
}
.mpage .hero__prob .hero__strip > span > i {
  order: 0; font-style: normal; font-size: 9.5px; font-weight: 400; line-height: 1.2;
  letter-spacing: .02em; color: var(--m-text-3); max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mpage .hero__prob .hero__strip > span > b {
  order: 1; display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  font-size: 12.5px; font-weight: 800; line-height: 1.2; color: var(--m-text-1);
  font-variant-numeric: tabular-nums; max-width: 100%; overflow: hidden;
}
.mpage .hero__prob .hero__strip-tag {
  cursor: pointer; border: 0; font: inherit; text-align: center;
  transition: filter .15s ease, box-shadow .15s ease;
}
.mpage .hero__prob .hero__strip-tag:hover,
.mpage .hero__prob .hero__strip-tag[aria-expanded="true"] {
  filter: brightness(1.07);
  box-shadow: inset 0 0 0 1px rgba(142, 55, 215, .35);
}
.mpage .hero__strip-arrow {
  flex: 0 0 auto; width: 4px; height: 4px; margin-left: 1px;
  border-top: 1.2px solid #9c8ab2; border-right: 1.2px solid #9c8ab2;
  transform: rotate(45deg);
}
.mpage .hero__strip-sheet {
  position: absolute; z-index: 30; right: 0; bottom: calc(100% + 6px);
  display: flex; flex-direction: column; gap: 4px; width: min(240px, 90vw);
  padding: 10px 12px; border-radius: 10px;
  background: var(--m-surface, #fff); border: 1px solid var(--m-line);
  box-shadow: 0 10px 26px rgba(30, 18, 50, .16);
  font-size: 12px; line-height: 1.5; color: var(--m-text-2); text-align: left;
}
.mpage .hero__strip-sheet[hidden] { display: none; }
.mpage .hero__strip-sheet strong { font-size: 12.5px; font-weight: 700; color: var(--m-text-1); }
/* 星级：实心五角星矢量（灰底 + 橙色裁切），与首页同一套 */
.mpage .wstars { display: inline-flex; align-items: center; gap: 1px; }
.mpage .wstar { position: relative; display: inline-flex; width: 12px; height: 12px; }
.mpage .wstar svg { display: block; width: 100%; height: 100%; }
.mpage .wstar__off { fill: #e0d6ee; }
.mpage .wstar__on { position: absolute; inset: 0; fill: #f5a623; }
.mpage .hero__prob-sk { display: flex; flex-direction: column; gap: 12px; min-height: 48px; height: auto; }
.mpage .hero__prob-sk .sk-pulse { display: block; background-color: var(--m-line); border-radius: 999px; }
.mpage .hero__prob-sk-bar { flex: 1; min-width: 40px; height: 6px; }
.mpage .hero__prob-sk-label { width: 88px; height: 12px; }
.mpage .hero__prob-sk-tag { width: 76px; height: 20px; }
.mpage .hero__prob-sk .hero__tags { display: flex; gap: 6px; }
.mpage .hero__prob-sk-cell { display: block; height: 34px; border-radius: 8px; background-color: var(--m-line); }
.mpage .hero__prob-sk .hero__strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mpage .hero__prob-sk-stars { width: 60px; height: 12px; }
.mpage .hero__prob:has(.match-state), .mpage .hero__prob:has(.mstate) { display: block; }
.mpage .sb-per { position: static; top: auto; z-index: auto; }
.mpage #play-trends, .mpage #play-stats, .mpage #play-rate { scroll-margin-top: calc(var(--bar-h) + 72px); }
.mpage .hero__prob-line { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; }
.mpage .hero__prob-line .mrow__bar { flex: 1; width: auto; min-width: 40px; }
.mpage .hero__prob-line small { flex: 0 0 auto; text-align: right; white-space: nowrap; }
.mpage .hero__prob-meta { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; flex: 0 0 auto; margin-left: 2px; }
.mpage .hero__prob .hero__strip { margin-top: 8px; }
.mpage .hero__bar:has([data-match-stats]):not(:has([data-stat]:not([hidden]))) { display: none; }
.mpage .mstage { margin: 0 0 16px; }
.mpage .mstage > .mtabs { padding: 0 8px; justify-content: stretch; }
.mpage .mtabs .mtabs__i { flex: 1 0 auto; min-height: 48px; padding: 0 12px; font-size: 14px; gap: 4px; }
.mpage .mstage > .mpanes { padding: 16px; }
.mpage .mpanes { --pane-min-height: max(720px, calc(100svh - 160px)); }
.mpage .mpane { min-height: var(--pane-min-height); }
.mpage .mpane__loading.mskel--unified { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; min-height: var(--pane-min-height); }
.mpage .mskel--unified .mskel__card { min-height: 0; grid-template-rows: 18px minmax(180px, 1fr) 18px 18px; gap: 16px; padding: 20px; }
.mpage .mskel--unified .mskel__l--b { height: auto; min-height: 180px; }
.mpage .mskel--unified .mskel__l--row { height: 18px; }
.mpage .mpane { min-width: 0; }
/* The pre-match pane shares one surface with straight section dividers. */
.mpage .mstage:has(> .mpanes > [data-pane="data"]:not([hidden])) {
  box-shadow: none;
}
/* 各 tab 的内容到边距离统一：不再给「赛前」单独收窄内边距，
   全部沿用 .mpanes 的 16px，与「AI 分析报告」一致。 */
.mpage .mstage > .mpanes { padding-inline: 16px; }
/* 平板区间(761–1024)：左右边距 12px；≤760 由下方媒体查询收为 8px；>1024 桌面保持 16px。 */
@media (min-width: 761px) and (max-width: 1024px) {
  .mpage .mstage > .mpanes { padding-inline: 12px; }
}
/* 左栏队徽覆盖公共列表的 16px 尺寸，加载占位与队徽等大。 */
.mlay .mlay__rail .mday .mday__tm > :is(.tcrest--rail, .mday-sk__crest) {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  flex: 0 0 20px !important;
}

/* 左栏「当日赛程」行：概率条升级成首页那套独立胶囊分段（段内白字百分比）。
   仅作用于详情页左栏，其它页面的 mday 行外观不变。 */
.mlay__rail .mday__bar {
  display: flex;
  gap: 1px;
  height: 13px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.mlay__rail .mday__bar > i {
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 24px;
  border-radius: 999px;
  opacity: 1;
}
.mlay__rail .mday__bar > i.h { background: #8E37D7; }
.mlay__rail .mday__bar > i.d { background: #7A6A92; }
.mlay__rail .mday__bar > i.a { background: #17A2B8; }
.mlay__rail .mday__bar b {
  font-style: normal;
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.mlay__rail .mday__bar b[hidden] { display: none; }
/* 段内已经带了百分比，下面那行小字里的重复数字就去掉，只留星 */
.mlay__rail .mday__prob-meta small { display: none; }
.mlay__rail .mday__prob-meta { justify-content: flex-end; }

/* 移动端：tab 区不再画成一整张「卡片」（白底 + 大圆角 + 卡边），
   让各板块直接落在页面底色上，只靠板块之间的空隙分隔。 */
@media (max-width: 760px) {
  .mpage .mstage {
    margin-inline: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  .mpage .mstage > .mtabs {
    border-radius: 0;
    box-shadow: none;
  }
  .mpage .mstage > .mpanes {
    padding-inline: 8px;
    border-radius: 0;
  }
}
.mpage .mstage .mpane[data-pane="data"] .pre-stack {
  gap: var(--s4, 16px);
}
.mpage .mstage .mpane[data-pane="data"] .pre-stack > :is(.pre-card, .gheat) {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.mpage .mstage .mpane[data-pane="data"] .cmp-stack > .pre-stack {
  margin-top: var(--s4, 16px);
}
/* 四个 tab：区块之间只留 16px 间距，不再用 border 切块 */
/* 详情页各 tab 卡片不再描边，块与块之间只靠白底卡片 + 间距分层，背景/圆角/阴影保留。 */
.mpage .mstage .mpane .block {
  border: 0;
}
.mpage .mstage .mpane[data-pane="analy"] > .block,
.mpage .mstage .mpane[data-pane="lineup"] > .block {
  margin-bottom: var(--s4, 16px);
  /* 只去掉卡片自身叠加的第二层左右内边距，背景/圆角/阴影沿用通用卡片样式，保留白底包裹。 */
  padding: 0;
}
.mpage .mstage .mpane[data-pane="analy"] > .block:last-child,
.mpage .mstage .mpane[data-pane="lineup"] > .block:last-child {
  margin-bottom: 0;
}
/* 赛况(play)板块外壳对齐其他页签(analy/lineup)：去掉底部 hairline 描边与阴影覆写，标题贴卡顶；
   左右留白由 mpanes 统一提供，避免赛况嵌套卡片重复缩进。 */
.mpage .mstage .mpane[data-pane="play"] .sb-card {
  margin-bottom: var(--s4, 16px);
  padding: 0;
  border: 0;
}
.mpage .mstage .mpane[data-pane="intel"] .dwrap--intel > .block {
  margin-block: 0;
}
.mpage .mstage .mpane[data-pane="intel"] #dp-cmp > .block {
  margin-bottom: 0;
  padding-inline: 0;
}
.mpage .mstage .mpane[data-pane="intel"] [data-cross-view] > .block { padding:0; margin-bottom:0; }
.mpane .versus .versus__row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "home label label away"
    "home-bar home-bar away-bar away-bar";
  gap: 6px 4px;
}
.mpane .versus .versus__n--h { grid-area: home; }
.mpane .versus .versus__n--a { grid-area: away; }
.mpane .versus .versus__lab { grid-area: label; }
.mpane .versus .versus__bar--h { grid-area: home-bar; }
.mpane .versus .versus__bar--a { grid-area: away-bar; }
.mpane .versus .versus__n,
.mpane .versus .versus__lab {
  white-space: normal;
  overflow-wrap: anywhere;
}
.mpage .mpane h2, .mpage .mcard__head h2, .mpage .dcard__head h2 { font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.5; }
.mpage .mpane h3 { font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; }
.mpage .match-guide li { grid-template-columns: max-content minmax(0, 1fr); column-gap: 6px; }
.mpage .match-guide p, .mpage .match-benefits { font-size: 13px; line-height: 1.8; }
.mpage .play-empty, .mpage .match-state, .mpage .mstate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 224px; padding: 32px 20px; margin: 0; text-align: center; border: 1px solid var(--m-line); border-radius: var(--r-m); background: var(--m-soft); box-shadow: none; }
.mpage .play-empty p, .mpage .match-state p, .mpage .mstate p { margin: 0; }
.mpage .play-empty__t { font-size: 14px; font-weight: 500; line-height: 1.7; color: var(--m-text); }
.mpage .play-empty__hint { font-size: 13px; line-height: 1.7; color: var(--m-text-2); }
.mpage .play-empty__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mpage .play-empty__chips span { background: var(--m-surface); font-size: 12px; padding: 4px 10px; }
.mpage .mskel__card { box-shadow: none; border: 0; border-radius: 0; background: transparent; }
.mpage .mskel__l { display: block; }
.mpage :is(a,button):focus-visible { outline: 2px solid var(--m-brand); outline-offset: 3px; }
@media (min-width: 1024px) { .mpage { grid-template-rows: min-content 1fr; row-gap: 0; } }
@media (max-width: 599px) {
  .mpage > .hero { padding: 16px; }
  .mpage .hero__main { margin-block: 16px; gap: 8px; }
  .mpage .hero__name { font-size: 14px; }
  .mpage .hero__score { min-width: 72px; padding: 0; }
  .mpage .mstage > .mpanes { padding: 12px 8px; }
  .mpage .mtabs .mtabs__i { padding-inline: 12px; }
  .mpage .play-empty, .mpage .match-state, .mpage .mstate { padding: 24px 16px; }
  .mpage .mstage .mpane[data-pane="play"] .sb-card { padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .mpage .sk-pulse, .mpage .mskel__l { animation: none; } }

.mpage .hero__bar:not(:has(*)) { display: none; }
.mpage .hero__prob .match-state, .mpage .hero__prob .mstate { min-height: 0; padding: 12px; gap: 8px; }
.mpage .hero__prob .match-state .mbtn, .mpage .hero__prob .mstate .mbtn { min-height: 44px; }
/* 骨架闪光统一由 me-skeleton.css 的 .sk-pulse / .mskel__l 提供，这里不再写第二套 gradient。 */
.mpage .gheat__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 0 auto;
}

.mpage .gheat__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2) var(--s5);
  margin: var(--s4) 0 var(--s1);
}

.mpage .gheat__team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--m-text);
  font-size: var(--fs-caption);
  overflow-wrap: anywhere;
}

.mpage .gheat__team::before {
  flex: 0 0 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--color-home, var(--color-primary));
  content: "";
}

.mpage .gheat__team--away::before {
  background: var(--color-away, var(--color-info));
}

.mpage .gheat__team [data-gheat-metric] {
  color: var(--m-text-2);
}

.mpage .gheat__plot {
  width: 100%;
  min-width: 0;
}

/* .mpane .empty 带 min-height/display:grid，需显式让 hidden 生效，避免图表下方留白。 */
.mpage .gheat__status[hidden] {
  display: none;
}

.mpage .gheat__plot .apexcharts-tooltip {
  max-width: min(260px, 68vw);
  border: 1px solid var(--m-line);
  background: var(--m-surface);
  color: var(--m-text);
  white-space: normal;
}

.mpage .gheat__tip {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  font-size: var(--fs-caption);
  overflow-wrap: anywhere;
}

.mpage .gheat__note {
  margin: var(--s2) 0 0;
  color: var(--m-text-2);
}

/* 1024–1279 的栅格与左栏粘顶规则统一在 m.css（.mlay--day / .mpage）。
   这里原来还写了一份 300px 两列 + .mday sticky，与 m.css、detail-shell.css 三处打架，
   已删除；要改宽度用 --desk-col-l-wide / --desk-col-r / --desk-gap。 */
/* Team history stays within each card at narrow widths. */
.xi-history{width:100%;border-collapse:collapse;font-size:13px}
.xi-history th,.xi-history td{padding:9px 8px;border-bottom:1px solid var(--line,#dce2e8);text-align:center;vertical-align:middle}
.xi-history th{font-weight:600;color:var(--muted,#718096)}
.xi-history th:nth-child(2),.xi-history td:nth-child(2){text-align:left;overflow-wrap:anywhere}
.xi-history td:nth-child(2){width:40%}
@media(max-width:767px){.xi-history th,.xi-history td{padding:8px 5px}.xi-history{font-size:12px}}

/* Reference stadium card, scoped to match detail. */
.xi-stadium { background: transparent; padding: 0 0 12px; border-radius: 12px; color: white; container-type: inline-size; }
.xi-stadium__head { display:flex; align-items:center; gap:14px; margin:0 8px 24px; white-space:nowrap; }
.xi-stadium__brand { font-size:clamp(15px,3.6cqw,30px); font-weight:900; font-style:italic; letter-spacing:-1px; }
.xi-stadium__brand em { color:#00e879; }
.xi-stadium__head strong { border-left:1px solid #777; padding-left:14px; font-size:clamp(16px,3.8cqw,32px); }
.xi-stadium__shape { margin-left:auto; border-radius:30px; background:#ffffff20; padding:4px 13px; font-size:clamp(12px,2.8cqw,23px); font-weight:700; }
.xi-stadium__age { color:#aaaab0; font-size:clamp(10px,2.5cqw,20px); }
.xi-stadium .xipitch--perspective { aspect-ratio:100/100; background:none; box-shadow:none; overflow:visible; border-radius:0; isolation:isolate; }
.xi-stadium__field { position:absolute; inset:0; width:100%; height:100%; z-index:-1; overflow:visible; }
.xi-stadium .xidot { left:var(--xi-left)!important; width:23%; max-width:23%; transform:translate(-50%,-40%); gap:0; }
.xi-stadium .xidot__num { display:grid; position:relative; width:calc(11cqw - 15px); height:calc(9.6cqw - 13.1px); background:none; clip-path:none; filter:drop-shadow(0 4px 3px #001b2290); color:white; padding:0; }
.xi-shirt { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.xi-shirt__body { fill:#d40028; stroke:#ff8190; stroke-width:1; }
.xi-shirt__shade { fill:#700016; opacity:.22; }
.xi-stadium--a .xi-shirt__body { fill:#e9edf5; stroke:#fff; }
.xi-stadium--a .xidot__num { color:#17243d; }
.xi-stadium .xidot__num b { position:relative; font:800 clamp(7px,calc(4cqw - 9px),27px)/1 Arial,sans-serif; padding-top:calc(1.5cqw - 2px); }
.xi-stadium .xidot__caption { display:flex; align-items:center; justify-content:center; gap:.7cqw; margin-top:.6cqw; max-width:100%; width:max-content; }
.xi-stadium .xidot__rate { position:static; flex:none; min-width:0; padding:0 .7cqw; border-radius:4px; line-height:1.35; font-size:12px; box-shadow:0 2px 5px #00331a55; }
.xi-stadium .xidot__name { margin:0; color:#fff; font-size:12px; line-height:1.35; text-shadow:0 2px 3px #00301b; }
.xi-stadium a.xidot[href] .xidot__num { transition:filter .18s ease; }
.xi-stadium a.xidot[href]:hover .xidot__name { color:#fff; }
.xi-stadium a.xidot[href]:hover .xidot__num,
.xi-stadium a.xidot[href]:focus-visible .xidot__num { outline:none; box-shadow:none; filter:brightness(1.1) drop-shadow(0 5px 5px #001b2266); }
.xi-stadium .xidot__marks { top:4.8cqw; left:calc(50% + 4.5cqw); right:auto; flex-direction:column; gap:2px; }
.xi-stadium .xidot__marks .xim { width:3cqw; height:3cqw; }
.xi-stadium .xidot__out { position:absolute; top:4cqw; left:auto; right:calc(50% + 4.5cqw); bottom:auto; font-size:clamp(8px,1.7cqw,14px); }
.xi-stadium .xidot__tag { top:0; left:calc(50% + 3cqw); }
.xi-stadium .xidot:focus-visible { outline:2px solid white; outline-offset:4px; border-radius:4px; }
@container (max-width:460px) { .xi-stadium__head { gap:7px; margin-inline:0; } .xi-stadium__head strong { padding-left:7px; } .xi-stadium__shape { padding-inline:7px; } .xi-stadium .xidot__full { display:none; } .xi-stadium .xidot__short { display:inline; } }

.xi-stadium--h .xi-shirt__body { fill:url(#xi-kit-h); }
.xi-stadium .xidot--gk .xi-shirt__body { fill:#ffd016; stroke:#ffe884; }
.xi-stadium .xidot--gk .xi-shirt__shade { fill:#b47b00; }
.xi-stadium .xidot--gk .xidot__num { color:#171500; }

/* Also suppress the removed heading in cached lineup markup. */
.xi-stadium .xi-stadium__head { display: none !important; }

/* Lineup container outlines: keep team controls and table row separators. */
.mpage .mstage .mpane[data-pane="lineup"] :is(.block, .hub-card, .xitabs, .xitabs__body, .xicard, .xicard__body, .xicard__subs, .liinfo) {
  border: 0;
  box-shadow: none;
}

/* Use one section gap instead of stacking card padding and margins. */
.mpage .mstage .mpane[data-pane="lineup"] > .block { margin-block: 0 16px; }
.mpage .mstage .mpane[data-pane="lineup"] > .block:last-child { margin-bottom: 0; }
.mpage .mstage .mpane[data-pane="lineup"] .xitabs { margin: 0; padding: 0; }
.mpage .mstage .mpane[data-pane="lineup"] .xitabs__body { margin-top: 16px; padding: 0; }
.mpage .mstage .mpane[data-pane="lineup"] .xicard__body { gap: 16px; padding: 0; }
.mpage .mstage .mpane[data-pane="lineup"] .xicard__subs { margin: 0; padding: 0; }
.mpage .mstage .mpane[data-pane="lineup"] .xi-stadium { padding-bottom: 0; }

/* Remove the inherited named side column, including its implicit grid track. */
.mpage .mstage .mpane[data-pane="lineup"] .xitabs .xicard__body {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: none;
  column-gap: 0;
}
.mpage .mstage .mpane[data-pane="lineup"] .xitabs .xicard__body > * {
  grid-area: auto;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Fill the available width on small screens and cap the pitch on larger screens. */
.mpage .mstage .mpane[data-pane="lineup"] .xitabs .xicard__body > .xi-stadium {
  width: 100%;
  max-width: 640px;
  justify-self: center;
}

.xi-medical { color: #e53935; font-style: normal; font-weight: 800; margin-right: 3px; }

/* Header placeholder shares the loaded probability/strip layout: no extra meta row. */
.mpage .hero__prob-sk { display: block; min-height: 0; }
.mpage .hero__prob-sk .mrow__prob { display: flex; }
.mpage .hero__prob-sk .hero__prob-sk-stars { width: 64px; height: 12px; }
.mpage .hero__prob-sk .hero__prob-sk-k { width: 32px; height: 11.4px; }
.mpage .hero__prob-sk .hero__prob-sk-v { width: 24px; height: 15px; }
.mpage .mskel--unified .mskel__card { padding: 0; }

/* Identical geometry before/after WDL hydration: 13px bar + 8px gap + 36px strip. */
.mpage .hero__prob > .mrow__prob,
.mpage .hero__prob-sk > .mrow__prob {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.mpage .hero__prob .hero__prob-line { height: 13px; min-height: 13px; }
.mpage .hero__prob .hero__strip { margin-top: 0; }
.mpage .hero__prob .hero__strip > span { height: 36px; box-sizing: border-box; }
.mpage .hero__prob-sk { height: auto; padding: 0; margin: 0; }

/* Shared detail-tab rhythm, based on the pre-match sections. */
.mpage .mstage .mpane :is(.pre-stack, .cmp-stack, .jn-doc, .dwrap--intel) { row-gap: 16px; }
.mpage .mstage .mpane :is(.block, .pre-card, .sb-card, .hub-card) {
  border: 0; border-radius: 0; box-shadow: none;
}
.mpage .mstage .mpane > :is(.block, .pre-card, .sb-card),
.mpage .mstage .mpane .dwrap--intel > .block { margin: 0 0 16px; padding: 0; }
.mpage .mstage .mpane .sec__head { margin: 0 0 12px; padding: 0; border: 0; gap: 12px; }
.mpage .mstage .mpane .sec__head h2 {
  margin: 0; font-size: 15px; font-weight: 600; line-height: 1.5; letter-spacing: 0;
}
.mpage .mstage .mpane .sec__head h2 :is(.icon, svg) { color: inherit; }
.mpage .mstage .mpane .dkp__sub { margin: 16px 0 12px; font-size: 14px; font-weight: 600; }
.mpage .mstage .mpane #it-players .hubsplit__col > .dkp__sub:first-child { margin-top:0; margin-bottom:8px; }
.mpage .mstage .mpane .dwrap--intel > #it-players { margin-bottom:0; }
.mpage .mstage .mpane #dp-cmp { margin-top:0; padding-top:0; }
.mpage .mstage .mpane [data-cross-view] > .block { margin-top:0; padding-top:0; }
.mpage .gheat__switch { border-radius:999px; }
.mpage .gheat__switch span { border-radius:999px; height:auto; padding:3px 12px; line-height:1.4; }
.mpage .gheat__switch--size { border:0; padding:0; gap:6px; }
.mpage .gheat__switch--size span { border:1px solid var(--m-line,#e5e6eb); padding:3px 10px; }
.mpage .gheat__switch--size input:checked + span { color:var(--m-brand); border-color:currentColor; background:color-mix(in srgb,var(--m-brand) 8%,transparent); }
.mpage .mstage .mpane .match-facts-row {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 12px; align-items: center; padding-bottom: 16px;
  margin-bottom: 16px; border-bottom: 1px solid var(--m-line);
}
.mpage .mstage .mpane .match-facts-row > .block { margin: 0; padding: 0; min-width: 0; }
.mpage .match-facts-row .prevn { justify-content: flex-start; text-align: left; gap: 8px; }
.mpage .prevn__ico { flex: 0 0 auto; width: 22px; height: 22px; padding: 0; background: transparent; border-radius: 0; }
.mpage .match-facts-row .prevn__meta { justify-content: flex-start; }
.mpage .match-facts-row .prewx { gap: 8px; }
.mpage .match-facts-row .prewx__ico { font-size: 28px; }
.mpage .match-facts-row:not(:has(.prevn)) { grid-template-columns: minmax(0,1fr); }
.mpage .mstage .mpane .match-facts-row:not(:has(.prewx)) { grid-template-columns: minmax(0,1fr); }

/* Match the schedule breadcrumb inset. */
.pagebox.wrap:has(.mpage) > .crumb { padding-inline: 12px; }

/* Detail tabs keep a plain surface on hover. */
.mpage .mtabs__i { cursor: pointer; }
.mpage .mtabs__i:hover { color: var(--m-brand, #794DFF); background: transparent; }

/* 记分牌球队块整块可点：徽标 / 队名 / 简称 / xG 一起进球队详情页 */
.mpage .hero__team { text-decoration: none; color: var(--m-text); border-radius: 12px; }
.mpage a.hero__team { cursor: pointer; }
.mpage a.hero__team:hover .hero__name,
.mpage a.hero__team:hover .hero__abbr { color: var(--m-brand); }
.mpage a.hero__team:hover .tcrest,
.mpage a.hero__team:hover .tbadge { transform: scale(1.04); }
.mpage .hero__team .tcrest,
.mpage .hero__team .tbadge { transition: transform .15s ease; }
.mpage a.hero__team:focus-visible { outline: 2px solid var(--m-brand); outline-offset: 4px; }

.hero .hero__jc { background: transparent; border: 0; box-shadow: none; }

.mpage .hero__comp .hero__jc.hland__jc-wrap { padding: 0; border-radius: 0; background: transparent; }

/* Explicit team-relative attacking lanes. */
.sb-attack-note { margin: 8px 0 20px; color: var(--m-text-2); font-size: 12px; line-height: 1.7; }
.sb-attack-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.sb-attack-team { --lane-color: var(--m-home,#9850da); padding: 18px; border: 1px solid var(--m-line,#e8e8ef); border-top: 3px solid var(--lane-color); border-radius: 12px; background: var(--m-surface,#fff); }
.sb-attack-team--a { --lane-color: var(--m-away,#20aaa1); }
.sb-attack-team__head { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--m-text); overflow-wrap: anywhere; }
.sb-attack-lane { display: grid; grid-template-columns: 30px minmax(0,1fr) 42px; gap: 10px; align-items: center; margin-top: 16px; font-size: 12px; color: var(--m-text-2); }
.sb-attack-lane strong { text-align: right; color: var(--m-text); font-size: 16px; font-variant-numeric: tabular-nums; }
.sb-attack-lane__track { height: 8px; border-radius: 8px; overflow: hidden; background: color-mix(in srgb,var(--lane-color) 10%,var(--m-surface,#fff)); }
.sb-attack-lane__track i { display: block; height: 100%; border-radius: inherit; background: var(--lane-color); }
@media(max-width:600px) { .sb-attack-grid { grid-template-columns: 1fr; gap: 12px; } .sb-attack-team { padding: 16px; } }

/* Keep the axis free of scores, including older cached event markup. */
.mpage .mtl__axis .mtl__sc { display: none; }
.mpage .mtl__goal-score { color: var(--m-text); font-size: 13px; font-variant-numeric: tabular-nums; }
@media(max-width:767px) {
  .mpage #play-events, .mpage #play-events .mtl { min-width: 0; max-width: 100%; }
  .mpage .mtl__list::before { left: 6px; }
  .mpage .mtl__i, .mpage .mtl__mark { display: grid; grid-template-columns: 14px minmax(0,1fr); gap: 10px; align-items: start; }
  .mpage .mtl__axis { width: 14px; }
  .mpage .mtl__min { width: 14px; min-width: 14px; height: 14px; padding: 0; border-radius: 50%; font-size: 8px; }
  .mpage .mtl__i .mtl__body { width: auto; min-width: 0; align-items: flex-start; text-align: left; }
  .mpage .mtl__i--a .mtl__body { align-items: flex-end; text-align: right; }
  .mpage .mtl__i .mtl__ev { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
  .mpage .mtl__i--a .mtl__ev { flex-direction: row-reverse; justify-content: flex-start; }
  .mpage .mtl__name { white-space: normal; overflow-wrap: anywhere; overflow: visible; }
  .mpage .mtl__tag { flex-shrink: 0; }
  .mpage .mtl__mark-lab { min-width: 0; flex-wrap: wrap; }
}

/* Compact shirt numbers in match events. */
.mpage .mtl .pavatar,
.mpage .mtl .mtl__av {
  width: 22px;
  height: 22px;
  min-width: 22px;
  font-size: 10px;
  line-height: 1;
}

.mpage .mtl__ev .mtl__goal-score { order: 10; flex: none; white-space: nowrap; padding: 2px 6px; border-radius: 4px; background: var(--m-surface-2,#f2f3f5); }

/* Use the full xG plot width and keep SVG labels legible on phones. */
.mpage .race__plot, .mpage .race { width: 100%; max-width: none; }
@media(max-width:599px) {
  .mpage .race__tick, .mpage .race__axis, .mpage .race__halflab { font-size: 17px; }
  .mpage .race__end { font-size: 18px; }
}

/* Goal posts turn outward at the dashed goal line. */
.mpage .sb-mouth__ground { stroke: var(--m-text-2,#687384); stroke-width: 1; stroke-dasharray: 3 2; }
/* No landing point (blocked / missing coords): muted hint inside the frame. */
.mpage .sb-mouth__note { fill: var(--m-text-3,#86909c); font-size: 8.4px; font-weight: 500; letter-spacing: .2px; }
/* Landing point pinned to the box edge: outward arrow, real distance lives in the label. */
.mpage .sb-mouth__far { fill: none; stroke: var(--m-text,#1d2129); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
@media(max-width:599px) {
  .mpage .sb-sdet.has-mouth { grid-template-columns: repeat(3,minmax(0,1fr)) minmax(0,1.8fr); column-gap: 8px; row-gap: 12px; }
  .mpage .sb-sdet__mouth { grid-column: 4; grid-row: 2 / span 2; justify-self: stretch; padding: 0; width: 100%; }
  .mpage .sb-mouth { width: 100%; height: auto; aspect-ratio: 96 / 44; }
  .mpage .sb-sdet > div { min-width: 0; }
  .mpage .sb-sdet dt, .mpage .sb-sdet dd { white-space: normal; overflow-wrap: normal; margin-left: 0; }
}

/* Narrow the goal graphic without changing the data columns. */
.mpage .sb-sdet__mouth .sb-mouth { width: calc(100% - 12px); margin-inline: 6px; }

/* Compact team marks and readable momentum event symbols. */
.mpage .mom__who :is(.tcrest,.tbadge,.tcrest--mom) { width: 12px; height: 12px; min-width: 12px; flex-basis: 12px; }


/* Match xG goal symbols to the momentum event size. */


@media(min-width:600px) {
  .mpage .sb-sdet.has-mouth { grid-template-columns: repeat(3,minmax(0,1fr)) 144px; column-gap: 16px; }
  .mpage .sb-sdet__mouth { width: 144px; padding-left: 0; }
  .mpage .sb-sdet__mouth .sb-mouth { height: auto; aspect-ratio: 96 / 44; }
}

/* Desktop chart symbols: 16 units, centered on the event coordinate. */
@media(min-width:768px) {
  .mpage .mom__ico, .mpage .race__ico {
    transform-box: view-box;
    transform-origin: 0 0;
    transform: scale(0.533333);
  }
}
