/* ========================================================================== */
/* D · 足球档案册正式排版                                                     */
/* 固定由 index.html 启用；只改变视觉与排版，不改变业务数据、路由或交互。       */
/* ========================================================================== */

html[data-nova-layout] {
  --layout-serif: Georgia, "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --layout-mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", monospace;
  --layout-hairline: color-mix(in srgb, var(--color-text) 22%, var(--color-border));
  --layout-faint-line: color-mix(in srgb, var(--color-text) 10%, var(--color-border));
  --layout-paper: color-mix(in srgb, var(--color-surface) 96%, #f3ead7 4%);
  --layout-ink: var(--color-text-heading);
}

/* ========================================================================== */
/* D · 足球档案册                                                             */
/* ========================================================================== */

html[data-nova-layout="ledger"] {
  --ledger-font-ui: var(--font-ui);
  /* 普通桌面随窗口增长；宽屏侧栏模式会在自己的媒体查询里继续放宽。 */
  --nova-page-max: 1600px;
  --nova-content-max: 1500px;
  --ledger-radius-page: 20px;
  --ledger-radius-panel: 18px;
  --ledger-radius-card: 14px;
  --ledger-radius-control: 11px;
  --ledger-radius-pill: 999px;
  --ledger-control-sm: 36px;
  --ledger-control-md: 40px;
  --ledger-control-lg: 44px;
  --ledger-text-control: 13px;
  --ledger-weight-control: 600;
  --ledger-soft-shadow: 0 10px 28px color-mix(in srgb, var(--color-chrome) 8%, transparent);
  --ledger-active-shadow: 0 8px 20px color-mix(in srgb, var(--color-primary-strong) 20%, transparent);
}

html[data-nova-layout="ledger"] body.nova-ui {
  font-family: var(--ledger-font-ui);
  background-color: color-mix(in srgb, var(--color-bg) 86%, #d8ceba 14%);
  background-image:
    linear-gradient(color-mix(in srgb, var(--color-text) 2%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--color-text) 2%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
}

html[data-nova-layout="ledger"] .nova-ui :is(button, input, select, textarea) {
  box-sizing: border-box;
  font-family: var(--ledger-font-ui);
}

html[data-nova-layout="ledger"] .nova-ui button {
  line-height: 1.2;
}

html[data-nova-layout="ledger"] body.nova-ui::before {
  opacity: 0.08;
  filter: grayscale(0.55) sepia(0.18) contrast(1.05);
}

html[data-nova-layout="ledger"] .nova-ui .page.nova-page {
  color: var(--layout-ink);
  border-radius: var(--ledger-radius-page);
  background:
    linear-gradient(90deg, transparent 0 42px, color-mix(in srgb, var(--status-live) 15%, transparent) 42px 43px, transparent 43px),
    repeating-linear-gradient(0deg, transparent 0 31px, color-mix(in srgb, var(--color-text) 3.2%, transparent) 31px 32px),
    var(--layout-paper);
  box-shadow:
    0 0 0 1px var(--layout-hairline),
    0 24px 64px color-mix(in srgb, var(--color-chrome) 18%, transparent);
}

html[data-nova-layout="ledger"] .nova-page-stage {
  color: var(--layout-ink);
  border-bottom: 4px double var(--layout-hairline);
  border-radius: var(--ledger-radius-page) var(--ledger-radius-page) 0 0;
  background: color-mix(in srgb, var(--layout-paper) 94%, transparent);
}

html[data-nova-layout="ledger"] .nova-ui .nova-route-league > .league-hero:first-child {
  border-radius: var(--ledger-radius-page) var(--ledger-radius-page) 0 0;
}

html[data-nova-layout="ledger"] .nova-page-stage::before {
  content: none;
  display: none;
}

html[data-nova-layout="ledger"] .nova-stage-status {
  justify-content: space-between;
  min-height: 42px;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--layout-hairline);
  font-family: var(--layout-mono);
  letter-spacing: 0.08em;
}

html[data-nova-layout="ledger"] .nova-stage-main {
  min-height: 174px;
  padding-right: 40px;
  box-sizing: border-box;
}

html[data-nova-layout="ledger"] .nova-stage-main h1 {
  color: var(--layout-ink);
  font-family: var(--layout-serif);
  font-size: clamp(40px, 5vw, 70px);
  font-weight: 700;
  letter-spacing: -0.055em;
}

html[data-nova-layout="ledger"] .nova-stage-main > em {
  top: 50%;
  right: 32px;
  max-width: 68%;
  overflow: hidden;
  color: color-mix(in srgb, var(--layout-ink) 8%, var(--layout-paper));
  font-family: var(--layout-serif);
  font-size: clamp(40px, 5.2vw, 76px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-rendering: geometricPrecision;
  text-shadow: none;
  filter: none;
  opacity: 1;
  transform: translateY(-50%);
  mix-blend-mode: normal;
}

/* 英文主标题本身已经是英文，不再叠加重复的浅色英文装饰字。 */
html[data-nova-layout="ledger"][data-locale="en"] .nova-stage-main > em {
  display: none;
}

/* 章节目录：保留所有原按钮，只改变呈现方式。 */
html[data-nova-layout="ledger"] .nova-ui :is(
  .sub-tabs,
  .news-head,
  .disc-head,
  .data-top,
  .league-tabs,
  .detail-tabs,
  .team-news-bar,
  .league-picker
) {
  border-bottom: 1px solid var(--layout-hairline);
  background: color-mix(in srgb, var(--layout-paper) 94%, transparent);
  box-shadow: none;
}

html[data-nova-layout="ledger"] .nova-ui :is(
  .sub-tabs .tabs,
  .news-topnav,
  .disc-topnav,
  .league-tabs .tabs,
  .league-tabs,
  .detail-tabs
) {
  gap: 7px;
}

html[data-nova-layout="ledger"] .nova-ui :is(
  .sub-tabs .tab,
  .news-topnav .tab,
  .disc-topnav .tab,
  .league-tabs .tab,
  .detail-tabs:not(.mxd-chapters) .tab
) {
  position: relative;
  min-height: var(--ledger-control-md);
  padding: 0 16px;
  color: var(--color-text-muted);
  border: 1px solid var(--layout-faint-line);
  border-radius: var(--ledger-radius-control);
  background: color-mix(in srgb, var(--layout-paper) 86%, transparent);
  font-family: var(--ledger-font-ui);
  font-size: var(--ledger-text-control);
  font-weight: var(--ledger-weight-control);
  line-height: 1.2;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

html[data-nova-layout="ledger"] .nova-ui :is(
  .sub-tabs .tab,
  .news-topnav .tab,
  .disc-topnav .tab,
  .league-tabs .tab,
  .detail-tabs:not(.mxd-chapters) .tab
):last-child {
  border-right-color: var(--layout-faint-line);
}

html[data-nova-layout="ledger"] .nova-ui :is(
  .sub-tabs .tab,
  .news-topnav .tab,
  .disc-topnav .tab,
  .league-tabs .tab,
  .detail-tabs:not(.mxd-chapters) .tab
):hover {
  color: var(--color-text);
  border-color: color-mix(in srgb, var(--color-primary-strong) 36%, var(--layout-hairline));
  background: color-mix(in srgb, var(--color-primary-soft) 48%, var(--layout-paper));
  transform: translateY(-1px);
}

html[data-nova-layout="ledger"] .nova-ui :is(
  .sub-tabs .tab.active,
  .news-topnav .tab.active,
  .disc-topnav .tab.active,
  .league-tabs .tab.active,
  .detail-tabs:not(.mxd-chapters) .tab.active
) {
  color: var(--color-on-primary-strong);
  border-color: var(--color-primary-strong);
  background: var(--color-primary-strong);
  box-shadow: var(--ledger-active-shadow);
}

html[data-nova-layout="ledger"] .nova-ui :is(
  .sub-tabs .tab,
  .news-topnav .tab,
  .disc-topnav .tab,
  .league-tabs .tab,
  .detail-tabs:not(.mxd-chapters) .tab
):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-primary) 34%, transparent);
  outline-offset: 2px;
}

html[data-nova-layout="ledger"] .nova-route-home .home-filter-panel {
  margin-top: 24px;
  border: 1px solid var(--layout-hairline);
  border-radius: var(--ledger-radius-panel);
  background: color-mix(in srgb, var(--layout-paper) 96%, transparent);
  box-shadow: var(--ledger-soft-shadow);
  overflow: hidden;
}

html[data-nova-layout="ledger"] .nova-route-home .match-list {
  margin-top: 14px;
  border: 1px solid var(--layout-hairline);
  border-radius: var(--ledger-radius-panel);
  background: color-mix(in srgb, var(--layout-paper) 96%, transparent);
  box-shadow: var(--ledger-soft-shadow);
  overflow: hidden;
}

html[data-nova-layout="ledger"] .nova-ui .competition-group {
  margin: 18px;
  border: 1px solid var(--layout-hairline);
  border-radius: var(--ledger-radius-card);
  background: transparent;
  box-shadow: 0 7px 20px color-mix(in srgb, var(--color-chrome) 6%, transparent);
  overflow: hidden;
}

html[data-nova-layout="ledger"] .nova-ui .competition-head {
  min-height: 64px;
  padding: 10px 18px;
  border-bottom: 3px double var(--layout-hairline);
  background: color-mix(in srgb, var(--color-surface-alt) 38%, transparent);
}

html[data-nova-layout="ledger"] .nova-ui .competition-date,
html[data-nova-layout="ledger"] .nova-ui .date-head {
  padding: 10px 18px;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--layout-hairline);
  background: transparent;
  font-family: var(--layout-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

html[data-nova-layout="ledger"] .nova-ui .match-row {
  min-height: 94px;
  padding: 0;
  border-bottom: 1px solid var(--layout-hairline);
  background: transparent;
  box-shadow: none;
}

html[data-nova-layout="ledger"] .nova-ui .match-row:last-child {
  border-bottom: 0;
}

html[data-nova-layout="ledger"] .nova-ui .match-row:hover {
  background: color-mix(in srgb, var(--color-primary-soft) 42%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 18%, transparent);
  transform: none;
}

html[data-nova-layout="ledger"] .nova-ui .match-row .left-col {
  width: 112px;
  justify-content: center;
  padding: 14px 16px;
  border-right: 1px solid var(--layout-hairline);
  box-sizing: border-box;
}

html[data-nova-layout="ledger"] .nova-ui .match-row .mid-col {
  justify-content: center;
  padding: 12px 22px;
}

html[data-nova-layout="ledger"] .nova-ui .match-row .right-col {
  width: 112px;
  justify-content: center;
  padding: 14px 16px;
  border-left: 1px solid var(--layout-hairline);
  box-sizing: border-box;
}

html[data-nova-layout="ledger"] .nova-ui .match-row .teams-line {
  font-family: var(--layout-serif);
}

html[data-nova-layout="ledger"] .nova-ui .match-row .score {
  min-width: 58px;
  color: var(--color-primary-strong);
  font-family: var(--layout-mono);
  font-size: 22px;
}

html[data-nova-layout="ledger"] .nova-ui .match-row.row-live {
  background: color-mix(in srgb, var(--status-live) 7%, var(--layout-paper));
  box-shadow: inset 5px 0 0 var(--status-live);
}

/* D：世界杯完整赛程沿用原 gm-* 业务节点，改成逐场档案目录。 */
html[data-nova-layout="ledger"] .nova-ui .games-list {
  width: min(calc(100% - 40px), var(--nova-content-max));
  margin: 24px auto;
  padding: 0 0 10px;
  border: 1px solid var(--layout-hairline);
  border-radius: var(--ledger-radius-panel);
  background: color-mix(in srgb, var(--layout-paper) 96%, transparent);
  box-shadow: var(--ledger-soft-shadow);
  overflow: hidden;
}

html[data-nova-layout="ledger"] .nova-ui .games-list > .real-note {
  min-height: 42px;
  padding: 8px 18px;
  border-bottom: 3px double var(--layout-hairline);
  background: color-mix(in srgb, var(--color-surface-alt) 38%, transparent);
  font-family: var(--layout-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

html[data-nova-layout="ledger"] .nova-ui .gm-date {
  width: fit-content;
  margin: 13px 12px 5px;
  padding: 7px 13px;
  color: var(--color-text-muted);
  border: 1px solid var(--layout-hairline);
  border-radius: var(--ledger-radius-pill);
  background: color-mix(in srgb, var(--color-surface-alt) 52%, transparent);
  font-family: var(--layout-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
}

html[data-nova-layout="ledger"] .nova-ui .gm-row {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) 62px;
  min-height: 94px;
  margin: 7px 10px;
  padding: 0;
  border: 1px solid var(--layout-hairline);
  border-radius: var(--ledger-radius-card);
  background: color-mix(in srgb, var(--layout-paper) 98%, transparent);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--color-chrome) 4%, transparent);
  overflow: hidden;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

html[data-nova-layout="ledger"] .nova-ui .gm-row:hover {
  background: color-mix(in srgb, var(--color-primary-soft) 42%, transparent);
  border-color: color-mix(in srgb, var(--color-primary-strong) 34%, var(--layout-hairline));
  box-shadow: 0 9px 22px color-mix(in srgb, var(--color-chrome) 9%, transparent);
  transform: translateY(-1px);
}

html[data-nova-layout="ledger"] .nova-ui .gm-l {
  display: flex;
  width: auto;
  min-width: 0;
  padding: 15px 17px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--layout-hairline);
  box-sizing: border-box;
}

html[data-nova-layout="ledger"] .nova-ui .gm-l .stg {
  font-family: var(--layout-serif);
  font-size: 13px;
}

html[data-nova-layout="ledger"] .nova-ui .gm-l .tm2 {
  font-family: var(--layout-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

html[data-nova-layout="ledger"] .nova-ui .gm-teams {
  min-width: 0;
  padding: 14px 22px;
  justify-content: center;
  font-family: var(--layout-serif);
}

html[data-nova-layout="ledger"] .nova-ui .gm-teams .gm-tm {
  min-width: 0;
}

html[data-nova-layout="ledger"] .nova-ui .gm-sc {
  width: auto;
  min-width: 0;
  padding: 14px 17px;
  justify-content: center;
  border-left: 1px solid var(--layout-hairline);
  color: var(--color-primary-strong);
  font-family: var(--layout-mono);
  font-size: 18px;
  font-weight: 800;
  box-sizing: border-box;
}

/* D：资讯像剪报、社区像归档卡、赛事数据保持可读表格。 */
html[data-nova-layout="ledger"] .nova-ui :is(
  .toutiao-list,
  .post-feed,
  .official-insight-list,
  .official-video-grid,
  .follow-layout,
  .data-body2,
  .entity-body,
  .news-read-body,
  .account-history-body
) {
  width: min(calc(100% - 40px), var(--nova-content-max));
  margin-inline: auto;
}

html[data-nova-layout="ledger"] .nova-ui :is(
  .toutiao-card,
  .news-card-real,
  .post-feed .post,
  .official-insight-card,
  .official-video-card,
  .discover-match-card,
  .follow-topic-card,
  .news-history-card,
  .match-history-card,
  .entity-card
) {
  border: 1px solid var(--layout-hairline);
  border-radius: var(--ledger-radius-card);
  background: color-mix(in srgb, var(--layout-paper) 96%, transparent);
  box-shadow: var(--ledger-soft-shadow);
}

html[data-nova-layout="ledger"] .nova-ui :is(
  .toutiao-card,
  .news-card-real,
  .official-insight-card,
  .official-video-card,
  .discover-match-card,
  .follow-topic-card,
  .news-history-card,
  .match-history-card,
  .entity-card
) {
  overflow: hidden;
}

html[data-nova-layout="ledger"] .nova-ui .post-feed .post {
  margin: 14px 0;
  border-bottom: 1px solid var(--layout-hairline);
}

html[data-nova-layout="ledger"] .nova-route-data .data-hot-stage {
  width: min(calc(100% - 40px), var(--nova-content-max));
  margin: 22px auto 0;
  border: 1px solid var(--layout-hairline);
  border-radius: var(--ledger-radius-panel);
  background: transparent;
  box-shadow: var(--ledger-soft-shadow);
  overflow: hidden;
}

html[data-nova-layout="ledger"] .nova-route-data :is(.hot-card, .dm-item) {
  border-radius: var(--ledger-radius-card);
  background: var(--layout-paper);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--color-chrome) 6%, transparent);
}

html[data-nova-layout="ledger"] .nova-route-data .data-side2 {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 6px;
  padding: 9px;
  overflow-x: auto;
  border-right: 0;
  border-bottom: 1px solid var(--layout-hairline);
  background: color-mix(in srgb, var(--color-surface-alt) 52%, transparent);
  scrollbar-width: none;
}

html[data-nova-layout="ledger"] .nova-route-data .data-side2::-webkit-scrollbar {
  display: none;
}

html[data-nova-layout="ledger"] .nova-route-data .data-side2 .it {
  flex: 0 0 auto;
  min-width: 78px;
  min-height: var(--ledger-control-sm);
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--ledger-radius-control);
  font-family: var(--ledger-font-ui);
  font-size: var(--ledger-text-control);
  font-weight: var(--ledger-weight-control);
  line-height: 1.2;
  transition: color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

html[data-nova-layout="ledger"] .nova-route-data .data-side2 .it.active {
  color: var(--color-on-primary-strong);
  border-color: var(--color-primary-strong);
  background: var(--color-primary-strong);
  box-shadow: var(--ledger-active-shadow);
}

/* D：比赛详情沿用全部九章，只把它们排成真正的档案目录。 */
html[data-nova-layout="ledger"] .nova-ui .match-detail-page .mxd-cover-frame,
html[data-nova-layout="ledger"] .nova-ui .match-detail-page .mxd-index,
html[data-nova-layout="ledger"] .nova-ui .match-detail-page .mxd-section {
  box-shadow: var(--ledger-soft-shadow);
}

html[data-nova-layout="ledger"] .nova-ui .match-detail-page .mxd-cover-frame {
  border: 1px solid var(--layout-hairline);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 4%, color-mix(in srgb, var(--color-primary) 24%, transparent), transparent 32%),
    radial-gradient(circle at 4% 100%, color-mix(in srgb, var(--color-secondary) 18%, transparent), transparent 34%),
    linear-gradient(145deg, var(--color-chrome), var(--color-chrome-alt));
}

html[data-nova-layout="ledger"] .nova-ui .match-detail-page .mxd-cover-bar {
  border-bottom: 3px double color-mix(in srgb, var(--color-on-chrome) 22%, transparent);
}

html[data-nova-layout="ledger"] .nova-ui .match-detail-page .mxd-index {
  border: 1px solid var(--layout-hairline);
  border-radius: var(--ledger-radius-panel);
  background: color-mix(in srgb, var(--layout-paper) 96%, transparent);
}

html[data-nova-layout="ledger"] .nova-ui .match-detail-page .detail-tabs.mxd-chapters {
  gap: 7px;
  border: 0;
}

html[data-nova-layout="ledger"] .nova-ui .match-detail-page .detail-tabs .mxd-chapter {
  min-height: 62px;
  border: 1px solid var(--layout-hairline);
  border-radius: var(--ledger-radius-control);
  background: color-mix(in srgb, var(--color-surface-alt) 70%, var(--layout-paper));
}

html[data-nova-layout="ledger"] .nova-ui .match-detail-page .detail-tabs .mxd-chapter.active {
  color: var(--color-on-primary-strong);
  border-color: var(--color-primary-strong);
  background: var(--color-primary-strong);
  box-shadow: var(--ledger-active-shadow);
}

html[data-nova-layout="ledger"] .nova-ui .match-detail-page .mxd-section {
  border: 1px solid var(--layout-hairline);
  border-radius: var(--ledger-radius-panel);
  background: var(--layout-paper);
  overflow: hidden;
}

html[data-nova-layout="ledger"] .nova-ui .match-detail-page .mxd-section-head {
  border-bottom: 3px double var(--layout-hairline);
}

/* 世界杯资讯赛况：由旧版深色转播大屏收回到 D 的浅色资料卡。 */
html[data-nova-layout="ledger"] .nova-ui .nova-route-news .wc-info-hero {
  color: var(--layout-ink);
  --text: var(--color-text);
  --text2: var(--color-text-muted);
  margin-top: 18px;
  padding: clamp(16px, 1.5vw, 22px) 0 20px;
  border: 1px solid var(--layout-hairline);
  border-radius: var(--ledger-radius-panel);
  background-color: var(--layout-paper) !important;
  background-image: none !important;
  background-position: 0 0 !important;
  background-size: auto !important;
  box-shadow: var(--ledger-soft-shadow);
  overflow: hidden;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-info-top,
html[data-nova-layout="ledger"] .nova-route-news .wc-hero-panel {
  width: min(calc(100% - 36px), 1200px);
  margin-inline: auto;
  box-sizing: border-box;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-info-top {
  min-height: 58px;
  gap: 18px;
  padding: 0 0 15px;
  border-bottom: 3px double var(--layout-hairline);
}

html[data-nova-layout="ledger"] .nova-route-news .wc-info-top .trophy {
  width: 112px;
  flex: 0 0 112px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--color-primary-strong);
  font-size: 27px;
  text-align: left;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-info-top .trophy small {
  color: var(--color-text-muted);
  font-family: var(--layout-mono);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.12em;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-stages {
  align-self: center;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 500;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-stages::before {
  left: 4%;
  right: 4%;
  top: 5px;
  height: 1px;
  background: var(--layout-hairline);
}

html[data-nova-layout="ledger"] .nova-route-news .wc-stages .stg {
  color: var(--color-text-muted);
  opacity: 1;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-stages .dot {
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  margin-bottom: 7px;
  border: 2px solid var(--layout-hairline);
  background: var(--color-surface);
}

html[data-nova-layout="ledger"] .nova-route-news .wc-stages .stg.cur {
  color: var(--color-primary-strong);
  font-weight: 700;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-stages .stg.cur .dot {
  border-color: var(--color-primary-strong);
  background: var(--color-primary-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 18%, transparent);
}

html[data-nova-layout="ledger"] .nova-route-news .wc-hero-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-hm {
  min-width: 0;
  min-height: 106px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 15px;
  border: 1px solid var(--layout-faint-line);
  border-radius: var(--ledger-radius-card);
  background: color-mix(in srgb, var(--color-surface) 96%, var(--color-primary-soft));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--color-chrome) 5%, transparent);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-hm:last-child {
  border-bottom: 1px solid var(--layout-faint-line);
}

html[data-nova-layout="ledger"] .nova-route-news .wc-hm:hover {
  border-color: color-mix(in srgb, var(--color-primary-strong) 34%, var(--layout-hairline));
  box-shadow: var(--ledger-soft-shadow);
  transform: translateY(-1px);
}

html[data-nova-layout="ledger"] .nova-route-news .wc-hm:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
  outline-offset: 2px;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-hm .s {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  opacity: 1;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-hm .s .src {
  flex: 0 0 auto;
  padding: 3px 7px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--ledger-radius-pill);
  background: var(--color-surface-alt);
  font-size: 10px;
  line-height: 1.2;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-hm > .r {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text);
  font-size: 14px;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-hm .tm {
  min-width: 0;
  overflow: hidden;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-hm .tm.r {
  justify-content: flex-end;
  text-align: right;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-hm :is(.sc, .mid, .ji) {
  flex: 0 0 auto;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-hm .sc {
  margin: 0 4px;
  color: var(--layout-ink);
  font-size: 23px;
  font-weight: 700;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-hm .mid {
  margin-inline: 8px;
  color: var(--layout-ink);
  font-family: var(--font-score);
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-hm .ji {
  padding: 3px 7px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--ledger-radius-pill);
  background: var(--color-surface-alt);
  font-size: 10px;
  font-weight: 600;
}

html[data-nova-layout="ledger"] .nova-route-news :is(.wc-info-loading, .wc-info-empty) {
  min-height: 140px;
  color: var(--color-text);
}

html[data-nova-layout="ledger"] .nova-route-news .wc-info-empty span {
  color: var(--color-text-muted);
}

html[data-nova-layout="ledger"] .nova-ui .nova-route-news .wc-quick {
  gap: 8px;
  margin-top: 12px;
  padding: 9px max(9px, calc((100% - 1200px) / 2));
  border: 1px solid var(--layout-hairline);
  border-radius: var(--ledger-radius-card);
  background: var(--layout-paper);
  box-shadow: var(--ledger-soft-shadow);
}

html[data-nova-layout="ledger"] .nova-route-news .wc-quick .q {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 8px;
  color: var(--color-text);
  border: 1px solid var(--layout-faint-line);
  border-radius: var(--ledger-radius-control);
  background: var(--color-surface);
  font-size: 13px;
  font-weight: 600;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-quick .q:hover {
  color: var(--color-primary-strong);
  border-color: color-mix(in srgb, var(--color-primary-strong) 32%, var(--layout-hairline));
  background: color-mix(in srgb, var(--color-primary-soft) 52%, var(--color-surface));
  transform: translateY(-1px);
}

html[data-nova-layout="ledger"] .nova-route-news .wc-quick .q:active {
  background: var(--color-primary-soft);
  transform: translateY(0);
}

html[data-nova-layout="ledger"] .nova-route-news .wc-quick .q:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-primary) 32%, transparent);
  outline-offset: 1px;
}

html[data-nova-layout="ledger"] .nova-route-news .wc-quick .qi {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 9px;
  background: var(--color-primary-soft);
  font-size: 17px;
  line-height: 1;
}

html[data-nova-layout="ledger"] .nova-route-news #wc-news {
  margin-top: 12px;
  border-radius: var(--ledger-radius-panel);
  overflow: hidden;
}

@media (max-width: 700px) {
  html[data-nova-layout="ledger"] .nova-stage-main > em {
    display: none;
  }

  html[data-nova-layout="ledger"] .nova-ui .nova-route-news .wc-info-hero {
    margin-top: 10px;
    padding: 12px 0;
    border-radius: 15px;
  }

  html[data-nova-layout="ledger"] .nova-route-news .wc-info-top,
  html[data-nova-layout="ledger"] .nova-route-news .wc-hero-panel {
    width: calc(100% - 20px);
  }

  html[data-nova-layout="ledger"] .nova-route-news .wc-info-top {
    min-height: 0;
    display: block;
    padding-bottom: 11px;
  }

  html[data-nova-layout="ledger"] .nova-route-news .wc-info-top .trophy {
    width: auto;
    display: flex;
    gap: 7px;
    margin-bottom: 10px;
    font-size: 24px;
  }

  html[data-nova-layout="ledger"] .nova-route-news .wc-info-top .trophy small {
    font-size: 8px;
  }

  html[data-nova-layout="ledger"] .nova-route-news .wc-stages {
    width: 100%;
    font-size: 10px;
  }

  html[data-nova-layout="ledger"] .nova-route-news .wc-stages .dot {
    width: 8px;
    height: 8px;
    margin-bottom: 5px;
  }

  html[data-nova-layout="ledger"] .nova-route-news .wc-stages::before {
    top: 4px;
  }

  html[data-nova-layout="ledger"] .nova-route-news .wc-hero-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 10px;
  }

  html[data-nova-layout="ledger"] .nova-route-news .wc-hm {
    min-height: 92px;
    padding: 11px 12px;
    border-radius: 12px;
  }

  html[data-nova-layout="ledger"] .nova-route-news .wc-hm .s {
    margin-bottom: 8px;
    font-size: 10px;
  }

  html[data-nova-layout="ledger"] .nova-route-news .wc-hm .tm {
    gap: 4px;
    font-size: 13px;
  }

  html[data-nova-layout="ledger"] .nova-route-news .wc-hm .sc {
    margin-inline: 3px;
    font-size: 20px;
  }

  html[data-nova-layout="ledger"] .nova-route-news .wc-hm .mid {
    margin-inline: 5px;
    font-size: 16px;
  }

  html[data-nova-layout="ledger"] .nova-route-news .wc-hm .ji {
    padding-inline: 5px;
    font-size: 9px;
  }

  html[data-nova-layout="ledger"] .nova-ui .nova-route-news .wc-quick {
    gap: 2px;
    margin-top: 8px;
    padding: 6px;
    border-radius: 14px;
  }

  html[data-nova-layout="ledger"] .nova-route-news .wc-quick .q {
    min-height: 60px;
    flex-direction: column;
    gap: 3px;
    padding: 4px 0;
    border-radius: 10px;
    font-size: 11px;
  }

  html[data-nova-layout="ledger"] .nova-route-news .wc-quick .qi {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    border-radius: 8px;
    font-size: 15px;
  }

  html[data-nova-layout="ledger"] .nova-route-news #wc-news {
    margin-top: 8px;
    border-radius: 15px;
  }
}

/* 窄桌面在平板四列与常规桌面六列之间平滑过渡。 */
@media (min-width: 1041px) and (max-width: 1199px) {
  html[data-nova-layout="ledger"] .nova-route-data .dm-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* D 桌面壳层：正文先随窗口收窄，低于 1280px 才把左侧索引移到顶部。 */
@media (min-width: 1280px) {
  html[data-nova-layout="ledger"] {
    --ledger-rail-width: clamp(216px, 12vw, 256px);
    --ledger-shell-gutter: clamp(18px, 1.4vw, 36px);
    --nova-page-max: min(
      2520px,
      calc(
        100vw - var(--ledger-rail-width) - var(--ledger-shell-gutter) -
          var(--ledger-shell-gutter)
      )
    );
    --nova-content-max: min(
      2400px,
      calc(
        100vw - var(--ledger-rail-width) - var(--ledger-shell-gutter) -
          var(--ledger-shell-gutter) - 40px
      )
    );
    --nova-header-h: 0px;
  }

  html[data-nova-layout="ledger"] .nova-global-header {
    position: fixed;
    z-index: 900;
    inset: 0 auto 0 0;
    width: var(--ledger-rail-width);
    height: 100vh;
    height: 100dvh;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 0;
    overflow-y: auto;
  }

  html[data-nova-layout="ledger"] .nova-global-inner {
    width: 100%;
    min-height: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 26px clamp(18px, 1.45vw, 28px) 18px;
  }

  html[data-nova-layout="ledger"] .nova-brand {
    min-height: 78px;
    justify-self: auto;
    justify-content: flex-start;
    padding-bottom: 20px;
    border-bottom: 3px double rgba(255, 255, 255, 0.2);
  }

  html[data-nova-layout="ledger"] .nova-brand-copy b {
    font-family: var(--layout-serif);
    font-size: 21px;
    font-weight: 700;
  }

  html[data-nova-layout="ledger"] .nova-brand-copy small {
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.24em;
  }

  html[data-nova-layout="ledger"] .nova-global-nav {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 24px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
  }

  html[data-nova-layout="ledger"] .nova-global-nav button {
    min-width: 0;
    min-height: var(--ledger-control-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 9px 0 14px;
    color: rgba(255, 255, 255, 0.66);
    border: 1px solid transparent;
    border-radius: var(--ledger-radius-card);
    background: transparent;
    font-family: var(--ledger-font-ui);
    font-size: 14px;
    font-weight: var(--ledger-weight-control);
    line-height: 1.2;
    text-align: left;
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  }

  html[data-nova-layout="ledger"] .nova-global-nav button::after {
    content: "→";
    position: static;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.055);
  }

  html[data-nova-layout="ledger"] .nova-global-nav button:hover {
    color: var(--color-on-chrome);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(2px);
  }

  html[data-nova-layout="ledger"] .nova-global-nav button.active {
    color: var(--color-on-primary);
    border-color: color-mix(in srgb, var(--color-primary) 74%, white 26%);
    border-radius: var(--ledger-radius-card);
    background: var(--color-primary);
    box-shadow:
      0 10px 24px color-mix(in srgb, var(--color-primary) 20%, transparent),
      inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  }

  html[data-nova-layout="ledger"] .nova-global-nav button.active::after {
    color: var(--color-on-primary);
    border-color: color-mix(in srgb, var(--color-on-primary) 24%, transparent);
    background: color-mix(in srgb, var(--color-on-primary) 10%, transparent);
  }

  html[data-nova-layout="ledger"] .nova-global-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
  }

  html[data-nova-layout="ledger"] :is(.nova-search-button, .nova-language-button, .nova-settings-button) {
    min-width: 0;
    width: 100%;
    min-height: var(--ledger-control-lg);
    height: var(--ledger-control-lg);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 12px;
    border-radius: var(--ledger-radius-card);
    background: rgba(255, 255, 255, 0.055);
    font-family: var(--ledger-font-ui);
    font-size: 13px;
    font-weight: var(--ledger-weight-control);
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
  }

  html[data-nova-layout="ledger"] :is(.nova-search-button, .nova-language-button, .nova-settings-button):hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
  }

  html[data-nova-layout="ledger"] :is(.nova-search-button, .nova-language-button, .nova-settings-button):active,
  html[data-nova-layout="ledger"] :is(.nova-search-button, .nova-language-button, .nova-settings-button)[aria-expanded="true"] {
    border-color: color-mix(in srgb, var(--color-primary) 62%, white 18%);
    background: color-mix(in srgb, var(--color-primary) 18%, rgba(255, 255, 255, 0.08));
    transform: translateY(0);
  }

  html[data-nova-layout="ledger"] .nova-global-actions .nova-action-copy {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  html[data-nova-layout="ledger"] .nova-global-actions .nova-action-copy b {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.1;
  }

  html[data-nova-layout="ledger"] .nova-global-actions .nova-action-copy small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.52);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[data-nova-layout="ledger"] .nova-global-actions .nova-theme-dot {
    display: block;
    flex: 0 0 auto;
    margin-left: auto;
  }

  html[data-nova-layout="ledger"] .nova-account-slot {
    width: 100%;
    min-width: 0;
    margin-top: 2px;
  }

  html[data-nova-layout="ledger"] .nova-account-slot .account-trigger {
    width: 100%;
    max-width: none;
    min-height: var(--ledger-control-lg);
    height: var(--ledger-control-lg);
    justify-content: flex-start;
    border-radius: var(--ledger-radius-card);
    font-family: var(--ledger-font-ui);
    font-size: 13px;
    font-weight: var(--ledger-weight-control);
    line-height: 1.2;
    box-shadow: 0 10px 26px color-mix(in srgb, var(--color-primary) 17%, transparent);
  }

  html[data-nova-layout="ledger"] .nova-account-slot .account-trigger-name {
    font-size: 13px;
    font-weight: var(--ledger-weight-control);
  }

  html[data-nova-layout="ledger"] .nova-ui #app,
  html[data-nova-layout="ledger"] .site-announcement,
  html[data-nova-layout="ledger"] .site-rights {
    width: calc(100% - var(--ledger-rail-width));
    margin-left: var(--ledger-rail-width);
    box-sizing: border-box;
  }

  html[data-nova-layout="ledger"] .nova-ui #app {
    padding: clamp(20px, 1.5vw, 28px) var(--ledger-shell-gutter) 40px;
  }

  html[data-nova-layout="ledger"] .nova-ui .page.nova-page {
    width: min(100%, var(--nova-page-max));
    max-width: var(--nova-page-max);
    min-height: calc(100dvh - 48px);
  }

  html[data-nova-layout="ledger"] .site-announcement-inner {
    width: min(calc(100% - 36px), var(--nova-page-max));
  }

  html[data-nova-layout="ledger"] .nova-ui :is(.chat-input, .pd-cmt-bar) {
    left: var(--ledger-rail-width);
    right: 0;
    width: var(--nova-content-max);
    max-width: none;
    margin-inline: auto;
    transform: none;
  }
}

/* 真正宽屏才增加内容密度，避免 1280px 侧栏模式把卡片硬塞成八列。 */
@media (min-width: 1800px) {
  html[data-nova-layout="ledger"] .nova-stage-main {
    min-height: clamp(190px, 10vw, 260px);
  }

  html[data-nova-layout="ledger"] .nova-stage-main h1 {
    font-size: clamp(62px, 4vw, 86px);
  }

  html[data-nova-layout="ledger"] .nova-route-data .dm-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  html[data-nova-layout="ledger"] .nova-route-news .follow-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  html[data-nova-layout="ledger"] .nova-route-discover .official-watch-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  html[data-nova-layout="ledger"] .nova-route-discover .official-video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  html[data-nova-layout="ledger"] .nova-ui .overview-metric-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  html[data-nova-layout="ledger"] .nova-ui .mxd-match-fact-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  html[data-nova-layout="ledger"] .nova-ui .match-detail-page .stat-compare-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  html[data-nova-layout="ledger"] .nova-ui .match-detail-page .mxd-intel-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 2200px) {
  html[data-nova-layout="ledger"] .nova-route-data .dm-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  html[data-nova-layout="ledger"] .nova-route-news .follow-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  html[data-nova-layout="ledger"] .nova-route-discover .official-watch-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  html[data-nova-layout="ledger"] .nova-route-discover .official-video-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* D 正式版控件与文字层级：三档高度、四档字重，避免旧样式混用。 */
html[data-nova-layout="ledger"] .nova-ui :is(.nova-search-button, .nova-language-button, .nova-settings-button) {
  display: inline-flex;
  align-items: center;
  font-family: var(--ledger-font-ui);
  font-size: 13px;
  font-weight: var(--ledger-weight-control);
  line-height: 1.2;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

html[data-nova-layout="ledger"] .nova-ui .nova-action-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-nova-layout="ledger"] .nova-ui .nova-action-copy b {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
}

html[data-nova-layout="ledger"] .nova-ui .nova-action-copy small {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
}

html[data-nova-layout="ledger"] .nova-ui .nova-theme-dot {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-dot) 18%, transparent);
}

html[data-nova-layout="ledger"] .nova-ui :is(.nova-search-button, .nova-language-button, .nova-settings-button):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-primary) 70%, white 20%);
  outline-offset: 2px;
}

