/*
 * 「数据」分栏雷速风格卡片：基础信息 / 积分排名 / 历史交锋 / 近期战绩 / 关键球员 / 未来赛程 / 伤停。
 * 只在 data pane 生效（.hub-card），不改全局组件。
 */

/* 标题和筛选在上，主客队切换在下方独占一行。 */
.hub-card .sec__head:has(.hubtabs) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
/* data-pane.css 用高特异度把标题 margin 清零，这里靠标题自身吃掉剩余空间 */
.hub-card .sec__head > h2 { flex: 1 0 auto; }
.hub-card .sec__head > .hub-table-open {
  margin-left: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--m-brand, #794DFF);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.hub-card .sec__head > .hub-table-open:hover { text-decoration: underline; }
.hub-card .sec__head > .hubops { flex: 0 0 auto; margin-left: 0; }
.hub-card .sec__head > .hubtabs { flex: 0 0 100%; min-width: 0; }
.hubtabs {
  display: flex;
  width: auto;
  margin: 0;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 0;
  gap: 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hubtabs__i {
  appearance: none;
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--m-surface-2, #f2f3f5);
  border: 0;
  color: var(--m-text-2, #4e5969);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 7px 14px;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.hubtabs__i span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.hubtabs__i .crest {
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
}
/* 主队右缘斜切、客队左缘斜切并左叠，中间留出斜线缝 */
.hubtabs__i--h {
  z-index: 2;
  padding-right: 22px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
  background: color-mix(in srgb, var(--m-brand, #794DFF) 12%, var(--m-surface));
  color: var(--m-brand, #794DFF);
  pointer-events: auto;
}
.hubtabs__i--a {
  z-index: 1;
  margin-left: -18px;
  padding-left: 24px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%);
  background: color-mix(in srgb, var(--ok, #00b42a) 12%, var(--m-surface));
  color: var(--ok, #0f9d58);
  pointer-events: auto;
}
/* Active tab above diagonal overlap so clicks reach the intended side. */
.hubtabs__i.is-on { z-index: 3; }
.hubtabs__i:not(.is-on) { z-index: 1; }

.hubtabs__i--h::after {
  content: "";
  position: absolute;
  top: -20%;
  right: 4px;
  width: 3px;
  height: 140%;
  background: var(--m-surface, #fff);
  transform: skewX(-22deg);
  pointer-events: none;
  z-index: 3;
}
.hubtabs__i--h:hover {
  background: color-mix(in srgb, var(--m-brand, #794DFF) 20%, var(--m-surface));
}
.hubtabs__i--a:hover {
  background: color-mix(in srgb, var(--ok, #00b42a) 20%, var(--m-surface));
}
/* 未选中球队统一灰色，避免主客队色被误认为选中状态。 */
.hubtabs__i:not(.is-on) {
  background: var(--m-surface-2, #f2f3f5);
  color: var(--m-text-2, #4e5969);
}
.hubtabs__i:not(.is-on):hover {
  background: color-mix(in srgb, var(--m-text-2, #4e5969) 10%, var(--m-surface-2, #f2f3f5));
}
.hubtabs__i--h.is-on {
  background: var(--m-brand, #794DFF);
  color: var(--color-ink-on-fill, #fff);
  font-weight: 700;
}
.hubtabs__i--a.is-on {
  background: var(--ok, #00b42a);
  color: var(--color-win-ink, #fff);
  font-weight: 700;
}
.hubtabs__i:only-child {
  clip-path: none;
  margin-left: 0;
  padding: 7px 14px;
  border-radius: 8px;
}
.hubtabs__i:only-child::after { display: none; }

/* 锚点跳转偏移：悬浮锚点菜单 + 粘性页签高度 */
.mpane .pre-card,
.mpane [id^="dp-"] {
  scroll-margin-top: 118px;
  scroll-margin-bottom: 90px;
}

/* 标题行：标题居左，筛选药丸靠右，窄屏换行。 */
.sec__head.hub-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 12px;
  flex-wrap: wrap;
}
.sec__head.hub-head h2 { margin: 0; flex: 1 0 auto; }
.sec__head.hub-head .hubops { margin: 0; flex: 0 0 auto; }
.sec__head.hub-head .hubops__pills { margin-left: 0; }
.sec__head.hub-head .hubsum { flex-basis: 100%; }
.hub-h2h__ops { display: contents; }
.sec__head.hub-head .hub-h2h__filters {
  margin-left: auto;
  max-width: 100%;
}

/* 药丸筛选条 */
.hubops {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.hubops__flags {
  display: flex;
  gap: 6px;
}
.hubops__flag {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.hubops__flag input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.hubops__flag span {
  font-size: 12px;
  color: var(--m-text-2, var(--color-ink-2, #4e5969));
  border: 1px solid var(--m-line, #e5e6eb);
  border-radius: 999px;
  padding: 3px 10px;
  line-height: 1.4;
  user-select: none;
  transition: all 0.15s ease;
}
.hubops__flag input:checked + span {
  color: var(--m-brand, #794DFF);
  border-color: currentColor;
  background: color-mix(in srgb, var(--m-brand, #794DFF) 8%, transparent);
  font-weight: 600;
}
.hubops__pills {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--m-line, #e5e6eb);
  border-radius: 999px;
  margin-left: 0;
}
.hubops__pills .hubpill { border: 0; border-radius: 999px; padding: 3px 12px; text-decoration: none; }
.hubops__pills .hubpill:focus-visible { outline: 2px solid var(--m-brand, #794DFF); outline-offset: 2px; }
.hubpill {
  appearance: none;
  border: 1px solid var(--m-line, #e5e6eb);
  background: transparent;
  color: var(--m-text-2, var(--color-ink-2, #4e5969));
  font-size: 12px;
  line-height: 1.4;
  padding: 3px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.hubpill:hover {
  color: var(--m-brand, #794DFF);
}
.hubpill.is-on {
  color: var(--color-ink-on-fill, #fff);
  background: var(--m-brand, #794DFF);
  border-color: var(--m-brand, #794DFF);
  font-weight: 600;
}
.hubsum {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--m-text-2, var(--color-ink-2, #4e5969));
}
.hubsum b {
  font-weight: 600;
  color: var(--m-text, var(--color-ink, #1d2129));
}
.hubsum__w { color: var(--ok, #00b42a) !important; }
.hubsum__d { color: var(--m-text-2, #4e5969) !important; }
.hubsum__l { color: var(--danger, #f53f3f) !important; }

/* 近期状态：主客分项表头（主场 / 客场场次） */
.form-split-head {
  display: flex;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
}
.form-split-side {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.form-split-side::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.form-split-side--h { color: var(--pk-home, #e8463a); }
.form-split-side--a { color: var(--pk-away, #2f6bff); }

/* 胜平负占比条 */
.hubbar-wdl {
  flex-basis: 100%;
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--m-line, #e5e6eb);
}
.hubbar-wdl:empty { display: none; }
.hubbar-wdl__w { background: var(--ok, #00b42a); }
.hubbar-wdl__d { background: #f0a020; }
.hubbar-wdl__l { background: var(--danger, #f53f3f); }

/* 对比条目行 */
.hubrows {
  display: flex;
  flex-direction: column;
}
.hubrow {
  display: grid;
  grid-template-columns: 62px 20px minmax(0, 1fr) 86px 30px;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  border-bottom: 1px dashed var(--m-line, #e5e6eb);
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}
.hubrows > .hubrow:last-child { border-bottom: 0; }
.hubrow__when {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.hubrow__when time { font-variant-numeric: tabular-nums; }
.hubrow__when small {
  color: var(--m-text-3, var(--color-ink-3, #86909c));
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hubrow__side {
  font-size: 11px;
  color: var(--m-text-3, var(--color-ink-3, #86909c));
  text-align: center;
}
.hubrow__tm,
.hubrow__opp {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.hubrow__tm--a { justify-content: flex-end; text-align: right; }
.hubrow__nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hubrow__tm .is-anch,
.hubrow .is-anch .hubrow__nm { font-weight: 600; }
.hubrow__sc {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hubrow__sc i { color: var(--m-text-3, #86909c); font-style: normal; }
.hubrow__sc small { color: var(--m-text-3, #86909c); font-size: 11px; }

/* 中线对齐行（历史交锋 / 近期战绩 / 近期赛程）：比分或 vs 固定居中基线，
   主客队名向中线靠拢（队徽贴比分），半场比分在完整比分下方，右侧放结果徽章 / 相隔天数。 */
.hubrow--vs {
  grid-template-columns: 62px minmax(0, 1fr) 96px minmax(0, 1fr) 42px;
}
.hubrow--vs .hubrow__tm--h { justify-content: flex-end; text-align: right; }
.hubrow--vs .hubrow__tm--a { justify-content: flex-start; text-align: left; }
.hubrow--vs .hubrow__sc {
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.hubrow--vs .hubrow__fs { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hubrow--vs .hubrow__fs i { font-style: normal; color: var(--m-text-3, #86909c); }
.hubrow--vs .hubrow__ht { line-height: 1.1; }
.hubrow__res {
  justify-self: end;
  width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 6px;
  text-align: center;
  font-size: 12px;
  color: #fff;
}
.hubrow__res--w { background: var(--ok, #00b42a); }
.hubrow__res--d { background: #f0a020; }
.hubrow__res--l { background: var(--danger, #f53f3f); }


/* 基础信息对比 */
.hubvs {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: center;
  margin-bottom: 10px;
}
.hubvs__team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  min-width: 0;
}
.hubvs__team:last-child { justify-content: flex-end; }
.hubvs__x {
  text-align: center;
  font-size: 12px;
  color: var(--m-text-3, #86909c);
  font-weight: 700;
}
/* 积分排名双表 */
.hubstand {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.hubstand__hd {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin: 0 0 6px;
}
.hubsheet {
  font-size: 12px;
  table-layout: fixed;
  width: 100%;
}
.hubsheet th,
.hubsheet td {
  padding: 7px 4px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px dashed var(--m-line, #e5e6eb);
  color: var(--m-text-2, #4e5969);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.hubsheet thead th {
  color: var(--m-text-3, #86909c);
  font-size: 11px;
  border-bottom: 1px solid var(--m-line, #f2f3f5);
  padding: 4px 4px 6px;
}
.hubsheet .num { text-align: center; font-family: inherit; }
.hubsheet__lg {
  text-align: left;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hubsheet__k { font-weight: 600; }
.hubsheet__wdl { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* 比例列宽：联赛占主，数字列均分剩余，避免宽窄悬殊 */
.hubsheet th:nth-child(1), .hubsheet td:nth-child(1) { width: 24%; } /* 联赛 */
.hubsheet th:nth-child(2), .hubsheet td:nth-child(2) { width: 9%; }  /* 赛 */
.hubsheet th:nth-child(3), .hubsheet td:nth-child(3) { width: 20%; } /* 胜/平/负 */
.hubsheet th:nth-child(4), .hubsheet td:nth-child(4) { width: 17%; } /* 进/失 */
.hubsheet th:nth-child(5), .hubsheet td:nth-child(5) { width: 15%; } /* 积分 */
.hubsheet th:nth-child(6), .hubsheet td:nth-child(6) { width: 15%; } /* 排名 */
.hubsheet__r--总 td { background: color-mix(in srgb, var(--m-brand, #794DFF) 4%, transparent); }
.hubsheet__rank {
  color: var(--m-brand, #794DFF);
}
/* 积分排名：正文 / 数值统一常规字重与正文色；表头只保留字号与淡底区分 */
#dp-stand .hubsheet th,
#dp-stand .hubsheet td,
#dp-stand .hubsheet .num,
#dp-stand .hubsheet__k,
#dp-stand .hubsheet__rank {
  font-weight: 400;
  color: var(--m-text-2, #4e5969);
}
#dp-stand .hubsheet thead th {
  font-weight: 400;
  color: var(--m-text-3, #86909c);
  background: var(--m-soft, #f7f8fa);
}
/* 积分排名「前景」表：百分比按正文数值口径（400 / 正文色），表头与行首维持弱化。 */
#dp-stand .outlook-delta th,
#dp-stand .outlook-delta td {
  font-weight: 400;
}
#dp-stand .outlook-delta th,
#dp-stand .outlook-delta td:first-child {
  color: var(--m-text-3, #86909c);
}
#dp-stand .outlook-delta td.num {
  color: var(--m-text-2, #4e5969);
}
/* 「前景」delta 表：表头三列跟着数值一起右对齐，数值沿用站点正文字体
   （不再套等宽数字字体），否则表头贴左、数值贴右，看着就是一列错位。 */
.outlook-delta th:not(:first-child),
.outlook-delta th.num {
  text-align: right;
}
.outlook-delta td.num {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}
.huboutlook {
  margin-top: var(--s4, 16px);
  padding-top: 0;
  border-top: 0;
}
.hubdlg {
  width: min(680px, calc(100vw - 24px));
  max-height: min(82vh, 760px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--m-surface, #fff);
  color: var(--m-text, #1d2129);
  box-shadow: 0 18px 48px rgba(15, 18, 28, .28);
}
.hubdlg::backdrop { background: rgba(15, 18, 28, .45); }
.hubdlg__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 8px;
}
.hubdlg__bar h2 { margin: 0; font-size: 16px; font-weight: 700; }
.hubdlg__x {
  border: 0;
  background: transparent;
  color: var(--m-text-3, #86909c);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.hubdlg__body {
  overflow: auto;
  max-height: calc(82vh - 52px);
  padding: 0 10px 14px;
}

/* 关键球员 */
.hubprow {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
  padding: 7px 4px;
  border-bottom: 1px dashed var(--m-line, #e5e6eb);
  font-size: 12px;
}
.hubprows__set > .hubprow:last-child { border-bottom: 0; }
.hubprow__name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  line-height: 1.25;
}
.hubprow__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.hubprow__who b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.hubprow__who small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--m-text-3, #86909c);
  font-size: 11px;
  font-weight: 500;
}
.hubprow__m {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.3;
}
.hubprow__m b { font-variant-numeric: tabular-nums; }
.hubprow__m small {
  color: var(--m-text-3, var(--color-ink-3, #86909c));
  font-size: 10px;
}
.hubrate {
  display: inline-block;
  min-width: 30px;
  padding: 1px 6px;
  border-radius: 6px;
  text-align: center;
  color: #fff;
  background: var(--m-text-3, #86909c);
}
.hubrate--mid { background: #f0a020; }
.hubrate--hi { background: var(--ok, #00b42a); }

/* 双列容器 */
.hubsplit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.hubsplit__hd {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin: 0 0 8px;
}
.hubsplit__col { min-width: 0; }

/* 伤停 */
.hubinj {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hubinj__r {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 5px 6px;
  background: var(--m-soft);
  border-radius: 8px;
}
.hubinj__who {
  display: flex;
  flex-direction: column;
  min-width: 84px;
  line-height: 1.25;
}
.hubinj__who b { font-size: 13px; }
.hubinj__who small { color: var(--m-text-3, #86909c); }
.hubinj__tag {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--danger, #f53f3f);
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 0 4px;
  line-height: 1.5;
}
.hubinj__tag--susp { color: #f0a020; }
.hubinj__why {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--m-text-2, #4e5969);
}
.hubinj__ret {
  flex: 0 0 auto;
  color: var(--m-text-3, #86909c);
}

.hub-tag {
  font-size: 11px;
  color: var(--m-text-3, var(--color-ink-3, #86909c));
  border: 1px dashed var(--m-line, #e5e6eb);
  border-radius: 4px;
  padding: 1px 6px;
}

/* 窄屏：两列收一列，行更紧凑 */
@media (max-width: 640px) {
  .hubsplit { grid-template-columns: 1fr; }
  .hubstand { grid-template-columns: 1fr; }
  .hubrow {
    grid-template-columns: 54px 16px minmax(0, 1fr) 72px 22px;
    font-size: 12px;
  }
  .hubrow--vs {
    grid-template-columns: 54px minmax(0, 1fr) 76px minmax(0, 1fr) 38px;
  }
  .hubbar { grid-template-columns: 1fr auto 1fr; }
  .hubprow { grid-template-columns: minmax(0, 1.3fr) repeat(5, minmax(0, 1fr)); }
  .hubops__pills { margin-left: 0; }
  /* 窄屏标题保持自然宽度，筛选靠右。 */
  .hub-card .sec__head > h2 { flex: 0 0 auto; }
  .hub-card .sec__head > .hubops { margin-left: auto; }
  /* 没有球队切换卡的板块（如历史交锋）：筛选从标题行拆到下一行独占，
     标题不再被 5 个 chip 挤成一小截，触摸目标也不会互相贴着。 */
  .hub-card .sec__head:has(.hubops):not(:has(.hubtabs)) > .hubops {
    flex: 1 0 100%;
    margin-left: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .hub-card .sec__head:has(.hubops):not(:has(.hubtabs)) > .hubops::-webkit-scrollbar { display: none; }
}

/* ==========================================================================
 * 近期战绩：球队由标题下方的切换卡选择，内容依次为总/主/客摘要表 → 明细表。
 * 赛果颜色沿用中文体育惯例：胜=红、平=蓝、负=绿。
 * ========================================================================== */
.hub-recent .pre-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hrec { min-width: 0; }

.hrec__sum {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 0 0 10px;
  font-variant-numeric: tabular-nums;
}
.hrec__sum th,
.hrec__sum td {
  padding: 6px 4px;
  text-align: center;
  border-bottom: 1px solid var(--m-line, #f2f3f5);
  color: var(--m-text-2, #4e5969);
  font-weight: 400;
}
.hrec__sum th { color: var(--m-text-3, #86909c); font-size: 11px; }
.hrec__sum .hrec__sumk { text-align: left; padding-left: 10px; font-weight: 600; color: var(--m-text, #1d2129); }
.hrec__sum td:nth-child(8) { color: var(--m-text, #1d2129); font-weight: 600; } /* 净胜 */
.hrec__sum td:nth-child(9) { color: var(--m-text, #1d2129); font-weight: 600; } /* 胜率 */

/* 分段式近 N 场切换：胶囊容器内紧挨排列 */
.hubseg {
  border: 1px solid var(--m-line, #e5e6eb);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}
.hubseg .hubpill { border: 0; border-radius: 999px; padding: 3px 12px; }

.hrec__hd,
.hrecrow {
  display: grid;
  grid-template-columns: 72px 48px minmax(0, 1fr) 52px minmax(0, 1fr) var(--hrec-end-cols, 34px 34px);
  gap: 4px;
  align-items: center;
  font-size: 12px;
}
.hrec__hd {
  color: var(--m-text-3, #86909c);
  font-size: 11px;
  padding: 4px 0 6px;
  border-bottom: 1px solid var(--m-line, #f2f3f5);
}
/* 表头与内容同向：主队名右贴比分、客队名左贴比分 */
.hrec__hd span:nth-child(3) { text-align: right; }
.hrec__hd span:nth-child(4),
.hrec__hd span:nth-child(n + 6) { text-align: center; }
.hrec__hd span:nth-child(5) { text-align: left; }
.hrecrow {
  padding: 7px 0;
  border-bottom: 1px dashed var(--m-line, #e5e6eb);
  color: inherit;
  text-decoration: none;
}
.hrec__rows > .hrecrow:last-child { border-bottom: 0; }
.hrecrow:hover { background: var(--m-surface-2, #f7f8fa); }
.hrec--schedule, .hrec--h2h { --hrec-end-cols: 72px; }
.hrecrow--current {
  background: color-mix(in srgb, var(--m-brand, #794DFF) 6%, transparent);
}
.hrecrow--current .hrecrow__res { color: var(--m-brand, #794DFF); }
.hrecrow__date {
  display: grid;
  gap: 2px;
  color: var(--m-text-2, #4e5969);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}
.hrecrow__date small { color: var(--m-text-3, #86909c); font-size: .92em; }
.hrecrow__lg {
  color: var(--m-text-3, #86909c);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hrecrow__tm {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  color: var(--m-text, #1d2129);
}
.hrecrow__tm--h { justify-content: flex-end; text-align: right; }
.hrecrow__tm--a { justify-content: flex-start; text-align: left; }
.hrecrow__nm {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hrecrow__tm .crest { flex: 0 0 auto; background: transparent; border-radius: 0; }
.hrecrow__tm.is-anch { font-weight: 600; }
.hrecrow__sc {
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--m-text, #1d2129);
}
.hrecrow__sc small {
  display: block;
  color: var(--m-text-3, #86909c);
  font-size: .92em;
  font-weight: 400;
}
.hrecrow__res {
  text-align: center;
  font-weight: 600;
}
.hrecrow__res--w { color: var(--danger, #f53f3f); }
.hrecrow__res--d { color: #1d6fd6; }
.hrecrow__res--l { color: var(--ok, #00b42a); }
.hrecrow__ou {
  text-align: center;
  color: var(--m-text-2, #4e5969);
}
.hrecrow__ou--est { color: var(--m-text-3, #86909c); } /* 缺盘口按 2.5 估算：置灰提示 */
.hrecrow__ou[title*="盘口"] { font-weight: 600; }      /* 真实盘口判定：加粗 */

/* 窄屏：固定列收窄，把宽度让给两队队名（队名 + 队徽紧贴比分）。
   赛事列不能再压到 34px——四个字的联赛名会被截成「亚冠…」；
   改成 52px（可放 4 个中文字），比分与赛果同步收窄补回空间。 */
@media (max-width: 640px) {
  .hrec__hd,
  .hrecrow {
    grid-template-columns: 54px 52px minmax(0, 1fr) 36px minmax(0, 1fr) var(--hrec-end-cols, 22px 22px);
    gap: 3px;
    font-size: 11px;
  }
  .hrec--schedule, .hrec--h2h { --hrec-end-cols: 44px; }
  .hrecrow__tm { gap: 4px; }
  .hrecrow__tm .crest { width: 16px; height: 16px; }
  /* 队名仍可换行，宁可两行也不要变成省略号 */
  .hrecrow__nm { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
}

