/* =====================================================================
   体育（docs/27）页面样式：今日赛事、比赛直播、24 小时频道。
   自成一套深色「电视转播」面板（深夜蓝 + 转播红 + 黄色比分），放在任何站点模板里都能用，只在体育页面加载。
   方向相关的属性都用逻辑属性，<html dir="rtl"> 自动镜像。
   ===================================================================== */
.spx {
  --sp-bg: #070c1f; --sp-s1: #0c1430; --sp-s2: #121c3f; --sp-s3: #1a2754;
  --sp-line: rgba(146, 166, 230, .16); --sp-tx: #f3f5fc; --sp-mu: #97a3c8; --sp-mu2: #6c78a0;
  --sp-red: #e8242e; --sp-red2: #ff3d47; --sp-yel: #ffcc2a; --sp-grn: #25d083;
  --sp-num: ui-monospace, "SF Mono", Consolas, "IBM Plex Mono", monospace;
  color: var(--sp-tx);
}
.spx * { box-sizing: border-box; }
.spx a { color: inherit; text-decoration: none; }
.spx .i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spx .i.fill { fill: currentColor; stroke: none; }
/* 第十八版（إيجي بست）整站已经是深色转播风：体育页面直接用整站的容器、标题、面包屑样式，这里只放体育专用的部件 */
.ctr.spx { padding-top: 22px; }
.spx .crumb { color: var(--sp-mu); font-size: 13.5px; margin-bottom: 12px; }
.spx .crumb a:hover { color: #fff; }
.spx .crumb .sep { color: var(--sp-red); margin: 0 6px; }
.spx .crumb [aria-current] { color: #dfe4f3; }
.spx .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sp-red2); animation: sp-blink 1.6s infinite; flex: none; vertical-align: middle; }
@keyframes sp-blink { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 71, .7); } 70% { box-shadow: 0 0 0 8px rgba(255, 61, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 61, 71, 0); } }
.spx .st-live { color: var(--sp-red2) !important; font-style: normal; }
.spx .gap { flex: 1; }

