/* zhibo live portal - dark top, red accent */
:root {
  --z-bg: #eef1f5;
  --z-bg-soft: #f6f8fb;
  --z-card: #ffffff;
  --z-card-tint: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  --z-text: #1a1a2e;
  --z-text-soft: #243044;
  --z-muted: #6b7280;
  --z-muted-soft: #94a3b8;
  --z-line: #dbe2ea;
  --z-line-soft: #e8edf3;
  --z-header: #0f1419;
  --z-header-2: #151c24;
  --z-header-line: rgba(255,255,255,.08);
  --z-red: #e63946;
  --z-red-deep: #c71f31;
  --z-red-soft: #fff0f1;
  --z-green: #16a34a;
  --z-green-soft: #ecfdf3;
  --z-gold: #f59e0b;
  --z-shadow: 0 1px 6px rgba(0,0,0,.07);
  --z-shadow-lg: 0 12px 30px rgba(15,20,25,.12);
  --z-radius: 10px;
  --z-radius-lg: 14px;
  --z-max: 1200px;
  --fp-hue: 0;
  --fp-sp: 1;
  --fp-fs: 1;
  --fp-r: 10px;
  --fp-pad: 0px;
  --fp-bg: #eef1f5;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.zhibo {
  background: var(--fp-bg, var(--z-bg));
  color: var(--z-text);
  font: calc(14px * var(--fp-fs))/1.6 system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--z-red);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
