/* x74 chrome: visual language aligned with x0, keep x74 markup/behavior */

:root {
  --primary-color: #039ea1;
  --header-bg: linear-gradient(-180deg, #039ea1 5%, #0a9a74 95%);
  --navbar-link-hover: #e8faf4;
  --footer-border-color: #097a5c;
  --footer-bg-color: #064d3b;
  --footer-link-text-color: #e8faf4;
  --footer-muted-text: #b7e8d8;
  --friendly-bg-color: #0a8a68;
  --match-signal-end-bg-color: #0a8a68 100%;
  --match-signal-end-color: #fff;
}

body {
  background: #f2f5f9;
}

/* ===== Header ===== */
.header {
  height: auto;
  min-height: 56px;
  line-height: normal;
  background: var(--header-bg);
  border-bottom: none;
  color: #fff;
}

.header .container.flex-between {
  max-width: 1280px;
  width: auto;
  margin: 0 auto;
  padding: 10px 20px;
  gap: 16px;
}

.header_logo {
  display: flex;
  align-items: center;
}

.header_logo a {
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.header_logo img {
  height: 28px;
  margin: 0;
  max-width: 180px;
}

.header_logo strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
}

.header nav,
.header-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.header_menu {
  gap: 2px;
}

.menu-icon {
  display: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  padding: 4px 6px;
  user-select: none;
}

.header_menu_item {
  padding: 0 2px;
}

.header_menu_item a {
  position: relative;
  color: #fff;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 4px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.header_menu_item a:hover {
  color: var(--navbar-link-hover);
}

.header_menu_item a:after {
  content: "";
  display: block;
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #fff;
  transition:
    width 0.25s ease,
    left 0.25s ease;
}

.header_menu_item a:hover:after {
  width: calc(100% - 20px);
  left: 10px;
}

.header_menu_item.active a {
  color: #fff;
  font-weight: 600;
}

.header_menu_item.active a:after {
  width: calc(100% - 20px);
  left: 10px;
  top: auto;
  margin-left: 0;
  height: 2px;
  border-radius: 0;
  background: #fff;
}

.header_menu_more_btn {
  color: #fff;
  line-height: normal;
  padding: 10px 10px;
  gap: 6px;
}

.header_menu_more_btn:after {
  border-top-color: #f0ead2;
}

.header_menu_item .header_menu_item_item {
  background: var(--primary-color);
  border: 1px solid rgba(240, 234, 210, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  top: calc(100% + 4px);
}

.header_menu_item .header_menu_item_item li a {
  color: #fff;
}

.header_menu_item .header_menu_item_item li a:hover {
  background: rgba(240, 234, 210, 0.16);
  color: #fff;
}

.header_menu_item .header_menu_item_item li a:after {
  display: none;
}

/* ===== Footer ===== */
.footer-wrapper {
  background: var(--footer-bg-color);
  border-top: 4px solid var(--footer-border-color);
  color: #fff;
  padding: 24px 0 28px;
  text-align: center;
}

.footer-wrapper .container.mx96 {
  max-width: 1280px;
  width: auto;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-wrapper .footer-hot-league {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 14px;
}

.footer-wrapper .footer-hot-tit {
  color: #fff;
}

.footer-wrapper .footer-hot-league a {
  color: var(--footer-link-text-color);
  margin: 0 4px;
}

.footer-wrapper .footer-hot-league a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-wrapper .footer-desc {
  max-width: 711px;
  margin: 0 auto;
  padding: 8px 0 12px;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  line-height: 1.7;
}

.footer-wrapper .footer-copyright {
  color: var(--footer-muted-text);
  font-size: 13px;
  line-height: 1.8;
}

.footer-wrapper .footer-copyright a {
  color: var(--footer-link-text-color);
  text-decoration: underline;
  margin: 0 4px;
}

.footer-wrapper .footer-copyright a:hover {
  color: #fff;
}

/* Back to top (x0 rocket) */
#rocket {
  position: fixed;
  bottom: 70px;
  right: 8px;
  z-index: 40;
}

#rocket a {
  display: block;
  line-height: 0;
}

#rocket img {
  width: 44px;
  height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  .header_menu_item a,
  .header_menu_item a:after {
    transition: none;
  }
}

@media (max-width: 1100px) and (min-width: 781px) {
  .header_menu_item a,
  .header_menu_more_btn {
    font-size: 13px;
    padding: 10px 6px;
  }

  .header_logo img {
    height: 26px;
    max-width: 150px;
  }
}

@media (max-width: 780px) {
  .header {
    background: var(--header-bg);
  }

  .header .container.flex-between {
    flex-wrap: nowrap;
    align-items: center;
    padding: 8px 12px;
    gap: 12px;
  }

  .header_logo img {
    height: 28px;
    padding-left: 0;
  }

  .header nav,
  .header-nav {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    align-items: center;
  }

  .menu-icon {
    display: block;
  }

  .header_menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    margin: 0;
    padding: 12px 0;
    gap: 0;
    background: var(--primary-color);
    border: 1px solid rgba(240, 234, 210, 0.18);
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    overflow: visible;
    z-index: 1000;
  }

  .header_menu.active {
    display: flex;
  }

  .header_menu_item {
    display: block;
    line-height: normal;
    padding: 0;
    white-space: normal;
  }

  .header_menu_item a {
    font-size: 14px;
    color: #fff;
    padding: 10px 16px;
    border-radius: 0;
  }

  .header_menu_item a:hover,
  .header_menu_item a:focus-visible {
    background: rgba(240, 234, 210, 0.16);
    color: #fff;
  }

  .header_menu_item a:after {
    display: none;
  }

  .header_menu_item.active a {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
  }

  .header_menu_more {
    display: block;
  }

  .header_menu_more_btn {
    display: none;
  }

  .header_menu_more .header_menu_item_item {
    display: block;
    position: static;
    transform: none;
    background: transparent;
    box-shadow: none;
    border: 0;
    padding: 0;
    min-width: 0;
  }

  .header_menu_more .header_menu_item_item li {
    display: block;
    line-height: normal;
    padding: 0;
  }

  .header_menu_more .header_menu_item_item li a {
    line-height: normal;
    font-size: 14px;
    color: #fff;
    padding: 10px 16px 10px 28px;
    background: transparent;
  }

  .header_menu_more .header_menu_item_item li a:hover {
    background: rgba(240, 234, 210, 0.16);
    color: #fff;
  }

  .footer-wrapper .footer-hot-league {
    justify-content: flex-start;
    text-align: left;
  }
}

/* ===== Index (x0-inspired) ===== */
@font-face {
  font-family: "douyuFont";
  src: url("/static/fonts/douyuFont-2.otf") format("opentype");
  font-display: swap;
}

.banner {
  width: 100%;
  height: 240px;
  position: relative;
  user-select: none;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(51, 74, 79, 1) 0%,
    rgba(35, 37, 51, 1) 50%,
    rgba(28, 39, 64, 1) 100%
  );
  margin: 0 auto;
  max-width: 1280px;
}

.banner img {
  position: absolute;
  right: 90%;
  top: 0;
  width: auto;
  height: 90%;
  transform: scale(2.5);
  transform-origin: top left;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 3%,
    rgba(0, 0, 0, 1) 93%,
    rgba(0, 0, 0, 0) 100%
  );
}

.banner .banner-word {
  position: absolute;
  color: #fff;
  top: 50%;
  transform: translateY(-50%);
  left: 21%;
  width: 90%;
  z-index: 1;
}

.banner-word h1 {
  font-size: 40px;
  font-weight: 100;
  letter-spacing: 0.2em;
  font-family: "douyuFont", "Microsoft Yahei", sans-serif;
  text-shadow: 5px 5px 3px #333;
  text-wrap: balance;
  margin-bottom: 12px;
}