/* ---------- 标题 ---------- */
.sp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--sp-line); }
.sp-head h1 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 28px; line-height: 1.4; color: #fff; }
.sp-head h1::before { content: ''; width: 9px; height: 28px; background: var(--sp-red); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); flex: none; }
.sp-head p { margin: 4px 0 0; color: var(--sp-mu); font-size: 14.5px; }
.sp-live { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; background: var(--sp-s2); color: var(--sp-yel); font: 700 15px/1 var(--sp-num); }
.sp-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--sp-line); position: relative; }
.sp-h::after { content: ''; position: absolute; bottom: -1px; inset-inline-start: 0; width: 110px; height: 3px; background: var(--sp-red); }
.sp-h h2 { margin: 0; font-size: 20px; color: #fff; }
.sp-h small { color: var(--sp-mu); font-size: 13.5px; }
.sp-h .sp-more { margin-inline-start: auto; }
.sp-more { display: inline-flex; align-items: center; gap: 4px; color: var(--sp-mu); font-weight: 700; font-size: 14px; }
.sp-more:hover { color: var(--sp-red2); }
.sp-sec { margin-top: 34px; }

/* ---------- 按钮 ---------- */
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; background: var(--sp-red); color: #fff; font: inherit; font-weight: 700; cursor: pointer; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.sp-btn:hover { background: var(--sp-red2); }
.sp-btn-s { height: 36px; padding: 0 14px; font-size: 13.5px; background: rgba(255, 255, 255, .12); }
.sp-btn-s:hover, .sp-btn-s.done { background: #fff; color: var(--sp-bg); }

/* ---------- 筛选 ---------- */
.sp-bar { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.spx .seg { display: flex; flex-wrap: wrap; gap: 4px; }
.spx .seg button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border: 0; background: var(--sp-s2); color: var(--sp-mu); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.spx .seg button small { font: 700 14px/1 var(--sp-num); opacity: .85; }
.spx .seg button.on { background: var(--sp-red); color: #fff; }
.spx .seg button.on .dot { background: #fff; }
.spx .seg button:hover:not(.on) { color: #fff; }
.sp-kinds { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sp-kinds a { display: flex; align-items: center; gap: 7px; flex: none; height: 40px; padding: 0 14px; background: var(--sp-s1); color: #c8cfe6; font-weight: 700; font-size: 14px; border-bottom: 3px solid transparent; }
.sp-kinds a small { font: 700 13px/1 var(--sp-num); color: var(--sp-mu2); }
.sp-kinds a:hover { background: var(--sp-s2); }
.sp-kinds a.on { background: var(--sp-s2); border-color: var(--sp-red); color: #fff; }
.sp-seg { margin: 18px 0 14px; }

/* ---------- 今日赛事：联赛分组 + 记分牌行 ---------- */
.sp-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; margin-top: 18px; }
.sp-main { min-width: 0; display: grid; gap: 14px; }
.lg { background: var(--sp-s1); }
.lg[hidden], .fx[hidden], .tvc[hidden] { display: none !important; }
.lg-h { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--sp-s2); border-inline-start: 4px solid var(--sp-red); }
.lg-h .i { color: var(--sp-red2); }
.lg-h h2 { margin: 0; font-size: 15.5px; color: #fff; line-height: 1.5; }
.lg-h small { color: var(--sp-mu); font-size: 13px; }
.lg-h em { margin-inline-start: auto; font: 700 15px/1 var(--sp-num); font-style: normal; color: var(--sp-mu); }
.fx { display: grid; grid-template-columns: 70px 1fr 76px 1fr 82px 38px; align-items: center; gap: 10px; min-height: 62px; padding: 6px 14px; border-top: 1px solid var(--sp-line); transition: background .15s; }
.fx:hover { background: var(--sp-s2); }
.fx-t { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.fx-t b { font: 700 18px/1 var(--sp-num); color: var(--sp-yel); }
.fx-t i { font-style: normal; font-size: 11.5px; color: var(--sp-mu2); font-weight: 700; margin-top: 4px; }
.fx-live .fx-t b { color: #fff; }
.fx-ended .fx-t b { font-size: 13px; color: var(--sp-mu); font-family: inherit; }
.fx-h, .fx-a { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fx-h { justify-content: flex-end; text-align: end; }
.fx-h b, .fx-a b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.fx-s { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; background: #050916; font: 700 20px/1 var(--sp-num); color: #fff; }
.fx-s i { font-style: normal; color: var(--sp-mu2); font-size: 13px; }
.fx-live .fx-s { background: var(--sp-red); }
.fx-live .fx-s i { color: #ffd0d3; }
.fx-ev { grid-column: span 3; display: flex; align-items: center; gap: 10px; justify-content: center; text-align: center; }
.fx-ev .i { color: var(--sp-red2); width: 22px; height: 22px; }
.fx-ev b { font-size: 15px; color: #fff; }
.fx-n { font-size: 12.5px; color: var(--sp-mu); text-align: center; }
.fx-go { display: grid; place-items: center; width: 36px; height: 36px; background: var(--sp-s3); color: #fff; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.fx-go .i { width: 15px; height: 15px; }
.fx:hover .fx-go, .fx-live .fx-go { background: var(--sp-red); }
.fx-ended { opacity: .7; }
/* 队徽：有图显示图，没有图是 CSS 圆盾（队名缩写） */
.crest { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%; background: var(--c, #334); color: #fff; font: 700 10px/1 var(--sp-num); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22); overflow: hidden; }
.crest-img { background: transparent; box-shadow: none; border-radius: 0; }
.crest-img img { width: 100%; height: 100%; object-fit: contain; }
.crest-xl { width: 76px; height: 76px; font-size: 18px; }
.sp-side { position: sticky; top: 84px; display: grid; gap: 14px; }
.sp-box { padding: 14px 16px; background: var(--sp-s1); border-top: 3px solid var(--sp-red); }
.sp-box h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; color: #fff; }
.sp-box h3 .i { color: var(--sp-red2); }
.sp-box p { margin: 0; font-size: 13.5px; color: var(--sp-mu); line-height: 1.8; }
.sp-ch { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--sp-line); }
.sp-ch > i { display: grid; place-items: center; width: 34px; height: 28px; flex: none; background: var(--sp-s3); font: 700 14px/1 var(--sp-num); font-style: normal; }
.sp-ch span { display: flex; flex-direction: column; min-width: 0; }
.sp-ch b { font-size: 14px; color: #fff; }
.sp-ch small { font-size: 12px; color: var(--sp-mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-ch:hover b { color: var(--sp-red2); }
.sp-box .sp-more { margin-top: 10px; }
.nosig { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 46px 20px; text-align: center; color: var(--sp-mu); background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 4px), var(--sp-s1); }
.nosig[hidden] { display: none; }
.nosig .i { width: 40px; height: 40px; color: var(--sp-red2); }
.nosig p { margin: 0; }
.sp-about { margin-top: 30px; padding: 20px 22px; background: var(--sp-s1); border-inline-start: 5px solid var(--sp-red); }
.sp-about h2 { margin: 0 0 6px; font-size: 18px; color: #fff; }
.sp-about p { margin: 0; color: #c3cae1; font-size: 14.5px; line-height: 1.9; }

/* ---------- 比赛页 / 频道页：深色影院带 ---------- */
.sp-theater { background: #000; padding: 18px 0 24px; border-bottom: 1px solid var(--sp-line); position: relative; z-index: 2; }
.sb { margin-bottom: 12px; background: linear-gradient(180deg, var(--sp-s2), var(--sp-s1)); border-top: 4px solid var(--sp-red); }
.sb-lg { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; font-size: 14px; font-weight: 700; color: var(--sp-mu); border-bottom: 1px solid var(--sp-line); }
.sb-lg .i { color: var(--sp-red2); }
.sb-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 18px 20px 20px; }
.sb-h, .sb-a { display: flex; align-items: center; gap: 16px; min-width: 0; }
.sb-h { justify-content: flex-end; }
.sb-h b, .sb-a b { font-size: 24px; line-height: 1.3; color: #fff; }
.sb-m { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sb-s { display: flex; align-items: center; gap: 12px; padding: 4px 20px; background: #050916; font: 700 46px/1.1 var(--sp-num); color: #fff; }
.sb-s i { font-style: normal; font-size: 26px; color: var(--sp-mu2); }
.sb-k { padding: 6px 18px; background: #050916; font: 700 36px/1.1 var(--sp-num); color: var(--sp-yel); }
.sb-st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; font-size: 13px; font-weight: 700; background: var(--sp-s3); color: var(--sp-mu); }
.sb-live { background: var(--sp-red); color: #fff; }
.sb-live .dot { background: #fff; }
.sb-ev { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.sb-ev > .i { width: 42px; height: 42px; color: var(--sp-red2); }
.sb-ev b { font-size: 26px; line-height: 1.35; color: #fff; }
.spx .scr { position: relative; aspect-ratio: 16 / 9; max-height: 74vh; width: 100%; margin: 0 auto; overflow: hidden; background: radial-gradient(ellipse at 50% 120%, #3b1520, #0a0d1d 70%); }
.spx .scr-football { background: repeating-linear-gradient(90deg, #0e3b22 0 9%, #11452a 9% 18%); }
.spx .scr-football::before { content: ''; position: absolute; inset: 8%; border: 2px solid rgba(255, 255, 255, .16); background: radial-gradient(circle at 50% 50%, transparent 11%, rgba(255, 255, 255, .16) 11.3%, transparent 11.7%), linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, .16) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
.spx .scr.playing::before { display: none; }
.spx .scr:not(.playing) video { visibility: hidden; }
.spx .scr iframe, .spx .scr video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.spx .scr-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.spx .scr-play { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 0; background: none; color: #fff; cursor: pointer; font: inherit; }
.spx .scr-play > span { display: grid; place-items: center; width: 88px; height: 88px; background: var(--sp-red); clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); transition: transform .2s, background .2s; }
.spx .scr-play > span .i { width: 36px; height: 36px; }
.spx .scr-play:hover > span { transform: scale(1.06); background: var(--sp-red2); }
.spx .scr-play small { padding: 4px 12px; background: rgba(0, 0, 0, .6); font-size: 14px; }
.spx .scr-wait { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; background: rgba(4, 7, 20, .55); }
.spx .scr-wait small { font-weight: 700; color: #d6dcef; }
.spx .scr-wait b { font: 700 clamp(40px, 8vw, 84px)/1 var(--sp-num); letter-spacing: 2px; color: #fff; }
.spx .scr-wait b.scr-nos { font: 700 22px/1.4 inherit; letter-spacing: 0; }
.spx .scr-wait span { font-size: 14px; color: var(--sp-mu); }
.spx .scr-wait .i { width: 40px; height: 40px; color: var(--sp-red2); }
.spx .scr-wait .sp-btn { margin-top: 10px; }
.spx .scr-logo { position: absolute; top: 18%; left: 0; right: 0; text-align: center; font-size: clamp(22px, 4vw, 42px); font-weight: 800; opacity: .3; }
.spx .scr-tv { background: radial-gradient(circle at 50% 40%, #24305e, #04060f 75%); }
.nowbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; padding: 10px 12px; background: var(--sp-s1); border-inline-start: 4px solid var(--sp-red); }
.nb-k { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; background: var(--sp-red); color: #fff; font-weight: 800; font-size: 13px; }
.nb-k i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: sp-blink 1.6s infinite; }
.nb-t { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.nb-t b { font-size: 16px; color: #fff; }
.nb-t small { font-size: 12.5px; color: var(--sp-mu); }
.nowbar .i { width: 16px; height: 16px; }
body.sp-dim::before { content: ''; position: fixed; inset: 0; z-index: 1; background: rgba(0, 0, 0, .88); pointer-events: none; }
body.sp-dim .sp-theater { z-index: 3; }

/* 线路 */
.srv { margin-top: 6px; }
.srv-list { display: grid; gap: 10px; }
.srv-g { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.srv-g > b { width: 110px; font-size: 14px; color: var(--sp-mu); }
.srv-g button { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 0; background: var(--sp-s1); color: #d4daee; font: inherit; font-weight: 700; font-size: 14px; border-bottom: 3px solid var(--sp-s3); cursor: pointer; }
.srv-g button i { font: 700 13px/1 var(--sp-num); font-style: normal; color: var(--sp-mu2); }
.srv-g button em { font-style: normal; font-size: 11px; padding: 1px 5px; background: var(--sp-s3); }
.srv-g button:hover { background: var(--sp-s2); }
.srv-g button.on { background: var(--sp-s2); border-color: var(--sp-red); color: #fff; }
.srv-g button.on i { color: var(--sp-red2); }
.srv-g button[data-off] { opacity: .5; }
.srv-sig { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.srv-sig em { width: 3px !important; padding: 0 !important; background: var(--sp-grn) !important; }
.srv-sig em:nth-child(1) { height: 40%; } .srv-sig em:nth-child(2) { height: 70%; } .srv-sig em:nth-child(3) { height: 100%; }
button[data-off] .srv-sig em { background: var(--sp-mu2) !important; }

/* 比赛资料 + 其他比赛 */
.wgrid { display: grid; grid-template-columns: 1fr 380px; gap: 26px; margin-top: 30px; align-items: start; }
.winfo h1 { margin: 0 0 10px; font-size: 22px; line-height: 1.45; color: #fff; }
.winfo p { color: #c9d0e6; line-height: 1.9; font-size: 15px; }
.winfo-solo { margin-top: 6px; }
.spx .sp-facts { margin: 0 0 12px; max-width: 560px; }
.spx .sp-facts div { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--sp-line); font-size: 14px; }
.spx .sp-facts dt { width: 96px; flex: none; color: var(--sp-mu); }
.spx .sp-facts dd { margin: 0; font-weight: 600; }
.spx .sp-facts a:hover { color: var(--sp-red2); }
.wpicks { background: var(--sp-s1); border-top: 3px solid var(--sp-red); padding-bottom: 10px; }
.wpicks h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px 8px; font-size: 16px; color: #fff; }
.wpicks h3 .i { color: var(--sp-grn); }
.wpicks .sp-more { margin: 10px 14px 0; }
.mini-fx .fx { grid-template-columns: 50px 1fr 52px 1fr; gap: 6px; padding: 6px 10px; min-height: 54px; }
.mini-fx .fx-n, .mini-fx .fx-go, .mini-fx .crest { display: none; }
.mini-fx .fx-h b, .mini-fx .fx-a b, .mini-fx .fx-ev b { font-size: 13px; }
.mini-fx .fx-s { height: 30px; font-size: 16px; }
.mini-fx .fx-t b { font-size: 15px; }

/* 小卡 */
.spx .rail { display: grid; grid-auto-flow: column; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--sp-s3) transparent; padding-bottom: 6px; }
.spx .rail > * { scroll-snap-align: start; }
.rail.mcs { grid-auto-columns: 260px; }
.mc { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--sp-s1); border-top: 3px solid var(--sp-s3); transition: background .2s; color: var(--sp-tx); }
.mc:hover { background: var(--sp-s2); }
.mc-live { border-color: var(--sp-red); background: linear-gradient(180deg, rgba(232, 36, 46, .12), var(--sp-s1) 60%); }
.mc-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.mc-top small { color: var(--sp-mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-top i { margin-inline-start: auto; font: 700 14px/1 var(--sp-num); font-style: normal; color: var(--sp-yel); }
.mc-tm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mc-tm b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.mc-tm em { margin-inline-start: auto; font: 700 20px/1 var(--sp-num); font-style: normal; color: #fff; }
.mc-ev { display: flex; align-items: center; gap: 10px; min-height: 68px; }
.mc-ev .i { width: 28px; height: 28px; color: var(--sp-red2); }
.mc-ev b { font-size: 15px; line-height: 1.45; color: #fff; }
.mc-f { display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px solid var(--sp-line); font-size: 12.5px; color: var(--sp-mu); }
.mc-f .i { width: 15px; height: 15px; }

/* 频道 */
.tvgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tvc { display: flex; flex-direction: column; background: var(--sp-s1); transition: background .2s; min-width: 0; }
.tvc:hover { background: var(--sp-s2); }
.tvc-l { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 8; padding: 12px; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .2), transparent 55%), var(--c); overflow: hidden; }
.tvc-l img { max-width: 70%; max-height: 70%; object-fit: contain; }
.tvc-l b { font-size: clamp(16px, 2vw, 22px); font-weight: 800; line-height: 1.15; text-align: center; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.tvc-l i { position: absolute; top: 8px; inset-inline-end: 8px; padding: 2px 6px; background: rgba(0, 0, 0, .45); font: 700 12px/1.2 var(--sp-num); font-style: normal; color: #fff; }
.tvc-b { display: flex; flex-direction: column; padding: 10px 12px 12px; min-width: 0; }
.tvc-b small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sp-mu); }
.tvc-b small i { width: 7px; height: 7px; border-radius: 50%; background: var(--sp-red2); }
.tvc-b b { font-size: 15px; margin-top: 2px; color: #fff; }
.tvc-b span { font-size: 13px; color: #c3cae1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvc:hover .tvc-b b { color: var(--sp-red2); }
.rail.tvrail { grid-auto-columns: calc((100% - 4 * 12px) / 5); }
.tvwrap { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: start; }
.tvwrap > div { min-width: 0; }
.zap { background: var(--sp-s1); border-top: 3px solid var(--sp-red); }
.zap h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px 8px; font-size: 15.5px; color: #fff; }
.zap h3 .i { color: var(--sp-red2); }
.zap ol { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--sp-s3) transparent; }
.zap a { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-inline-start: 3px solid transparent; }
.zap a:hover { background: var(--sp-s2); }
.zap a.cur { background: var(--sp-s2); border-color: var(--sp-red); }
.zap a > i { font: 700 15px/1 var(--sp-num); font-style: normal; color: var(--sp-mu2); width: 24px; }
.zap a.cur > i { color: var(--sp-red2); }
.zap span { display: flex; flex-direction: column; min-width: 0; }
.zap b { font-size: 14px; color: #fff; }
.zap small { font-size: 12px; color: var(--sp-mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 首页「正在直播」区块 */
.sp-home { margin: 18px 0; padding: 14px 16px 16px; background: var(--sp-bg); border-top: 4px solid var(--sp-red); }

@media (max-width: 1100px) {
  .tvgrid { grid-template-columns: repeat(3, 1fr); }
  .rail.tvrail { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
}
@media (max-width: 960px) {
  .sp-grid, .tvwrap, .wgrid { grid-template-columns: 1fr; }
  .sp-side { position: static; grid-template-columns: 1fr 1fr; }
  .zap ol { max-height: 300px; }
}
@media (max-width: 720px) {
  .sp-head h1 { font-size: 23px; }
  .sp-bar .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sp-bar .seg button { flex: none; }
  .sp-kinds a { height: 36px; padding: 0 11px; font-size: 13px; }
  .sp-side { grid-template-columns: 1fr; }
  .fx { grid-template-columns: 48px 1fr 58px 1fr; gap: 6px; padding: 8px; min-height: 62px; }
  .fx-n, .fx-go { display: none; }
  .fx-h, .fx-a { flex-direction: column; gap: 4px; text-align: center; }
  .fx-h { justify-content: center; flex-direction: column-reverse; }
  .fx-h b, .fx-a b { font-size: 12.5px; max-width: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
  .fx-ev { grid-column: span 3; }
  .crest { width: 26px; height: 26px; font-size: 9px; }
  .fx-s { height: 32px; font-size: 18px; }
  .fx-t b { font-size: 15px; }
  .sp-theater { padding: 12px 0 18px; }
  .sb-row { gap: 8px; padding: 14px 10px 16px; }
  .sb-h, .sb-a { flex-direction: column; gap: 8px; text-align: center; }
  .sb-h b, .sb-a b { font-size: 15px; }
  .crest-xl { width: 54px; height: 54px; font-size: 14px; }
  .sb-s { font-size: 32px; padding: 4px 12px; gap: 8px; }
  .sb-k { font-size: 26px; padding: 4px 12px; }
  .sb-ev b { font-size: 19px; }
  .spx .scr-play > span { width: 68px; height: 68px; }
  .nowbar .sp-btn span { display: none; }
  .nowbar .gap { display: none; }
  .nb-t { width: calc(100% - 110px); }
  .srv-g > b { width: 100%; }
  .srv-g button { flex: 1 1 140px; justify-content: center; }
  .tvgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rail.tvrail { grid-auto-columns: 46%; }
  .rail.mcs { grid-auto-columns: 230px; }
  .winfo h1 { font-size: 19px; }
  .spx .sp-facts div { flex-direction: column; gap: 0; }
  .spx .sp-facts dt { width: auto; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .spx .dot, .nb-k i { animation: none; }
}

/* 体育 SEO（docs/27 第 8 节）：日期条、结果、各国时间、联赛链接 */
.sp-days { margin-top: 10px; }
.spx .sp-final dd b { padding: 0 8px; font: 600 22px/1 var(--fn, sans-serif); color: var(--sp-red2); }
.spx .sp-h3 { margin: 18px 0 6px; font-size: 17px; }
.spx .sp-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 18px; max-width: none; }
.spx .sp-zones dt { width: auto; flex: 1; }
.lg-h h2 a:hover { color: var(--sp-red2); }
.sp-sec > .mini-fx { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
