/* x74 site chrome: SEO / a11y / layout patches on top of basic + index_cn */

:root {
  --x74-accent: #039ea1;
  --x74-accent-strong: #0a8a68;
  --x74-ink: #1a1a1a;
  --x74-muted: #444;
  --x74-bg: #f2f2f2;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body[data-template="x74"] {
  background-color: var(--x74-bg) !important;
  color: var(--x74-ink);
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    sans-serif !important;
}

main {
  display: block;
}

.head_nav_met_27_1_1 ul,
.news_list_met_27_1_4 ul,
.x74-aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.5rem 0.75rem;
  background: var(--x74-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header search icons without web-icons font */
.head_nav_met_27_1_1 .input-search-btn {
  position: relative;
}

.head_nav_met_27_1_1 .input-search-btn .icon.wb-search::before,
.head_nav_met_27_1_1 .m-search .icon.wb-search::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
  position: relative;
}

.head_nav_met_27_1_1 .input-search-btn .icon.wb-search::after,
.head_nav_met_27_1_1 .m-search .icon.wb-search::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  right: -1px;
  bottom: 1px;
}

/* Header actions visible on desktop too (search is mobile-only inside) */
@media (min-width: 992px) {
  body[data-template="x74"] header.head_nav_met_27_1_1 .x74-header-actions {
    display: none !important;
  }
}

.head_nav_met_27_1_1 .m-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #039ea1;
}

/* Theme toggle */
.head_nav_met_27_1_1 .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #d5ebe4;
  border-radius: 50%;
  background: #f3faf7;
  color: #333;
  cursor: pointer;
  flex-shrink: 0;
  vertical-align: middle;
  margin-left: 0;
}

.head_nav_met_27_1_1 .theme-toggle img {
  display: block;
  width: 18px;
  height: 18px;
  max-width: none;
}

.head_nav_met_27_1_1 .theme-toggle .icon-sun {
  display: none;
}

.head_nav_met_27_1_1 .theme-toggle .icon-moon {
  display: block;
}

.head_nav_met_27_1_1 .theme-toggle:hover {
  border-color: var(--x74-accent);
}

.head_nav_met_27_1_1 .theme-toggle:focus-visible {
  outline: 2px solid var(--x74-accent);
  outline-offset: 2px;
}

.head_nav_met_27_1_1 .desktop-theme-toggle {
  display: inline-flex;
}

.head_nav_met_27_1_1 .mobile-theme-toggle {
  display: none;
}

/* Desktop: logo + search + theme toggle share one centered row */
@media (min-width: 992px) {
  body[data-template="x74"] header.head_nav_met_27_1_1 .top-box .top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 100px;
    line-height: normal;
    float: none;
  }

  body[data-template="x74"] header.head_nav_met_27_1_1 .logo-box {
    float: none;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
    line-height: normal;
    margin: 0;
    padding: 0;
  }

  body[data-template="x74"] header.head_nav_met_27_1_1 .logo-box .met-logo,
  body[data-template="x74"]
    header.head_nav_met_27_1_1
    .logo-box
    .vertical-align-middle {
    display: flex;
    align-items: center;
    max-width: 100%;
    line-height: normal;
  }

  body[data-template="x74"] header.head_nav_met_27_1_1 .logo-box img {
    display: block;
    max-height: 56px;
    height: auto;
    width: auto;
    max-width: min(320px, 46vw);
    object-fit: contain;
    margin: 0;
  }

  .head_nav_met_27_1_1 .pull-md-right {
    float: none;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 12px;
    height: auto;
    margin: 0;
    padding: 0 4px 0 0;
    line-height: normal;
  }

  .head_nav_met_27_1_1 .met-search-body {
    position: static !important;
    top: auto !important;
    float: none !important;
    margin-left: 0 !important;
    line-height: normal;
  }

  .head_nav_met_27_1_1 .met-search-body .input-search {
    position: relative;
    left: 0;
  }

  .head_nav_met_27_1_1 .desktop-theme-toggle {
    position: static;
    top: auto;
    margin: 0;
  }
}

@media (max-width: 991px) {
  .head_nav_met_27_1_1 .desktop-theme-toggle {
    display: none !important;
  }

  .head_nav_met_27_1_1 .mobile-theme-toggle {
    display: inline-flex !important;
  }
}