.button-80 {
  margin: 3px auto 0 auto;
  background: #f0ead2;
  backface-visibility: hidden;
  border-radius: 0.375rem;
  border-style: solid;
  border-width: 0.125rem;
  box-sizing: border-box;
  color: #212121;
  cursor: pointer;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  padding: 8px 10px;
  position: relative;
  text-align: left;
  text-decoration: none;
  transform: translateZ(0) scale(1);
  transition: transform 0.2s ease;
  user-select: none;
}

.button-80:hover {
  transform: scale(1.05);
  color: #000;
}

.index-shell {
  max-width: 1280px;
  width: auto;
  margin: 0 auto;
  padding: 0 12px 20px;
}

.index-layout {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.index-layout .container_left {
  width: 840px;
  max-width: 100%;
  float: none;
  background: #fff;
  border-radius: 8px;
  box-sizing: border-box;
}

.index-layout .container_right {
  float: none;
}

.index-streams {
  width: 100%;
}

.troggle-btn-area {
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  padding-left: 10px;
  margin: 10px 0;
}

.troggle-btn-area .troggle-btn {
  width: 110px;
  height: 40px;
  cursor: pointer;
  box-shadow:
    0 10px 10px rgba(0, 0, 0, 0.25),
    0 5px 5px rgba(0, 0, 0, 0.22);
  border-radius: 10px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  filter: grayscale(100%);
  transition:
    filter 0.2s ease,
    background-color 0.2s ease;
  margin: 10px 5px;
  color: #fff;
  background-color: #262525a1;
  font-size: 16px;
  font-weight: bold;
}

.troggle-btn-area .troggle-btn.active {
  background-color: var(--primary-color);
  filter: none;
}

.league-live-strip {
  border-top: 1px double var(--footer-link-text-color);
}

.league-live-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.league-live-inner a {
  color: var(--footer-link-text-color);
  text-decoration: none;
  padding: 4px 6px;
  line-height: 1.2;
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 14px;
}

.league-live-inner a:hover {
  text-decoration: underline;
  color: #fff;
}

.stream-game-item,
.index-streams .match-item.stream-game-item,
.index-other-matches .match-item.stream-game-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 95%;
  min-height: 64px;
  height: auto;
  margin: 0 auto;
  padding: 10px 8px;
  border-top: 1px dashed #c6c6c6;
  border-bottom: 1px dashed #c6c6c6;
  border-bottom-color: #c6c6c6 !important;
  box-sizing: border-box;
  gap: 8px;
}

.stream-game-item .time {
  align-items: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 48px;
  max-width: none;
  overflow: visible;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #222;
  white-space: nowrap;
}

.stream-game-item .league {
  display: flex;
  align-items: center;
  width: 18%;
  min-width: 72px;
  color: var(--primary-color);
}