html[data-nova-layout="ledger"] .nova-ui .nova-account-slot .account-trigger {
  min-height: var(--ledger-control-lg);
  height: var(--ledger-control-lg);
  border-radius: var(--ledger-radius-card);
  font-family: var(--ledger-font-ui);
  font-size: 13px;
  font-weight: var(--ledger-weight-control);
  line-height: 1.2;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

html[data-nova-layout="ledger"] .nova-ui .nova-account-slot .account-trigger-name {
  font-size: 13px;
  font-weight: var(--ledger-weight-control);
}

html[data-nova-layout="ledger"] .nova-ui .nova-account-slot .account-guest-avatar svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

html[data-nova-layout="ledger"] .nova-ui .nova-account-slot .account-trigger:not(.guest) {
  color: var(--color-on-chrome);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: none;
}

html[data-nova-layout="ledger"] .nova-ui .nova-account-slot .account-trigger:not(.guest):hover,
html[data-nova-layout="ledger"] .nova-ui .nova-account-slot .account-trigger:not(.guest)[aria-expanded="true"] {
  color: var(--color-on-chrome);
  border-color: color-mix(in srgb, var(--color-primary) 58%, rgba(255, 255, 255, 0.2));
  background: color-mix(in srgb, var(--color-primary) 16%, rgba(255, 255, 255, 0.08));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--color-primary) 14%, transparent);
}