.head_nav_met_27_1_1 .logo-box img {
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

/* Remove selected/active fill — keep same look as other nav items */
body[data-template="x74"]
  header.head_nav_met_27_1_1
  .navbar-nav
  .nav-link.active,
body[data-template="x74"]
  header.head_nav_met_27_1_1
  .navbar-nav
  .nav-link.active:hover,
body[data-template="x74"]
  header.head_nav_met_27_1_1
  .navbar-nav
  .nav-link.active:focus,
body[data-template="x74"] header.head_nav_met_27_1_1 .nav li a.active {
  background: transparent !important;
  color: #fff !important;
  border-radius: 0 !important;
}

body[data-template="x74"]
  header.head_nav_met_27_1_1
  .navbar-nav
  .nav-link.active
  span {
  color: #fff !important;
}

.head_nav_met_27_1_1 .dropdown.open > .dropdown-menu,
.head_nav_met_27_1_1 .nav-item.dropdown:hover > .dropdown-menu,
.head_nav_met_27_1_1 .nav-item.dropdown:focus-within > .dropdown-menu {
  display: block;
}

/* Always-visible hot leagues under main nav */
.x74-league-bar {
  background: #fff;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 0 10px;
}

.x74-league-bar .container {
  width: auto;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}

.x74-league-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 2px;
  min-height: 32px;
  padding: 2px 0;
}

.x74-league-label {
  flex: 0 0 auto;
  margin-right: 6px;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--x74-accent);
  line-height: 1.4;
  white-space: nowrap;
}

.x74-league-chip {
  display: inline-block;
  padding: 4px 8px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--x74-ink);
  text-decoration: none;
  border-radius: 3px;
  transition:
    background-color 160ms cubic-bezier(0.16, 1, 0.3, 1),
    color 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.x74-league-chip:hover {
  color: var(--x74-accent);
  background: rgba(13, 181, 136, 0.08);
}

.x74-league-chip:focus-visible {
  outline: 2px solid var(--x74-accent);
  outline-offset: 1px;
}

.x74-league-chip[aria-current="page"] {
  color: #fff;
  background: var(--x74-accent);
  font-weight: 600;
}