.stream-game-item .league a {
  color: var(--primary-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.behind-part {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  min-width: 0;
  width: auto;
  gap: 12px;
}

.team-info-content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: right;
  flex: 1;
}

.team-info-content .team {
  display: flex;
  align-items: center;
  margin: 0 12px;
  min-width: 0;
}

.team-info-content figure.team {
  margin: 0 12px;
}

.team-info-content .team .home,
.team-info-content .team .away {
  display: inline-block;
  width: 100px;
  margin: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #222;
}

.team-info-content .team .home {
  text-align: right;
}

.team-info-content .team .away {
  text-align: left;
}

.team-info-content .team img,
.stream-game-item .team-info-content img {
  width: 30px;
  height: 30px;
  max-width: none;
  object-fit: contain;
  display: block;
}

.stream-game-item .team-info-content picture {
  display: inline-flex;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
}

.team-info-content .vs {
  font-weight: 700;
  min-width: 36px;
  text-align: center;
  color: #333;
}

/* Reset 24zhibo .info_right conflicts on stream cards */
.stream-game-item .stream-play.info_right,
.match-item.stream-game-item .info_right,
.match-item.stream-game-item .info_right.start {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  line-height: normal;
  overflow: visible;
  box-shadow: none;
}

.stream-game-item .stream-play,
.stream-game-item .stream-play.info_right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stream-game-item .stream-play-link,
.match-item.stream-game-item .info_right a,
.match-item.stream-game-item .info_right.start a {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  width: auto;
  min-width: 84px;
  height: 34px;
  padding: 0 14px;
  margin: 0;
  border: none;
  border-radius: 6px;
  background: var(--match-signal-end-bg-color, #9e0059);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  box-shadow: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    opacity 0.2s ease;
}

.stream-game-item .stream-play-link span {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
}

.stream-game-item .stream-play-link:hover,
.match-item.stream-game-item .info_right a:hover,
.match-item.stream-game-item .info_right.start a:hover {
  background: #005f7a;
  color: #fff;
  filter: none;
  opacity: 1;
}

.stream-game-item .time .clock {
  display: inline;
  overflow: visible;
  line-height: 1.4;
  font-size: inherit;
  font-weight: inherit;
}

.index-other-matches .section-title,
.league-streams .section-title,
.index-layout .section-title {
  width: 100%;
  margin: 8px 0 4px;
  padding: 10px 0 0;
  box-sizing: border-box;
}

.index-other-matches .section-title h2,
.league-streams .section-title h1,
.league-streams .section-title h2,
.index-layout .section-title h1,
.index-layout .section-title h2 {
  font-size: 1rem;
  color: var(--primary-color);
  display: inline-block;
  padding: 0 15px;
  letter-spacing: 2px;
  position: relative;
  margin: 0 0 0 20px;
  font-weight: 700;
  line-height: 1.3;
}

.league-streams .section-title h2 em {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: #888;
  font-style: normal;
}

.index-other-matches .section-title h2:before,
.league-streams .section-title h1:before,
.league-streams .section-title h2:before,
.index-layout .section-title h1:before,
.index-layout .section-title h2:before {
  content: "";
  position: absolute;
  width: 5px;
  height: 100%;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
  transform: translateX(-50%);
  border-radius: 2px;
}

.league-page-top {
  padding: 0 12px;
}

.league-day-group {
  margin-bottom: 8px;
}

.team-info-content .team .home a,
.team-info-content .team .away a {
  color: inherit;
  text-decoration: none;
}

.team-info-content .team .home a:hover,
.team-info-content .team .away a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.friend-wrapper.friendly-area {
  background: var(--friendly-bg-color, #001d3d);
  color: #fff;
  padding: 16px 0;
}

.friend-wrapper .friendly-area-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.friend-wrapper .friendly-area-content span,
.friend-wrapper .friendly-area-content a {
  color: var(--footer-link-text-color);
  line-height: 1.8;
  margin: 0 5px;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .button-80,
  .troggle-btn-area .troggle-btn {
    transition: none;
  }

  .button-80:hover {
    transform: none;
  }
}

@media (max-width: 780px) {
  .banner .banner-word {
    left: 38%;
    width: 70%;
  }

  .banner-word h2 {
    font-size: 22px;
    letter-spacing: 0.08em;
    line-height: 1.45;
  }

  .troggle-btn-area .troggle-btn {
    width: auto;
    min-width: 96px;
    height: 36px;
    font-size: 14px;
    margin: 6px 4px;
    padding: 0 8px;
  }

  .troggle-btn-area .troggle-btn img {
    width: 18px;
    height: 18px;
  }

  /* Mobile match card: stacked teams layout (desktop unchanged) */
  .stream-game-item,
  .index-streams .match-item.stream-game-item,
  .index-other-matches .match-item.stream-game-item,
  .league-streams .match-item.stream-game-item {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-height: 68px;
    height: auto;
    margin: 0;
    padding: 12px 10px;
    border-top: none;
    border-bottom: 1px dashed #d0d0d0;
    border-bottom-color: #d0d0d0 !important;
    box-sizing: border-box;
  }

  .stream-game-item .time {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    flex: 0 0 92px !important;
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    overflow: hidden;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
  }

  .stream-game-item .time .date,
  .stream-game-item .time .clock {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .stream-game-item .time .date + .clock::before {
    content: none;
  }

  .stream-game-item .time .clock {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .stream-game-item .league {
    display: block !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 0 !important;
    max-width: 44px !important;
    margin: 0;
    overflow: hidden;
    font-size: 12px;
    color: #444;
  }

  .stream-game-item .league a {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
  }

  .stream-game-item .behind-part {
    display: flex !important;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
    min-width: 0;
  }

  .stream-game-item .team-info-content {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    text-align: right;
  }

  .stream-game-item .team-info-content .team,
  .stream-game-item .team-info-content figure.team {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .stream-game-item .team-info-content figure.team[data-side="away"] {
    flex-direction: row-reverse;
    justify-content: flex-start;
  }

  .stream-game-item .team-info-content .team .home,
  .stream-game-item .team-info-content .team .away,
  .stream-game-item .team-info-content .home,
  .stream-game-item .team-info-content .away {
    display: block !important;
    flex: 1 1 auto;
    width: auto !important;
    max-width: none;
    margin: 0;
    font-size: 13px;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #222;
  }

  .stream-game-item .team-info-content picture {
    display: inline-flex !important;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
  }

  .stream-game-item .team-info-content .team img,
  .stream-game-item .team-info-content img {
    width: 24px !important;
    height: 24px !important;
    max-width: none !important;
    object-fit: contain;
    display: block !important;
  }

  .stream-game-item .team-info-content .vs,
  .stream-game-item .team-info-content .fenge {
    display: none !important;
  }

  .stream-game-item .stream-play,
  .stream-game-item .stream-play.info_right,
  .match-item.stream-game-item .info_right {
    display: flex !important;
    align-items: stretch;
    justify-content: center;
    align-self: stretch;
    flex: 0 0 64px !important;
    width: 64px !important;
    margin: 0;
    padding: 0;
    background: transparent !important;
  }

  .stream-game-item .stream-play-link,
  .match-item.stream-game-item .info_right a,
  .match-item.stream-game-item .info_right.start a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 62px;
    min-width: 62px;
    min-height: 56px;
    height: 100%;
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    border-radius: 8px;
    background: var(--match-signal-end-bg-color, #9e0059);
    color: #fff;
  }

  .stream-game-item .stream-play-link span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: inherit;
    line-height: 1.25;
  }

  .index-shell,
  .index-shell > .container {
    width: 100%;
  }

  .index-layout .container_left,
  .index-layout .container_right {
    width: 100%;
    float: none;
  }

  .league-live-inner {
    padding: 8px 12px;
    gap: 8px;
  }
}

/* ===== Sidebar: red header + white list panels ===== */
.x74-aside {
  width: 350px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-sizing: border-box;
  float: right;
}

.x74-aside .item-block {
  margin-top: 12px;
  background: #fff;
  overflow: hidden;
}

.x74-aside .item-block.mt20 {
  margin-top: 14px;
}

.x74-aside .item-block:first-child {
  margin-top: 0;
}

.x74-aside .section-tit,
.x74-aside h2.section-tit {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 14px;
  line-height: 1.3;
  border-bottom: none;
  position: relative;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  background: #850c1e;
  box-sizing: border-box;
}

.x74-aside .section-tit:before,
.x74-aside h2.section-tit:before {
  display: none;
}

.x74-aside .section-tit em,
.x74-aside h2.section-tit em {
  display: none;
}

.x74-aside .column_bd,
.x74-aside .section-news,
.x74-aside .video_list {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #fff;
}

.x74-aside .x74-aside-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.x74-aside .x74-aside-list li {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #eee;
}

.x74-aside .x74-aside-list li:last-child {
  border-bottom: none;
}

.x74-aside .x74-aside-list li a {
  display: block;
  padding: 10px 14px;
  color: #333;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.x74-aside .x74-aside-list li a:hover {
  color: #850c1e !important;
  background: #fafafa;
}

.x74-aside .tags_list {
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  float: none;
}

.x74-aside .tags_list:after {
  display: none;
}

.x74-aside .tags_list li {
  float: none;
  margin: 0;
  padding: 0;
  background: transparent;
  line-height: normal;
  display: inline-block;
}

.x74-aside .tags_list li a {
  display: inline-block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 2px;
  padding: 5px 12px;
  box-shadow: none;
  color: #850c1e;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.x74-aside .tags_list li:hover {
  background: transparent;
}

.x74-aside .tags_list li a:hover {
  background: #850c1e;
  border-color: #850c1e;
  color: #fff;
  transform: none;
  box-shadow: none;
}

.x74-aside .video_list ul.x74-aside-list,
.x74-aside .video_list ul.x74-aside-list.show {
  display: block;
  gap: 0;
}

/* ===== Live detail page (jrszhibo-style) ===== */
.live-main .breadcrumbs {
  margin-top: 16px;
  margin-bottom: 0;
  border-radius: 6px;
  gap: 2px;
  flex-wrap: wrap;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.live-main .breadcrumbs a::after {
  content: ">";
  display: inline-block;
  background: none;
  width: auto;
  height: auto;
  margin: 0 4px 0 6px;
  transform: none;
  color: #99a3ad;
  font-size: 12px;
  line-height: 1;
}

.live-main .breadcrumbs a:last-of-type::after {
  content: ">";
}

.live-main .breadcrumbs [aria-current="page"] {
  padding-left: 2px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-main .breadcrumbs a:hover {
  color: #dd4b39;
}

.live-main .live-inner {
  margin-top: 12px;
}

.live-main .match-info {
  height: auto;
  min-height: 140px;
  padding: 16px 12px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.live-main .match-info.zuqiu-bg,
.live-main .match-info.lanqiu-bg {
  background-image:
    linear-gradient(120deg, rgba(12, 40, 78, 0.88), rgba(20, 90, 140, 0.72)),
    url(/static/x74/images/bg_games.png);
  background-size: cover;
  background-position: center;
}

.live-main .match-info.lanqiu-bg {
  background-image:
    linear-gradient(120deg, rgba(70, 28, 18, 0.9), rgba(160, 70, 28, 0.72)),
    url(/static/x74/images/bg_games.png);
}

.live-main .match-info .match-team {
  padding: 0 20px;
  gap: 12px;
}

.live-main .match-info .match-team .team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.live-main .match-info .t-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px;
  box-sizing: border-box;
}

.live-main .match-info .team h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-wrap: balance;
}

.live-main .match-info .team h3 a {
  color: #fff;
  text-decoration: none;
}

.live-main .match-info .team h3 a:hover {
  color: #ffe08a;
}

.live-main .match-info .match-center {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.live-main .match-info .match-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.live-main .match-info .match-head strong {
  font-size: 16px;
  font-weight: 700;
}

.live-main .match-info .match-head .time {
  font-size: 13px;
  opacity: 0.92;
}

.live-main .match-info .score {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.live-main .signal-list {
  align-items: center;
  gap: 8px 10px;
  font-size: 18px;
  font-weight: 600;
}

.live-main .signal-list .signal {
  flex-shrink: 0;
  width: 22px;
  height: 18px;
  margin: 0;
  background: none;
  filter: none;
  transform: none;
  position: relative;
}

.live-main .signal-list .signal::before,
.live-main .signal-list .signal::after {
  content: "";
  position: absolute;
  bottom: 0;
  border-radius: 1px;
  background: #dd4b39;
}

.live-main .signal-list .signal::before {
  left: 0;
  width: 4px;
  height: 8px;
  box-shadow:
    6px -3px 0 0 #dd4b39,
    12px -7px 0 0 #dd4b39;
}

.live-main .signal-list .signal::after {
  right: 0;
  width: 4px;
  height: 16px;
}

.live-main .signal-list .navs2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  flex: 1;
  min-width: 0;
}

.live-main .signal-list .navs2 li {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.live-main .signal-list .navs2 a,
.live-main .signal-list a.zhibo_btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: auto;
  line-height: 1.3;
  font-size: 15px;
  font-weight: 600;
  color: #fff !important;
  background: #74b5f7;
  padding: 6px 12px;
  margin: 0;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.18s ease-out;
}

.live-main .signal-list .navs2 a:hover,
.live-main .signal-list a.zhibo_btn-link:hover {
  background: #dd4b39;
  color: #fff !important;
  transform: none;
}

.live-main .x74-countdown {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #666;
  background: #333;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
}

.live-main .livebox {
  margin-top: 16px;
  margin-bottom: 0;
  overflow: hidden;
}

.live-main .livebox .tab-list {
  list-style: none;
  margin: 0;
  padding: 0 8px;
}

.live-main .zhibo-info .red {
  color: #dd4b39;
  font-weight: 600;
  text-decoration: none;
}

.live-main .zhibo-info .red:hover {
  text-decoration: underline;
}

.live-main .zhibo-info .site-name {
  font-style: normal;
  font-weight: 700;
  color: #dd4b39;
}

.live-main .text_live {
  border-radius: 8px;
  overflow: hidden;
}

.live-main .x74-related-matches {
  max-width: none;
}

.live-main .x74-related-matches .live-list {
  border-radius: 5px;
  overflow: hidden;
}

.live-main .x74-related-matches .listcontent {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ===== League pages (index-style shell) ===== */
.x74-league-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 24px;
  box-sizing: border-box;
}

.x74-league-page .league-page-top {
  margin-top: 16px;
  margin-bottom: 0;
  padding: 0;
}

.x74-league-page .x74-home-wrap {
  margin-top: 12px;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.x74-league-page .x74-home-list.live-main {
  min-width: 0;
  flex: 1 1 auto;
}

.x74-league-page .x74-home-list .section-title {
  margin: 16px 0 10px;
  padding: 0 4px;
}

.x74-league-page .x74-league-heading {
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* 数据更新时间 */
.data-update-time {
  font-size: 12px;
  font-weight: normal;
  white-space: nowrap;
  margin-left: auto;
  padding-right: 10px;
  color: #999;
}

.live-content .live-list .riqi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.live-content .live-list .riqi .match_juhe,
.live-content .live-list .riqi .troggle-btn-area {
  flex-basis: 100%;
  width: 100%;
}

.live-content .live-list .riqi .data-update-time {
  color: rgba(255, 255, 255, 0.9);
}

.x74-league-page .x74-league-heading h1 {
  margin: 0;
  padding: 0 0 0 12px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1px;
  color: #0d72d9;
  position: relative;
}

.x74-league-page .x74-league-heading h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: #0d72d9;
}

.x74-league-page .x74-team-match-list {
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}

.x74-league-page .x74-team-match-list .listcontent {
  margin: 0;
  padding: 0;
  list-style: none;
}

.x74-league-page .live-list .riqi .riqi-title {
  margin: 0;
  padding: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

.x74-league-page .live-list .riqi .riqi-title .riqi-label {
  margin-right: 8px;
}

.x74-league-page .live-list .riqi em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.92;
  margin-left: 6px;
}

.x74-league-page .live-list .listcontent {
  margin: 0;
  padding: 0;
  list-style: none;
}

.x74-league-page .x74-league-day,
.x74-league-page .x74-league-panel {
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}

.x74-league-page .x74-league-panel-body {
  padding: 12px 16px 16px;
  box-sizing: border-box;
}

.x74-league-page .x74-league-panel-body .league-chip-nav {
  margin: 0 0 14px;
  padding: 0;
}

.x74-league-page .x74-league-panel-body .league-team-list,
.x74-league-page .x74-league-panel-body .league-video-list,
.x74-league-page .x74-league-panel-body .league-panel-body {
  padding-left: 0;
  padding-right: 0;
}

.x74-league-page .x74-league-panel-body .player-rank-block {
  margin-top: 0;
}

.x74-league-page
  .x74-league-panel-body
  .player-rank-block
  + .player-rank-block {
  margin-top: 16px;
}

.x74-league-page .league-empty-row {
  display: block;
  border-top: none;
  padding: 24px 16px;
}

.x74-league-page .league-empty-row .league-empty {
  width: 100%;
  text-align: center;
}

/* League subfolder nav */
.x74-league-nav .link-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.x74-league-nav .responsive-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  background: #0d72d9;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background-color 0.18s ease-out;
}

.x74-league-nav .responsive-link:hover {
  background: #0a5cad;
  color: #fff;
}

/* Reuse table styles under new panel body */
.x74-league-panel-body .responsive-table,
.x74-league-page .league-page-panel .responsive-table {
  width: 100%;
}

.x74-league-panel-body .jifen-standings {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .x74-league-nav .responsive-link {
    transition: none;
  }
}

@media (max-width: 780px) {
  .x74-league-page {
    padding: 0 10px 16px;
  }

  .x74-league-page .x74-league-panel-body {
    padding: 10px 12px 14px;
  }

  .x74-league-nav .responsive-link {
    font-size: 12px;
    padding: 5px 10px;
  }
}

.live-main .text_live_nav {
  border-bottom-color: #eee;
}

.live-main .text_live_nav span.on {
  color: #dd4b39;
}

.live-main .text_live_nav span.on:after {
  background: #dd4b39;
}

@media (prefers-reduced-motion: reduce) {
  .live-main .signal-list .navs2 a,
  .live-main .signal-list a.zhibo_btn-link {
    transition: none;
  }
}

@media (max-width: 780px) {
  .live-main .match-info .match-team {
    padding: 0 4px;
    gap: 6px;
  }

  .live-main .match-info .match-team .team {
    width: 32%;
  }

  .live-main .match-info .t-logo {
    width: 44px;
    height: 44px;
  }

  .live-main .match-info .team h3 {
    font-size: 14px;
  }

  .live-main .match-info .match-head strong {
    font-size: 14px;
  }

  .live-main .match-info .score {
    font-size: 26px;
  }

  .live-main .signal-list {
    font-size: 16px;
    align-items: flex-start;
  }

  .live-main .x74-countdown {
    font-size: 16px;
  }

  .live-main .livebox .tab-list li {
    width: auto;
    padding: 0 12px;
    font-size: 16px;
  }

  .live-main .zhibo-info {
    padding: 14px 12px 18px;
  }
}

/* ===== League rank + star players ===== */
.x74-rank-block,
.x74-stars-block {
  background: #fff;
  border-radius: 8px;
  padding: 4px 0 14px;
  box-sizing: border-box;
}

.x74-rank-block .lq_rank_side {
  margin: 0 16px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(70, 61, 62, 0.12);
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
}

.x74-stars-block .star_player_side {
  margin: 0 12px;
  padding: 10px 12px;
  background: #f3f4f6;
  border-radius: 8px;
  box-sizing: border-box;
}

.lq_rank_side .lq_rank_row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 64px 44px;
  align-items: center;
  column-gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(70, 61, 62, 0.08);
  font-size: 13px;
  color: #1f1a1a;
  background: #fff;
  transition: background-color 0.15s ease;
}

.lq_rank_side .lq_rank_row:last-child {
  border-bottom: none;
}

.lq_rank_side .lq_rank_row:not(.lq_rank_head):hover {
  background: #f7f7f8;
}

.lq_rank_side .lq_rank_head {
  min-height: 38px;
  font-size: 12px;
  font-weight: 600;
  color: #5c5555;
  background: #f3f4f6;
  border-bottom: 1px solid rgba(70, 61, 62, 0.12);
}

.lq_rank_side .lq_rank_head .lq_pos,
.lq_rank_side .lq_rank_head .lq_wdl,
.lq_rank_side .lq_rank_head .lq_pts,
.lq_rank_side .lq_rank_head .lq_rate,
.lq_rank_side .lq_rank_head .lq_streak,
.lq_rank_side .lq_rank_head .lq_team {
  color: #5c5555;
}

.lq_rank_side .lq_pos {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #8a8383;
}

.lq_rank_side .lq_rank_row.top1 .lq_pos,
.lq_rank_side .lq_rank_row.top2 .lq_pos,
.lq_rank_side .lq_rank_row.top3 .lq_pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0 auto;
  border-radius: 50%;
  font-size: 12px;
  color: #fff;
}

.lq_rank_side .lq_rank_row.top1 .lq_pos {
  background: #9e0059;
}

.lq_rank_side .lq_rank_row.top2 .lq_pos {
  background: #463d3e;
}

.lq_rank_side .lq_rank_row.top3 .lq_pos {
  background: #7a6f70;
}

.lq_rank_side .lq_team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lq_rank_side .lq_zone {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.lq_rank_side .lq_team img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 22px;
}

.lq_rank_side .lq_team > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.lq_rank_side .lq_team span a {
  color: inherit;
  text-decoration: none;
}

.lq_rank_side .lq_team span a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.lq_rank_side .lq_rate,
.lq_rank_side .lq_wdl,
.lq_rank_side .lq_pts,
.lq_rank_side .lq_streak {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.lq_rank_side .lq_rate {
  font-weight: 600;
}

.lq_rank_side .lq_streak {
  font-size: 12px;
}

.lq_rank_side .lq_streak.win {
  color: #1f6b45;
}

.lq_rank_side .lq_streak.lose {
  color: #9e0059;
}

.lq_rank_side .lq_conf_tit {
  margin: 0;
  padding: 10px 12px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary-color);
  background: #fafafa;
  border-bottom: 1px solid rgba(70, 61, 62, 0.08);
  line-height: 1.2;
}

.lq_rank_side .lq_wdl {
  font-size: 12px;
  color: #5c5555;
}

.lq_rank_side .lq_pts {
  font-size: 14px;
  font-weight: 700;
  color: #1f1a1a;
}

/* basketball columns: # | team | rate | streak */
.x74-rank-block .lq_rank_side:has(.lq_rate) .lq_rank_row {
  grid-template-columns: 36px minmax(0, 1fr) 48px 48px;
}

.star_player_side .sp_row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  margin-bottom: 6px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(70, 61, 62, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.star_player_side .sp_row:last-child {
  margin-bottom: 0;
}

.star_player_side .sp_rank {
  flex: 0 0 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #bbb;
  font-style: italic;
}

.star_player_side .sp_row.top1 .sp_rank {
  color: #9e0059;
}

.star_player_side .sp_row.top2 .sp_rank {
  color: #b23a48;
}

.star_player_side .sp_row.top3 .sp_rank {
  color: #c47b2b;
}

.star_player_side .sp_avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
  border: 2px solid rgba(70, 61, 62, 0.08);
}

.star_player_side .sp_avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.star_player_side .sp_info {
  flex: 1 1 auto;
  min-width: 0;
}

.star_player_side .sp_name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.star_player_side .sp_name a {
  color: inherit;
  text-decoration: none;
}

.star_player_side .sp_name a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.star_player_side .sp_meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: #888;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.star_player_side .sp_price {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--match-signal-end-bg-color, #9e0059);
  white-space: nowrap;
}

@media (max-width: 780px) {
  .x74-rank-block .lq_rank_side {
    margin: 0 10px;
  }

  .x74-stars-block .star_player_side {
    margin: 0 10px;
    padding: 8px;
  }

  .lq_rank_side .lq_rank_row {
    grid-template-columns: 30px minmax(0, 1fr) 56px 36px;
    column-gap: 6px;
    min-height: 40px;
    padding: 0 10px;
    font-size: 12px;
  }

  .x74-rank-block .lq_rank_side:has(.lq_rate) .lq_rank_row {
    grid-template-columns: 30px minmax(0, 1fr) 42px 42px;
  }

  .lq_rank_side .lq_team img {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .lq_rank_side .lq_pts {
    font-size: 13px;
  }

  .star_player_side .sp_avatar {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
  }

  .star_player_side .sp_name {
    font-size: 13px;
  }

  .star_player_side .sp_meta {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lq_rank_side .lq_rank_row {
    transition: none;
  }
}

/* ===== Shared league page panels / tables ===== */
.league-page-panel {
  background: #fff;
  border-radius: 8px;
  padding: 4px 0 16px;
  margin-top: 12px;
  box-sizing: border-box;
}

.league-page-panel .league-panel-body {
  padding: 0 16px 8px;
}

.league-page-panel .league-panel-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4a4444;
}

.league-page-panel .article_content {
  padding: 16px 20px 20px;
  background: transparent;
}

.league-page-panel .article_content .article_tit {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.4;
  color: #1f1a1a;
  font-weight: 700;
}

.league-page-panel .article_content .article_info {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(70, 61, 62, 0.1);
  font-size: 13px;
  color: #6b6565;
}

.league-page-panel .article_content .nr {
  font-size: 15px;
  line-height: 1.8;
  color: #2a2424;
}

.team-match-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 16px 12px;
}

.team-match-filters .league-chip-nav {
  padding: 0;
  flex: 1 1 auto;
}

.team-match-filters .location-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #4a4444;
}

.team-match-filters .location-filters label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.league-chip-nav button.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--primary-color);
  border: 1px solid rgba(70, 61, 62, 0.1);
  font-size: 13px;
  cursor: pointer;
  font: inherit;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.league-chip-nav button.filter-btn:hover,
.league-chip-nav button.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.league-data-table,
.league-page-panel .responsive-table,
.x74-league-panel-body .responsive-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(70, 61, 62, 0.12);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
  color: #1f1a1a;
  background: #fff;
}

.league-data-table th,
.league-data-table td,
.league-page-panel .responsive-table th,
.league-page-panel .responsive-table td,
.x74-league-panel-body .responsive-table th,
.x74-league-panel-body .responsive-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(70, 61, 62, 0.08);
  text-align: left;
  vertical-align: middle;
}