html[data-nova-layout="ledger"] .nova-ui .nova-account-slot .account-trigger:active {
  transform: translateY(1px);
}

/* 账户弹层保留键盘可见焦点，但使用内收细环，避免宽屏全局焦点环压住弹层边框。 */
html[data-nova-layout="ledger"] .nova-ui .account-menu-popover {
  font-family: var(--ledger-font-ui);
}

html[data-nova-layout="ledger"] .nova-ui .account-menu-popover [role="menuitem"]:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: -2px;
}

/* 宽而矮的桌面仍保留 44px 控件，只收紧侧栏留白，避免账号入口被推到视口外。 */
@media (min-width: 1280px) and (max-height: 560px) {
  html[data-nova-layout="ledger"] .nova-global-inner {
    padding-top: 10px;
    padding-bottom: 8px;
  }

  html[data-nova-layout="ledger"] .nova-brand {
    min-height: 48px;
    padding-bottom: 6px;
  }

  html[data-nova-layout="ledger"] .nova-global-nav {
    gap: 2px;
    margin-top: 6px;
    padding-top: 2px;
  }

  html[data-nova-layout="ledger"] .nova-global-actions {
    gap: 4px;
    padding-top: 6px;
  }

  html[data-nova-layout="ledger"] .nova-account-slot {
    margin-top: 0;
  }
}