/* ===== Mobile chrome ===== */
@media (max-width: 991px) {
  body[data-template="x74"] {
    overflow-x: hidden;
  }

  body[data-template="x74"] header.head_nav_met_27_1_1 {
    height: auto !important;
    min-height: 0 !important;
    background: #fff !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 30;
  }

  body[data-template="x74"] header.head_nav_met_27_1_1 .top-box,
  body[data-template="x74"] header.head_nav_met_27_1_1 .top-box > .row {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  body[data-template="x74"] header.head_nav_met_27_1_1 .top-box .top-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px;
    float: none !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    line-height: normal !important;
    padding: 0 12px !important;
    margin: 0 !important;
    position: relative;
    box-sizing: border-box;
  }

  body[data-template="x74"] header.head_nav_met_27_1_1 .logo-box {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 52px !important;
    line-height: normal !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body[data-template="x74"] header.head_nav_met_27_1_1 .logo-box .met-logo,
  body[data-template="x74"]
    header.head_nav_met_27_1_1
    .logo-box
    .vertical-align-middle {
    display: flex !important;
    align-items: center !important;
    height: 100%;
    max-width: 100%;
  }

  body[data-template="x74"] header.head_nav_met_27_1_1 .logo-box img {
    display: block !important;
    max-height: 32px !important;
    height: 32px !important;
    width: auto !important;
    max-width: min(200px, 58vw) !important;
    object-fit: contain;
    margin: 0 !important;
  }

  body[data-template="x74"] header.head_nav_met_27_1_1 .pull-md-right {
    display: none !important;
  }

  body[data-template="x74"] header.head_nav_met_27_1_1 .x74-header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
    gap: 2px;
    height: 40px;
    margin: 0 !important;
    padding: 0 !important;
  }

  body[data-template="x74"] header.head_nav_met_27_1_1 .search-boxs {
    position: static !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 40px !important;
    line-height: normal !important;
  }

  body[data-template="x74"] header.head_nav_met_27_1_1 .m-search {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #039ea1 !important;
    line-height: 1 !important;
  }

  body[data-template="x74"] header.head_nav_met_27_1_1 .m-search i,
  body[data-template="x74"] header.head_nav_met_27_1_1 .m-search .icon {
    position: static !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    color: #039ea1 !important;
    background: transparent !important;
  }

  body[data-template="x74"] header.head_nav_met_27_1_1 .navbar-toggler {
    position: static !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 0 0 2px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    line-height: 1 !important;
    color: #333 !important;
  }

  body[data-template="x74"] header.head_nav_met_27_1_1 .navbar-toggler::before,
  body[data-template="x74"] header.head_nav_met_27_1_1 .navbar-toggler::after {
    content: none !important;
    display: none !important;
  }

  body[data-template="x74"]
    header.head_nav_met_27_1_1
    .navbar-toggler
    .menu-burger-icon {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  body[data-template="x74"] header.head_nav_met_27_1_1 .nav-container {
    position: relative;
    padding: 0 !important;
  }

  body[data-template="x74"]
    header.head_nav_met_27_1_1
    #met-nav-collapse:not(.show) {
    display: none !important;
  }

  body[data-template="x74"] header.head_nav_met_27_1_1 #met-nav-collapse.show {
    display: block !important;
    position: absolute;
    left: 0;
    right: 0;
    top: 52px;
    z-index: 40;
    background: #039ea1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    padding: 4px 0 8px;
  }

  body[data-template="x74"]
    header.head_nav_met_27_1_1
    #met-nav-collapse.show
    .navlist {
    display: block !important;
  }

  body[data-template="x74"]
    header.head_nav_met_27_1_1
    #met-nav-collapse.show
    .nav-item {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  body[data-template="x74"]
    header.head_nav_met_27_1_1
    #met-nav-collapse.show
    .nav-link {
    display: block;
    padding: 12px 16px;
    color: #fff !important;
    font-size: 15px;
  }

  body[data-template="x74"]
    header.head_nav_met_27_1_1
    #met-nav-collapse.show
    .nav-link.active {
    background: rgba(0, 0, 0, 0.18);
  }

  /* League chips: one horizontal scroll row */
  .x74-league-bar {
    border-top: 0;
    padding: 8px 0 10px;
    background: #f7f7f7;
  }

  .x74-league-bar .container {
    padding: 0 !important;
  }

  .x74-league-row {
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 0;
    padding: 0 10px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .x74-league-row::-webkit-scrollbar {
    display: none;
  }

  .x74-league-label {
    flex: 0 0 auto;
    margin-right: 2px;
    padding: 6px 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--x74-accent);
    background: transparent;
    border: 0;
    border-radius: 0;
    white-space: nowrap;
  }

  .x74-league-chip {
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.3;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-right: 0;
  }

  .x74-league-chip[aria-current="page"] {
    color: #fff;
    background: var(--x74-accent);
    border-color: var(--x74-accent);
  }

  /* Home match list denser on mobile */
  .news_list_met_27_1_4 .container.newsbox {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .news_list_met_27_1_4 .item.col-lg-8,
  .news_list_met_27_1_4 .item.col-lg-4 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .news_list_met_27_1_4 .panel {
    margin-top: 10px !important;
  }

  .news_list_met_27_1_4 .panel .panel_title > h2,
  .news_list_met_27_1_4 .panel .panel_title > h3 {
    height: 40px;
    line-height: 40px;
    font-size: 16px;
    padding-left: 12px;
  }

  .news_list_met_27_1_4 .panel .panel_title .data-update-time {
    display: none;
  }

  .news_list_met_27_1_4 .panel .panel_body {
    border-left: 0;
    border-right: 0;
    margin-bottom: 12px;
  }

  .news_list_met_27_1_4 .panel .panel_body li {
    height: auto;
    min-height: 44px;
    padding: 8px 10px;
    gap: 6px;
    font-size: 13px;
  }

  .news_list_met_27_1_4 .panel .panel_body li time {
    margin-right: 0;
    min-width: 2.6em;
    font-size: 12px;
  }

  .news_list_met_27_1_4 .panel .panel_body li .blockWidth20 {
    display: none;
  }

  .news_list_met_27_1_4 .panel .panel_body li .blockWidth40 {
    width: auto;
    flex: 1;
    min-width: 0;
    font-size: 13px;
  }

  .news_list_met_27_1_4 .panel .panel_body li .highLive span {
    width: 52px;
    line-height: 28px;
    font-size: 12px;
    border-radius: 3px;
  }

  body[data-template="x74"] .flex-between > aside.x74-aside,
  body[data-template="x74"] .live-content > aside.x74-aside {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 767px) {
  body[data-template="x74"] header.head_nav_met_27_1_1 .search-index {
    position: absolute !important;
    float: none !important;
    display: block !important;
    right: 12px !important;
    top: 52px !important;
    left: auto !important;
    z-index: 50;
    width: min(calc(100vw - 24px), 320px);
    padding: 8px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    height: auto !important;
    line-height: normal !important;
  }

  body[data-template="x74"] header.head_nav_met_27_1_1 .search-index[hidden] {
    display: none !important;
  }

  body[data-template="x74"]
    header.head_nav_met_27_1_1
    .search-index
    .input-search {
    display: flex;
    align-items: center;
    gap: 6px;
    position: static !important;
    left: auto !important;
    height: auto !important;
  }

  body[data-template="x74"]
    header.head_nav_met_27_1_1
    .search-index
    .form-control {
    flex: 1;
    min-width: 0;
    height: 36px;
    font-size: 14px;
  }
}

/* Home layout */
.news_list_met_27_1_4.met-index-body {
  padding-bottom: 24px;
}

.news_list_met_27_1_4 .panel .panel_title > h2,
.news_list_met_27_1_4 .panel .panel_title > h3 {
  display: inline-block;
  margin: 0;
  padding: 0 0 0 15px;
  height: 48px;
  line-height: 48px;
  font-size: 18px;
  color: #fff;
  font-weight: 600;
}

.news_list_met_27_1_4 .panel .panel_body li a:focus-visible,
.news_list_met_27_1_4 .panel.simple a:focus-visible,
.head_nav_met_27_1_1 a:focus-visible,
.head_nav_met_27_1_1 button:focus-visible,
.foot_info_met_16_1_56 a:focus-visible {
  outline: 2px solid var(--x74-accent);
  outline-offset: 2px;
}

.news_list_met_27_1_4 .panel .panel_body li time {
  flex: 0 0 auto;
  min-width: 3.2em;
  font-variant-numeric: tabular-nums;
  color: var(--x74-muted);
}

.highLive {
  flex: 0 0 auto;
  margin-left: auto;
  text-decoration: none;
}

.highLive.incoming {
  border-radius: 4px;
}

.panel.simple .panel_body ul.navs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 16px;
  margin: 0;
  list-style: none;
}

.panel.simple .panel_body ul.navs a {
  display: inline-block;
  color: var(--x74-ink);
  text-decoration: none;
}

.panel.simple .panel_body ul.navs a:hover {
  color: var(--x74-accent);
}

.foot_info_met_16_1_56 {
  background: #fff;
  padding: 24px 0 32px;
  margin-top: 16px;
  color: var(--x74-muted);
  font-size: 13px;
  line-height: 1.7;
}

.foot_info_met_16_1_56 a {
  color: var(--x74-ink);
  text-decoration: underline;
}

.foot_info_met_16_1_56 a:hover {
  color: var(--x74-accent);
}

/* Neutralize legacy .container when jrstv chrome is active */
body[data-template="x74"] header.head_nav_met_27_1_1 .container,
body[data-template="x74"] .news_list_met_27_1_4 .container,
body[data-template="x74"] footer.foot_info_met_16_1_56 .container {
  width: auto;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}

/* Inner-page content still using legacy wrappers */
body[data-template="x74"] .main > .flex-between,
body[data-template="x74"] .x74-league-page,
body[data-template="x74"] .x74-home-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px;
}