.league-data-table th,
.league-page-panel .responsive-table th,
.x74-league-panel-body .responsive-table th {
  background: #f3f4f6;
  color: #5c5555;
  font-size: 12px;
  font-weight: 600;
}

.league-data-table tr:last-child td,
.league-page-panel .responsive-table tr:last-child td,
.x74-league-panel-body .responsive-table tr:last-child td {
  border-bottom: none;
}

.league-data-table tbody tr:hover td,
.league-page-panel .responsive-table tbody tr:hover td,
.x74-league-panel-body .responsive-table tbody tr:hover td {
  background: #f7f7f8;
}

.league-data-table img,
.league-page-panel .responsive-table img,
.x74-league-panel-body .responsive-table img,
.x74-league-panel-body .league-data-table img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
}

.league-data-table a,
.league-page-panel .responsive-table a,
.x74-league-panel-body .responsive-table a {
  color: inherit;
  text-decoration: none;
}

.league-data-table a:hover,
.league-page-panel .responsive-table a:hover,
.x74-league-panel-body .responsive-table a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.league-empty {
  padding: 36px 16px;
  text-align: center;
  color: #8a8383;
  font-size: 14px;
}

.league-chip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 16px 12px;
}

.league-chip-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--primary-color);
  border: 1px solid rgba(70, 61, 62, 0.1);
  font-size: 13px;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.league-chip-nav a:hover,