html[data-nova-layout="ledger"] .nova-ui .league-tabs .year {
  min-height: var(--ledger-control-sm);
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--ledger-radius-control);
  font-family: var(--ledger-font-ui);
  font-size: 12px;
  font-weight: var(--ledger-weight-control);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

html[data-nova-layout="ledger"] .nova-ui .year-menu .ym-item {
  min-height: var(--ledger-control-md);
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: var(--ledger-font-ui);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

html[data-nova-layout="ledger"] .nova-ui .year-menu .ym-item.on {
  font-weight: var(--ledger-weight-control);
}

html[data-nova-layout="ledger"] .nova-ui :is(.home-region-chip, .home-country-chip) {
  min-height: var(--ledger-control-sm);
  padding: 0 12px;
  border-radius: var(--ledger-radius-pill);
  font-family: var(--ledger-font-ui);
  font-size: 12px;
  font-weight: var(--ledger-weight-control);
  line-height: 1.2;
}

html[data-nova-layout="ledger"] .nova-ui :is(.home-region-chip, .home-country-chip) small {
  font-size: 10px;
  font-weight: var(--ledger-weight-control);
}

html[data-nova-layout="ledger"] .nova-ui .home-comp-trigger {
  min-height: var(--ledger-control-lg);
  border-radius: var(--ledger-radius-control);
  font-family: var(--ledger-font-ui);
}

html[data-nova-layout="ledger"] .nova-ui :is(.home-comp-trigger b, .home-comp-option b) {
  font-size: 13px;
  font-weight: var(--ledger-weight-control);
}

html[data-nova-layout="ledger"] .nova-ui :is(.home-comp-trigger small, .home-comp-option small, .home-filter-meta, .home-comp-help) {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}

html[data-nova-layout="ledger"] .nova-ui .home-comp-close {
  width: var(--ledger-control-md);
  height: var(--ledger-control-md);
  border-radius: var(--ledger-radius-control);
  font-size: 22px;
  font-weight: 400;
}

html[data-nova-layout="ledger"] .nova-ui .home-comp-option {
  min-height: 52px;
  border-radius: var(--ledger-radius-control);
  font-family: var(--ledger-font-ui);
}

html[data-nova-layout="ledger"] .nova-route-data .data-search {
  min-height: var(--ledger-control-md);
  border-radius: var(--ledger-radius-control);
  font-family: var(--ledger-font-ui);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

html[data-nova-layout="ledger"] .nova-route-data .dm-group h4 {
  font-family: var(--layout-serif);
  font-size: 16px;
  font-weight: 700;
}

html[data-nova-layout="ledger"] .nova-route-data .dm-item .dm-nm,
html[data-nova-layout="ledger"] .nova-route-data .hot-card .dh-name {
  font-family: var(--ledger-font-ui);
  font-size: 13px;
  font-weight: var(--ledger-weight-control);
  line-height: 1.35;
}

html[data-nova-layout="ledger"] .nova-ui .mxd-context h1 {
  max-width: 620px;
  font-family: var(--layout-serif);
  font-size: clamp(40px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.08;
}

html[data-nova-layout="ledger"] .nova-ui .mxd-context > p {
  font-family: var(--ledger-font-ui);
  font-size: 12px;
  font-weight: 400;
}

html[data-nova-layout="ledger"] .nova-ui :is(.mxd-back, .mxd-state) {
  font-family: var(--ledger-font-ui);
  font-size: 12px;
  font-weight: var(--ledger-weight-control);
  line-height: 1.2;
}

html[data-nova-layout="ledger"] .nova-ui .mxd-back {
  min-height: var(--ledger-control-md);
  border-radius: var(--ledger-radius-control);
}

html[data-nova-layout="ledger"] .nova-ui .match-detail-page .detail-tabs .mxd-chapter {
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  padding: 8px;
  border-radius: var(--ledger-radius-control);
  font-family: var(--ledger-font-ui);
  font-size: 12px;
  font-weight: var(--ledger-weight-control);
  line-height: 1.2;
}

html[data-nova-layout="ledger"] .nova-ui .mxd-chapter-copy b {
  font-size: 12px;
  font-weight: var(--ledger-weight-control);
}

html[data-nova-layout="ledger"] .nova-ui .mxd-chapter-copy small {
  font-size: 9px;
  font-weight: 500;
}

html[data-nova-layout="ledger"] .nova-ui :is(.mxd-index-head h2, .mxd-section-head h3) {
  font-family: var(--layout-serif);
  font-weight: 700;
}

html[data-nova-layout="ledger"] .nova-ui :is(.mxd-index-head span, .mxd-section-head span) {
  font-weight: 700;
}

html[data-nova-layout="ledger"] .nova-ui :is(.mxd-index-head p, .mxd-section-head p) {
  font-size: 11px;
  font-weight: 400;
}

html[data-nova-layout="ledger"] .nova-ui :is(
  .nova-search-form button,
  .home-range-more button,
  .rank-load-more button,
  .feed-load-more button,
  .spl-retry,
  .live-source-empty button
) {
  min-height: var(--ledger-control-md);
  padding: 0 16px;
  border-radius: var(--ledger-radius-control);
  font-family: var(--ledger-font-ui);
  font-size: 13px;
  font-weight: var(--ledger-weight-control);
  line-height: 1.2;
}

html[data-nova-layout="ledger"] .nova-ui :is(.entry-auth-choice > button, .auth-submit) {
  min-height: var(--ledger-control-lg);
  border-radius: var(--ledger-radius-control);
  font-family: var(--ledger-font-ui);
  font-size: 14px;
  font-weight: var(--ledger-weight-control);
  line-height: 1.2;
}

/* ========================================================================== */
/* B · 时间轨道                                                               */
/* ========================================================================== */

html[data-nova-layout="orbit"] body.nova-ui {
  background:
    radial-gradient(circle at 50% -8%, color-mix(in srgb, var(--color-primary) 13%, transparent), transparent 35%),
    var(--color-bg);
}

html[data-nova-layout="orbit"] .nova-global-header {
  height: 84px;
  background: color-mix(in srgb, var(--color-chrome) 95%, transparent);
}

html[data-nova-layout="orbit"] .nova-global-inner {
  height: 84px;
}

html[data-nova-layout="orbit"] .nova-global-nav {
  align-items: center;
  gap: 13px;
}

html[data-nova-layout="orbit"] .nova-global-nav button {
  min-width: 52px;
  width: 52px;
  height: 52px;
  padding: 0;
  color: color-mix(in srgb, var(--color-on-chrome) 68%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 11px;
}

html[data-nova-layout="orbit"] .nova-global-nav button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-50%);
}

html[data-nova-layout="orbit"] .nova-global-nav button.active {
  color: var(--color-on-primary);
  border-color: var(--color-primary);
  background: var(--color-primary);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--color-primary) 12%, transparent);
}

