/* 雷速体育球迷社区 · 公共样式
   字号下限 12px；正文 17px / 行高 1.85；所有时间为北京时间。 */

:root {
  --navy-950: #071423;
  --navy-900: #0b1e33;
  --navy-800: #12304f;
  --blue: #1a6dff;
  --blue-soft: #e8f0ff;
  --red: #e5363f;
  --red-soft: #ffecee;
  --green: #0f9f7a;
  --green-soft: #e3f6f0;
  --ink: #111c2a;
  --ink-2: #33445a;
  --muted: #66778b;
  --faint: #8d9aab;
  --line: #e3e8ee;
  --line-2: #eef2f6;
  --paper: #f5f7fa;
  --white: #fff;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 6px 20px rgba(17, 28, 42, .06);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --num: "SF Pro Display", "DIN Alternate", "Roboto Mono", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--white); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.35; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.shell { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--blue); color: #fff; }
.skip-link:focus { top: 8px; }

/* ---------- 头部导航 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(180%) blur(12px); }
.nav-wrap { height: 60px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; font-weight: 900; font-style: italic; font-size: 15px; letter-spacing: -.5px; background: linear-gradient(135deg, var(--blue), #14b8a6); }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy b { font-size: 17px; letter-spacing: .02em; }
.brand-copy small { color: var(--faint); font-size: 12px; margin-top: 2px; letter-spacing: .15em; }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; font-size: 15px; color: var(--ink-2); }
.main-nav a { position: relative; padding: 8px 12px; border-radius: 8px; white-space: nowrap; transition: color .15s, background .15s; }
.main-nav a:hover { color: var(--blue); background: var(--blue-soft); }
.main-nav > a.active, .nav-menu.is-active > .nav-menu-trigger { color: var(--blue); font-weight: 700; }
.main-nav > a.active::after, .nav-menu.is-active > .nav-menu-trigger::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -11px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.nav-menu { position: relative; }
.nav-menu-trigger::before { content: ""; position: absolute; right: 2px; top: 50%; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); }
.nav-menu-trigger { padding-right: 18px !important; }
.nav-submenu { position: absolute; z-index: 60; top: calc(100% + 10px); left: 50%; width: 154px; display: grid; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 14px 32px rgba(17,28,42,.14); opacity: 0; visibility: hidden; transform: translate(-50%, -5px); transition: opacity .15s, transform .15s, visibility .15s; }
.nav-menu:hover .nav-submenu, .nav-menu:focus-within .nav-submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-submenu a { padding: 9px 10px; border-radius: 7px; font-size: 14px; }
.nav-submenu a.active { color: var(--blue); background: var(--blue-soft); font-weight: 700; }
.nav-toggle { display: none; margin-left: auto; border: 0; background: transparent; width: 44px; height: 44px; padding: 11px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-alert { background: #fff7e6; border-bottom: 1px solid #ffe2a8; color: #8a5300; font-size: 14px; }
.site-alert-inner { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.site-alert button { border: 1px solid #f0c46b; background: #fff; border-radius: 6px; padding: 3px 12px; cursor: pointer; font-size: 13px; }

/* ---------- 通用元素 ---------- */
.btn { min-height: 42px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; font-weight: 700; font-size: 15px; cursor: pointer; }
.btn-primary { color: #fff; background: var(--blue); }
.btn-primary:hover { background: #0f5ce0; }
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 700; line-height: 1.6; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--ink); }
.block-head h2, .block-title { font-size: 20px; font-weight: 800; }
.block-head a { color: var(--muted); font-size: 14px; }
.block-head a:hover { color: var(--blue); }
.block-title { margin-bottom: 14px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; color: var(--faint); font-size: 13px; }
.breadcrumb a:hover { color: var(--blue); }

.thumb { position: relative; margin: 0; overflow: hidden; border-radius: 8px; background: var(--paper); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.thumb.is-empty { display: grid; place-items: center; background: linear-gradient(135deg, #1a3b63, #0b1e33); color: rgba(255,255,255,.75); font-weight: 800; font-size: 15px; letter-spacing: .1em; }
.thumb.is-empty[data-sport="football"] { background: linear-gradient(135deg, #10805f, #0b3a33); }
.thumb.is-empty[data-sport="basketball"] { background: linear-gradient(135deg, #c8642a, #4a2316); }
.thumb.is-empty[data-sport="tennis"] { background: linear-gradient(135deg, #7d9a1e, #2f3d0e); }
a:hover .thumb img { transform: scale(1.04); }

.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 1px 6px; border-radius: 4px; font-size: 12px; font-weight: 700; font-family: var(--num); white-space: nowrap; background: var(--line-2); color: var(--muted); }
.badge.is-live { background: var(--red); color: #fff; }
.badge.is-upcoming { background: var(--blue-soft); color: var(--blue); }
.badge.is-finished { background: var(--line-2); color: var(--muted); }
.badge.is-other { background: #fff3e0; color: #a35a00; }

/* ---------- 首页：比分条 ---------- */
.ticker { background: var(--navy-900); color: #fff; }
.ticker-inner { display: flex; align-items: stretch; gap: 12px; }
.ticker-track { display: flex; gap: 1px; flex: 1; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.ticker-track::-webkit-scrollbar { display: none; }
.tick { flex: 0 0 168px; display: grid; gap: 3px; padding: 10px 14px; scroll-snap-align: start; border-right: 1px solid rgba(255,255,255,.08); transition: background .15s; }
.tick:hover { background: rgba(255,255,255,.06); }
.tick-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #8fa6bd; font-size: 12px; }
.tick-head small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.tick .badge { min-width: 0; background: rgba(255,255,255,.1); color: #c9d6e3; }
.tick .badge.is-live { background: var(--red); color: #fff; }
.tick-line { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.tick-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tick-line b { font-family: var(--num); min-width: 14px; text-align: right; }
.tick.is-live .tick-line b { color: #ff8a8f; }
.ticker-more { flex-shrink: 0; display: flex; align-items: center; padding: 0 4px 0 12px; color: #8fc1ff; font-size: 14px; white-space: nowrap; }

/* ---------- 首页：头条区 ---------- */
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding: 24px 0 8px; }
.lead-block { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-content: start; }
.lead-block > .data-state { grid-column: 1 / -1; }
.lead-card { display: grid; gap: 14px; align-content: start; }
.lead-copy { display: grid; gap: 8px; justify-items: start; }
.lead-copy h2 { font-size: 26px; line-height: 1.4; font-weight: 800; }
.lead-card:hover h2 { color: var(--blue); }
.lead-copy p { color: var(--ink-2); font-size: 15px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lead-copy small { color: var(--faint); font-size: 13px; }
.headline-list .block-title { padding-bottom: 10px; margin-bottom: 4px; border-bottom: 2px solid var(--ink); }
.headline { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.headline:last-child { border-bottom: 0; }
.headline-tag { color: var(--blue); font-size: 12px; font-weight: 700; }
.headline h3 { font-size: 16px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.headline:hover h3 { color: var(--blue); }
.headline small { color: var(--faint); font-size: 12px; }
.lead-skeleton { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }

.home-side { display: grid; gap: 20px; align-content: start; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.side-head h2 { font-size: 16px; font-weight: 800; }
.seg { display: inline-flex; padding: 2px; border-radius: 7px; background: #e6ebf1; }
.seg button { border: 0; background: transparent; padding: 3px 12px; border-radius: 5px; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button.active { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.match-mini-list { padding: 4px 0; }
.match-mini { display: grid; grid-template-columns: 64px minmax(0, 1fr) 28px; gap: 10px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--line-2); transition: background .15s; }
.match-mini:last-child { border-bottom: 0; }
.match-mini:hover { background: var(--paper); }
.mm-meta { display: grid; gap: 3px; justify-items: start; }
.mm-meta small { color: var(--faint); font-size: 12px; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-teams, .mm-scores { display: grid; gap: 2px; font-size: 14px; }
.mm-teams span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-scores b { font-family: var(--num); text-align: right; }
.match-mini.is-live .mm-scores b { color: var(--red); }
.side-more { display: block; padding: 11px 16px; border-top: 1px solid var(--line); color: var(--blue); font-size: 14px; font-weight: 700; text-align: center; }
.side-more:hover { background: var(--blue-soft); }
.side-empty { padding: 22px 16px; color: var(--faint); font-size: 14px; text-align: center; }
.league-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
.league-chips a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.league-chips a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- 首页：最新资讯与分项目栏目 ---------- */
.home-block { padding: 32px 0 8px; }
.news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.news-row { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-row-copy { display: grid; gap: 6px; align-content: start; justify-items: start; }
.news-row h3 { font-size: 17px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-row:hover h3 { color: var(--blue); }
.news-row p { color: var(--muted); font-size: 14px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-row small { color: var(--faint); font-size: 12px; }
.news-row .tag { display: none; }

.home-columns { padding: 32px 0 56px; }
.sport-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.column-list .news-card { border: 0; background: none; }
.column-list .news-card-copy { padding: 12px 0 8px; }
.column-list .news-card p { display: none; }
.text-link { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.text-link h3 { font-size: 15px; font-weight: 500; line-height: 1.55; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-link small { flex-shrink: 0; color: var(--faint); font-size: 12px; }
.text-link:hover h3 { color: var(--blue); }

/* ---------- 列表页 ---------- */
.page-head { padding: 22px 0 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 10px 0 6px; font-size: 30px; font-weight: 800; }
.page-head p { color: var(--muted); font-size: 15px; }
.category-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.category-shortcuts a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 14px; }
.category-shortcuts a:hover { border-color: var(--blue); color: var(--blue); }
.category-shortcuts a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.newsroom-page { padding: 24px 0 64px; }
.news-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr) auto; gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.news-filter label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.news-filter input, .news-filter select { width: 100%; height: 42px; border: 1px solid #d5dde6; border-radius: 8px; background: #fff; padding: 0 12px; font-size: 15px; color: var(--ink); }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.results-heading h2 { font-size: 20px; font-weight: 800; }
.results-heading span { color: var(--faint); font-size: 13px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.news-card { display: flex; flex-direction: column; min-width: 0; }
.news-card-copy { display: grid; gap: 8px; justify-items: start; padding-top: 12px; }
.news-card h3 { font-size: 18px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card:hover h3 { color: var(--blue); }
.news-card p { color: var(--muted); font-size: 14px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card small { color: var(--faint); font-size: 12px; }
.news-card.is-skeleton { min-height: 280px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.pager:empty { display: none; }
.pager a { padding: 9px 18px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-weight: 600; }
.pager a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- 比分中心 ---------- */
.score-center { padding: 20px 0 64px; }
.score-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.date-controls { display: flex; gap: 8px; align-items: center; }
.date-controls button, .date-picker, .score-toolbar select { height: 40px; border: 1px solid #d5dde6; border-radius: 8px; background: #fff; padding: 0 14px; font-size: 15px; cursor: pointer; }
.date-controls button[data-date-move] { width: 40px; padding: 0; font-size: 20px; line-height: 1; }
.date-controls button:hover, .date-picker:hover { border-color: var(--blue); color: var(--blue); }
.date-picker { position: relative; display: flex; align-items: center; min-width: 168px; justify-content: center; font-weight: 700; }
.date-picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.score-toolbar select { min-width: 160px; }
.score-status-tabs { display: flex; gap: 4px; margin: 16px 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.score-status-tabs::-webkit-scrollbar { display: none; }
.score-status-tabs button { position: relative; padding: 10px 16px; border: 0; background: none; color: var(--muted); font-size: 15px; cursor: pointer; }
.score-status-tabs button small { margin-left: 4px; color: var(--faint); font-size: 12px; font-family: var(--num); }
.score-status-tabs button.active { color: var(--ink); font-weight: 700; }
.score-status-tabs button.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.score-status-tabs button[data-score-status="live"] small { color: var(--red); }

.match-table-head, .match-row { display: grid; grid-template-columns: 60px 76px minmax(0, 1fr) 84px minmax(0, 1fr) 64px 64px; align-items: center; gap: 8px; }
.score-panel .match-table-head, .score-panel .match-row { grid-template-columns: 60px 76px minmax(0, 1fr) 84px minmax(0, 1fr) 64px 64px 68px; }
.match-table-head { padding: 0 16px 8px; color: var(--faint); font-size: 12px; text-align: center; }
.match-table-head .is-home { text-align: right; }
.match-table-head .is-away { text-align: left; }
.league-group { margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.league-head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 9px 16px; border: 0; background: var(--paper); font-size: 14px; font-weight: 700; cursor: pointer; text-align: left; }
.league-head b { color: var(--faint); font-size: 12px; font-weight: 500; }
.league-head::after { content: "▾"; margin-left: 10px; color: var(--faint); transition: transform .2s; }
.league-group.is-collapsed .league-head::after { transform: rotate(-90deg); }
.league-group.is-collapsed .league-rows { display: none; }
.league-head span { flex: 1; }
.score-match-entry { position: relative; border-top: 1px solid var(--line-2); }
.score-match-entry > .match-row { border-top: 0; }
.match-expand { position: absolute; z-index: 2; top: 13px; right: 13px; width: 62px; height: 26px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--blue); font-size: 12px; font-weight: 700; cursor: pointer; }
.match-expand:hover { border-color: var(--blue); background: var(--blue-soft); }
.match-expand i { font-style: normal; transition: transform .2s; }
.score-match-entry.is-expanded .match-expand i { transform: rotate(180deg); }
.score-inline-panel { padding: 16px; border-top: 1px solid var(--line); background: #f5f8fb; }
.score-inline-panel[hidden] { display: none; }
.score-inline-panel .live-pitch { max-width: 820px; margin: 0 auto; border-radius: 10px; }
.score-inline-panel .state-card { min-height: 160px; background: #fff; }
.inline-animation-head { max-width: 820px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 auto 10px; }
.inline-animation-head > div { display: grid; gap: 3px; }
.inline-animation-head strong { font-size: 15px; }
.inline-animation-head span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.inline-animation-head a { color: var(--blue); font-size: 13px; font-weight: 700; }
.match-row { height: 50px; min-height: 50px; padding: 6px 16px; border-top: 1px solid var(--line-2); font-size: 15px; transition: background .15s; }
a.match-row:hover { background: #f7faff; }
.mr-time { color: var(--muted); font-family: var(--num); font-size: 14px; text-align: center; }
.mr-status { height: 24px; display: grid; place-items: center; text-align: center; }
.mr-status .badge { width: 58px; height: 24px; min-width: 58px; padding: 0 4px; font-variant-numeric: tabular-nums; }
.mr-team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mr-team.is-home { text-align: right; }
.mr-score { text-align: center; font-family: var(--num); font-size: 18px; font-weight: 800; }
.mr-score i { margin: 0 4px; font-style: normal; color: var(--faint); }
.mr-score em { font-style: normal; font-size: 13px; color: var(--faint); font-weight: 600; }
.match-row.is-live .mr-score { color: var(--red); }
.mr-extra { text-align: center; color: var(--muted); font-family: var(--num); font-size: 13px; }
.mr-extra small { display: none; }
.match-row.is-changed { animation: flash 2.4s ease; }
@keyframes flash { 0%, 30% { background: #fff3c4; } 100% { background: transparent; } }
.data-rule { margin-top: 16px; color: var(--faint); font-size: 13px; }

/* ---------- 篮球比分 ---------- */
.basketball-toolbar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.basketball-toolbar > div { display: grid; gap: 3px; }
.basketball-toolbar strong { font-size: 17px; }
.basketball-toolbar span { color: var(--faint); font-size: 12px; }
.basketball-toolbar select { min-width: 160px; height: 40px; padding: 0 14px; border: 1px solid #d5dde6; border-radius: 8px; background: #fff; font-size: 14px; }
.basketball-status-tabs button[data-basketball-status="live"] small { color: var(--red); }
.basketball-panel { display: grid; gap: 12px; }
.basketball-league { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.basketball-league > header { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; background: var(--paper); font-size: 14px; }
.basketball-league > header span { color: var(--faint); font-size: 12px; }
.basketball-row { min-height: 54px; display: grid; grid-template-columns: 56px 108px minmax(100px,1fr) 74px minmax(100px,1fr) repeat(4,58px) 54px; align-items: center; gap: 7px; padding: 7px 14px; border-top: 1px solid var(--line-2); transition: background .15s; }
.basketball-row:hover { background: #f7faff; }
.bb-time { color: var(--muted); font-family: var(--num); font-size: 13px; text-align: center; }
.bb-status { display: grid; place-items: center; }
.basketball-badge { min-width: 88px; height: 26px; display: inline-grid; place-items: center; padding: 0 7px; border-radius: 5px; background: var(--paper); color: var(--muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.basketball-badge.is-live { background: var(--red); color: #fff; }
.basketball-badge.is-upcoming { background: var(--blue-soft); color: var(--blue); }
.basketball-badge.is-finished { background: #edf1f5; color: var(--faint); }
.bb-team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.bb-team.is-home { text-align: right; }
.bb-score { display: flex; justify-content: center; align-items: center; gap: 6px; font-family: var(--num); font-size: 18px; }
.bb-score i { color: var(--faint); font-style: normal; }
.basketball-row.is-live .bb-score { color: var(--red); }
.bb-period { display: grid; gap: 1px; color: var(--muted); text-align: center; font-family: var(--num); font-size: 12px; }
.bb-period small { color: var(--faint); font-family: inherit; font-size: 10px; }
.bb-animation { color: var(--blue); text-align: right; font-size: 12px; font-weight: 700; }
.bb-animation i { margin-left: 4px; font-style: normal; }

.basketball-detail { display: grid; gap: 20px; }
.basketball-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--paper); }
.basketball-detail-head > div { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.basketball-detail-head p { color: var(--faint); font-size: 13px; }
.basketball-detail-score { display: grid; grid-template-columns: minmax(0,1fr) 180px minmax(0,1fr); align-items: center; gap: 20px; margin-top: -20px; padding: 38px 24px; border: 1px solid var(--line); border-top: 0; background: linear-gradient(180deg,#fff,#f8fafc); text-align: center; }
.basketball-detail-score h1, .basketball-detail-score h2 { font-size: 25px; }
.basketball-detail-score small { color: var(--faint); }
.basketball-detail-score > strong { color: var(--red); font-family: var(--num); font-size: 48px; }
.basketball-detail-score > strong i { margin: 0 10px; color: var(--faint); font-style: normal; }
.basketball-periods { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: -20px; padding: 12px 16px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.basketball-periods span { padding: 5px 10px; border-radius: 6px; background: var(--paper); color: var(--muted); font-size: 12px; }
.basketball-periods b { margin-left: 5px; color: var(--ink); font-family: var(--num); }
.basketball-detail-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap: 20px; }
.basketball-detail-grid > div { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.basketball-detail-grid .block-head { min-height: 52px; margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.basketball-detail-grid .block-head h2 { font-size: 18px; }
.basketball-detail-grid .block-head small { color: var(--faint); }
.basketball-court { position: relative; min-height: 360px; overflow: hidden; background: linear-gradient(90deg,rgba(255,255,255,.04) 49.8%,rgba(255,255,255,.65) 50%,rgba(255,255,255,.04) 50.2%), repeating-linear-gradient(90deg,#d69952 0,#d69952 70px,#dca35e 70px,#dca35e 140px); }
.basketball-court-lines { position: absolute; inset: 8%; border: 2px solid rgba(255,255,255,.78); border-radius: 2px; }
.basketball-court-lines::before { content: ""; position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; border: 2px solid rgba(255,255,255,.78); border-radius: 50%; transform: translate(-50%,-50%); }
.basketball-court-lines::after { content: ""; position: absolute; inset: 23% 0; border-left: 2px solid rgba(255,255,255,.7); border-right: 2px solid rgba(255,255,255,.7); }
.basketball-point { position: absolute; z-index: 2; width: 10px; height: 10px; border-radius: 50%; background: #f8fbff; border: 2px solid var(--blue); opacity: .42; transform: translate(-50%,-50%); }
.basketball-point.is-away { border-color: var(--red); }
.basketball-point.is-latest { width: 18px; height: 18px; opacity: 1; box-shadow: 0 0 0 6px rgba(255,255,255,.4); }
.basketball-no-animation { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; gap: 5px; text-align: center; background: rgba(67,40,16,.35); color: #fff; }
.basketball-no-animation strong { font-size: 19px; }
.basketball-no-animation span { font-size: 13px; opacity: .82; }
.basketball-events { max-height: 360px; overflow: auto; }
.basketball-events > div { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 10px; align-items: center; min-height: 43px; padding: 8px 14px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.basketball-events time { color: var(--faint); font-family: var(--num); }
.basketball-events b { color: var(--red); }
.basketball-stats { padding: 8px 16px; }
.basketball-stats > div { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; min-height: 38px; border-bottom: 1px solid var(--line-2); text-align: center; font-size: 13px; }
.basketball-stats span { color: var(--muted); }
.basketball-stats b:first-child { color: var(--blue); }
.basketball-stats b:last-child { color: var(--red); }
.basketball-odds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; }
.basketball-odds > div { display: grid; gap: 6px; padding: 16px; border-radius: 9px; background: var(--paper); text-align: center; }
.basketball-odds span { color: var(--muted); font-size: 13px; }
.basketball-odds b { font-family: var(--num); font-size: 22px; }
.basketball-odds small { color: var(--faint); }

@media (max-width: 1080px) {
  .basketball-row { grid-template-columns: 52px 96px minmax(90px,1fr) 68px minmax(90px,1fr) repeat(2,54px) 48px; }
  .basketball-row .bb-period:nth-of-type(8), .basketball-row .bb-period:nth-of-type(9) { display: none; }
}
@media (max-width: 860px) {
  .basketball-row { min-height: 88px; grid-template-columns: minmax(0,1fr) 74px minmax(0,1fr); grid-template-areas: "meta meta meta" "home score away" "period period action"; gap: 5px 8px; padding: 10px 14px; }
  .bb-time { grid-area: meta; justify-self: start; }
  .bb-status { grid-area: meta; justify-self: end; }
  .bb-team.is-home { grid-area: home; }
  .bb-team.is-away { grid-area: away; }
  .bb-score { grid-area: score; }
  .bb-period { display: none !important; }
  .bb-animation { grid-area: action; justify-self: end; }
  .basketball-row::after { content: "各节比分请进入详情"; grid-area: period; color: var(--faint); font-size: 11px; }
  .basketball-detail-grid { grid-template-columns: 1fr; }
  .basketball-detail-score { grid-template-columns: minmax(0,1fr) 100px minmax(0,1fr); padding: 30px 12px; }
  .basketball-detail-score h1, .basketball-detail-score h2 { font-size: 19px; }
  .basketball-detail-score > strong { font-size: 36px; }
}
@media (max-width: 600px) {
  .basketball-toolbar { align-items: stretch; flex-direction: column; }
  .basketball-toolbar select { width: 100%; }
  .basketball-status-tabs { overflow-x: auto; }
  .basketball-status-tabs button { flex: 0 0 auto; }
  .basketball-detail-head { align-items: flex-start; flex-direction: column; }
  .basketball-court { min-height: 260px; }
  .basketball-odds { grid-template-columns: 1fr; }
}

/* ---------- 文章详情 ---------- */
.article-page { padding: 20px 0 64px; }
.article-shell { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.article-head { display: grid; gap: 12px; justify-items: start; margin: 20px 0 24px; }
.article-head h1 { font-size: 34px; font-weight: 800; line-height: 1.35; letter-spacing: -.01em; }
.article-deck { color: var(--ink-2); font-size: 18px; line-height: 1.75; padding-left: 14px; border-left: 3px solid var(--blue); }
.article-byline { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--faint); font-size: 14px; }
.article-cover { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.article-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.article-body { color: #1f2d3d; font-size: 17px; line-height: 1.85; }
.article-body p { margin: 0 0 1.2em; }
.article-body h2 { margin: 1.8em 0 .7em; font-size: 22px; font-weight: 800; }
.article-body h3 { margin: 1.5em 0 .6em; font-size: 19px; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body figure { margin: 1.6em 0; }
.article-body figure img { width: 100%; border-radius: 8px; }
.article-body figcaption { margin-top: 8px; color: var(--faint); font-size: 14px; text-align: center; }
.article-body blockquote { margin: 1.4em 0; padding: 12px 18px; border-left: 3px solid var(--line); background: var(--paper); color: var(--ink-2); }
.article-body ul, .article-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.article-body th, .article-body td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.article-tags a { padding: 4px 12px; border-radius: 999px; background: var(--paper); color: var(--ink-2); font-size: 14px; }
.article-tags a:hover { background: var(--blue-soft); color: var(--blue); }
.article-related-match { margin-top: 32px; }
.article-related-match .match-row { border: 1px solid var(--line); border-radius: var(--radius); }
.article-source { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 28px; padding: 14px 16px; border-radius: var(--radius); background: var(--paper); font-size: 14px; color: var(--muted); }
.article-source strong { color: var(--ink); }
.article-source a { color: var(--blue); margin-left: auto; }
.article-neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-neighbors a { display: grid; gap: 4px; font-weight: 600; line-height: 1.5; }
.article-neighbors a[rel="next"] { text-align: right; }
.article-neighbors small { color: var(--faint); font-size: 12px; font-weight: 400; }
.article-neighbors a:hover { color: var(--blue); }
.related-news { margin-top: 48px; padding-top: 20px; border-top: 2px solid var(--ink); }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.related-grid .news-card p { display: none; }
.match-page .related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 比赛详情 ---------- */
.match-page { padding: 20px 0 64px; }
.match-page .breadcrumb { margin-bottom: 16px; }
.match-detail { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.match-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--paper); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.match-detail-score { display: grid; grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr); align-items: center; gap: 16px; padding: 40px 24px; text-align: center; background: linear-gradient(180deg, #fff, #f8fafc); }
.match-detail-score h1, .match-detail-score h2 { font-size: 26px; font-weight: 800; }
.match-detail-score small { color: var(--faint); font-size: 13px; }
.match-detail-score > strong { font-family: var(--num); font-size: 52px; font-weight: 800; }
.match-detail-score > strong i { margin: 0 10px; font-style: normal; color: var(--faint); }
.match-detail-score > strong em { font-style: normal; font-size: 26px; color: var(--faint); }
.match-detail.is-live .match-detail-score > strong { color: var(--red); }
.match-detail-data { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); }
.match-detail-data div { padding: 16px; text-align: center; border-right: 1px solid var(--line); }
.match-detail-data div:last-child { border-right: 0; }
.match-detail-data dt { color: var(--faint); font-size: 13px; }
.match-detail-data dd { margin: 4px 0 0; font-weight: 700; font-family: var(--num); }
.match-live-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr); gap: 20px; margin-top: 20px; align-items: start; }
.match-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.match-panel-head { min-height: 52px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.match-panel-head h2 { font-size: 18px; }
.match-panel-head span { color: var(--faint); font-size: 12px; }
.match-empty, .animation-unavailable { min-height: 180px; display: grid; place-content: center; gap: 8px; padding: 32px; text-align: center; color: var(--muted); }
.animation-unavailable strong { color: var(--ink-2); font-size: 17px; }
.animation-unavailable p { max-width: 560px; }
/* ---------- 直播动画（assets/live-pitch.js） ---------- */
.pitch-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 0 2px 12px; }
.pitch-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; font-weight: 700; }
.pitch-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitch-team i { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 3px; background: var(--home); box-shadow: 0 0 0 3px rgba(77,155,255,.22); }
.pitch-team.is-away { justify-content: flex-end; text-align: right; }
.pitch-team.is-away i { background: var(--away); box-shadow: 0 0 0 3px rgba(255,90,99,.22); }
.pitch-scoreboard { display: grid; justify-items: center; gap: 2px; min-width: 96px; padding: 5px 14px 4px; border-radius: 10px; background: rgba(3,22,16,.55); border: 1px solid rgba(255,255,255,.12); }
.pitch-scoreboard strong { display: inline-block; font: 800 24px/1.05 var(--num); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.pitch-scoreboard small { min-height: 14px; color: #8ff0c0; font: 700 12px/1.2 var(--num); }
.live-pitch:not(.is-live) .pitch-scoreboard small { color: rgba(255,255,255,.6); }




.live-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #6dffad; box-shadow: 0 0 0 4px rgba(109,255,173,.15); animation: livePulse 1.4s infinite; }
@keyframes livePulse { 50% { opacity: .42; } }


.sound-toggle { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.sound-toggle svg { width: 17px; height: 17px; }
.sound-toggle .wave { display: none; }
.sound-toggle.is-on .wave { display: inline; } .sound-toggle.is-on .mute { display: none; }
.sound-toggle.is-on { border-color: var(--green); background: var(--green-soft); color: #0a7a5d; }
.sound-toggle.is-dark { border-color: rgba(255,255,255,.25); background: rgba(0,0,0,.2); color: #e6fff3; }
.sound-toggle.is-dark.is-on { border-color: #6dffad; background: rgba(109,255,173,.16); color: #b5ffd6; }
.sound-toggle:focus-visible { outline: 2px solid #ffd34d; outline-offset: 2px; }

/* 特效层 */
.pitch-fx { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.fx-goal { position: absolute; inset: 0; }
.fx-goal-flash { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.55), rgba(77,155,255,.55) 45%, rgba(5,30,60,.7)); }
.fx-goal.is-away .fx-goal-flash { background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.55), rgba(255,90,99,.55) 45%, rgba(60,5,10,.7)); }
.fx-goal-card { position: absolute; left: 50%; top: 50%; display: grid; justify-items: center; gap: 2px; min-width: 220px; max-width: 86%; padding: 14px 26px 16px; border-radius: 16px; background: rgba(6,18,32,.86); border: 2px solid var(--home); box-shadow: 0 16px 40px rgba(0,0,0,.45); opacity: 0; transform: translate(-50%, -50%); text-align: center; }
.fx-goal.is-away .fx-goal-card { border-color: var(--away); }
.fx-goal-card b { font: italic 900 46px/1 var(--num); letter-spacing: .06em; color: #ffe14d; text-shadow: 0 3px 0 rgba(0,0,0,.35), 0 0 24px rgba(255,225,77,.45); }
.fx-goal-card strong { font-size: 15px; letter-spacing: .3em; color: #fff; }
.fx-goal-card span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; font-size: 18px; font-weight: 800; }
.fx-goal-card em { font-style: normal; color: rgba(255,255,255,.75); font-size: 12px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.fx-goal-card em i { margin: 0 6px; font: 800 16px var(--num); font-style: normal; color: #fff; }
.fx-confetti { position: absolute; left: 50%; top: 50%; border-radius: 2px; opacity: 0; }
.fx-banner { position: absolute; left: 50%; top: 12px; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px); padding: 8px 16px; border-radius: 999px; background: rgba(6,18,32,.88); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 8px 24px rgba(0,0,0,.35); opacity: 0; transform: translate(-50%, 0); white-space: nowrap; }
.fx-banner b { font-size: 15px; }
.fx-banner span { overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,.75); font-size: 13px; }
.fx-banner.is-status { top: 50%; margin-top: -22px; padding: 10px 22px; border-color: rgba(255,211,77,.6); }
.fx-banner.is-status b { color: #ffd34d; font-size: 18px; letter-spacing: .1em; }
.fx-card { display: inline-block; flex: 0 0 auto; width: 13px; height: 18px; border-radius: 2px; transform: rotate(8deg); box-shadow: 0 2px 4px rgba(0,0,0,.4); }
.fx-card.is-red { background: var(--red); } .fx-card.is-yellow { background: #ffd84d; }
.fx-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.fx-var { display: inline-block; padding: 1px 6px; border-radius: 4px; background: #fff; color: #06121f; font: 900 11px var(--num); font-style: normal; }

/* 详情页大比分在进球时跳动一下 */
.match-detail-score > strong.is-goal-pop { animation: scorePop 1.2s cubic-bezier(.3,1.6,.5,1); }
@keyframes scorePop { 0% { transform: scale(1); } 30% { transform: scale(1.3); text-shadow: 0 0 24px rgba(229,54,63,.45); } 100% { transform: scale(1); } }
.event-row.is-new { animation: eventIn 2.4s ease-out; }
@keyframes eventIn { 0% { background: #fff3c4; transform: translateX(-6px); } 20% { transform: none; } 100% { background: transparent; } }

/* 比分页进球提示 */
.score-tools-right { display: flex; align-items: center; gap: 10px; }
.goal-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.goal-toast { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #0b1e33; color: #fff; border-left: 4px solid var(--blue); box-shadow: 0 12px 32px rgba(7,20,35,.35); }
.goal-toast.is-away { border-left-color: var(--red); }
.goal-toast-tag { padding: 6px 8px; border-radius: 8px; background: #ffe14d; color: #3b2a00; font-size: 13px; font-weight: 900; }
.goal-toast small { color: rgba(255,255,255,.6); font-size: 12px; }
.goal-toast p { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; margin: 2px 0; }
.goal-toast p b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: rgba(255,255,255,.8); }
.goal-toast p b:last-child { text-align: right; }
.goal-toast p b.is-scorer { color: #fff; }
.goal-toast p strong { font: 800 18px var(--num); color: #ffe14d; }
.goal-toast em { font-style: normal; font-size: 12px; color: #a9ecd0; }
.event-timeline { max-height: 570px; overflow: auto; padding: 8px 18px; }
.event-row { min-height: 54px; display: grid; grid-template-columns: 46px 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; border-bottom: 1px solid var(--line-2); }
.event-row:last-child { border-bottom: 0; }
.event-row time { color: var(--faint); font: 700 13px var(--num); }
.event-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-weight: 900; }
.event-row.is-yellow_card .event-icon { color: #e6b400; background: transparent; }
.event-row.is-red_card .event-icon, .event-row.is-second_yellow .event-icon { color: var(--red); background: transparent; }
.event-row.is-goal .event-icon, .event-row.is-own_goal .event-icon { color: var(--green); background: var(--green-soft); }
.event-row div { display: grid; }
.event-row strong { font-size: 14px; }
.event-row small { color: var(--muted); font-size: 12px; }
.event-row > b { font-family: var(--num); }
.stats-panel { margin-top: 20px; }
.stat-head, .stat-row { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(240px, 2.2fr) minmax(100px, 1fr); gap: 18px; align-items: center; text-align: center; }
.stat-head { padding: 14px 22px; border-bottom: 1px solid var(--line); }
.stat-head span { color: var(--faint); font-size: 13px; }
.stat-list { padding: 8px 22px 18px; }
.stat-row { min-height: 58px; border-bottom: 1px solid var(--line-2); font-family: var(--num); }
.stat-row:last-child { border-bottom: 0; }
.stat-row > div { display: grid; gap: 6px; }
.stat-row > div b { font-family: var(--font); font-size: 13px; }
.stat-row i { height: 5px; display: flex; gap: 3px; overflow: hidden; border-radius: 4px; background: var(--line-2); }
.stat-row i em { height: 100%; background: var(--blue); }
.stat-row i em:last-child { background: var(--red); }
.match-data-note { padding: 10px; text-align: center; color: var(--faint); font-size: 13px; border-top: 1px solid var(--line); }

/* ---------- 关于 ---------- */
.about-page { padding: 32px 0 64px; }
.about-content { max-width: 820px; display: grid; gap: 40px; }
.about-content h2 { margin-bottom: 14px; font-size: 22px; font-weight: 800; }
.about-content p { color: var(--ink-2); font-size: 16px; line-height: 1.85; margin-bottom: .8em; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle-grid article { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.principle-grid h3 { margin-bottom: 8px; font-size: 16px; }
.principle-grid p { font-size: 14px; margin: 0; color: var(--muted); }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 24px; padding: 44px 0 24px; background: var(--navy-950); color: #9db0c3; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-grid .brand-copy b { color: #fff; }
.footer-about p { margin-top: 14px; max-width: 360px; line-height: 1.8; }
.footer-grid h2 { margin-bottom: 12px; color: #fff; font-size: 15px; }
.footer-grid > div:not(.footer-about) { display: grid; align-content: start; gap: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #71859a; }

/* ---------- 状态与骨架屏 ---------- */
.data-state { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 36px 20px; border: 1px dashed #d5dde6; border-radius: var(--radius); background: var(--paper); }
.data-state > span { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: #e6ebf1; color: var(--muted); font-weight: 900; }
.data-state-error > span { background: var(--red-soft); color: var(--red); }
.data-state strong { display: block; font-size: 16px; }
.data-state p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.state-retry { margin-top: 10px; border: 1px solid var(--blue); padding: 5px 14px; border-radius: 6px; color: var(--blue); background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; }
.skeleton { display: grid; gap: 10px; padding: 4px 0; }
.skeleton i { display: block; height: 14px; border-radius: 4px; background: linear-gradient(90deg, #eef2f6 25%, #f6f8fb 50%, #eef2f6 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton i:first-child { height: 120px; }
.skeleton i:nth-child(3n) { width: 70%; }
.match-mini-list .skeleton, .score-panel > .skeleton { padding: 12px 16px; }
.match-mini-list .skeleton i:first-child, .score-panel .skeleton i:first-child { height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-wrap { gap: 20px; }
  .main-nav a { padding: 8px 9px; font-size: 14px; }
  .home-top { grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
  .lead-block { grid-template-columns: 1fr; }
  .lead-skeleton { grid-template-columns: 1fr; }
  .news-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-filter .search-field { grid-column: 1 / -1; }
  .match-page .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .shell { width: calc(100% - 32px); }
  .article-shell { width: calc(100% - 32px); }
  .nav-wrap { height: 56px; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; display: none; top: 56px; left: 0; right: 0; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(17,28,42,.12); flex-direction: column; align-items: stretch; gap: 0; }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 13px 4px; border-radius: 0; border-bottom: 1px solid var(--line-2); font-size: 16px; }
  .main-nav a:hover { background: none; }
  .main-nav > a.active::after, .nav-menu.is-active > .nav-menu-trigger::after { display: none; }
  .nav-menu { display: grid; }
  .nav-menu-trigger::before { right: 6px; }
  .nav-submenu { position: static; width: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px 0 10px 14px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-submenu a { padding: 9px 8px; border: 0; border-radius: 7px; background: var(--paper); text-align: center; font-size: 14px; }
  .nav-submenu a:hover { background: var(--blue-soft); }
  .home-top { grid-template-columns: 1fr; padding-top: 16px; }
  .lead-block { grid-template-columns: 1fr; gap: 16px; }
  .news-list { grid-template-columns: 1fr; }
  .sport-columns { grid-template-columns: 1fr; gap: 28px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-about { grid-column: 1 / -1; }
  .principle-grid { grid-template-columns: 1fr; }

  /* 手机比分行：上层时间 + 状态，下层 主队 比分 客队 */
  .match-table-head { display: none; }
  .match-row { height: auto; min-height: 82px; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); grid-template-areas: "meta meta meta" "home score away" "extra extra extra"; gap: 4px 8px; padding: 10px 14px; }
  .score-panel .match-row { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); }
  .score-panel .match-table-head { display: none; }
  .match-expand { top: 8px; right: 10px; }
  .score-inline-panel { padding: 10px; }
  .inline-animation-head { align-items: flex-start; }
  .inline-animation-head a { display: none; }
  .mr-time, .mr-status { grid-area: meta; }
  .mr-time { justify-self: start; }
  .mr-status { justify-self: end; }
  .mr-team.is-home { grid-area: home; }
  .mr-score { grid-area: score; }
  .mr-team.is-away { grid-area: away; }
  .mr-extra { display: none; }
  .match-detail-score { grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); padding: 28px 12px; }
  .match-detail-score h1, .match-detail-score h2 { font-size: 18px; }
  .match-detail-score > strong { font-size: 38px; }
  .match-detail-data { grid-template-columns: 1fr 1fr; }
  .match-detail-data div:nth-child(2) { border-right: 0; }
  .match-detail-data div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .match-live-grid { grid-template-columns: 1fr; }
  .stat-head, .stat-row { grid-template-columns: 72px minmax(150px, 1fr) 72px; gap: 8px; }
  .stat-list { padding-inline: 10px; }
  .pitch-team { font-size: 13px; gap: 6px; }
  .pitch-scoreboard { min-width: 76px; padding-inline: 10px; }
  .pitch-scoreboard strong { font-size: 19px; }
  .fx-goal-card { min-width: 0; padding: 10px 16px 12px; }
  .fx-goal-card b { font-size: 34px; }
  .fx-goal-card span { font-size: 15px; }
  .goal-toasts { right: 16px; left: 16px; bottom: 16px; width: auto; }
  .score-tools-right { justify-content: space-between; }
  .score-tools-right select { flex: 1; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .brand-mark { width: 32px; height: 32px; font-size: 13px; }
  .brand-copy b { font-size: 16px; }
  .tick { flex-basis: 148px; padding: 9px 12px; }
  .ticker-more { display: none; }
  .lead-copy h2 { font-size: 22px; }
  .news-row { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
  .news-row h3 { font-size: 16px; }
  .news-row p { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .news-grid .news-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .news-grid .news-card .thumb { aspect-ratio: 4 / 3; }
  .news-grid .news-card-copy { padding-top: 0; gap: 4px; }
  .news-grid .news-card h3 { font-size: 16px; }
  .news-grid .news-card p, .news-grid .news-card .tag { display: none; }
  .related-grid, .match-page .related-grid { grid-template-columns: 1fr; gap: 0; }
  .related-grid .news-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .related-grid .news-card .thumb { aspect-ratio: 4 / 3; }
  .related-grid .news-card-copy { padding-top: 0; }
  .related-grid .news-card h3 { font-size: 16px; }
  .related-grid .news-card .tag { display: none; }
  .page-head h1 { font-size: 26px; }
  .news-filter { grid-template-columns: 1fr 1fr; padding: 12px; }
  .score-toolbar { flex-direction: column; align-items: stretch; }
  .date-controls { width: 100%; }
  .date-picker { flex: 1; min-width: 0; }
  .score-toolbar select { width: 100%; }
  .score-status-tabs { overflow-x: auto; }
  .score-status-tabs button { flex-shrink: 0; padding: 10px 12px; }
  .article-head h1 { font-size: 26px; }
  .article-deck { font-size: 16px; }
  .article-body { font-size: 17px; }
  .article-cover { margin-inline: -16px; border-radius: 0; }
  .article-neighbors { grid-template-columns: 1fr; }
  .article-neighbors a[rel="next"] { text-align: left; }
  .article-source a { margin-left: 0; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- 首页频道导航（常驻，接口异常时也显示） ---------- */
.home-channels { padding: 32px 0 56px; }
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.channel-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-content: start; padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.channel-card:hover { border-color: #b9cdf5; box-shadow: var(--shadow); transform: translateY(-2px); }
.channel-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #fff; font-weight: 800; font-size: 18px; background: linear-gradient(135deg, #1a3b63, #0b1e33); }
.channel-card[data-sport="football"] .channel-icon { background: linear-gradient(135deg, #12a174, #0b5440); }
.channel-card[data-sport="basketball"] .channel-icon { background: linear-gradient(135deg, #e07a34, #8f3d16); }
.channel-card[data-sport="tennis"] .channel-icon { background: linear-gradient(135deg, #8db024, #4a5e10); }
.channel-card[data-sport="scores"] .channel-icon { background: linear-gradient(135deg, var(--red), #a3141c); }
.channel-card h3 { font-size: 17px; font-weight: 800; }
.channel-card:hover h3 { color: var(--blue); }
.channel-card p { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.channel-card small { display: block; margin-top: 8px; color: var(--faint); font-size: 12px; }

/* 本地预览提示条（仅 dev-preview.js 在本机插入） */
.preview-ribbon { padding: 6px 16px; background: #fff3c4; color: #7a5600; font-size: 13px; text-align: center; border-bottom: 1px solid #f2d77a; }
.preview-ribbon a { color: var(--blue); text-decoration: underline; }

@media (max-width: 1080px) { .channel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .channel-grid { grid-template-columns: 1fr; gap: 10px; }
  .channel-card { padding: 14px; }
  .channel-card small { display: none; }
}

/* ---------- 直播动画 v3：动作提示、定位球、关键数据、声音提示 ---------- */
.sound-toggle.is-icon { width: 32px; padding: 0; justify-content: center; }
.pitch-board { margin-top: 10px; padding: 12px; border-radius: 10px; background: rgba(0,0,0,.2); }
.pitch-board[hidden] { display: none; }
.board-rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.board-ring { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.board-ring > b { font: 800 15px var(--num); }
.board-ring > b.is-home { text-align: right; color: #b9d8ff; } .board-ring > b.is-away { color: #ffc2c6; }
.board-ring .ring { --share: 50; position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: conic-gradient(#ff5a63 0 calc((100 - var(--share)) * 1%), #4d9bff 0 100%); } /* 主队蓝色在左半边（逆时针），客队红色在右半边 */
.board-ring .ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #262a30; }
.board-ring .ring em { position: relative; font-style: normal; font-size: 10.5px; color: rgba(255,255,255,.85); white-space: nowrap; letter-spacing: -.02em; }
.board-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }
.board-count { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; font-size: 12px; }
.board-count b { font: 700 14px var(--num); } .board-count b:first-child { text-align: right; }
.board-count span { display: inline-flex; align-items: center; gap: 4px; color: rgba(255,255,255,.7); white-space: nowrap; }
.board-count i { width: 8px; height: 8px; border-radius: 50%; background: #6dffad; }
.board-count.is-off i { background: rgba(255,255,255,.45); } .board-count.is-corner i { border-radius: 1px; background: #ffd34d; }
.board-count.is-yellow i { width: 7px; height: 10px; border-radius: 1px; background: #ffd84d; } .board-count.is-red i { width: 7px; height: 10px; border-radius: 1px; background: #ff5a63; }
.sound-unlock { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 999px; background: #0b1e33; color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 10px 28px rgba(7,20,35,.3); cursor: pointer; animation: unlockBob 1.6s ease-in-out infinite; }
@keyframes unlockBob { 50% { transform: translateY(-3px); } }
.basketball-tools-right { display: flex; align-items: center; gap: 10px; }

/* ---------- 篮球直播动画（assets/live-court.js） ---------- */
.live-court { --home: #4d9bff; --away: #ff5a63; position: relative; padding: 14px; color: #fff; background: linear-gradient(180deg, #13213a, #0c1628); }
.court-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 0 2px 12px; }
.court-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; font-weight: 700; }
.court-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.court-team i { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 3px; background: var(--home); }
.court-team.is-away { justify-content: flex-end; } .court-team.is-away i { background: var(--away); }
.court-scoreboard { display: grid; justify-items: center; gap: 2px; min-width: 110px; padding: 5px 14px 4px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); }
.court-scoreboard strong { display: flex; align-items: center; gap: 6px; font: 800 24px/1.05 var(--num); font-variant-numeric: tabular-nums; }
.court-scoreboard strong span { display: inline-block; }
.court-scoreboard strong i { font-style: normal; color: rgba(255,255,255,.4); }
.court-scoreboard small { color: #ffb35c; font: 700 12px var(--num); }
.court-surface { position: relative; width: 100%; aspect-ratio: 28 / 15; overflow: hidden; border-radius: 10px; background: linear-gradient(180deg, #a8693a, #8f552c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), inset 0 0 70px rgba(0,0,0,.35); isolation: isolate; }
.court-surface > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.court-lines rect, .court-lines line, .court-lines circle, .court-lines path { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.court-lines .paint { fill: rgba(17,32,58,.45); }
.court-lines .board { stroke: #fff; stroke-width: 3; }
.court-lines .rim { stroke: #ff7a1a; stroke-width: 2.4; }
.court-half { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 1; opacity: 0; transition: opacity .45s; pointer-events: none; }
.court-half.is-right { right: 0; background: linear-gradient(90deg, transparent, rgba(77,155,255,.38)); }
.court-half.is-left { left: 0; background: linear-gradient(270deg, transparent, rgba(255,90,99,.38)); }
.court-half.is-on { opacity: 1; }
.court-dir { position: absolute; z-index: 2; bottom: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(0,0,0,.35); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.court-dir.is-home { right: 18%; color: #cfe3ff; } .court-dir.is-away { left: 18%; color: #ffd0d3; } .court-dir.is-neutral { display: none; }
.court-ball { position: absolute; z-index: 4; width: 16px; height: 16px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 35% 30%, #ffb46b, #e8701e 60%, #a8460c); box-shadow: 0 0 0 3px rgba(77,155,255,.85), 0 4px 10px rgba(0,0,0,.4); }
.court-ball.is-away { box-shadow: 0 0 0 3px rgba(255,90,99,.85), 0 4px 10px rgba(0,0,0,.4); }
.court-ball[hidden] { display: none; }
.court-shot-ball { position: absolute; z-index: 5; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffb46b, #e8701e 60%, #a8460c); box-shadow: 0 3px 8px rgba(0,0,0,.45); transform: translate(-50%, -50%); }
.court-hoop-fx { position: absolute; z-index: 4; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #ffd34d; transform: translate(-50%, -50%); }
.court-hoop-fx.is-miss { border-color: rgba(255,255,255,.8); border-style: dashed; }
.court-points { position: absolute; z-index: 6; font: 900 26px var(--num); color: #ffd34d; text-shadow: 0 3px 0 rgba(0,0,0,.35); transform: translate(-50%, -50%); }
.court-callout { position: absolute; z-index: 5; top: 10px; left: 50%; display: grid; justify-items: center; gap: 1px; min-width: 130px; max-width: 60%; padding: 6px 16px 7px; border-radius: 10px; background: rgba(10,18,32,.78); border: 1px solid rgba(255,255,255,.18); transform: translate(-50%, 0); text-align: center; pointer-events: none; }
.court-callout[hidden] { display: none; }
.court-callout small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,.75); font-size: 12px; }
.court-callout b { font-size: 17px; letter-spacing: .06em; }
.court-callout.is-home { border-color: rgba(77,155,255,.6); } .court-callout.is-away { border-color: rgba(255,90,99,.6); }
.court-callout.is-made b { color: #ffd34d; } .court-callout.is-miss b { color: rgba(255,255,255,.8); }
.court-callout.is-foul b, .court-callout.is-timeout b { color: #ffb35c; }
.court-fx { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.court-banner { position: absolute; left: 50%; top: 55%; padding: 10px 24px; border-radius: 12px; background: rgba(10,18,32,.85); border: 1px solid rgba(255,211,77,.6); color: #ffd34d; font-size: 20px; font-weight: 800; letter-spacing: .12em; transform: translate(-50%, -50%); white-space: nowrap; }
.court-empty { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; gap: 6px; text-align: center; background: rgba(10,18,32,.45); }
.court-empty[hidden] { display: none; }
.court-empty strong { font-size: 18px; } .court-empty span { font-size: 13px; color: rgba(255,255,255,.75); }
.court-board { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.25); }
.court-quarters { overflow-x: auto; }
.court-quarters table { width: 100%; border-collapse: collapse; font-size: 12px; }
.court-quarters th, .court-quarters td { padding: 4px 6px; text-align: center; font-family: var(--num); white-space: nowrap; }
.court-quarters thead th { color: rgba(255,255,255,.55); font-weight: 600; }
.court-quarters tbody th { max-width: 140px; overflow: hidden; text-overflow: ellipsis; text-align: left; font-family: var(--font); font-weight: 700; }
.court-quarters tbody th i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; background: var(--home); }
.court-quarters tr.is-away th i { background: var(--away); }
.court-quarters td b { color: #ffd34d; font-size: 14px; }
.court-period-stats { display: grid; gap: 6px; min-width: 150px; }
.court-period-stats[hidden] { display: none; }
.court-period-stats div { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; font-size: 12px; }
.court-period-stats span { color: rgba(255,255,255,.65); }
.court-period-stats b { font: 800 15px var(--num); } .court-period-stats b.is-home { text-align: right; color: #b9d8ff; } .court-period-stats b.is-away { color: #ffc2c6; }
.court-feed { display: grid; gap: 4px; margin-top: 10px; }
.court-feed:empty { display: none; }
.court-feed div { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.04); border-left: 3px solid rgba(255,255,255,.2); font-size: 12px; }
.court-feed div.is-home { border-left-color: var(--home); } .court-feed div.is-away { border-left-color: var(--away); }
.court-feed div.is-made b { color: #ffd34d; }
.court-feed time { color: rgba(255,255,255,.5); font-family: var(--num); }
.court-feed span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) {
  .board-ring .ring { width: 48px; height: 48px; }
  .board-ring > b { font-size: 13px; }
  .live-court { padding: 10px 8px; }
  .court-team { font-size: 13px; }
  .court-scoreboard { min-width: 86px; padding-inline: 10px; }
  .court-scoreboard strong { font-size: 19px; }
  .court-board { grid-template-columns: 1fr; }
  .court-feed div { grid-template-columns: 78px minmax(0, 1fr) auto; }
  .basketball-tools-right { justify-content: space-between; }
  .basketball-tools-right select { flex: 1; }
}
.basketball-toolbar .sound-toggle span { color: inherit; font-size: 13px; }

/* ---------- 足球攻势图与无坐标动作模式 ---------- */
.pitch-trend { margin-top: 10px; padding: 10px 12px 8px; border-radius: 10px; background: rgba(0,0,0,.2); }
.pitch-trend[hidden] { display: none; }
.trend-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 12px; }
.trend-head b { font-size: 13px; letter-spacing: .1em; }
.trend-legend { display: inline-flex; align-items: center; gap: 5px; color: rgba(255,255,255,.7); }
.trend-legend i { width: 10px; height: 8px; margin-left: 6px; border-radius: 1px; background: #3d8bff; }
.trend-legend i.is-danger { background: #ff4d4d; }
.trend-chart { position: relative; height: 72px; }
.trend-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.trend-chart rect.is-attack { fill: #3d8bff; } .trend-chart rect.is-danger { fill: #ff4d4d; }
.trend-chart rect.is-away { opacity: .82; }
.trend-chart .trend-mid { stroke: rgba(255,255,255,.35); stroke-width: 1; vector-effect: non-scaling-stroke; }
.trend-chart .trend-ht { stroke: rgba(255,255,255,.25); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.trend-marks { position: absolute; inset: 0; pointer-events: none; }
.trend-mark { position: absolute; display: grid; place-items: center; width: 14px; height: 14px; margin-left: -7px; font-size: 10px; line-height: 1; }
.trend-mark.is-home { top: -2px; } .trend-mark.is-away { bottom: -2px; }
.trend-mark.is-c34 { color: #ffd34d; }
.trend-mark.is-c24::before, .trend-mark.is-c25::before { content: ""; width: 7px; height: 10px; border-radius: 1px; background: #ffd84d; }
.trend-mark.is-c25::before { background: #ff5a63; }
.trend-axis { position: relative; display: flex; justify-content: space-between; margin-top: 3px; color: rgba(255,255,255,.5); font: 11px var(--num); }
.trend-axis span:nth-child(2) { position: absolute; transform: translateX(-50%); }

/* ---------- 足球直播动画 v4：立体球场（assets/live-pitch.js） ---------- */
.court-tools { position: absolute; z-index: 7; bottom: 8px; left: 50%; transform: translateX(-50%); }
@media (max-width: 860px) { .court-callout { min-width: 0; padding: 4px 10px 5px; } .court-callout b { font-size: 14px; } }
.live-pitch { --home: #4d9bff; --away: #ff5a63; --neutral: #ffd34d; position: relative; padding: 14px 14px 12px; color: #fff; background: linear-gradient(180deg, #2b3036 0%, #23272c 60%, #1d2024 100%); transition: box-shadow .4s; }
.live-pitch.is-goal-home { box-shadow: inset 0 0 0 3px var(--home), 0 0 32px rgba(77,155,255,.35); }
.live-pitch.is-goal-away { box-shadow: inset 0 0 0 3px var(--away), 0 0 32px rgba(255,90,99,.35); }
.pitch-stage { position: relative; width: 100%; height: 320px; overflow: hidden; }
.pitch-plane { position: absolute; transform-origin: 50% 50%; background: linear-gradient(180deg, #2f8f3a 0%, #2a8234 55%, #24742d 100%); box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.pitch-field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.pitch-lines rect, .pitch-lines line, .pitch-lines circle, .pitch-lines path { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pitch-lines .spot { fill: rgba(255,255,255,.9); stroke: none; }
.pitch-zone { opacity: 0; transition: opacity .45s; }
.pitch-zone.is-on { opacity: 1; }
.pitch-zone .zone-edge { fill: none; stroke-width: .5; }
.pitch-zone.is-attack .zone-edge { stroke: rgba(130,185,255,.9); }
.pitch-zone.is-danger .zone-edge { stroke: rgba(255,120,120,.95); }
.pitch-zone.is-danger .zone-fill { animation: dangerBreath 1.4s ease-in-out infinite; }
@keyframes dangerBreath { 50% { opacity: .7; } }
.pitch-trail line { stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pitch-trail circle { stroke: none; }
.pitch-trail .is-home { stroke: #cfe3ff; fill: #cfe3ff; }
.pitch-trail .is-away { stroke: #ffd2d5; fill: #ffd2d5; }
.pitch-trail .is-neutral { stroke: #fff; fill: #fff; }
.pitch-live-line { stroke: rgba(255,255,255,.95); stroke-width: 2; stroke-dasharray: 4 4; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .2s; }
.ball-shadow { position: absolute; z-index: 2; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, rgba(0,0,0,.55), rgba(0,0,0,0) 70%); opacity: 0; pointer-events: none; }
.ball-shadow::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); animation: shadowPulse 1.6s ease-out infinite; }
.ball-shadow.is-home::after { border-color: rgba(120,180,255,.8); } .ball-shadow.is-away::after { border-color: rgba(255,130,136,.85); }
@keyframes shadowPulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.live-pitch:not(.is-live) .ball-shadow::after { animation: none; opacity: 0; }
.pitch-ripple { position: absolute; z-index: 3; width: 28px; height: 28px; border: 2px solid #fff; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); }
.pitch-ripple.is-home { border-color: #9cc8ff; } .pitch-ripple.is-away { border-color: #ffb0b4; }
.pitch-markers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pitch-marker { position: absolute; transform: translate(-50%, -50%); }
.pitch-marker i { width: 18px; height: 18px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: rgba(5,30,22,.85); font-size: 10px; font-style: normal; }

/* 贴地特效：任意球扇形、界外球/角球/球门球弧线、射门线 */
.piece .fan-band { fill: url(#fanGlow); opacity: 0; animation: fanWave 1.5s ease-out infinite; }
.piece.is-danger .fan-band { fill: #ffd34d; }
@keyframes fanWave { 0% { opacity: 0; } 30% { opacity: .85; } 100% { opacity: 0; } }
.piece .piece-spot { fill: #fff; }
.piece .piece-ring { fill: none; stroke: #ffd34d; stroke-width: .5; animation: ringPulse 1.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ringPulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.piece .piece-arc { fill: none; stroke: rgba(255,255,255,.92); stroke-width: .9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawArc 1.6s ease-out infinite; }
.piece .piece-arc.is-shot { stroke: #ffd34d; stroke-width: .8; animation: drawArc .45s ease-out forwards; }
.piece.is-shot-off .piece-arc.is-shot, .piece.is-shot-block .piece-arc.is-shot { stroke: rgba(255,255,255,.85); }
@keyframes drawArc { 0% { stroke-dashoffset: 1; opacity: 1; } 70% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.piece .piece-line { stroke: #fff; stroke-width: .6; stroke-dasharray: 1.4 1.2; }

/* 直立层：球（定位针）、动作文字、球门、草皮边 */
.pitch-overlay { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.pitch-3d { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pitch-3d .goal .net { fill: url(#netGrid); stroke: rgba(255,255,255,.4); stroke-width: .8; }
.pitch-3d .goal .frame { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.pitch-3d .goal.is-shot .frame { stroke: #ffd34d; }
.pitch-3d .goal.is-scored { animation: goalShake .12s linear 10; }
.pitch-3d .goal.is-scored .net { fill: rgba(255,225,77,.55); }
.pitch-3d .goal.is-scored .frame { stroke: #ffe14d; filter: drop-shadow(0 0 6px #ffe14d); }
@keyframes goalShake { 25% { transform: translateX(-1.5px); } 75% { transform: translateX(1.5px); } }
.pitch-pin { position: absolute; left: 0; top: 0; z-index: 3; width: 26px; height: 34px; will-change: transform; filter: drop-shadow(0 3px 3px rgba(0,0,0,.4)); }
.pitch-pin[hidden] { display: none; }
.pitch-pin svg { display: block; width: 100%; height: 100%; }
.pitch-pin .pin-body { fill: #ffb020; stroke: rgba(0,0,0,.18); stroke-width: 1; }
.pitch-pin.is-home .pin-body { fill: #3d8bff; } .pitch-pin.is-away .pin-body { fill: #ff4d58; }
.pitch-callout { position: absolute; z-index: 4; display: grid; gap: 1px; padding: 3px 10px 4px; transform: translate(calc(-100% - 12px), 8px); border-right: 3px solid #fff; text-align: right; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.75), 0 0 10px rgba(0,0,0,.35); }
.pitch-callout[hidden] { display: none; }
.pitch-callout.is-home { border-color: #4d9bff; } .pitch-callout.is-away { border-color: #ff5a63; }
.pitch-callout.is-right { transform: translate(12px, 8px); border-right: 0; border-left: 3px solid #fff; text-align: left; }
.pitch-callout.is-right.is-home { border-left-color: #4d9bff; } .pitch-callout.is-right.is-away { border-left-color: #ff5a63; }
.pitch-callout.is-center { transform: translate(-50%, -50%); border: 0; text-align: center; padding: 6px 16px 7px; border-radius: 10px; background: rgba(15,20,26,.55); }
.pitch-callout small { font-size: 12px; color: rgba(255,255,255,.9); }
.pitch-callout b { font-size: 19px; letter-spacing: .06em; }
.pitch-callout.is-center b { font-size: 21px; }
.pitch-callout.is-hot b { color: #ffd34d; }
.pitch-callout.is-danger b { color: #ff7a7a; }
.pitch-empty { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; gap: 6px; padding: 20px; text-align: center; background: rgba(20,24,28,.45); }
.pitch-empty strong { font-size: 17px; }
.pitch-empty span { color: rgba(255,255,255,.75); font-size: 13px; }
.pitch-empty[hidden] { display: none; }
.live-pitch.is-no-coords .pitch-overlay::after { content: "本场无坐标 · 仅显示实时动作"; position: absolute; left: 8px; top: 6px; padding: 2px 8px; border-radius: 4px; background: rgba(0,0,0,.35); color: rgba(255,255,255,.75); font-size: 11px; }
.pitch-tools { position: absolute; z-index: 7; right: 8px; top: 6px; pointer-events: auto; }
.pitch-fx { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
@media (max-width: 860px) {
  .live-pitch { padding: 10px 8px; }
  .pitch-callout b { font-size: 15px; }
  .pitch-callout small { font-size: 11px; }
  .pitch-pin { width: 22px; height: 29px; }
}
.trend-head b small { margin-left: 6px; font-size: 11px; font-weight: 400; letter-spacing: 0; color: rgba(255,255,255,.55); }

/* ---------- 资料库（assets/library-app.js） ---------- */
.lib-hero { padding-bottom: 24px; background: linear-gradient(180deg, #f5f7fa, #eef3f9); }
.lib-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.lib-stats div { min-width: 112px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.lib-stats b { display: block; font: 800 20px var(--num); color: var(--ink); }
.lib-stats span { color: var(--muted); font-size: 12px; }
.lib-home { padding: 24px 0 56px; }
.lib-search { display: flex; gap: 8px; max-width: 640px; }
.lib-search input { flex: 1; height: 46px; padding: 0 16px; border: 1px solid #d5dde6; border-radius: 10px; font-size: 15px; background: #fff; }
.lib-search input:focus { outline: 2px solid var(--blue-soft); border-color: var(--blue); }
.lib-search button { height: 46px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.lib-hot-wrap { margin-top: 22px; }
.lib-hot-wrap h2, .lib-subhead { font-size: 16px; font-weight: 800; }
.lib-hot { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 10px; }
.lib-hot-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.lib-hot-item:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-1px); }
.lib-hot-item span { display: grid; min-width: 0; }
.lib-hot-item b { font-size: 15px; }
.lib-hot-item small { overflow: hidden; color: var(--faint); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.lib-browser { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; margin-top: 24px; align-items: start; }
.lib-countries { position: sticky; top: 84px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.lib-regions { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
.lib-regions button { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; cursor: pointer; }
.lib-regions button small { margin-left: 4px; color: var(--faint); font-size: 11px; }
.lib-regions button.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.lib-regions button.active small { color: rgba(255,255,255,.8); }
.lib-country-list { max-height: 560px; overflow-y: auto; padding: 6px; }
.lib-country { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font-size: 14px; text-align: left; cursor: pointer; }
.lib-country:hover { background: var(--paper); }
.lib-country.active { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.lib-competitions { min-height: 320px; padding: 16px 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.lib-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.lib-panel-head h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; }
.lib-panel-head span { color: var(--faint); font-size: 13px; }
.lib-subhead { display: flex; align-items: center; gap: 6px; margin: 18px 0 10px; }
.lib-subhead small { color: var(--faint); font-size: 12px; font-weight: 400; }
.lib-comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.lib-comp { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; transition: border-color .15s, background .15s; }
.lib-comp:hover { border-color: var(--blue); background: #f8fbff; }
.lib-comp-text { display: grid; flex: 1; min-width: 0; }
.lib-comp-text b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.lib-comp-text small { overflow: hidden; color: var(--faint); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.lib-comp-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.lib-comp-tags em { color: var(--muted); font-size: 11px; font-style: normal; white-space: nowrap; }
.lib-comp-tags i { padding: 1px 7px; border-radius: 999px; font-size: 11px; font-style: normal; white-space: nowrap; }
.lib-comp-tags .is-type-league { background: var(--blue-soft); color: var(--blue); }
.lib-comp-tags .is-type-cup { background: #fff3dc; color: #b26a00; }

/* 图标与占位 */
.lib-logo { flex: 0 0 auto; width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }
.lib-logo.is-text { display: inline-grid; place-items: center; background: linear-gradient(135deg, #e8f0ff, #dbe6f7); color: var(--blue); font-size: 14px; font-weight: 800; }
.lib-logo.is-flag { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.lib-logo.is-flag.is-text { font-size: 11px; }
.lib-logo.is-sm { width: 24px; height: 24px; font-size: 12px; }
.lib-logo.is-xl { width: 76px; height: 76px; border-radius: 14px; background: #fff; padding: 6px; box-shadow: var(--shadow); font-size: 30px; }
.lib-logo.is-xl.is-text { padding: 0; }

/* 骨架屏与状态 */
.lib-skeleton { display: grid; gap: 10px; padding: 8px 0; }
.lib-skeleton i { display: block; height: 16px; border-radius: 6px; background: linear-gradient(90deg, #eef2f6 25%, #f6f8fb 50%, #eef2f6 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.lib-skeleton i:nth-child(3n) { width: 72%; }
.lib-skeleton.is-inline { display: flex; } .lib-skeleton.is-inline i { flex: 1; height: 52px; }
.lib-skeleton.is-head i:first-child { width: 76px; height: 76px; border-radius: 14px; }
.lib-state { display: flex; align-items: flex-start; gap: 12px; margin: 8px 0; padding: 24px; border: 1px dashed var(--line); border-radius: 12px; background: var(--paper); }
.lib-state > b { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--faint); }
.lib-state.is-error > b { background: var(--red-soft); color: var(--red); }
.lib-state strong { font-size: 16px; }
.lib-state p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.lib-retry { margin-top: 10px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.lib-note { margin-top: 12px; color: var(--faint); font-size: 13px; }

/* 赛事 / 球队详情头部 */
.lib-hero.is-detail { padding-bottom: 20px; }
.lib-comp-head, .lib-team-head { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.lib-comp-meta { flex: 1; min-width: 0; }
.lib-comp-meta h1 { margin: 0; font-size: 28px; font-weight: 800; }
.lib-comp-meta p { margin-top: 2px; color: var(--muted); font-size: 14px; }
.lib-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lib-tags > * { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 12px; }
.lib-tags a:hover { border-color: var(--blue); color: var(--blue); }
.lib-tags .lib-logo.is-flag { width: 18px; height: 13px; }
.lib-season { display: grid; gap: 4px; }
.lib-season span { color: var(--faint); font-size: 12px; }
.lib-season select { min-width: 250px; height: 42px; padding: 0 12px; border: 1px solid #d5dde6; border-radius: 10px; background: #fff; font-size: 15px; font-weight: 700; }
.lib-detail { padding: 18px 0 56px; }
.lib-tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.lib-tabs button { position: relative; padding: 10px 16px; border: 0; background: none; color: var(--muted); font-size: 15px; font-weight: 700; cursor: pointer; }
.lib-tabs button.active { color: var(--blue); }
.lib-tabs button.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }

/* 表格 */
.lib-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.lib-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lib-table th { padding: 10px 8px; background: var(--paper); color: var(--faint); font-size: 12px; font-weight: 600; text-align: center; white-space: nowrap; }
.lib-table td { padding: 10px 8px; border-top: 1px solid var(--line-2); text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lib-table tbody tr:hover td { background: #fafcff; }
.lib-standings .is-team { text-align: left; }
.lib-standings .is-team a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.lib-standings .is-team a:hover { color: var(--blue); }
.lib-rank { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 6px; font-family: var(--num); }
.lib-rank.is-top1 { background: #ffd34d; color: #5a3d00; } .lib-rank.is-top2 { background: #e3e8ef; } .lib-rank.is-top3 { background: #f2c9a0; color: #5b3210; }
.lib-points { color: var(--blue); font-size: 15px; }
.lib-table .is-pos { color: var(--green); } .lib-table .is-neg { color: var(--red); }
.lib-matches .is-date { text-align: left; }
.lib-matches .is-date span { display: block; font-family: var(--num); }
.lib-matches .is-date small { color: var(--faint); font-size: 12px; font-family: var(--num); }
.lib-matches .is-stage, .lib-matches .is-half { color: var(--muted); font-size: 13px; }
.lib-matches .is-comp { font-size: 13px; }
.lib-matches .is-comp a { display: block; font-weight: 700; }
.lib-matches .is-comp small { color: var(--faint); font-size: 12px; }
.lib-matches .is-home { text-align: right; width: 30%; }
.lib-matches .is-away { text-align: left; width: 30%; }
.lib-matches .is-home a, .lib-matches .is-away a { color: var(--ink-2); }
.lib-matches td a:hover { color: var(--blue); }
.lib-matches a.is-win { color: var(--ink); font-weight: 800; }
.lib-matches a.is-me { color: var(--blue); }
.lib-matches .is-score b { display: inline-flex; gap: 4px; padding: 3px 10px; border-radius: 6px; background: var(--paper); font: 800 15px var(--num); }
.lib-matches .is-score b i { color: var(--faint); font-style: normal; }
.lib-vs { color: var(--faint); font: 700 13px var(--num); }
.lib-stage-row td { padding: 7px 12px; background: #f7f9fc; color: var(--muted); font-size: 12px; font-weight: 700; text-align: left; }
.lib-res { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 6px; border-radius: 5px; color: #fff; font-size: 12px; font-style: normal; font-weight: 700; vertical-align: middle; }
.lib-res.is-w { background: var(--red); } .lib-res.is-d { background: #8d9aab; } .lib-res.is-l { background: #2f9e6e; }
.lib-res.is-n { width: auto; padding: 0 6px; background: var(--paper); color: var(--faint); font-weight: 400; }
.lib-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; }
.lib-pager button { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; cursor: pointer; }
.lib-pager button.active { border-color: var(--blue); background: var(--blue); color: #fff; font-weight: 700; }
.lib-pager button:disabled { opacity: .4; cursor: default; }
.lib-pager span { color: var(--faint); }
.lib-pager small { width: 100%; color: var(--faint); font-size: 12px; text-align: center; }
.lib-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.lib-team-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.lib-team-card:hover { border-color: var(--blue); }
.lib-team-card span { display: grid; min-width: 0; }
.lib-team-card b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-team-card small { overflow: hidden; color: var(--faint); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

/* 球队页 */
.lib-form { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 10px; }
.lib-form > span { margin-right: 4px; color: var(--faint); font-size: 12px; }
.lib-form .lib-res { margin-left: 0; }
.lib-team-stats { display: flex; gap: 8px; margin: 0; }
.lib-team-stats div { min-width: 104px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: center; }
.lib-team-stats dt { color: var(--faint); font-size: 12px; }
.lib-team-stats dd { margin: 2px 0 0; font: 800 17px var(--num); }
.lib-participation { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.lib-participation h2 { margin-bottom: 8px; font-size: 15px; font-weight: 800; }
.lib-participation > div { display: flex; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line-2); }
.lib-participation > div:first-of-type { border-top: 0; }
.lib-part-comp { flex: 0 0 120px; font-weight: 700; color: var(--blue); }
.lib-part-seasons { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-part-seasons a { padding: 2px 9px; border-radius: 999px; background: var(--paper); color: var(--ink-2); font-size: 12px; font-family: var(--num); }
.lib-part-seasons a:hover { background: var(--blue-soft); color: var(--blue); }
.lib-team-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.lib-team-filter select { min-width: 160px; height: 40px; padding: 0 12px; border: 1px solid #d5dde6; border-radius: 8px; background: #fff; font-size: 14px; }
.lib-detail .lib-panel-head { margin-top: 18px; }
.lib-detail .lib-panel-head:first-child { margin-top: 0; }

@media (max-width: 860px) {
  .lib-browser { grid-template-columns: 1fr; gap: 14px; }
  .lib-countries { position: static; }
  .lib-country-list { display: flex; gap: 6px; max-height: none; overflow-x: auto; padding: 10px; scrollbar-width: none; }
  .lib-country-list::-webkit-scrollbar { display: none; }
  .lib-country { flex: 0 0 auto; width: auto; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
  .lib-country.active { border-color: var(--blue); }
  .lib-competitions { padding: 14px 12px; scroll-margin-top: 70px; }
  .lib-comp-grid { grid-template-columns: 1fr; }
  .lib-hot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lib-stats div { min-width: calc(33% - 8px); padding: 8px 10px; }
  .lib-stats b { font-size: 17px; }
  .lib-comp-head, .lib-team-head { flex-wrap: wrap; gap: 12px; }
  .lib-logo.is-xl { width: 60px; height: 60px; font-size: 24px; }
  .lib-comp-meta h1 { font-size: 22px; }
  .lib-season { width: 100%; } .lib-season select { width: 100%; min-width: 0; }
  .lib-team-stats { width: 100%; } .lib-team-stats div { flex: 1; min-width: 0; padding: 8px; }
  .lib-tabs { overflow-x: auto; }
  .lib-table { font-size: 13px; }
  .lib-table td, .lib-table th { padding: 8px 6px; }
  .lib-matches .is-half, .lib-matches th.is-half { display: none; }
  .lib-matches .is-home, .lib-matches .is-away { width: auto; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  .lib-participation > div { flex-direction: column; gap: 6px; }
  .lib-part-comp { flex: none; }
  .lib-team-filter select { flex: 1; min-width: 0; }
}
.lib-logo.is-text { position: relative; overflow: hidden; }
.lib-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .2s; }
.lib-logo.has-img { background: #fff; color: transparent; }
.lib-logo.has-img img { opacity: 1; }
.lib-logo.is-xl img { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.lib-logo.is-flag img { object-fit: cover; }
.lib-matches .is-date { width: 150px; }
.lib-matches .is-date span { display: inline; margin-right: 6px; }
@media (max-width: 860px) { .lib-matches .is-date { width: auto; } .lib-matches .is-date span { display: block; margin: 0; } }

/* 篮球列表：展开内嵌动画 */
.bb-entry { position: relative; border-top: 1px solid var(--line-2); }
.bb-entry > .basketball-row { border-top: 0; }
.bb-entry .bb-expand { top: 14px; right: 12px; }
.bb-entry.is-expanded .bb-expand i { transform: rotate(180deg); }
.bb-entry.is-expanded .bb-expand { border-color: var(--blue); background: var(--blue-soft); }
.bb-inline .live-court { max-width: 820px; margin: 0 auto; border-radius: 10px; }
.bb-inline-loading { padding: 40px 0; color: var(--muted); text-align: center; font-size: 14px; }
@media (max-width: 560px) { .bb-entry .bb-expand { top: 62px; right: 12px; } } /* 手机端放在比赛行右下角（“各节比分”那一行），不跟随展开区域 */

/* ---------- 得分队名高亮（足球、篮球共用，见 app.js 的 LeisuScoreFlash） ----------
   只给队名加底色，不改文字颜色；亮 10 秒后 1 秒淡出（动画总长 11 秒）。 */
.sk-name { display: inline; }
.team-scored {
  --sf: 255, 196, 0;
  border-radius: 4px;
  padding: 1px 5px; margin: -1px -5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: teamScored 11s linear both;
  animation-delay: var(--sf-delay, 0ms);
}
@keyframes teamScored {
  0% { background-color: rgba(var(--sf), .75); box-shadow: 0 0 0 2px rgba(var(--sf), .9), 0 0 14px rgba(var(--sf), .75); }
  4% { background-color: rgba(var(--sf), .42); box-shadow: 0 0 0 2px rgba(var(--sf), .55), 0 0 8px rgba(var(--sf), .4); }
  8% { background-color: rgba(var(--sf), .6); box-shadow: 0 0 0 2px rgba(var(--sf), .75), 0 0 12px rgba(var(--sf), .6); }
  12% { background-color: rgba(var(--sf), .42); box-shadow: 0 0 0 2px rgba(var(--sf), .55), 0 0 8px rgba(var(--sf), .4); }
  90.9% { background-color: rgba(var(--sf), .42); box-shadow: 0 0 0 2px rgba(var(--sf), .55), 0 0 8px rgba(var(--sf), .4); }
  100% { background-color: rgba(var(--sf), 0); box-shadow: 0 0 0 2px rgba(var(--sf), 0), 0 0 0 rgba(var(--sf), 0); }
}
@media (prefers-reduced-motion: reduce) {
  .team-scored { animation: teamScoredCalm 11s linear both !important; animation-delay: var(--sf-delay, 0ms) !important; }
  @keyframes teamScoredCalm { 0%, 90.9% { background-color: rgba(255, 196, 0, .42); } 100% { background-color: rgba(255, 196, 0, 0); } }
}

/* ---------- 比分悬停浮层（app.js 的 setupScoreHover） ---------- */
.mr-score[data-score-hover] { cursor: help; border-radius: 6px; transition: background .15s; }
.mr-score[data-score-hover]:hover { background: var(--blue-soft); }
.score-hover { position: absolute; z-index: 80; width: 380px; padding: 12px 14px 14px; border-radius: 12px; background: #1d2330; color: #fff; box-shadow: 0 16px 40px rgba(7,20,35,.35); font-size: 13px; pointer-events: none; }
.score-hover[hidden] { display: none; }
.sh-head { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.12); font-weight: 700; }
.sh-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-head span:last-child { text-align: right; }
.sh-head strong { padding: 2px 10px; border-radius: 6px; background: rgba(255,255,255,.1); font: 800 15px var(--num); }
.sh-events { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.sh-event { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.sh-event.is-home { padding-right: calc(50% + 6px); justify-content: flex-end; }
.sh-event.is-away { padding-left: calc(50% + 6px); flex-direction: row-reverse; justify-content: flex-end; }
.sh-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sh-who small { margin-left: 3px; color: rgba(255,255,255,.6); font-weight: 400; }
.sh-event time { flex: none; color: #ffb35c; font: 700 12px var(--num); }
.sh-icon { flex: none; font-style: normal; font-size: 14px; }
.sh-icon.is-penalty_missed, .sh-icon.is-goal_cancelled { color: #ff6b6b; font-weight: 800; }
.sh-icon.is-substitution { color: #6dffad; }
.sh-card { flex: none; width: 10px; height: 14px; border-radius: 2px; background: #ff4d4d; }
.sh-half { margin: 2px 0; padding: 3px 0; border-top: 1px dashed rgba(255,255,255,.15); border-bottom: 1px dashed rgba(255,255,255,.15); color: rgba(255,255,255,.75); text-align: center; font-size: 12px; }
.sh-stats { padding-top: 10px; }
.sh-title { margin-bottom: 6px; color: rgba(255,255,255,.75); text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.sh-stat { display: grid; grid-template-columns: 34px minmax(0,1fr) 66px minmax(0,1fr) 34px; gap: 6px; align-items: center; min-height: 24px; }
.sh-stat b { font: 700 13px var(--num); }
.sh-stat b:last-child { text-align: right; }
.sh-stat em { color: #fff; font-style: normal; font-size: 12px; font-weight: 700; text-align: center; white-space: nowrap; }
.sh-bar { display: flex; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.sh-bar.is-home { justify-content: flex-end; }
.sh-bar i { display: block; height: 100%; border-radius: 3px; background: rgba(255,255,255,.45); }
.sh-bar.is-lead i { background: #ff9a1f; }
.sh-empty { padding: 14px 0; color: rgba(255,255,255,.6); text-align: center; }

/* 非正常状态：待定绿色，推迟/腰斩/中断/取消红色系（参照球探） */
.badge.is-tbd { background: #e3f6ea; color: #15803d; }
.badge.is-postponed, .badge.is-abandoned, .badge.is-cancelled { background: #ffecee; color: #c62828; }
.badge.is-suspended { background: #fff4e0; color: #b45309; }
.lib-sport-switch{display:flex;gap:8px;margin:14px 0 18px}.lib-sport-switch a{display:inline-flex;align-items:center;min-height:38px;padding:0 16px;border:1px solid #dbe6f3;border-radius:10px;background:#fff;color:#49627d;font-size:14px;font-weight:700}.lib-sport-switch a.active{border-color:#2775f6;background:#2775f6;color:#fff;box-shadow:0 6px 16px rgba(39,117,246,.18)}
/* 篮球异常状态：与足球同色（待定绿、推迟/取消/腰斩红、中断橙） */
.basketball-badge.is-tbd { background: #e3f6ea; color: #15803d; }
.basketball-badge.is-postponed, .basketball-badge.is-cancelled, .basketball-badge.is-abandoned { background: #ffecee; color: #c62828; }
.basketball-badge.is-suspended { background: #fff4e0; color: #b45309; }

/* ===== 资讯栏目 2026-11-11：快捷筛选 + 双栏 + 侧栏 ===== */
.news-chips { display: grid; gap: 10px; margin: 18px 0 4px; }
.news-chips:empty { display: none; }
.chip-row { display: flex; align-items: flex-start; gap: 12px; }
.chip-label { flex: 0 0 auto; padding-top: 6px; color: var(--faint); font-size: 13px; font-weight: 700; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chip-list a { padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 14px; line-height: 1.4; transition: border-color .15s, color .15s; }
.chip-list a:hover { border-color: var(--blue); color: var(--blue); }
.chip-list a.active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.news-layout .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-side { display: grid; gap: 20px; align-content: start; margin-top: 24px; position: sticky; top: 84px; }
.hot-comp-list { list-style: none; margin: 0; padding: 4px 0; }
.hot-comp-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.hot-comp-list li:last-child { border-bottom: 0; }
.hot-comp-list li > a:first-child { color: var(--ink); font-weight: 700; }
.hot-comp-list li > a:first-child:hover { color: var(--blue); }
.hot-comp-list .hc-lib { color: var(--faint); font-size: 12px; }
.hot-comp-list .hc-lib:hover { color: var(--blue); }
.side-links { padding: 2px 16px 6px; }
.side-links .text-link:first-child { border-top: 0; }
.side-links .text-link h3 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; }

/* 文章页：正文 + 侧栏 */
.article-page .article-layout { width: min(1160px, calc(100% - 40px)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 760px) 320px; gap: 40px; justify-content: center; align-items: start; }
.article-layout > .article-shell { width: auto; margin: 0; min-width: 0; }
.article-layout .news-side { margin-top: 32px; }
.article-tags a.is-league { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.article-league-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; font-size: 14px; }
.article-league-links a { color: var(--blue); font-weight: 700; }

/* 资料库页：相关资讯 */
.library-news { margin-top: 32px; }
.library-news .related-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1080px) {
  .news-layout, .article-page .article-layout { grid-template-columns: minmax(0, 1fr); }
  .news-side, .article-layout .news-side { position: static; margin-top: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-news .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .chip-row { flex-direction: column; gap: 6px; }
  .chip-label { padding-top: 0; }
  .chip-list { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .chip-list::-webkit-scrollbar { display: none; }
  .chip-list a { flex: 0 0 auto; }
  .news-layout .news-grid { grid-template-columns: 1fr; }
  .news-side, .article-layout .news-side { grid-template-columns: 1fr; }
  .article-page .article-layout { width: calc(100% - 32px); }
  .library-news .related-grid { grid-template-columns: 1fr; }
}