/* Sidebar works in home col and legacy flex layouts */
body[data-template="x74"] aside.x74-aside {
  display: block;
  width: 100%;
  min-width: 0;
}

body[data-template="x74"] .flex-between > aside.x74-aside,
body[data-template="x74"] .live-content > aside.x74-aside {
  flex: 0 0 320px;
  max-width: 320px;
}

body[data-template="x74"] .panel .panel_title .data-update-time {
  margin-left: 10px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 991px) {
  .news_list_met_27_1_4 .item.col-lg-8,
  .news_list_met_27_1_4 .item.col-lg-4 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
}

/* ===== Live detail (detail_zb) ===== */
.x74-zb-hero .fixed_score_box.x74-scoreboard,
.x74-zb-hero .fixed_score_box.zuqiu,
.x74-zb-hero .fixed_score_box.lanqiu {
  background-image: url(/static/x74/images/zuqiu_info_banner.png);
  background-color: #0b3d4a;
  background-size: cover;
  background-position: center bottom;
  height: auto;
  min-height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  box-sizing: border-box;
}

.x74-zb-hero .fixed_score_box.lanqiu {
  background-image: url(/static/x74/images/bg_games.png);
}

.x74-zb-hero .x74-scoreboard__row.fixed_score_top {
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  float: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 220px) minmax(0, 1fr);
  align-items: center;
  gap: 12px 16px;
}