html[data-nova-layout="orbit"] .nova-global-nav button.active::after {
  display: none;
}

html[data-nova-layout="orbit"] .nova-global-nav button.active::before {
  background: var(--color-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 18%, transparent);
}

html[data-nova-layout="orbit"] .nova-page-stage {
  min-height: 340px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 52%, color-mix(in srgb, var(--color-primary) 20%, transparent) 0 18%, transparent 18.4%),
    radial-gradient(circle at 50% 52%, transparent 0 31%, color-mix(in srgb, var(--color-primary) 22%, transparent) 31.2% 31.7%, transparent 32%),
    linear-gradient(135deg, var(--color-chrome), var(--color-chrome-alt));
}

html[data-nova-layout="orbit"] .nova-page-stage::before {
  right: 50%;
  bottom: -34px;
  width: 1px;
  height: 94px;
  border: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--color-primary) 60%, transparent);
  transform: none;
}

html[data-nova-layout="orbit"] .nova-stage-status {
  position: absolute;
  inset: 0 0 auto;
  justify-content: center;
  color: color-mix(in srgb, var(--color-on-chrome) 62%, transparent);
  font-family: var(--layout-mono);
  letter-spacing: 0.09em;
}

html[data-nova-layout="orbit"] .nova-stage-main {
  width: min(calc(100% - 40px), 820px);
  min-height: 260px;
  display: grid;
  place-items: center;
  padding-top: 30px;
}

html[data-nova-layout="orbit"] .nova-stage-main h1 {
  position: relative;
  z-index: 2;
  width: clamp(164px, 21vw, 230px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  color: var(--color-on-chrome);
  border: 1px solid color-mix(in srgb, var(--color-primary) 66%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-chrome) 80%, transparent);
  box-shadow:
    inset 0 0 0 10px color-mix(in srgb, var(--color-primary) 7%, transparent),
    0 24px 70px rgba(0, 0, 0, 0.2);
  font-size: clamp(26px, 3.1vw, 42px);
  line-height: 1.02;
  text-align: center;
}

html[data-nova-layout="orbit"] .nova-stage-main > em {
  right: auto;
  bottom: 6px;
  color: color-mix(in srgb, var(--color-on-chrome) 32%, transparent);
  font-family: var(--layout-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

html[data-nova-layout="orbit"] .nova-ui :is(
  .sub-tabs,
  .news-head,
  .disc-head,
  .data-top,
  .league-tabs,
  .detail-tabs,
  .team-news-bar
) {
  position: relative;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-nova-layout="orbit"] .nova-ui :is(
  .sub-tabs .tabs,
  .news-topnav,
  .disc-topnav,
  .league-tabs,
  .detail-tabs
) {
  justify-content: center;
  gap: 11px;
}

html[data-nova-layout="orbit"] .nova-ui :is(
  .sub-tabs .tab,
  .news-topnav .tab,
  .disc-topnav .tab,
  .league-tabs .tab,
  .detail-tabs .tab
) {
  position: relative;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--layout-hairline);
  border-radius: 999px;
  background: var(--color-surface);
}

html[data-nova-layout="orbit"] .nova-ui :is(
  .sub-tabs .tab,
  .news-topnav .tab,
  .disc-topnav .tab,
  .league-tabs .tab,
  .detail-tabs .tab
)::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--color-border);
}

html[data-nova-layout="orbit"] .nova-ui :is(
  .sub-tabs .tab.active,
  .news-topnav .tab.active,
  .disc-topnav .tab.active,
  .league-tabs .tab.active,
  .detail-tabs .tab.active
) {
  color: var(--color-on-primary);
  border-color: var(--color-primary);
  background: var(--color-primary);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

html[data-nova-layout="orbit"] .nova-ui :is(
  .sub-tabs .tab.active,
  .news-topnav .tab.active,
  .disc-topnav .tab.active,
  .league-tabs .tab.active,
  .detail-tabs .tab.active
)::before {
  background: currentColor;
}

/* 首页真实比赛成为纵向时间轨道。排序模式仍保留真实“赔率排序”标签，不伪装成时间。 */
html[data-nova-layout="orbit"] .nova-route-home .home-filter-panel {
  margin-top: 26px;
  border: 1px solid var(--layout-hairline);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

html[data-nova-layout="orbit"] .nova-route-home .match-list {
  position: relative;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

html[data-nova-layout="orbit"] .nova-ui .competition-group {
  position: relative;
  margin: 30px 0;
  padding: 0 22px 16px 144px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

html[data-nova-layout="orbit"] .nova-ui .competition-group::before {
  content: "";
  position: absolute;
  left: 104px;
  top: 18px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--color-primary), var(--color-border));
}

html[data-nova-layout="orbit"] .nova-ui .competition-head {
  position: relative;
  min-height: 64px;
  margin-bottom: 10px;
  padding: 13px 18px;
  border: 1px solid var(--layout-hairline);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

html[data-nova-layout="orbit"] .nova-ui .competition-head::before {
  content: "";
  position: absolute;
  left: -48px;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 4px solid var(--color-bg);
  border-radius: 50%;
  background: var(--color-primary-strong);
  box-shadow: 0 0 0 2px var(--color-primary-strong);
  transform: translateY(-50%);
}

html[data-nova-layout="orbit"] .nova-ui .competition-date,
html[data-nova-layout="orbit"] .nova-ui .date-head {
  position: relative;
  margin: 0 0 8px;
  padding: 8px 14px;
  color: var(--color-text-muted);
  border: 0;
  background: transparent;
  font-family: var(--layout-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

html[data-nova-layout="orbit"] .nova-ui .match-row {
  position: relative;
  min-height: 94px;
  margin: 9px 0;
  padding: 13px 17px;
  border: 1px solid var(--layout-hairline);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--color-chrome) 8%, transparent);
  overflow: visible;
}

html[data-nova-layout="orbit"] .nova-ui .match-row::before {
  content: "";
  position: absolute;
  left: -47px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 4px solid var(--color-bg);
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 0 2px var(--color-secondary);
  transform: translateY(-50%);
}

html[data-nova-layout="orbit"] .nova-ui .match-row::after {
  content: "";
  position: absolute;
  left: -29px;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--layout-hairline);
}

html[data-nova-layout="orbit"] .nova-ui .match-row:hover {
  background: color-mix(in srgb, var(--color-primary-soft) 48%, var(--color-surface));
  transform: translateX(4px);
}

html[data-nova-layout="orbit"] .nova-ui .match-row.row-live::before {
  background: var(--status-live);
  box-shadow:
    0 0 0 2px var(--status-live),
    0 0 0 9px color-mix(in srgb, var(--status-live) 13%, transparent);
}

html[data-nova-layout="orbit"] .nova-ui .match-row.row-live {
  border-color: color-mix(in srgb, var(--status-live) 42%, var(--color-border));
  background: color-mix(in srgb, var(--status-live) 7%, var(--color-surface));
}

html[data-nova-layout="orbit"] .nova-ui .match-row .score {
  color: var(--color-primary-strong);
  font-family: var(--layout-mono);
  font-size: 20px;
}

/* B：世界杯 104 场完整赛程直接进入同一条时间轨道。 */
html[data-nova-layout="orbit"] .nova-ui .games-list {
  position: relative;
  width: min(calc(100% - 40px), var(--nova-content-max));
  margin: 30px auto;
  padding: 0 22px 22px 144px;
  border: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
  overflow: visible;
}

html[data-nova-layout="orbit"] .nova-ui .games-list::before {
  content: "";
  position: absolute;
  left: 104px;
  top: 18px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(var(--color-primary), var(--color-border));
}

html[data-nova-layout="orbit"] .nova-ui .games-list > .real-note {
  position: relative;
  width: fit-content;
  min-height: 34px;
  margin: 0 0 18px;
  padding: 7px 15px;
  border: 1px solid var(--layout-hairline);
  border-radius: 999px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
}

html[data-nova-layout="orbit"] .nova-ui .gm-date {
  position: relative;
  margin: 22px 0 9px;
  padding: 9px 16px;
  color: var(--color-text-muted);
  border: 1px solid var(--layout-hairline);
  border-radius: 999px;
  background: var(--color-surface);
  box-shadow: 0 7px 20px color-mix(in srgb, var(--color-chrome) 7%, transparent);
  font-family: var(--layout-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
}

html[data-nova-layout="orbit"] .nova-ui .gm-date::before,
html[data-nova-layout="orbit"] .nova-ui .gm-row::before {
  content: "";
  position: absolute;
  left: -47px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 4px solid var(--color-bg);
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 0 2px var(--color-secondary);
  transform: translateY(-50%);
}

html[data-nova-layout="orbit"] .nova-ui .gm-date::before {
  width: 15px;
  height: 15px;
  background: var(--color-primary-strong);
  box-shadow: 0 0 0 2px var(--color-primary-strong);
}

html[data-nova-layout="orbit"] .nova-ui .gm-date::after,
html[data-nova-layout="orbit"] .nova-ui .gm-row::after {
  content: "";
  position: absolute;
  left: -29px;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--layout-hairline);
}

html[data-nova-layout="orbit"] .nova-ui .gm-row {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 52px;
  min-height: 94px;
  margin: 9px 0;
  padding: 13px 17px;
  gap: 16px;
  border: 1px solid var(--layout-hairline);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--color-chrome) 8%, transparent);
  box-sizing: border-box;
  overflow: visible;
  transition: background-color 160ms ease, transform 160ms ease;
}

html[data-nova-layout="orbit"] .nova-ui .gm-row:hover {
  background: color-mix(in srgb, var(--color-primary-soft) 48%, var(--color-surface));
  transform: translateX(4px);
}

html[data-nova-layout="orbit"] .nova-ui .gm-l {
  display: flex;
  width: auto;
  min-width: 0;
  padding-right: 14px;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--layout-hairline);
  box-sizing: border-box;
}

