/* =====================================================================
   体育 / 电视台页面样式（第二十五版 موفز فور يو，「新粗野波普」）：
   联赛白框 + 比赛行（时间 · 主队 · 比分 · 客队 · 线路数 · ▶）、比赛卡、粗框记分牌、频道方块、各国时间、国家贴纸。
   变量（颜色、边框、投影）来自 style.css。
   ===================================================================== */
.spz > * + * { margin-top: 34px; }
.spz > .trail + * { margin-top: 14px; }
.sp-bar { display: flex; flex-direction: column; gap: 14px; }
.sp-bar > * { margin: 0; }
.sp-main { display: grid; gap: 22px; }
.sp-main .lg { padding: 18px 18px 10px; }
.lg-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; font: 900 19px/1.4 var(--fh); }
.lg-h small { font: 700 13.5px var(--fb); color: var(--mut); }
.lg-h a { margin-inline-start: auto; padding: 2px 12px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--y); font: 800 13.5px var(--fh); }
.lg-i { width: 38px; height: 38px; display: grid; place-items: center; border: var(--bd); border-radius: 11px; box-shadow: -2px 2px 0 var(--ink); }
.lg-i .ico { width: 22px; height: 22px; }
.lg-p { background: var(--p); } .lg-b { background: var(--b); color: #fff; } .lg-l { background: var(--l); } .lg-y { background: var(--y); } .lg-o { background: var(--o); }

/* 队徽 */
.tmk { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 10px; background: var(--c, #555); color: #fff; font: 800 10.5px/1 var(--fh); letter-spacing: -.3px; overflow: hidden; }
.tmk-img { background: #fff; padding: 2px; }
.tmk img { width: 100%; height: 100%; object-fit: contain; }
.tmk-xl { width: 76px; height: 76px; border-width: 3px; border-radius: 20px; font-size: 20px; box-shadow: var(--sh-s); }

/* 比赛行 */
.fx { display: grid; grid-template-columns: 78px minmax(0, 1fr) 76px minmax(0, 1fr) 108px 40px; align-items: center; gap: 10px; padding: 11px 8px; border-top: 2.5px dashed rgba(17, 17, 17, .3); }
.lg-h + .fx, .box-h + .fx { border-top: 0; }
.fx:hover { background: #fffaea; }
.fx-t { display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.fx-t b { font: 800 15px var(--fh); }
.fx-t i { font-style: normal; font-size: 12px; color: var(--mut); font-weight: 700; }
.fx-t .stk { font-size: 11px; padding: 0 8px; color: var(--ink); margin-top: 2px; }
.fx-min { color: #d4006a; }
.fx-h, .fx-a { display: flex; align-items: center; gap: 9px; min-width: 0; }
.fx-h { justify-content: flex-end; text-align: end; }
.fx-h b, .fx-a b { font: 800 15px/1.35 var(--fh); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-s { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 4px 6px; border: 2.5px solid var(--ink); border-radius: 10px; background: var(--y); font: 900 17px var(--fh); direction: ltr; }
.fx-s i { font-style: normal; font-size: 13px; }
.fx-upcoming .fx-s { background: #fff; }
.fx-live .fx-s { background: var(--p); }
.fx-ev { grid-column: 2 / 5; display: flex; align-items: center; gap: 9px; min-width: 0; }
.fx-ev b { font: 800 15px var(--fh); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-n { font-size: 12.5px; color: var(--mut); font-weight: 700; text-align: center; }
.fx-go { width: 38px; height: 38px; display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--y); box-shadow: -2px 2px 0 var(--ink); }
.fx-go .ico { width: 16px; height: 16px; }
.fx-ended .fx-go { background: #fff; }

/* 比赛卡 */
.mtc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.mtc { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #fff; border: var(--bd); border-radius: 18px; box-shadow: var(--sh); min-width: 0; transition: transform .1s, box-shadow .1s; }
.mtc:hover { transform: translate(1px, -2px) rotate(-.6deg); box-shadow: var(--sh-l); }
.mtc:active { transform: translate(-5px, 5px); box-shadow: none; }
.mtc-live { background: #fff0f7; }
.mtc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mtc-top small { font-weight: 800; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtc-top .stk { font-size: 12px; font-style: normal; }
.mtc-tm, .mtc-ev { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mtc-tm b, .mtc-ev b { flex: 1; font: 800 15.5px/1.4 var(--fh); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtc-tm em { font: 900 20px var(--fh); font-style: normal; min-width: 30px; text-align: center; }
.mtc-f { display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 2.5px dashed rgba(17, 17, 17, .3); font-size: 12.5px; font-weight: 700; color: var(--mut); }
.mtc-f .gap { flex: 1; }

/* 记分牌 */
.sbd { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px 22px; padding: 26px 24px 22px; background: var(--l); border: var(--bd); border-radius: 24px; box-shadow: var(--sh-l); }
.sbd-t { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; }
.sbd-t b { font: 900 clamp(16px, 2vw, 22px)/1.35 var(--fh); overflow-wrap: anywhere; }
.sbd-s { display: flex; align-items: center; gap: 12px; padding: 8px 22px; background: #fff; border: var(--bd); border-radius: 16px; box-shadow: var(--sh-s); font: 900 clamp(32px, 4vw, 48px)/1 var(--fh); }
.sbd-s i { font-style: normal; font-size: .6em; }
.sbd-k { font-size: clamp(24px, 3vw, 34px); }
.sbd-ev { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 12px; font: 900 22px var(--fh); text-align: center; }
.sbd-ev .ico { width: 36px; height: 36px; }
.sbd-st { grid-column: 1 / -1; text-align: center; }
.sbd-st .stk { font-size: 14px; }
.sbd[data-status=live] { background: var(--p); }
.sbd[data-status=ended] { background: var(--y); }

/* 比赛页头 / 频道页头 */
.mh h1 { font: 900 clamp(24px, 3.2vw, 38px)/1.3 var(--fh); margin-top: 10px; }
.mh .muted { font-weight: 700; margin-top: 4px; }
.mh-k { margin: 0; }
.mh-k .stk .ico { width: 15px; height: 15px; }
.mh-ch { display: flex; align-items: center; gap: 20px; }
.lede { margin-top: 18px; font-size: 16px; }
.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.zones span { display: flex; flex-direction: column; align-items: center; padding: 10px; background: #fff; border: var(--bd); border-radius: 14px; box-shadow: var(--sh-s); }
.zones span:nth-child(odd) { background: #fff7d6; }
.zones small { font-weight: 700; color: var(--mut); }
.zones b { font: 900 24px var(--fh); }

/* 体育播放器 */
.scr-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.scr-wait { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; color: #fff; background: radial-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .7)); }
.scr-wait small { padding: 2px 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 800; }
.scr-wait b[data-cd] { font: 900 clamp(36px, 6vw, 64px)/1 var(--fh); color: var(--y); -webkit-text-stroke: 2.5px var(--ink); paint-order: stroke fill; text-shadow: -4px 4px 0 var(--ink); direction: ltr; }
.scr-wait span { font-weight: 700; max-width: 520px; }
.scr-wait span a { color: var(--y); text-decoration: underline; }
.scr-nos { padding: 6px 16px; border: var(--bd); border-radius: 14px; background: var(--y); color: var(--ink); font: 900 19px var(--fh); box-shadow: var(--sh-s); }
.scr-logo { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 1; padding: 2px 12px; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: 800 14px var(--fh); }
.scr.playing .scr-logo { display: none; }
.scr.failed .scr-wait { z-index: 3; }
.scr-tv { background: #191712 repeating-linear-gradient(45deg, rgba(255, 210, 63, .06) 0 14px, transparent 14px 28px); }
body.sp-dim::before { content: ''; position: fixed; inset: 0; z-index: 45; background: rgba(17, 17, 17, .9); }
body.sp-dim .stage { position: relative; z-index: 46; }
body.sp-dim .mast { z-index: 40; }
.srv-list button[data-off] { opacity: .55; }
[data-share].done { background: var(--l); }
.ch-note { margin-top: 30px; font-weight: 600; }

/* 频道方块 */
.tvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.tvc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-width: 0; background: #fff; border: var(--bd); border-radius: 16px; box-shadow: var(--sh-s); transition: transform .1s, box-shadow .1s; }
.tvc:hover { transform: translate(1px, -2px); box-shadow: var(--sh); }
.tvc:active { transform: translate(-3px, 3px); box-shadow: none; }
.tvc.on { background: var(--y); }
.tvc-l { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 13px; background: var(--c, #333); color: #fff; font: 900 13px/1 var(--fh); overflow: hidden; }
.tvc-img { background: #fff; padding: 4px; }
.tvc-l img { width: 100%; height: 100%; object-fit: contain; }
.tvc-xl { width: 86px; height: 86px; border-width: 3px; border-radius: 22px; font-size: 20px; box-shadow: var(--sh); }
.tvc-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tvc-b b { font: 800 15px/1.4 var(--fh); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvc-b small { font-size: 12.5px; color: var(--mut); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvc-on { font-size: 11px; padding: 0 8px; }
.tvc-sm .tvc-l { width: 40px; height: 40px; }

/* 电视台国家贴纸 */
.ctry { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 10px; scrollbar-width: thin; }
.ctry a { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; background: #fff; border: var(--bd); border-radius: 16px; box-shadow: var(--sh-s); font: 800 15px var(--fh); }
.ctry a i { font-style: normal; font-size: 24px; line-height: 1; }
.ctry a i .ico { width: 24px; height: 24px; }
.ctry a small { padding: 0 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--y); font-size: 12px; }
.ctry a.on { background: var(--ink); color: var(--y); }
.ctry a.on small { color: var(--ink); }

@media (max-width: 760px) {
  .spz > * + * { margin-top: 28px; }
  .sp-main .lg { padding: 14px 10px 6px; }
  .fx { grid-template-columns: 54px minmax(0, 1fr) 62px minmax(0, 1fr); gap: 6px; padding: 10px 2px; }
  .fx-n, .fx-go { display: none; }
  .fx-h, .fx-a { flex-direction: column; gap: 4px; }
  .fx-h { align-items: center; text-align: center; flex-direction: column-reverse; }
  .fx-a { align-items: center; text-align: center; }
  .fx-h b, .fx-a b { font-size: 13px; max-width: 100%; }
  .fx-s { font-size: 15px; padding: 3px 4px; gap: 3px; }
  .fx-t b { font-size: 13px; }
  .tmk { width: 28px; height: 28px; }
  .tmk-xl { width: 58px; height: 58px; border-radius: 16px; }
  .mtc-grid { grid-template-columns: 1fr; gap: 14px; }
  .mtc-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; overflow-x: auto; margin: 0 -14px; padding: 4px 14px 12px; }
  .mtc { box-shadow: var(--sh-s); }
  .sbd { padding: 20px 12px 16px; gap: 10px; border-radius: 18px; box-shadow: var(--sh); }
  .sbd-s { padding: 6px 12px; }
  .mh-ch { gap: 14px; }
  .tvc-xl { width: 64px; height: 64px; border-radius: 16px; }
  .tvgrid { grid-template-columns: 1fr; gap: 12px; }
  .zones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