.x74-zb-hero .x74-scoreboard__team.score_name_left,
.x74-zb-hero .x74-scoreboard__team.score_name_right {
  float: none;
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-width: 0;
}

.x74-zb-hero .x74-scoreboard__logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.x74-zb-hero .x74-scoreboard__logo img,
.x74-zb-hero .score_name_left > img {
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  background: transparent;
}

.x74-zb-hero .x74-scoreboard__name.team-name {
  width: 100%;
  max-width: 160px;
  margin: 10px 0 0;
  padding: 0 4px;
  text-align: center;
}

.x74-zb-hero .x74-scoreboard__name.team-name a,
.x74-zb-hero .x74-scoreboard__name.team-name span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  width: 100%;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  text-decoration: none;
  text-align: center;
  word-break: break-word;
}

.x74-zb-hero .x74-scoreboard__name a:hover,
.x74-zb-hero .x74-scoreboard__name a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.x74-zb-hero .x74-scoreboard__center.score_name {
  float: none;
  width: auto;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.x74-zb-hero .x74-scoreboard__time,
.x74-zb-hero .x74-scoreboard__center.score_name > p:first-child {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.x74-zb-hero .x74-scoreboard__score,
.x74-zb-hero .x74-scoreboard__center.score_name > span {
  display: block;
  height: auto;
  margin: 0;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-align: center;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.x74-zb-hero .x74-scoreboard__status.match_info_btn {
  width: auto;
  min-width: 88px;
  height: auto;
  margin: 4px auto 0;
  padding: 4px 14px;
  line-height: 1.4;
  font-size: 14px;
  font-weight: 700;
  color: #fff !important;
  background: rgba(212, 29, 27, 0.92);
  border-radius: 999px;
  text-align: center;
}

.match_info_head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--x74-ink, #1e2126);
}

.match_info_head a {
  color: var(--x74-accent, #039ea1);
  font-weight: 600;
  text-decoration: none;
}

.match_info_head a:hover {
  text-decoration: underline;
}

.x74-zb-h1 {
  margin: 12px 15px 8px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--x74-ink, #1e2126);
  font-weight: 700;
  text-wrap: balance;
}

.x74-zb-signals {
  padding: 0 15px 15px;
}

.x74-zb-signals .navs2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 12px;
}

.x74-zb-signals .navs2 a {
  display: inline-flex;
  align-items: center;
  height: auto;
  line-height: 1.4;
  padding: 8px 12px;
  margin: 0;
  background: #d41d1b;
  border-radius: 4px;
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  transition:
    background-color 0.2s ease-out,
    transform 0.2s ease-out;
}

.x74-zb-signals .navs2 a:hover {
  background: #b01614;
}

.x74-zb-signals .navs2 a:focus-visible {
  outline: 2px solid var(--x74-accent, #039ea1);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .x74-zb-signals .navs2 a {
    transition: none;
  }
}

.x74-zb-signal-empty {
  color: var(--x74-muted, #666);
  font-size: 14px;
}

.x74-times-container {
  border: 1px solid #666;
  background: #333;
  color: #fff;
  width: 100%;
  font-size: clamp(16px, 2.4vw, 24px);
  padding: 12px 16px;
  box-sizing: border-box;
  text-align: center;
  border-radius: 4px;
}

.x74-times-text {
  margin: 0;
  line-height: 1.5;
}

.x74-times-text span {
  font-weight: 700;
  color: #ffe566;
  margin: 0 2px;
}

.x74-zb-analysis {
  padding: 16px 20px !important;
  line-height: 1.7;
  color: var(--x74-ink, #333);
}

.x74-zb-analysis p {
  margin: 0 0 10px;
  max-width: 75ch;
}

.x74-zb-analysis a {
  color: var(--x74-accent, #039ea1);
  font-weight: 600;
  text-decoration: none;
}

.x74-zb-analysis a:hover {
  text-decoration: underline;
}

.x74-zb-data-body {
  padding: 0 !important;
}

.x74-zb-data-body .text_live {
  margin: 0;
  background: transparent;
}

.x74-zb-data-body .text_live_nav {
  border-bottom-color: var(--x74-accent, #039ea1);
}

.x74-zb-data-body .text_live_nav span.on {
  color: var(--x74-accent, #039ea1);
}

.x74-zb-data-body .text_live_nav span.on:after {
  background: var(--x74-accent, #039ea1);
}

.x74-zb-empty {
  padding: 16px 20px;
  margin: 0;
  color: var(--x74-muted, #666);
}

.panel_title.crumb {
  overflow: hidden;
}

.panel_title.crumb .breadcrumb {
  padding-left: 1rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  float: none;
}

.panel_title.crumb .breadcrumb > li {
  float: none;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-right: 18px;
  margin-right: 2px;
}

.panel_title.crumb .breadcrumb > li > a {
  color: #fff !important;
  padding-right: 0;
  text-decoration: none;
}

.panel_title.crumb .breadcrumb > li:after {
  border-left: solid 5px #fff;
  border-top: solid 5px transparent;
  border-bottom: solid 5px transparent;
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  top: 50%;
  right: 4px;
  margin-top: -5px;
}

.panel_title.crumb .breadcrumb > li:last-child {
  padding-right: 0;
  margin-right: 0;
}

.panel_title.crumb .breadcrumb > li:last-child:after {
  display: none;
}

.panel_title.crumb .breadcrumb > li.active > span {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 39px;
}

/* League match list */
.x74-league-nav-body {
  padding: 12px 16px !important;
}

.x74-league-nav-body .x74-league-nav,
.x74-league-nav-body .subfoldoritem {
  margin: 0;
}

.x74-league-nav-body .link-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.x74-league-nav-body .responsive-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(3, 158, 161, 0.1);
  color: var(--x74-accent, #039ea1);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}

.x74-league-nav-body .responsive-link:hover,
.x74-league-nav-body .responsive-link:focus-visible {
  background: var(--x74-accent, #039ea1);
  color: #fff;
  outline: none;
}

.news_list_met_27_1_4 .panel .panel_title > h1 {
  display: inline-block;
  margin: 0;
  padding: 0 0 0 15px;
  height: 48px;
  line-height: 48px;
  font-size: 18px;
  color: #fff;
  font-weight: 600;
}

/* Article related tags — isolate from match-list .panel_body li rules */
.panel_body .tags {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #ededed;
}

.panel_body .tags h2 {
  margin: 0 0 12px;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--x74-ink, #1b1b1b);
  border: none;
}

.panel_body .tags ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel_body .tags li,
.panel .panel_body .tags li {
  float: left;
  display: inline-block;
  height: auto;
  min-height: 0;
  margin: 0 8px 8px 0;
  padding: 5px 14px;
  border: none;
  border-bottom: none;
  border-radius: 4px;
  background: #f2f2f2;
  font-size: 13px;
  line-height: 22px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.panel_body .tags li:not(:last-child),
.panel .panel_body .tags li:not(:last-child) {
  border-bottom: none;
}

.panel_body .tags li a,
.panel .panel_body .tags li a {
  display: block;
  color: #555;
  font-size: 13px;
  background: transparent;
  border: none;
}

.panel_body .tags li:hover,
.panel .panel_body .tags li:hover {
  background: var(--x74-accent, #039ea1);
}

.panel_body .tags li:hover a,
.panel .panel_body .tags li:hover a,
.panel_body .tags li a:hover,
.panel .panel_body .tags li a:hover {
  color: #fff;
  background: transparent;
}

.panel_body .tags li a:focus-visible {
  outline: 2px solid var(--x74-accent, #039ea1);
  outline-offset: 2px;
}

.x74-league-day-label {
  display: flex !important;
  align-items: center;
  height: auto !important;
  min-height: 36px;
  padding: 8px 16px !important;
  background: rgba(3, 158, 161, 0.08) !important;
  border-bottom: 1px solid #039ea1 !important;
  pointer-events: none;
}

.x74-league-day-label:hover {
  background: rgba(3, 158, 161, 0.08) !important;
}

.x74-league-day-label strong {
  font-size: 14px;
  color: var(--x74-ink, #1a1a1a);
  font-weight: 700;
}

.x74-league-day-label em {
  font-style: normal;
  font-weight: 500;
  color: var(--x74-muted, #666);
  margin-left: 6px;
}

.x74-widget-panel {
  padding: 12px 16px !important;
}

.x74-widget-panel > .item-block,
.x74-widget-panel > .mt20 {
  margin: 0 !important;
}

.x74-widget-panel .section-title,
.x74-widget-panel > .item-block > .section-title,
.x74-widget-panel > section > .section-title,
.x74-widget-panel > section > header.section-title {
  display: none !important;
}

@media (max-width: 767px) {
  .x74-zb-hero .fixed_score_box.x74-scoreboard {
    min-height: 168px;
    padding: 16px 10px;
  }

  .x74-zb-hero .x74-scoreboard__row.fixed_score_top {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 140px) minmax(0, 1fr);
    gap: 8px;
  }

  .x74-zb-hero .x74-scoreboard__logo {
    width: 56px;
    height: 56px;
  }

  .x74-zb-hero .x74-scoreboard__logo img,
  .x74-zb-hero .score_name_left > img {
    width: 50px;
    height: 50px;
  }

  .x74-zb-hero .x74-scoreboard__name.team-name,
  .x74-zb-hero .x74-scoreboard__name.team-name a,
  .x74-zb-hero .x74-scoreboard__name.team-name span {
    max-width: 110px;
    margin-top: 8px;
    font-size: 13px;
  }

  .x74-zb-hero .x74-scoreboard__time {
    font-size: 13px;
  }

  .x74-zb-hero .x74-scoreboard__score {
    font-size: 24px;
  }

  .x74-zb-hero .x74-scoreboard__status.match_info_btn {
    font-size: 12px;
    padding: 3px 10px;
  }

  .x74-zb-h1 {
    font-size: 18px;
  }

  .x74-times-container {
    font-size: 16px;
  }
}

/* ===== Panel match list (saicheng / team schedule with logos) =====
   Old styles were scoped to .live-content .live-list and no longer apply. */
.news_list_met_27_1_4 .panel_body .listcontent {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news_list_met_27_1_4 .panel_body .listcontent > .item.match_list_item,
.news_list_met_27_1_4 .panel_body .listcontent > .match-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  border-top: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  min-height: 56px;
  height: auto;
  overflow: hidden;
}

.news_list_met_27_1_4 .panel_body .listcontent > .item.match_list_item:hover {
  background: rgba(3, 158, 161, 0.06);
}

.news_list_met_27_1_4 .panel_body .listcontent > .item.match_list_item .time {
  flex: 0 0 72px;
  width: 72px;
  min-width: 72px;
  color: #666;
  font-size: 13px;
  line-height: 1.35;
}

.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .time
  .live-time {
  display: block;
  font-weight: 600;
  color: var(--x74-accent, #039ea1);
}

.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .duizhen {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  gap: 4px;
}

.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .duizhen
  .f-left,
.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .duizhen
  .f-right {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  gap: 8px;
}

.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .duizhen
  .f-right {
  justify-content: flex-end;
  text-align: right !important;
}

.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .duizhen
  .f-left {
  justify-content: flex-start;
  text-align: left !important;
}

.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .duizhen
  .team-logo,
.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  img.team-logo {
  flex: 0 0 28px;
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  object-fit: contain;
  display: block;
  margin: 0;
}

.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .duizhen
  h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
  color: #333;
}

.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .duizhen
  h3
  a,
.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .duizhen
  h3
  span {
  color: inherit;
}

.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .duizhen
  h3
  a:hover {
  color: var(--x74-accent, #039ea1);
}

.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .score-wrap {
  flex: 0 0 88px;
  width: 88px;
  text-align: center;
}

.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .score-wrap
  .score,
.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .score-wrap
  span,
.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .score-wrap
  strong {
  display: block;
  width: 100%;
}

.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .score-wrap
  .score {
  color: #333;
  font-size: 14px;
}

.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .score-wrap
  .live-link
  a {
  color: #888;
  font-size: 12px;
}

.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .live-btn {
  flex: 0 0 auto;
  text-align: center;
}

.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .zhibo-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 12px;
  border-radius: 4px;
  background: #666;
  color: #fff !important;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.match_list_item
  .live-btn.start
  .zhibo-name,
.news_list_met_27_1_4
  .panel_body
  .listcontent
  > .item.status-2
  .start
  .zhibo-name {
  background: var(--x74-accent, #039ea1);
}

@media (max-width: 767px) {
  .news_list_met_27_1_4 .panel_body .listcontent > .item.match_list_item {
    flex-wrap: wrap;
    padding: 12px;
  }

  .news_list_met_27_1_4 .panel_body .listcontent > .item.match_list_item .time {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .news_list_met_27_1_4
    .panel_body
    .listcontent
    > .item.match_list_item
    .duizhen {
    flex: 0 0 100%;
    width: 100%;
    padding: 8px 0;
  }

  .news_list_met_27_1_4
    .panel_body
    .listcontent
    > .item.match_list_item
    .duizhen
    h3 {
    max-width: 90px;
    font-size: 13px;
  }

  .news_list_met_27_1_4
    .panel_body
    .listcontent
    > .item.match_list_item
    .live-btn {
    flex: 0 0 100%;
    width: 100%;
  }
}

/* Home hero banner — minimal, no photo */
body[data-template="x74"] .banner {
  display: flex;
  align-items: stretch;
  width: calc(100% - 24px);
  max-width: 1200px;
  min-height: 120px;
  margin: 12px auto 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  background: #fff;
  color: var(--x74-ink, #1a1a1a);
  user-select: none;
  border: 1px solid #e6e8ea;
  border-radius: 8px;
  border-left: 4px solid var(--x74-accent, #039ea1);
}

body[data-template="x74"] .banner > .banner-left {
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  box-sizing: border-box;
}

body[data-template="x74"] .banner > .banner-right {
  flex: 0 0 28%;
  max-width: 280px;
  min-width: 0;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(3, 158, 161, 0.08) 0%,
    rgba(3, 158, 161, 0.02) 55%,
    transparent 100%
  );
}

body[data-template="x74"] .banner > .banner-right::before,
body[data-template="x74"] .banner > .banner-right::after {
  content: none;
}

body[data-template="x74"] .banner .banner-word {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  width: auto;
  max-width: 720px;
  z-index: 1;
  color: inherit;
}

body[data-template="x74"] .banner .banner-headline {
  margin: 0 0 8px;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: var(--x74-ink, #1a1a1a);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  text-shadow: none;
  text-wrap: balance;
}

body[data-template="x74"] .banner .banner-sub {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--x74-muted, #555);
}

@media (max-width: 768px) {
  body[data-template="x74"] .banner {
    width: calc(100% - 20px);
    min-height: 0;
    margin-top: 8px;
    border-radius: 6px;
  }

  body[data-template="x74"] .banner > .banner-left {
    padding: 20px 18px;
  }

  body[data-template="x74"] .banner > .banner-right {
    display: none;
  }

  body[data-template="x74"] .banner .banner-headline {
    font-size: 1.125rem;
    letter-spacing: 0.02em;
    line-height: 1.4;
    margin-bottom: 6px;
  }

  body[data-template="x74"] .banner .banner-sub {
    font-size: 13px;
    letter-spacing: 0;
  }
}

/* SEO: expand-more control should be a button, not a void link */
body[data-template="x74"] .panel .panel_body .more .more-btn {
  appearance: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  border-radius: 100px;
  border: solid 1px #039ea1;
  padding: 5px 10px;
  color: #039ea1;
}