html[data-nova-layout="orbit"] .nova-ui .gm-l .tm2 {
  font-family: var(--layout-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

html[data-nova-layout="orbit"] .nova-ui .gm-teams {
  min-width: 0;
  justify-content: center;
}

html[data-nova-layout="orbit"] .nova-ui .gm-teams .gm-tm {
  min-width: 0;
}

html[data-nova-layout="orbit"] .nova-ui .gm-sc {
  width: auto;
  min-width: 0;
  justify-content: center;
  color: var(--color-primary-strong);
  font-family: var(--layout-mono);
  font-size: 18px;
  font-weight: 800;
}

html[data-nova-layout="orbit"] .nova-ui .gm-row.row-delayed::before {
  background: var(--color-text-muted);
  box-shadow: 0 0 0 2px var(--color-text-muted);
}

/* B：资讯/社区/历史沿时间信号排列；非时间型数据继续使用原网格/表格。 */
html[data-nova-layout="orbit"] .nova-ui :is(
  .toutiao-list,
  .post-feed,
  .official-insight-list,
  .news-history-list,
  .match-history-list
) {
  position: relative;
  width: min(calc(100% - 40px), var(--nova-content-max));
  margin-inline: auto;
  padding-left: 72px;
  box-sizing: border-box;
}

html[data-nova-layout="orbit"] .nova-ui :is(
  .toutiao-list,
  .post-feed,
  .official-insight-list,
  .news-history-list,
  .match-history-list
)::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 20px;
  bottom: 26px;
  width: 2px;
  background: linear-gradient(var(--color-primary), var(--color-border));
}

html[data-nova-layout="orbit"] .nova-ui :is(
  .toutiao-card,
  .news-card-real,
  .post-feed .post,
  .official-insight-card,
  .news-history-card,
  .match-history-card
) {
  position: relative;
  margin-block: 12px;
  border: 1px solid var(--layout-hairline);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  overflow: visible;
}

html[data-nova-layout="orbit"] .nova-ui :is(
  .toutiao-card,
  .news-card-real,
  .post-feed .post,
  .official-insight-card,
  .news-history-card,
  .match-history-card
)::before {
  content: "";
  position: absolute;
  left: -51px;
  top: 28px;
  width: 12px;
  height: 12px;
  border: 4px solid var(--color-bg);
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 0 2px var(--color-secondary);
}

html[data-nova-layout="orbit"] .nova-route-discover .discover-real-section,
html[data-nova-layout="orbit"] .nova-route-data .data-body2,
html[data-nova-layout="orbit"] .nova-ui .entity-section {
  position: relative;
  border: 1px solid var(--layout-hairline);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

html[data-nova-layout="orbit"] .nova-route-data .data-hot-stage {
  width: min(calc(100% - 40px), var(--nova-content-max));
  margin: 24px auto;
  border: 1px solid var(--layout-hairline);
  border-radius: 22px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

html[data-nova-layout="orbit"] .nova-route-data .hot-card {
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--color-primary) 8%, transparent);
}

/* B：比赛九栏目作为环形节点，仍保持原按钮、原 onclick 与覆盖驱动显隐。 */
html[data-nova-layout="orbit"] .nova-ui .match-detail-page .mxd-cover-frame {
  border-radius: 28px;
}

html[data-nova-layout="orbit"] .nova-ui .match-detail-page .mxd-index {
  position: relative;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
}

html[data-nova-layout="orbit"] .nova-ui .match-detail-page .detail-tabs.mxd-chapters {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

html[data-nova-layout="orbit"] .nova-ui .match-detail-page .detail-tabs .mxd-chapter {
  aspect-ratio: 1.45;
  min-height: 78px;
  border: 1px solid var(--layout-hairline);
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color-chrome) 8%, transparent);
}

html[data-nova-layout="orbit"] .nova-ui .match-detail-page .detail-tabs .mxd-chapter::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
}

html[data-nova-layout="orbit"] .nova-ui .match-detail-page .detail-tabs .mxd-chapter.active {
  color: var(--color-on-primary);
  border-color: var(--color-primary);
  background: var(--color-primary);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

html[data-nova-layout="orbit"] .nova-ui .match-detail-page .mxd-body {
  position: relative;
}

html[data-nova-layout="orbit"] .nova-ui .match-detail-page .mxd-body::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--color-primary), var(--color-border));
}

html[data-nova-layout="orbit"] .nova-ui .match-detail-page .mxd-section {
  position: relative;
  margin-left: 66px;
  border-radius: 22px;
}

html[data-nova-layout="orbit"] .nova-ui .match-detail-page .mxd-section::before {
  content: "";
  position: absolute;
  left: -49px;
  top: 30px;
  width: 13px;
  height: 13px;
  border: 4px solid var(--color-bg);
  border-radius: 50%;
  background: var(--color-primary-strong);
  box-shadow: 0 0 0 2px var(--color-primary-strong);
}

/* ---------- 窄桌面 / 平板：低于 1280px 才收回侧栏，并延续同一套圆润控件语言 ---------- */
@media (max-width: 1279px) {
  html[data-nova-layout="ledger"] {
    --nova-header-h: 72px;
  }

  html[data-nova-layout="ledger"] .nova-global-header {
    position: sticky;
    width: 100%;
    height: var(--nova-header-h);
    border-right: 0;
    border-bottom: 3px double rgba(255, 255, 255, 0.2);
  }

  html[data-nova-layout="ledger"] .nova-global-inner {
    display: grid;
    grid-template-columns: clamp(144px, 15vw, 176px) minmax(300px, 1fr) auto;
    gap: clamp(10px, 1.5vw, 20px);
  }

  html[data-nova-layout="ledger"] .nova-brand {
    min-height: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  html[data-nova-layout="ledger"] .nova-brand-copy b {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.07em;
  }

  html[data-nova-layout="ledger"] .nova-brand-copy small {
    font-size: 8px;
    font-weight: 500;
  }

  html[data-nova-layout="ledger"] .nova-global-nav {
    height: var(--ledger-control-lg);
    flex-direction: row;
    align-items: center;
    align-self: center;
    gap: 2px;
    margin-top: 0;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
  }

  html[data-nova-layout="ledger"] .nova-global-nav::before {
    display: none;
  }

  html[data-nova-layout="ledger"] .nova-global-nav button {
    min-width: 64px;
    min-height: var(--ledger-control-sm);
    height: var(--ledger-control-sm);
    padding: 0 clamp(10px, 1vw, 15px);
    color: rgba(255, 255, 255, 0.62);
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transition:
      color 150ms ease,
      border-color 150ms ease,
      background-color 150ms ease,
      box-shadow 150ms ease,
      transform 150ms ease;
  }

  html[data-nova-layout="ledger"] .nova-global-nav button::after {
    display: none;
  }

  html[data-nova-layout="ledger"] .nova-global-nav button:hover {
    color: var(--color-on-chrome);
    background: rgba(255, 255, 255, 0.08);
  }

  html[data-nova-layout="ledger"] .nova-global-nav button:active {
    transform: translateY(1px);
  }

  html[data-nova-layout="ledger"] .nova-global-nav button.active {
    color: var(--color-on-primary);
    border-color: color-mix(in srgb, var(--color-primary) 72%, white 18%);
    background: var(--color-primary);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--color-primary) 20%, transparent);
  }

  html[data-nova-layout="ledger"] .nova-global-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    padding-top: 0;
  }

  html[data-nova-layout="ledger"] .nova-global-actions::before {
    display: none;
  }

  html[data-nova-layout="ledger"] :is(.nova-search-button, .nova-language-button, .nova-settings-button) {
    min-width: 0;
    width: auto;
    min-height: var(--ledger-control-lg);
    height: var(--ledger-control-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
  }

  html[data-nova-layout="ledger"] :is(.nova-search-button, .nova-language-button, .nova-settings-button):hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
  }

  html[data-nova-layout="ledger"] :is(.nova-search-button, .nova-language-button, .nova-settings-button):active,
  html[data-nova-layout="ledger"] :is(.nova-search-button, .nova-language-button, .nova-settings-button)[aria-expanded="true"] {
    border-color: color-mix(in srgb, var(--color-primary) 60%, white 18%);
    background: color-mix(in srgb, var(--color-primary) 17%, rgba(255, 255, 255, 0.08));
    transform: translateY(0);
  }

  html[data-nova-layout="ledger"] .nova-search-button {
    min-width: 88px;
  }

  html[data-nova-layout="ledger"] .nova-language-button {
    min-width: 104px;
  }

  html[data-nova-layout="ledger"] .nova-settings-button {
    min-width: 102px;
  }

  html[data-nova-layout="ledger"] .nova-global-actions .nova-action-copy {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
  }

  html[data-nova-layout="ledger"] .nova-global-actions .nova-action-copy small {
    display: none;
  }

  html[data-nova-layout="ledger"] .nova-global-actions .nova-theme-dot {
    display: block;
    margin-left: 1px;
  }

  html[data-nova-layout="ledger"] .nova-account-slot {
    min-width: 118px;
  }

  html[data-nova-layout="ledger"] .nova-account-slot .account-trigger {
    min-height: var(--ledger-control-lg);
    height: var(--ledger-control-lg);
    border-radius: 14px;
  }

  html[data-nova-layout="ledger"] .nova-ui #app,
  html[data-nova-layout="ledger"] .site-announcement,
  html[data-nova-layout="ledger"] .site-rights {
    width: 100%;
    margin-left: 0;
  }

  html[data-nova-layout="ledger"] .nova-ui .page.nova-page {
    width: min(calc(100% - 24px), var(--nova-page-max));
    margin: 12px auto 28px;
  }

  html[data-nova-layout="orbit"] .nova-global-header,
  html[data-nova-layout="orbit"] .nova-global-inner {
    height: 76px;
  }

  html[data-nova-layout="orbit"] .nova-global-nav {
    gap: 7px;
  }

  html[data-nova-layout="orbit"] .nova-global-nav button {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
}

