/* =====================================================================
   体育 / 电视台页面样式（第二十七版 موفيز لاند · 「البث」电视节目单风格）：
   节目单行 .fx（时间格 · 主队 · 比分 · 客队 · 线路数 · ▶）、LED 点阵记分牌 .led、「على الهواء」大块 .onair、
   小卡 .mcard、直播「监视器」.monitors、国家预设键 .presets、倒计时屏 .scr-wait、各国时间 .zones。
   频道按键 .tvc、老电视机 .crt、录像机按键 .vcr 的基础样式在 style.css
   ===================================================================== */
.lg[hidden], .fx[hidden], .tvc[hidden] { display: none !important; }
.sp-main { min-width: 0; margin: 6px 0 10px; }
.arena .knobs-days { margin-bottom: 8px; }

/* ---------- 节目单分组 + 行 ---------- */
.listing { margin: 0 0 16px; padding: 4px 16px 6px; border-radius: 16px; border: 1px solid var(--line); background: #0f1127; }
.bay.listing { padding-top: 16px; }
.listing-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 0 10px; border-bottom: 1px solid var(--line); }
.listing-h .i { color: var(--cyan); width: 22px; height: 22px; }
.listing-h h2 { font: 600 25px/1.2 var(--fd); }
.listing-h small { color: var(--mute); font-size: 13px; }
.listing-h a { margin-inline-start: auto; color: var(--cyan); font-size: 13.5px; font-weight: 600; }
.fx { display: grid; grid-template-columns: 74px minmax(0, 1fr) 76px minmax(0, 1fr) 96px 36px; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.fx:last-child { border-bottom: 0; }
.fx:hover { background: linear-gradient(90deg, transparent, rgba(46, 230, 255, .05), transparent); }
.fx-when { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 0; border-radius: 6px; background: #05060f; border: 1px solid #23264c; line-height: 1.15; }
.fx-when b { font: 600 20px/1.1 var(--fd); color: var(--grn); text-shadow: 0 0 6px rgba(124, 255, 107, .6); }
.fx-when small { font-size: 11px; color: var(--mute); }
.fx-when .rec { font-size: 14px; }
.fx-live .fx-when { border-color: rgba(255, 77, 109, .6); }
.fx-live .fx-when b { color: #ffd0d9; text-shadow: 0 0 6px var(--red); }
.fx-ended .fx-when b { color: var(--mute); text-shadow: none; }
.fx-tm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fx-home { justify-content: flex-end; }
.fx-tm b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-sc { display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border-radius: 8px; background: #05060f; border: 1px solid #23264c; }
.fx-sc b { font: 700 22px/1 var(--fd); color: var(--yel); text-shadow: 0 0 8px rgba(255, 210, 63, .5); }
.fx-sc i { font: 600 15px/1 var(--fd); font-style: normal; color: var(--mute); }
.fx-live .fx-sc { border-color: rgba(255, 77, 109, .55); box-shadow: 0 0 12px -4px var(--red); }
.fx-ev { grid-column: span 3; display: flex; align-items: center; gap: 10px; min-width: 0; }
.fx-ev .i { color: var(--cyan); width: 22px; height: 22px; }
.fx-ev b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-lk { font-size: 12px; color: var(--mute); text-align: center; line-height: 1.3; }
.fx-live .fx-lk { color: var(--ink2); }
.fx-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); color: var(--cyan); }
.fx:hover .fx-go { background: var(--mag); border-color: var(--mag); color: #1d0313; }
.fx-go .i { width: 14px; height: 14px; }
[dir="rtl"] .fx-go .i { transform: scaleX(-1); }
.crest { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c, #444); color: #fff; font: 700 12px/1 var(--fb); letter-spacing: -.3px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18); overflow: hidden; }
.crest-img { background: #eef0fb; padding: 3px; }
.crest img { width: 100%; height: 100%; object-fit: contain; }
.crest-xl { width: 68px; height: 68px; font-size: 20px; }

/* ---------- LED 记分牌 ---------- */
.led { padding: 18px 16px 14px; border-radius: 14px; background: radial-gradient(ellipse at center, #111430, #05060f 70%); border: 1px solid #262a55; box-shadow: inset 0 0 30px rgba(0, 0, 0, .8); }
.led-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.led-t { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; }
.led-t b { font-size: 16px; font-weight: 700; max-width: 100%; overflow-wrap: anywhere; }
.led-s { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px; border-radius: 10px; background: #020308; border: 1px solid #2a2e5e; font: 700 52px/1 var(--fd); color: var(--yel); text-shadow: 0 0 10px rgba(255, 210, 63, .7), 0 0 26px rgba(255, 210, 63, .35); direction: ltr; }
.led-s i { font-style: normal; color: var(--mute); text-shadow: none; font-size: 34px; }
.led-k { font-size: 40px; color: var(--grn); text-shadow: 0 0 10px rgba(124, 255, 107, .7); }
.led-ev { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; }
.led-ev .i { width: 30px; height: 30px; color: var(--cyan); }
.led-ev b { font: 700 28px/1.2 var(--fd); text-align: center; }
.led-st { margin: 12px 0 0; text-align: center; color: var(--ink2); font-size: 14px; }
.led-live { color: #ffd0d9; }
.led-live .rec { font-size: 15px; }

/* ---------- 「على الهواء」大块 + 小卡 ---------- */
.onair { margin: 0 0 16px; padding: 14px; border-radius: 18px; border: 1px solid #47224f; background: linear-gradient(160deg, #1d1236, #0f1127 70%); box-shadow: 0 0 30px -12px rgba(255, 62, 165, .5); }
.onair-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 12px; }
.onair-h .i { color: var(--cyan); width: 22px; height: 22px; }
.onair-h b { font: 600 22px/1.2 var(--fd); }
.onair-h small { color: var(--mute); font-size: 13px; }
.onair-h .lamp { margin-inline-start: auto; }
.onair-b { display: block; }
.onair-b:hover .led { border-color: var(--mag); }
.onair-f { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.onair-n { color: var(--mute); font-size: 13.5px; }
.mcard { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); min-width: 0; }
.mcard:hover { border-color: var(--cyan); }
.mc-top { display: flex; align-items: center; gap: 8px; }
.mc-top small { flex: 1; min-width: 0; color: var(--mute); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-top i { font: 600 17px/1 var(--fd); font-style: normal; color: var(--grn); }
.mc-top .rec { color: var(--red); }
.mc-tm { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mc-tm b { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-tm em { font: 700 22px/1 var(--fd); font-style: normal; color: var(--yel); }
.mc-ev { display: flex; align-items: center; gap: 8px; }
.mc-ev b { font-size: 14.5px; }
.mc-f { display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--mute); font-size: 12px; }
.mc-f .gap { flex: 1; }

/* ---------- 直播监视器、国家预设键 ---------- */
.monitors { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 6px; scrollbar-width: none; }
.monitors::-webkit-scrollbar { display: none; }
.monitor { flex: none; width: 132px; display: flex; flex-direction: column; gap: 6px; }
.monitor-s { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: 84px; border-radius: 14px / 18px; background: radial-gradient(ellipse, #1a1d42, #05060f 75%); box-shadow: 0 0 0 4px #241e3e, 0 0 0 5px #44397a; }
.monitor-s .rec { position: absolute; top: 6px; right: 8px; font-size: 13px; }
.monitor-s > .i { width: 34px; height: 34px; color: var(--cyan); }
.monitor-t { font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.monitor:hover .monitor-s { box-shadow: 0 0 0 4px #241e3e, 0 0 0 5px var(--mag), 0 0 18px rgba(255, 62, 165, .4); }
.presets { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 8px; scrollbar-width: none; }
.presets::-webkit-scrollbar { display: none; }
.presets a { flex: none; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 16px 8px 10px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg3); box-shadow: 0 3px 0 #07081a; }
.preset-i { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #05060f; font-size: 22px; color: var(--cyan); }
.presets b { font-size: 14.5px; }
.presets small { color: var(--mute); font-size: 12px; }
.presets a.on { border-color: var(--cyan); background: #0e2a35; transform: translateY(2px); box-shadow: 0 1px 0 #07081a, 0 0 14px rgba(46, 230, 255, .3); }
.bay-tv .tvgrid { margin-top: 2px; }

/* ---------- 比赛 / 频道页的电视机 ---------- */
.crt-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 4px 10px; }
.crt-top .i { width: 22px; height: 22px; color: var(--cyan); }
.crt-top b { font: 600 24px/1.2 var(--fd); }
.crt-top small { color: var(--mute); font-size: 13px; }
.crt-top .lamp { margin-inline-start: auto; }
.crt-logo { flex: none; display: grid; place-items: center; width: 48px; height: 36px; border-radius: 8px; overflow: hidden; background: var(--c, #333); color: #fff; font: 700 16px/1 var(--fd); }
.crt-logo.has-img { background: #f2f3fa; padding: 3px; }
.crt-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.crt-sp > .led { margin-top: 12px; }
#sp-player { display: grid; place-items: center; overflow: hidden; }
#sp-player > * { grid-area: 1 / 1; }
#sp-player iframe, #sp-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; z-index: 2; }
#sp-player video { display: none; }
#sp-player.playing video { display: block; }
.scr-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.scr-logo { position: absolute; top: 16px; left: 18px; z-index: 1; font: 600 20px/1 var(--fd); letter-spacing: 2px; color: rgba(255, 255, 255, .5); }
.scr-tv { background: radial-gradient(ellipse, #15183a, #000 75%); }
.scr-wait { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; text-align: center; max-width: 92%; }
.scr-wait small { color: var(--ink2); font-size: 14px; }
.scr-wait b[data-cd] { font: 700 64px/1 var(--fd); color: var(--grn); text-shadow: 0 0 12px rgba(124, 255, 107, .7); letter-spacing: 3px; }
.scr-wait span { color: var(--ink2); font-size: 14px; }
.scr-wait a { color: var(--cyan); text-decoration: underline; }
.scr-wait .vbtn { margin-top: 8px; }
.scr-nos { font: 700 30px/1.2 var(--fd); color: #fff; }
#sp-player.failed .scr-play { display: none; }
body.sp-dim::before { content: ""; position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .9); }
body.sp-dim .crt { z-index: 71; }
[data-share].done { color: var(--grn); }
.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.zones span { display: flex; flex-direction: column; align-items: center; padding: 10px; border-radius: 10px; background: #05060f; border: 1px solid #23264c; }
.zones small { color: var(--mute); font-size: 12.5px; }
.zones b { font: 700 30px/1.1 var(--fd); color: var(--grn); text-shadow: 0 0 8px rgba(124, 255, 107, .55); }
.sp-final dd { font-size: 16px; }
.sp-final dd b { font: 700 22px/1 var(--fd); color: var(--yel); }

@media (max-width: 760px) {
  .listing { padding: 2px 10px 4px; }
  .fx { grid-template-columns: 56px minmax(0, 1fr) 58px minmax(0, 1fr); gap: 8px; }
  .fx-lk, .fx-go { display: none; }
  .fx-when b { font-size: 17px; }
  .fx-tm { flex-direction: column; gap: 4px; text-align: center; }
  .fx-home { flex-direction: column-reverse; justify-content: center; }
  .fx-tm b { font-size: 12.5px; max-width: 100%; white-space: normal; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
  .fx-sc b { font-size: 19px; }
  .led-s { font-size: 40px; padding: 4px 10px; }
  .led-k { font-size: 30px; }
  .crest-xl { width: 52px; height: 52px; }
  .led-t b { font-size: 14px; }
  .scr-wait b[data-cd] { font-size: 42px; }
  .monitor { width: 112px; }
  .monitor-s { height: 72px; }
}
