/* x74 dark theme — haixing skin + AA contrast (accent #05999c) */

html[data-theme="dark"] {
  color-scheme: dark;
  background: #0c1415;
}

html[data-theme="dark"] body[data-template="x74"] {
  --hx-accent: #2bb8bb;
  --hx-accent-strong: #5ed4d7;
  --hx-accent-soft: rgba(43, 184, 187, 0.18);
  --hx-bg: #0c1415;
  --hx-surface: #152022;
  --hx-elevated: #1c2b2d;
  --hx-hover: #243739;
  --hx-border: #2f4548;
  /* Body / UI text ≥ 4.5:1 on dark surfaces */
  --hx-text: #e8f4f5;
  --hx-text-muted: #b7cfd2;
  --hx-link: #c5eef0;
  --hx-on-accent: #043a3b;

  background: var(--hx-bg) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] a {
  color: var(--hx-link);
}

html[data-theme="dark"] body[data-template="x74"] a:hover {
  color: var(--hx-accent-strong);
}

/* Header keeps brand teal; ensure white text contrast */
html[data-theme="dark"] body[data-template="x74"] #new-head {
  background-color: #047a7d;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] body[data-template="x74"] #new-head .nav-menu a {
  color: #fff !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  #new-head
  .nav-menu
  a.active,
html[data-theme="dark"]
  body[data-template="x74"]
  #new-head
  .nav-menu
  a[aria-current="page"] {
  background: #fff !important;
  color: #034e50 !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-search-desktop {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
}

html[data-theme="dark"] body[data-template="x74"] .x74-search-desktop .keywords {
  color: #fff;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-search-desktop
  .keywords::placeholder {
  color: rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] body[data-template="x74"] .x74-search-desktop .serbtn,
html[data-theme="dark"] body[data-template="x74"] #new-head .search .serbtn {
  background: #fff;
  color: #034e50;
}

html[data-theme="dark"] body[data-template="x74"] #new-head .search .keywords {
  background: #1c2b2d;
  color: #e8f4f5;
  border: 1px solid #2f4548;
}

html[data-theme="dark"]
  body[data-template="x74"]
  #new-head
  .search
  .keywords::placeholder {
  color: #9eb8bb;
}

/* Match list */
html[data-theme="dark"] body[data-template="x74"] .hd,
html[data-theme="dark"] body[data-template="x74"] .hd ul,
html[data-theme="dark"] body[data-template="x74"] .hd li {
  background: var(--hx-elevated);
  color: var(--hx-text);
  box-shadow: none;
  border-color: var(--hx-accent);
}

html[data-theme="dark"] body[data-template="x74"] .hd li.on {
  background: var(--hx-accent);
  color: #043a3b;
  font-weight: 800;
}

html[data-theme="dark"] body[data-template="x74"] .match-tab .hot_match {
  background: var(--hx-surface);
  border-bottom-color: var(--hx-border);
}

html[data-theme="dark"] body[data-template="x74"] .hot_match .sj,
html[data-theme="dark"] body[data-template="x74"] .hot_match .bt,
html[data-theme="dark"] body[data-template="x74"] .hot_match .zd,
html[data-theme="dark"] body[data-template="x74"] .hot_match .kd,
html[data-theme="dark"] body[data-template="x74"] .hot_match .bf,
html[data-theme="dark"] body[data-template="x74"] .streamTop p {
  color: var(--hx-text);
}

html[data-theme="dark"] body[data-template="x74"] .hot_match .zdbf,
html[data-theme="dark"] body[data-template="x74"] .hot_match .kdbf {
  background: #243739;
  color: #e8f4f5;
}

html[data-theme="dark"] body[data-template="x74"] .hot_match .bf.x74-vs {
  background: #243739;
  color: var(--hx-accent-strong);
}