/* 平板与窄窗口：频道仍在顶部，搜索/语言改成等大的圆形图标入口。 */
@media (min-width: 701px) and (max-width: 899px) {
  html[data-nova-layout="ledger"] .nova-global-inner {
    width: calc(100% - 20px);
    grid-template-columns: 120px minmax(230px, 1fr) auto;
    gap: 8px;
  }

  html[data-nova-layout="ledger"] .nova-brand-symbol {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  html[data-nova-layout="ledger"] .nova-brand-copy b {
    font-size: 14px;
  }

  html[data-nova-layout="ledger"] .nova-brand-copy small {
    display: none;
  }

  html[data-nova-layout="ledger"] .nova-global-nav {
    width: 100%;
    min-width: 0;
    padding: 3px;
    border-radius: 15px;
  }

  html[data-nova-layout="ledger"] .nova-global-nav button {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 5px;
    border-radius: 11px;
    font-size: 12px;
  }

  html[data-nova-layout="ledger"] :is(.nova-search-button, .nova-language-button, .nova-settings-button) {
    min-width: var(--ledger-control-lg);
    width: var(--ledger-control-lg);
    padding: 0;
    border-radius: var(--ledger-radius-pill);
  }

  html[data-nova-layout="ledger"] .nova-global-actions .nova-action-copy,
  html[data-nova-layout="ledger"] .nova-global-actions .nova-theme-dot {
    display: none;
  }

  html[data-nova-layout="ledger"] .nova-account-slot {
    min-width: 0;
  }

  html[data-nova-layout="ledger"] .nova-account-slot .account-trigger.guest {
    min-width: 108px;
    width: 108px;
    padding-inline: 13px;
    justify-content: center;
    border-radius: var(--ledger-radius-pill);
  }

  html[data-nova-layout="ledger"] .nova-account-slot .account-trigger.guest .account-guest-avatar {
    display: none;
  }

  html[data-nova-layout="ledger"][data-locale="en"] .nova-account-slot .account-trigger.guest .account-trigger-name {
    display: none;
  }

  html[data-nova-layout="ledger"][data-locale="en"] .nova-account-slot .account-trigger.guest .account-trigger-short {
    display: inline;
  }

  html[data-nova-layout="ledger"] .nova-account-slot .account-trigger:not(.guest) {
    min-width: var(--ledger-control-lg);
    width: var(--ledger-control-lg);
    padding: 5px;
    justify-content: center;
    border-radius: var(--ledger-radius-pill);
  }

  html[data-nova-layout="ledger"] .nova-account-slot .account-trigger:not(.guest) :is(.account-trigger-name, .account-trigger-caret) {
    display: none;
  }
}

/* ---------- 手机：D 折叠侧索引；旧候选样式保持不可启用 ---------- */
@media (max-width: 700px) {
  html[data-nova-layout="ledger"] {
    --nova-header-h: calc(64px + env(safe-area-inset-top));
  }

  html[data-nova-layout="ledger"] .nova-global-header {
    height: var(--nova-header-h);
  }

  html[data-nova-layout="ledger"] .nova-global-inner {
    width: calc(100% - 20px);
    height: 64px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  html[data-nova-layout="ledger"] .nova-brand {
    min-width: 0;
    gap: 8px;
  }

  html[data-nova-layout="ledger"] .nova-brand-copy b {
    font-size: 14px;
    font-weight: 700;
  }

  html[data-nova-layout="ledger"] .nova-brand-copy small {
    display: none;
  }

  html[data-nova-layout="ledger"] .nova-global-actions {
    gap: 6px;
  }

  html[data-nova-layout="ledger"] :is(.nova-search-button, .nova-language-button, .nova-settings-button) {
    min-width: var(--ledger-control-md);
    width: var(--ledger-control-md);
    min-height: var(--ledger-control-md);
    height: var(--ledger-control-md);
    display: inline-flex;
    padding: 0;
    border-radius: var(--ledger-radius-pill);
  }

  html[data-nova-layout="ledger"] .nova-global-actions .nova-action-copy,
  html[data-nova-layout="ledger"] .nova-global-actions .nova-theme-dot {
    display: none;
  }

  html[data-nova-layout="ledger"] .nova-ui .nova-account-slot {
    min-width: 0;
  }

  html[data-nova-layout="ledger"] .nova-ui .nova-account-slot .account-trigger {
    min-height: var(--ledger-control-md);
    height: var(--ledger-control-md);
    border-radius: var(--ledger-radius-pill);
  }

  html[data-nova-layout="ledger"] .nova-ui .nova-account-slot .account-trigger.guest {
    min-width: 88px;
    width: 88px;
    max-width: 88px;
    padding: 0 12px;
    justify-content: center;
  }

  html[data-nova-layout="ledger"] .nova-ui .nova-account-slot .account-trigger.guest .account-guest-avatar {
    display: none;
  }

  html[data-nova-layout="ledger"] .nova-ui .nova-account-slot .account-trigger.guest .account-trigger-name {
    display: inline;
    font-size: 12px;
    font-weight: 600;
  }

  html[data-nova-layout="ledger"][data-locale="en"] .nova-ui .nova-account-slot .account-trigger.guest .account-trigger-name {
    display: none;
  }

  html[data-nova-layout="ledger"][data-locale="en"] .nova-ui .nova-account-slot .account-trigger.guest .account-trigger-short {
    display: inline;
  }

  html[data-nova-layout="ledger"] .nova-ui .nova-account-slot .account-trigger:not(.guest) {
    min-width: var(--ledger-control-md);
    width: var(--ledger-control-md);
    max-width: var(--ledger-control-md);
    padding: 5px;
    justify-content: center;
  }

  html[data-nova-layout="ledger"] .nova-ui .nova-account-slot .account-trigger:not(.guest) :is(.account-trigger-name, .account-trigger-caret) {
    display: none;
  }

  html[data-nova-layout="ledger"] .nova-ui .page.nova-page {
    width: 100%;
    margin: 0;
    border-radius: 0;
    background:
      linear-gradient(90deg, transparent 0 20px, color-mix(in srgb, var(--status-live) 12%, transparent) 20px 21px, transparent 21px),
      var(--layout-paper);
    box-shadow: none;
  }

  html[data-nova-layout="ledger"] .nova-page-stage,
  html[data-nova-layout="ledger"] .nova-ui .nova-route-league > .league-hero:first-child {
    border-radius: 0;
  }

  html[data-nova-layout="ledger"] .nova-stage-main {
    min-height: 148px;
    padding-right: 20px;
  }

  html[data-nova-layout="ledger"] .nova-stage-main h1 {
    font-size: 34px;
  }

  html[data-nova-layout="ledger"] .nova-ui :is(
    .sub-tabs .tab,
    .news-topnav .tab,
    .disc-topnav .tab,
    .league-tabs .tab,
    .detail-tabs:not(.mxd-chapters) .tab,
    .league-tabs .year,
    .home-region-chip,
    .home-country-chip,
    .nova-route-data .data-side2 .it
  ) {
    min-height: var(--ledger-control-lg);
  }

  html[data-nova-layout="ledger"] .nova-ui .competition-group {
    margin: 10px 8px;
  }

  html[data-nova-layout="ledger"] .nova-ui .competition-head::before,
  html[data-nova-layout="ledger"] .nova-route-home .home-filter-panel::before {
    display: none;
  }

  html[data-nova-layout="ledger"] .nova-ui .match-row {
    min-height: 106px;
  }

  html[data-nova-layout="ledger"] .nova-ui .match-row .left-col {
    width: 66px;
    padding: 10px 7px;
  }

  html[data-nova-layout="ledger"] .nova-ui .match-row .mid-col {
    padding: 10px 7px;
  }

  html[data-nova-layout="ledger"] .nova-ui .match-row .right-col {
    width: 54px;
    padding: 10px 5px;
  }

  html[data-nova-layout="ledger"] .nova-ui .match-row .score {
    min-width: 38px;
    font-size: 16px;
  }

  html[data-nova-layout="ledger"] .nova-ui .games-list {
    width: calc(100% - 16px);
    margin: 10px 8px 20px;
    border-radius: 15px;
  }

  html[data-nova-layout="ledger"] .nova-ui .gm-row {
    grid-template-columns: 66px minmax(0, 1fr) 42px;
    min-height: 104px;
    margin-inline: 7px;
    border-radius: 11px;
  }

  html[data-nova-layout="ledger"] .nova-ui .gm-l {
    padding: 10px 7px;
  }

  html[data-nova-layout="ledger"] .nova-ui .gm-l .stg {
    font-size: 11px;
  }

  html[data-nova-layout="ledger"] .nova-ui .gm-teams {
    padding: 10px 8px;
    font-size: 13px;
  }

  html[data-nova-layout="ledger"] .nova-ui .gm-sc {
    padding: 10px 6px;
    font-size: 15px;
  }

  html[data-nova-layout="ledger"] .nova-ui :is(
    .toutiao-list,
    .post-feed,
    .official-insight-list,
    .official-video-grid,
    .follow-layout,
    .data-body2,
    .entity-body,
    .news-read-body,
    .account-history-body
  ) {
    width: 100%;
  }

  html[data-nova-layout="ledger"] .nova-ui .match-detail-page .detail-tabs.mxd-chapters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html[data-nova-layout="ledger"] .nova-ui .match-detail-page :is(.mxd-cover-frame, .mxd-index, .mxd-section) {
    border-radius: 15px;
  }

  html[data-nova-layout="orbit"] {
    --nova-header-h: calc(60px + env(safe-area-inset-top));
  }

  html[data-nova-layout="orbit"] .nova-global-header {
    height: var(--nova-header-h);
  }

  html[data-nova-layout="orbit"] .nova-global-inner {
    height: 60px;
  }

  html[data-nova-layout="orbit"] .nova-page-stage {
    min-height: 268px;
  }

  html[data-nova-layout="orbit"] .nova-stage-main {
    min-height: 214px;
  }

  html[data-nova-layout="orbit"] .nova-stage-main h1 {
    width: 148px;
    font-size: 25px;
  }

  html[data-nova-layout="orbit"] .nova-ui :is(
    .sub-tabs .tabs,
    .news-topnav,
    .disc-topnav,
    .league-tabs,
    .detail-tabs
  ) {
    justify-content: flex-start;
    gap: 7px;
  }

  html[data-nova-layout="orbit"] .nova-route-home .home-filter-panel {
    width: calc(100% - 16px);
  }

  html[data-nova-layout="orbit"] .nova-route-home .match-list {
    width: 100%;
  }

  html[data-nova-layout="orbit"] .nova-ui .competition-group {
    margin: 20px 0;
    padding: 0 10px 12px 52px;
  }

  html[data-nova-layout="orbit"] .nova-ui .competition-group::before {
    left: 27px;
  }

  html[data-nova-layout="orbit"] .nova-ui .competition-head::before {
    left: -35px;
  }

  html[data-nova-layout="orbit"] .nova-ui .match-row {
    min-height: 106px;
    padding: 10px 8px;
    border-radius: 14px;
  }

  html[data-nova-layout="orbit"] .nova-ui .match-row::before {
    left: -34px;
  }

  html[data-nova-layout="orbit"] .nova-ui .match-row::after {
    left: -17px;
    width: 17px;
  }

  html[data-nova-layout="orbit"] .nova-ui .match-row:hover {
    transform: none;
  }

  html[data-nova-layout="orbit"] .nova-ui .games-list {
    width: 100%;
    margin: 20px 0;
    padding: 0 10px 18px 52px;
  }

  html[data-nova-layout="orbit"] .nova-ui .games-list::before {
    left: 27px;
  }

  html[data-nova-layout="orbit"] .nova-ui .games-list > .real-note {
    width: calc(100% - 4px);
    height: auto;
    border-radius: 14px;
  }

  html[data-nova-layout="orbit"] .nova-ui .gm-date,
  html[data-nova-layout="orbit"] .nova-ui .gm-row {
    border-radius: 14px;
  }

  html[data-nova-layout="orbit"] .nova-ui .gm-date::before,
  html[data-nova-layout="orbit"] .nova-ui .gm-row::before {
    left: -34px;
  }

  html[data-nova-layout="orbit"] .nova-ui .gm-date::after,
  html[data-nova-layout="orbit"] .nova-ui .gm-row::after {
    left: -17px;
    width: 17px;
  }

  html[data-nova-layout="orbit"] .nova-ui .gm-row {
    grid-template-columns: 68px minmax(0, 1fr) 35px;
    min-height: 104px;
    padding: 10px 8px;
    gap: 7px;
  }

  html[data-nova-layout="orbit"] .nova-ui .gm-row:hover {
    transform: none;
  }

  html[data-nova-layout="orbit"] .nova-ui .gm-l {
    padding-right: 7px;
  }

  html[data-nova-layout="orbit"] .nova-ui .gm-l .stg {
    font-size: 11px;
  }

  html[data-nova-layout="orbit"] .nova-ui .gm-teams {
    font-size: 13px;
  }

  html[data-nova-layout="orbit"] .nova-ui .gm-sc {
    font-size: 15px;
  }

  html[data-nova-layout="orbit"] .nova-ui :is(
    .toutiao-list,
    .post-feed,
    .official-insight-list,
    .news-history-list,
    .match-history-list
  ) {
    width: 100%;
    padding-left: 48px;
  }

  html[data-nova-layout="orbit"] .nova-ui :is(
    .toutiao-list,
    .post-feed,
    .official-insight-list,
    .news-history-list,
    .match-history-list
  )::before {
    left: 22px;
  }

  html[data-nova-layout="orbit"] .nova-ui :is(
    .toutiao-card,
    .news-card-real,
    .post-feed .post,
    .official-insight-card,
    .news-history-card,
    .match-history-card
  )::before {
    left: -33px;
  }

  html[data-nova-layout="orbit"] .nova-ui .match-detail-page .detail-tabs.mxd-chapters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  html[data-nova-layout="orbit"] .nova-ui .match-detail-page .detail-tabs .mxd-chapter {
    aspect-ratio: auto;
    min-height: 56px;
    border-radius: 999px;
  }

  html[data-nova-layout="orbit"] .nova-ui .match-detail-page .mxd-body::before {
    left: 15px;
  }

  html[data-nova-layout="orbit"] .nova-ui .match-detail-page .mxd-section {
    margin-left: 38px;
  }

  html[data-nova-layout="orbit"] .nova-ui .match-detail-page .mxd-section::before {
    left: -31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-nova-layout] *,
  html[data-nova-layout] *::before,
  html[data-nova-layout] *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ========================================================================== */
/* D · 顶级频道主题图与主页长列表氛围                                         */
/* 四个频道各有足球语义配图；标题固定在左侧安全区，图片主体保留在右侧。         */
/* ========================================================================== */

html[data-nova-layout="ledger"] .nova-ui .nova-route-home {
  --nova-channel-wide: var(--theme-channel-matches-wide);
  --nova-channel-portrait: var(--theme-channel-matches-portrait);
  --nova-channel-position-wide: center;
  --nova-channel-position-portrait: center;
}

html[data-nova-layout="ledger"] .nova-ui .nova-route-discover {
  --nova-channel-wide: var(--theme-channel-discover-wide);
  --nova-channel-portrait: var(--theme-channel-discover-portrait);
  --nova-channel-position-wide: center;
  --nova-channel-position-portrait: center;
}

html[data-nova-layout="ledger"] .nova-ui .nova-route-news {
  --nova-channel-wide: var(--theme-channel-news-wide);
  --nova-channel-portrait: var(--theme-channel-news-portrait);
  --nova-channel-position-wide: center;
  --nova-channel-position-portrait: center;
}

html[data-nova-layout="ledger"] .nova-ui .nova-route-data {
  --nova-channel-wide: var(--theme-channel-data-wide);
  --nova-channel-portrait: var(--theme-channel-data-portrait);
  --nova-channel-position-wide: center;
  --nova-channel-position-portrait: center;
}

html[data-nova-layout="ledger"] .nova-ui :is(
  .nova-route-home,
  .nova-route-discover,
  .nova-route-news,
  .nova-route-data
) > .nova-page-stage {
  isolation: isolate;
  background-color: var(--layout-paper);
  background-image:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--layout-paper) 98%, transparent) 0%,
      color-mix(in srgb, var(--layout-paper) 96%, transparent) 38%,
      color-mix(in srgb, var(--layout-paper) 74%, transparent) 52%,
      color-mix(in srgb, var(--layout-paper) 8%, transparent) 100%
    ),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--color-primary) 16%, transparent) 46%,
      transparent 78%
    ),
    var(--nova-channel-wide);
  background-position: center, center, var(--nova-channel-position-wide);
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--layout-ink) 8%, transparent),
    inset 0 -32px 52px color-mix(in srgb, var(--layout-paper) 26%, transparent);
}

