/* =====================================================================
   体育 / 电视台页面样式（第二十一版 أنمي ليك「漫画格」）：
   比赛行 .fx（时间 · 主队 · 比分 · 客队 · 线路数 · ▶）放在联赛格 .lg 里；比赛页顶部是网点底的「VS」对决板；
   首页 / 频道页的比赛小格 .mt；频道行 .tvc（台标方块 + 名称 +「على الهواء」）。变量、按钮、放映格在 style.css
   ===================================================================== */
.lg[hidden], .fx[hidden], .tvc[hidden] { display: none !important; }
.sp-main { min-width: 0; margin-bottom: 30px; }
.spx .seg-ms { margin: 0 0 18px; }
.spx .seg-ms small { font: 400 15px/1 var(--fd); opacity: .8; }
.dtabs-a { margin-bottom: 16px; }

/* ---------- 队徽 ---------- */
.crest { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border: var(--b2); background: var(--c, #333); color: #fff; font: 800 10.5px/1 var(--fb); letter-spacing: .2px; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%); padding-bottom: 4px; }
.crest-img { background: #fff; clip-path: none; border-radius: 50%; padding: 2px; }
.crest-img img { width: 100%; height: 100%; object-fit: contain; }
.crest-xl { width: 84px; height: 84px; font-size: 22px; border-width: 3px; padding-bottom: 12px; }
.crest-xl.crest-img { padding: 6px; }

/* ---------- 联赛格 + 比赛行 ---------- */
.lg { margin: 0 0 22px; border: var(--b); background: var(--white); box-shadow: var(--sh); }
.lg-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 0 0 0 0; border-bottom: var(--b); background: var(--paper2); }
.lg-h > .i { width: 40px; height: 40px; padding: 9px; background: var(--red); color: #fff; }
.lg-h h2 { font-size: 20px; padding-top: 4px; }
.lg-h small { color: var(--gray); font-size: 12.5px; font-weight: 700; }
.fx { display: grid; grid-template-columns: 70px minmax(0, 1fr) 82px minmax(0, 1fr) 96px 40px; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px dashed #bbb; }
.lg-h + .fx, .koma-h + .fx { border-top: 0; }
.fx:hover { background: var(--yel); }
.fx-tm { display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.fx-tm b { font: 400 19px/1.2 var(--fd); font-weight: 400; }
.fx-tm i { font-style: normal; font-size: 11px; color: var(--gray); font-weight: 700; }
.fx-tm .onair { color: #fff; font-size: 11px; padding: 0 6px; }
.fx-live .fx-tm b { color: var(--red); }
.fx-ended .fx-tm b { font-size: 15px; color: var(--gray); }
.fx-home, .fx-away { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fx-home { justify-content: flex-end; }
.fx-home b, .fx-away b { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-sc { display: flex; align-items: center; justify-content: center; gap: 4px; height: 38px; border: var(--b2); background: var(--white); font: 400 20px/1 var(--fd); }
.fx-sc b { font-weight: 400; min-width: 18px; text-align: center; }
.fx-sc i { font-style: normal; color: var(--gray); font-size: 15px; }
.fx-live .fx-sc { background: var(--ink); color: #fff; box-shadow: 2px 2px 0 var(--red); }
.fx-ev { grid-column: 2 / 5; display: flex; align-items: center; gap: 8px; min-width: 0; }
.fx-ev b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-ln { font-size: 12px; color: var(--gray); font-weight: 700; text-align: center; line-height: 1.3; }
.fx-pl { width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.fx-pl .i { width: 15px; height: 15px; }
.fx-live .fx-pl { background: var(--red); }
.koma > .fx { margin: 0 -8px; }

/* ---------- 首页 / 抽屉 的比赛小格 ---------- */
.mts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mt { display: flex; flex-direction: column; border: var(--b2); background: var(--white); box-shadow: var(--sh2); min-width: 0; }
.mt:hover { box-shadow: 4px 4px 0 var(--red); }
.mt-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 10px; background: var(--ink); color: #fff; font-size: 12px; }
.mt-top small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.mt-top i { font-style: normal; flex: none; font-weight: 700; }
.mt-top .onair { padding: 0 6px; font-size: 12px; }
.mt-r { display: flex; align-items: center; gap: 8px; padding: 7px 10px 0; min-width: 0; }
.mt-r b { flex: 1; min-width: 0; font-weight: 800; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-r em { font: 400 20px/1 var(--fd); font-style: normal; }
.mt-r .crest { width: 26px; height: 26px; font-size: 9px; }
.mt-f { display: flex; align-items: center; gap: 6px; margin-top: auto; padding: 8px 10px; font-size: 11.5px; color: var(--gray); font-weight: 700; }
.mt-f .i { width: 15px; height: 15px; }
.mt-f .gap { flex: 1; }
.mt-live { border-color: var(--red); }

/* ---------- 「热格」：正在直播 ---------- */
.hot-m { margin: 0 0 22px; border: var(--b); background: var(--white); box-shadow: 6px 6px 0 var(--red); }
.hot-h { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 14px; border-bottom: var(--b); background: var(--paper2); }
.hot-h b { font: 400 19px/1.3 var(--fd); }
.hot-h small { color: var(--gray); font-weight: 600; }
.hot-h .onair { margin-inline-start: auto; }
.hot-b { display: block; }
.hot-f { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: var(--b); font-weight: 700; color: var(--gray); }

/* ---------- 「VS」对决板 ---------- */
.vs { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px 18px; padding: 24px 20px 16px; overflow: hidden;
  background: repeating-conic-gradient(from 0deg at 50% 46%, #fff 0 5deg, #f1ede0 5deg 10deg); }
.vs::before { content: ""; position: absolute; inset: 0; background: var(--tone); opacity: .5; pointer-events: none; }
.vs-t { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; min-width: 0; }
.vs-t b { max-width: 100%; padding: 2px 12px; background: var(--white); border: var(--b2); font: 400 20px/1.4 var(--fd); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-x { position: relative; display: flex; align-items: center; gap: 8px; padding: 14px 26px; background: var(--yel); border: var(--b); font: 400 42px/1 var(--fd); font-weight: 400;
  clip-path: polygon(50% 0, 62% 14%, 82% 4%, 80% 26%, 100% 30%, 86% 50%, 100% 70%, 80% 74%, 82% 96%, 62% 86%, 50% 100%, 38% 86%, 18% 96%, 20% 74%, 0 70%, 14% 50%, 0 30%, 20% 26%, 18% 4%, 38% 14%); min-width: 150px; justify-content: center; min-height: 110px; }
.vs-x b { font-weight: 400; }
.vs-x i { font-style: normal; font-size: 28px; }
.vs-k { font-size: 30px; }
.vs-ev { position: relative; grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; }
.vs-ev b { font: 400 26px/1.4 var(--fd); text-align: center; }
.vs-ev .i { width: 34px; height: 34px; }
.vs-s { position: relative; grid-column: 1 / -1; margin: 0; text-align: center; font-weight: 800; }
.vs-s > span { display: inline-block; padding: 2px 14px; background: var(--white); border: var(--b2); }
.vs-s > .onair { background: var(--red); color: #fff; border: var(--b2); padding: 2px 14px; font: 700 14px/1.6 var(--fb); }
.match-h { margin: 0 0 22px; border: var(--b); background: var(--white); box-shadow: var(--sh); }
.match-lg { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 8px 14px; border-bottom: var(--b); background: var(--paper2); }
.match-lg a, .match-lg > span { font: 400 19px/1.3 var(--fd); }
.match-lg a { border-bottom: 2px solid var(--red); }
.match-lg small { color: var(--gray); font-weight: 600; }
.match-lg .onair { margin-inline-start: auto; }
.match-h .vs { border-bottom: var(--b); }
.match-h h1 { padding: 14px 18px 0; font-size: 28px; }
.match-h .note { padding: 0 18px 12px; margin: 4px 0 0; }

/* ---------- 比赛 / 频道播放器 ---------- */
.scr-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.scr-wait { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; color: #fff;
  background: radial-gradient(rgba(255, 255, 255, .1) 1.2px, transparent 1.6px) 0 0 / 7px 7px; }
.scr-wait small { padding: 1px 12px; background: var(--yel); color: var(--ink); font-weight: 800; }
.scr-wait b[data-cd] { font: 400 64px/1.1 var(--fd); letter-spacing: 2px; direction: ltr; color: #fff; text-shadow: 4px 4px 0 var(--red); }
.scr-wait span { color: #ddd; font-size: 14px; }
.scr-wait span a { color: var(--yel); }
.scr-nos { padding: 6px 18px 3px; background: #fff; color: var(--ink); border: var(--b); font: 400 22px/1.4 var(--fd); }
.scr.playing .scr-cover { display: none; }
.scr-logo { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; padding: 2px 10px; background: rgba(0, 0, 0, .6); border: 2px solid #fff; color: #fff; font: 700 12px/1.6 var(--fb); }
.scr.playing .scr-logo { display: none; }
body.sp-dim::before { content: ""; position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .9); }
body.sp-dim .theater { position: relative; z-index: 46; }
[data-share].done { background: var(--yel); color: var(--ink); }
.zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.zones span { display: flex; flex-direction: column; align-items: center; padding: 8px; border: var(--b2); background: var(--paper2); }
.zones small { font-size: 12px; font-weight: 700; color: var(--gray); }
.zones b { font: 400 24px/1.2 var(--fd); }

/* ---------- 频道行 ---------- */
.tvl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tvc { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border: var(--b2); background: var(--white); }
.tvc:hover { background: var(--yel); }
.tvc.on { background: var(--ink); color: #fff; }
.tvc.on small { color: #bbb; }
.tvc-lg { flex: none; width: 52px; height: 40px; display: grid; place-items: center; border: var(--b2); background: var(--c, #333); color: #fff; font: 800 12px/1 var(--fb); overflow: hidden; }
.tvc-img { background: #fff; padding: 3px; }
.tvc-lg img { width: 100%; height: 100%; object-fit: contain; }
.tvc-xl { width: 76px; height: 58px; font-size: 16px; border-color: #fff; }
.tvc-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tvc-b b { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvc-b small { color: var(--gray); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvc .onair { flex: none; font-size: 11.5px; padding: 0 7px; }
.tvc .onair::before { width: 6px; height: 6px; }
.tvc-s .tvc-lg { width: 40px; height: 32px; }

@media (max-width: 1100px) {
  .mts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tvl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .fx { grid-template-columns: 52px minmax(0, 1fr) 64px minmax(0, 1fr) 30px; gap: 6px; padding: 9px 8px; }
  .fx-ln { display: none; }
  .fx-home, .fx-away { flex-direction: column; gap: 4px; }
  .fx-home { flex-direction: column-reverse; }
  .fx-home b, .fx-away b { font-size: 12px; max-width: 100%; text-align: center; }
  .fx-sc { font-size: 17px; height: 34px; }
  .fx-pl { width: 30px; height: 30px; }
  .fx-ev { grid-column: 2 / 5; }
  .mts { grid-template-columns: 1fr; }
  .tvl { grid-template-columns: 1fr; }
  .vs { gap: 10px; padding: 18px 10px 12px; }
  .vs-t b { font-size: 15px; padding: 2px 8px; }
  .crest-xl { width: 60px; height: 60px; font-size: 16px; }
  .vs-x { min-width: 104px; min-height: 80px; padding: 10px 16px; font-size: 30px; }
  .vs-k { font-size: 22px; }
  .match-h h1 { font-size: 22px; padding: 12px 12px 0; }
  .match-h .note { padding: 0 12px 10px; }
  .scr-wait b[data-cd] { font-size: 40px; }
  .zones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 861px) { .spx .stk { flex-wrap: wrap; overflow: visible; } }