a:hover { color: var(--z-red-deep); }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding-left: 1.2em; }
.z-wrap, .wrap, .container { max-width: var(--z-max); margin: 0 auto; padding: 0 16px; }
.z-main { padding: 18px 0 40px; }
.z-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, var(--z-header) 0%, var(--z-header-2) 100%);
  color: #fff;
  box-shadow: 0 1px 0 var(--z-header-line), 0 8px 18px rgba(15,20,25,.18);
}
.z-bar-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.z-logo, .z-logo a {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.z-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}
.z-nav li {
  list-style: none;
  display: inline-flex;
  margin: 0;
  padding: 0;
}
.z-nav a, .z-nav li a {
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  white-space: nowrap;
  font-weight: 500;
}
.z-nav a:hover, .z-nav li a:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.z-nav-search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 248px;
  min-width: 0;
}
.z-nav-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  padding: 0 10px;
  color: #e5e7eb;
  background: rgba(255,255,255,.08);
  outline: 0;
  font: inherit;
  font-size: 13px;
}
.z-nav-search input::placeholder { color: #9ca3af; }
.z-nav-search input:focus {
  border-color: rgba(230,57,70,.65);
  box-shadow: 0 0 0 2px rgba(230,57,70,.18);
}
.z-nav-search button {
  flex: 0 0 auto;
  height: 32px;
  min-width: 54px;
  border: 0;
  border-radius: 6px;
  background: var(--z-red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.z-nav-search button:hover { background: var(--z-red-deep); }
.z-crumb, .breadcrumb {
  margin: 0 0 16px;
  padding: 10px 14px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(219,226,234,.9);
  border-radius: var(--z-radius);
  color: var(--z-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  box-shadow: var(--z-shadow);
}
.z-crumb a, .breadcrumb a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.z-crumb a:hover, .breadcrumb a:hover { color: var(--z-red); }
.z-crumb .sep, .breadcrumb .sep { color: var(--z-muted-soft); }
.z-hero, .page-title, .match-header, .news-article, .z-card, .kw-anchor {
  background: var(--z-card-tint);
  border-radius: var(--z-radius);
  box-shadow: var(--z-shadow);
  border: 1px solid rgba(232,237,243,.95);
}
.z-hero {
  margin-bottom: 16px;
  padding: 24px 24px 22px;
  position: relative;
  overflow: hidden;
}
.z-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(230,57,70,.12), transparent 34%), radial-gradient(circle at left center, rgba(15,20,25,.05), transparent 26%);
  pointer-events: none;
}
.z-hero > * { position: relative; z-index: 1; }
.page-title, .match-header, .news-article { padding: 20px 22px; margin-bottom: 16px; }
h1, .z-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--z-text);
}
h2, h3 { color: var(--z-text); }
p { margin: 0 0 12px; }
small { color: var(--z-muted); font-size: 13px; }
.z-sub, .meta, .lead, .z-note, .page-title p, .news-article .meta, .match-header .meta { color: var(--z-muted); }
.z-sub { max-width: 880px; }
.z-grid, .entity-layout, .portal-layout, .match-detail-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 16px;
  align-items: start;
}
.z-content, .z-side, .main-col, .side-col { min-width: 0; }
.z-card {
  margin-bottom: 16px;
  padding: 16px 18px;
  overflow: hidden;
}
.z-h, .z-card h2, .z-card h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.z-h-bar, .z-card h2::before, .z-card h3::before {
  content: '';
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: var(--z-red);
  flex: 0 0 auto;
}
.z-head, .block-head, .split-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.z-head .z-h, .block-head h2, .block-head h3, .split-head h2, .split-head h3 { margin-bottom: 0; }
.z-more, .block-head a {
  font-size: 13px;
  color: var(--z-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.z-more:hover, .block-head a:hover { color: var(--z-red); }
.z-chip-row, .channel-nav, .schedule-tabs, .league-pills, .team-cloud, .keyword-cloud, .team-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.z-chip-row a, .channel-nav a, .schedule-tabs a, .league-pills a, .team-cloud a, .keyword-cloud a, .team-tag a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  background: #f4f6f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #334155;
  font-size: 13px;
}
.z-chip-row a:hover, .channel-nav a:hover, .schedule-tabs a:hover, .league-pills a:hover, .team-cloud a:hover, .keyword-cloud a:hover, .team-tag a:hover {
  background: var(--z-red);
  color: #fff;
  border-color: var(--z-red);
  box-shadow: 0 6px 16px rgba(230,57,70,.2);
}
.z-chip-row .active, .channel-nav .active, .schedule-tabs .active { background: var(--z-red); color: #fff; border-color: var(--z-red); }
.z-match, .match-list li, .result-list li, .live-list li, .history-list li {
  display: grid;
  grid-template-columns: 74px minmax(78px,max-content) minmax(0,1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px dashed #e5e7eb;
}
.z-match:last-child, .match-list li:last-child, .result-list li:last-child, .live-list li:last-child, .history-list li:last-child,
.news-list li:last-child, .news-card-list li:last-child, .compact-video-list li:last-child, .replay-list li:last-child,
.stream-list li:last-child, .video-list li:last-child, .data-link-list li:last-child, .info-list li:last-child { border-bottom: 0; }
.z-time, .match-list .time, .live-list .time, .history-list .time { color: var(--z-muted); font-size: 13px; }
.z-badge, .match-list .league, .result-list .league, .history-list .league, .badge, .h-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  background: var(--z-red);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.z-live, .live-list .label, .live-tag, .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  background: var(--z-green);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  filter: hue-rotate(calc(var(--fp-hue) * 1deg));
}
.z-live::before, .live-list .label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  margin-right: 6px;
  box-shadow: 0 0 0 4px rgba(255,255,255,.12);
}
.z-teams, .live-list .vs, .score-team, .team-with-logo, .entity-title-main, .player-with-photo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.z-teams strong, .match-list .score, .result-list strong, .live-list .score, .history-list strong {
  color: var(--z-red);
  font-weight: 800;
}
.z-act, .match-list a.detail, .result-list .detail, .replay-list .detail, .history-list .detail, .live-list .watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 44px;
  padding: 0 12px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.z-act:hover, .match-list a.detail:hover, .result-list .detail:hover, .replay-list .detail:hover, .history-list .detail:hover, .live-list .watch:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.z-important-grid, .important-match-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 12px;
}
.z-important, .important-match {
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  display: grid;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.z-important-top, .important-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--z-muted);
  font-size: 13px;
}
.z-important-score, .important-vs, .match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.z-important-score strong, .match-teams strong {
  font-size: 28px;
  color: var(--z-red);
  text-align: center;
  letter-spacing: .02em;
}
.z-important .watch, .search-form button, .z-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(37,99,235,.22);
}
.z-important .watch:hover, .search-form button:hover, .z-cta:hover {
  background: #1d4ed8;
  color: #fff;
}
.news-list, .news-card-list, .compact-video-list, .replay-list, .history-list, .stream-list, .video-list, .data-link-list, .info-list, .match-list, .live-list, .result-list, .player-grid {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-list li, .news-card-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #e5e7eb;
}
.z-news-thumb, .news-thumb, .video-cover, .replay-cover {
  overflow: hidden;
  border-radius: 10px;
  background: #e9eef4;
  flex: 0 0 auto;
  position: relative;
  display: block;
}
.z-news-thumb::after, .news-thumb::after, .video-cover::after, .replay-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,20,25,.14) 100%);
  pointer-events: none;
}
.z-news-thumb, .news-thumb { width: 112px; height: 74px; }
.video-cover { width: 108px; height: 64px; }
.replay-cover { width: 132px; height: 78px; }
.z-news-thumb img, .news-thumb img, .video-cover img, .replay-cover img, .news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.z-news-body, .news-main, .replay-main { min-width: 0; flex: 1 1 auto; }
.z-news-body a, .news-main a, .replay-title, .compact-video-list a {
  font-weight: 700;
  color: var(--z-text);
}
.z-news-body a, .news-main a, .replay-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}
.z-news-body a:hover, .news-main a:hover, .replay-title:hover, .compact-video-list a:hover { color: var(--z-red); }
.compact-video-list li {
  display: grid;
  grid-template-columns: 108px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px dashed #e5e7eb;
}
.z-side .compact-video-list li {
  grid-template-columns: 88px minmax(0,1fr);
}
.z-side .compact-video-list .video-cover {
  width: 88px;
  height: 54px;
}
.compact-video-list a:not(.video-cover) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.compact-video-list p {
  margin: 5px 0 0;
  color: var(--z-muted);
  font-size: 12px;
}
.z-news-meta, .news-list .date, .news-card-list .date { color: var(--z-muted); font-size: 12px; margin-top: 4px; }
.replay-list li, .stream-list li, .video-list li, .data-link-list li, .info-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px dashed #e5e7eb;
}
.replay-list li { justify-content: flex-start; }
.entity-title-main img, .team-logo, .league-logo, .player-photo, .country-flag, .h-player-avatar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  object-fit: contain;
}
.team-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  padding: 3px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15,23,42,.06);
}
.score-team .team-logo, .entity-title-main .team-logo { width: 46px; height: 46px; padding: 4px; }
.league-logo, .country-flag { width: 40px; height: 28px; border-radius: 8px; padding: 2px; }
.player-photo, .h-player-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.entity-title-main {
  align-items: flex-start;
  gap: 14px;
}
.entity-overview, .match-info-grid, .h-player-props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 10px;
}
.entity-overview div, .match-info-grid div, .h-player-props li, .player-card {
  background: #f8fafc;
  border: 1px solid #e5ebf2;
  border-radius: 10px;
  padding: 10px 12px;
}
.entity-overview span, .match-info-grid span, .h-player-props b {
  display: block;
  color: var(--z-muted);
  font-size: 12px;
}
.entity-overview strong, .match-info-grid strong {
  display: block;
  margin-top: 4px;
}
.entity-prose, .news-article .content, .article-body { line-height: 1.85; }
.entity-prose p, .news-article .content p { margin-bottom: 14px; }
.news-cover {
  margin: 16px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #e9eef4;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.news-cover img { max-height: 460px; display: block; }
.video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0f14;
  border-radius: 12px;
  overflow: hidden;
}
.video-player iframe, .video-player video, .video-player .video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.table-wrap { overflow-x: auto; }
.data-table, .info-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th, .data-table td, .info-table th, .info-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  white-space: nowrap;
}
.data-table th, .info-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}
.data-table td:nth-child(1), .data-table th:nth-child(1) { text-align: center; }
.data-link-list a {
  color: #2563eb;
  font-weight: 700;
}
.data-link-list span {
  color: var(--z-muted);
  font-size: 13px;
}
.rich-match-list .actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  min-width: 44px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  font-size: 12px;
  font-weight: 700;
}
.rich-match-list .actions a:hover {
  background: #2563eb;
  color: #fff;
}
.match-item.status-finished .score,
.result-finished strong {
  color: #16a34a;
}
.match-item.status-pending .score,
.match-item.status-live .score {
  color: #2563eb;
}
.match-item.status-live .league {
  background: #16a34a;
}
.subsection-title {
  margin: 16px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--z-red);
  font-size: 14px;
  font-weight: 700;
  color: var(--z-text);
}
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap: 12px;
}
.player-card {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  color: inherit;
}
.player-card .player-thumb { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #e2e8f0; }
.player-card .player-name { display: block; font-weight: 700; color: var(--z-text); }
.player-card .player-pos { display: block; font-size: 12px; color: var(--z-muted); }
.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.search-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  border: 1px solid #d7dee8;
  border-radius: 999px;
  padding: 0 14px;
  font: inherit;
  background: #fff;
}
.search-form button {
  min-width: 96px;
  font-weight: 700;
  cursor: pointer;
}
.empty {
  margin: 6px 0;
  padding: 24px 18px;
  text-align: center;
  color: var(--z-muted);
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
}
.empty::before {
  content: '自动更新';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
}
.page-news .z-side .z-card:has(> .empty),
.page-news .z-side .z-card:has(> h3:last-child) { display: none; }
.page-player .z-card:has(> .empty),
.page-match .z-content .z-card:has(> .empty),
.page-match .z-side .z-card:has(> .empty),
.page-team .z-card:has(> .empty),
.page-league .z-card:has(> .empty) { display: none; }
.page-news .z-grid { grid-template-columns: 1fr; }
.page-news .z-side { display: none; }
.kw-anchor {
  padding: 16px 18px;
  color: var(--z-muted);
}
.z-footer {
  margin-top: 10px;
  background: var(--z-header);
  color: #9ca3af;
}
.z-footer-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
}
.page-index [data-module='live'] { border-top: 3px solid var(--z-green); }
.page-index [data-module='important'] { border-top: 3px solid var(--z-red); }
.page-news-detail .news-article h1,
.page-video .z-card h1,
.page-match .match-header h1 { margin-bottom: 10px; }
.page-zhibo-keyword .z-card[data-module='anchor'] strong { color: var(--z-red); }
@media (max-width: 1024px) {
  .z-grid, .entity-layout, .portal-layout, .match-detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .z-side { display: none; }
  .z-bar-inner {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
  }
  .z-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    width: 100%;
    scrollbar-width: none;
  }
  .z-nav-search {
    flex: none;
    width: 100%;
  }
  .z-nav-search input,
  .z-nav-search button {
    min-height: 44px;
  }
  .z-nav::-webkit-scrollbar, .z-chip-row::-webkit-scrollbar, .channel-nav::-webkit-scrollbar, .schedule-tabs::-webkit-scrollbar { display: none; }
  .z-nav a, .z-nav li a,
  .z-logo a, .z-crumb a, .breadcrumb a,
  .z-chip-row a, .channel-nav a, .schedule-tabs a,
  .league-pills a, .team-cloud a, .keyword-cloud a, .team-tag a,
  .team-with-logo, .live-team, .score-team,
  .news-list a, .news-card-list a, .compact-video-list a:not(.video-cover), .replay-title,
  .match-list .league, .result-list .league, .history-list .league,
  .z-more, .block-head a,
  .z-act, .match-list a.detail, .result-list .detail, .replay-list .detail, .history-list .detail, .live-list .watch,
  .rich-match-list .actions a,
  .z-important .watch, .search-form button, .z-cta {
    min-height: 44px;
    min-width: 44px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .z-hero, .page-title, .match-header, .news-article, .z-card { padding: 16px; }
  .z-chip-row, .channel-nav, .schedule-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .z-match, .match-list li, .result-list li, .live-list li, .history-list li {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 14px 0;
  }
  .z-match > :first-child, .match-list .time, .live-list .time, .history-list .time { grid-column: 1 / -1; }
  .match-list .league, .result-list .league, .history-list .league, .badge, .h-badge {
    justify-self: start;
    max-width: 100%;
  }
  .match-list .score, .live-list .score, .result-list strong, .history-list strong {
    justify-self: end;
  }
  .match-list .actions, .live-list .actions, .rich-match-list .actions {
    grid-column: 1 / -1;
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .match-list a.detail, .result-list .detail, .replay-list .detail, .history-list .detail, .live-list .watch {
    margin-left: 0;
  }
  .z-important-score, .important-vs, .match-teams { grid-template-columns: 1fr; }
  .score-team { justify-content: flex-start; }
  .replay-list li, .news-list li, .news-card-list li { align-items: flex-start; }
  .search-form { flex-direction: column; }
  .search-form button { width: 100%; }
  .empty::before { min-height: 28px; padding: 0 10px; }
}
@media (max-width: 480px) {
  body.zhibo { font-size: 13px; }
  .z-main { padding-top: 14px; }
  .z-wrap, .wrap, .container { padding: 0 12px; }
  .z-hero, .page-title, .match-header, .news-article, .z-card { padding: 14px; }
  h1, .z-title { font-size: 20px; }
  .z-h, .z-card h2, .z-card h3 { font-size: 15px; }
  .z-news-thumb, .news-thumb { width: 96px; height: 64px; }
  .video-cover { width: 92px; height: 56px; }
  .replay-cover { width: 104px; height: 64px; }
  .news-list li, .news-card-list li {
    gap: 10px;
  }
  .z-side .compact-video-list li, .compact-video-list li {
    grid-template-columns: 92px minmax(0,1fr);
  }
  .player-grid, .entity-overview, .match-info-grid, .h-player-props { grid-template-columns: 1fr; }
}

/* ── Mobile hamburger menu (pure CSS, no JS) ── */
.nav-toggle-checkbox { display: none; }
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  background: none;
  border: 1px solid var(--z-border, #e0e0e0);
}
.nav-toggle-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--z-text, #333);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

@media (max-width: 768px) {
  .nav-toggle-btn { display: flex; }
  .z-nav, .z-nav-search {
    display: none;
    width: 100%;
  }
  .nav-toggle-checkbox:checked ~ .z-nav,
  .nav-toggle-checkbox:checked ~ .z-nav-search {
    display: flex;
    flex-wrap: wrap;
  }
  .nav-toggle-checkbox:checked ~ .z-nav { flex-direction: row; }
}

/* Error page search + hot links */
.z-error-page .error-search { display:flex; gap:8px; margin:16px 0; max-width:400px; }
.z-error-page .error-search input { flex:1; padding:8px 12px; border:1px solid #ddd; border-radius:4px; font-size:14px; }
.z-error-page .error-search button { padding:8px 16px; background:#1890ff; color:#fff; border:none; border-radius:4px; cursor:pointer; }
.z-error-page .error-hot-links { margin:12px 0; line-height:2; }
.z-error-page .error-hot-links span { color:#999; }
.z-error-page .error-hot-links a { margin:0 6px; color:#333; text-decoration:none; }
.z-error-page .error-hot-links a:hover { text-decoration:underline; color:#1890ff; }
