/* BSF TV MAP fit + readability (2026-11-14 mapfit, same rules as Westfield).
   Map tiles: DTV number + colour + channel logo only. Source buttons: compact number tag, channel logo, teams/score kept.
   >900px: source columns either side of the map (10px gap). <=900px: map on top, source grid underneath. */
html,body{touch-action:manipulation}

/* ---------- number tag (shared) ---------- */
.ntag{position:absolute;top:0;left:0;z-index:3;display:flex;align-items:center;justify-content:center;
  min-width:22px;height:20px;padding:0 5px;border-radius:0 0 7px 0;background:var(--sc,#333);color:#fff;
  font:900 15px/1 var(--bd);letter-spacing:0;text-shadow:0 1px 1px rgba(0,0,0,.45);font-variant-numeric:tabular-nums;pointer-events:none}

/* ---------- on-map tiles ---------- */
.map.plan .tv{padding:0!important;overflow:hidden}
.map.plan .tv .ntag{min-width:0;height:auto;padding:1px 3px 2px;border-radius:0 0 5px 0;font-size:max(11px, calc(9px * var(--k,1)));box-shadow:0 0 0 1px rgba(0,0,0,.25)}
.map.plan .tv .lg.tl{position:absolute;left:8%;right:8%;top:42%;bottom:8%;width:auto;height:auto;padding:1px 2px;border-radius:3px}
.map.plan .tv.dtvc{background:var(--sc)!important;border-color:var(--sc)!important}
html[data-theme="light"] .map.plan .tv.dtvc{background:color-mix(in srgb,var(--sc) 85%,#fff)!important}
.map.plan .tv:not(.dtvc) i{max-width:94%;font-size:max(8px, calc(8.5px * var(--k,1)))!important;padding:1px 2px!important;line-height:1.05;white-space:normal!important}
.map.plan .tv .pw{z-index:4}

/* ---------- source buttons (side columns + grid) ---------- */
.src{position:relative}
.src .ntag{font-size:15px}
.src .srcch{display:flex;align-items:center;justify-content:center;min-height:24px;padding-left:22px}
.src .srcch .lg.sb{width:auto;max-width:100%;height:24px;margin:0;padding:2px 5px}
.src .srcch .lastk{font-size:10px;margin-left:3px}
.src .gsub{margin-top:3px}
.src .gsub .gl2.sm img{width:20px;height:20px}
.src .gsub span{font-size:12px}
.srcbar.srccol{width:136px;gap:8px;justify-content:center}
.srcbar.srccol .srchint{display:none}
.srcbar.srccol .src{min-height:var(--srch,58px);height:var(--srch,58px);padding:4px 6px;display:flex;flex-direction:column;justify-content:center;overflow:hidden;font-size:13px}
.srcbar.srccol .src .srcch .lg.sb{height:clamp(18px, calc(var(--srch,58px) * .36), 26px)}
.srcbar.srccol .src .gsub{margin-top:2px}
.maprow{gap:10px!important;justify-content:center}

/* ---------- <=900px (tablet portrait): map on top, sources in an even grid below ---------- */
@media (min-width:701px) and (max-width:900px){
  .tvwrap:not(.compact) .mapvp{width:100%}
  .tvwrap:not(.compact) .map.plan.crop{width:100%;height:auto}
  .tvwrap:not(.compact) .srcbar{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}
  .tvwrap:not(.compact) .srcbar>.src{min-height:62px;padding:6px;display:flex;flex-direction:column;justify-content:center}
  .tvwrap:not(.compact) .srcbar .srchint{grid-column:1/-1}
}

/* ---------- phone zone cards + phone source sheet ---------- */
.tvg .tvc{position:relative}
.tvg .ntag{position:static;margin-right:8px;border-radius:7px;height:24px;min-width:26px;font-size:16px}
@media (max-width:700px){
  .srcsheet .srcbar{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .srcsheet .srcbar>.src{min-height:60px;padding:6px 4px}
  .srcsheet .srcbar .srchint{grid-column:1/-1}
}
