/* 足球神算：PRD 第 6 节设计 token（深色双层页头、浅灰底、白卡片、品牌绿 #00A67A、紧凑行高） */
:root {
  --hdr: #222222; --hdr-2: #2d2d2d; --bg: #F3F4F6; --card: #FFFFFF; --brand: #00A67A; --brand-d: #008a65; --brand-soft: #e6f6f1;
  --text: #222222; --muted: #6B7280; --line: #E5E7EB; --live: #e5402b; --up: #e5402b; --down: #0f9d58; --gold: #c8962d; --away: #3d5afe;
  --r: 8px; --font: Roboto, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.3; margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* 滚动容器需定位，否则其中的 .sr 绝对定位相对根元素计算，会撑出整页横向滚动 */
.date-strip, .league-list, .tab-list, .hdr-nav .wrap, .section-tabs, .table-scroll, .status-tabs, .chips { position: relative; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: 1344px; margin: 0 auto; padding: 0 16px; }
.hide, [hidden] { display: none !important; }

/* 页头：两层深色 */
.site-header { position: sticky; top: 0; z-index: 20; }
.hdr-top { background: var(--hdr); color: #fff; }
.hdr-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; }
.brand:hover { color: #fff; }
.brand strong { display: block; font-size: 17px; letter-spacing: 1px; }
.brand small { display: block; font-size: 11px; opacity: .65; margin-top: -2px; }
.logo-mark { width: 30px; height: 30px; }
.hdr-search { display: flex; max-width: 320px; flex: 1; }
.hdr-search input { flex: 1; min-width: 0; border: 0; border-radius: 6px 0 0 6px; padding: 6px 10px; background: #3a3a3a; color: #fff; }
.hdr-search input::placeholder { color: #aaa; }
.hdr-search button { border: 0; border-radius: 0 6px 6px 0; background: var(--brand); color: #fff; padding: 0 12px; cursor: pointer; }
.hdr-nav { background: var(--hdr-2); }
.hdr-nav .wrap { display: flex; gap: 4px; overflow-x: auto; }
.hdr-nav a { color: #d1d5db; padding: 9px 14px; white-space: nowrap; border-bottom: 2px solid transparent; }
.hdr-nav a:hover { color: #fff; }
.hdr-nav a[aria-current] { color: #fff; border-bottom-color: var(--brand); }
.tabbar { display: none; }
.stale-banner { background: #fff6e0; color: #7a5a14; text-align: center; font-size: 12px; padding: 4px; border-bottom: 1px solid #f1d9a6; }

main.wrap { padding-top: 12px; padding-bottom: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; }
.card-h { font-size: 15px; display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.card-h small { font-size: 12px; color: var(--muted); font-weight: 400; }
.card-h a { margin-left: auto; font-size: 12px; color: var(--brand); font-weight: 400; }
.page-head { margin: 4px 0 12px; }
.page-head h1 { font-size: 20px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head.with-logo { display: flex; gap: 12px; align-items: center; }
.page-head.with-logo .fav { margin-left: auto; }
.empty, .hint { color: var(--muted); font-size: 13px; }
.hint { margin: 8px 0 0; }
.notice { border-radius: 6px; padding: 8px 12px; margin: 8px 0; font-size: 13px; }
.notice-error { background: #fdecea; color: #9b2c1f; border: 1px solid #f5c2bc; }
.notice-warn, .notice-info { background: #eef6ff; color: #1e4f8a; border: 1px solid #cfe2fb; }
.btn { display: inline-block; border: 1px solid var(--brand); color: var(--brand); border-radius: 6px; padding: 6px 14px; background: #fff; cursor: pointer; }
.btn:hover { background: var(--brand-soft); }

/* 三栏 */
.layout-3 { display: grid; grid-template-columns: 272px minmax(0, 1fr) 329px; gap: 12px; align-items: start; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.league-list { list-style: none; margin: 0; padding: 0; }
.league-list a { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 6px; min-height: 32px; }
.league-list a:hover, .league-list a[aria-current] { background: var(--brand-soft); color: var(--brand-d); }
.league-list span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.league-list em { font-style: normal; color: var(--muted); font-size: 12px; }
.badge { object-fit: contain; flex: none; border-radius: 50%; }
.badge-fallback { display: inline-grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-d); font-style: normal; font-size: 11px; flex: none; }

/* 比分中心 */
.col-main { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; min-width: 0; }
.sc-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.sc-head h1 { font-size: 18px; }
.tz { font-size: 12px; color: #fff; background: var(--brand); border-radius: 4px; padding: 0 6px; }
.updated { font-size: 12px; color: var(--muted); margin-left: auto; }
.date-strip { display: flex; gap: 6px; align-items: stretch; margin-bottom: 10px; overflow-x: auto; scrollbar-width: thin; }
.date-strip > a { flex: 1 0 64px; text-align: center; border: 1px solid var(--line); border-radius: 6px; padding: 5px 2px; background: #fff; }
.date-strip b { display: block; font-size: 13px; }
.date-strip a span { font-size: 12px; color: var(--muted); }
.date-strip a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.date-strip a[aria-current] span { color: #e6fff7; }
.date-pick { display: flex; gap: 4px; align-items: center; flex: 0 0 auto; }
.date-pick input { border: 1px solid var(--line); border-radius: 6px; padding: 5px 6px; max-width: 140px; }
.date-pick button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 5px 8px; cursor: pointer; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.status-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.toolbar .status-tabs { margin-bottom: 0; }
.status-tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; background: #fff; display: inline-flex; gap: 4px; align-items: center; min-height: 30px; }
.status-tabs a em { font-style: normal; color: var(--muted); font-size: 12px; }
.status-tabs a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.status-tabs a[aria-current] em { color: #e6fff7; }
.btn-filter { margin-left: auto; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 3px 14px; min-height: 30px; cursor: pointer; }
.btn-filter em { font-style: normal; background: var(--brand); color: #fff; border-radius: 999px; padding: 0 6px; margin-left: 4px; font-size: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--brand-soft); color: var(--brand-d); border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.match-count { font-size: 12px; color: var(--muted); margin: 6px 0; }
.empty-filter { text-align: center; padding: 24px 0; color: var(--muted); }

.comp-group { border-top: 1px solid var(--line); }
.comp-group > summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 7px 4px; background: #f9fafb; cursor: pointer; font-weight: 600; font-size: 13px; }
.comp-group > summary::-webkit-details-marker { display: none; }
.comp-group > summary::after { content: "▾"; margin-left: 6px; color: var(--muted); }
.comp-group:not([open]) > summary::after { content: "▸"; }
.cg-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-count { color: var(--muted); font-weight: 400; font-size: 12px; }
.cg-link { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--brand); position: relative; z-index: 1; }

/* 比赛行：主客队上下两行 */
.mrow { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto 36px; grid-template-areas: "time teams meta fav" "time ev ev fav"; align-items: center; column-gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.mrow:hover { background: #fafafa; }
.mrow-link { position: absolute; inset: 0; z-index: 0; }
.mrow-time { grid-area: time; display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.mrow-time .kick { font-variant-numeric: tabular-nums; color: var(--text); }
.mrow-time .lg { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-live .st { color: var(--live); font-weight: 600; }
.mrow-teams { grid-area: teams; min-width: 0; }
.side { display: flex; align-items: center; gap: 6px; min-height: 22px; }
.tname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; z-index: 1; }
.side .sc { margin-left: auto; font-variant-numeric: tabular-nums; min-width: 20px; text-align: right; font-weight: 700; }
.status-live .side .sc { color: var(--live); }
.status-scheduled .side .sc { color: var(--muted); font-weight: 400; }
.pcard { display: inline-block; min-width: 9px; height: 12px; border-radius: 2px; font-size: 9px; line-height: 12px; color: #fff; text-align: center; padding: 0 1px; flex: none; }
.pcard-red { background: #e53935; }
.pcard-yellow { background: #f6c026; color: #222; }
.mrow-meta { grid-area: meta; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 11px; color: var(--muted); }
.stage { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tag { font-style: normal; font-size: 11px; background: #f1f5f9; color: var(--muted); border-radius: 4px; padding: 0 5px; }
.tag-ai { background: #fff4dc; color: #8a6514; }
.fav { grid-area: fav; position: relative; z-index: 1; border: 0; background: none; font-size: 18px; line-height: 1; color: #9ca3af; cursor: pointer; width: 36px; height: 36px; border-radius: 6px; }
.fav:hover { background: #f3f4f6; }
.fav[aria-pressed="true"] { color: var(--gold); }
.evbar { grid-area: ev; position: relative; height: 18px; margin-top: 2px; }
.evbar::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; border-top: 1px dashed #d1d5db; }
.evbar-ht { position: absolute; top: 4px; width: 1px; height: 9px; background: #9ca3af; }
.evm { position: absolute; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; }
.evm-home { top: 0; }
.evm-away { top: 10px; }
.evm-goal, .evm-penalty { background: var(--brand); }
.evm-own_goal { background: #6b7280; }
.evm-missed_penalty { background: #fff; border: 2px solid var(--brand); }
.evm-red_card, .evm-yellow_red_card { background: #e53935; border-radius: 1px; width: 6px; margin-left: -3px; }
.mrow.flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: #fff4c2; } to { background: transparent; } }
.dated { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; }
.dated > span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 右栏 */
.col-right .card { margin-bottom: 12px; }
.ai-entry { display: block; background: linear-gradient(135deg, #00A67A, #008a65); color: #fff; border: 0; }
.ai-entry:hover { color: #fff; }
.ai-entry strong { display: block; font-size: 16px; }
.ai-entry span { display: block; font-size: 12px; opacity: .9; margin: 4px 0; }
.ai-entry em { font-style: normal; font-size: 13px; }
.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li { border-bottom: 1px solid var(--line); }
.article-list li:last-child { border-bottom: 0; }
.article-list a { display: block; padding: 7px 0; }
.article-list strong { display: block; font-weight: 500; }
.article-list p { margin: 4px 0; color: var(--muted); font-size: 13px; }
.article-list time { font-size: 12px; color: var(--muted); }
.kind { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 4px; background: var(--brand-soft); color: var(--brand-d); }
.kind-recap { background: #eef0fb; color: #3d4ea0; }
.focus-list { list-style: none; margin: 0; padding: 0; }
.focus-list a { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.fl-time { color: var(--muted); font-size: 12px; }
.fl-comp { color: var(--brand-d); font-size: 12px; text-align: right; }
.fl-teams { grid-column: 1 / -1; }

/* 联赛筛选弹窗 */
.filter-dialog { border: 0; border-radius: 10px; padding: 0; width: min(440px, 92vw); max-height: 80vh; }
.filter-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.fd-inner { display: flex; flex-direction: column; max-height: 80vh; padding: 14px; gap: 8px; }
.fd-inner h2 { font-size: 16px; }
.fd-inner input[type=search] { border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; }
.fd-actions-top, .fd-actions { display: flex; gap: 8px; }
.fd-actions { justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 10px; }
.fd-inner button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 6px 14px; min-height: 36px; cursor: pointer; }
.fd-inner button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.fd-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.fd-list label { display: flex; align-items: center; gap: 8px; padding: 6px 2px; min-height: 36px; cursor: pointer; }
.fd-list span { flex: 1; }
.fd-list em { font-style: normal; color: var(--muted); font-size: 12px; }

/* 比赛详情 */
.match-hero { background: linear-gradient(160deg, #222 0%, #1b3b31 100%); color: #fff; border-radius: var(--r); padding: 14px; margin-bottom: 12px; text-align: center; position: relative; }
.match-hero a { color: #fff; }
.mh-comp { margin: 0 0 8px; opacity: .85; font-size: 13px; }
.mh-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.mh-team { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mh-logo { background: #fff; border-radius: 50%; padding: 4px; }
.mh-team strong { font-size: 16px; }
.mh-team small { opacity: .6; }
.mh-score { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 120px; }
.mh-big b { font-size: 34px; font-variant-numeric: tabular-nums; }
.mh-big i { font-style: normal; font-size: 26px; margin: 0 6px; opacity: .7; }
.mh-stages { margin: 0; font-size: 12px; opacity: .85; display: flex; gap: 8px; }
.mh-score time { font-size: 12px; opacity: .8; }
.badge-st { font-size: 12px; padding: 1px 10px; border-radius: 999px; background: rgba(255,255,255,.18); }
.badge-st.status-live { background: var(--live); }
.mh-venue { margin: 8px 0 0; font-size: 12px; opacity: .7; }
.mh-fav { position: absolute; top: 8px; right: 8px; }
.mh-fav .fav { color: #cbd5e1; }
.tab-list { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 12px; background: var(--card); border-radius: var(--r) var(--r) 0 0; padding: 0 6px; }
.tab-list a { padding: 10px 14px; white-space: nowrap; border-bottom: 2px solid transparent; min-height: 40px; }
.tab-list a[aria-selected="true"] { color: var(--brand-d); border-bottom-color: var(--brand); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 0 0 8px; }
.facts div { background: #f9fafb; border-radius: 6px; padding: 6px 8px; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
h3.sub { font-size: 13px; margin: 12px 0 6px; color: var(--muted); }
h3.sub small { font-weight: 400; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 48px 56px minmax(0, 120px) 1fr auto; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.timeline time { color: var(--muted); font-variant-numeric: tabular-nums; }
.ev-type { font-size: 12px; }
.ev-team { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline .ev-goal .ev-type, .timeline li.ev-goal .ev-type { color: var(--brand-d); font-weight: 600; }
.timeline li.ev-yellow_card .ev-type { color: #b8860b; }
.timeline li.ev-red_card .ev-type { color: var(--live); }
.timeline li.side-away { background: #fafbff; }
.stats .stat { display: grid; grid-template-columns: 60px 1fr 60px; text-align: center; padding: 6px 0; }
.stats .stat span { color: var(--muted); font-size: 13px; }
.stat-bar { grid-column: 1 / -1; height: 4px; background: var(--away); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.stat-bar i { display: block; height: 100%; background: var(--brand); }
.lineup { list-style: none; margin: 6px 0 0; padding: 0; }
.lineup li { padding: 5px 0; border-bottom: 1px solid var(--line); display: flex; gap: 6px; align-items: center; }
.lineup li span { width: 24px; color: var(--muted); }
.lineup li.sub { color: var(--muted); }
.lineup .rating { margin-left: auto; font-style: normal; color: var(--brand-d); }
.bar { display: flex; height: 24px; border-radius: 6px; overflow: hidden; font-size: 12px; color: #fff; }
.bar span { display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; min-width: 0; }
.bar .h { background: var(--brand); }
.bar .d { background: #8a978f; }
.bar .a { background: var(--away); }
.prediction .meta { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.factors { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }

/* 指数（沿用） */
.tab-buttons { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tab-buttons button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 14px; min-height: 32px; cursor: pointer; }
.tab-buttons button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.table-scroll { overflow-x: auto; }
.odds-table, .data-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.odds-table th, .odds-table td, .data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: 6px; text-align: center; white-space: nowrap; }
.odds-table th, .data-table th { background: #f9fafb; font-weight: 500; color: var(--muted); font-size: 12px; }
.odds-table td.co, .data-table .l { text-align: left; }
.data-table .r { text-align: right; }
.odds-table td.up { color: var(--up); }
.odds-table td.up::after { content: "↑"; font-size: 11px; }
.odds-table td.down { color: var(--down); }
.odds-table td.down::after { content: "↓"; font-size: 11px; }
.tag-live, .tag-closed { font-style: normal; font-size: 11px; padding: 0 5px; border-radius: 4px; margin-left: 4px; background: #fde8e7; color: var(--live); }
.tag-closed { background: #eef2ee; color: var(--muted); }
.prob-bar { margin-top: 12px; }
.prob-bar p { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.odds-chart { margin: 14px 0 0; max-width: 720px; }
.odds-chart figcaption { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.odds-chart svg { width: 100%; height: auto; background: #fbfcfb; border: 1px solid var(--line); border-radius: 6px; }
.odds-chart polyline { stroke-width: 2; }
.odds-chart polyline.l0 { stroke: var(--brand); }
.odds-chart polyline.l1 { stroke: var(--away); }
.odds-chart polyline.l2 { stroke: var(--gold); }
.legend .l0::before { background: var(--brand); }
.legend .l1::before { background: var(--away); }
.legend .l2::before { background: var(--gold); }
.odds-chart .chg { stroke: #e2b6b3; stroke-dasharray: 3 3; }
.odds-chart .ax { font-size: 11px; fill: var(--muted); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 3px; vertical-align: middle; margin-right: 4px; }

/* 积分榜、联赛、球队 */
.standings td.pos { font-weight: 600; }
.data-table tr.hl { background: #fff8e8; }
.form span, td.form span { display: inline-block; width: 20px; text-align: center; border-radius: 4px; margin-right: 2px; color: #fff; font-size: 11px; }
.f-W { background: var(--brand); } .f-D { background: #8a978f; } .f-L { background: var(--live); }
.legend-promo { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend-promo i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.section-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; }
.section-tabs a { white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.season-pick { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.season-pick select { border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; background: #fff; }
.round-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
.round-nav button { border: 1px solid var(--line); background: #fff; border-radius: 6px; width: 36px; height: 32px; cursor: pointer; }
.round-nav button:disabled { opacity: .4; cursor: default; }
.round-nav span { font-weight: 600; min-width: 90px; text-align: center; }
.team-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.team-grid a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; min-height: 40px; }
.team-grid span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-card { display: flex; gap: 14px; align-items: flex-start; }
.team-card h1 { font-size: 20px; margin-bottom: 8px; }
.team-card > div { flex: 1; min-width: 0; }
.comp-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.comp-cards li { border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.cc-main { display: flex; align-items: center; gap: 8px; }
.cc-links { display: flex; gap: 10px; margin-top: 8px; font-size: 12px; }
.cc-links a { color: var(--brand-d); }
.geo-country { border-bottom: 1px solid var(--line); padding: 8px 0; }
.geo-country h3 { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.geo-country p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.search-box form, .search-inline { display: flex; gap: 8px; }
.search-box input, .search-inline input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.search-box button, .search-inline button { border: 0; border-radius: 6px; background: var(--brand); color: #fff; padding: 0 16px; cursor: pointer; }
.search-results:not(:empty) { margin-top: 10px; }
.search-results h3 { font-size: 12px; color: var(--muted); margin: 8px 0 4px; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 6px; }
.article h1 { font-size: 22px; margin: 6px 0; }
.article p { font-size: 15px; line-height: 1.85; }
.article .meta { color: var(--muted); font-size: 13px; line-height: 1.6; }
.article .meta a { color: var(--brand-d); }
.error-page { text-align: center; padding: 40px 16px; }
.error-page h1 { font-size: 48px; color: var(--brand); }

.site-footer { color: var(--muted); font-size: 12px; padding: 16px 0 24px; border-top: 1px solid var(--line); background: #fff; }
.site-footer p { margin: 4px 0; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }

/* 768–1279：两栏，热门联赛改为横条 */
@media (max-width: 1279px) {
  .layout-3 { grid-template-columns: minmax(0, 1fr) 300px; }
  .col-left { grid-column: 1 / -1; display: flex; gap: 12px; overflow-x: auto; min-width: 0; }
  .col-left .card { flex: 1 0 280px; margin: 0; }
  .col-left .league-list { display: flex; gap: 4px; overflow-x: auto; }
  .col-left .league-list a { white-space: nowrap; border: 1px solid var(--line); }
}
/* <768：单栏，筛选抽屉，底部导航 */
@media (max-width: 767px) {
  body { padding-bottom: 60px; }
  .hdr-nav { display: none; }
  .hdr-top-inner { height: 50px; }
  .brand small { display: none; }
  .hdr-search { max-width: 52%; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { text-align: center; padding: 0; min-height: 48px; display: grid; place-items: center; font-size: 12px; color: var(--muted); }
  .tabbar a[aria-current] { color: var(--brand-d); font-weight: 600; }
  .layout-3, .two { grid-template-columns: minmax(0, 1fr); }
  .col-left { order: 2; display: block; min-width: 0; overflow: visible; }
  .col-left .card { margin: 0 0 12px; }
  .col-left .league-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .col-left .league-list a { min-height: 44px; }
  .col-main { order: 1; padding: 10px; }
  .col-right { order: 3; }
  .date-strip > a { flex: 0 0 58px; }
  .date-pick input { max-width: 120px; }
  .status-tabs a, .btn-filter { min-height: 44px; }
  .mrow { grid-template-columns: 50px minmax(0, 1fr) auto 44px; }
  .fav { width: 44px; height: 44px; }
  .mrow-meta .tag { display: none; }
  .filter-dialog { width: 100vw; max-width: 100vw; max-height: 86vh; margin: auto 0 0; border-radius: 12px 12px 0 0; }
  .fd-list label, .fd-inner button { min-height: 44px; }
  .mh-score { min-width: 96px; }
  .mh-big b { font-size: 28px; }
  .mh-team strong { font-size: 14px; }
  .timeline li { grid-template-columns: 40px 50px 1fr auto; }
  .timeline .ev-team { display: none; }
  .dated { grid-template-columns: 1fr; }
  .dated > span { padding-top: 4px; }
  .team-card { flex-wrap: wrap; }
  .tab-list a { min-height: 44px; display: inline-flex; align-items: center; }
}
/* 收藏页 */
.fav-list { list-style: none; margin: 0; padding: 0; }
.fav-list li { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.fav-list a { flex: 1; display: flex; flex-direction: column; padding: 8px 0; min-width: 0; }
.fav-title { font-weight: 500; }
.fav-sub { font-size: 12px; color: var(--muted); }
.team-grid li { position: relative; display: flex; align-items: center; }
.team-grid li > a { flex: 1; }

/* 骨架占位：客户端加载区域使用；减少动态效果偏好时不做闪动 */
.skel-list { display: grid; gap: 8px; padding: 4px 0; }
.skel { height: 36px; border-radius: 6px; background: linear-gradient(90deg, #eef0f2 0%, #f7f8f9 50%, #eef0f2 100%); background-size: 200% 100%; animation: skel 1.2s ease-in-out infinite; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