.league-chip-nav a.active_rank_item {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.league-team-list {
  list-style: none;
  margin: 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.league-team-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f7f7f8;
  border: 1px solid rgba(70, 61, 62, 0.08);
  border-radius: 8px;
}

.league-team-list .team-logo,
.league-team-list img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain;
  flex: 0 0 28px;
}

.league-team-list a {
  color: #1f1a1a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-team-list a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.league-video-list {
  list-style: none;
  margin: 0;
  padding: 0 16px;
}

.league-video-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(70, 61, 62, 0.08);
}

.league-video-list li:last-child {
  border-bottom: none;
}

.league-video-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #1f1a1a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.league-video-list a span img,
.league-video-list a > span img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.league-video-list a:hover {
  color: var(--primary-color);
}

.league-video-list .time {
  flex: 0 0 auto;
  color: #8a8383;
  font-size: 12px;
  white-space: nowrap;
}

.player-rank-block {
  position: relative;
  margin: 16px 16px 0;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(70, 61, 62, 0.12);
  border-radius: 8px;
}

.player-rank-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.player-rank-block__title,
.player-rank-block h1.player-rank-block__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.3;
}

.player-rank-block__season {
  font-size: 13px;
  font-weight: 600;
  color: #9e0059;
  white-space: nowrap;
}

