/* =====================================================================
   体育（docs/27）页面样式：今日赛事、比赛直播、24 小时频道（第十九版 سيما كلوب）。
   和整站一样：舞台上是球场背景的记分牌 / 播放器，内容流里是浅色的比赛行（时间 · 主队 · 比分 · 客队 · 线路数 · ▶）。
   只在体育页面和首页「في الملاعب الآن」加载。
   ===================================================================== */
.spx .dot, .stage .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; flex: none; vertical-align: middle; }
.spx .st-live { color: var(--live) !important; font-style: normal; }
.lg[hidden], .fx[hidden], .tvc[hidden] { display: none !important; }
.sp-main { min-width: 0; }

/* ---------- 比赛行 ---------- */
.fxs { display: grid; }
.fx { display: grid; grid-template-columns: 64px minmax(0, 1fr) 74px minmax(0, 1fr) 78px 34px; align-items: center; gap: 10px; padding: 10px; margin: 0 -10px; border-radius: 12px; border-bottom: 1px solid var(--line); position: relative; }
.fx:hover { background: var(--card); box-shadow: 0 6px 24px -16px rgba(16, 20, 24, .4); border-bottom-color: transparent; }
.fx:hover::before { content: ""; position: absolute; right: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--hot); }
.fx-t { display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.fx-t b { font: 20px/1.1 var(--d); color: var(--ink); }
.fx-t i { font-style: normal; font-size: 11.5px; color: var(--mute); font-weight: 600; }
.fx-live .fx-t b { color: var(--live); font: 700 15px/1.2 var(--f); }
.fx-ended .fx-t b { font: 600 13px/1.2 var(--f); color: var(--mute); }
.fx-h, .fx-a { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fx-h { justify-content: flex-end; text-align: left; }
.fx-h b, .fx-a b { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-s { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); direction: ltr; }
.fx-s b { font: 20px/1 var(--d); color: var(--ink); }
.fx-s i { font-style: normal; color: var(--mute); font-size: 12.5px; }
.fx-live .fx-s { background: #ffe4e9; border-color: #fecdd6; }
.fx-live .fx-s b { color: var(--live); }
.fx-ev { grid-column: span 3; display: flex; align-items: center; gap: 10px; min-width: 0; }
.fx-ev .i { color: var(--hot); width: 22px; height: 22px; }
.fx-ev b { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-n { font-size: 12px; color: var(--mute); text-align: center; line-height: 1.4; }
.fx-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--hot); }
.fx-go .i { width: 15px; height: 15px; }
.fx:hover .fx-go, .fx-live .fx-go { background: var(--hot); border-color: var(--hot); color: #fff; }
.fx-ended { opacity: .72; }
.crest { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--c, #445); color: #fff; font: 700 10px/1 var(--f); letter-spacing: .3px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.crest-img { background: transparent; box-shadow: none; border-radius: 0; }
.crest-img img { width: 100%; height: 100%; object-fit: contain; }
.crest-xl { width: 70px; height: 70px; font-size: 16px; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25); }

/* ---------- 舞台：球场 + 记分牌 ---------- */
.st-pitch { background: repeating-linear-gradient(90deg, #0f3b2a 0 60px, #11432f 60px 120px); }
.st-pitch::after { background: radial-gradient(circle at 50% 36%, transparent 0 90px, rgba(255, 255, 255, .12) 91px 93px, transparent 94px), linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, .12) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(180deg, rgba(16, 20, 24, 0) 30%, rgba(16, 20, 24, .9) 75%); }
.st-score .st-k, .st-score .st-o, .st-score .st-t { text-align: center; justify-content: center; }
.st-score .st-o { margin-inline: auto; }
.st-score .st-a { justify-content: center; }
.sc { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; margin: 18px 0 6px; }
.sc > span { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.sc > span b { font-size: 17px; overflow-wrap: anywhere; }
.sc strong { display: flex; align-items: center; gap: 10px; font: 54px/1 var(--d); }
.sc strong i { font-style: normal; opacity: .5; }
.sc .sc-k { font-size: 44px; }
.sc-st { margin: 8px 0 0; text-align: center; font-weight: 700; color: #cfd5da; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; }
.sc-live { color: #ff8da3; }
/* 比赛页：舞台上面播放器，下面记分牌 */
.stage-pl.stage-sc { justify-content: flex-start; }
.stage-pl .st-score { position: relative; inset: auto; padding: 22px 26px; }
.stage-pl .st-score + .st-bg, .stage-pl .st-pitch { position: absolute; top: auto; bottom: 0; height: 60%; }
.stage-pl.stage-sc .scr { flex: none; }

/* ---------- 体育播放器（sports.js：点 ▶ 才加载 iframe / hls） ---------- */
.scr-football { background: repeating-linear-gradient(90deg, #0e3b22 0 9%, #11452a 9% 18%); }
.scr.playing .scr-cover { display: none; }
.scr:not(.playing) video { visibility: hidden; }
.scr-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.45); }
.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; color: #fff; background: rgba(0, 0, 0, .35); }
.scr-wait small { font-weight: 700; color: #d6dbe0; }
.scr-wait b { font: clamp(38px, 6vw, 72px)/1 var(--d); direction: ltr; }
.scr-wait b.scr-nos { font: 700 21px/1.4 var(--f); }
.scr-wait span { font-size: 14px; color: #c3cad1; }
.scr-wait a { color: var(--hot2); }
.scr-wait .btn { margin-top: 8px; }
.scr-logo { position: absolute; top: 16%; left: 0; right: 0; text-align: center; font: 700 clamp(22px, 4vw, 40px)/1.2 var(--f); color: rgba(255, 255, 255, .85); }
.scr-tv { background: radial-gradient(circle at 50% 40%, #2b3a4a, #05070a 75%); }

/* ---------- 内容流 ---------- */
.sp-final { grid-column: 1 / -1; background: #fff1ec !important; }
.sp-final dd b { font: 22px/1 var(--d); margin: 0 6px; }
.row-ch { width: 46px; height: 46px; border-radius: 12px; background: var(--c, var(--ink)); font: 700 13px var(--f); }
.row-ch img { object-fit: contain; padding: 6px; background: #fff; }
.tvc.on { background: var(--card); }
.tvc.on::before { content: ""; position: absolute; right: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--hot); }

@media (max-width: 999px) {
  .stage-sc:not(.stage-pl) { height: auto; min-height: 380px; }
  .stage-sc:not(.stage-pl) .st-in { position: relative; padding-top: 70px; }
}
@media (max-width: 640px) {
  .fx { grid-template-columns: 52px minmax(0, 1fr) 60px minmax(0, 1fr) 26px; gap: 6px; }
  .fx-n { display: none; }
  .fx-go { width: 26px; height: 26px; }
  .fx-h b, .fx-a b { font-size: 13.5px; }
  .fx-h .crest, .fx-a .crest { display: none; }
  .fx-ev { grid-column: span 3; }
  .sc strong { font-size: 40px; }
  .crest-xl { width: 54px; height: 54px; }
}