html[data-nova-layout="ledger"] .nova-ui :is(
  .nova-route-home,
  .nova-route-discover,
  .nova-route-news,
  .nova-route-data
) > .nova-page-stage .nova-stage-status {
  background: color-mix(in srgb, var(--layout-paper) 52%, transparent);
}

@media (min-width: 701px) {
  html[data-nova-layout="ledger"] .nova-ui :is(
    .nova-route-home,
    .nova-route-discover,
    .nova-route-news,
    .nova-route-data
  ) > .nova-page-stage .nova-stage-main {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: max-content;
    align-content: center;
    row-gap: 8px;
    padding-right: 42%;
  }

  html[data-nova-layout="ledger"] .nova-ui :is(
    .nova-route-home,
    .nova-route-discover,
    .nova-route-news,
    .nova-route-data
  ) > .nova-page-stage .nova-stage-main > div {
    grid-row: 2;
  }

  html[data-nova-layout="ledger"] .nova-ui :is(
    .nova-route-home,
    .nova-route-discover,
    .nova-route-news,
    .nova-route-data
  ) > .nova-page-stage .nova-stage-main > em {
    position: static;
    grid-row: 1;
    justify-self: start;
    max-width: 100%;
    overflow: hidden;
    color: color-mix(in srgb, var(--layout-ink) 16%, var(--layout-paper));
    font-family: var(--layout-serif);
    font-size: clamp(28px, 3.1vw, 50px);
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-shadow: none;
    filter: none;
    opacity: 1;
    transform: none;
    mix-blend-mode: normal;
  }
}

/* 图片只在赛事卡之间和页面边缘透出；比分、球队、时间仍在高不透明纸面上。 */
html[data-nova-layout="ledger"] .nova-ui .nova-route-home > #home-list.match-list {
  position: relative;
  isolation: isolate;
  background: var(--layout-paper);
}

html[data-nova-layout="ledger"] .nova-ui .nova-route-home > #home-list.match-list::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--theme-channel-matches-wide);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(0.5) contrast(0.9);
  opacity: 0.085;
}

html[data-nova-layout="ledger"] .nova-ui .nova-route-home > #home-list.match-list > * {
  position: relative;
  z-index: 1;
}

html[data-nova-layout="ledger"] .nova-ui .nova-route-home > #home-list.match-list > .competition-group {
  background: color-mix(in srgb, var(--layout-paper) 96%, transparent);
}

/*
 * 每个路由都继承当前主题及所属频道的正文场景。频道图作为一张固定在
 * 视口的连续画布，页面纸张以半透明层叠加；不再把同一张图以两个有硬边的
 * 矩形盖章错位拼接。固定画布由标准 position: fixed 伪元素承载，不使用
 * iOS Safari 长期不稳定的 background-attachment: fixed。
 */
html[data-nova-layout="ledger"] body.nova-ui::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      color-mix(in srgb, var(--color-bg) 20%, transparent),
      color-mix(in srgb, var(--color-bg) 20%, transparent)
    ),
    var(--nova-active-channel-wide);
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  opacity: 1;
  filter: saturate(0.82) contrast(0.96);
}

html[data-nova-layout="ledger"] .site-announcement {
  position: relative;
  z-index: 3;
}

html[data-nova-layout="ledger"] .site-rights {
  position: relative;
  z-index: 1;
}

html[data-nova-layout="ledger"] .nova-ui .page.nova-page {
  position: relative;
  isolation: isolate;
  background-color: transparent;
  background-image:
    linear-gradient(
      90deg,
      transparent 0 42px,
      color-mix(in srgb, var(--status-live) 15%, transparent) 42px 43px,
      transparent 43px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 31px,
      color-mix(in srgb, var(--color-text) 3.2%, transparent) 31px 32px
    ),
    linear-gradient(
      color-mix(in srgb, var(--layout-paper) 84%, transparent),
      color-mix(in srgb, var(--layout-paper) 84%, transparent)
    );
  background-position:
    left top,
    left top,
    center;
  background-repeat:
    repeat,
    repeat,
    no-repeat;
  background-size:
    auto,
    auto,
    100% 100%;
}

/* v204 的双矩形伪元素会产生明显的直角色块；明确禁用，防止旧规则回流。 */
html[data-nova-layout="ledger"] .nova-ui .page.nova-page::after {
  content: none;
  display: none;
}

html[data-nova-layout="ledger"] .nova-ui .nova-route-news :is(
  .tt-cats,
  .toutiao-list,
  .news-history-list,
  .follow-layout
),
html[data-nova-layout="ledger"] .nova-ui .nova-route-discover :is(
  .discover-real-section,
  .topic-grid,
  .feed-bar,
  .post-feed
),
html[data-nova-layout="ledger"] .nova-ui .nova-route-data .data-body2 {
  background: color-mix(in srgb, var(--layout-paper) 88%, transparent);
}

html[data-nova-theme-kind="scene"] .nova-ui .nova-route-home > #home-list.match-list::before,
html[data-nova-palette="midnight"] .nova-ui .nova-route-home > #home-list.match-list::before {
  opacity: 0.11;
}

@media (orientation: portrait) {
  html[data-nova-layout="ledger"] body.nova-ui::before {
    background-image:
      linear-gradient(
        color-mix(in srgb, var(--color-bg) 20%, transparent),
        color-mix(in srgb, var(--color-bg) 20%, transparent)
      ),
      var(--nova-active-channel-portrait);
  }

  html[data-nova-layout="ledger"] .nova-ui :is(
    .nova-route-home,
    .nova-route-discover,
    .nova-route-news,
    .nova-route-data
  ) > .nova-page-stage {
    background-image:
      linear-gradient(
        90deg,
        color-mix(in srgb, var(--layout-paper) 98%, transparent) 0%,
        color-mix(in srgb, var(--layout-paper) 88%, transparent) 48%,
        color-mix(in srgb, var(--layout-paper) 8%, transparent) 100%
      ),
      linear-gradient(
        135deg,
        color-mix(in srgb, var(--color-primary) 14%, transparent) 44%,
        transparent 78%
      ),
      var(--nova-channel-portrait);
    background-position: center, center, var(--nova-channel-position-portrait);
  }

  html[data-nova-layout="ledger"] .nova-ui .nova-route-home > #home-list.match-list::before {
    background-image: var(--theme-channel-matches-portrait);
    background-position: center;
    opacity: 0.1;
  }

  html[data-nova-layout="ledger"] .nova-ui .page.nova-page {
    background-image:
      linear-gradient(
        90deg,
        transparent 0 20px,
        color-mix(in srgb, var(--status-live) 12%, transparent) 20px 21px,
        transparent 21px
      ),
      repeating-linear-gradient(
        0deg,
        transparent 0 31px,
        color-mix(in srgb, var(--color-text) 3.2%, transparent) 31px 32px
      ),
      linear-gradient(
        color-mix(in srgb, var(--layout-paper) 84%, transparent),
        color-mix(in srgb, var(--layout-paper) 84%, transparent)
      );
    background-position:
      left top,
      left top,
      center;
    background-repeat:
      repeat,
      repeat,
      no-repeat;
    background-size:
      auto,
      auto,
      100% 100%;
  }
}

/* 手机首访先保证可读内容：频道场景图只承担装饰，不应在弱网下成为 LCP
 *（最大内容绘制）候选并与比分、赔率和队徽争抢带宽。桌面继续保留完整场景。 */
@media (max-width: 600px) {
  html[data-nova-layout="ledger"] .nova-ui :is(
    .nova-route-home,
    .nova-route-discover,
    .nova-route-news,
    .nova-route-data
  ) > .nova-page-stage {
    background-image:
      linear-gradient(
        90deg,
        color-mix(in srgb, var(--layout-paper) 98%, transparent) 0%,
        color-mix(in srgb, var(--layout-paper) 88%, transparent) 60%,
        color-mix(in srgb, var(--color-primary) 10%, var(--layout-paper)) 100%
      ),
      linear-gradient(
        135deg,
        color-mix(in srgb, var(--color-primary) 14%, transparent) 44%,
        transparent 78%
      );
  }

  html[data-nova-layout="ledger"] .nova-ui .nova-route-home > #home-list.match-list::before {
    background-image: none;
  }
}