.player-rank-block__more {
  font-size: 13px;
  color: #9e0059;
  text-decoration: none;
  white-space: nowrap;
}

.player-rank-block__more:hover {
  text-decoration: underline;
}

.player-rank-table__head,
.player-rank-table__row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1.2fr) minmax(0, 1fr) 56px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
}

.player-rank-table--team .player-rank-table__head,
.player-rank-table--team .player-rank-table__row {
  grid-template-columns: 40px minmax(0, 1fr) 56px;
}

.player-rank-table--team .player-rank-table__avatar {
  border-radius: 4px;
  background: transparent;
}

.player-rank-table--team .player-rank-table__avatar img {
  object-fit: contain;
}

.player-rank-table__head {
  background: #f3f4f6;
  border-radius: 6px;
  color: #5c5555;
  font-size: 12px;
  font-weight: 600;
}

.player-rank-table__row {
  border-bottom: 1px solid rgba(70, 61, 62, 0.08);
  font-size: 14px;
  color: #1f1a1a;
}

.player-rank-table__row:last-child {
  border-bottom: none;
}

.player-rank-table__row:hover {
  background: #f7f7f8;
}

.player-rank-table__col-rank {
  text-align: center;
  font-weight: 700;
  color: #8a8383;
  font-variant-numeric: tabular-nums;
}

.player-rank-table__col-player,
.player-rank-table__col-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.player-rank-table__col-data {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.player-rank-table__avatar {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
}

.player-rank-table__avatar img {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: cover;
  display: block;
}

.player-rank-table__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-rank-table__name a {
  color: inherit;
  text-decoration: none;
}

.player-rank-table__name a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.league-rank-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(70, 61, 62, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.league-rank-table__row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1.4fr) repeat(4, minmax(52px, 1fr));
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(70, 61, 62, 0.08);
  background: #fff;
  font-size: 14px;
}

.league-rank-table__row:last-child {
  border-bottom: none;
}

.league-rank-table__row.is-head {
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 600;
  color: #5c5555;
  min-height: 38px;
}

.league-rank-table__row.is-group {
  grid-template-columns: 1fr;
  background: #fafafa;
  font-weight: 700;
  color: var(--primary-color);
}

.league-rank-table__row:not(.is-head):not(.is-group):hover {
  background: #f7f7f8;
}

.league-rank-table--lq .league-rank-table__row {
  grid-template-columns: 48px minmax(0, 1.6fr) repeat(3, minmax(56px, 1fr));
}

/* jifen standings */
.jifen-standings {
  margin: 0 16px;
  background: #fff;
  border: 1px solid rgba(70, 61, 62, 0.12);
  border-radius: 8px;
  overflow: hidden;
}

.jifen-standings__layout {
  display: flex;
  align-items: flex-start;
}

.jifen-standings__nav {
  flex: 0 0 88px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  background: #f3f4f6;
  border-right: 1px solid rgba(70, 61, 62, 0.12);
}

.jifen-standings__nav-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  padding: 0 6px;
  border: none;
  background: transparent;
  color: #5c5555;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

.jifen-standings__nav-item:hover,
.jifen-standings__nav-item.is-active {
  color: var(--primary-color);
}

.jifen-standings__nav-item.is-active {
  background: #fff;
  font-weight: 600;
}

.jifen-standings__main {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
}

.jifen-standings__panel {
  display: none;
}

.jifen-standings__panel.is-active {
  display: block;
}

.jifen-standings__group + .jifen-standings__group {
  border-top: 1px solid rgba(70, 61, 62, 0.12);
}

.jifen-standings__group-title {
  padding: 10px 14px;
  background: var(--primary-color);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.jifen-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  color: #1f1a1a;
}

.jifen-table thead th {
  padding: 12px 6px;
  background: #f3f4f6;
  border: 1px solid rgba(70, 61, 62, 0.1);
  font-weight: 600;
  color: #5c5555;
  text-align: center;
  white-space: nowrap;
}

.jifen-table thead th.col-team {
  text-align: left;
  padding-left: 12px;
}

.jifen-table tbody td {
  padding: 14px 6px;
  border: 1px solid rgba(70, 61, 62, 0.08);
  text-align: center;
  vertical-align: middle;
  background: #fff;
}

.jifen-table tbody tr:hover td {
  background: #f7f7f8;
}

.jifen-table .col-rank {
  width: 48px;
}

.jifen-table .col-team {
  width: 160px;
  text-align: left;
  padding-left: 12px;
}

.jifen-table .col-num {
  width: 52px;
}

.jifen-table .col-pts {
  width: 56px;
  font-weight: 700;
  color: #1f1a1a;
}

.jifen-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.jifen-team img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.jifen-team a,
.jifen-team span {
  color: #1f1a1a;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jifen-team a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.jifen-zone-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
}

.jifen-table .jifen-zone-row td {
  padding: 0;
  background: #fff;
}

.jifen-zone-label .zone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.jifen-empty {
  padding: 40px 20px;
  text-align: center;
  color: #8a8383;
  font-size: 14px;
}

@media (max-width: 780px) {
  .league-team-list {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .league-video-list,
  .league-page-panel .league-panel-body,
  .league-chip-nav {
    padding-left: 10px;
    padding-right: 10px;
  }

  .player-rank-block {
    margin: 12px 10px 0;
  }

  .player-rank-table__head {
    display: none;
  }

  .player-rank-table__row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank player data"
      ". team team";
    padding: 10px 4px;
  }

  .player-rank-table--team .player-rank-table__row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    grid-template-areas: "rank team data";
  }

  .player-rank-table__col-rank {
    grid-area: rank;
  }

  .player-rank-table__col-player {
    grid-area: player;
  }

  .player-rank-table__col-team {
    grid-area: team;
    padding-left: 0;
  }

  .player-rank-table__col-data {
    grid-area: data;
  }

  .league-rank-table__row,
  .league-rank-table--lq .league-rank-table__row {
    grid-template-columns: 36px minmax(0, 1fr) repeat(2, minmax(48px, auto));
    font-size: 12px;
    padding: 8px;
  }

  .jifen-standings {
    margin: 0 10px;
  }

  .jifen-standings__nav {
    flex: 0 0 72px;
  }

  .jifen-standings__nav-item {
    height: 40px;
    font-size: 13px;
    padding: 0 4px;
  }

  .jifen-table {
    font-size: 13px;
  }

  .jifen-table thead th,
  .jifen-table tbody td {
    padding: 10px 4px;
  }

  .jifen-table .col-team {
    width: 120px;
  }

  .league-page-panel .responsive-table thead,
  .x74-league-panel-body .responsive-table thead {
    display: none;
  }

  .league-page-panel .responsive-table tr,
  .x74-league-panel-body .responsive-table tr {
    display: block;
    margin-bottom: 10px;
    border: 1px solid rgba(70, 61, 62, 0.12);
    border-radius: 8px;
    overflow: hidden;
  }

  .league-page-panel .responsive-table td,
  .x74-league-panel-body .responsive-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: none;
    border-bottom: 1px solid rgba(70, 61, 62, 0.08);
  }

  .league-page-panel .responsive-table td:last-child,
  .x74-league-panel-body .responsive-table td:last-child {
    border-bottom: none;
  }

  .league-page-panel .responsive-table td::before,
  .x74-league-panel-body .responsive-table td::before {
    content: attr(data-label);
    color: #5c5555;
    font-weight: 600;
  }

  .banner-word h1 {
    font-size: 33px;
    line-height: 1.5em;
  }
}