html[data-theme="dark"] body[data-template="x74"] .hot_match .status.live p {
  background: linear-gradient(90deg, #048186, #2bb8bb);
  color: #043a3b;
  font-weight: 800;
}

html[data-theme="dark"] body[data-template="x74"] .hot_match .status.prelive p {
  background: linear-gradient(90deg, #5a6a6c, #7a8a8c);
  color: #fff;
}

html[data-theme="dark"] body[data-template="x74"] .streamBtm p {
  color: #5ed4d7;
  border-bottom-color: #5ed4d7;
}

html[data-theme="dark"] body[data-template="x74"] .streamBox .viewMore {
  color: var(--hx-text-muted);
}

html[data-theme="dark"] body[data-template="x74"] .x74-empty {
  background: var(--hx-surface);
  color: var(--hx-text-muted);
  border-color: var(--hx-border);
}

/* Content blocks — force dark surfaces so light text stays readable */
html[data-theme="dark"] body[data-template="x74"] .huati-redian,
html[data-theme="dark"] body[data-template="x74"] .tuwen,
html[data-theme="dark"] body[data-template="x74"] .tuwen ul,
html[data-theme="dark"] body[data-template="x74"] .box,
html[data-theme="dark"] body[data-template="x74"] .tagcloud {
  background: var(--hx-surface) !important;
  color: var(--hx-text) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-template="x74"] .tuwen ul span,
html[data-theme="dark"] body[data-template="x74"] .tuwen ul li {
  background: var(--hx-elevated) !important;
  color: var(--hx-text) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-template="x74"] .biaoti.syzt,
html[data-theme="dark"] body[data-template="x74"] .title {
  background: transparent;
  color: var(--hx-text);
}

html[data-theme="dark"] body[data-template="x74"] .biaoti.syzt h2,
html[data-theme="dark"] body[data-template="x74"] .title h2 {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-section-hd {
  background: var(--hx-surface);
  border-top-color: var(--hx-accent);
}

html[data-theme="dark"] body[data-template="x74"] .x74-section-hd ul {
  background: var(--hx-elevated);
  box-shadow: none;
}

html[data-theme="dark"] body[data-template="x74"] .x74-section-hd li {
  background: var(--hx-elevated);
  color: var(--hx-text);
}

html[data-theme="dark"] body[data-template="x74"] .x74-section-hd li.on {
  background: var(--hx-accent);
  color: #fff;
}

html[data-theme="dark"] body[data-template="x74"] .x74-section-hd li.on h1,
html[data-theme="dark"] body[data-template="x74"] .x74-section-hd li.on h2,
html[data-theme="dark"] body[data-template="x74"] .x74-section-hd h1,
html[data-theme="dark"] body[data-template="x74"] .x74-section-hd h2 {
  color: inherit !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-section-more {
  background: transparent;
  color: #5ed4d7 !important;
}

html[data-theme="dark"] body[data-template="x74"] .biaoti.syzt a {
  color: #5ed4d7 !important;
}

html[data-theme="dark"] body[data-template="x74"] .tuwen ul span .biaoti,
html[data-theme="dark"] body[data-template="x74"] .tuwen ul span a,
html[data-theme="dark"] body[data-template="x74"] .tuwen ul span a .biaoti,
html[data-theme="dark"] body[data-template="x74"] .tuwen ul li .title,
html[data-theme="dark"] body[data-template="x74"] .tuwen ul li a {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .tuwen ul span a:hover .biaoti,
html[data-theme="dark"] body[data-template="x74"] .tuwen ul span a:hover {
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"] body[data-template="x74"] .tuwen ul span .img,
html[data-theme="dark"] body[data-template="x74"] .tuwen ul span .img img {
  background: #243739 !important;
}

html[data-theme="dark"] body[data-template="x74"] .huati-redian li a {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .huati-redian li a:hover {
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"] body[data-template="x74"] .tagcloud a {
  color: var(--hx-text) !important;
  background: var(--hx-elevated) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-hot-leagues {
  background: var(--hx-surface);
  border-bottom-color: var(--hx-border);
}

html[data-theme="dark"] body[data-template="x74"] .x74-hot-leagues__list a {
  color: var(--hx-text) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-hot-leagues__list
  a:hover,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-hot-leagues__list
  a[aria-current="page"] {
  color: var(--hx-accent-strong) !important;
  background: var(--hx-accent-soft);
}

html[data-theme="dark"] body[data-template="x74"] .tagcloud a:hover {
  background: var(--hx-accent) !important;
  color: #043a3b !important;
}

html[data-theme="dark"] body[data-template="x74"] .footer {
  background: #047a7d !important;
  color: #fff !important;
  opacity: 1 !important;
}

html[data-theme="dark"] body[data-template="x74"] .footer p,
html[data-theme="dark"] body[data-template="x74"] .footer a {
  color: #fff !important;
}

html[data-theme="dark"] body[data-template="x74"] .footer a:hover,
html[data-theme="dark"] body[data-template="x74"] .footer a:focus-visible {
  color: #e8ffff !important;
}

html[data-theme="dark"] body[data-template="x74"] .btn-top {
  background: var(--hx-accent);
  color: #043a3b;
}

html[data-theme="dark"] body[data-template="x74"] .data-update-time {
  color: var(--hx-text-muted);
}

html[data-theme="dark"] body[data-template="x74"] .x74-match-meta {
  background: var(--hx-elevated);
}

html[data-theme="dark"] body[data-template="x74"] .dh_more_match {
  background: transparent;
}

html[data-theme="dark"] body[data-template="x74"] .dh_more_match a {
  background: var(--hx-accent);
  color: #043a3b !important;
}

html[data-theme="dark"] body[data-template="x74"] .dh_more_match a:hover {
  background: var(--hx-accent-strong);
  color: #043a3b !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-content-page .dqwz,
html[data-theme="dark"] body[data-template="x74"] .x74-league-page .dqwz {
  color: var(--hx-text-muted);
}

html[data-theme="dark"] body[data-template="x74"] .x74-content-page .dqwz a,
html[data-theme="dark"] body[data-template="x74"] .x74-league-page .dqwz a {
  color: #5ed4d7;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .dqwz
  [aria-current="page"],
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .dqwz
  [aria-current="page"] {
  color: var(--hx-text);
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-nav-section
  .x74-league-nav-body {
  background: var(--hx-surface);
  border-color: var(--hx-border);
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .x74-league-nav-body
  .responsive-link,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-league-nav-body
  .responsive-link,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .league-chip-nav
  a,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .league-chip-nav
  a {
  background: rgba(5, 153, 156, 0.18);
  color: #5ed4d7;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .x74-league-nav-body
  .responsive-link:hover,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .x74-league-nav-body
  .responsive-link:focus-visible,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-league-nav-body
  .responsive-link:hover,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-league-nav-body
  .responsive-link:focus-visible,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .league-chip-nav
  a:hover,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .league-chip-nav
  a:hover {
  background: var(--hx-accent);
  color: #043a3b;
}

html[data-theme="dark"] body[data-template="x74"] .rank_list_area a {
  background: rgba(5, 153, 156, 0.18);
  color: #5ed4d7;
}

html[data-theme="dark"] body[data-template="x74"] .rank_list_area a:hover,
html[data-theme="dark"] body[data-template="x74"] .rank_list_area a.is-active {
  background: var(--hx-accent);
  color: #043a3b;
}

html[data-theme="dark"] body[data-template="x74"] .rank-season-dropdown summary {
  color: var(--hx-accent-strong);
}

html[data-theme="dark"]
  body[data-template="x74"]
  .rank-season-dropdown__list {
  background: var(--hx-elevated);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"]
  body[data-template="x74"]
  .rank-season-dropdown__list
  a {
  color: var(--hx-text);
}

html[data-theme="dark"]
  body[data-template="x74"]
  .rank-season-dropdown__list
  a.is-active,
html[data-theme="dark"]
  body[data-template="x74"]
  .rank-season-dropdown__list
  a:hover {
  background: rgba(5, 153, 156, 0.18);
  color: #5ed4d7;
}

/* Legacy panel bridge (introduce / xinwen / match lists) */
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .bs-warp
  .xinwen,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .bs-warp
  .xinwen,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .introduce.x74-league-block
  > .xinwen,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .introduce.x74-league-block
  > .xinwen {
  background: var(--hx-accent) !important;
  color: #043a3b !important;
  border-color: var(--hx-accent) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .x74-league-match-list,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-league-match-list,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .x74-widget-panel,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-widget-panel,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .introduce.x74-league-nav-panel
  .x74-league-nav-body,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .introduce.x74-league-nav-panel
  .x74-league-nav-body {
  background: var(--hx-surface) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .hot_match,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .hot_match,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-match-list
  .hot_match {
  background: var(--hx-surface) !important;
  border-bottom-color: var(--hx-border) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .x74-intro-text,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-intro-text,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .x74-article-body
  .nr,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-article-body
  .nr {
  color: var(--hx-text) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .x74-article-body,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-article-body,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .x74-content-body,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-content-body {
  background: var(--hx-surface) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .x74-article-body
  .article_info,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-article-body
  .article_info,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .x74-link-list
  time,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-link-list
  time,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .x74-article-body
  .video-desc,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-article-body
  .video-desc {
  color: var(--hx-text-muted) !important;
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .x74-link-list
  a,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-link-list
  a,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .x74-article-body
  .tags
  h2,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-article-body
  .tags
  h2 {
  color: var(--hx-text) !important;
}

/* Related tags — beat 24zhibo white chips + light link color */
html[data-theme="dark"] body[data-template="x74"] .tags,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .x74-article-body
  .tags,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-article-body
  .tags {
  border-top-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .tags li,
html[data-theme="dark"] body[data-template="x74"] .panel_body .tags li,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-article-body
  .tags
  li {
  background: transparent !important;
  border: 0 !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html[data-theme="dark"] body[data-template="x74"] .tags a,
html[data-theme="dark"] body[data-template="x74"] .panel_body .tags li a,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-article-body
  .tags
  a {
  background: var(--hx-accent-soft) !important;
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"] body[data-template="x74"] .tags a:hover,
html[data-theme="dark"] body[data-template="x74"] .tags a:focus-visible,
html[data-theme="dark"] body[data-template="x74"] .panel_body .tags li:hover,
html[data-theme="dark"]
  body[data-template="x74"]
  .panel_body
  .tags
  li:hover
  a,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-article-body
  .tags
  a:hover,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-article-body
  .tags
  a:focus-visible {
  background: var(--hx-accent) !important;
  color: #fff !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .x74-stream-tabs,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-stream-tabs {
  background: var(--hx-surface) !important;
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .x74-stream-tabs
  .troggle-btn,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-stream-tabs
  .troggle-btn {
  background: rgba(5, 153, 156, 0.18);
  color: #5ed4d7;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .x74-stream-tabs
  .troggle-btn.active,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-content-page
  .x74-stream-tabs
  .troggle-btn:hover,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-stream-tabs
  .troggle-btn.active,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-stream-tabs
  .troggle-btn:hover {
  background: var(--hx-accent);
  color: #043a3b;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-league-title-hd
  .x74-match-meta {
  background: var(--hx-elevated);
  box-shadow: none;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  h6.x74-league-day,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .match-tab
  h6.x74-league-day {
  background: transparent !important;
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  h6.x74-league-day
  time,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .match-tab
  h6.x74-league-day
  time {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  h6.x74-league-day
  time::before,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .match-tab
  h6.x74-league-day
  time::before {
  background: var(--hx-accent) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .dh_more_match
  .more-btn,
html[data-theme="dark"] body[data-template="x74"] .x74-league-more .more-btn {
  background: var(--hx-accent);
  color: #043a3b;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-league-widget
  .item-block {
  background: var(--hx-surface) !important;
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-rank-block
  .xinwen,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-stars-block
  .xinwen,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-league-widget
  .section-title,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-league-widget
  .section-title
  h2 {
  background: var(--hx-accent) !important;
  color: #fff !important;
  border-color: var(--hx-accent) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .custom-league-intro {
  color: var(--hx-text);
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .custom-toggle-arrow {
  color: #5ed4d7;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .data-update-time {
  color: var(--hx-text-muted) !important;
}

/* Rank / stars widgets on league page */
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .lq_rank_side {
  background: transparent !important;
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .lq_rank_side
  .lq_rank_row {
  background: var(--hx-surface) !important;
  color: var(--hx-text) !important;
  border-bottom-color: var(--hx-border) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .lq_rank_side
  .lq_rank_row:not(.lq_rank_head):hover {
  background: var(--hx-hover) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .lq_rank_side
  .lq_rank_head {
  background: var(--hx-elevated) !important;
  color: var(--hx-text-muted) !important;
  border-bottom-color: var(--hx-border) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .lq_rank_side
  .lq_rank_head
  .lq_pos,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .lq_rank_side
  .lq_rank_head
  .lq_wdl,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .lq_rank_side
  .lq_rank_head
  .lq_pts,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .lq_rank_side
  .lq_rank_head
  .lq_team,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .lq_rank_side
  .lq_pos {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .lq_rank_side
  .lq_team
  span
  a,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .lq_rank_side
  .lq_pts,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .lq_rank_side
  .lq_wdl {
  color: var(--hx-text) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .lq_rank_side
  .lq_team
  span
  a:hover,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .lq_rank_side
  .lq_team
  span
  a:focus-visible {
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .lq_rank_side
  .lq_conf_tit {
  background: var(--hx-elevated) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .star_player_side {
  background: var(--hx-elevated) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .star_player_side
  .sp_row {
  background: var(--hx-surface) !important;
  border-color: var(--hx-border) !important;
  box-shadow: none !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .star_player_side
  .sp_rank {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .star_player_side
  .sp_name,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .star_player_side
  .sp_name
  a {
  color: var(--hx-text) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .star_player_side
  .sp_meta {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .star_player_side
  .sp_avatar {
  background: var(--hx-hover) !important;
  border-color: var(--hx-border) !important;
}

/* Legacy inner-page surfaces (when legacy_css is loaded) */
html[data-theme="dark"] body[data-template="x74"] .main,
html[data-theme="dark"] body[data-template="x74"] .wrap,
html[data-theme="dark"] body[data-template="x74"] .main-left,
html[data-theme="dark"] body[data-template="x74"] .main-right,
html[data-theme="dark"] body[data-template="x74"] .table-warp,
html[data-theme="dark"] body[data-template="x74"] .t-warp,
html[data-theme="dark"] body[data-template="x74"] .news,
html[data-theme="dark"] body[data-template="x74"] .luxiang,
html[data-theme="dark"] body[data-template="x74"] .xinwen {
  background: var(--hx-surface) !important;
  color: var(--hx-text) !important;
  border-color: var(--hx-border) !important;
}

/* Keep league widget titles teal after legacy .xinwen reset */
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-rank-block
  .xinwen,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-stars-block
  .xinwen,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-league-widget
  .section-title,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-league-page
  .x74-league-widget
  .section-title
  h2 {
  background: var(--hx-accent) !important;
  color: #fff !important;
  border-color: var(--hx-accent) !important;
}

html[data-theme="dark"] body[data-template="x74"] .t-content,
html[data-theme="dark"] body[data-template="x74"] .table-tr,
html[data-theme="dark"] body[data-template="x74"] .t-duiwu,
html[data-theme="dark"] body[data-template="x74"] .tbtime,
html[data-theme="dark"] body[data-template="x74"] .tbss,
html[data-theme="dark"] body[data-template="x74"] .news-list a {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-watch-btn {
  background: var(--hx-accent) !important;
  color: #043a3b !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-watch-btn.is-end {
  background: #5a6a6c !important;
  color: #fff !important;
}

/* ===== Live detail (detail_zb) — AA contrast on dark ===== */
html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .dqwz {
  color: #c5d0d1;
}

html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .dqwz a {
  color: #7fdce0;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-zb-page
  .dqwz
  [aria-current="page"] {
  color: #f2f5f5;
}

html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .match_bg {
  background: linear-gradient(90deg, #061314 0%, #0a3d3f 50%, #061314 100%);
}

html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .match_details,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-zb-page
  .formsco_tab_content,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-zb-page
  .introduce.x74-zb-data-panel,
html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .text_live,
html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .zxlx,
html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .zxjj {
  background: var(--hx-surface) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-zb-page
  .x74-zb-intro-card {
  background: var(--hx-surface) !important;
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .x74-zb-meta {
  border-bottom-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .x74-zb-meta dt,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-zb-page
  .x74-zb-tags__label {
  color: #b7cfd2 !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .x74-zb-meta dd,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-zb-page
  .x74-zb-intro-desc {
  color: #e8f0f0 !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-zb-page
  .x74-zb-meta
  dd
  a {
  color: #7fdce0 !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .x74-zb-tags {
  border-top-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .x74-zb-tags a {
  background: rgba(5, 153, 156, 0.22);
  color: #9aefef !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-zb-page
  .x74-zb-ended-tip {
  background: #243536 !important;
  color: #e8f0f0 !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .signal-title {
  color: #f2f5f5 !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-zb-page
  #times_container.x74-times-container {
  background: #102122;
  border-color: #2f4a4b;
  color: #f2f5f5;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-zb-page
  .introduce
  .xinwen,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-zb-page
  .x74-zb-data-panel
  .xinwen {
  background: #163033 !important;
  border-color: var(--hx-border) !important;
  color: #f2f5f5 !important;
}

/* ----- Data panel chrome (kill leftover white cards) ----- */
html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .bgwhite,
html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .text_live,
html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .text_live_item,
html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .data_analysis,
html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .tongji {
  background: var(--hx-surface) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .text_live_nav {
  border-bottom-color: #3a5052 !important;
  background: var(--hx-surface) !important;
}

html[data-theme="dark"] body[data-template="x74"] .text_live_nav span {
  color: #b7cfd2 !important;
}

html[data-theme="dark"] body[data-template="x74"] .text_live_nav span.on {
  color: #f2f5f5 !important;
}

html[data-theme="dark"] body[data-template="x74"] .text_live_nav span.on:after {
  background: var(--hx-accent) !important;
}

/* Text live feed */
html[data-theme="dark"] body[data-template="x74"] .tlf-text,
html[data-theme="dark"] body[data-template="x74"] .tlf-time {
  color: #e8f0f0 !important;
}

html[data-theme="dark"] body[data-template="x74"] .tlf-row.highlight .tlf-text {
  color: #ffffff !important;
}

html[data-theme="dark"] body[data-template="x74"] .text_live_feed:before {
  background: #334849 !important;
}

html[data-theme="dark"] body[data-template="x74"] .tlf-dot i {
  border-color: var(--hx-surface) !important;
  background: #7a9092;
}

html[data-theme="dark"] body[data-template="x74"] .tlf-quarters span {
  color: #e0eaea !important;
  border-color: #3a5052 !important;
  background: #163033 !important;
}

html[data-theme="dark"] body[data-template="x74"] .tlf-quarters span.on {
  color: #043a3b !important;
  background: var(--hx-accent) !important;
  border-color: var(--hx-accent) !important;
}

html[data-theme="dark"] body[data-template="x74"] .tlf-env,
html[data-theme="dark"] body[data-template="x74"] .tlf-env-head,
html[data-theme="dark"] body[data-template="x74"] .tlf-env-body {
  background: var(--hx-elevated) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .tev-stadium,
html[data-theme="dark"] body[data-template="x74"] .tev-meta,
html[data-theme="dark"] body[data-template="x74"] .tev-temp b,
html[data-theme="dark"] body[data-template="x74"] .tev-temp b i,
html[data-theme="dark"] body[data-template="x74"] .tev-temp span,
html[data-theme="dark"] body[data-template="x74"] .tev-stat {
  color: #dce8e9 !important;
}

/* Lineup */
html[data-theme="dark"] body[data-template="x74"] .lineup_head {
  border-bottom-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .lineup_team .name,
html[data-theme="dark"] body[data-template="x74"] .lineup_block_tit,
html[data-theme="dark"] body[data-template="x74"] .lineup_list .pname,
html[data-theme="dark"] body[data-template="x74"] .lineup_list .pname a {
  color: #f0f5f5 !important;
}

html[data-theme="dark"] body[data-template="x74"] .lineup_vs,
html[data-theme="dark"] body[data-template="x74"] .lineup_list .pos,
html[data-theme="dark"] body[data-template="x74"] .lineup_empty {
  color: #b7cfd2 !important;
}

html[data-theme="dark"] body[data-template="x74"] .lineup_list li {
  background: transparent !important;
  border-bottom-color: #2f4547 !important;
  color: #e8f0f0 !important;
}

html[data-theme="dark"] body[data-template="x74"] .lineup_list .num {
  background: #243739 !important;
  color: #e8f0f0 !important;
}

html[data-theme="dark"] body[data-template="x74"] .lineup_list .num.cap {
  background: #c99214 !important;
  color: #1a1200 !important;
}

html[data-theme="dark"] body[data-template="x74"] .lineup_list .pavatar {
  background: #243739 !important;
}

/* Secret report / radar / match report */
html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .secret-report__title-text,
html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .recent-radar__title,
html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .secret-report__headline {
  color: #f2f5f5 !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .secret-report__desc,
html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .secret-report__empty,
html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .rr-legend,
html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .qb-metric__label,
html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .match-report__text {
  color: #c8d8da !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .secret-report__item,
html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .secret-report__item--featured,
html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .recent-radar-box,
html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .match-report__card {
  background: var(--hx-elevated) !important;
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .secret-report__item--featured {
  background: #24301f !important;
  border-color: #5a6a2e !important;
}

html[data-theme="dark"] body[data-template="x74"] #text_live_qingbao .tag--primary {
  color: #d7e0e1 !important;
  background: #243739 !important;
}

html[data-theme="dark"] body[data-template="x74"] #text_live_qingbao .tag--good {
  color: #8eefc8 !important;
  background: #16352c !important;
}

html[data-theme="dark"] body[data-template="x74"] #text_live_qingbao .tag--muted {
  color: #c5d0d1 !important;
  background: #2a3536 !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .secret-report__tab,
html[data-theme="dark"] body[data-template="x74"] #text_live_qingbao .rr-switch,
html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .match-report__tab,
html[data-theme="dark"] body[data-template="x74"] .tj-team-tab {
  color: #e0eaea !important;
  border-color: #3a5052 !important;
  background: #163033 !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .recent-radar__switch {
  border-color: #3a5052 !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .secret-report__tab.is-active,
html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .rr-switch.is-active,
html[data-theme="dark"] body[data-template="x74"] .tj-team-tab.is-active {
  color: #043a3b !important;
  background: var(--hx-accent) !important;
  border-color: var(--hx-accent) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .match-report__tab.is-active {
  color: #1a1500 !important;
  background: #f0d060 !important;
  border-color: #f0d060 !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .match-report__row {
  border-bottom-color: #2f4547 !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .match-report__tag {
  color: #d7e0e1 !important;
  background: #243739 !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .qb-metric__val--home {
  color: #5ed4c8 !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .qb-metric__val--away {
  color: #ffb07a !important;
}

/* ----- Data analysis tables (历史交锋 / 近期战绩) ----- */
html[data-theme="dark"] body[data-template="x74"] .da_block_tit,
html[data-theme="dark"]
  body[data-template="x74"]
  #text_live_qingbao
  .match-report
  .da_block_tit {
  background: var(--hx-elevated) !important;
  border-color: var(--hx-border) !important;
  color: #f2f5f5 !important;
}

html[data-theme="dark"] body[data-template="x74"] .data_analysis {
  background: #101a1b !important;
}

html[data-theme="dark"] body[data-template="x74"] .data_analysis > .recent_record,
html[data-theme="dark"] body[data-template="x74"] .data_analysis > .rr_scroll,
html[data-theme="dark"] body[data-template="x74"] .data_analysis > .rr_summary {
  background: var(--hx-elevated) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .rr_team_name,
html[data-theme="dark"] body[data-template="x74"] .rr_team_name span {
  color: #f2f5f5 !important;
}

html[data-theme="dark"] body[data-template="x74"] .rr_filters select {
  color: #e8f0f0 !important;
  background: #122628 !important;
  border-color: #3a5052 !important;
}

html[data-theme="dark"] body[data-template="x74"] .rr_table {
  color: #e8f0f0 !important;
}

html[data-theme="dark"] body[data-template="x74"] .rr_table th {
  color: #b7cfd2 !important;
  border-bottom-color: #2f4547 !important;
  font-weight: 600 !important;
}

html[data-theme="dark"] body[data-template="x74"] .rr_table td,
html[data-theme="dark"] body[data-template="x74"] .rr_table .rowlabel,
html[data-theme="dark"] body[data-template="x74"] .rr_table .t_home,
html[data-theme="dark"] body[data-template="x74"] .rr_table .t_away,
html[data-theme="dark"] body[data-template="x74"] .rr_table .t_date {
  color: #e8f0f0 !important;
  border-bottom-color: #2a3f41 !important;
  background: transparent !important;
}

html[data-theme="dark"] body[data-template="x74"] .rr_table a,
html[data-theme="dark"] body[data-template="x74"] .rr_table tr.rr_link a {
  color: #e8f0f0 !important;
}

html[data-theme="dark"] body[data-template="x74"] .rr_table a:hover,
html[data-theme="dark"] body[data-template="x74"] .rr_table tr.rr_link a:hover {
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"] body[data-template="x74"] .rr_table tr.rr_link:hover td {
  background: #243739 !important;
}

html[data-theme="dark"] body[data-template="x74"] .rr_table.goaldist tr.alt td {
  background: #163033 !important;
}

html[data-theme="dark"] body[data-template="x74"] .rr_table small,
html[data-theme="dark"] body[data-template="x74"] .rr_table .t_date small,
html[data-theme="dark"] body[data-template="x74"] .rr_tag {
  color: #a8c0c3 !important;
}

/* Result chips: keep hue but raise luminance for AA on dark */
html[data-theme="dark"] body[data-template="x74"] .rr_table .red,
html[data-theme="dark"] body[data-template="x74"] .rr_table small.red,
html[data-theme="dark"] body[data-template="x74"] .rr_summary b {
  color: #ff8a80 !important;
}

html[data-theme="dark"] body[data-template="x74"] .rr_table .blue,
html[data-theme="dark"] body[data-template="x74"] .rr_table small.blue {
  color: #7dcea0 !important;
}

html[data-theme="dark"] body[data-template="x74"] .rr_summary {
  color: #c5d0d1 !important;
}

/* Stats / tongji */
html[data-theme="dark"] body[data-template="x74"] .tongji .tj-card,
html[data-theme="dark"] body[data-template="x74"] .tj-table,
html[data-theme="dark"] body[data-template="x74"] .tj-table th,
html[data-theme="dark"] body[data-template="x74"] .tj-table td {
  background: var(--hx-elevated) !important;
  border-color: var(--hx-border) !important;
  color: #e8f0f0 !important;
}

html[data-theme="dark"] body[data-template="x74"] .tj-mvp-row {
  border-bottom-color: #2f4547 !important;
}

html[data-theme="dark"] body[data-template="x74"] .tj-mvp-name,
html[data-theme="dark"] body[data-template="x74"] .tj-mvp-vals b {
  color: #f2f5f5 !important;
}

html[data-theme="dark"] body[data-template="x74"] .tj-mvp-num,
html[data-theme="dark"] body[data-template="x74"] .tj-mvp-label {
  color: #b7cfd2 !important;
}

html[data-theme="dark"] body[data-template="x74"] .tj-mvp-vals b.home {
  color: #ff8a80 !important;
}

html[data-theme="dark"] body[data-template="x74"] .tj-mvp-vals b.away {
  color: #7eb6ff !important;
}

html[data-theme="dark"] body[data-template="x74"] .tj-bar.home {
  background: #3a2222 !important;
}

html[data-theme="dark"] body[data-template="x74"] .tj-bar.away {
  background: #1e2a3a !important;
}

html[data-theme="dark"] body[data-template="x74"] .tj-team-tabs {
  border-color: var(--hx-border) !important;
}

/* Injury list (伤停信息) — light-theme #222/#333 text was invisible on dark cards */
html[data-theme="dark"] body[data-template="x74"] .tj-injury.tj-card {
  background: var(--hx-elevated) !important;
  border-color: var(--hx-border) !important;
  color: #e8f0f0 !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .tj-injury
  .tj-inj-block
  + .tj-inj-block {
  border-top-color: #2f4547 !important;
}

html[data-theme="dark"] body[data-template="x74"] .tj-inj-team,
html[data-theme="dark"] body[data-template="x74"] .tj-inj-team span {
  color: #f2f5f5 !important;
}

html[data-theme="dark"] body[data-template="x74"] .tj-inj-table th {
  color: #b7cfd2 !important;
  border-bottom-color: #2f4547 !important;
  font-weight: 600 !important;
}

html[data-theme="dark"] body[data-template="x74"] .tj-inj-table td {
  color: #e8f0f0 !important;
  border-bottom-color: #2a3f41 !important;
  background: transparent !important;
}

html[data-theme="dark"] body[data-template="x74"] .tj-inj-name {
  color: #f2f5f5 !important;
}

html[data-theme="dark"] body[data-template="x74"] .tj-inj-pos {
  color: #a8c0c3 !important;
}

html[data-theme="dark"] body[data-template="x74"] .tj-inj-reason {
  color: #ff8a80 !important;
}

html[data-theme="dark"] body[data-template="x74"] .tj-inj-time,
html[data-theme="dark"] body[data-template="x74"] .tj-inj-time span {
  color: #c5d0d1 !important;
}

html[data-theme="dark"] body[data-template="x74"] .tj-inj-player img {
  background: #243739 !important;
}

html[data-theme="dark"] body[data-template="x74"] .boxC ul li .num {
  color: #f2f5f5 !important;
}

html[data-theme="dark"] body[data-template="x74"] .boxC ul li .name {
  color: #b7cfd2 !important;
}

html[data-theme="dark"] body[data-template="x74"] .boxB ul li,
html[data-theme="dark"] body[data-template="x74"] .boxB ul li.top {
  color: #e8f0f0 !important;
}

html[data-theme="dark"] body[data-template="x74"] .boxB ul li.top {
  color: #b7cfd2 !important;
}

/* Related / bottom modules already covered; tighten title contrast */
html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .title h2,
html[data-theme="dark"] body[data-template="x74"] .x74-zb-page .biaoti.syzt h2 {
  color: #f2f5f5 !important;
}

html[data-theme="dark"] body[data-template="x74"] .match_status {
  color: #043a3b;
  background: #e8f7f7;
}

html[data-theme="dark"] body[data-template="x74"] .match_status.live {
  color: #b71c1c;
}

/* League / team data tables — beat x74.css white row backgrounds */
html[data-theme="dark"] body[data-template="x74"] .league-team-list li,
html[data-theme="dark"] body[data-template="x74"] .x74-team-grid li {
  background: var(--hx-elevated) !important;
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .league-team-list a,
html[data-theme="dark"] body[data-template="x74"] .x74-team-grid a {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .league-rank-table {
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .league-rank-table__row {
  background: var(--hx-surface) !important;
  border-bottom-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .league-rank-table__row.is-head {
  background: var(--hx-elevated) !important;
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .league-rank-table__row.is-group {
  background: var(--hx-elevated) !important;
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .league-rank-table__row:not(.is-head):not(.is-group):hover {
  background: var(--hx-hover) !important;
}

/* Player rank blocks — beat x74.css white card + light link-on-white */
html[data-theme="dark"] body[data-template="x74"] .player-rank-block {
  background: var(--hx-elevated) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .player-rank-table__head,
html[data-theme="dark"] body[data-template="x74"] .player-rank-table__row {
  background: transparent !important;
  color: var(--hx-text) !important;
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .player-rank-table__head {
  background: var(--hx-surface) !important;
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .player-rank-table__row:hover {
  background: var(--hx-hover) !important;
}

html[data-theme="dark"] body[data-template="x74"] .player-rank-block__title,
html[data-theme="dark"]
  body[data-template="x74"]
  .player-rank-block
  h1.player-rank-block__title,
html[data-theme="dark"]
  body[data-template="x74"]
  .player-rank-block
  h2.player-rank-block__title {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .player-rank-block__season {
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"] body[data-template="x74"] .player-rank-block__more {
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"] body[data-template="x74"] .player-rank-block__more:hover,
html[data-theme="dark"]
  body[data-template="x74"]
  .player-rank-block__more:focus-visible {
  color: #fff !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .player-rank-table__col-rank {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .player-rank-table__col-data {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .player-rank-table__avatar {
  background: var(--hx-surface) !important;
}

html[data-theme="dark"] body[data-template="x74"] .player-rank-table__name,
html[data-theme="dark"] body[data-template="x74"] .player-rank-table__name a {
  color: var(--hx-text) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .player-rank-table__name
  a:hover,
html[data-theme="dark"]
  body[data-template="x74"]
  .player-rank-table__name
  a:focus-visible {
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"] body[data-template="x74"] .league-rank-table a,
html[data-theme="dark"] body[data-template="x74"] .jifen-team a {
  color: var(--hx-link) !important;
}

html[data-theme="dark"] body[data-template="x74"] .jifen-table thead th,
html[data-theme="dark"] body[data-template="x74"] .team-data-table thead th,
html[data-theme="dark"] body[data-template="x74"] .league-data-table thead th,
html[data-theme="dark"] body[data-template="x74"] .team-data-table th {
  background: var(--hx-elevated) !important;
  color: var(--hx-text-muted) !important;
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .jifen-table tbody td,
html[data-theme="dark"] body[data-template="x74"] .team-data-table tbody td,
html[data-theme="dark"] body[data-template="x74"] .league-data-table tbody td,
html[data-theme="dark"] body[data-template="x74"] .team-data-table td {
  color: var(--hx-text) !important;
  border-color: var(--hx-border) !important;
  background: transparent !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .team-data-table
  tbody
  tr:nth-child(even)
  td,
html[data-theme="dark"]
  body[data-template="x74"]
  .league-data-table
  tbody
  tr:nth-child(even)
  td,
html[data-theme="dark"]
  body[data-template="x74"]
  .jifen-table
  tbody
  tr:nth-child(even)
  td {
  background: var(--hx-elevated) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .jifen-table tbody tr:hover td,
html[data-theme="dark"]
  body[data-template="x74"]
  .team-data-table
  tbody
  tr:hover
  td,
html[data-theme="dark"]
  body[data-template="x74"]
  .league-data-table
  tbody
  tr:hover
  td {
  color: var(--hx-text) !important;
  border-color: var(--hx-border) !important;
  background: var(--hx-hover) !important;
}

html[data-theme="dark"] body[data-template="x74"] .match > .section-title,
html[data-theme="dark"] body[data-template="x74"] #tab-data .section-title,
html[data-theme="dark"]
  body[data-template="x74"]
  .team-tab-content
  .section-title,
html[data-theme="dark"]
  body[data-template="x74"]
  .team_player_list
  > .section-title,
html[data-theme="dark"]
  body[data-template="x74"]
  .table-container
  > .section-title,
html[data-theme="dark"] body[data-template="x74"] .match > .section-title h2,
html[data-theme="dark"] body[data-template="x74"] .match > .section-title h3,
html[data-theme="dark"] body[data-template="x74"] #tab-data .section-title h2,
html[data-theme="dark"] body[data-template="x74"] #tab-data .section-title h3,
html[data-theme="dark"]
  body[data-template="x74"]
  .team-tab-content
  .section-title
  h2,
html[data-theme="dark"]
  body[data-template="x74"]
  .team-tab-content
  .section-title
  h3,
html[data-theme="dark"]
  body[data-template="x74"]
  .team_player_list
  .section-title
  h2,
html[data-theme="dark"]
  body[data-template="x74"]
  .team_player_list
  .section-title
  h3,
html[data-theme="dark"]
  body[data-template="x74"]
  .table-container
  .section-title
  h2,
html[data-theme="dark"]
  body[data-template="x74"]
  .table-container
  .section-title
  h3 {
  background: var(--hx-accent) !important;
  color: #fff !important;
  border-color: var(--hx-accent) !important;
}

html[data-theme="dark"] body[data-template="x74"] .jifen-standings__nav-item {
  background: var(--hx-accent-soft) !important;
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .jifen-standings__nav-item.is-active,
html[data-theme="dark"]
  body[data-template="x74"]
  .jifen-standings__nav-item:hover {
  background: var(--hx-accent) !important;
  color: #fff !important;
}

html[data-theme="dark"] body[data-template="x74"] .jifen-standings__group-title,
html[data-theme="dark"] body[data-template="x74"] .jifen-empty,
html[data-theme="dark"] body[data-template="x74"] .x74-empty,
html[data-theme="dark"] body[data-template="x74"] .league-empty {
  color: var(--hx-text-muted) !important;
}

/* Team tab 积分 — beat light wrap + zone-tint rows + light-on-light text */
html[data-theme="dark"] body[data-template="x74"] .points-table-wrap,
html[data-theme="dark"] body[data-template="x74"] #tab-points .points-table-wrap {
  background: var(--hx-surface) !important;
  border: 0 !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .points-table-head {
  background: var(--hx-elevated) !important;
  border-bottom-color: var(--hx-border) !important;
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .points-table-row {
  background: var(--hx-surface) !important;
  border-bottom-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
  filter: none !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .points-table-row:nth-child(even) {
  background: var(--hx-elevated) !important;
}

html[data-theme="dark"] body[data-template="x74"] .points-table-row:hover {
  background: var(--hx-hover) !important;
}

html[data-theme="dark"] body[data-template="x74"] .points-table-row.current-team {
  outline-color: var(--hx-accent) !important;
  background: var(--hx-accent-soft) !important;
}

html[data-theme="dark"] body[data-template="x74"] .pt-col-rank,
html[data-theme="dark"] body[data-template="x74"] .pt-col-team,
html[data-theme="dark"] body[data-template="x74"] .pt-col-team p,
html[data-theme="dark"] body[data-template="x74"] .pt-col-total,
html[data-theme="dark"] body[data-template="x74"] .pt-col-sdf,
html[data-theme="dark"] body[data-template="x74"] .pt-col-io,
html[data-theme="dark"] body[data-template="x74"] .pt-col-pts {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .points-zone-label {
  background: var(--hx-elevated) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .wc-group-container {
  background: var(--hx-bg) !important;
}

html[data-theme="dark"] body[data-template="x74"] .wc-group-card {
  background: var(--hx-surface) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-template="x74"] .wc-group-header,
html[data-theme="dark"] body[data-template="x74"] .wc-table-head {
  background: var(--hx-elevated) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .wc-table-row,
html[data-theme="dark"] body[data-template="x74"] .wc-col-rank,
html[data-theme="dark"] body[data-template="x74"] .wc-col-team,
html[data-theme="dark"] body[data-template="x74"] .wc-col-team span,
html[data-theme="dark"] body[data-template="x74"] .wc-col-total,
html[data-theme="dark"] body[data-template="x74"] .wc-col-sdf,
html[data-theme="dark"] body[data-template="x74"] .wc-col-goals,
html[data-theme="dark"] body[data-template="x74"] .wc-col-pts {
  color: var(--hx-text) !important;
  border-bottom-color: var(--hx-border) !important;
}

/* League jifen table: kill light zone-tint row bg from inline style */
html[data-theme="dark"] body[data-template="x74"] .jifen-table tbody tr {
  background: transparent !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .jifen-table
  tbody
  tr:nth-child(even) {
  background: var(--hx-elevated) !important;
}

html[data-theme="dark"] body[data-template="x74"] .jifen-table tbody tr td,
html[data-theme="dark"] body[data-template="x74"] .jifen-table .col-rank,
html[data-theme="dark"] body[data-template="x74"] .jifen-table .col-num,
html[data-theme="dark"] body[data-template="x74"] .jifen-table .col-pts,
html[data-theme="dark"] body[data-template="x74"] .jifen-table .col-team,
html[data-theme="dark"] body[data-template="x74"] .jifen-team,
html[data-theme="dark"] body[data-template="x74"] .jifen-team span {
  color: var(--hx-text) !important;
  background: transparent !important;
}

html[data-theme="dark"] body[data-template="x74"] .jifen-zone-label {
  background: var(--hx-elevated) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .tp-wrap,
html[data-theme="dark"] body[data-template="x74"] .team_player_list,
html[data-theme="dark"] body[data-template="x74"] .team_introduce {
  color: var(--hx-text) !important;
}

/* Winner history list */
html[data-theme="dark"] body[data-template="x74"] .x74-winner-list {
  background: var(--hx-surface) !important;
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-winner-list__head {
  background: var(--hx-elevated) !important;
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-winner-list__row {
  border-top-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-winner-list__row:hover {
  background: var(--hx-hover) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-winner-list__row.is-latest {
  background: var(--hx-accent-soft) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-winner-list__season {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-winner-list__team a {
  color: var(--hx-text) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-winner-list__team
  a:hover,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-winner-list__team
  a:focus-visible {
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-winner-list__team img {
  background: var(--hx-elevated) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-winner-badge {
  background: var(--hx-accent) !important;
  color: #fff !important;
}

/* Pagination — beat light button bg + global dark link color (near-invisible) */
html[data-theme="dark"] body[data-template="x74"] .pagination-wrap {
  background: transparent !important;
}

html[data-theme="dark"] body[data-template="x74"] .paging-cls a,
html[data-theme="dark"] body[data-template="x74"] .paging-cls span,
html[data-theme="dark"]
  body[data-template="x74"]
  .panel
  .panel_body
  .paging-cls
  a,
html[data-theme="dark"]
  body[data-template="x74"]
  .panel
  .panel_body
  .paging-cls
  span {
  background: var(--hx-elevated) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .paging-cls a:hover,
html[data-theme="dark"] body[data-template="x74"] .paging-cls a:focus-visible,
html[data-theme="dark"] body[data-template="x74"] .paging-cls .active a,
html[data-theme="dark"] body[data-template="x74"] .paging-cls .current,
html[data-theme="dark"] body[data-template="x74"] .paging-cls span.current,
html[data-theme="dark"] body[data-template="x74"] .paging-cls a.current {
  background: var(--hx-accent) !important;
  border-color: var(--hx-accent) !important;
  color: #fff !important;
  outline: none;
}

html[data-theme="dark"] body[data-template="x74"] .paging-cls a:focus-visible {
  box-shadow: 0 0 0 2px var(--hx-surface), 0 0 0 4px var(--hx-accent-strong);
}

/* Team info page — beat inline light styles in team_info.html */
html[data-theme="dark"] body[data-template="x74"] .mobile-header-section,
html[data-theme="dark"] body[data-template="x74"] .team-info-header,
html[data-theme="dark"] body[data-template="x74"] .team-info-body,
html[data-theme="dark"] body[data-template="x74"] .team-tabs-nav,
html[data-theme="dark"] body[data-template="x74"] .year-select-container,
html[data-theme="dark"] body[data-template="x74"] .transfer-card {
  background: var(--hx-elevated) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-template="x74"] .team-info-header {
  border-left-color: var(--hx-accent) !important;
}

html[data-theme="dark"] body[data-template="x74"] .team-info-header .banner-name,
html[data-theme="dark"] body[data-template="x74"] .mobile-header-section .mobile-title {
  color: var(--hx-text) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .team-info-header
  .banner-name-en,
html[data-theme="dark"] body[data-template="x74"] .team-name-spell,
html[data-theme="dark"]
  body[data-template="x74"]
  .mobile-header-section
  .team-name-spell {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .team-info-header
  .banner-market-value {
  background: var(--hx-accent) !important;
  color: #fff !important;
}

html[data-theme="dark"] body[data-template="x74"] .team-info-body .info-label,
html[data-theme="dark"]
  body[data-template="x74"]
  .team-info-body
  .info-desc-label {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .team-info-body .info-value,
html[data-theme="dark"]
  body[data-template="x74"]
  .team-info-body
  .info-desc-value,
html[data-theme="dark"]
  body[data-template="x74"]
  .team-info-body
  .info-desc-value
  p {
  color: var(--hx-text) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .team-info-body
  .info-desc-row {
  border-top-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .team-tab-btn {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .team-tab-btn.active {
  color: var(--hx-accent-strong) !important;
  border-bottom-color: var(--hx-accent) !important;
}

html[data-theme="dark"] body[data-template="x74"] .year-select-container {
  border-left-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .year-select-container select {
  background: var(--hx-surface) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .year-select-container
  select:disabled {
  background: var(--hx-elevated) !important;
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .team-introduce-table,
html[data-theme="dark"] body[data-template="x74"] .team-introduce-table td,
html[data-theme="dark"] body[data-template="x74"] .team-introduce-table th {
  background: transparent !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .team-introduce-table td:first-child {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .transfer-player .name,
html[data-theme="dark"] body[data-template="x74"] .transfer-teams .team-name {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .transfer-player .brief,
html[data-theme="dark"] body[data-template="x74"] .transfer-teams .date-text,
html[data-theme="dark"] body[data-template="x74"] .transfer-teams .arrow-down {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .transfer-player .player-avatar {
  background: var(--hx-surface) !important;
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .info-toggle-arrow {
  color: var(--hx-accent-strong) !important;
}

/* Team page tables / lineup / rank panels with hard-coded light colors */
html[data-theme="dark"] body[data-template="x74"] .team_player_list table {
  background: transparent !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .team_player_list th,
html[data-theme="dark"] body[data-template="x74"] .team_player_list td {
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .team_player_list th {
  background: var(--hx-elevated) !important;
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .team_player_list tbody td {
  background: transparent !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .team_player_list
  .team-data-table
  tbody
  tr:nth-child(even)
  td,
html[data-theme="dark"]
  body[data-template="x74"]
  .team_player_list
  table
  tbody
  tr:nth-child(even)
  td,
html[data-theme="dark"]
  body[data-template="x74"]
  .team_transfer_list
  .team-data-table
  tbody
  tr:nth-child(even)
  td,
html[data-theme="dark"]
  body[data-template="x74"]
  #tab-transfers
  .team-data-table
  tbody
  tr:nth-child(even)
  td,
html[data-theme="dark"]
  body[data-template="x74"]
  table.team-data-table.desktop-only
  tbody
  tr:nth-child(even)
  td {
  background: var(--hx-elevated) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .team_transfer_list
  .team-data-table
  tbody
  tr:nth-child(even),
html[data-theme="dark"]
  body[data-template="x74"]
  #tab-transfers
  .team-data-table
  tbody
  tr:nth-child(even),
html[data-theme="dark"]
  body[data-template="x74"]
  table.team-data-table.desktop-only
  tbody
  tr:nth-child(even) {
  background: var(--hx-elevated) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .team_player_list
  .team-data-table
  tbody
  tr:hover
  td,
html[data-theme="dark"]
  body[data-template="x74"]
  .team_player_list
  table
  tbody
  tr:hover
  td {
  background: var(--hx-hover) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .team_player_list a {
  color: var(--hx-link) !important;
}

html[data-theme="dark"] body[data-template="x74"] .team_player_list a:hover {
  color: var(--hx-accent-strong) !important;
}

/* Team match history (mh-*) — beat inline light styles */
html[data-theme="dark"] body[data-template="x74"] .mh-page-box {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-point-tool {
  border-bottom-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-point-tool li {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-point-tool li:hover,
html[data-theme="dark"] body[data-template="x74"] .mh-point-tool li.active {
  color: var(--hx-accent-strong) !important;
  border-bottom-color: var(--hx-accent) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-month-list li {
  background: var(--hx-elevated) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-month-list li:hover {
  border-color: var(--hx-accent) !important;
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-month-list li.active {
  background: var(--hx-accent) !important;
  border-color: var(--hx-accent) !important;
  color: #fff !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-dropdown-btn {
  background: var(--hx-elevated) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-dropdown-btn:hover {
  border-color: var(--hx-accent) !important;
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-dropdown-list {
  background: var(--hx-elevated) !important;
  border-color: var(--hx-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-dropdown-list li {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-dropdown-list li:hover,
html[data-theme="dark"] body[data-template="x74"] .mh-dropdown-list li.active {
  background: var(--hx-accent-soft) !important;
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-table th {
  background: var(--hx-elevated) !important;
  color: var(--hx-text-muted) !important;
  border-bottom-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-sub {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-tr {
  background: var(--hx-surface) !important;
  border-bottom-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .mh-tr:nth-child(even) {
  background: var(--hx-elevated) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-tr:hover {
  background: var(--hx-hover) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-table td {
  background: transparent !important;
  color: var(--hx-text) !important;
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-td-date,
html[data-theme="dark"] body[data-template="x74"] .mh-time-sub,
html[data-theme="dark"] body[data-template="x74"] .mh-score-half,
html[data-theme="dark"] body[data-template="x74"] .mh-vs,
html[data-theme="dark"] body[data-template="x74"] .mh-no-data {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-kind-tag {
  background: var(--hx-surface) !important;
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-tname {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-cur-team .mh-tname {
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-odds-num {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-ha-badge.mh-home,
html[data-theme="dark"] body[data-template="x74"] .mh-ha-text.mh-home {
  background: var(--hx-accent-soft) !important;
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-ha-badge.mh-away,
html[data-theme="dark"] body[data-template="x74"] .mh-ha-text.mh-away {
  background: rgba(230, 126, 34, 0.22) !important;
  color: #ffb074 !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-win {
  color: #ff8a80 !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-lose {
  color: #81c784 !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-r1 {
  background: rgba(67, 160, 71, 0.22) !important;
  color: #81c784 !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-r2 {
  background: rgba(198, 40, 40, 0.25) !important;
  color: #ff8a80 !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-r0 {
  background: var(--hx-surface) !important;
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-summary-footer {
  background: var(--hx-elevated) !important;
  color: var(--hx-text) !important;
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-summary-footer .sp-rate {
  color: var(--hx-accent-strong) !important;
}

@media (max-width: 768px) {
  html[data-theme="dark"] body[data-template="x74"] .mh-table tr.mh-tr {
    background: var(--hx-elevated) !important;
    border: 0 !important;
  }

  html[data-theme="dark"]
    body[data-template="x74"]
    .mh-table
    td:nth-child(3),
  html[data-theme="dark"]
    body[data-template="x74"]
    .mh-table
    td:nth-child(4),
  html[data-theme="dark"]
    body[data-template="x74"]
    .mh-table
    td:nth-child(5) {
    background: var(--hx-surface) !important;
    border: 0 !important;
  }
}

/* Match history — no grid borders */
html[data-theme="dark"] body[data-template="x74"] .mh-table,
html[data-theme="dark"] body[data-template="x74"] .mh-table th,
html[data-theme="dark"] body[data-template="x74"] .mh-table td,
html[data-theme="dark"] body[data-template="x74"] .mh-tr {
  border: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-tr {
  border-bottom: 1px solid var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .mh-month-list li {
  border: 0 !important;
}

/* Schedule block header + filters */
html[data-theme="dark"] body[data-template="x74"] .section-tit,
html[data-theme="dark"] body[data-template="x74"] .section-tit h2,
html[data-theme="dark"] body[data-template="x74"] .section-tit span {
  color: var(--hx-text) !important;
  border-bottom-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .section-tit a,
html[data-theme="dark"] body[data-template="x74"] .x74-section-more-link {
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"] body[data-template="x74"] .item-block {
  background: var(--hx-surface) !important;
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .team-match-filters,
html[data-theme="dark"] body[data-template="x74"] .filter-container {
  background: transparent !important;
  border: 0 !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .team-match-filters .filter-btn,
html[data-theme="dark"] body[data-template="x74"] .league-filters .filter-btn {
  background: var(--hx-accent-soft) !important;
  border: 0 !important;
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .team-match-filters
  .filter-btn.active,
html[data-theme="dark"]
  body[data-template="x74"]
  .team-match-filters
  .filter-btn:hover,
html[data-theme="dark"]
  body[data-template="x74"]
  .league-filters
  .filter-btn.active,
html[data-theme="dark"]
  body[data-template="x74"]
  .league-filters
  .filter-btn:hover {
  background: var(--hx-accent) !important;
  color: #fff !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .team-match-filters
  .location-filters,
html[data-theme="dark"]
  body[data-template="x74"]
  .team-match-filters
  .location-filters
  label {
  color: var(--hx-text) !important;
}

/* Best / data tables */
html[data-theme="dark"] body[data-template="x74"] .x74-best-rank .rank-side-tabs,
html[data-theme="dark"] body[data-template="x74"] .rank-side-tabs {
  background: transparent !important;
  border: 0 !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-best-rank .tab-item,
html[data-theme="dark"] body[data-template="x74"] .rank-side-tabs .tab-item {
  background: var(--hx-accent-soft) !important;
  color: var(--hx-text) !important;
  border: 0 !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-best-rank
  .tab-item.active,
html[data-theme="dark"]
  body[data-template="x74"]
  .x74-best-rank
  .tab-item:hover,
html[data-theme="dark"]
  body[data-template="x74"]
  .rank-side-tabs
  .tab-item.active,
html[data-theme="dark"]
  body[data-template="x74"]
  .rank-side-tabs
  .tab-item:hover {
  background: var(--hx-accent) !important;
  color: #fff !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-best-rank-table th,
html[data-theme="dark"] body[data-template="x74"] .x74-best-rank-table td {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-best-rank-table thead th {
  background: var(--hx-elevated) !important;
  color: var(--hx-text-muted) !important;
  border-bottom: 0 !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .x74-best-player__name {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-best-player__en,
html[data-theme="dark"] body[data-template="x74"] .x74-best-rank-table .col-matches {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-best-player img {
  background: var(--hx-surface) !important;
}

html[data-theme="dark"] body[data-template="x74"] .lineup-table,
html[data-theme="dark"] body[data-template="x74"] .data-table,
html[data-theme="dark"] body[data-template="x74"] .lineup-table th,
html[data-theme="dark"] body[data-template="x74"] .lineup-table td,
html[data-theme="dark"] body[data-template="x74"] .data-table th,
html[data-theme="dark"] body[data-template="x74"] .data-table td {
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .lineup-table th,
html[data-theme="dark"] body[data-template="x74"] .data-table th {
  background: var(--hx-elevated) !important;
  color: var(--hx-text-muted) !important;
  border-bottom: 0 !important;
}

html[data-theme="dark"] body[data-template="x74"] .lineup-table td,
html[data-theme="dark"] body[data-template="x74"] .data-table td {
  background: transparent !important;
  border-bottom: 1px solid var(--hx-border) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .lineup-table
  tr:nth-child(even)
  td,
html[data-theme="dark"]
  body[data-template="x74"]
  .data-table
  tbody
  tr:nth-child(even)
  td {
  background: var(--hx-elevated) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .lineup-table
  tr:hover
  td,
html[data-theme="dark"]
  body[data-template="x74"]
  .data-table
  tbody
  tr.data-row:hover
  td {
  background: var(--hx-hover) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .data-table
  tr.total-row
  td {
  background: #1f3a3c !important;
  color: #e8f4f5 !important;
  border-top: 0 !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .data-table
  thead
  tr
  th:first-child,
html[data-theme="dark"]
  body[data-template="x74"]
  .data-table
  tbody
  tr
  td:first-child {
  background: var(--hx-elevated) !important;
  color: var(--hx-text) !important;
  box-shadow: none !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .data-table
  tbody
  tr.total-row
  td:first-child {
  background: #1f3a3c !important;
  color: #e8f4f5 !important;
}

/* Player info page — replace inline light surfaces and text */
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .x74-content-body,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .team_introduce,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .item-block,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .tab-container,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .tab-content,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .tab-pane {
  background: var(--hx-surface) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .info-card-container,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-detail-grid,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-basic-info-content,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bgwhite,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-honors {
  background: var(--hx-elevated) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .base-header {
  background-image:
    linear-gradient(90deg, rgba(21, 32, 34, 0.98) 30%, rgba(21, 32, 34, 0.88) 62%, rgba(21, 32, 34, 0.2) 100%),
    url("/static/x74/images/player-bg.jpg") !important;
  border-bottom-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .header-left .icon,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-basic-info1 .logo {
  background: var(--hx-surface) !important;
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-title,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-basic-info-name,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .grid-item .val,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .grid-item-full .val {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .en-name,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-basic-info-name-en,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-basic-info-team,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .grid-item .label,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .grid-item-full .label {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .jersey-num,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .highlight-team {
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .header-right-worth {
  background: #b51f2a !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-basic-info1 {
  border-bottom-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-teach-info .info-item {
  background: var(--hx-surface) !important;
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-teach-info .info-item h4 {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-teach-info .info-item p {
  color: var(--hx-text-muted) !important;
}

/* Player tabs */
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .tabs {
  background: var(--hx-elevated) !important;
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .tabs .tab {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .tabs .tab:hover,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .tabs .tab:focus-visible {
  background: var(--hx-hover) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .tabs .tab.active {
  background: var(--hx-accent) !important;
  color: var(--hx-on-accent) !important;
  font-weight: 700;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page button:focus-visible,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page [role="button"]:focus-visible {
  outline: 2px solid var(--hx-accent-strong) !important;
  outline-offset: 2px;
}

/* Radar and technical-stat panels */
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .section-tit {
  background: transparent !important;
  border-bottom-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .section-tit span,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .section-tit h2,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .section-tit h3 {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-stats-wrap .match,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-stats-wrap .match1 {
  background: var(--hx-surface) !important;
  border-bottom-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-stats-wrap .matchList,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-stats-wrap .matchList.isEvenChild {
  background: transparent !important;
  border-bottom-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-stats-wrap .matchList.isEvenChild {
  background: var(--hx-elevated) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-stats-wrap .zhuangtai {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-stats-wrap .shuju {
  color: var(--hx-text) !important;
}

/* Honors */
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-honors h3 {
  border-left: 0 !important;
  border-bottom: 1px solid var(--hx-border) !important;
  color: var(--hx-text) !important;
  padding: 0 0 10px !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .honor-item {
  border-bottom-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .honor-title,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .honor-details {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .honor-title > span {
  background: rgba(255, 77, 79, 0.18) !important;
  color: #ff9b9d !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .honor-details > span,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .honor-tag-card,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .player-honors.mobile-only .honor-list > div > div {
  background: #2e2a1d !important;
  border-color: #6e6027 !important;
  color: #f2e7b0 !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .honor-details span,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .honor-tag-meta {
  color: #d8ca8e !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .honor-tag-name {
  color: #fff2b8 !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page #toggleHonorBtn {
  color: #ff9b9d !important;
}

/* Football match filters and rows */
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .match-filter-buttons,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .pm-desktop-header {
  background: var(--hx-elevated) !important;
  border-bottom-color: var(--hx-border) !important;
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .pm-filter-btn {
  background: var(--hx-surface) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .pm-filter-btn:hover,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .pm-filter-btn.active {
  background: var(--hx-accent) !important;
  border-color: var(--hx-accent) !important;
  color: var(--hx-on-accent) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .pm-match-item {
  background: var(--hx-surface) !important;
  border-bottom-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .pm-match-item:hover {
  background: var(--hx-hover) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .pm-info-center {
  border-left-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .pm-info-left .league,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .pm-team-info .name,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .pm-team-score,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .pm-col-home,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .pm-col-away {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .pm-info-left .time,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .pm-col-league,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .pm-col-round,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .pm-col-time,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .pm-col-half,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .pm-col-func {
  color: var(--hx-text-muted) !important;
}

/* Basketball cards and wide table */
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-filter-bar,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-card,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-card-left,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-card-right {
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-filter-btn {
  background: var(--hx-surface) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-filter-btn.active {
  background: var(--hx-accent) !important;
  border-color: var(--hx-accent) !important;
  color: var(--hx-on-accent) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-team-info .bpm-tname,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-score-cell,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-stat-pill .bpm-sv,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-badge strong {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-date,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-stat-pill .bpm-sl,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-stat-extras {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-badge {
  background: var(--hx-hover) !important;
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-desktop-table {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-desktop-table thead tr {
  background: var(--hx-elevated) !important;
  border-bottom-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-desktop-table th {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-desktop-table tbody tr {
  background: var(--hx-surface) !important;
  border-bottom-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-desktop-table tbody tr:hover {
  background: var(--hx-hover) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-desktop-table td,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-desktop-table td span {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-score-box {
  background: var(--hx-hover) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .bpm-no-data,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page p[style*="color: #999"] {
  color: var(--hx-text-muted) !important;
}

/* Basketball season statistics */
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .home-table-lineup {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .point-tool {
  border-bottom-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .point-tool ul li,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .changing-but p,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .but-list li {
  background: var(--hx-elevated) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .point-tool ul li:hover,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .changing-but p:hover,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .but-list li:hover {
  background: var(--hx-hover) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .point-tool ul li.active,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .changing-but p.active,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .but-list li.active {
  background: var(--hx-accent) !important;
  border-color: var(--hx-accent) !important;
  color: var(--hx-on-accent) !important;
  font-weight: 700;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .changing-but,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .select-team,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .select-team ul {
  background: var(--hx-elevated) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .select-team ul {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .select-team ul li:hover {
  background: var(--hx-hover) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .select-team ul li.active {
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .point-table {
  background: var(--hx-surface) !important;
  border-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .season-data-table {
  background: var(--hx-surface) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .season-data-table th {
  background: var(--hx-elevated) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .season-data-table td {
  background: var(--hx-surface) !important;
  border-color: var(--hx-border) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .season-data-table tbody tr:nth-child(even) td {
  background: var(--hx-elevated) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .season-data-table tbody tr:hover td {
  background: var(--hx-hover) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .season-data-table .no-data-msg {
  background: var(--hx-surface) !important;
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .lineup-table a,
html[data-theme="dark"] body[data-template="x74"] .data-table a {
  color: var(--hx-link) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .lineup-table
  .player-name-zh,
html[data-theme="dark"]
  body[data-template="x74"]
  .lineup-table
  a
  .player-name-zh,
html[data-theme="dark"]
  body[data-template="x74"]
  .lineup-table
  .player-cell
  a {
  color: var(--hx-link) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .lineup-table
  .player-name-en {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .lineup-table
  a:hover
  .player-name-zh {
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"] body[data-template="x74"] .filter-header,
html[data-theme="dark"] body[data-template="x74"] .scope-type-switch,
html[data-theme="dark"] body[data-template="x74"] .data-type-switch {
  background: transparent !important;
  color: var(--hx-text) !important;
  border: 0 !important;
  border-color: transparent !important;
}

html[data-theme="dark"] body[data-template="x74"] .filter-header .tab-btn,
html[data-theme="dark"] body[data-template="x74"] .filter-header .switch-btn,
html[data-theme="dark"] body[data-template="x74"] .switch-btn,
html[data-theme="dark"] body[data-template="x74"] .tab-btn {
  background: var(--hx-accent-soft) !important;
  border: 0 !important;
  color: var(--hx-accent-strong) !important;
  box-shadow: none !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .filter-header
  .tab-btn.active,
html[data-theme="dark"]
  body[data-template="x74"]
  .filter-header
  .switch-btn.active,
html[data-theme="dark"]
  body[data-template="x74"]
  .filter-header
  .tab-btn:hover,
html[data-theme="dark"]
  body[data-template="x74"]
  .filter-header
  .switch-btn:hover,
html[data-theme="dark"] body[data-template="x74"] .switch-btn.active,
html[data-theme="dark"] body[data-template="x74"] .switch-btn:hover,
html[data-theme="dark"] body[data-template="x74"] .tab-btn.active,
html[data-theme="dark"] body[data-template="x74"] .tab-btn:hover {
  background: var(--hx-accent) !important;
  color: #fff !important;
}

html[data-theme="dark"] body[data-template="x74"] .lineup-sub-tabs {
  border-bottom-color: var(--hx-border) !important;
}

html[data-theme="dark"] body[data-template="x74"] .sub-tab-btn {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .sub-tab-btn:hover,
html[data-theme="dark"] body[data-template="x74"] .sub-tab-btn.active {
  color: var(--hx-accent-strong) !important;
  border-bottom-color: var(--hx-accent) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .data-table
  tr.total-row
  td,
html[data-theme="dark"]
  body[data-template="x74"]
  .data-table
  tbody
  tr.total-row
  td,
html[data-theme="dark"]
  body[data-template="x74"]
  .data-table
  tbody
  tr.total-row
  td:first-child {
  background: #1f3a3c !important;
  color: #e8f4f5 !important;
  border: 0 !important;
  border-top: 0 !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .table-responsive,
html[data-theme="dark"]
  body[data-template="x74"]
  .lineup-desktop-view,
html[data-theme="dark"]
  body[data-template="x74"]
  .lineup-desktop-container {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

html[data-theme="dark"] body[data-template="x74"] .lineup-card {
  background: var(--hx-elevated) !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-template="x74"] .lineup-card .name {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .lineup-card .role {
  color: var(--hx-accent-strong) !important;
  background: var(--hx-accent-soft) !important;
}

html[data-theme="dark"] body[data-template="x74"] .lineup-card .meta,
html[data-theme="dark"] body[data-template="x74"] .lineup-card .meta span {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .data-table
  thead
  tr
  th:first-child,
html[data-theme="dark"]
  body[data-template="x74"]
  .data-table
  tbody
  tr
  td:first-child {
  background: var(--hx-surface) !important;
  box-shadow: none !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .data-table
  tbody
  tr:nth-child(even)
  td:first-child {
  background: var(--hx-elevated) !important;
}

html[data-theme="dark"]
  body[data-template="x74"]
  .data-table
  tbody
  tr.total-row
  td:first-child {
  background: #1f3a3c !important;
  color: #e8f4f5 !important;
}

/* Player page tabs — r62 underline style */
html[data-theme="dark"] body[data-template="x74"] .tab-container > .tabs {
  background: transparent !important;
  border-bottom-color: var(--x74-border, #2a3545) !important;
}

html[data-theme="dark"] body[data-template="x74"] .tab-container > .tabs > .tab,
html[data-theme="dark"] body[data-template="x74"] .tab-container > .tabs > h2.tab,
html[data-theme="dark"] body[data-template="x74"] .tab-container > .tabs > button.tab {
  background: var(--hx-elevated) !important;
  /* --x74-muted is light-theme dark gray (#3d3f40); use hx tokens */
  color: var(--hx-text-muted) !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body[data-template="x74"] .tab-container > .tabs > .tab:hover:not(.active),
html[data-theme="dark"] body[data-template="x74"] .tab-container > .tabs > h2.tab:hover:not(.active),
html[data-theme="dark"] body[data-template="x74"] .tab-container > .tabs > button.tab:hover:not(.active) {
  background: var(--hx-hover) !important;
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .tab-container > .tabs > .tab.active,
html[data-theme="dark"] body[data-template="x74"] .tab-container > .tabs > h2.tab.active,
html[data-theme="dark"] body[data-template="x74"] .tab-container > .tabs > button.tab.active {
  background: var(--hx-surface) !important;
  color: var(--hx-accent-strong) !important;
  border-bottom-color: var(--hx-accent) !important;
  box-shadow: none !important;
}

/* Also fix older pill-tab rules under .x74-player-info-page */
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .tabs .tab {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .tabs .tab:hover,
html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .tabs .tab:focus-visible {
  color: var(--hx-text) !important;
}

html[data-theme="dark"] body[data-template="x74"] .x74-player-info-page .tabs .tab.active {
  background: transparent !important;
  color: var(--hx-accent-strong) !important;
}

html[data-theme="dark"] body[data-template="x74"] .player-stats-wrap .ps-section {
  background: var(--x74-surface, #1a2332) !important;
  border-color: var(--x74-border, #2a3545) !important;
}

html[data-theme="dark"] body[data-template="x74"] .player-stats-wrap .ps-section__title {
  color: var(--x74-accent, #39d0d3) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-bottom-color: var(--x74-border, #2a3545) !important;
}

html[data-theme="dark"] body[data-template="x74"] .player-stats-wrap .ps-row {
  border-color: var(--x74-border, #2a3545) !important;
  background: var(--x74-surface, #1a2332) !important;
  color: var(--x74-text, #e8edf4) !important;
}

html[data-theme="dark"] body[data-template="x74"] .player-stats-wrap .ps-row:nth-child(4n + 3),
html[data-theme="dark"] body[data-template="x74"] .player-stats-wrap .ps-row:nth-child(4n + 4) {
  background: var(--x74-elevated, #243040) !important;
}

html[data-theme="dark"] body[data-template="x74"] .player-stats-wrap .ps-label {
  color: var(--hx-text-muted) !important;
}

html[data-theme="dark"] body[data-template="x74"] .player-stats-wrap .ps-value {
  color: var(--x74-text, #e8edf4) !important;
}