/* list pages: pagination + a11y */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.pagination-wrap {
  padding: 16px;
  display: flex;
  justify-content: center;
}

.paging-cls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.paging-cls li {
  display: inline-block;
}

.paging-cls a,
.paging-cls span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f3f4f6;
  color: var(--primary-color);
  font-size: 13px;
  text-decoration: none;
  border: 1px solid rgba(70, 61, 62, 0.1);
}

.paging-cls a:hover,
.paging-cls .active a,
.paging-cls .current,
.paging-cls span.current {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* Isolate pager from panel news-list <li> row styles */
.panel .panel_body .pagination-wrap {
  width: 100%;
  margin-top: 12px;
  padding: 12px 0 4px;
  background: transparent;
  border-radius: 0;
}

.panel .panel_body .paging-cls {
  width: 100%;
}

.panel .panel_body .pagination-wrap li,
.panel .panel_body .paging-cls li {
  display: inline-block;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0;
  border-bottom: none !important;
  background: transparent !important;
}

.panel .panel_body .pagination-wrap li:hover,
.panel .panel_body .paging-cls li:hover {
  background: transparent !important;
}

.panel .panel_body .paging-cls a,
.panel .panel_body .paging-cls span {
  font-size: 13px;
}

/* ===== jrszhibo home overrides (after x74 base) ===== */

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body[data-template="x74"] {
  background: #f5f5f5;
  color: #333;
  font-family:
    "PingFangSC", "Open Sans", Arial, "Hiragino Sans GB", "Microsoft YaHei",
    "微软雅黑", "STHeiti", "WenQuanYi Micro Hei", SimSun, sans-serif;
}

/* Shared 1200px column for header + home content */
body[data-template="x74"] .header {
  height: auto;
  min-height: 0;
  line-height: normal;
  background: #fff;
  border-bottom: 1px solid #eee;
  color: #333;
}

.x74-header-shell,
.x74-home-wrap,
body[data-template="x74"] .footer .m-width {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 10px;
  padding-right: 10px;
}

.x74-header-shell {
  padding-top: 10px;
  padding-bottom: 10px;
}

.x74-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  position: relative;
}

.x74-header-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}

.x74-header-actions {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

body[data-template="x74"] .header .menu-icon,
body[data-template="x74"] .header .theme-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  background: #f3f3f3;
  color: #333;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

body[data-template="x74"] .header .theme-toggle {
  flex-shrink: 0;
}

body[data-template="x74"] .header .theme-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
}

body[data-template="x74"] .header .theme-toggle .icon-sun {
  display: none;
}

body[data-template="x74"] .header .theme-toggle .icon-moon {
  display: block;
}

body[data-template="x74"] .header .desktop-theme-toggle {
  display: inline-flex;
  margin-left: 4px;
}

body[data-template="x74"] .header .mobile-theme-toggle {
  display: none;
}

body[data-template="x74"] .header .logo {
  flex: 0 0 auto;
  max-width: 180px;
}

/* Header search — desktop */
body[data-template="x74"] .header .search-box {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  margin-left: 4px;
}

body[data-template="x74"] .header .search-box input {
  width: 160px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #f3f3f3;
  outline: none;
  font-size: 13px;
  color: #333;
  box-sizing: border-box;
}

body[data-template="x74"] .header .search-box input:focus {
  border-color: #0d72d9;
  background: #fff;
}

body[data-template="x74"] .header .search-box button {
  height: 32px;
  padding: 0 14px;
  border: none;
  border-radius: 16px;
  background: #0d72d9;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

body[data-template="x74"] .header .search-box button:hover {
  background: #0a5fb5;
}

body[data-template="x74"] .header .mobile-search-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  background: #f3f3f3;
  cursor: pointer;
  flex-shrink: 0;
}

body[data-template="x74"] .header .mobile-search-icon img {
  display: block;
}

body[data-template="x74"] .header .mobile-search-popup {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
  box-sizing: border-box;
}

body[data-template="x74"] .header .mobile-search-popup .popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

body[data-template="x74"] .header .mobile-search-popup .popup-content input {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
  font-size: 14px;
}

body[data-template="x74"] .header .mobile-search-popup .close-popup-area {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

body[data-template="x74"]
  .header
  .mobile-search-popup
  .close-popup-area
  button {
  flex: 1;
  height: 40px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

body[data-template="x74"] .header #mobile-search-box-btn {
  background: #0d72d9;
  color: #fff;
}

body[data-template="x74"] .header #close-popup {
  background: #eee;
  color: #333;
}

body[data-template="x74"] .header .logo a {
  display: inline-flex;
  align-items: center;
  color: #333;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

body[data-template="x74"] .header .logo img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* Do not target #navcd / .nav.index — that is the hot-league strip (index style). */
body[data-template="x74"] .header .nav:not(.index):not(#navcd) {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body[data-template="x74"]
  .header
  .nav:not(.index):not(#navcd)::-webkit-scrollbar {
  display: none;
}

body[data-template="x74"] .header .nav:not(.index):not(#navcd) ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  width: auto;
}

body[data-template="x74"] .header .nav:not(.index):not(#navcd) ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  font-size: 16px;
  padding: 0;
}

body[data-template="x74"] .header .nav:not(.index):not(#navcd) ul a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: auto;
  font-weight: 400;
  padding: 10px 12px;
  color: #333;
  border-radius: 0;
  white-space: nowrap;
}

body[data-template="x74"] .header .nav:not(.index):not(#navcd) ul a:after {
  display: none;
}

body[data-template="x74"] .header .nav:not(.index):not(#navcd) ul .active {
  border-bottom: solid #0d72d9 3px;
}

body[data-template="x74"] .header .nav:not(.index):not(#navcd) ul .active a {
  color: #0d72d9;
  font-weight: 600;
}

body[data-template="x74"] .header .nav:not(.index):not(#navcd) ul a:hover {
  color: #850c1e;
  background: transparent;
}

.x74-nav-leagues {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  width: 100%;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
  font-size: 14px;
  font-weight: 600;
}

.x74-nav-leagues-label {
  color: #808080;
  flex-shrink: 0;
}

.x74-nav-leagues a {
  color: #333;
  font-weight: 700;
  white-space: nowrap;
}

body[data-template="x74"] .league-live-strip {
  display: none;
}

.x74-home-wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
  margin-bottom: 30px;
}

.x74-home-list {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  max-width: none;
}

.live-content .live-list .riqi .match_juhe {
  background: #fff;
}

.live-content .live-list .duizhen h3,
.live-content .live-list .duizhen .team-name {
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
  color: #333;
}

.live-content .live-list .duizhen h3 a,
.live-content .live-list .duizhen .team-name a,
.live-content .live-list .duizhen h3 span,
.live-content .live-list .duizhen .team-name span {
  color: #333;
}

.live-content .live-list .duizhen h3 a:hover,
.live-content .live-list .duizhen .team-name a:hover,
.live-content .live-list .duizhen h3 a:active,
.live-content .live-list .duizhen .team-name a:active {
  color: #850c1e;
}

.live-content .live-list .score-wrap .score {
  color: #333;
}

.live-content .live-list .score-wrap .live-link a {
  color: #666;
  font-size: 12px;
}

.live-content .live-list .score-wrap .live-link a:hover,
.live-content .live-list .score-wrap .live-link a:active {
  color: #850c1e;
}

.live-content .live-list .listcontent .item,
.live-content .live-list .match-item {
  color: #333;
}

.x74-home-wrap .x74-aside,
.x74-home-wrap .container_right.x74-aside {
  width: 350px;
  flex: 0 0 350px;
  float: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

body[data-template="x74"] .footer {
  background: #fff;
  color: #808080;
  padding: 14px 0;
  border-top: none;
}

body[data-template="x74"] .footer .copyright {
  text-align: center;
  margin-top: 10px;
  line-height: 20px;
}

body[data-template="x74"] .footer .copyright a {
  color: #333;
}

body[data-template="x74"] .footer .copyright a:hover {
  color: #850c1e;
}

@media (max-width: 1100px) {
  .x74-home-wrap {
    flex-wrap: wrap;
  }

  .x74-home-list {
    width: 100% !important;
  }

  .x74-home-wrap .x74-aside,
  .x74-home-wrap .container_right.x74-aside {
    width: 100%;
    flex: 1 1 100%;
  }
}

@media (max-width: 780px) {
  .x74-header-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .x74-header-brand {
    width: 100%;
  }

  .x74-header-actions {
    display: flex;
  }

  body[data-template="x74"] .header .logo {
    max-width: none;
    flex: 1 1 auto;
    text-align: left;
  }

  body[data-template="x74"] .header .logo a {
    justify-content: flex-start;
  }

  body[data-template="x74"] .header .desktop-search,
  body[data-template="x74"] .header .desktop-theme-toggle {
    display: none;
  }

  body[data-template="x74"] .header .menu-icon,
  body[data-template="x74"] .header .mobile-search-icon,
  body[data-template="x74"] .header .mobile-theme-toggle {
    display: inline-flex;
  }

  body[data-template="x74"] .header .nav:not(.index):not(#navcd) {
    position: absolute;
    top: 100%;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    z-index: 1200;
  }

  body[data-template="x74"] .header .nav:not(.index):not(#navcd) ul#header-menu,
  body[data-template="x74"] .header .nav:not(.index):not(#navcd) ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    margin: 6px 0 0;
    padding: 8px 0;
    background: #3a95f1;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    white-space: normal;
  }

  body[data-template="x74"]
    .header
    .nav:not(.index):not(#navcd)
    ul#header-menu.active {
    display: flex;
  }

  body[data-template="x74"] .header .nav:not(.index):not(#navcd) ul li {
    width: 100%;
    flex: none;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  body[data-template="x74"]
    .header
    .nav:not(.index):not(#navcd)
    ul
    li:last-child {
    border-bottom: none;
  }

  body[data-template="x74"] .header .nav:not(.index):not(#navcd) ul li a {
    width: 100%;
    align-items: flex-start;
    color: #fff;
    padding: 12px 16px;
    font-size: 15px;
  }

  body[data-template="x74"] .header .nav:not(.index):not(#navcd) ul .active {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  body[data-template="x74"] .header .nav:not(.index):not(#navcd) ul .active a {
    color: #fff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.14);
  }

  .x74-nav-leagues {
    margin-top: 8px;
  }

  .x74-home-wrap {
    margin-top: 10px;
  }
}

/* =========================================================
   Player info — r62-style underline tabs + stats panels
   ========================================================= */
body[data-template="x74"] .tab-container {
  width: 100%;
  margin: 16px 0 0;
}

body[data-template="x74"] .tab-container > .tabs {
  display: flex;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border-bottom: 2px solid #ddd;
  background: transparent;
  box-sizing: border-box;
}

body[data-template="x74"] .tab-container > .tabs > .tab,
body[data-template="x74"] .tab-container > .tabs > h2.tab,
body[data-template="x74"] .tab-container > .tabs > button.tab {
  appearance: none;
  -webkit-appearance: none;
  flex: 1 1 0;
  margin: 0 0 -2px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: #f3f3f3;
  color: #666;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition:
    background-color 160ms cubic-bezier(0.25, 1, 0.5, 1),
    color 160ms cubic-bezier(0.25, 1, 0.5, 1),
    border-color 160ms cubic-bezier(0.25, 1, 0.5, 1);
}

body[data-template="x74"] .tab-container > .tabs > .tab:hover:not(.active),
body[data-template="x74"] .tab-container > .tabs > h2.tab:hover:not(.active),
body[data-template="x74"] .tab-container > .tabs > button.tab:hover:not(.active) {
  color: #222;
  background: #ebebeb;
}

body[data-template="x74"] .tab-container > .tabs > .tab.active,
body[data-template="x74"] .tab-container > .tabs > h2.tab.active,
body[data-template="x74"] .tab-container > .tabs > button.tab.active {
  background: #fff;
  color: var(--x74-accent, #039ea1);
  border-bottom-color: var(--x74-accent, #039ea1);
  font-weight: 700;
  box-shadow: none;
}

body[data-template="x74"] .tab-container > .tabs > .tab:focus-visible,
body[data-template="x74"] .tab-container > .tabs > h2.tab:focus-visible,
body[data-template="x74"] .tab-container > .tabs > button.tab:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.25);
  outline-offset: -3px;
  z-index: 1;
}

body[data-template="x74"] .tab-container > .tab-content {
  background: transparent;
  border: 0;
  padding: 0;
}

body[data-template="x74"] .tab-container .tab-pane {
  display: none !important;
}

body[data-template="x74"] .tab-container .tab-pane.active {
  display: block !important;
}

body[data-template="x74"] .player-stats-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

body[data-template="x74"] .player-stats-wrap .ps-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

body[data-template="x74"] .player-stats-wrap .ps-section__title {
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--x74-accent, #039ea1);
  background: rgba(3,158,161,.10);
  border-bottom: 1px solid #e5e7eb;
}

body[data-template="x74"] .player-stats-wrap .ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

body[data-template="x74"] .player-stats-wrap .ps-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid #f0f0f0;
  min-width: 0;
}

body[data-template="x74"] .player-stats-wrap .ps-row:nth-child(odd) {
  border-right: 1px solid #f0f0f0;
}

body[data-template="x74"] .player-stats-wrap .ps-row:nth-last-child(-n + 2) {
  border-bottom: 0;
}

body[data-template="x74"] .player-stats-wrap .ps-row:last-child:nth-child(odd) {
  border-bottom: 0;
  grid-column: 1 / -1;
  border-right: 0;
  background: transparent;
}

body[data-template="x74"] .player-stats-wrap .ps-row:nth-child(4n + 3),
body[data-template="x74"] .player-stats-wrap .ps-row:nth-child(4n + 4) {
  background: #fafafa;
}

body[data-template="x74"] .player-stats-wrap .ps-label {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  min-width: 0;
}

body[data-template="x74"] .player-stats-wrap .ps-value {
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 600px) {
  body[data-template="x74"] .tab-container > .tabs > .tab,
  body[data-template="x74"] .tab-container > .tabs > h2.tab,
  body[data-template="x74"] .tab-container > .tabs > button.tab {
    font-size: 13px;
    padding: 10px 6px;
  }

  body[data-template="x74"] .player-stats-wrap .ps-grid {
    grid-template-columns: 1fr;
  }

  body[data-template="x74"] .player-stats-wrap .ps-row {
    border-right: 0 !important;
  }

  body[data-template="x74"] .player-stats-wrap .ps-row:nth-last-child(-n + 2) {
    border-bottom: 1px solid #f0f0f0;
  }

  body[data-template="x74"] .player-stats-wrap .ps-row:last-child {
    border-bottom: 0;
    grid-column: auto;
  }

  body[data-template="x74"] .player-stats-wrap .ps-row:nth-child(even) {
    background: #fafafa;
  }

  body[data-template="x74"] .player-stats-wrap .ps-row:nth-child(odd) {
    background: transparent;
  }
}
