/* turning a phone sideways must not let Safari/Android enlarge the text by itself */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
:root{
  --bg:#0a0e1a; --bg2:#0f1424; --panel:#141a2e; --panel2:#1a2138;
  --line:#222a45; --line2:#2c3658;
  --txt:#e8edf7; --muted:#8a94b3; --muted2:#7d88a9;
  --accent:#1fcf6d; --accent2:#16b35d; --live:#ff3b4e;
  --blue:#3d8bff; --purple:#9b6bff; --amber:#ffb52e; --red:#ff495f;
  --radius:16px; --shadow:0 10px 40px rgba(0,0,0,.45);
  --glow:0 0 0 1px rgba(31,207,109,.25), 0 8px 30px rgba(31,207,109,.12);
}
/* ── light theme (toggled by body.theme-light) ─────────────────────────────── */
body.theme-light{
  --bg:#f3f6fb; --bg2:#e7edf6; --panel:#ffffff; --panel2:#eef3fa;   /* crisper (was #dae2f0 — read washed-out) */
  --line:#c9d4e6; --line2:#b6c3da;
  --txt:#0e1524; --muted:#455073; --muted2:#5d6884;   /* muted2 was #6a7590 = 4.25:1, short of 4.5 */
  /* text-safe on white: the dark theme's bright green/blue/purple read at ~2:1 on a light panel
     (team names, batter names, "not out", the situation line) — these clear 4.5:1 */
  --accent:#0a8743; --accent2:#087a3c; --amber:#935700; --blue:#1d63d4; --purple:#6f3fd9;
  --shadow:0 8px 26px rgba(31,45,84,.13);
  --glow:0 0 0 1px rgba(18,180,93,.35), 0 8px 22px rgba(18,180,93,.14);
}
/* softer, multi-tone page wash — a hint of blue, lavender and mint so the canvas
   isn't a single flat grey-white */
body.theme-light{background:
  radial-gradient(1200px 700px at 82% -12%,#e6eefc 0%,transparent 60%),
  radial-gradient(1000px 640px at -8% 8%,#f0ebfc 0%,transparent 58%),var(--bg)}

/* ── light-theme surface polish ─────────────────────────────────────────────
   Pure-white cards on a near-white page read flat. Give them a faint cool tint,
   blue-tinted hairlines and a soft layered shadow so each surface lifts cleanly.
   Dark mode is untouched (these rules are all body.theme-light). */
body.theme-light{
  --line:#c9d4e6; --line2:#b6c3da;
  --shadow:0 8px 24px rgba(31,45,84,.12), 0 1px 3px rgba(31,45,84,.07);
}
body.theme-light .card{background:linear-gradient(180deg,#ffffff,#f4f8ff);border-color:#cfdaeb}
body.theme-light .lr-card{background:linear-gradient(180deg,#ffffff,#f3f8ff);border-color:#cfdaeb}
body.theme-light .lr-card:hover{border-color:#a9bcda}
/* players / scorecard cards stay crisp white so data reads sharply */
body.theme-light .onf-card,
body.theme-light .sc-card{background:linear-gradient(180deg,#ffffff,#f1f6fe);border-color:#cfdaeb}
/* centre match tiles use white→--bg2 by default; --bg2 is now the deep page canvas, which
   bled a grey/purple tint into them. Give them the same clean white as every other card. */
body.theme-light .mcard{background:linear-gradient(180deg,#ffffff,#f4f8ff);border-color:#cfdaeb}
body.theme-light .mcard:hover{border-color:#a9bcda}
body.theme-light .mcard.active{border-color:var(--accent)}
/* info / win-prob / projection strips get a faint blue wash to set them apart from
   the white data cards */
body.theme-light .info-strip,
body.theme-light .wp-strip,
body.theme-light .proj-rates{background:linear-gradient(180deg,#f4f8ff,#eaf1fc);border-color:#e1e8f5}
/* scorecard header row — a whisper of blue behind the column labels */
body.theme-light .sc-tbl .sc-h th{background:#f3f7fe}
/* the two-level tab strip pills sit on a barely-tinted track */
body.theme-light .dtab{background:linear-gradient(180deg,#ffffff,#f2f6fd)}
*{box-sizing:border-box;margin:0;padding:0}
/* a code we haven't resolved to a name yet — faintly shimmering */
/* While a name is still resolving, show a subtle shimmer skeleton instead of the raw code
   ("1J3"). The code text is hidden (transparent) and a soft loading bar sits in its place. */
.name-pending{color:transparent!important;font-style:normal;display:inline-block;min-width:56px;border-radius:6px;vertical-align:middle;
  background:linear-gradient(90deg,rgba(138,148,179,.13),rgba(138,148,179,.30),rgba(138,148,179,.13));background-size:200% 100%;animation:nameShimmer 1.25s ease-in-out infinite}
.name-pending::after{content:none}
@keyframes nameShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
/* Stable scroll model: html,body height:100% + overflow-x:hidden makes <body> the scroll
   container, so the iOS URL bar does NOT collapse on scroll and fixed elements (bottom nav)
   don't "dance". overflow-x:hidden also clips any sideways overflow. The real "scroll won't
   move" bug was a stuck chat drawer (fixed in JS), not this — so we keep this stable model. */
html,body{height:100%}
html,body{max-width:100%;overflow-x:hidden}

/* ── Consent / disclaimer gate ─────────────────────────────────────────────── */
html.consented .consent-gate{display:none}                 /* already agreed → never show */
html.consent-open,html.consent-open body{overflow:hidden}  /* lock scroll while the gate is up */
.consent-gate{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;
  padding:20px;background:radial-gradient(1000px 600px at 80% -10%,#16203a 0%,transparent 60%),#0a0e1a}
.consent-card{max-width:440px;width:100%;max-height:92vh;overflow-y:auto;-webkit-overflow-scrolling:touch;
  background:linear-gradient(180deg,#141b2e,#0e1424);border:1px solid #2a3450;border-radius:18px;
  padding:22px 20px;box-shadow:0 24px 60px rgba(0,0,0,.6);color:#c7d0e0;line-height:1.5}
.consent-logo{font-size:20px;font-weight:900;color:#e8eefc;margin-bottom:4px}
.consent-logo span{color:#2ed573}
.consent-card h2{font-size:17px;font-weight:800;color:#fff;margin:6px 0 12px}
.consent-card p{font-size:13.5px;margin:0 0 11px}
.consent-card b{color:#e8eefc}
.consent-btn{display:block;width:100%;margin:6px 0 10px;padding:14px;border:none;border-radius:12px;cursor:pointer;
  font-family:inherit;font-size:15px;font-weight:800;color:#06210f;
  background:linear-gradient(135deg,#2ed573,#22c1c3)}
.consent-btn:active{filter:brightness(.95)}
.consent-foot{text-align:center;font-size:11px;color:#7d8aa5;font-weight:600}
.consent-card a{color:var(--accent,#34d399);font-weight:700;text-decoration:none}
.consent-card a:hover{text-decoration:underline}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  background:radial-gradient(1200px 700px at 80% -10%,#16203a 0%,transparent 60%),
             radial-gradient(900px 600px at -10% 110%,#15233a 0%,transparent 55%),
             var(--bg);
  color:var(--txt); -webkit-font-smoothing:antialiased; line-height:1.45; min-height:100vh;
}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:rgba(255,255,255,.05);padding:1px 5px;border-radius:5px;font-size:.92em}
.wrap{max-width:1320px;margin:0 auto;padding:18px 20px 60px;zoom:1.04}   /* phone overrides zoom→1 in the ≤820px block */

/* Header */
/* Top app bar hidden to save vertical space (auto-refresh keeps running in the
   background; the elements stay in the DOM so nothing breaks). */
header.top{display:none}
/* ── slim sticky site nav: brand + real views + theme toggle ─────────────────── */
.site-nav{position:sticky;top:0;z-index:150;display:flex;align-items:center;gap:14px;
  padding:9px 20px;background:color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);
  border-bottom:1px solid var(--line)}
.nav-brand{display:flex;align-items:center;gap:9px;background:none;border:none;cursor:pointer;padding:0;font-family:inherit}
.nav-name{font-size:18px;font-weight:900;letter-spacing:-.4px;color:var(--txt)}
.nav-name span{color:var(--accent)}
.nav-links{display:flex;align-items:center;gap:4px;flex:1;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.nav-links::-webkit-scrollbar{height:0}
.nav-link{flex:none;display:inline-flex;align-items:center;gap:6px;background:none;border:none;cursor:pointer;
  font-family:inherit;font-size:13.5px;font-weight:700;color:var(--muted);padding:7px 12px;border-radius:9px;transition:.15s;white-space:nowrap}
.nav-link:hover{color:var(--txt);background:var(--panel2)}
.nav-link.on{color:var(--accent);background:rgba(31,207,109,.12)}
.nav-link .nl-live{width:7px;height:7px;border-radius:50%;background:var(--live);animation:pulse 1.4s infinite}
.nav-theme{flex:none;width:38px;height:38px;border-radius:10px;border:1px solid var(--line2);background:var(--panel2);
  color:var(--txt);font-size:17px;cursor:pointer;display:grid;place-items:center;transition:.15s;line-height:1}
.nav-theme:hover{border-color:var(--accent)}
.nav-play{text-decoration:none;color:var(--accent)}   /* 🎮 the game, one tap from every page (owner, 2 Nov 2026) */
/* Filters dropdown (format + gender), moved off the page into the top bar */
.nav-filter{position:relative;flex:none}
.nav-filterbtn{display:inline-flex;align-items:center;gap:7px;background:var(--panel2);border:1px solid var(--line2);
  color:var(--txt);font-family:inherit;font-weight:700;font-size:13px;padding:8px 12px;border-radius:10px;cursor:pointer;transition:.15s}
.nav-filterbtn:hover{border-color:var(--accent)}
.nav-filterbtn.active{border-color:var(--accent);color:var(--accent)}
.nav-searchbtn{display:none}          /* phone-only: shown in the ≤820px block */
.bottom-nav{display:none}             /* phone-only: shown in the ≤820px block */
.nf-badge{display:none}
.nf-badge.on{display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:9px;
  background:var(--accent);color:#04120a;font-size:10.5px;font-weight:900}
/* Filters as a full-width drop-down STRIP under the nav — it sits in the page flow
   and pushes content down, so it never overlaps the match/list behind it. */
.filter-strip{max-height:0;overflow:hidden;transition:max-height .28s ease;
  background:var(--bg2);border-bottom:1px solid var(--line)}
.filter-strip.open{max-height:60vh;overflow-y:auto}
.filter-strip-inner{max-width:1320px;margin:0 auto;padding:0 20px;display:flex;flex-direction:column;gap:10px}
.filter-strip.open .filter-strip-inner{padding:13px 20px}
.filter-strip .gen-bar,.filter-strip .fmt-bar{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:0;width:auto;overflow:visible}
.filter-strip .bar-label{width:100%;font-size:9.5px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin:0 0 1px}
.nav-filterbtn.active-open{border-color:var(--accent);color:var(--accent)}
@media(max-width:820px){.filter-strip-inner{padding:0 12px}.filter-strip.open .filter-strip-inner{padding:11px 12px}}
@media(max-width:820px){ .nfb-label{display:none} .nav-filterbtn{padding:8px 10px} }
@media(max-width:820px){
  .site-nav{padding:8px 12px;gap:10px}
  .nav-name{font-size:16px}
  .nav-link{font-size:12.5px;padding:6px 10px}
}
.brand{display:flex;align-items:center;gap:10px}
.logo{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--accent),#0e8f4d);box-shadow:0 6px 20px rgba(31,207,109,.4);font-size:17px}
.brand .brand-name{font-size:17px;font-weight:800;letter-spacing:-.4px}
.brand .brand-name span{color:var(--accent)}
.brand small{display:block;color:var(--muted);font-size:11px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase}
.live-pill{display:flex;align-items:center;gap:7px;margin-left:6px;background:rgba(255,59,78,.12);
  border:1px solid rgba(255,59,78,.4);color:#ff8a96;padding:5px 11px;border-radius:30px;font-size:12px;font-weight:700;letter-spacing:.5px}
.dot-live{width:8px;height:8px;border-radius:50%;background:var(--live);animation:pulse 1.4s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(255,59,78,.6)}70%{box-shadow:0 0 0 8px rgba(255,59,78,0)}100%{box-shadow:0 0 0 0 rgba(255,59,78,0)}}
.spacer{flex:1}
.btn{border:none;cursor:pointer;font-family:inherit;font-weight:700;font-size:13px;padding:9px 16px;border-radius:10px;
  transition:.15s;color:#fff;background:linear-gradient(135deg,var(--accent),var(--accent2));box-shadow:0 4px 14px rgba(31,207,109,.3)}
.btn:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(31,207,109,.45)}
.btn.ghost{background:var(--panel2);border:1px solid var(--line2);box-shadow:none;color:var(--txt)}
.btn.ghost:hover{border-color:var(--accent);color:var(--accent)}
.btn.ghost.off{opacity:.6}
.src-tag{font-size:11px;font-weight:700;padding:4px 9px;border-radius:20px;letter-spacing:.5px}
.src-live{background:rgba(31,207,109,.14);color:var(--accent);border:1px solid rgba(31,207,109,.35)}
.src-offline{background:rgba(255,73,95,.14);color:#ff8a96;border:1px solid rgba(255,73,95,.4)}
.updated{font-size:11px;color:var(--muted);font-weight:600;display:flex;align-items:center;gap:6px}
.spin{width:11px;height:11px;border:2px solid var(--line2);border-top-color:var(--accent);border-radius:50%;animation:rot .8s linear infinite}
.spin.idle{animation:none;opacity:.3}
@keyframes rot{to{transform:rotate(360deg)}}

/* Layout */

.grid{display:grid;grid-template-columns:280px minmax(0,1fr) 300px;gap:14px;align-items:start}
/* keep the global-chat column on every page; drop the live rail first when narrow */
/* Use .grid>aside (specificity 0,1,1) so it BEATS the base `aside{display:flex}`
   rule below regardless of source order — otherwise the live rail leaks back onto
   narrow/phone layouts and overlaps the landing filters. */
@media(max-width:1200px){.grid{grid-template-columns:minmax(0,1fr) 300px}.grid>aside{display:none}}
@media(max-width:980px){.grid{grid-template-columns:1fr}.chat-col{display:none}}

/* DEDICATED single-match page (/match/<teams>?chat=match) ONLY: drop the "Live Now" LIST of
   other matches and give that width to the match. The NORMAL match view keeps the full rail —
   opening a match from the home page should still leave every other live match one click away.
   The aside itself SURVIVES as a slim gutter so Home / ← All matches stay on the left rather
   than becoming a row above the score widget. Scoped to <html class="solo-page">. */
.solo-page .grid{grid-template-columns:132px minmax(0,1fr) 300px}
.solo-page .grid>aside>*:not(#asideNav){display:none}   /* keep the nav, drop the match list */
.solo-page #asideNav{flex-direction:column;align-items:stretch;gap:6px}
@media(max-width:1200px){.solo-page .grid{grid-template-columns:132px minmax(0,1fr)}
  .solo-page .grid>aside{display:block}}
@media(max-width:980px){.solo-page .grid{grid-template-columns:1fr}}

/* center column holds either the landing grid or the focused match detail */
.center{min-width:0}
.landing{display:flex;flex-direction:column;gap:16px}
body.match-open .landing{display:none}
body:not(.match-open) .detail{display:none}

/* landing: search + tabs + filters, then a 3-per-row grid of compact match cards */
.landing-bar{display:flex;flex-direction:column;gap:10px;margin-bottom:4px}
.landing-grid{display:flex;flex-direction:column;gap:22px}
.lg-section{display:flex;flex-direction:column;gap:12px}
.lg-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media(max-width:1100px){.lg-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.lg-cards{grid-template-columns:1fr}}
.lg-section .sec-head{margin:0}

/* top view tabs — Today / Upcoming / Completed (each its own page) */
/* landing view tabs are superseded by the sticky top nav (Live/Schedule/Series/Completed) */
.view-tabs{display:none}
.lv-tab{display:inline-flex;align-items:center;gap:7px;cursor:pointer;font-family:inherit;font-size:13px;font-weight:800;
  color:var(--muted);background:var(--panel2);border:1px solid var(--line2);padding:8px 15px;border-radius:22px;transition:.15s}
.lv-tab:hover{color:var(--txt)}
.lv-tab.on{color:#08210f;background:linear-gradient(135deg,var(--accent),var(--accent2));border-color:transparent}
.lv-n{font-size:11px;font-weight:800;background:rgba(255,255,255,.06);color:var(--muted);padding:0 7px;border-radius:20px}
.lv-tab.on .lv-n{background:rgba(0,0,0,.18);color:#08210f}

/* compact cards inside the landing grid */
.lg-cards .mcard{padding:12px}
.lg-cards .mtop{margin-bottom:8px}
.lg-cards .mseries{font-size:10.5px;margin-bottom:8px}
.lg-cards .team-row{padding:3px 0}
.lg-cards .team-row .tn{font-size:13px;gap:8px}
.lg-cards .team-row .ts{font-size:13px}
.lg-cards .flag{width:20px;height:20px;font-size:9px;border-radius:5px}
.lg-cards .mfoot{font-size:10.5px;margin-top:8px;padding-top:8px}
.lg-cards .fmt{font-size:9px;padding:2px 6px}
.lg-cards .gtag{font-size:8px;padding:2px 5px}
.lg-cards .mstatus{font-size:10px}
.lg-cards .star{font-size:14px}

/* compact filter bars — one scrollable row each, no wrapping (saves vertical space) */
.landing-bar{gap:8px}
.landing-bar .search{padding:10px 14px}
.landing-bar .gen-bar,.landing-bar .fmt-bar{margin:0;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:2px}
.landing-bar .gen-bar::-webkit-scrollbar,.landing-bar .fmt-bar::-webkit-scrollbar{height:0;display:none}
.landing-bar .gchip,.landing-bar .fchip{flex:none;padding:6px 12px;font-size:12px}
.landing-bar .bar-label{flex:none}

/* LEFT live-scores rail */
/* left live rail sticks in view and scrolls on its own when there are many live
   matches (so the list doesn't run off the page while you're on a match). */
aside{position:sticky;top:14px;align-self:start;max-height:calc(100vh - 28px);display:flex;flex-direction:column;min-height:0}
.live-rail{display:flex;flex-direction:column;gap:12px;overflow-y:auto;min-height:0;padding-right:4px;-webkit-overflow-scrolling:touch}
.rail-empty{padding:20px 14px;border:1px dashed var(--line2);border-radius:12px;color:var(--muted);font-size:12.5px;font-weight:600;text-align:center}
.rail-empty span{color:var(--muted2);font-size:11.5px}
.lr-card{background:linear-gradient(180deg,var(--panel),var(--bg2));border:1px solid var(--line);border-radius:13px;padding:12px;cursor:pointer;transition:.16s}
.lr-card:hover{border-color:var(--line2);transform:translateY(-2px)}
.lr-card.on{border-color:var(--accent);box-shadow:var(--glow)}
.lr-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.lr-top-l{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
/* compact inline meta chips (day / in-progress) that sit next to the LIVE/Stumps badge */
.lr-chip{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:800;padding:2px 8px;border-radius:20px;
  background:var(--panel2);border:1px solid var(--line2);color:var(--muted)}
.lr-chip.lr-day{background:rgba(155,107,255,.14);border-color:rgba(155,107,255,.32);color:var(--purple)}
.lr-chip.lr-prog{background:rgba(46,213,115,.12);border-color:rgba(46,213,115,.30);color:var(--accent)}
.lr-chip.lr-prog .d{width:6px;height:6px;border-radius:50%;background:var(--accent);animation:pulse 1.4s infinite}
.lr-live{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;font-weight:800;letter-spacing:.5px;color:#ff8a96}
.lr-live .d{width:7px;height:7px;border-radius:50%;background:var(--live);animation:pulse 1.4s infinite}
/* paused/stumps badge: amber, NO pulse — clearly not live action */
.lr-live.lr-paused{color:var(--amber);text-transform:none;letter-spacing:.2px}
.lr-card.lr-oncard-break{opacity:.9}
.lr-fmt{font-size:9.5px;font-weight:800;letter-spacing:.5px;color:var(--blue);background:rgba(61,139,255,.12);padding:2px 7px;border-radius:5px;text-transform:uppercase}
.lr-team{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:3px 0}
.lr-nm{font-size:13px;font-weight:700;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lr-team.bat .lr-nm{color:var(--accent)}
.lr-sc{font-size:14px;font-weight:900;color:var(--txt);font-variant-numeric:tabular-nums;flex:none}
.lr-sc small{color:var(--muted);font-weight:600;font-size:11px}
/* live-rail status pills — day + a distinct interval chip (Stumps/Tea/…), set apart below the score */

/* series chip on cards */
.mseries{font-size:11px;font-weight:700;color:var(--muted2);margin:0 0 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* mobile-only elements never show on desktop */
.mobile-back{display:none}
.mb-home{flex:none;display:block}
.mscore{display:none}
/* desktop: the sticky top-nav Home handles going back, so the in-page Home button
   stays hidden here. It reappears only on phones, where the nav is hidden in the
   focused match view (see the mobile-detail-open rule below). */
/* ─────────────────────────────────────────────────────────────────────────────
   PHONE — two views (like a video app):
   • FEED: the full list of matches (search + list + schedule).
   • FOCUSED: tap a match → score + players + chat only, with a back button.
   Desktop (>820px) is untouched.
   ───────────────────────────────────────────────────────────────────────────── */
@media(max-width:820px){
  .wrap{zoom:1;display:flex;flex-direction:column;padding:10px 10px 40px;max-width:100%}
  /* align-items:STRETCH — the desktop .grid rule says `align-items:start`, and in a flex COLUMN that
     shrinks every child to its content width: with short team names and nothing wide loaded yet the
     whole match list drew at ~65-80% of the phone (the "chopped" first second, on any phone/browser)
     until a long series-name row arrived and widened it. Measured: 249px of 375 before, 355 after. */
  .grid{display:flex;flex-direction:column;gap:12px;align-items:stretch}
  .grid > .center{width:100%}
  .chat-col{display:none}

  /* compact the landing filters on phones so they don't eat the screen */
  .landing-bar{gap:7px}
  .landing-bar .search{padding:9px 12px;font-size:14px}
  .landing-bar .bar-label{display:none}                 /* drop "Gender"/"Format" labels */
  /* ── PHONE: reclaim the top of the landing so cricket shows up first ──────────
     The first match card used to start 278px down a 660px screen (42% of it) with
     only ONE card visible. Two changes buy that space back:
       1. search collapses behind the 🔍 icon in the nav (tap to reveal)
       2. the Trending row is hidden — on a small screen it was showing the SAME
          match that's already first in the Live list right below it. */
  .nav-searchbtn{display:inline-flex;padding:8px 10px}
  body:not(.search-open) .landing-bar .search{display:none}
  body.search-open #searchBtn{border-color:var(--accent);color:var(--accent)}
  .trending-row{display:none}

  /* ── PHONE: denser match cards so 2-3 fit per screen instead of 1 ─────────────
     Same information, less air: tighter padding, the badge row and series line
     pulled together, and slimmer team rows. Scores stay big — they're the point. */
  .mcard{padding:10px 12px;border-radius:12px}
  .mcard .mtop{margin-bottom:6px}
  .mseries{margin:0 0 6px;font-size:10.5px}
  .team-row{padding:2px 0}
  .team-row .tn{font-size:14.5px;gap:8px}
  .team-row .ts{font-size:14.5px}
  .flag{width:20px;height:20px;font-size:9px}
  .mfoot{margin-top:7px;padding-top:7px;font-size:11px}
  .lg-cards .mcard{padding:10px 12px}
  .lg-cards{gap:8px}
  /* section headings on the landing were also very airy */
  .section-label{margin:10px 0 6px}

  /* ── PHONE: bottom navigation ────────────────────────────────────────────────
     All navigation used to sit at the TOP of a tall phone — the hardest place for a
     thumb — and the labels were truncating ("Sched"). Moving it to a fixed bottom bar
     is the standard mobile pattern and also retires the floating chat FAB that
     overlapped content. Hidden inside the focused match (which has its own Home/Chat
     row) and while the keyboard is up, so it never fights the chat input. */
  .bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:200;
    background:var(--bg2);border-top:1px solid var(--line2);
    padding:5px 4px calc(env(safe-area-inset-bottom) + 5px);
    justify-content:space-around;align-items:stretch;box-shadow:0 -6px 18px rgba(0,0,0,.35)}
  .bnav-item{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:3px;background:none;border:none;color:var(--muted2);font-family:inherit;font-size:10px;
    font-weight:800;letter-spacing:.2px;padding:6px 2px;border-radius:10px;cursor:pointer;
    position:relative;min-height:44px}          /* 44px = comfortable tap target */
  .bnav-item .bn-ic{font-size:17px;line-height:1}
  .bnav-item .bn-lb{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  .bnav-item.on{color:var(--accent)}
  .bnav-item.on .bn-ic{filter:drop-shadow(0 0 6px rgba(46,213,115,.5))}
  .bn-dot{position:absolute;top:5px;right:calc(50% - 18px);width:7px;height:7px;border-radius:50%;
    background:var(--accent);display:none}
  .bnav-item.has-dot .bn-dot{display:block}
  .site-nav .nav-links{display:none}            /* those links now live in the bottom bar */
  .chat-fab{display:none!important}             /* replaced by the Chat tab */
  body:not(.mobile-detail-open) .wrap{padding-bottom:70px}   /* keep content clear of the bar */
  body.mobile-detail-open .bottom-nav,
  body.kb-open .bottom-nav{display:none}
  /* 3 Nov 2026 (owner screenshot: a second "Message…" box under the chat sheet): Back from a match INTO the chat sheet
     leaves the match page open underneath, which hid the bar — the sheet stops 58px above the bottom for the bar, so the
     match's own message box showed through the gap. The chat sheet always keeps its bar (it is the sheet's toggle). */
  body.chat-drawer-open.mobile-detail-open:not(.kb-open) .bottom-nav{display:flex}
  /* The footer's "Matches" links now duplicate the bottom bar, and the marketing blurb
     was filling the screen below the cards. Collapse it to a slim legal line on phones. */
  .site-foot .sf-grid{display:none}
  .site-foot{margin-top:12px;padding-top:10px}
  .sf-bar{flex-direction:column;align-items:flex-start;gap:4px;font-size:10.5px;line-height:1.5}
  .view-tabs{gap:6px}
  .lv-tab{padding:7px 12px;font-size:12.5px}
  .landing-bar .gchip,.landing-bar .fchip{padding:6px 11px;font-size:11.5px}
  /* STOP the page zooming out: the horizontal filter rows must SCROLL, not stretch
     the layout wider than the screen. min-width:0 lets overflow-x:auto take effect. */
  .center,.landing,.landing-bar,.landing-grid,.lg-section,.lg-cards{min-width:0;max-width:100%}
  .view-tabs,.gen-bar,.fmt-bar{min-width:0;width:100%;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
  .lv-tab,.gchip,.fchip{flex:none}
  .lg-cards{grid-template-columns:1fr}
  .mcard{min-width:0}

  /* default = FEED view: show the match list, hide the focused detail */
  .detail{display:none}
  .grid>aside{display:none}      /* no live rail on phone — those matches are in the grid */
  .fmt-bar{display:flex;flex-wrap:wrap;gap:6px}
  .mcard{margin:0 0 10px}

  /* ============================================================================
     FOCUSED MATCH VIEW = a YouTube-style FIXED APP SHELL (not a scrolling page).
     The whole viewport is locked. Inside it: the score widget is a FIXED HEADER
     at the top (the "video"), and the chat is its own region that scrolls
     INTERNALLY below it (the "comments"). The score never scrolls away, and the
     chat input sits just above the keyboard. This is why the old sticky approach
     kept failing on the phone — sticky inside a scrolling body breaks on iOS.
     ============================================================================ */
  /* NOTE: never hide .wrap/.grid — .detail lives inside them. Hide only siblings. */
  body.mobile-detail-open .site-nav,
  body.mobile-detail-open .top,
  body.mobile-detail-open aside,
  body.mobile-detail-open .cards{display:none}             /* focused view: show only the match */
  /* …but a TAB's own content is the match. Win Prob, Projection and Squads wrap their panel in
     .cards, so the rule above left those tabs BLANK on phone (0px tall). Higher specificity, so
     it wins wherever it sits in the file. */
  body.mobile-detail-open .lower-panel .cards{display:grid}
  /* .wp-strip was hidden here before — now the win-probability bar is wanted on phone, so
     it shows in the info-strip alongside recent overs + projections. */

  /* Plain scrolling page — no fixed shell, no JS, no body lock (all of that shook or
     broke on iOS). The score stays visible WHILE TYPING via the .mini-score line that
     sits right above the message input. */
  body.mobile-detail-open .grid{display:block;gap:0}
  body.mobile-detail-open .detail{display:flex;flex-direction:column;gap:0;padding:8px 4px 20px}
  /* belt-and-braces: nothing may push past the right edge */
  body.mobile-detail-open .detail *{max-width:100%}
  body.mobile-detail-open .chat-msg{min-width:0}
  body.mobile-detail-open .chat-msg .chat-t{min-width:0;overflow-wrap:anywhere}
  body.mobile-detail-open .chat-input{min-width:0}
  body.mobile-detail-open .chat-input-row{width:100%;max-width:100%}
  body.mobile-detail-open .chat-input{flex:1 1 0}

  body.mobile-detail-open .mobile-back{display:inline-flex;flex:none;align-self:flex-start;align-items:center;gap:6px;
    margin:0 0 8px;background:var(--panel2);border:1px solid var(--line2);color:var(--txt);
    font-family:inherit;font-weight:800;font-size:13px;padding:7px 12px;border-radius:9px;cursor:pointer}

  /* PHONE: hide the tall hero; the scoreboard (mScore) sits at the top of the page. */
  body.mobile-detail-open .sticky-top{display:none}
  /* The current batsmen/bowlers card used to live INSIDE .sticky-top, so this rule hid it on
     phone too. Moving it out (so it scrolls instead of pinning on desktop) made it appear
     here for the first time — a ~370px card whose batters, bowler and over are ALREADY in the
     mini-score inside the chat panel below it. Two copies of the same thing left no room for
     the chat itself. Phone keeps the single copy it always had. */
  body.mobile-detail-open .onf-card{display:none}
  body.mobile-detail-open .mscore{display:block;position:sticky;top:0;z-index:50;margin:0 0 8px;
    background:linear-gradient(180deg,var(--panel),var(--bg2));
    border:1px solid var(--line2);border-radius:14px;padding:12px 13px;box-shadow:0 6px 16px rgba(0,0,0,.5)}
  /* the FULL compact scoreboard, sitting right above the chat input — the one spot
     iOS keeps visible while typing. Teams+scores on top, batsmen/bowler below. */
  /* chat-open phone scoreboard — big text, but tight vertical padding so it + the
     input fit above the keyboard (score stays visible while typing) */
  body.mobile-detail-open .mini-score{display:block;margin:0 0 8px;padding:9px 14px;border-radius:13px;
    background:linear-gradient(180deg,var(--panel2),var(--bg2));border:1px solid var(--line2)}
  /* PHONE chat: plain top-to-bottom flow — tabs, then messages, then score + input at the
     bottom. Nothing sticky, nothing clipped. The chat-mode rule below bottom-aligns the
     whole stack to the visible viewport so the score sits low, next to the keyboard. */
  /* ONE row, not two: Match|Group tabs on the left, the counter and your name pushed to the
     right. Measured at 375x812 these were 44px + 30px stacked; together they are ~44px, so
     this hands ~30px straight back to the message list. */
  body.mobile-detail-open .chat-stick{margin:0 0 4px}
  /* ONLY the normal chat card. The group-setup card reuses .chat-stick to stack the SCORE
     above the tabs — making that a flex row squeezed the score into a narrow left column
     with the tabs jammed beside it. Hence the explicit class rather than styling .chat-stick. */
  /* WRAP, not nowrap. On the Match tab everything fits one line (tabs + counter + name).
     The Group tab also carries the group code, a share button and Leave — measured, that
     leaves 0px for the name, which is why it vanished. Allowing a wrap means the common
     case stays one line and only the busier group row takes a second. */
  body.mobile-detail-open .chat-stick-row{display:flex;align-items:center;
    gap:5px;flex-wrap:nowrap;min-width:0}
  /* ONE LINE, including the Group tab. Measured at 375px the group row wanted ~470px of
     content against 333 available — tabs 153, code 81, share 32, Leave 54, name 118 — so it
     wrapped and pushed the composer off. Everything in this row shrinks to fit. */
  body.mobile-detail-open .chat-stick-row .chat-tab{font-size:11.5px;padding:7px 9px;gap:3px}
  body.mobile-detail-open .chat-stick-row .mchat-sub{gap:5px}
  body.mobile-detail-open .chat-stick-row .sc-cnt{font-size:9px;padding:2px 6px}
  body.mobile-detail-open .chat-stick-row .grp-btn{font-size:10px;padding:4px 7px}
  body.mobile-detail-open .chat-stick-row .grp-code{font-size:9.5px}
  body.mobile-detail-open .chat-stick .mchat-tabs{margin:0;flex:0 0 auto;padding:0}
  body.mobile-detail-open .chat-stick .mchat-sub{margin:0;flex:1 1 auto;min-width:0;
    justify-content:flex-end;flex-wrap:nowrap;overflow:hidden}
  /* Let the name take whatever the row has left rather than a fixed 88px — "Guest-1819"
     measures 112px and was being chopped. Flexible also survives a longer name. */
  body.mobile-detail-open .chat-stick-row .mchat-sub{flex-wrap:wrap}
  /* KEYBOARD UP: force the whole header back onto ONE line so the composer keeps its space.
     The group row wants 438px in 333px (tabs 153 + code 81 + share 32 + Leave 54 + name 118),
     so while typing we drop the two things you are not using mid-sentence: the group-code
     chip (the 🔗 button still shares it) and the word on Leave. Both return the moment the
     keyboard closes — nothing is removed, only deferred. */
  body.chat-tight.mobile-detail-open .chat-stick-row{flex-wrap:nowrap}
  /* While the keyboard is up you are writing a message — not renaming yourself, copying a
     group code or leaving. Those controls need 438px in a 333px row and were forcing a
     second line, which is what pushed the composer off screen. Hide the whole sub-row while
     typing and give the space to the message box; it all comes back the moment you stop.
     The Match/Group tabs stay, because switching rooms mid-thought is a real thing. */
  body.chat-tight.mobile-detail-open .chat-stick-row .mchat-sub{display:none}
  /* min-width so the name can never be squeezed to nothing — it wraps instead. */
  /* Sized to what the name actually needs (a "Guest-1819" measures 112px), NOT to whatever
     is going spare — asking for more made the row grab a second line on the Match tab, which
     is the case that has to stay on one. */
  /* The row came to 334px against 333 available — over by ONE pixel, so it took a second
     line. The "as" label is decorative (the input has its own placeholder), and dropping it
     with its gap frees ~23px: 140 tabs + 42 counter + 118 name + gaps = 316. */
  body.mobile-detail-open .chat-stick-row .chat-name-wrap{flex:0 1 auto;min-width:0;
    margin-left:auto;font-size:0;gap:0}
  /* 16px like every field (iPhone zooms the whole page into anything smaller) and WIDE ENOUGH for
     "Guest-25021" at 16px. The group controls no longer share this row on a phone (the name field
     is left out of the Group view), which is what forced the old 13px trade-off. */
  body.mobile-detail-open .chat-stick-row .chat-name{width:130px;min-width:0;flex:0 1 auto;
    padding:5px 7px}
  body.mobile-detail-open .chat-foot .mini-score{margin:0 0 7px}

  /* THE COMPOSER MUST NEVER BE PUSHED OFF SCREEN.
     Desktop already solves this (.chat-col is viewport-bound and only .gchat-list scrolls);
     the phone card never got it, so the stack just grew: measured at 375x812 the card ran to
     806px with .mini-score alone taking 264px, and on a real iPhone the address bar eats
     ~100px more — so the input was cut off before the keyboard even appeared.
     `dvh` is the important part: it shrinks as the browser chrome shows, which `vh` does not.
     Only the message list flexes; the tabs and the score+input are fixed. */
  body.mobile-detail-open .chat-card.chat-mini{display:flex;flex-direction:column;
    max-height:calc(100dvh - 118px);min-height:0}
  body.mobile-detail-open .chat-card.chat-mini .chat-stick,
  body.mobile-detail-open .chat-card.chat-mini .chat-foot{flex:0 0 auto}
  body.mobile-detail-open .chat-list{min-height:70px;flex:1 1 0;overflow-y:auto;
    -webkit-overflow-scrolling:touch}
  .mini-score .msl-teams{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;font-size:21.5px;font-weight:900}
  .mini-score .msl-team{color:var(--muted)}
  .mini-score .msl-team.bat{color:var(--accent)}
  .mini-score .msl-team i{font-style:normal;font-weight:600;color:var(--muted2);font-size:15.4px}
  .mini-score .msl-v{color:var(--muted2)}
  .mini-score .msl-players{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;
    margin-top:6px;padding-top:6px;border-top:1px solid var(--line);font-size:16.5px;font-weight:700;color:var(--muted)}
  .mini-score .msl-bowl{color:var(--blue)}
  .mini-score .msl-bat b,.mini-score .msl-bowl b{color:var(--txt);font-weight:900}
  .mini-score .msl-players i{font-style:normal;font-weight:600;color:var(--muted2);font-size:14.3px}
  .pn-short{display:none}          /* surname fallback — shown only when space is tight */
  /* current-over balls + ball-in-play inside the mini scoreboard */
  .mini-score .msl-over{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;
    margin-top:6px;padding-top:6px;border-top:1px solid var(--line)}
  .mini-score .msl-ovl{font-size:12.1px;font-weight:800;letter-spacing:.5px;color:var(--muted2)}
  .mini-score .msl-balls{display:flex;gap:5px;flex-wrap:wrap}
  .mini-score .msl-b{min-width:26px;height:26px;padding:0 6px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;
    font-size:14.3px;font-weight:800;background:var(--panel2);border:1px solid var(--line2);color:var(--txt)}
  .mini-score .msl-last{font-size:13.8px;font-weight:800;color:var(--amber)}
  .mini-score .msl-chase{margin-top:6px;padding-top:6px;border-top:1px solid var(--line);text-align:center;
    font-size:13.8px;font-weight:700;color:var(--amber)}
  .mini-score .msl-chase b{color:var(--txt);font-weight:900}
  /* ONE place for the score on every tab, Chat included: the widget stays on top. It used to
     hide here and reappear as a card above the message box, so going to/from Chat flipped the
     tab row between y≈53 and y≈245 — the "jumping" on every switch. The copy in the chat footer
     is hidden instead (rule at the end of the file). */
  .msp-teams{display:flex;align-items:stretch;gap:10px}
  .msp-team{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
  .msp-nm{font-size:13px;font-weight:800;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .msp-sc{font-size:29px;font-weight:900;color:var(--txt);line-height:1.05}
  .msp-sc i{font-size:12px;font-weight:700;color:var(--muted);font-style:normal}
  .msp-team.bat .msp-nm{color:var(--accent)}
  .msp-team.bat .msp-sc{color:var(--accent)}
  .msp-vs{align-self:center;color:var(--muted2);font-size:11px;font-weight:800;flex:none}
  .msp-line{display:flex;align-items:center;gap:8px;margin-top:9px;padding-top:9px;
    border-top:1px solid var(--line);font-size:13px;font-weight:700;color:var(--muted)}
  .msp-line + .msp-line{margin-top:5px;padding-top:0;border-top:0}
  .msp-soon{color:var(--amber);font-weight:800;justify-content:center}
  .msp-status{color:var(--purple);font-weight:800;justify-content:center;gap:6px}
  /* compact current-over ball strip inside the pinned score */
  .msp-over{display:flex;align-items:center;gap:8px;margin-top:9px;padding-top:9px;border-top:1px solid var(--line)}
  .msp-ov-l{font-size:9.5px;font-weight:800;letter-spacing:.6px;color:var(--muted2);flex:none}
  .msp-balls{display:flex;gap:5px;flex-wrap:wrap}
  .msp-ball{min-width:20px;height:20px;padding:0 5px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;
    font-size:11px;font-weight:800;background:var(--panel2);border:1px solid var(--line2);color:var(--txt)}
  .msp-last{font-size:11px;font-weight:800;color:var(--amber)}
  .msp-roll{display:inline-flex;align-items:center;gap:5px;font-size:10.5px;font-weight:900;letter-spacing:.5px;color:#ff8a96}
  /* current batsmen + bowler cards inside the pinned score */
  .mpc-wrap{margin-top:9px;padding-top:9px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
  .mpc{display:flex;align-items:center;gap:9px;padding:5px 7px;border-radius:9px;background:var(--panel2);border:1px solid var(--line)}
  .mpc.on{background:linear-gradient(90deg,rgba(46,213,115,.14),var(--panel2));border-color:rgba(46,213,115,.4)}
  .mpc.bowl{background:linear-gradient(90deg,rgba(61,139,255,.12),var(--panel2))}
  .mpc .mpc-av{width:30px;height:30px;font-size:11px;flex:none}
  .mpc-mid{flex:1;min-width:0}
  .mpc-role{font-size:8.5px;font-weight:800;letter-spacing:.6px;color:var(--muted2)}
  .mpc-star{color:var(--accent)}
  .mpc-name{font-size:13.5px;font-weight:800;color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mpc.on .mpc-name{color:var(--accent)}
  .mpc.bowl .mpc-name{color:var(--blue)}
  .mpc-fig{font-size:16px;font-weight:900;color:var(--txt);flex:none}
  .mpc-fig small{font-size:11px;font-weight:700;color:var(--muted)}

  /* KEYBOARD OPEN: collapse the score to just teams + runs so the compact score,
     the chat and the input all fit above the keyboard — the score stays visible. */
  body.kb-open.mobile-detail-open .mpc-wrap,
  body.kb-open.mobile-detail-open .msp-over{display:none}
  body.kb-open.mobile-detail-open .mscore{padding:9px 12px}
  body.kb-open.mobile-detail-open .msp-sc{font-size:20px}
  body.kb-open.mobile-detail-open .mobile-back{margin-bottom:6px}

  /* tabs + chat in normal flow. Chat list capped (~4 messages, scroll for older). */
  /* ONE scrollable row — never wrap. The plain `.lower-tabs{flex-wrap:wrap}` base rule is later
     in the file with equal specificity, so it was overriding the nowrap in the media query and
     the 5 tabs stacked onto two rows, pushing the chat input off the bottom of the screen. */
  body.mobile-detail-open .lower-tabs{margin:0 0 8px;flex-wrap:nowrap;overflow-x:auto;
    -webkit-overflow-scrolling:touch;scrollbar-width:none}
  body.mobile-detail-open .lower-tabs::-webkit-scrollbar{display:none}
  body.mobile-detail-open .lower-tabs .dtab{flex:none}
  body.mobile-detail-open .chat-mini{padding:10px 12px}
  body.mobile-detail-open .chat-mini h3{font-size:11px;margin-bottom:7px}
  /* ~5 messages, scroll for older. The score sits glued right above the input, so it
     stays visible while typing regardless of how many messages show. Smaller screens
     trim this down (below) so it still fits above the keyboard. */
  body.mobile-detail-open .chat-mini .chat-list{max-height:210px;gap:6px;   /* ~5-6 messages, scroll for older */
    overflow-y:auto;-webkit-overflow-scrolling:touch}
  body.mobile-detail-open .chat-mini .chat-msg{padding:5px 9px;font-size:13px}
  /* 16px inputs so iOS never auto-zooms on focus */
  body.mobile-detail-open .chat-input{font-size:16px;padding:10px 12px}
  body.mobile-detail-open .chat-name{font-size:16px}
  body.mobile-detail-open .chat-mini .chat-send{padding:10px 16px;font-size:14px}
  body.mobile-detail-open .chat-mini .chat-note:empty{display:none;margin:0;padding:0}

  /* CHAT MODE (phone, Chat tab active): compact score = teams + runs only (hide the
     tall player cards & ball strip) so chat gets room. ALL tabs stay visible in the
     swipeable row so 1st/2nd innings, Commentary, Overs, Charts are one tap away. */
  body.mobile-detail-open.chat-mode .mpc-wrap{display:none}
  /* (the over row and score size are NOT changed in Chat any more: the widget must be the same
     height on every tab, or the tab row moves when you switch) */
  /* keep the short chat + scoreboard block hard against the BOTTOM (normal flow, no
     fixed/JS so it can't shake/chop) with almost no padding under the input, so the
     Send button sits right above the keyboard — no dead space below it. */
  /* Fixed shell sized to the VISIBLE viewport (--vvh shrinks for the keyboard on iOS;
     100dvh does not). ONLY the message list scrolls inside — the tabs stay at the top and
     the FULL score + input stay pinned at the bottom, always visible, never chopped, no
     page scroll. Every link in the flex chain (detail → lower-panel → chat-mini → list)
     must carry min-height:0 or the list won't scroll and the score gets pushed off. */
  /* PLAIN natural-flow page — NO fixed height, NO overflow:hidden, NO flex shell. Those
     all fought the iOS keyboard (page scrolled and the whole view vanished). The detail is
     at least a screen tall and bottom-aligned so the score + input sit low; the page can
     always scroll, so iOS can bring the focused input (and the score above it) into view
     and nothing is ever permanently hidden or clipped. */
  /* size to the viewport MINUS the fixed chrome above (Home row + ticker) — otherwise the
     detail is a full screen tall on top of that chrome, overflows, and flex-end leaves a
     big dead gap between the ticker and the tabs. */
  /* ══ CHAT SHELL — score can never move, nothing jumps, nothing hides ═══════════
     The chat used to live in a normally-scrolling page, so when iOS opened the keyboard
     it scrolled the whole DOCUMENT to reveal the input — that was the jumping, and the
     reason the score drifted away or vanished.
     Now, in chat mode only:
       • the body is locked (overflow:hidden) so the page CANNOT scroll
       • the shell is pinned to the VISUAL viewport: height = --vvh, and shifted by --vvo
         (visualViewport.offsetTop) so it stays glued when iOS scrolls that viewport
       • ONLY the message list scrolls, inside its own box
     Result: tabs pinned top, score + input pinned bottom, messages scroll between them.
     Every link in the flex chain needs min-height:0 or the list won't scroll. */
  body.mobile-detail-open.chat-mode{overflow:hidden;position:relative}
  body.mobile-detail-open.chat-mode .center{position:fixed;left:0;right:0;top:0;z-index:60;
    height:var(--vvh,100dvh);transform:translateY(var(--vvo,0px));
    display:flex;flex-direction:column;padding:8px 8px calc(env(safe-area-inset-bottom) + 6px)}
  body.mobile-detail-open.chat-mode #focusChrome{flex:none}
  /* In CHAT mode the other-matches ticker and the recent-overs/win-prob/projection strip
     eat the vertical space the message input needs — with the keyboard up they pushed the
     input off-screen ("can't see what I'm typing"). The match's own score is already in the
     chat footer, so hide these while chatting. */
  body.mobile-detail-open.chat-mode #liveTickerBar,
  body.mobile-detail-open.chat-mode .info-strip{display:none}
  /* Predict row stays visible in chat too (it's the point of the feature). The ResizeObserver on
     #focusChrome keeps --chrome-h correct, so it no longer pushes the input under the keyboard. */

  body.mobile-detail-open.chat-mode .detail{flex:1 1 0;min-height:0;display:flex;flex-direction:column;
    padding:0;margin:0}
  body.mobile-detail-open.chat-mode .lower-tabs{flex:none;margin:0 0 6px}
  body.mobile-detail-open.chat-mode .lower-panel{flex:1 1 0;min-height:0;display:flex;flex-direction:column}
  body.mobile-detail-open.chat-mode .chat-mini{flex:1 1 0;min-height:0;display:flex;flex-direction:column;
    padding:10px 12px}
  body.mobile-detail-open.chat-mode .chat-stick{flex:none}
  body.mobile-detail-open.chat-mode .chat-list{flex:1 1 0;min-height:0;overflow-y:auto;
    -webkit-overflow-scrolling:touch;overscroll-behavior:contain;   /* don't chain scroll to the page */
    display:flex;flex-direction:column;max-height:none}
  body.mobile-detail-open.chat-mode .chat-list::before{content:"";margin-top:auto}
  body.mobile-detail-open.chat-mode .chat-foot{flex:none}
  body.mobile-detail-open.chat-mode .chat-stick{position:static;box-shadow:none}
  body.mobile-detail-open.chat-mode .chat-foot{position:static;box-shadow:none}
  body.mobile-detail-open.chat-mode .chat-mini .chat-list::before{content:"";margin-top:auto}
  /* pull the input row snug to the bottom — trim the card's bottom padding + hide the empty note */
  body.mobile-detail-open.chat-mode .chat-mini{padding-bottom:3px}
  body.mobile-detail-open.chat-mode .chat-foot .chat-input-row{margin-bottom:0}
  /* bigger message box so the placeholder / text isn't chopped */
  body.mobile-detail-open .chat-input{min-height:48px;overflow-y:auto}
  /* Keyboard up: the composer must stay whole. Send never shrinks (flex:none) and the
     textarea is capped, so a long message scrolls inside the box instead of pushing the
     button off the bottom. */
  body.chat-tight.mobile-detail-open .chat-input{max-height:62px}
  body.chat-tight.mobile-detail-open .chat-input-row{align-items:flex-end}
  /* Home/Chat row then the live-scores ticker BELOW it — both outside .detail so the
     per-poll re-render never disturbs the ticker's scroll. Phone focused view only. */
  /* Focused match top: Home button on its own row, then the live-scores ticker as a
     FULL-WIDTH row below it (more prominent than sharing the row). */
  body.mobile-detail-open #focusChrome{display:block;margin:0 4px 6px}
  body.mobile-detail-open #focusTop{display:flex;margin:0 0 6px;gap:8px;align-items:center}
  body.mobile-detail-open #liveTickerBar{display:block;margin:0}
  body.mobile-detail-open #focusTop .mobile-back{margin:0;padding:7px 11px;gap:5px}

  /* placeholder shown when nothing is live, so the strip never looks deleted */
  /* PROJ: one compact line (was a tall 3-line wrapping block eating vertical space).
     Scrolls sideways if the rate cells overflow. */
  body.mobile-detail-open .proj-rates{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;
    gap:8px;padding:6px 10px}
  body.mobile-detail-open .proj-rates::-webkit-scrollbar{display:none}
  body.mobile-detail-open .pjr-cells{flex-wrap:nowrap;gap:7px;flex:none}
  body.mobile-detail-open .pjr-cell{flex:none}
  body.mobile-detail-open .pjr-head{font-size:16px}
  body.mobile-detail-open .pjr-cell b{font-size:13px}
  body.mobile-detail-open .pjr-cell .pjr-at{font-size:10px}
  body.mobile-detail-open .pjr-ttl,
  body.mobile-detail-open .pjr-ov{font-size:10px}
  /* keyboard up: keep the FULL score visible (teams, batsmen, bowler, over-strip AND the
     lead/chase line) — the plain scrollable layout has room, so no need to hide rows. Only
     tighten the vertical padding a touch so it all sits comfortably above the input. */
  /* ══ Keyboard up: SHRINK the score, never hide part of it ═════════════════════
     With the keyboard open there's only ~440px, and the score at its normal size is
     254px — too tall to sit alongside the messages and the input. The fix is NOT to
     drop rows (the last over's balls kept disappearing); it's that 254px is loose
     LAYOUT, not too much information:
        teams stacked on 2 lines (~90px) · players wrapping to 2 lines (~56px)
        26px ball chips (~44px) · chase line (~34px)
     So everything collapses onto single lines at a smaller scale instead. Every row
     — teams, batsmen, bowler, the over's balls AND the chase/lead — stays on screen. */
  body.chat-tight.mobile-detail-open.chat-mode .mini-score{padding:6px 10px}
  /* both teams on ONE line */
  /* Match / Group are a nav control, not content — shrink them and give the pixels to the
     score, which is what people are actually looking at. */
  body.chat-tight.mobile-detail-open.chat-mode .chat-tab{font-size:11.5px;padding:5px 9px}
  /* Score bigger. Short team codes (PAK-WH) replaced the full names that used to be
     ellipsised here, so there is room now — 15px was sized for text that no longer appears. */
  body.chat-tight.mobile-detail-open.chat-mode .msl-teams{flex-wrap:nowrap;font-size:18px;gap:6px;overflow:hidden}
  body.chat-tight.mobile-detail-open.chat-mode .msl-team{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  body.chat-tight.mobile-detail-open.chat-mode .msl-team i{font-size:11px}
  /* batsmen + bowler on ONE line */
  /* 12.5px, not more: at 13.5 the batter/bowler line clipped ("Ali 62* · Khan 6  Raza 1-16")
     and cutting the figures is exactly what we are trying to avoid. The TEAMS line above has
     room to grow because short codes replaced the ellipsised full names; this one does not. */
  body.chat-tight.mobile-detail-open.chat-mode .msl-players{flex-wrap:nowrap;font-size:12.5px;gap:8px;
    margin-top:4px;padding-top:4px;overflow:hidden}
  body.chat-tight.mobile-detail-open.chat-mode .msl-bat,
  body.chat-tight.mobile-detail-open.chat-mode .msl-bowl{white-space:nowrap;min-width:0;flex:0 1 auto}
  /* swap full names for surnames while typing, so the runs / wickets-runs always fit */
  body.chat-tight.mobile-detail-open.chat-mode .pn-full{display:none}
  body.chat-tight.mobile-detail-open.chat-mode .pn-short{display:inline}
  body.chat-tight.mobile-detail-open.chat-mode .msl-players i{font-size:10.5px}
  /* the over's balls — smaller chips, single row, scrolls sideways if it runs long */
  body.chat-tight.mobile-detail-open.chat-mode .msl-over{margin-top:4px;padding-top:4px;gap:5px;
    flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start}
  body.chat-tight.mobile-detail-open.chat-mode .msl-over::-webkit-scrollbar{display:none}
  body.chat-tight.mobile-detail-open.chat-mode .msl-balls{flex-wrap:nowrap;gap:4px}
  body.chat-tight.mobile-detail-open.chat-mode .msl-b{min-width:19px;height:19px;font-size:10.5px;border-radius:5px;padding:0 4px}
  body.chat-tight.mobile-detail-open.chat-mode .msl-ovl{font-size:9.5px;letter-spacing:.3px}
  body.chat-tight.mobile-detail-open.chat-mode .msl-last{font-size:11px}
  /* chase / lead line stays — just smaller */
  body.chat-tight.mobile-detail-open.chat-mode .msl-chase{margin-top:4px;padding-top:4px;font-size:11px}

  .thisover{display:none}
  .lower-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;-webkit-overflow-scrolling:touch}
  .sub-tabs{overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
  .sub-tabs .stab{flex:none}
  .dtab{flex:none}
}
@media(max-width:430px){
  .msp-sc{font-size:17px}
  .msp-nm{font-size:11.5px}
}
/* SHORTER phones have less room above the keyboard → shrink the chat progressively
   (and tighten the scoreboard) so the score+input always fit and the score stays
   visible while typing. Based on screen HEIGHT, which the keyboard doesn't change. */
@media(max-width:820px) and (max-height:800px){
  body.mobile-detail-open .chat-mini .chat-list{max-height:185px}
  body.mobile-detail-open .mini-score{padding:8px 13px}
}
@media(max-width:820px) and (max-height:720px){
  body.mobile-detail-open .chat-mini .chat-list{max-height:150px}
  body.mobile-detail-open .mini-score .msl-players{gap:12px;margin-top:5px;padding-top:5px}
  body.mobile-detail-open .mini-score .msl-over{margin-top:5px;padding-top:5px}
  body.mobile-detail-open .lower-tabs{margin-bottom:6px}
}
@media(max-width:820px) and (max-height:650px){
  body.mobile-detail-open .chat-mini .chat-list{max-height:120px}
  body.mobile-detail-open .mini-score{padding:7px 12px}
  body.mobile-detail-open .mini-score .msl-teams{font-size:17px}
  body.mobile-detail-open .mini-score .msl-players{font-size:13px}
}
/* right-side global chat column — static, sticky at the top, no close button */
.chat-col{position:sticky;top:16px;align-self:start}

/* Match list */
.section-label{font-size:12px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted);margin:0 4px 12px;display:flex;align-items:center;gap:8px}
.section-label .count{background:var(--panel2);color:var(--accent);border-radius:20px;padding:1px 9px;font-size:11px}
.section-label .live-online{margin-left:auto;color:var(--muted);font-size:11px;font-weight:700;text-transform:none;letter-spacing:0}
.section-label .live-online:empty{display:none}
/* 🔥 Trending row (real chat-activity ranking; live-intl fallback) */
/* Competition tabs (league filter row) */
.comp-tabs:empty{display:none}
.comp-tabs{margin:0 0 14px}
.ct-row{display:flex;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:4px;scrollbar-width:thin}
.ct-row::-webkit-scrollbar{height:5px}
.ct-row::-webkit-scrollbar-thumb{background:var(--line2);border-radius:6px}
.ct-chip{flex:none;display:inline-flex;align-items:center;gap:7px;cursor:pointer;font-family:inherit;
  font-size:13px;font-weight:700;color:var(--muted);background:var(--panel);border:1px solid var(--line);
  border-radius:999px;padding:8px 14px;white-space:nowrap;transition:.14s;min-height:36px}
.ct-chip:hover{color:var(--txt);border-color:var(--accent)}
.ct-chip.on{color:#fff;background:var(--accent);border-color:var(--accent)}
.ct-chip.on .ct-n{background:rgba(255,255,255,.28);color:#fff}
.ct-chip.on .ser-dot{box-shadow:0 0 0 2px rgba(255,255,255,.5)}
.ct-n{font-size:11px;font-weight:800;color:var(--muted2);background:var(--panel2,rgba(120,140,180,.14));border-radius:999px;padding:1px 7px;min-width:16px;text-align:center}
.ct-live .ct-dot{width:8px;height:8px;border-radius:50%;background:#ff4d4f;box-shadow:0 0 0 3px rgba(255,77,79,.22);animation:ctpulse 1.4s infinite}
.ct-live.on .ct-dot{background:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.3)}
@keyframes ctpulse{0%,100%{opacity:1}50%{opacity:.45}}
.trending-row:empty{display:none}
.trending-row{margin:0 0 14px}
.trend-hd{font-size:12px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--amber);margin:0 2px 8px}
.trend-list{display:flex;gap:10px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:2px}
.trend-chip{flex:none;display:flex;flex-direction:column;gap:3px;align-items:flex-start;cursor:pointer;
  background:linear-gradient(135deg,rgba(255,181,46,.10),var(--panel));border:1px solid rgba(255,181,46,.32);
  border-radius:12px;padding:9px 13px;font-family:inherit;transition:.15s;min-width:0}
.trend-chip:hover{transform:translateY(-1px);border-color:var(--amber);box-shadow:0 6px 16px rgba(255,181,46,.14)}
.trend-teams{font-size:13.5px;font-weight:800;color:var(--txt);white-space:nowrap}
.trend-teams i{color:var(--muted);font-style:normal;font-weight:600;margin:0 3px}
.trend-meta{font-size:11px;font-weight:700;color:var(--amber)}
.search{width:100%;margin:0 0 12px;padding:9px 12px;border-radius:10px;background:var(--panel2);
  border:1px solid var(--line2);color:var(--txt);font-family:inherit;font-size:13px;outline:none}
.search:focus{border-color:var(--accent)}
.search::placeholder{color:var(--muted2)}
.sel{font-family:inherit;font-size:12px;font-weight:700;color:var(--txt);background:var(--panel2);
  border:1px solid var(--line2);border-radius:10px;padding:8px 8px;cursor:pointer;outline:none}
.sel:hover{border-color:var(--accent)}
/* favorite star */
.star{cursor:pointer;background:none;border:none;font-size:16px;line-height:1;color:var(--muted2);padding:0 2px;transition:.15s}
.star:hover{color:var(--amber);transform:scale(1.15)}
.star.on{color:var(--amber)}
.sec-fav{color:var(--amber)}
.sec-fav .sec-dot{background:var(--amber)}
/* win-prob sparkline */

/* side tiles: full schedule + completed */
.tile-head{display:flex;justify-content:space-between;align-items:center;cursor:pointer;padding:12px 14px;
  font-size:12px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;color:var(--txt);user-select:none}
.tile-head:hover{background:var(--panel2)}
.tile-meta{display:flex;align-items:center;gap:8px;color:var(--muted)}
.tile-count{background:var(--panel2);border:1px solid var(--line2);border-radius:20px;padding:1px 9px;font-size:11px}
.tile-caret{font-size:11px}
.tile-body{max-height:340px;overflow-y:auto;border-top:1px solid var(--line)}
/* colour-coded tiles: Full Schedule = amber, Completed = green */
#tileSchedule{border-color:rgba(255,181,46,.35);background:linear-gradient(180deg,rgba(255,181,46,.09),var(--bg2))}
#tileSchedule .tile-head{color:#ffce6e;border-left:4px solid #ffb52e}
#tileSchedule .tile-head:hover{background:rgba(255,181,46,.1)}
#tileSchedule .tile-count{background:rgba(255,181,46,.16);border-color:rgba(255,181,46,.4);color:#ffce6e}
#tileSchedule .tfmt{color:#ffce6e;background:rgba(255,181,46,.14)}
#tileCompleted{border-color:rgba(31,207,109,.32);background:linear-gradient(180deg,rgba(31,207,109,.08),var(--bg2))}
#tileCompleted .tile-head{color:#5fe39a;border-left:4px solid var(--accent)}
#tileCompleted .tile-head:hover{background:rgba(31,207,109,.1)}
#tileCompleted .tile-count{background:rgba(31,207,109,.16);border-color:rgba(31,207,109,.4);color:#5fe39a}
#tileCompleted .tfmt{color:#5fe39a;background:rgba(31,207,109,.14)}
.trow{display:flex;align-items:center;gap:9px;padding:9px 14px;cursor:pointer;border-bottom:1px solid var(--line);transition:.12s}
.trow:last-child{border-bottom:none}
.trow:hover{background:var(--panel2)}
.trow.on{background:rgba(31,207,109,.08);box-shadow:inset 3px 0 0 var(--accent)}
.tfmt{flex:none;font-size:9px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--blue);
  background:rgba(61,139,255,.12);padding:2px 6px;border-radius:5px;min-width:38px;text-align:center}
.tteams{flex:1;font-size:12.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tteams i{color:var(--muted2);font-style:normal;font-weight:600;margin:0 2px}
.tmeta{flex:none;font-size:10.5px;color:var(--muted);font-weight:600;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
/* filter row labels */
.bar-label{display:flex;align-items:center;font-size:9.5px;font-weight:800;letter-spacing:1px;text-transform:uppercase;
  color:var(--muted2);margin-right:3px;flex:none}
/* gender filter chips */
.gen-bar{display:flex;gap:7px;margin:0 2px 10px;flex-wrap:wrap;align-items:center}
.gchip{display:flex;align-items:center;gap:6px;cursor:pointer;font-family:inherit;font-size:12px;font-weight:800;
  padding:6px 12px;border-radius:20px;color:var(--muted);background:var(--panel2);border:1px solid var(--line2);transition:.15s}
.gchip:hover{color:var(--txt)}
.gchip .fc{font-size:10px;font-weight:800;background:rgba(255,255,255,.06);padding:0 6px;border-radius:20px;color:var(--muted)}
.gchip.on.g-men{color:#06140b;background:#7ab0ff;border-color:transparent}
.gchip.on.g-wom{color:#1a0410;background:#ff8ac2;border-color:transparent}
.gchip.on{color:#08210f;background:linear-gradient(135deg,var(--accent),var(--accent2));border-color:transparent}
.gchip.on .fc{background:rgba(0,0,0,.2)}

/* format filter chips */
.fmt-bar{display:flex;gap:7px;flex-wrap:wrap;margin:0 2px 14px;align-items:center}
.fchip{display:flex;align-items:center;gap:6px;cursor:pointer;font-family:inherit;font-size:12px;font-weight:700;
  padding:6px 11px;border-radius:20px;color:var(--muted);background:var(--panel2);border:1px solid var(--line2);transition:.15s}
.fchip:hover{color:var(--txt);border-color:var(--accent)}
.fchip.on{color:#08210f;background:linear-gradient(135deg,var(--accent),var(--accent2));border-color:transparent}
.fchip .fc{font-size:10px;font-weight:800;background:rgba(0,0,0,.18);padding:0 6px;border-radius:20px}
.fchip.on .fc{background:rgba(0,0,0,.22)}
.fchip:not(.on) .fc{background:rgba(255,255,255,.06);color:var(--muted)}

/* section headers in the list */
.sec-head{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;
  color:var(--muted);margin:16px 4px 9px;padding-top:4px}
.sec-head:first-child{margin-top:0}
.sec-head .sec-dot{width:8px;height:8px;border-radius:50%;background:var(--muted)}
.sec-head .sec-count{margin-left:auto;background:var(--panel2);border-radius:20px;padding:1px 8px;font-size:10px;color:var(--muted)}
.sec-live .sec-dot{background:var(--live);animation:pulse 1.4s infinite}
.sec-live{color:#ff8a96}
.sec-up .sec-dot{background:var(--amber)}
.sec-up{color:var(--amber)}
.sec-done .sec-dot{background:var(--muted)}

.match-list{display:flex;flex-direction:column;gap:12px}
.mcard{background:linear-gradient(180deg,var(--panel),var(--bg2));border:1px solid var(--line);border-radius:14px;padding:14px;cursor:pointer;transition:.18s;position:relative;overflow:hidden}
.mcard:hover{border-color:var(--line2);transform:translateY(-2px)}
.mcard.active{border-color:var(--accent);box-shadow:var(--glow)}
.mcard.active::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--accent)}
.mcard .mtop{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px;gap:8px}
.mtags{display:flex;align-items:center;gap:6px}
.fmt{font-size:10px;font-weight:800;letter-spacing:1px;padding:3px 8px;border-radius:6px;background:rgba(61,139,255,.14);color:var(--blue);text-transform:uppercase}
/* colour-coded format tags so competitions read at a glance (generic, no logos) */
.fmt.fmt-t20{background:rgba(61,139,255,.16);color:#5aa0ff}
.fmt.fmt-t20i{background:rgba(155,107,255,.16);color:#b18cff}
.fmt.fmt-odi{background:rgba(46,213,115,.15);color:#39d67f}
.fmt.fmt-test{background:rgba(255,181,46,.16);color:#ffbe4d}
.fmt.fmt-lista{background:rgba(255,124,67,.15);color:#ff9a6a}
.fmt.fmt-hundred{background:rgba(255,73,95,.15);color:#ff7a8a}
.fmt.fmt-other{background:var(--panel2);color:var(--muted)}
/* tournament colour dot — a stable hue per series, no trademarked imagery */
.ser-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:7px;vertical-align:middle;flex:none;box-shadow:0 0 0 2px rgba(255,255,255,.06)}
/* "Who wins?" — compact per-match poll widget (under the global chat) */
.poll-widget{margin-top:10px;padding:9px 11px;border-radius:12px;background:var(--panel);border:1px solid var(--line)}
#gchatPoll:empty{display:none}
#gchatPoll .poll-widget{margin:0 0 10px}   /* poll sits ABOVE the global chat */
.pw-hd{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:12px;font-weight:800;color:var(--txt);margin-bottom:6px}
.pw-meta{font-size:10.5px;font-weight:600;color:var(--muted);white-space:nowrap}
.pw-opts{display:flex;flex-direction:column;gap:6px}
.pw-opt{position:relative;display:block;width:100%;text-align:left;cursor:pointer;overflow:hidden;
  border:1px solid var(--line2);border-radius:9px;background:var(--panel2);padding:0;font-family:inherit;transition:.15s}
.pw-opt:hover{border-color:var(--accent)}
.pw-opt.mine{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}
.pw-fill{position:absolute;inset:0 auto 0 0;width:0;transition:width .5s cubic-bezier(.2,.8,.2,1);z-index:0}
.pw-opt.pa .pw-fill{background:linear-gradient(90deg,rgba(61,139,255,.34),rgba(61,139,255,.12))}
.pw-opt.pb .pw-fill{background:linear-gradient(90deg,rgba(255,124,67,.34),rgba(255,124,67,.12))}
.pw-row{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 11px}
.pw-team{font-size:12.5px;font-weight:800;color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pw-pct{font-size:12px;font-weight:900;color:var(--txt);font-variant-numeric:tabular-nums;flex:none}
.pw-pct i{font-style:normal;font-weight:700;color:var(--muted);font-size:10px;margin-left:5px}
/* emoji picker */
.emoji-wrap{position:relative;flex:none}
.emoji-btn{border:1px solid var(--line2);background:var(--panel2);border-radius:10px;cursor:pointer;font-size:16px;line-height:1;padding:8px 9px;transition:.15s}
.emoji-btn:hover{border-color:var(--accent)}
.emoji-pop{position:absolute;bottom:calc(100% + 8px);left:0;z-index:60;display:none;grid-template-columns:repeat(6,1fr);gap:2px;
  width:224px;max-height:min(300px,55vh);overflow-y:auto;padding:8px;border-radius:12px;background:var(--panel);border:1px solid var(--line2);box-shadow:var(--shadow)}
.emoji-wrap.open .emoji-pop{display:grid}
.emoji-pick{border:none;background:transparent;cursor:pointer;font-size:19px;line-height:1;padding:5px;border-radius:8px;transition:.1s}
.emoji-pick:hover{background:var(--panel2);transform:scale(1.15)}
/* sticker button + tray — taps send a big sticker straight into the chat */
.sticker-btn{border:1px solid var(--line2);background:var(--panel2);border-radius:10px;cursor:pointer;font-size:16px;line-height:1;padding:8px 9px;transition:.15s;flex:none}
.sticker-btn:hover{border-color:var(--accent)}
.sticker-pop{position:absolute;bottom:calc(100% + 8px);left:0;z-index:60;display:none;grid-template-columns:repeat(5,1fr);gap:3px;
  width:238px;max-height:200px;overflow-y:auto;padding:9px;border-radius:12px;background:var(--panel);border:1px solid var(--line2);box-shadow:var(--shadow)}
.emoji-wrap.stopen .sticker-pop{display:grid}
.sticker-pick{border:none;background:transparent;cursor:pointer;font-size:30px;line-height:1;padding:6px;border-radius:10px;transition:.1s}
.sticker-pick:hover{background:var(--panel2);transform:scale(1.2)}
/* a sent sticker renders large (no bubble chrome fighting the art) */
.chat-msg.sticker-msg .chat-sticker{font-size:42px;line-height:1.1;display:block;margin:2px 0}
.chat-msg.sticker-msg{background:none;border:none;padding:2px 4px}
/* auto-posted system line (wicket etc.) — centered banner, not a user bubble */
.chat-sys{display:flex;justify-content:center;margin:8px 0}
.chat-sys span{font-size:12px;font-weight:800;color:var(--amber);background:rgba(245,169,58,.12);
  border:1px solid rgba(245,169,58,.28);border-radius:20px;padding:5px 13px;text-align:center;letter-spacing:.2px}
.gtag{font-size:9px;font-weight:800;letter-spacing:.8px;padding:3px 7px;border-radius:6px;text-transform:uppercase}
.g-w{background:rgba(255,95,162,.16);color:#ff8ac2}
.mstatus{font-size:11px;font-weight:700;display:flex;align-items:center;gap:6px}
.mstatus.is-live{color:#ff8a96}
.mstatus.is-paused{color:var(--amber);text-transform:none;letter-spacing:.2px}
.mstatus.is-up{color:var(--amber)}
.mstatus.is-done{color:var(--muted)}
.mstatus .d{width:7px;height:7px;border-radius:50%;background:var(--live);animation:pulse 1.4s infinite}
.team-row{display:flex;justify-content:space-between;align-items:center;padding:4px 0}
.team-row .tn{display:flex;align-items:center;gap:9px;font-weight:700;font-size:14px}
.flag{width:22px;height:22px;border-radius:6px;display:grid;place-items:center;font-size:10px;font-weight:800;color:#fff;flex:none}
.team-row .ts{font-weight:800;font-size:14px;font-variant-numeric:tabular-nums}
.team-row .ts small{color:var(--muted);font-weight:600;font-size:12px}
.mfoot{margin-top:10px;padding-top:10px;border-top:1px dashed var(--line);font-size:11.5px;color:var(--muted);font-weight:600}
.mfoot.win{color:var(--accent)}
.mvenue{margin-top:6px;font-size:11px;color:var(--muted2);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-cards .mvenue{font-size:10.5px;margin-top:5px}
/* toss line — same treatment as the venue, one line, clipped rather than wrapping so a long
   team name can never change the card's height (cards sit in a fixed grid row) */
.mtoss{margin-top:3px;font-size:11px;color:var(--muted2);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-cards .mtoss{font-size:10.5px}
/* Series tab: International / Domestic groups */
.ser-grp{margin-bottom:8px}
.ser-grp-h{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:900;letter-spacing:.4px;text-transform:uppercase;color:var(--txt);margin:6px 2px 12px;padding-bottom:8px;border-bottom:2px solid var(--line)}
.ser-grp-n{font-size:11px;font-weight:800;color:var(--muted2);background:var(--panel2,rgba(120,140,180,.14));border-radius:999px;padding:2px 9px}

/* Hero */
.detail{display:flex;flex-direction:column;gap:18px}
/* The hero is ALWAYS dark navy, so its text must always be light — even in light
   mode (where --txt flips dark and made the score invisible). Re-pin the palette
   vars locally so every descendant (names, scores, chips) stays readable. */
.hero{background:linear-gradient(135deg,#16203a 0%,#0f1730 60%,#101a33 100%);border:1px solid var(--line2);border-radius:18px;overflow:hidden;box-shadow:var(--shadow);
  --txt:#e8edf7;--muted:#8a94b3;--muted2:#7d88a9;--line:#222a45;--line2:#2c3658;--panel2:#1a2138;
  color:#e8edf7}
/* names/scores/overs inherit color, so force the light palette explicitly (the
   variable alone doesn't win against body's already-computed dark `color`). */
.hero .sb-team .nm,.hero .sb-team .sc,.hero-top,.hero .series,.hero .series b{color:#e8edf7}
.hero .sb-team .sc small,.hero .sb-team .ov,.hero .vs,.hero .series{color:#9aa4c4}
.hero .sb-team.batting .sc{color:var(--accent)}
/* score + on-the-field players pinned together while scrolling tabs/chat */
.sticky-top{position:sticky;top:8px;z-index:40;display:flex;flex-direction:column;gap:14px;background:var(--bg);padding-bottom:2px}
.hero-band{height:5px;background:linear-gradient(90deg,var(--accent),var(--blue),var(--purple))}
.hero-band.band-up{background:linear-gradient(90deg,var(--amber),#ff9d3d)}
.hero-band.band-done{background:linear-gradient(90deg,#3a4566,#2c3658)}
.hero-status.up{color:var(--amber)}
.hero-sched{margin-top:18px;padding:12px 16px;border-radius:12px;background:rgba(255,181,46,.1);border:1px solid rgba(255,181,46,.3);font-weight:800;font-size:14px;color:var(--amber);text-align:center}
.hero-inner{padding:16px 22px}
.hero-top{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.series{font-size:12.5px;color:var(--muted);font-weight:600}
.series b{color:var(--txt)}
.hero-status{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;letter-spacing:.5px;text-transform:uppercase}
.hero-status.live{color:#ff8a96}
.hero-status.paused{color:var(--amber);text-transform:none;letter-spacing:.2px}   /* Stumps / Tea / Rain — not a pulsing LIVE */
.hero-status .d{width:8px;height:8px;border-radius:50%;background:var(--live);animation:pulse 1.4s infinite}
.scoreboard{display:grid;grid-template-columns:1fr auto 1fr;gap:14px;align-items:center}
.sb-team{display:flex;flex-direction:column;gap:8px}
.sb-team.right{align-items:flex-end;text-align:right}
.sb-team .nm{display:flex;align-items:center;gap:11px;font-size:17px;font-weight:800}
.sb-team.right .nm{flex-direction:row-reverse}
.sb-team .flag.lg{width:34px;height:34px;border-radius:9px;font-size:13px}
.sb-team .sc{font-size:42px;font-weight:900;letter-spacing:-1px;font-variant-numeric:tabular-nums;line-height:1}
.sb-team .sc small{font-size:17px;color:var(--muted);font-weight:700}
.sb-team .sc .sc-1st{font-size:22px;color:var(--muted);font-weight:800;letter-spacing:0}
.sb-team .ov{font-size:12.5px;color:var(--muted);font-weight:600}
.sb-team.batting .sc{color:var(--accent)}
.sb-team .batflag{font-size:10px;font-weight:800;color:var(--accent);letter-spacing:1px;display:flex;align-items:center;gap:5px}
.sb-team.right .batflag{flex-direction:row-reverse}
.bat-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);animation:pulse 1.4s infinite}
.vs{width:46px;height:46px;border-radius:50%;background:var(--panel2);border:1px solid var(--line2);display:grid;place-items:center;font-size:12px;font-weight:800;color:var(--muted)}
.hero-result{margin-top:18px;padding:12px 16px;border-radius:12px;background:rgba(31,207,109,.1);border:1px solid rgba(31,207,109,.3);font-weight:800;font-size:14px;color:var(--accent);text-align:center}

/* COMPACT laptop/desktop hero — same content, BIGGER score/name text, ~20% less
   height by trimming the whitespace between sections (mobile keeps the airy layout). */
@media (min-width:1024px){
  .hero-inner{padding:13px 20px}
  .hero-band{height:4px}
  .hero-top{margin-bottom:9px}
  .scoreboard{gap:10px}
  .sb-team{gap:4px}
  .sb-team .nm{font-size:19px}                 /* team name up 17 → 19 */
  .sb-team .flag.lg{width:32px;height:32px}
  .sb-team .sc{font-size:47px;letter-spacing:-1.5px}   /* score up 42 → 47 */
  .sb-team .sc small{font-size:19px}
  .sb-team .ov{font-size:12px}
  .vs{width:40px;height:40px}              /* last-ball value up 18 → 19 */
  .thisover{margin-top:9px}
  .ball{width:29px;height:29px;font-size:12px}
  .hero-result,.hero-sched{margin-top:9px}
}

/* ball in play / last ball banner */

/* win probability */
.wp-bar{display:flex;height:30px;border-radius:8px;overflow:hidden;border:1px solid var(--line2)}
.wp-bar>div{display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:#06140b;transition:width .4s ease}
/* compact chase line inside the score widget (2nd innings) */
.chase-strip{margin-top:16px;padding:11px 16px;border-radius:12px;text-align:center;font-size:14px;font-weight:700;color:var(--muted);
  background:linear-gradient(90deg,rgba(255,181,46,.12),rgba(255,181,46,.05));border:1px solid rgba(255,181,46,.3)}
.chase-strip b{color:var(--txt);font-weight:800}
.chase-strip .cs-need{color:var(--amber);font-size:16px}
.chase-strip .cs-rrr{color:var(--accent)}
.chase-strip .cs-sep{color:var(--muted2);margin:0 3px}
/* "at this stage" comparison line — sits just under the chase strip */
.chase-cmp{margin-top:7px;text-align:center;font-size:12.5px;font-weight:700;color:var(--muted)}
.chase-cmp b{color:var(--txt);font-weight:800}
.chase-cmp .cc-lbl{font-size:10px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--muted2);margin-right:5px}
.chase-cmp .cc-ahead{color:var(--accent);font-weight:800}
.chase-cmp .cc-behind{color:#ff6b7d;font-weight:800}
.chase-cmp .cc-level{color:var(--amber);font-weight:800}
.card .chase-cmp{margin-top:12px}

/* toast */
.toast{position:fixed;left:50%;top:84px;transform:translateX(-50%) translateY(-12px);z-index:100;
  padding:12px 22px;border-radius:12px;font-weight:900;font-size:16px;letter-spacing:.5px;
  background:var(--panel2);border:1px solid var(--line2);color:var(--txt);box-shadow:var(--shadow);
  opacity:0;pointer-events:none;transition:.25s}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.toast.t-wkt{background:rgba(255,39,64,.92);border-color:transparent;color:#fff}
.toast.t-six{background:rgba(123,61,255,.92);border-color:transparent;color:#fff}
.toast.t-four{background:rgba(31,79,255,.92);border-color:transparent;color:#fff}

/* charts */
.donut-wrap{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.donut-legend{display:flex;flex-direction:column;gap:6px;flex:1;min-width:120px}
.lg-item{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);font-weight:600}
.lg-item i{width:11px;height:11px;border-radius:3px;flex:none}
.lg-item b{margin-left:auto;color:var(--txt);font-weight:800}

/* ball-by-ball commentary */
.cmt-card h3{display:flex;align-items:center}
.cmt-over{display:flex;justify-content:space-between;align-items:center;margin:14px 0 6px;padding:6px 10px;
  background:var(--panel2);border:1px solid var(--line2);border-radius:8px;font-size:11px;font-weight:800;
  letter-spacing:.5px;text-transform:uppercase;color:var(--muted)}
.cmt-over .cmt-osum{color:var(--accent)}
.cmt-crease{margin:2px 0 8px;padding:8px 12px;font-size:13.5px;color:var(--muted);background:rgba(31,207,109,.06);
  border:1px solid var(--line);border-radius:8px}
.cmt-crease b{color:var(--txt);font-weight:700}
.cmt-eo{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;margin:-2px 0 8px;padding:5px 10px;
  font-size:12.5px;color:var(--muted);border-left:2px solid var(--line2)}
.cmt-eo b{color:var(--txt);font-weight:700;font-variant-numeric:tabular-nums}
.cmt-eo .eo-b{font-variant-numeric:tabular-nums}
.cmt-eo .eo-maiden{font-size:11px;font-weight:800;color:var(--accent);border:1px solid var(--line2);border-radius:6px;padding:0 6px}
.cmt-txt b{color:var(--accent);font-weight:800}

/* live scorecard */
.sc-card h3{display:flex;align-items:center}
.sc-tbl{width:100%;border-collapse:collapse;font-size:16px;margin-top:4px}
.sc-tbl .sc-h th{text-align:right;font-size:11.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;
  color:var(--muted);padding:5px 4px;border-bottom:1px solid var(--line2)}
.sc-tbl .sc-h th:first-child{text-align:left}
.sc-tbl td{text-align:right;padding:10px 5px;font-weight:700;font-variant-numeric:tabular-nums;border-bottom:1px solid var(--line)}
.sc-tbl tr:last-child td{border-bottom:none}
.sc-tbl td.sc-nm{text-align:left;font-weight:700}
.sc-tbl td.sc-r{color:var(--accent);font-weight:800}
.sc-str{color:var(--accent)}
.sc-bowl{color:var(--blue)}
.sc-cnt{background:var(--panel2);border:1px solid var(--line2);border-radius:20px;padding:0 7px;font-size:9px;color:var(--muted)}
.sc-tbl tr.sc-live-row td{background:rgba(31,207,109,.06)}
.sc-str{font-size:10px;color:var(--accent);font-weight:700;margin-left:6px}
/* derived extras row — muted, sits under the batting list like a real scorecard */
.sc-tbl tr.sc-extras td{background:rgba(138,148,179,.06);border-top:1px solid var(--line2)}
.sc-tbl tr.sc-extras td.sc-r{color:var(--txt)}
.sc-xlabel{font-size:12px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--muted)}
.sc-xdetail{font-size:12px;font-weight:700;color:var(--muted2)}
/* current partnership pill + fall-of-wickets line under the batting card */
.sc-partnership{margin:10px 2px 0;padding:8px 12px;border-radius:9px;font-size:12.5px;font-weight:700;color:var(--txt);
  background:linear-gradient(135deg,rgba(61,139,255,.14),rgba(52,211,153,.10));border:1px solid var(--line2)}
.sc-partnership b{color:var(--accent);font-weight:900}
.sc-fow{margin:10px 2px 0;padding-top:9px;border-top:1px solid var(--line2)}
.sc-fow .fow-lbl{display:block;font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--muted);margin-bottom:5px}
.sc-fow .fow-list{display:flex;flex-wrap:wrap;gap:6px 10px}
.sc-fow .fow-i{font-size:12px;color:var(--muted)}
.sc-fow .fow-i b{color:var(--txt);font-weight:800}
.sc-fow .fow-i i{font-style:normal;color:var(--muted2)}
.sc-out{font-size:9px;color:var(--muted2);font-weight:700;margin-left:6px;text-transform:uppercase;letter-spacing:.5px;
  border:1px solid var(--line2);border-radius:5px;padding:0 5px}
/* status chips at the top-right of the hero (space-saver vs the big bars) */
.hero-topright{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.hero-chips{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.hchip{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:800;color:var(--txt);
  background:rgba(61,139,255,.14);border:1px solid rgba(61,139,255,.30);border-radius:20px;padding:4px 11px}
.hchip-day{background:rgba(155,107,255,.16);border-color:rgba(155,107,255,.34);color:var(--purple)}
/* compact current batters + bowler line inside the sticky hero */
/* lower detail tabs: compact so they fit on one row */
.lower-tabs{display:flex;gap:7px;margin:2px 0 14px;flex-wrap:wrap}
.dtab{display:flex;align-items:center;gap:6px;cursor:pointer;font-family:inherit;font-size:12.5px;font-weight:800;
  color:var(--muted);background:linear-gradient(180deg,var(--panel),var(--bg2));border:1px solid var(--line);
  padding:8px 12px;border-radius:11px;transition:.16s;white-space:nowrap}
.dtab:hover{color:var(--txt);border-color:var(--line2);transform:translateY(-1px)}
/* Unread count on Chat / Discussion. ABSOLUTE on purpose: 7 tabs already need ~724px in a
   ~700px column, so an inline badge would widen the tab and can wrap the row to two lines —
   which is exactly what pushed the phone chat input below the fold once before. This adds
   ZERO width. `.dtab` needs position:relative for it to anchor. */
.dtab{position:relative}
.dtab-unread{position:absolute;top:1px;right:1px;min-width:15px;height:15px;padding:0 3px;   /* inside the corner on every screen (sticking out read as overflow) */
  display:flex;align-items:center;justify-content:center;box-sizing:border-box;
  background:var(--red);color:#fff;font-size:9.5px;font-weight:900;line-height:1;
  border-radius:9px;border:1.5px solid var(--bg);pointer-events:none;
  animation:unreadPop .18s ease-out}
@keyframes unreadPop{from{transform:scale(.5);opacity:0}to{transform:scale(1);opacity:1}}
.dtab .dtab-ic{filter:grayscale(.3)}
/* sub-tabs within an innings (Batting / Bowling / Commentary / Overs / Charts) */
.sub-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 14px;padding:5px;border-radius:12px;
  background:var(--panel2);border:1px solid var(--line)}
.stab{display:flex;align-items:center;gap:6px;cursor:pointer;font-family:inherit;font-size:12px;font-weight:800;
  color:var(--muted);background:transparent;border:1px solid transparent;padding:7px 12px;border-radius:9px;transition:.14s;white-space:nowrap;flex:1;justify-content:center}
.stab:hover{color:var(--txt)}
.stab.on{color:#08210f;background:linear-gradient(135deg,var(--accent),var(--accent2));border-color:transparent}
.sub-panel{animation:fadein .18s ease}
/* innings-total placeholder (when we don't have the full card for that innings) */
.inn-total{text-align:center;padding:26px 14px}
.inn-total-score{font-size:34px;font-weight:900;color:var(--accent);font-variant-numeric:tabular-nums}
.inn-total-score small{font-size:15px;color:var(--muted);font-weight:700}
.inn-total-note{margin-top:10px;font-size:12.5px;color:var(--muted2)}
/* per-tab accent colours (visible active state) */
.dtab-inns0.on{border-color:#1fcf6d;color:#7ff0ad;box-shadow:0 0 0 1px #1fcf6d,0 8px 22px rgba(31,207,109,.16)}
.dtab-inns1.on{border-color:#3d8bff;color:#8fbaff;box-shadow:0 0 0 1px #3d8bff,0 8px 22px rgba(61,139,255,.16)}
.dtab-inns2.on{border-color:#2fd9c8;color:#7fe9dd;box-shadow:0 0 0 1px #2fd9c8,0 8px 22px rgba(47,217,200,.16)}
.dtab-inns3.on{border-color:#ffb52e;color:#ffce6e;box-shadow:0 0 0 1px #ffb52e,0 8px 22px rgba(255,181,46,.16)}
.dtab-batting.on{border-color:#1fcf6d;color:#7ff0ad;box-shadow:0 0 0 1px #1fcf6d,0 8px 22px rgba(31,207,109,.16)}
.dtab-bowling.on{border-color:#3d8bff;color:#8fbaff;box-shadow:0 0 0 1px #3d8bff,0 8px 22px rgba(61,139,255,.16)}
.dtab-commentary.on{border-color:#b06bff;color:#cfa8ff;box-shadow:0 0 0 1px #b06bff,0 8px 22px rgba(176,107,255,.16)}
.dtab-overs.on{border-color:#ffb52e;color:#ffce6e;box-shadow:0 0 0 1px #ffb52e,0 8px 22px rgba(255,181,46,.16)}
.dtab-proj.on{border-color:#ff6ea6;color:#ff9cc4;box-shadow:0 0 0 1px #ff6ea6,0 8px 22px rgba(255,110,166,.16)}
.dtab-charts.on{border-color:#2fd9c8;color:#7fe9dd;box-shadow:0 0 0 1px #2fd9c8,0 8px 22px rgba(47,217,200,.16)}
.dtab-chat.on{border-color:#b06bff;color:#cfa8ff;box-shadow:0 0 0 1px #b06bff,0 8px 22px rgba(176,107,255,.16)}
/* match chat */
.chat-list{display:flex;flex-direction:column;gap:8px;max-height:360px;overflow-y:auto;margin:4px 0 12px;padding-right:4px}
.chat-empty{color:var(--muted2);font-size:13px;text-align:center;padding:26px 10px}
.chat-msg{display:flex;align-items:baseline;gap:8px;padding:8px 11px;background:var(--panel2);border:1px solid var(--line);border-radius:10px}
.chat-msg .chat-u{font-size:11px;font-weight:800;color:var(--blue);flex:none}
.chat-msg.mine{background:rgba(31,207,109,.08);border-color:rgba(31,207,109,.35)}
.chat-msg.mine .chat-u{color:var(--accent)}
/* the above-input scoreboard is a phone-only thing (desktop keeps the hero on screen) */
.mini-score{display:none}
/* "as [your name]" editable handle in the chat header */
.chat-name-wrap{margin-left:auto;display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;color:var(--muted2);text-transform:none;letter-spacing:0}
.chat-name{width:120px;padding:4px 9px;border-radius:7px;background:var(--panel2);border:1px solid var(--line2);
  color:var(--accent);font-family:inherit;font-size:12.5px;font-weight:800;outline:none}
/* global chat: let the name field grow into the space freed by the shorter title */
.gchat-head .chat-name-wrap{flex:1;min-width:0;margin-left:6px}
.gchat-head .chat-name{flex:1;width:auto;min-width:100px}
.chat-name:focus{border-color:var(--accent)}
.chat-name::placeholder{color:var(--muted2);font-weight:600}
.chat-msg .chat-t{font-size:14px;color:var(--txt);flex:1;word-break:break-word;overflow-wrap:anywhere}
.chat-msg .chat-ts{font-size:10px;color:var(--muted2);flex:none}
.chat-input-row{display:flex;gap:8px;align-items:flex-end;flex-wrap:nowrap}
/* min-width:0 lets the input shrink so the Send button never gets pushed off / chopped.
   As a textarea it grows with the text (JS caps the height) — YouTube-style. */
.chat-input{flex:1 1 0;min-width:0;padding:11px 14px;border-radius:10px;background:var(--panel2);border:1px solid var(--line2);color:var(--txt);font-family:inherit;font-size:14px;outline:none;
  resize:none;line-height:1.45;min-height:46px;max-height:110px;overflow-y:auto;display:block;box-sizing:border-box}
/* rows="1" reserves less than line-height:1.45 needs, so text clipped at the bottom — the
   min-height (one full line + padding) fixes it. The empty status note below added a gap. */
.chat-note:empty{display:none;margin:0;padding:0;min-height:0}
.chat-input:focus{border-color:var(--accent)}
.chat-input::placeholder{color:var(--muted2)}
.chat-send{flex:none;padding:11px 20px;border-radius:10px;border:none;cursor:pointer;font-family:inherit;font-size:14px;font-weight:800;color:#08210f;background:linear-gradient(135deg,var(--accent),var(--accent2))}
.chat-send:hover{filter:brightness(1.08)}
.chat-note{min-height:16px;margin-top:8px;font-size:12px;color:var(--muted2)}
.chat-note.warn{color:#ff6b81;font-weight:700}

/* ---- Recent-overs strip — last several overs, ball-by-ball, scrollable ---- */
.recent-overs{margin:10px 0 2px}
.info-strip .recent-overs{margin:0;padding:10px 16px}
.info-strip .recent-overs + .wp-strip,
.info-strip .recent-overs + .proj-rates{border-top:1px solid var(--line)}
.ro-label{display:block;font-size:10px;font-weight:900;letter-spacing:1px;color:var(--muted2);margin:0 0 6px}
.ro-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.ro-scroll::-webkit-scrollbar{display:none}
.ro-track{display:inline-flex;gap:8px;align-items:stretch}
.ro-over{flex:none;display:flex;align-items:center;gap:6px;background:var(--panel2);border:1px solid var(--line);
  border-radius:10px;padding:6px 9px}
.ro-ov{flex:none;font-size:10.5px;font-weight:800;color:var(--muted2);letter-spacing:.3px}
.ro-balls{display:flex;gap:4px}
.ro-b{min-width:22px;height:22px;padding:0 5px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:800;background:var(--panel);border:1px solid var(--line2);color:var(--txt)}
.ro-b.r4{background:rgba(61,139,255,.18);border-color:transparent;color:#7db4ff}
.ro-b.r6{background:rgba(139,92,246,.22);border-color:transparent;color:#c4b5fd}
.ro-b.w{background:rgba(255,71,87,.22);border-color:transparent;color:#ff8a96}
.ro-b.extra{background:rgba(245,158,11,.18);border-color:transparent;color:var(--amber)}
.ro-b.dot{color:var(--muted2)}
.ro-eq{font-size:10px;font-weight:700;color:var(--muted2)}
.ro-tot{flex:none;font-size:13px;font-weight:900;color:var(--txt);font-variant-numeric:tabular-nums;min-width:16px;text-align:center}

/* ---- Live scores inside the GLOBAL chat (it's the "following everything" room) ---- */
.gsp-row{display:flex;flex-direction:column;gap:2px;padding:8px 11px;text-decoration:none;cursor:pointer;
  border-bottom:1px solid var(--line)}
.gsp-row:last-child{border-bottom:none}
.gsp-row:active,.gsp-row:hover{background:var(--panel)}

/* ---- Live-scores ticker (phone focused view only) ---- */
#focusTop,#liveTickerBar{display:none}   /* pause while a finger is down, so items are tappable */
/* the state tail: chase target / RRR, or the Test lead-trail */
@keyframes lt-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.dtab.on{color:var(--txt)}
.lower-panel{animation:fadein .18s ease}
@keyframes fadein{from{opacity:.35}to{opacity:1}}
/* slim one-line projection strip */
/* combined win-prob + projection: one card, a divider between the two sections */
.info-strip{margin:0 0 16px;background:linear-gradient(180deg,var(--panel),var(--bg2));border:1px solid var(--line);border-radius:14px;overflow:hidden}
.info-strip .wp-strip{margin:0;background:none;border:none;border-radius:0}


/* run-rate projection strip — "PROJ 261  @5.23 261 · @6.00 275 · …" */
/* SLIM projection row — was a 22px headline with 16px cells on 10/16 padding, which made it
   as tall as the win-prob block. One tight line now; the numbers still read at a glance. */
.proj-rates{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 16px;padding:6px 14px;
  background:linear-gradient(180deg,var(--panel),var(--bg2));border:1px solid var(--line);border-radius:14px}
.pjr-ttl{font-size:9.5px;font-weight:900;letter-spacing:1px;text-transform:uppercase;color:var(--amber);flex:none}
.pjr-ov{font-size:9.5px;font-weight:800;letter-spacing:.3px;text-transform:uppercase;color:var(--muted);flex:none}
.pjr-head{font-size:16px;font-weight:900;color:var(--txt);font-variant-numeric:tabular-nums;line-height:1;flex:none}
.pjr-cells{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;flex:1}
.pjr-cell{display:inline-flex;align-items:baseline;gap:4px}
.pjr-cell .pjr-at{font-size:9.5px;font-weight:700;color:var(--muted)}
.pjr-cell b{font-size:12.5px;font-weight:900;color:var(--txt);font-variant-numeric:tabular-nums}
.pjr-dot{color:var(--muted2);font-weight:900}
/* dividers when stacked inside the combined info card */
.info-strip .proj-rates{margin:0;background:none;border:none;border-radius:0}
.info-strip .wp-strip + .proj-rates{border-top:1px solid var(--line)}
@media(max-width:560px){.proj-rates{gap:8px}.pjr-cells{gap:7px}.pjr-head{font-size:15px}}

/* per-match chat: compact always-on widget — ~5 messages, scroll for more */
.chat-card .chat-list{max-height:352px}
.chat-mini{grid-column:1/-1}
.chat-mini .chat-list{max-height:230px}

/* compact phone scoreboard — hidden on desktop, shown only in the phone shell */
.mscore{display:none}

/* Global chat — static right-side column (YouTube-style), always visible.
   Fixed heights (not vh) because the board is zoomed, which distorts vh. */
.gchat{display:flex;flex-direction:column;background:linear-gradient(180deg,var(--panel),var(--bg2));
  border:1px solid var(--line2);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}
.gchat-head{display:flex;align-items:center;gap:9px;padding:11px 14px;user-select:none;flex:none;
  background:linear-gradient(135deg,rgba(176,107,255,.16),rgba(61,139,255,.10));border-bottom:1px solid var(--line)}
.gchat-ttl{font-size:13.5px;font-weight:800;color:var(--txt);flex:none;white-space:nowrap}
.gchat-presence{display:flex;align-items:center;gap:12px;padding:7px 16px;flex:none;font-size:11.5px;font-weight:700;
  border-bottom:1px solid var(--line);color:var(--muted)}
.gchat-presence .pz-on{color:var(--accent)}
.gchat-body{display:flex;flex-direction:column;padding:12px 14px 14px}
.gchat-list{max-height:440px;margin-bottom:10px}
.gchat .chat-msg{font-size:13px}
.gchat .chat-input{font-size:14px;padding:9px 12px;min-height:40px}
.gchat .chat-send{padding:9px 16px;font-size:13px}
/* iOS auto-zooms (and drags the whole page sideways → the clipping you saw) whenever a
   focused input's font-size is under 16px. On phones we force EVERY chat/search field to
   16px so tapping the message box never zooms. Compactness comes from padding, not font. */
@media(max-width:820px){
  .chat-input,.gchat .chat-input,.chat-name,.gchat-head .chat-name,.search,.landing-bar .search{font-size:16px}
}
/* Back button in the phone chat sheet — gives a clear way out when the keyboard hides the
   bottom bar. Hidden on desktop (the column is always visible there). */
.gchat-back{display:none;flex:none;align-items:center;gap:3px;height:32px;margin:-2px 4px -2px -4px;padding:0 10px 0 6px;
  border:1px solid var(--line2);background:var(--panel2);color:var(--txt);font-size:15px;font-weight:700;line-height:1;cursor:pointer;border-radius:9px}
.gchat-back .gb-ar{font-size:20px;line-height:1;margin-top:-1px}
.gchat-back:active{background:var(--line2)}
body.chat-drawer-open .gchat-back{display:inline-flex;justify-content:center}
/* In the phone chat sheet, show the scrolling live-matches ticker — NOT a single match's
   poll. The poll stays on desktop, where it sits beside the global chat column. */
body.chat-drawer-open #gchatPoll{display:none}
/* SLIM win-probability strip — one line of labels over a thin bar. Sizes here were roughly
   double: 16px label / 16px %, 12px bar and 12/16 padding stacked to a tall block. The win %
   is still the most prominent thing in the row, just not a whole panel's worth of height. */
.wp-strip{margin:0 0 16px;padding:7px 14px;background:linear-gradient(180deg,var(--panel),var(--bg2));border:1px solid var(--line);border-radius:14px}
.wp-strip-legend{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:700;color:var(--muted);margin-bottom:5px}
.wp-strip-legend b{color:var(--txt)}
.wp-strip-legend i{display:inline-block;width:8px;height:8px;border-radius:3px;margin:0 5px;vertical-align:middle}
.wp-strip .wp-mid{font-size:9px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--muted2)}
.wp-strip .wp-bar{height:7px;border-radius:5px}
.wp-strip-legend b{font-size:13px;font-variant-numeric:tabular-nums}
body.mobile-detail-open .wp-strip-legend{font-size:11px}
body.mobile-detail-open .wp-strip-legend b{font-size:13.5px}
body.mobile-detail-open .wp-strip .wp-bar{height:8px}
.sc-bowl{font-size:10px;color:var(--blue);font-weight:700;margin-left:6px}
.cmt-bowl{color:var(--blue);text-transform:none;letter-spacing:0}
/* ── mobile chat drawer: FAB + slide-up bottom sheet (desktop unaffected) ─────── */
.chat-fab,.chat-drawer-backdrop{display:none}
.chat-fab-dot{display:none}
/* slim live-score bar — shown only inside the mobile chat drawer */
@media(max-width:980px){
  .chat-fab{display:flex;align-items:center;justify-content:center;position:fixed;right:16px;bottom:16px;z-index:250;
    width:54px;height:54px;border-radius:50%;border:none;cursor:pointer;font-size:24px;
    background:linear-gradient(135deg,var(--purple),var(--blue));color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.42)}
  body.mobile-detail-open .chat-fab{bottom:76px}   /* clear the phone bottom tab bar */
  .chat-fab-dot{position:absolute;top:9px;right:11px;width:12px;height:12px;border-radius:50%;background:var(--live);border:2px solid #1a1030}
  .chat-drawer-backdrop{position:fixed;inset:0;z-index:290;background:rgba(0,0,0,.55)}
  body.chat-drawer-open .chat-drawer-backdrop{display:block}
  body.chat-drawer-open .chat-fab{display:none}
}
/* The chat drawer's layout — used on phones/tablets AND (20 Oct) as the website's Chat page.
   Every rule needs body.chat-drawer-open, which a computer never had before, so desktop is unchanged
   until someone opens Chat from the top menu. Geometry for computers is overridden just below. */
  /* ══ Global chat uses the SAME pinned shell as the match chat ═════════════════
     It used to be an 82vh bottom sheet: vh doesn't shrink for the keyboard, so the
     input ended up behind it, and the page underneath could still scroll and jump.
     Now it's pinned to the VISUAL viewport (height --vvh, shifted by --vvo) with the
     body locked, exactly like the match chat — tabs on top, messages scrolling in the
     middle, live scores + input pinned at the bottom. Nothing moves. */
  body.chat-drawer-open{overflow:hidden}
  /* The bottom bar STAYS visible while chat is open — its Chat button lights up and tapping
     it again closes the chat (open/close toggle, the standard mobile pattern). No ✕ needed.
     The shell sits ABOVE the bar; when the keyboard is up the bar hides itself, so the shell
     takes the full height then. */
  body.chat-drawer-open .chat-col{display:flex;flex-direction:column;position:fixed;left:0;right:0;top:0;bottom:auto;
    z-index:300;height:calc(var(--vvh,100dvh) - 58px);transform:translateY(var(--vvo,0px));
    margin:0;padding:8px 10px 8px;
    background:var(--bg2);border-top:none;border-radius:0;box-shadow:none;overflow:hidden;
    animation:sheetUp .2s ease-out}
  body.kb-open.chat-drawer-open .chat-col{height:var(--vvh,100dvh);padding-bottom:calc(env(safe-area-inset-bottom) + 8px)}
  body.chat-drawer-open #gchatPoll{flex:none}
  body.chat-drawer-open .gchat{flex:1;min-height:0;display:flex;flex-direction:column;
    background:none;border:none;border-radius:0}
  body.chat-drawer-open .chat-tabs{flex:none;position:relative}
  body.chat-drawer-open .gchat-head,
  body.chat-drawer-open .gchat-presence{flex:none}
  body.chat-drawer-open .gchat-body{flex:1;min-height:0;display:flex;flex-direction:column;padding:0}
  /* ONLY the message list scrolls */
  body.chat-drawer-open .gchat-list{flex:1 1 0;min-height:0;max-height:none;overflow-y:auto;
    -webkit-overflow-scrolling:touch;overscroll-behavior:contain;display:flex;flex-direction:column}
  body.chat-drawer-open .gchat-list::before{content:"";margin-top:auto}   /* newest sit at the bottom */
  /* live scores + input pinned at the bottom, like the score in the match chat */
  body.chat-drawer-open .chat-input-row{flex:none}
  body.chat-drawer-open .chat-note:empty{display:none;margin:0}
  /* keyboard up: shrink the scores list rather than losing it */
  body.chat-tight.chat-drawer-open .gsp-row{padding:6px 11px}
  /* SWIPEABLE live-score cards pinned below the head in the global chat; messages scroll below.
     This replaced a one-line auto-scrolling marquee — see globalSwipeHTML() for why. */
  body.chat-drawer-open .gsw{flex:none;margin:6px 0 2px;max-width:100%}
  body.chat-drawer-open .gsw:empty{display:none}
  /* KEYBOARD UP: the score card keeps EVERYTHING — this over's balls included.
     It used to drop .msl-over and .msl-chase here, which threw away the single most-wanted
     line ("when I start typing I'm missing the overs balls") to buy ~31px. The height comes
     out of the CHROME instead: "Global | Group" was 44px and the Back/name/count row 49px,
     93px of furniture sitting above a 120px scoreboard. Shrinking those two pays for the
     over strip almost exactly, so nothing is lost and the card gains a row.
     Dots go, and only they: while you are typing you are not swiping. */
  body.chat-tight.chat-drawer-open .gsw-dots{display:none}

  /* --- compact chat chrome so the scoreboard can stay whole --- */
  body.chat-drawer-open .chat-tabs{padding:5px 8px 0;gap:4px}
  body.chat-drawer-open .chat-tab{font-size:11.5px;padding:6px 6px;gap:4px}
  body.chat-tight.chat-drawer-open .chat-tabs{padding:3px 8px 0}
  body.chat-tight.chat-drawer-open .chat-tab{font-size:11px;padding:4px 6px}
  body.chat-tight.chat-drawer-open .gchat-head{padding:5px 11px;gap:7px}
  body.chat-tight.chat-drawer-open .gchat-back{height:26px;padding:0 8px 0 5px;font-size:12.5px}
  body.chat-tight.chat-drawer-open .gchat-back .gb-ar{font-size:16px}
  /* The name field keeps 16px — anything smaller and iOS zooms the whole page on focus
     (see the .chat-input/.chat-name 16px rule). Height comes from padding only. */
  body.chat-tight.chat-drawer-open .chat-name{padding:2px 8px}
  body.chat-tight.chat-drawer-open .chat-name-wrap{font-size:10px;gap:4px}
  body.chat-tight.chat-drawer-open .gchat-presence{font-size:10.5px;gap:8px}

  /* ── ONE merged chrome row on phone ──────────────────────────────────────────────
     Back, the two tabs, the name field and the online count all share the tab row, and
     globalChatBody() stops emitting .gchat-head entirely. Two rows of furniture (29 + 37px)
     become one, and the scoreboard below keeps every line it has.
     Back loses its "Back" label — the ‹ chevron carries it, and the bottom nav is the other
     way out — but stays a 30px target rather than shrinking to the glyph. */
  body.chat-drawer-open .chat-tabs-merged{align-items:center;gap:5px;padding:5px 8px 0}
  body.chat-drawer-open .chat-tabs-merged .gchat-back{width:30px;height:30px;flex:0 0 auto;
    margin:0;padding:0;border-radius:8px;justify-content:center}
  body.chat-drawer-open .chat-tabs-merged .gchat-back .gb-ar{font-size:19px;margin:0}
  body.chat-drawer-open .chat-tabs-merged .chat-tab{flex:1 1 0;min-width:0;white-space:nowrap;
    font-size:11.5px;padding:6px 4px;gap:4px}
  body.chat-drawer-open .chat-tabs-merged .chat-name-wrap{flex:0 0 auto;margin:0;gap:0}
  body.chat-drawer-open .chat-tabs-merged .chat-name{min-width:0;padding:3px 8px}   /* width: see the .chat-tabs .chat-name rule below */
  body.chat-drawer-open .chat-tabs-merged .gchat-presence{flex:0 0 auto;padding:0;gap:0;
    border:none;background:none;font-size:10.5px;white-space:nowrap}
  body.chat-tight.chat-drawer-open .chat-tabs-merged{padding:3px 8px 0}
  body.chat-tight.chat-drawer-open .chat-tabs-merged .gchat-back{width:27px;height:27px}
  body.chat-tight.chat-drawer-open .chat-tabs-merged .chat-tab{font-size:11px;padding:4px 4px}
  /* Tighten the card's own gutters too — this removes WHITESPACE, never a row, so the
     over strip and the chase line both survive at a smaller total height. */
  body.chat-tight.chat-drawer-open .gsw .mini-score{padding:6px 10px}
  body.chat-tight.chat-drawer-open .gsw .mini-score .msl-players,
  body.chat-tight.chat-drawer-open .gsw .mini-score .msl-over,
  body.chat-tight.chat-drawer-open .gsw .mini-score .msl-chase{margin-top:4px;padding-top:4px}
  /* name + online + count all on ONE row, so the cards below get more room */
  body.chat-drawer-open .gchat-head{flex-wrap:nowrap;gap:8px;padding:9px 12px}
  body.chat-drawer-open .gchat-head .chat-name-wrap{flex:1 1 auto;min-width:0}
  body.chat-drawer-open .gchat-head .chat-name{min-width:0;width:100%}
  body.chat-drawer-open .gchat-presence{flex:none;padding:0;font-size:11px;border:none;background:none}
/* ticker containment (all viewports) — the track is intentionally wider than the screen
   and must be clipped by its view, never leak out to scroll the page sideways */

/* ── Swipeable live-score cards (phone global chat) ──────────────────────────────
   One match per card, swipe for the next. `scroll-snap-type:x mandatory` does the whole
   gesture natively, so momentum and rubber-banding are iOS's own rather than something we
   re-implement badly on touch events. The cards are 91% wide ON PURPOSE: the sliver of the
   next card peeking in at the right edge is what tells you it swipes — far clearer than any
   arrow, and it costs no height. The LAST card snaps to `end` rather than `start`: its start
   position sits past maxScroll and so is unreachable, which left the final match parked 10px
   short of the edge for ever. Snapping it to the end makes its snap point exactly maxScroll. */
.gsw-track{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.gsw-track::-webkit-scrollbar{display:none}
.gsw-card{flex:0 0 91%;scroll-snap-align:start;min-width:0;cursor:pointer;
  -webkit-tap-highlight-color:transparent;text-decoration:none}
.gsw-card:last-child{scroll-snap-align:end}
/* .mini-score defaults to display:none; this is more specific, so it wins wherever it sits */
.gsw .mini-score{display:block;margin:0;padding:9px 12px;border-radius:13px;
  background:linear-gradient(180deg,var(--panel2),var(--bg2));border:1px solid var(--line2)}
/* Smaller than the match-page copy — this one shares the screen with the chat it sits above,
   so it buys its place in height. Everything still reads at arm's length. */
.gsw .mini-score .msl-teams{font-size:17px;gap:7px}
.gsw .mini-score .msl-team i{font-size:12.5px}
.gsw .mini-score .msl-players{font-size:12.5px;gap:10px;margin-top:5px;padding-top:5px}
.gsw .mini-score .msl-players i{font-size:11.5px}
.gsw .mini-score .msl-over{margin-top:5px;padding-top:5px;gap:6px}
.gsw .mini-score .msl-ovl{font-size:10.5px}
.gsw .mini-score .msl-b{min-width:21px;height:21px;font-size:11.5px;border-radius:6px}
.gsw .mini-score .msl-last,.gsw .mini-score .msl-chase{font-size:12px}
.gsw .mini-score .msl-chase{margin-top:5px;padding-top:5px}
/* Position dots. The active one stretches into a bar instead of just recolouring, so it reads
   at a glance on a dark panel where a 5px colour change would not. */
.gsw-dots{display:flex;justify-content:center;align-items:center;gap:5px;margin-top:6px}
.gsw-dot{width:5px;height:5px;border-radius:50%;background:var(--line2);
  transition:width .16s ease,background .16s ease}
.gsw-dot.on{width:15px;border-radius:3px;background:var(--accent)}
@keyframes sheetUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
/* In a match on a phone, a Chat button sits beside the Home button and opens the same
   drawer — so the floating FAB is hidden there (it stays on the landing page). */
@media(max-width:820px){
  body.mobile-detail-open .chat-fab{display:none}
}
/* in-match Chat-tab switcher (Match | Global | Group) + its sub-header */
.mchat-tabs{padding:0;margin:8px 0 0}
.mchat-sub{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0 6px;font-size:12px;color:var(--muted)}
.mchat-sub .sc-cnt{font-weight:800}
/* right-column chat tabs (Global | Group) */
.chat-tabs{display:flex;gap:6px;padding:8px 10px 0}
.chat-tab{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:12.5px;font-weight:800;
  padding:8px 6px;border-radius:9px 9px 0 0;cursor:pointer;background:transparent;border:1px solid transparent;
  color:var(--muted);border-bottom:2px solid transparent}
.chat-tab:hover{color:var(--txt)}
.chat-tab.on{color:var(--txt);background:var(--panel2);border-bottom-color:var(--purple)}
.ct-dot{width:7px;height:7px;border-radius:50%;background:var(--purple);animation:pulse 1.4s infinite}
/* friends group inside the Group tab */
.grp-head-tab .grp-code{margin-left:2px}
.grp-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:800;letter-spacing:1px;font-size:12px;color:var(--purple);background:rgba(155,107,255,.14);border:1px solid rgba(155,107,255,.34);border-radius:6px;padding:1px 7px}
.grp-btn{font-size:12px;font-weight:800;padding:4px 9px;border-radius:8px;cursor:pointer;background:var(--panel2);border:1px solid var(--line2);color:var(--txt)}
.grp-btn:hover{border-color:var(--purple)}.grp-head-tab .grp-leave{margin-left:auto;color:var(--muted)}
.grp-note{font-size:11px;color:var(--muted2);padding:0 14px 8px}
.grp-setup{gap:10px}
.grp-hint{font-size:12px;color:var(--muted);padding:4px 0 8px}
.grp-create,.grp-join{display:flex;gap:8px;margin-top:6px}
.grp-create .chat-input,.grp-join .chat-input{flex:1}
/* big-moment celebration pop-up (four / six / wicket) */
.event-pop{position:fixed;left:50%;top:38%;transform:translate(-50%,-50%) scale(.4);z-index:9999;
  pointer-events:none;font-weight:900;font-size:min(14vw,120px);letter-spacing:1px;white-space:nowrap;
  text-shadow:0 6px 30px rgba(0,0,0,.55);animation:eventPop 1.7s cubic-bezier(.2,1.3,.3,1) forwards}
.event-pop.pop-four{color:#3d8bff}
.event-pop.pop-six{color:#9b6bff}
.event-pop.pop-wkt{color:#ff495f}
@keyframes eventPop{
  0%{transform:translate(-50%,-50%) scale(.3);opacity:0}
  15%{transform:translate(-50%,-50%) scale(1.15);opacity:1}
  30%{transform:translate(-50%,-50%) scale(1)}
  75%{transform:translate(-50%,-50%) scale(1);opacity:1}
  100%{transform:translate(-50%,-58%) scale(.95);opacity:0}}
@media(prefers-reduced-motion:reduce){.event-pop{animation-duration:.9s}}
.cmt-figs{color:var(--muted);font-size:11.5px;font-weight:800;font-variant-numeric:tabular-nums;background:var(--panel2);border:1px solid var(--line2);border-radius:6px;padding:1px 6px;margin-left:2px}
.over-mid{flex:1;display:flex;flex-direction:column;gap:5px}
.over-bowler{font-size:12.5px;font-weight:700;color:var(--blue);text-transform:none;letter-spacing:0}
.cmt-card .cmt-row{display:flex;align-items:center;gap:12px;padding:11px 2px;border-bottom:1px solid var(--line);font-size:14px}
.cmt-card .cmt-row:last-child{border-bottom:none}
.cmt-ov{flex:none;width:42px;font-size:13px;font-weight:800;color:var(--muted);font-variant-numeric:tabular-nums}
.cmt-txt{font-size:13px;color:var(--txt)}
.cmt-desc{display:block;margin-top:2px;font-size:12px;line-height:1.4;color:var(--muted);font-weight:400}
.cmt-txt b{font-weight:700}
/* commentary event highlights */
.cmt-row{border-left:3px solid transparent;padding-left:8px;border-radius:0 6px 6px 0}
.cmt-row.cmt-wkt{background:rgba(255,39,64,.10);border-left-color:var(--red)}
.cmt-row.cmt-six{background:rgba(123,61,255,.10);border-left-color:var(--purple)}
.cmt-row.cmt-four{background:rgba(31,79,255,.10);border-left-color:var(--blue)}
.cmt-row.cmt-dot{opacity:.72}
.cmt-row.cmt-new{animation:cmtflash 1.1s ease-out}
@keyframes cmtflash{0%{background:rgba(31,207,109,.35)}100%{background:transparent}}
.cmt-ms{margin:6px 0;padding:7px 12px;border-radius:8px;font-size:12.5px;font-weight:800;
  background:rgba(31,207,109,.12);border:1px solid rgba(31,207,109,.3);color:var(--accent)}
.phase{font-size:9px;font-weight:800;letter-spacing:.5px;padding:2px 6px;border-radius:5px;text-transform:uppercase}
.phase-pp{background:rgba(31,207,109,.16);color:var(--accent)}
.phase-death{background:rgba(255,73,95,.16);color:#ff8a96}

/* this over */
.thisover{margin-top:14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.thisover .ttl{font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}
.balls{display:flex;gap:8px;flex-wrap:wrap}
.ball{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:12.5px;font-weight:800;background:var(--panel2);border:1px solid var(--line2);animation:popin .35s ease-out}
@keyframes popin{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}
.ball.r4,.b-mini.r4,.msp-ball.r4,.msl-b.r4{background:linear-gradient(135deg,#1f4fff,#3d8bff);color:#fff;border-color:transparent}
.ball.r6,.b-mini.r6,.msp-ball.r6,.msl-b.r6{background:linear-gradient(135deg,#7b3dff,#9b6bff);color:#fff;border-color:transparent}
.ball.w,.b-mini.w,.msp-ball.w,.msl-b.w{background:linear-gradient(135deg,#ff2740,#ff495f);color:#fff;border-color:transparent}
.ball.extra,.b-mini.extra,.msp-ball.extra,.msl-b.extra{background:rgba(255,181,46,.16);color:var(--amber);border-color:rgba(255,181,46,.4)}
.ball.dot,.b-mini.dot,.msp-ball.dot,.msl-b.dot{color:var(--muted)}
/* last 2 completed overs, compact, sitting beside "This Over" in the score widget */
.prevovers{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-left:12px;margin-left:2px;border-left:1px solid var(--line2)}
.po-over{display:inline-flex;align-items:center;gap:3px}
.po-ov{font-size:9.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--muted2);margin-right:3px}
.po-b{min-width:18px;height:18px;padding:0 4px;border-radius:5px;display:inline-grid;place-items:center;font-size:10px;font-weight:800;background:var(--panel2);border:1px solid var(--line2)}
.po-b.r4{background:linear-gradient(135deg,#1f4fff,#3d8bff);color:#fff;border-color:transparent}
.po-b.r6{background:linear-gradient(135deg,#7b3dff,#9b6bff);color:#fff;border-color:transparent}
.po-b.w{background:linear-gradient(135deg,#ff2740,#ff495f);color:#fff;border-color:transparent}
.po-b.extra{background:rgba(255,181,46,.16);color:var(--amber);border-color:rgba(255,181,46,.4)}
.po-b.dot{color:var(--muted)}
.po-eq{color:var(--muted2);font-weight:700;font-size:10px;margin:0 1px}
.po-tot{font-size:12.5px;font-weight:900;color:var(--txt)}

/* a spinning red cricket ball — shown while a delivery is in play */
.roll-ball{display:inline-block;width:15px;height:15px;border-radius:50%;vertical-align:middle;position:relative;
  background:radial-gradient(circle at 32% 30%,#ff6a6a,#c81836 78%);
  box-shadow:inset -2px -2px 3px rgba(0,0,0,.4),0 0 6px rgba(255,39,64,.5);
  animation:ballspin .55s linear infinite}
.roll-ball::before{content:"";position:absolute;top:50%;left:1.5px;right:1.5px;height:1.5px;border-radius:2px;
  background:rgba(255,255,255,.6);transform:translateY(-50%)}
.roll-ball.rb-lg{width:20px;height:20px;margin-right:4px}
.roll-ball.rb-lg::before{height:2px}
@keyframes ballspin{to{transform:rotate(360deg)}}
.msl-roll{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:900;letter-spacing:.5px;color:#ff8a96}

/* cards */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.card{background:linear-gradient(180deg,var(--panel),var(--bg2));border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--shadow)}
.card h3{font-size:15px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin-bottom:14px;display:flex;align-items:center;gap:8px}
.card h3 .ic{font-size:17px}
.player{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}
.player:last-child{border-bottom:none}
.player .pl{display:flex;align-items:center;gap:10px}
.avatar{position:relative;width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#2a3556,#1c2540);display:grid;place-items:center;font-size:12.5px;font-weight:800;color:var(--accent);flex:none;border:1px solid var(--line2);overflow:hidden}
.avatar .avimg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#1c2540}
.avatar.av-sm{width:26px;height:26px;font-size:10px;flex:none}
/* Top performer as a single ROW (was a full card with a heading + 40px avatar). It spans the
   whole cards grid so it reads as one line above the tabs instead of a column tile. */
.star-row{grid-column:1/-1;display:flex;align-items:center;gap:9px;padding:7px 14px;flex-wrap:wrap}
.star-ttl{font-size:9.5px;font-weight:900;letter-spacing:1px;text-transform:uppercase;color:var(--amber);flex:none}
.star-name{font-size:13.5px;font-weight:800;color:var(--txt)}
.star-team{font-size:11px;font-weight:700;color:var(--muted2)}
.star-figs{margin-left:auto;font-size:13.5px;font-weight:900;color:var(--accent);font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:560px){.star-figs{margin-left:0;flex-basis:100%}}
/* On the Field widget — small & compact (batting + bowling, two columns) */
.onf-card{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:2px 22px;padding:14px 16px}
@media(max-width:640px){.onf-card{grid-template-columns:1fr}.onf-col+.onf-col{margin-top:6px;padding-top:8px;border-top:1px solid var(--line)}}
.onf-col{min-width:0}   /* let rows truncate instead of forcing the card wider (was clipping figures) */
.onf-h{font-size:10.5px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin:0 0 4px;display:flex;align-items:center;gap:5px}
.onf-row{display:flex;align-items:center;gap:8px;padding:6px 0}
.onf-row .avatar{width:26px;height:26px;font-size:10px;flex:none}
.onf-name{flex:1;min-width:0;font-size:13.5px;font-weight:700;color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.onf-dot{width:7px;height:7px;border-radius:50%;background:var(--accent);flex:none}
.onf-dot.b{background:var(--blue)}
.onf-fig{font-size:13.5px;font-weight:800;color:var(--txt);font-variant-numeric:tabular-nums;flex:none;white-space:nowrap}
.onf-fig small{font-size:11px;color:var(--muted);font-weight:600;margin-left:1px}
.onf-fig-b{color:var(--blue)}
.onf-strike .onf-name{color:var(--accent)}
.onf-bowling .onf-name{color:var(--blue)}
.avatar.av-sm{width:26px;height:26px;font-size:10.5px;display:inline-grid;vertical-align:middle;margin-right:8px}
.sc-who{display:inline-flex;align-items:center}
.player{padding:11px 0}
.player .pn{font-weight:700;font-size:16.5px}
.player .pn .strike{margin-left:7px;font-size:10px;color:var(--accent);font-weight:800}
.rate{background:var(--panel2);border:1px solid var(--line2);border-radius:11px;padding:12px;text-align:center}
.rate .v{font-size:22px;font-weight:900;color:var(--accent);font-variant-numeric:tabular-nums}
.rate .l{font-size:10.5px;color:var(--muted);font-weight:700;letter-spacing:.5px;text-transform:uppercase;margin-top:2px}

/* recent overs */
.over-block{display:flex;align-items:center;gap:14px;padding:11px 0;border-bottom:1px solid var(--line)}
.over-block:last-child{border-bottom:none}
.over-tag{flex:none;width:54px;text-align:center}
.over-tag .on{font-size:16px;font-weight:900}
.over-tag .ol{font-size:9.5px;color:var(--muted);font-weight:700;letter-spacing:.5px;text-transform:uppercase}
.over-balls{display:flex;gap:6px;flex-wrap:wrap;flex:1}
.b-mini{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-size:12.5px;font-weight:800;background:var(--panel2);border:1px solid var(--line2)}
.over-runs{flex:none;font-weight:800;font-size:15px;color:var(--accent);min-width:64px;text-align:right}
.over-runs small{color:var(--muted);font-weight:600;display:block;font-size:11.5px}

/* misc */
.empty{text-align:center;padding:70px 20px;color:var(--muted)}
.empty .big{font-size:50px;margin-bottom:14px}
.empty h2{color:var(--txt);font-size:18px;margin-bottom:6px}
.skeleton{background:linear-gradient(90deg,var(--panel) 25%,var(--panel2) 50%,var(--panel) 75%);background-size:200% 100%;animation:sk 1.3s infinite;border-radius:14px}
@keyframes sk{0%{background-position:200% 0}100%{background-position:-200% 0}}
/* ── site footer ─────────────────────────────────────────────────────────── */
.site-foot{margin-top:40px;padding:26px 0 8px;border-top:1px solid var(--line)}
.sf-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:26px;margin-bottom:22px}
@media(max-width:900px){.sf-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.sf-grid{grid-template-columns:1fr}}
.sf-logo{font-size:20px;font-weight:900;color:var(--txt);margin-bottom:10px}
.sf-logo span{color:var(--accent)}
.sf-tag{color:var(--muted);font-size:13px;line-height:1.6;max-width:420px;margin-bottom:12px}
.sf-live{display:inline-flex;align-items:center;gap:8px;font-size:11.5px;font-weight:700;color:var(--muted2)}
.sf-live .dot-live{width:8px;height:8px;border-radius:50%;background:var(--live);box-shadow:0 0 0 3px rgba(255,39,64,.15)}
.sf-col h4{font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.sf-col a,.sf-col span{display:block;color:var(--muted2);font-size:13px;font-weight:600;text-decoration:none;padding:4px 0;transition:.15s}
.sf-col a{cursor:pointer}
.sf-col a:hover{color:var(--accent)}
.sf-bar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;
  padding-top:16px;border-top:1px solid var(--line);font-size:11.5px;color:var(--muted2)}
.sf-note{color:var(--muted2);opacity:.8;max-width:560px;text-align:right}
.sf-legal{display:flex;flex-wrap:wrap;gap:6px 14px;order:3;flex-basis:100%;padding-top:10px;margin-top:2px;border-top:1px solid var(--line)}
.sf-legal a{color:var(--muted);font-size:12px;font-weight:700;text-decoration:none}
.sf-legal a:hover{color:var(--accent)}
@media(max-width:620px){.sf-bar{flex-direction:column;align-items:flex-start}.sf-note{text-align:left}.sf-legal{border-top:none;padding-top:0}}
/* hide the footer inside the focused phone match view */
body.mobile-detail-open .site-foot{display:none}

/* ── Full multi-day schedule (Schedule tab) ──────────────────────────────────── */
.fx-section{margin-top:2px}
.fx-list{display:flex;flex-direction:column;gap:18px}
.fx-date{font-size:12px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);margin:0 0 9px;padding-bottom:7px;border-bottom:1px solid var(--line)}
.fx-row{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:12px;background:var(--panel);border:1px solid var(--line);margin-bottom:8px;transition:.15s}
.fx-row:hover{border-color:var(--line2);transform:translateY(-1px)}
.fx-fmt{flex:none;font-size:10px;font-weight:800;letter-spacing:.5px;padding:5px 8px;border-radius:7px;background:var(--panel2);color:var(--muted);min-width:46px;text-align:center}
.fx-fmt.f-test{background:rgba(176,107,255,.15);color:var(--purple)}
.fx-fmt.f-odi{background:rgba(61,139,255,.15);color:var(--blue)}
.fx-fmt.f-t20,.fx-fmt.f-t20i{background:rgba(52,211,153,.16);color:var(--accent)}
.fx-main{flex:1;min-width:0}
.fx-teams{font-size:14px;font-weight:800;color:var(--txt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fx-v{color:var(--muted2);font-weight:600;margin:0 5px}
.fx-meta{font-size:11.5px;color:var(--muted2);font-weight:600;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Venues are long ("Daren Sammy National Cricket Stadium, Gros Islet") and one nowrap line cut
   every one of them on a phone. Two lines fit essentially all of them; still clamped so a
   freak-length venue can't push the fixture rows around. */
@media(max-width:820px){
  .fx-meta{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.3}
}
.fx-live{flex:none;font-size:10px;font-weight:800;color:var(--live);letter-spacing:.5px}

/* ── Player career modal ─────────────────────────────────────────────────────── */
.pl-link{cursor:pointer;transition:.12s}
.pl-link:hover{color:var(--accent)}
body.pm-open{overflow:hidden}
/* ---- Players view: who is on the field, grouped by match ---- */
.pv-wrap{display:flex;flex-direction:column;gap:14px}
.pv-note{font-size:12.5px;color:var(--muted2);padding:2px 2px 4px}
.pv-match{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:13px 14px}
.pv-head{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:800;margin-bottom:10px}
.pv-live{width:8px;height:8px;border-radius:50%;background:var(--red);flex:none;animation:pulse 1.6s infinite}
.pv-fmt{margin-left:auto;font-size:10.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--muted2)}
.pv-people{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:8px}
.pv-p{display:flex;align-items:center;gap:9px;min-width:0;cursor:pointer;text-align:left;
  font:inherit;color:var(--txt);background:var(--bg2);border:1px solid var(--line);
  border-radius:11px;padding:8px 10px;transition:.14s}
.pv-p:hover{border-color:var(--accent);transform:translateY(-1px)}
.pv-nm{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:700}
.pv-tag{flex:none;font-size:12px}
@media(max-width:820px){.pv-people{grid-template-columns:1fr 1fr}.pv-nm{font-size:12.5px}}
/* ONE column on a real phone. Two columns leave ~170px per name, which truncated almost
   every one of them ("Shivendra Bhujbal…", "Daniel Doyle Calle…"). A cut name is useless for
   deciding who to tap, and the row height is cheap by comparison. */
@media(max-width:460px){.pv-people{grid-template-columns:1fr}.pv-nm{font-size:13.5px}}
.pm-overlay{position:fixed;inset:0;z-index:400;background:rgba(4,8,18,.66);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:20px;animation:pmFade .15s ease-out}
@keyframes pmFade{from{opacity:0}to{opacity:1}}
.pm-card{width:100%;max-width:520px;max-height:88vh;overflow-y:auto;background:var(--panel);border:1px solid var(--line2);border-radius:18px;box-shadow:var(--shadow);padding:22px;position:relative}
.pm-x{position:absolute;top:14px;right:14px;width:30px;height:30px;border:none;border-radius:9px;background:var(--panel2);color:var(--muted);font-size:15px;cursor:pointer;line-height:1}
.pm-x:hover{color:var(--txt);background:var(--line2)}
.pm-head{display:flex;align-items:center;gap:14px;margin-bottom:18px;padding-right:34px}
.pm-name{font-size:22px;font-weight:900;color:var(--txt);letter-spacing:-.4px}
.pm-meta{font-size:13px;font-weight:700;color:var(--accent);margin-top:2px}
.pm-style{font-size:12px;font-weight:600;color:var(--muted2);margin-top:2px}
.pm-sec{font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin:16px 0 8px}
.pm-tblwrap{overflow-x:auto}
.pm-tbl{width:100%;border-collapse:collapse;font-size:13px}
.pm-tbl th{font-size:10.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--muted2);text-align:right;padding:6px 8px;border-bottom:1px solid var(--line)}
.pm-tbl th:first-child{text-align:left}
.pm-tbl td{padding:8px;text-align:right;color:var(--txt);font-weight:600;border-bottom:1px solid var(--line)}
.pm-tbl td.pm-f{text-align:left;font-weight:800;color:var(--muted)}
.pm-tbl td b{font-weight:900;color:var(--accent)}
.pm-empty{padding:24px 6px;text-align:center;color:var(--muted2);font-size:14px}
.pm-rs{margin:0 0 12px;padding:10px 0 0;border-top:1px solid var(--line)}
.pm-rs-h{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;font-size:13.5px}
.pm-rs-h span{font-size:12px;color:var(--muted)}
.pm-rs-t{font-size:12.5px;color:var(--muted);margin:3px 0 6px}
.pm-rs-d{font-weight:600;color:var(--muted2);font-size:11.5px}
.pm-rs-live{font-size:10px;font-weight:900;color:var(--accent);letter-spacing:.5px}
.pm-loading{padding:40px 6px;text-align:center;color:var(--muted);font-size:15px}
@media(max-width:560px){.pm-overlay{padding:0;align-items:flex-end}.pm-card{max-width:100%;max-height:92vh;border-radius:18px 18px 0 0}}

/* venue + toss strip on the live match hero */
/* Squads / playing XI (shown only when data exists) */

/* Predict & Score — outcome + your accuracy/streak, shown inside the "Who wins?" poll widget */
.pw-out{margin-top:9px;font-size:12.5px;font-weight:800}
.pw-out.win{color:var(--accent)}
.pw-out.loss{color:#e2673f}
.pw-out.push{color:var(--muted)}
/* Match Quiz */
.quiz-card .card-h{display:flex;align-items:center;gap:6px}
.quiz-none{padding:16px 2px;color:var(--muted);font-size:13px}
/* Next-ball leaderboard — one slim row per player, fixed heights so a name landing or a
   score ticking over can never shift the rows underneath (CLAUDE.md §5). */
.pred-row{display:flex;align-items:center;gap:10px;height:30px;font-size:13px;
  border-bottom:1px solid var(--line)}
.pred-row:last-of-type{border-bottom:none}
.pred-me{background:rgba(31,207,109,.07);border-radius:8px}
.pred-pos{flex:0 0 20px;text-align:right;color:var(--muted2);font-weight:800;font-size:11.5px}
.pred-nm{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pred-sc{flex:0 0 54px;text-align:right;color:var(--muted);font-family:ui-monospace,Menlo,monospace;font-size:12px}
.pred-pct{flex:0 0 42px;text-align:right;font-weight:800;color:var(--accent)}
.pred-streak{margin-left:6px;color:var(--amber);font-weight:800}
.quiz-score{font-size:12.5px;font-weight:700;color:var(--muted);margin:2px 0 14px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.quiz-score b{color:var(--accent)}
.quiz-q{margin-bottom:16px}
.quiz-qt{font-size:13.5px;font-weight:700;color:var(--txt);margin-bottom:9px;display:flex;gap:8px;align-items:baseline;line-height:1.4}
.quiz-n{font-size:10.5px;font-weight:800;color:var(--muted2);background:var(--panel2,rgba(120,140,180,.14));border-radius:6px;padding:2px 6px;flex-shrink:0}
.quiz-opts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.quiz-opt{font-family:inherit;font-size:13px;font-weight:700;color:var(--txt);background:var(--panel2,rgba(120,140,180,.10));border:1.5px solid var(--line);border-radius:10px;padding:11px 12px;min-height:44px;cursor:pointer;transition:.14s;text-align:left}
.quiz-opt:hover:not([disabled]){border-color:var(--accent);color:var(--accent)}
.quiz-opt.mine{border-color:var(--accent);background:rgba(18,180,93,.12)}
.quiz-opt.correct{border-color:var(--accent);background:var(--accent);color:#fff}
.quiz-opt.wrong{border-color:#e2673f;background:rgba(226,103,63,.14);color:#e2673f}
.quiz-opt[disabled]{cursor:default;opacity:.9}
.quiz-tick{font-weight:900}
.quiz-stt{margin-top:7px;font-size:12px;font-weight:700}
.quiz-cor{color:var(--accent)}
.quiz-wr{color:#e2673f}
.quiz-ans{color:var(--muted)}
.quiz-void{color:var(--muted2)}
.quiz-foot{margin-top:8px;padding-top:10px;border-top:1px dashed var(--line);font-size:11px;color:var(--muted2)}
@media(max-width:600px){.quiz-opts{grid-template-columns:1fr}}
/* Discussion — threaded topics per match */
.dsc-note{font-size:11px;font-weight:600;color:var(--muted2);margin-left:8px}
.dsc-new{display:flex;flex-direction:column;gap:7px;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid var(--line)}
.dsc-in{width:100%;background:var(--panel2);border:1px solid var(--line);border-radius:9px;color:var(--txt);font:inherit;font-size:13.5px;padding:9px 11px}
.dsc-in:focus{outline:none;border-color:var(--accent)}
.dsc-ta{resize:vertical;min-height:44px}
.dsc-btn{font-family:inherit;font-size:12.5px;font-weight:800;color:var(--txt);background:var(--panel2);border:1px solid var(--line);border-radius:9px;padding:8px 14px;cursor:pointer;align-self:flex-start}
.dsc-btn:hover{border-color:var(--accent);color:var(--accent)}
.dsc-btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.dsc-th{border:1px solid var(--line);border-radius:11px;padding:11px 13px;margin-bottom:9px;background:var(--panel2)}
.dsc-th.open{border-color:var(--accent)}
.dsc-th-hd{cursor:pointer}
.dsc-title{font-size:14px;font-weight:800;color:var(--txt);line-height:1.35}
.dsc-adm{font-size:9.5px;font-weight:900;background:var(--accent);color:#fff;border-radius:5px;padding:1px 5px;margin-right:6px;vertical-align:middle}
.dsc-meta{font-size:11px;color:var(--muted2);margin-top:3px;font-weight:600}
.dsc-car{margin-left:4px}
.dsc-body{font-size:13px;color:var(--muted);margin-top:7px;line-height:1.5;white-space:pre-wrap;word-break:break-word}
.dsc-replies{margin-top:10px;padding-top:9px;border-top:1px dashed var(--line)}
.dsc-rep{display:flex;gap:8px;align-items:baseline;padding:5px 0;font-size:13px;flex-wrap:wrap}
.dsc-ru{font-weight:800;color:var(--accent);flex:none}
.dsc-rt{flex:1 1 200px;color:var(--txt);word-break:break-word}
.dsc-rts{font-size:10.5px;color:var(--muted2);flex:none}
.dsc-reply-row{display:flex;gap:7px;margin-top:9px}
.dsc-reply-row .dsc-in{flex:1 1 auto}
.dsc-empty{padding:18px 4px;color:var(--muted2);font-size:13px;text-align:center}
.dsc-empty.sm{padding:8px 4px;text-align:left}
/* Predict the Next Ball — compact strip INSIDE the scoreboard, right under "This Over" */
.nb-strip{margin-top:12px;padding-top:11px;border-top:1px solid var(--line)}
.nb-strip-hd{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.nb-strip-t{font-size:11.5px;font-weight:800;letter-spacing:.3px;text-transform:uppercase;color:var(--muted2)}
.nb-res{margin-left:auto;font-size:12px;font-weight:800}
.nb-res.win{color:var(--accent)}
.nb-res.loss{color:#e2673f}
.nb-res.void{color:var(--muted2)}
.nb-streak{font-size:12px;font-weight:800;color:var(--amber,#dd8b09)}
.nb-res + .nb-streak{margin-left:8px}
.nb-opts{display:grid;grid-template-columns:auto repeat(7,1fr);gap:5px;align-items:center}
/* which delivery you're predicting, e.g. 10.3 */
.nb-ball{font-size:11px;font-weight:900;color:var(--amber,#dd8b09);background:rgba(221,139,9,.12);
  border:1px solid rgba(221,139,9,.3);border-radius:7px;padding:4px 7px;white-space:nowrap;line-height:1}
/* Desktop shows the ball number in the strip header, so hide the inline chip THERE only.
   (A previous `.nb-strip-hd + .nb-opts > .nb-ball` rule also matched on phone — where the header
   is hidden — so the ball number was invisible on mobile.) */
.op-right .nb-ball{display:none}
.nb-opt{position:relative;overflow:hidden;height:44px;border:1.5px solid var(--line);border-radius:9px;background:var(--panel2,rgba(120,140,180,.10));cursor:pointer;font-family:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;transition:border-color .12s,transform .1s}
.nb-opt:hover{border-color:var(--accent)}
.nb-opt:active{transform:scale(.95)}
.nb-opt.on{border-color:var(--accent);box-shadow:inset 0 0 0 1.5px var(--accent)}
.nb-fill{position:absolute;left:0;right:0;bottom:0;background:rgba(18,180,93,.22);transition:height .4s ease;z-index:0}
.nb-opt.on .nb-fill{background:rgba(18,180,93,.4)}
.nbo-6 .nb-fill{background:rgba(155,107,255,.28)}
.nbo-4 .nb-fill{background:rgba(61,139,255,.26)}
.nbo-w .nb-fill{background:rgba(255,73,95,.26)}
.nb-lbl{position:relative;z-index:1;font-size:15px;font-weight:900;color:var(--txt);line-height:1}
.nbo-w .nb-lbl{color:#ff6b7a}.nbo-6 .nb-lbl{color:#b58bff}.nbo-4 .nb-lbl{color:#5b9bff}
.nb-pct{position:relative;z-index:1;font-size:9.5px;font-weight:800;color:var(--muted2);line-height:1;min-height:10px}
/* DESKTOP: This Over on the left, Predict beside it on the right (2 rows of 3) — uses the empty space */
.over-predict{display:flex;gap:16px;align-items:flex-start;flex-wrap:nowrap;margin-top:14px}
.over-predict .op-left{flex:1 1 0;min-width:0}
.over-predict .op-left .thisover{margin-top:0}
.op-right{flex:0 0 196px;border-left:1px solid var(--line2);padding-left:16px}
.op-right .nb-strip{margin-top:0;padding-top:0;border-top:none}
.op-right .nb-opts{grid-template-columns:repeat(3,1fr)}

@media(max-width:600px){.nb-opt{height:40px}.nb-lbl{font-size:14px}.nb-opts{gap:4px}}
/* PHONE: the hero (with the desktop predict) is hidden — show a SMALL always-on strip instead.
   Fixed heights everywhere so nothing shifts (“jumps”) when results/percentages update. */
@media(max-width:820px){
  .op-right{display:none}
  /* PHONE: predict buttons sit INLINE on the HOME row — one compact line, fixed height so it
     can never shift the page. Lives in the persistent chrome, so score ticks don't rebuild it. */
  .nb-inline{flex:1 1 0;min-width:0}
  .nb-inline .nb-strip{margin:0;padding:0;border-top:none}
  .nb-inline .nb-strip-hd{display:none}
  .nb-inline .nb-opts{grid-template-columns:auto repeat(7,1fr);gap:3px}
  .nb-inline .nb-ball{display:inline-flex;align-items:center;font-size:10.5px;padding:0 6px;height:34px;border-radius:7px}
  .nb-inline .nb-opt{height:34px;border-radius:7px;gap:0}
  .nb-inline .nb-lbl{font-size:12px}
  .nb-inline .nb-pct{font-size:8px;min-height:8px}
  .nb-inline:empty{display:none}
}
@media(min-width:821px){.nb-inline{display:none}}   /* desktop keeps the in-scoreboard strip */

/* series points table / standings (Series tab) */
.pt-wrap{margin-top:14px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px 16px}
.pt-scroll{overflow-x:auto}
.pt-tbl{width:100%;border-collapse:collapse;font-size:13px}
.pt-tbl th{font-size:10.5px;font-weight:800;letter-spacing:.3px;text-transform:uppercase;color:var(--muted2);text-align:right;padding:6px 8px;border-bottom:1px solid var(--line);white-space:nowrap}
.pt-tbl th.pt-pos,.pt-tbl th.pt-team{text-align:left}
.pt-tbl td{padding:8px;text-align:right;color:var(--txt);font-weight:600;border-bottom:1px solid var(--line);white-space:nowrap}
.pt-tbl tr:last-child td{border-bottom:none}
.pt-tbl td.pt-pos{color:var(--muted2);font-weight:700;text-align:left;width:22px}
.pt-tbl td.pt-team{text-align:left;font-weight:800}
.pt-tbl td.pt-pts{color:var(--accent);font-weight:900}
.pt-tbl td.pt-nrr{font-weight:700;font-variant-numeric:tabular-nums;color:var(--muted)}
.pt-tbl td.pt-nrr-pos{color:var(--accent)}
.pt-tbl td.pt-nrr-neg{color:#e2673f}
/* Last-5 form guide (most recent on the right) */
.pt-tbl th.pt-form-h{text-align:right}
.pt-tbl td.pt-form{text-align:right;white-space:nowrap;padding-left:14px}
.pt-fm{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;font-size:10px;font-weight:800;color:#fff;margin-left:4px;vertical-align:middle}
.pt-fm.w{background:var(--accent)}
.pt-fm.l{background:#e2673f}
.pt-fm.t{background:var(--amber,#dd8b09)}
.pt-fm.n{background:var(--muted2)}
.pt-fm.e{background:transparent;border:1.5px solid var(--line);box-shadow:inset 0 0 0 1px transparent}
/* Standings selector — filter-style chip row at the top of the Series tab */
.st-section .pt-wrap{margin-top:12px}
.st-chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 2px}
.st-chip{font:inherit;font-size:12.5px;font-weight:700;color:var(--muted);background:var(--panel);border:1px solid var(--line);border-radius:999px;padding:7px 14px;min-height:34px;cursor:pointer;white-space:nowrap;transition:background .12s,color .12s,border-color .12s}
.st-chip:hover{color:var(--txt);border-color:var(--accent)}
/* A long series name ("ICC Men's Cricket World Cup League 2 2023-27") is nowrap, so on a
   375px phone one chip alone was wider than the screen and the whole PAGE scrolled sideways
   (+29px, measured). The row already wraps — cap the chip instead. Deliberately not an
   overflow-x row: this list re-renders, and a scrolling row would snap back to the start. */
@media(max-width:820px){
  /* Cap the width so one chip can never widen the page, but WRAP rather than ellipsis:
     this is the series PICKER, and "Men's T20 World Cup Sub Regi…" doesn't tell you which
     series you're about to open. The row already wraps, so a two-line chip costs height only. */
  .st-chip{max-width:100%;white-space:normal;line-height:1.25;text-align:left}
}
.st-chip.on{color:#fff;background:var(--accent);border-color:var(--accent)}
.st-msg{margin-top:12px;padding:16px;background:var(--panel);border:1px dashed var(--line);border-radius:12px;color:var(--muted);font-size:13px;text-align:center}

/* schedule: clickable live-feed rows + completed-match result text */
.fx-click{cursor:pointer}
.fx-res{flex:none;font-size:11.5px;font-weight:700;color:var(--muted);max-width:190px;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Dedicated single-match page (/match/<key>) */
.solo-link{display:inline-block;margin-top:12px;font-size:12px;font-weight:700;color:var(--muted);
  background:var(--panel2);border:1px solid var(--line2);border-radius:9px;padding:6px 12px;text-decoration:none}
.solo-link:hover{color:var(--accent);border-color:var(--accent)}
.solo-chat .gchat-ttl{font-size:13px;font-weight:800;color:var(--txt)}

/* Match view -> global view: always-available way back (phone already has the Home chrome row) */
/* small on purpose — this is secondary navigation sitting above the live rail, it should not
   compete with the match list or the score */
.all-matches-btn{display:inline-block;font-family:inherit;font-size:11px;font-weight:800;color:#cfe0ff;
  background:rgba(120,140,180,.16);border:1px solid rgba(150,175,215,.3);border-radius:7px;
  padding:3px 9px;cursor:pointer;text-decoration:none;margin-right:6px;line-height:1.5;white-space:nowrap}
.all-matches-btn:hover{color:#fff;border-color:var(--accent)}
   /* phone uses the Home button in the fixed chrome */
/* back-nav sits in the LEFT column under the logo (not inside the score widget) */
#asideNav:empty{display:none}
#asideNav{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px}
#asideNav .all-matches-btn{margin:0}
/* There is deliberately NO nav row inside .detail — Home / ← All matches live in the left
   column (#asideNav) on both the normal and the dedicated page. Phone uses the Home button
   in the fixed #focusTop chrome instead. */
/* DEDICATED page on a PHONE: lay Home / ← All matches side by side. `.solo-page #asideNav`
   stacks them into a column, which is right for the 132px desktop gutter but wrong here —
   below 980px the grid collapses to a single full-width column, so stacking two 11px buttons
   burned 55px of height on a screen that has none to spare. Same specificity as the rule it
   overrides, so it only wins by sitting LATER in the file (media queries add none). */
@media(max-width:820px){
  .solo-page #asideNav{flex-direction:row;align-items:center;gap:6px}
}

/* ============================================================================
   COMPACT SCORE WIDGET (desktop ≥821px) — roughly HALF the previous height.
   Placed at the END of the file on purpose: media queries add no specificity, so an
   earlier @media block loses to a later base rule with the same specificity (the same
   trap that made .lower-tabs wrap on phone). Being last guarantees these win.

   The height went mostly on two things:
     1. The predict panel was a 196px column of 3 rows beside "This Over", which left a
        large EMPTY area under the over strip on the left — the widget was as tall as its
        tallest column and half of that column was blank.
     2. Oversized type (47px score) and generous stacked padding.

   Fix: stack "This Over" and Predict vertically across the FULL width, with Predict as a
   single 7-across row. Nothing is removed — same over strip, same 7 predict buttons, same
   score, chase line and status — it just stops wasting a column.
   ========================================================================= */
@media (min-width:821px){
  .hero-inner{padding:9px 18px}
  .hero-band{height:3px}
  .hero-top{margin-bottom:4px}
  .hero-topright{gap:8px}

  /* score block: still the loudest thing in the widget, just not 47px tall.
     "● BATTING" moves onto the same line as "10.0 overs · CRR 10.70" instead of taking a
     fourth row of its own — the column is wrap-friendly so it drops back on narrow widths. */
  .scoreboard{gap:10px}
  .sb-team{gap:2px;flex-flow:row wrap;align-items:baseline}
  .sb-team .nm{flex:1 1 100%}
  .sb-team .sc{flex:1 1 100%}
  .sb-team .ov{flex:0 0 auto}
  .sb-team .batflag{flex:0 0 auto;margin-left:9px}
  .sb-team.right{flex-direction:row-reverse}
  .sb-team.right .batflag{margin-left:0;margin-right:9px}
  /* +20% on the score block — the score number and the overs/CRR line are the two things
     you actually read at a glance, so they carry most of the increase. */
  .sb-team .nm{font-size:17px}
  .sb-team .flag.lg{width:30px;height:30px;border-radius:8px;font-size:12px}
  .sb-team .sc{font-size:33px;letter-spacing:-1px}
  .sb-team .sc small{font-size:17px}
  .sb-team .sc .sc-1st{font-size:21px}
  .sb-team .ov{font-size:14px}
  .sb-team .batflag{font-size:10.5px}
  .vs{width:37px;height:37px;font-size:11px}

  /* ONE full-width column instead of "over strip | tall predict panel" */
  .over-predict{display:block;margin-top:8px}
  .over-predict .op-left{width:100%}
  .op-right{flex:none;width:100%;border-left:none;padding-left:0;
    margin-top:5px;padding-top:5px;border-top:1px solid var(--line2)}
  /* the whole predict block on ONE line: label, then the 7 buttons beside it */
  .op-right .nb-strip{display:flex;align-items:center;gap:10px}
  .op-right .nb-strip-hd{margin-bottom:0;flex:0 0 auto}
  .op-right .nb-strip-t{font-size:10.5px}
  .op-right .nb-opts{flex:1 1 auto;grid-template-columns:repeat(7,1fr);gap:5px}   /* 3 rows -> 1 */
  .op-right .nb-opt{height:28px;border-radius:8px}
  .op-right .nb-lbl{font-size:12.5px}
  .op-right .nb-pct{font-size:8.5px;min-height:8px}

  /* Last-ball banner ON THE SAME LINE as "This Over" instead of its own full-width band.
     Same information, one row instead of two. */
  .op-left{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
  .op-left .thisover{flex:1 1 320px;margin-top:0}
  .thisover{gap:10px}
  .ball{width:28px;height:28px;font-size:12.5px}

  /* secondary rows: present, just not a whole band each */
  .hero-result,.hero-sched{margin-top:8px;padding:7px 14px;font-size:13px}
  .chase-strip{margin-top:7px}
  /* the "own page" link now sits inline in the header row, not as its own band */
  .solo-link{margin-top:0;padding:3px 9px;font-size:10.5px}

  /* tighten the gaps BETWEEN the widget and what follows, so the scorecard and tabs
     move up the page rather than the reclaimed height turning into whitespace */
  .sticky-top{gap:9px}
  .detail{gap:12px}
  .cards{gap:10px}
}

/* The tab row is the sticky header for the panel below it. It now carries Win Prob and
   Projection as real tabs, so it can be longer than the column — let it WRAP rather than
   clip (the old nowrap was there to keep a chip pinned at the end; that chip is gone). */
@media (min-width:821px){
  .lower-tabs{position:sticky;top:4px;z-index:30;background:var(--bg);
    align-items:center;flex-wrap:wrap;gap:5px;padding-top:2px;padding-bottom:4px}
  /* 7 tabs (Chat · 1st · 2nd · Quiz · Win Prob · Projection · Discussion) need ~724px in a
     ~700px column and Discussion alone dropped to a second line. Trim the padding so the
     whole row fits on one line; it still wraps rather than clipping if a Test adds more. */
  /* Squads (a tab since build 404) made it 7-8 again: 615px against a 583px column at 1280.
     7px/4px gap brings that to ~576 — one line at common laptop widths, wrap still the fallback. */
  .lower-tabs .dtab{padding:7px 7px;gap:4px}
}

/* ============================================================================
   DESKTOP GLOBAL CHAT — the message box must ALWAYS be on screen.
   It was falling below the fold: the column is sticky but had no height bound, so a long
   message list simply grew past the viewport and took the composer with it (the list's
   `max-height:440px` isn't enough once the header, tabs and presence row are added).
   Bound the column to the viewport and let the LIST take the leftover space and scroll,
   so the input is pinned at the bottom no matter how many messages there are.
   ========================================================================= */
@media (min-width:981px){
  /* DEFINITE height (not max-height): the column is sticky + align-self:start, so with only a
     max-height it stays content-sized and flex has nothing to distribute — the list then sits
     at its floor on a tall screen, or blows past the fold if you raise the floor. */
  /* 124px = the site header the column starts below (~77px) + the poll's margin + a couple of
     px of slack. `100vh - 32px` overflowed the fold: at scroll 0 the column starts BELOW the
     header, not at the top of the viewport. Measured at 680/800/900/1080 — the composer stays
     on screen at all of them and the room shows 5 → 14 messages. */
  .chat-col{height:calc(100vh - 124px);display:flex;flex-direction:column;min-height:0}
  #gchatPoll{flex:none}                    /* Predict & Score keeps its natural height */
  .chat-col > .gchat{flex:1 1 auto;min-height:0}
  .gchat-body{flex:1 1 auto;min-height:0}
  /* The list gives up its fixed cap and fills what's left. min-height holds ~6 messages open
     so the room never collapses to a two-line sliver while you're typing — at 680px viewport
     the fixed furniture (poll, header, tabs, presence, composer) is ~310px, leaving ~340px,
     so this floor is comfortably satisfied and the composer still stays on screen. */
  /* The column is sticky + align-self:start, so it is content-sized — `flex:1 1 0` alone
     leaves the list at its floor even on a tall screen. Size it from the VIEWPORT instead:
     everything else in the column (poll, header, tabs, presence, composer, padding) is ~410px,
     so the list takes what's left, never under ~6 messages and never so tall that the composer
     leaves the screen. */
  .gchat-list{max-height:none;flex:1 1 0;min-height:0;overflow-y:auto}
  /* everything that isn't the list keeps its natural height */
  .gchat-head,.gchat-presence,.chat-tabs{flex:none}
  .gchat-body > *:not(.gchat-list){flex:none}
}

/* "OWN PAGE" — the way through to the dedicated single-match page. It read as a muted
   secondary link and nobody noticed it, so: uppercase, bold, bright accent, and a slow
   attention pulse. Deliberately a glow/scale pulse rather than movement, so it can't shift
   anything around it in the header row (fixed size, like everything else in the widget).
   Honours prefers-reduced-motion — the bright styling alone still stands out. */
.solo-link{display:inline-flex;align-items:center;gap:5px;margin-top:0;
  font-size:11px;font-weight:900;letter-spacing:.9px;text-transform:uppercase;
  color:#06210f;background:linear-gradient(135deg,var(--accent),#5ce08a);
  border:1px solid rgba(31,207,109,.65);border-radius:8px;padding:4px 11px;text-decoration:none;
  box-shadow:0 0 0 0 rgba(31,207,109,.55);animation:ownpulse 2.4s ease-in-out infinite}
.solo-link:hover{color:#04180b;background:linear-gradient(135deg,#5ce08a,var(--accent));
  border-color:var(--accent);animation-play-state:paused;transform:scale(1.04)}
@keyframes ownpulse{
  0%   {box-shadow:0 0 0 0 rgba(31,207,109,.55); filter:brightness(1)}
  55%  {box-shadow:0 0 0 7px rgba(31,207,109,0); filter:brightness(1.14)}
  100% {box-shadow:0 0 0 0 rgba(31,207,109,0);   filter:brightness(1)}
}
@media (prefers-reduced-motion:reduce){ .solo-link{animation:none} }

/* ============================================================================
   ON-FIELD PLAYERS CARD — names +20%, card ~10% shorter.
   The names are what you read; the padding around them is not. Bigger type, tighter box.
   ========================================================================= */
.onf-name{font-size:16px}                 /* 13.5 -> 16 (+19%) */
.onf-fig{font-size:15px}                  /* figures track the names so rows stay balanced */
.onf-fig small{font-size:12px}
.onf-card{padding:10px 16px;gap:0 22px}   /* 14px -> 10px vertical padding */
.onf-row{padding:4px 0}                   /* 6px -> 4px per row (4 rows = -16px) */
.onf-h{font-size:10px;margin:0 0 2px}
.onf-row .avatar{width:28px;height:28px;font-size:10.5px}

/* ============================================================================
   ANY-LANGUAGE CHAT + ON-DEMAND ENGLISH
   People type in any script; the original is always shown as typed. When a message isn't
   English we offer a translate link, and the English appears BELOW the original.
   ========================================================================= */
.chat-t{unicode-bidi:plaintext}          /* mixed-script messages lay out per-run, not jumbled */
.chat-tr-btn{display:block;margin:3px 0 0;padding:1px 0;background:none;border:0;
  font-family:inherit;font-size:10.5px;font-weight:800;color:var(--blue);cursor:pointer;
  text-align:left;opacity:.85}
.chat-tr-btn:hover{opacity:1;text-decoration:underline}
.chat-tr{margin:4px 0 0;padding:5px 8px;border-left:2px solid rgba(61,139,255,.5);
  background:rgba(61,139,255,.07);border-radius:0 7px 7px 0;font-size:12.5px;line-height:1.45;
  color:var(--txt);unicode-bidi:plaintext}
.chat-tr.muted{color:var(--muted2);font-style:italic;background:none;border-left-color:var(--line2)}
.chat-tr-lb{display:block;font-size:9px;font-weight:900;letter-spacing:.7px;text-transform:uppercase;
  color:var(--blue);margin-bottom:1px}
/* the message bubble stacks: name + text + time on one line, translation on its own row */
.chat-msg{flex-wrap:wrap}
.chat-msg .chat-tr,.chat-msg .chat-tr-btn{flex-basis:100%}

/* ============================================================================
   SCORE WIDGET — bigger type, ball indicator in the VS slot, one-line over row.
   Sizes: score +20%, overs +10%, everything else in the widget +10%.
   Placed last so it wins over the earlier compact block (media queries add no specificity).
   ========================================================================= */
@media (min-width:821px){
  .sb-team .sc{font-size:40px;letter-spacing:-1.2px}      /* 33 -> 40 (+20%) */
  .sb-team .sc small{font-size:19px}
  .sb-team .sc .sc-1st{font-size:23px}
  .sb-team .ov{font-size:15.5px}                          /* 14 -> 15.5 (+10%) */
  .sb-team .nm{font-size:19px}                            /* +10% across the rest */
  .sb-team .flag.lg{width:33px;height:33px;font-size:13px}
  .sb-team .batflag{font-size:11.5px}
  .series{font-size:13.5px}
  .hero-status{font-size:13px}
  .hero-inner{padding:10px 20px}
  .ball{width:31px;height:31px;font-size:13.5px}
  .thisover{gap:11px}
}

/* ---- the ball indicator, in the circle BETWEEN the two teams ----
   It used to sit in a band under the scoreboard; between the teams is where you're already
   looking. Fixed 44px box so "WICKET" can't resize the scoreboard's centre column. */
.vs{position:relative}
/* When live this stops being a round "VS" badge and becomes a pill — a circle can't hold
   "last ball" without clipping it. Fixed width so the scoreboard's centre column never
   resizes as outcomes change (a WICKET must not shove the team names about). */
.vs-live,.vs-ball{flex-direction:column;gap:1px;line-height:1;
  width:64px!important;height:42px!important;border-radius:12px;padding:0 6px}
.vs-lb{font-size:8px;font-weight:800;letter-spacing:.3px;text-transform:uppercase;
  color:var(--muted2);white-space:nowrap;line-height:1}
.vs-val{font-size:16px;font-weight:900;color:var(--txt);line-height:1;font-variant-numeric:tabular-nums}
.vs.vs-ball.r4-bg{background:rgba(31,79,255,.2);border-color:rgba(61,139,255,.55)}
.vs.vs-ball.r6-bg{background:rgba(123,61,255,.2);border-color:rgba(155,107,255,.55)}
.vs.vs-ball.w-bg{background:rgba(255,39,64,.22);border-color:rgba(255,73,95,.6)}
.vs.vs-ball.w-bg .vs-val{color:#ff8a96}
.vs.vs-ball.r4-bg .vs-val{color:#7ab0ff}
.vs.vs-ball.r6-bg .vs-val{color:#c0a3ff}
.vs.vs-ball.extra-bg{background:rgba(255,181,46,.18);border-color:rgba(255,181,46,.5)}
.vs.vs-ball.extra-bg .vs-val{color:var(--amber)}
.vs-live{background:rgba(31,207,109,.14);border-color:rgba(31,207,109,.5)}

/* ---- one line, always: This Over on the left, the previous over at the FAR RIGHT ---- */
.thisover{flex-wrap:nowrap;overflow:hidden}
.thisover .balls{display:flex;gap:6px;flex:none}
.prevovers{margin-left:auto;flex:none;border-left:1px solid var(--line2)}
/* colour the labels so the two overs read as distinct groups at a glance */
.thisover .ttl{color:var(--accent);flex:none}
.thisover .ttl b{color:var(--txt);font-weight:900}
.po-ov{color:var(--amber)}
.po-tot{color:var(--txt);font-weight:900}

/* Provenance for the win-probability bar. Our own estimate must never read as an
   authoritative market number — it says where it came from, every time. */
.wp-src{margin-top:5px;font-size:10px;line-height:1.4;color:var(--muted2)}

/* ============================================================================
   DISCUSSION — 👍 / 👎 and emoji.
   Counts are fixed-width and tabular so a vote arriving mid-read can never nudge the row —
   the same rule the score widget follows.
   ========================================================================= */
.dsc-votes{display:inline-flex;align-items:center;gap:5px;flex:none;margin-left:auto}
.dsc-vote{display:inline-flex;align-items:center;gap:4px;font-family:inherit;font-size:12px;
  line-height:1;padding:3px 8px;border-radius:20px;cursor:pointer;
  background:var(--panel2);border:1px solid var(--line2);color:var(--muted)}
.dsc-vote b{min-width:12px;text-align:left;font-size:11.5px;font-weight:900;color:var(--txt);
  font-variant-numeric:tabular-nums}
.dsc-vote:hover{border-color:var(--muted)}
.dsc-vote.up.on{background:rgba(31,207,109,.16);border-color:rgba(31,207,109,.55)}
.dsc-vote.up.on b{color:var(--accent)}
.dsc-vote.down.on{background:rgba(255,73,95,.14);border-color:rgba(255,73,95,.5)}
.dsc-vote.down.on b{color:#ff8a96}
/* the topic's own vote bar sits under its body, right-aligned */
.dsc-th > .dsc-votes{display:flex;justify-content:flex-end;margin:6px 0 0}
/* a reply is one line: name, text, votes, time */
.dsc-rep{display:flex;align-items:center;gap:8px}
.dsc-rep .dsc-rt{flex:1;min-width:0}
.dsc-rep .dsc-votes{margin-left:0}
.dsc-rep .dsc-vote{padding:2px 6px;font-size:11px}
/* emoji button sits with the post/reply controls */
.dsc-actions{display:flex;align-items:center;gap:8px}
.dsc-reply-row{display:flex;align-items:center;gap:8px}
.dsc-actions .emoji-wrap,.dsc-reply-row .emoji-wrap{flex:none}
@media(max-width:820px){ .dsc-rep{flex-wrap:wrap} .dsc-rep .dsc-rt{flex-basis:100%;order:2} .dsc-rep .dsc-votes{order:3} }

/* reaction picker — a small popover of the whitelisted set, opened by ＋ */
.rx-wrap{position:relative;display:inline-flex}
.dsc-vote.rx-add{font-size:13px;font-weight:900;color:var(--muted2);padding:3px 7px}
.rx-pop{position:absolute;bottom:calc(100% + 6px);right:0;z-index:70;display:none;gap:2px;
  padding:5px;border-radius:11px;background:var(--panel);border:1px solid var(--line2);
  box-shadow:var(--shadow);white-space:nowrap}
.rx-wrap.open .rx-pop{display:flex}
.rx-pick{font-size:17px;line-height:1;background:none;border:0;border-radius:8px;padding:4px 5px;cursor:pointer}
.rx-pick:hover{background:var(--panel2)}
.rx-pick.on{background:rgba(31,207,109,.18)}
/* a reaction with no votes yet (only shown when it's the one you picked) stays quiet */
.dsc-vote b{transition:none}


/* ---- ADMIN SITE VIEW ----
   Moderation controls drawn only when the site is opened inside the admin portal
   (`/?adm=1` + a valid admin cookie). Public visitors never receive this markup. */
.amod{display:inline-flex;gap:4px;margin-left:6px;vertical-align:middle}
.amod-b{background:rgba(255,122,69,.12);border:1px solid rgba(255,122,69,.45);color:#ff9d6b;
  border-radius:6px;padding:0 5px;font-size:11px;line-height:17px;cursor:pointer}
.amod-b:hover{background:rgba(255,122,69,.28)}
.amod-b.del{color:#ff6b7d;border-color:rgba(255,73,95,.5);background:rgba(255,73,95,.12)}
.amod-b.del:hover{background:rgba(255,73,95,.28)}
.adm-mode .chat-msg,.adm-mode .dsc-rep{position:relative}

/* "462 & 193/10" on the home cards and the Live Now rail. A Test's 1st-innings total is
   context, not the score — muted and smaller, so the live innings still reads as the number.
   Without it a 2nd-innings score looks like the team collapsed. */
.team-row .ts .ts-1st{color:var(--muted2);font-weight:700}
.lr-team .lr-sc .lr-1st{color:var(--muted2);font-weight:700}

/* ── news + series stats ───────────────────────────────────── */
.nw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.nw-grid-compact{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.nw-card{display:flex;flex-direction:column;text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:14px;overflow:hidden;color:var(--txt);font:inherit;cursor:pointer;padding:0;transition:border-color .15s,transform .15s}
.nw-card:hover{border-color:var(--accent);transform:translateY(-1px)}
.nw-img{width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--panel2)}
.nw-body{display:flex;flex-direction:column;gap:6px;padding:12px 14px 14px}
.nw-meta{font-size:11.5px;color:var(--muted);font-weight:600}
.nw-title{font-weight:800;font-size:15px;line-height:1.3}
.nw-sum{font-size:13px;color:var(--muted);line-height:1.45}
.nw-compact .nw-img{aspect-ratio:21/9}
.nw-compact .nw-title{font-size:13.5px}
.nw-modal{position:fixed;inset:0;z-index:2000;display:none;align-items:flex-start;justify-content:center;padding:40px 16px;background:rgba(5,8,16,.72);overflow-y:auto}
.nw-modal.open{display:flex}
.nw-sheet{position:relative;max-width:720px;width:100%;background:var(--panel);border:1px solid var(--line2);border-radius:18px;padding:22px 22px 26px;box-shadow:var(--shadow)}
.nw-close{position:absolute;top:10px;right:10px;background:var(--panel2);border:1px solid var(--line);color:var(--txt);border-radius:10px;width:34px;height:34px;cursor:pointer}
.nw-hero{width:100%;border-radius:12px;margin-bottom:14px}
.nw-h{font-size:22px;font-weight:900;margin:6px 0 12px;line-height:1.25}
.nw-content{font-size:15px;line-height:1.65;color:var(--txt)}
.nw-content p{margin:0 0 12px}
.si-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.si-h{font-weight:800;font-size:13px;margin-bottom:8px;display:flex;align-items:center;gap:8px}
.si-tbl{width:100%}
.si-news{margin-top:14px}
.si-venues,.si-squads{margin-top:16px}
.vn-row{display:flex;gap:10px;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}
.vn-tile{flex:none;width:150px;display:flex;flex-direction:column;gap:2px;background:var(--panel);border:1px solid var(--line);border-radius:10px;overflow:hidden;padding-bottom:8px}
.vn-tile img{width:100%;height:84px;object-fit:cover;display:block;margin-bottom:4px;background:var(--panel2)}
.vn-name{font-size:12.5px;font-weight:800;padding:0 9px;line-height:1.25}
.vn-place{font-size:11.5px;color:var(--muted);padding:0 9px}
.si-squads .st-chips{margin-bottom:8px}
.si-all{margin-left:auto;background:none;border:0;color:var(--accent);font:inherit;font-weight:700;cursor:pointer}
@media (max-width:720px){ .si-grid{grid-template-columns:1fr} .nw-sheet{padding:18px 16px 22px} .nw-h{font-size:19px} }
.nw-tag{display:inline-block;font-size:10.5px;font-weight:900;letter-spacing:.6px;text-transform:uppercase;padding:2px 7px;border-radius:6px;margin-right:7px;background:rgba(31,207,109,.15);color:var(--accent)}
.nw-own{margin-top:14px;font-size:12px;color:var(--muted2)}

/* ── CricLive story graphics (team logos + player photos from the vendor) ── */
.sa{position:relative;display:flex;flex-direction:column;justify-content:center;gap:10px;aspect-ratio:1200/630;width:100%;padding:14px 16px 12px;overflow:hidden;color:#fff;
  background:radial-gradient(120% 90% at 0% 100%,color-mix(in srgb,var(--ca) 55%,transparent),transparent 60%),radial-gradient(120% 90% at 100% 0%,color-mix(in srgb,var(--cb) 55%,transparent),transparent 60%),linear-gradient(135deg,#0b1222,#0a0e1a)}
.sa::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(125deg,rgba(255,255,255,.03) 0 2px,transparent 2px 22px);pointer-events:none}
.sa>*{position:relative;z-index:1}
.sa-brand{position:absolute;top:10px;left:14px;font-size:11px;font-weight:800;opacity:.9}.sa-brand b{color:#1fcf6d}
.sa-foot{position:absolute;bottom:8px;left:14px;right:14px;font-size:10px;font-weight:700;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sa-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}
.sa-logo{position:relative;flex:none;width:58px;height:58px;border-radius:50%;background:var(--tc);display:grid;place-items:center;box-shadow:0 0 0 3px rgba(255,255,255,.25),0 6px 18px rgba(0,0,0,.35);overflow:hidden}
.sa-logo i{font-style:normal;font-weight:900;font-size:13px;letter-spacing:.3px}
.sa-logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff;opacity:0;transition:opacity .2s}.sa-logo img.ok{opacity:1}
.sa-mid{flex:1;min-width:0;text-align:center}
.sa-sc{font-size:22px;font-weight:900;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.sa-sc small{font-size:12px;opacity:.6;font-weight:700}
.sa-res{font-size:12.5px;font-weight:800;color:#1fcf6d;margin-top:2px;line-height:1.25}
.sa-vs{font-size:26px;font-weight:900;letter-spacing:1px}
.sa-when{font-size:11.5px;font-weight:800;color:#ffb52e}.sa-when small{color:#fff;opacity:.75;font-weight:700}
.sa-names{display:flex;justify-content:space-between;font-size:12px;font-weight:800;gap:10px}.sa-names span{max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sa-names em{font-style:normal;color:#ffb52e;font-size:10.5px}
.sa-star{display:flex;justify-content:center}
.sa-pl{display:inline-flex;align-items:center;gap:8px;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:3px 12px 3px 3px;max-width:100%}
.sa-pln{display:flex;flex-direction:column;line-height:1.15;min-width:0}.sa-pln b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sa-pln em{font-style:normal;font-size:11px;color:#ffd166;font-weight:800}
.sa .avatar.sa-av{width:34px;height:34px;font-size:12px;flex:none}
.sa-pl-big .avatar.sa-av{width:40px;height:40px}
.sa-strip{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.sa-lead{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:10px}
.sa-lh{font-size:10.5px;font-weight:900;letter-spacing:1px;text-transform:uppercase;color:#1fcf6d;margin-bottom:4px}.sa-lcol+.sa-lcol .sa-lh{color:#3d8bff}
.sa-lrow{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;margin:4px 0}.sa-lrow span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sa-lrow b{font-size:14px}
.sa-lrow .avatar.sa-av{width:26px;height:26px;font-size:10px}
/* bigger inside the article */
.sa-big{border-radius:12px;margin-bottom:14px;padding:22px 26px 18px}
.sa-big .sa-logo{width:96px;height:96px}.sa-big .sa-logo i{font-size:20px}
.sa-big .sa-sc{font-size:38px}.sa-big .sa-res{font-size:19px}.sa-big .sa-vs{font-size:44px}.sa-big .sa-when{font-size:15px}
.sa-big .sa-names{font-size:16px}.sa-big .sa-brand{font-size:14px;top:14px;left:20px}.sa-big .sa-foot{font-size:12px;left:20px;bottom:12px}
.sa-big .sa-pln b{font-size:15px}.sa-big .sa-pln em{font-size:13px}.sa-big .sa-pl-big .avatar.sa-av{width:54px;height:54px;font-size:16px}
.sa-big .sa-lrow{font-size:15px}.sa-big .sa-lrow .avatar.sa-av{width:36px;height:36px}.sa-big .sa-lrow b{font-size:18px}
/* article body */
.st-standfirst{font-size:16.5px;font-weight:600;color:var(--txt)}
.st-facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;margin:16px 0 4px}
.st-facts>div{background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:8px 11px}
.st-facts span{display:block;font-size:10.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--muted)}.st-facts b{font-size:13.5px}
.st-perf{margin-top:16px}.st-perf-h{font-weight:900;font-size:13px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);margin-bottom:8px}
.st-perf-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.st-pc{display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:12px 8px}
.st-pc .avatar.st-pav{width:64px;height:64px;font-size:20px;margin-bottom:4px}
.st-pc b{font-size:13.5px}.st-pc em{font-style:normal;font-size:11.5px;color:var(--muted)}.st-pc span{font-size:13px;font-weight:800;color:var(--accent)}
@media (max-width:720px){
  .sa-big{aspect-ratio:auto;min-height:220px;padding:38px 14px 32px;gap:12px}
  .sa-big .sa-logo{width:58px;height:58px}.sa-big .sa-logo i{font-size:14px}
  .sa-big .sa-sc{font-size:23px}.sa-big .sa-res{font-size:14px}.sa-big .sa-vs{font-size:28px}.sa-big .sa-when{font-size:12.5px}
  .sa-big .sa-names{font-size:13px}.sa-big .sa-brand{font-size:12px;top:10px;left:14px}.sa-big .sa-foot{font-size:10.5px;left:14px;bottom:9px}
  .sa-big .sa-pln b{font-size:13px}.sa-big .sa-pln em{font-size:12px}.sa-big .sa-pl-big .avatar.sa-av{width:42px;height:42px;font-size:13px}
  .sa-big .sa-lrow{font-size:13px}
}

/* ── PHONE landing: open/close sections, slim rows, quick filters, schedule day strip ──
   (all generated only at ≤820px by app.js; kept at the END so equal-specificity base rules
   earlier in the file can't win — CLAUDE.md §4) */
.sec-toggle{width:100%;background:none;border:0;border-bottom:1px solid var(--line);font-family:inherit;cursor:pointer;
  padding:12px 2px 10px;margin:0;text-align:left;-webkit-tap-highlight-color:transparent;min-height:44px}
.lg-section.coll{margin-bottom:4px}
.lg-section.coll.open > .sec-toggle{border-bottom-color:transparent}
.sec-toggle .sec-count{margin-left:auto}
.sec-caret{font-size:14px;color:var(--muted);width:16px;text-align:center;margin-left:4px}
.sec-rest .sec-dot{background:#7f8cff}
.lg-section.coll > .lg-cards,.lg-section.coll > .sl-list,.lg-section.coll > .fx-day{margin-top:6px}

.sl-list{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.mslim{display:flex;align-items:center;gap:10px;padding:9px 10px 9px 12px;border-radius:12px;background:var(--panel);
  border:1px solid var(--line);cursor:pointer;-webkit-tap-highlight-color:transparent}
.mslim:active{border-color:var(--line2)}
.mslim .fmt{flex:none;font-size:9px;padding:2px 6px;min-width:38px;text-align:center}
.sl-body{flex:1;min-width:0}
.sl-team{display:flex;align-items:baseline;gap:8px;font-size:13.5px;font-weight:700;line-height:1.35}
.sl-n{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--txt)}
.sl-s{flex:none;font-weight:800;color:var(--txt);font-variant-numeric:tabular-nums}
.sl-s small{color:var(--muted);font-weight:600;font-size:11px}
.sl-meta{font-size:11px;font-weight:600;color:var(--muted2);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mslim.won .sl-meta{color:var(--accent)}
.mslim .star{flex:none}

.ds-strip{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:2px 1px 10px;margin:0 0 4px;
  -webkit-overflow-scrolling:touch}
.ds-strip::-webkit-scrollbar{display:none}
.ds-chip{flex:none;display:inline-flex;align-items:center;gap:6px;font-family:inherit;font-size:12.5px;font-weight:700;
  color:var(--muted);background:var(--panel2);border:1px solid var(--line2);padding:6px 12px;border-radius:20px;cursor:pointer;
  white-space:nowrap;min-height:32px;-webkit-tap-highlight-color:transparent}
.ds-chip.on{color:#06210f;background:var(--accent);border-color:var(--accent)}
.ds-n{font-size:10.5px;font-weight:800;background:rgba(255,255,255,.08);border-radius:20px;padding:0 6px}
.ds-chip.on .ds-n{background:rgba(0,0,0,.15)}
.fx-dayhead{font-size:11px}
/* richer schedule rows on phone: full team names wrap instead of "Australian…" */
@media (max-width:820px){
  .fx-section .fx-teams{white-space:normal;overflow:visible;line-height:1.3}
}
@media (max-width:820px){
  #compTabs{margin-bottom:6px}
  .landing-grid.ph-compact{gap:2px}
  .landing-grid.ph-compact .lg-section.coll{gap:0;margin-bottom:0}
  .landing-grid.ph-compact .sec-toggle{padding:10px 2px 8px;min-height:40px}
  .landing-grid.ph-compact .lg-section.coll > .lg-cards,
  .landing-grid.ph-compact .lg-section.coll > .sl-list,
  .landing-grid.ph-compact .lg-section.coll > .fx-day{margin:6px 0 8px}
  .landing-grid.ph-compact .fx-section{gap:0}
  .landing-grid.ph-compact .ds-strip{padding-bottom:6px}
}
/* phone chat sheet: the next-ball row under the match cards */
.drawer-nextball:empty{display:none}
.drawer-nextball{flex:none;padding:0 10px 6px}
.drawer-nextball .nb-strip{margin:0}
/* A short tab (Discussion, Squads) must not be shorter than the screen, or the browser clamps
   the scroll and the tab row you just tapped drops down the page. */
@media (max-width:820px){
  body.mobile-detail-open:not(.chat-mode) .lower-panel{min-height:calc(var(--vvh, 100vh) - 120px)}
}
/* dismissal under the batter's name: "c Alex Carey b Josh Hazlewood" */
.sc-how{display:block;font-size:11px;font-weight:600;color:var(--muted2);margin-top:2px;line-height:1.25;white-space:normal}
.msp-result{font-weight:800;color:var(--accent)}
.msp-top{font-size:12.5px;color:var(--muted)}
.msp-top b{color:var(--txt)}
.hero-top-perf{text-align:center;font-size:13px;color:var(--muted);margin-top:6px}
.hero-top-perf b{color:var(--txt)}
/* Phone top row: the bare "34.3" chip told a new visitor nothing. Label it — tiny, two lines,
   same width, so the seven pick buttons keep their size. */
@media (max-width:820px){
  .nb-inline .nb-ball{flex-direction:column;justify-content:center;line-height:1.05;gap:1px}
  .nb-inline .nb-ball::before{content:attr(data-lb);text-transform:uppercase;font-size:7.5px;font-weight:800;letter-spacing:.4px;opacity:.75}
}
/* collapsible landing headers: the emoji is the marker; only "Playing now" keeps its pulsing dot */
.sec-toggle:not(.sec-live) .sec-dot{display:none}
/* The name box is a setting, not a headline: a big green "Guest-98398" was the loudest thing
   in the chat. Quiet until you tap it. */
body .chat-name{color:var(--muted);background:transparent;border-style:dashed;font-weight:600}
body .chat-name:focus{color:var(--txt);border-style:solid}
/* Phone: the series picker on Series / Points is ONE sideways-scrolling row, not 12 stacked
   chips (that list alone was a full screen before any content). */
@media (max-width:820px){
  .lg-section > .st-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:4px;-webkit-overflow-scrolling:touch}
  .lg-section > .st-chips::-webkit-scrollbar{display:none}
  .lg-section > .st-chips .st-chip{flex:none;white-space:nowrap;max-width:none}
}
.sc-ytb{font-size:12.5px;color:var(--muted);padding:9px 12px 2px;line-height:1.5}
.sc-ytb .fow-lbl{margin-right:6px}
/* phone live panel: the last 3 balls with commentary, one line each (fixed height) */
.lb-wrap{margin-top:8px;border-top:1px solid var(--line);padding-top:6px;display:flex;flex-direction:column;gap:3px}
.lb-row{display:flex;align-items:center;gap:7px;height:22px;font-size:12px;color:var(--muted)}
.lb-ov{flex:none;width:34px;font-weight:800;color:var(--muted2);font-variant-numeric:tabular-nums}
.lb-row .msp-ball{flex:none}
.lb-tx{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mslim .sl-meta{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.3}
/* how-out goes on its OWN line under the name (beside it, it squeezed the figures off the card);
   name + dismissal are one text block beside the initials */
.sc-txt{display:inline-flex;flex-direction:column;min-width:0}
/* PHONE AUTO-HIDE (see applyScoreCompact): after any tab tap, only the score widget stays —
   batters + bowler, latest balls and Recent overs fold away; the Chat tab's score card drops its
   players line. Tap the score widget to open it again. */
@media (max-width:820px){
  body.ph-score-only.chat-mode .msl-players{display:none}
  body.mobile-detail-open #mScoreHost .mscore{cursor:pointer;-webkit-tap-highlight-color:transparent}
  /* the hint that there is more: a small chevron under the folded widget */
  body.ph-score-only #mScoreHost .mscore::after{content:'▾';display:block;text-align:center;font-size:18px;
    color:var(--live);line-height:1;margin:4px 0 -6px}
}

/* Chat tab (phone): no second score card above the input — the widget on top is the score.
   With the keyboard up (chat-tight) the widget slims to the two team scores. */
@media (max-width:820px){
  body.mobile-detail-open.chat-mode .chat-foot .mini-score{display:none}
  body.chat-tight.mobile-detail-open.chat-mode .mscore .msp-line,
  body.chat-tight.mobile-detail-open.chat-mode .mscore .msp-over,
  body.chat-tight.mobile-detail-open.chat-mode .mscore::after{display:none}
}
/* The auto-hide SLIDES (~¼ s) instead of snapping: the extras above the tabs fold away and the
   tab row glides up with them, so a tap reads as a deliberate motion, not a jump. */
@media (max-width:820px){
  body.mobile-detail-open .mscore .mpc-wrap,
  body.mobile-detail-open .mscore .lb-wrap,
  body.mobile-detail-open .info-strip{max-height:640px;overflow:hidden;
    transition:max-height .26s ease,opacity .2s ease,margin .26s ease,padding .26s ease}
  body.ph-score-only .mscore .mpc-wrap,
  body.ph-score-only .mscore .lb-wrap,
  body.ph-score-only .info-strip{display:block;max-height:0;opacity:0;margin-top:0;margin-bottom:0;
    padding-top:0;padding-bottom:0;border-width:0;pointer-events:none}
}
/* wrapper so the match view's upper block can be patched on its own; generates no box */
.d-upper{display:contents}
/* immediate press feedback on match cards / rows */
.mcard:active,.mslim:active,.lr-card:active{transform:scale(.985);transition:transform .06s}

/* ── Scorecard tab: team / innings toggle ── */
.inns-tog{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:0 0 10px}
.inns-tog .dtab.itog{justify-content:center;width:100%;min-height:42px;font-size:13.5px;font-weight:800;border-radius:12px;
  background:var(--panel);border:1px solid var(--line2);color:var(--muted);white-space:nowrap;padding:8px 10px}
.inns-tog .dtab.itog small{font-weight:600;opacity:.8;margin-left:2px}
.inns-tog .dtab.itog.on{background:var(--blue);border-color:var(--blue);color:#fff}

/* ── Summary tab ── */
.sum-wrap{display:flex;flex-direction:column;gap:10px}
.sum-head{text-align:center;font-weight:800;font-size:14.5px;color:var(--amber);padding:10px 12px;background:var(--panel);
  border:1px solid var(--line);border-radius:12px}
.sum-over{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 12px;background:var(--panel);border:1px solid var(--line);border-radius:12px}
.sum-ovl{font-size:12px;font-weight:800;color:var(--muted2);margin-right:4px}
.sum-eq{margin-left:auto;font-weight:800;color:var(--txt)}
.sum-card .card-h{display:flex;align-items:center;gap:8px}
.sum-votes{margin-left:auto;font-size:11.5px;font-weight:700;color:var(--muted2)}
.sum-inn{padding:8px 0;border-top:1px solid var(--line)}
.sum-inn:first-of-type{border-top:0}
.sum-inn-h{font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--muted2);margin-bottom:4px}
.sum-p{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:14px;padding:3px 0}
.sum-p b{font-variant-numeric:tabular-nums}
.sum-p small{color:var(--muted);font-weight:600}
.sum-poll{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.sum-poll span{text-align:center;padding:9px;border:1px solid var(--line2);border-radius:10px;font-weight:800;color:var(--muted)}
.sum-poll span.lead{color:var(--accent);border-color:var(--accent)}

/* ── Info tab ── */
.inf-card{display:flex;flex-direction:column;padding:6px 14px}
.inf-toss{color:var(--amber);font-weight:700;padding:10px 0;border-bottom:1px solid var(--line)}
.inf-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border:0;border-bottom:1px solid var(--line);
  background:none;font:inherit;color:var(--txt);text-align:left;width:100%;font-weight:700}
.inf-row small{display:block;font-size:11px;font-weight:700;color:var(--muted2);margin-bottom:2px}
.inf-series{cursor:pointer}
.inf-go{font-size:22px;color:var(--muted2)}
/* live extras: partnership · last wicket · DRS left */
.lx-row{display:flex;flex-wrap:wrap;gap:6px 14px;justify-content:center;font-size:12.5px;color:var(--muted);margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}
.lx-row b{color:var(--txt)}
.lx-row small{color:var(--muted2)}
@media (max-width:820px){
  body.mobile-detail-open .mscore .lx-row{max-height:120px;overflow:hidden;transition:max-height .26s ease,opacity .2s ease,margin .26s ease,padding .26s ease}
  body.ph-score-only .mscore .lx-row{max-height:0;opacity:0;margin-top:0;padding-top:0;border-width:0}
}

/* ── Follow your team ── */
.follow-bar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 6px}
.follow-btn,.follow-edit{font:inherit;font-size:12.5px;font-weight:800;border-radius:20px;padding:6px 12px;cursor:pointer;
  border:1px dashed var(--amber);background:transparent;color:var(--amber)}
.follow-edit{border-style:solid;border-color:var(--line2);color:var(--muted)}
.follow-lbl{font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:var(--muted2)}
.follow-chip{font-size:12.5px;font-weight:800;color:var(--amber);background:rgba(255,181,46,.1);border:1px solid rgba(255,181,46,.35);border-radius:20px;padding:5px 10px}
.yt-badge{font-size:9px;font-weight:800;letter-spacing:.3px;color:#1a1200;background:var(--amber);border-radius:6px;padding:2px 6px;text-transform:uppercase}
.mslim.yt{border-color:rgba(255,181,46,.55)}
.fs-overlay{position:fixed;inset:0;z-index:300;background:rgba(5,8,16,.6);display:flex;align-items:flex-end;justify-content:center}
.fs-overlay[hidden]{display:none}
.fs-sheet{width:100%;max-width:520px;max-height:80vh;display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line2);
  border-radius:18px 18px 0 0;padding:14px 14px 18px}
@media(min-width:821px){.fs-overlay{align-items:center}.fs-sheet{border-radius:18px}}
.fs-head{display:flex;align-items:center;justify-content:space-between;font-size:15px;margin-bottom:10px}
.fs-close{background:none;border:0;color:var(--muted);font-size:18px;cursor:pointer;padding:4px 8px}
.fs-search{font:inherit;font-size:16px;padding:10px 12px;border-radius:10px;border:1px solid var(--line2);background:var(--panel2);color:var(--txt);outline:none}
.fs-note{font-size:11.5px;color:var(--muted2);margin:8px 2px}
.fs-list{overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding-bottom:6px}
.fs-team{display:flex;justify-content:space-between;align-items:center;font:inherit;font-size:14.5px;font-weight:700;color:var(--txt);
  background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:11px 12px;cursor:pointer;text-align:left}
.fs-team.on{border-color:var(--amber);color:var(--amber)}
.fs-tick{font-size:16px}
.fs-none{color:var(--muted);font-size:13px;padding:10px}
/* share button: top-right corner of the phone score widget; beside "Own Page" on desktop */
.mscore{position:relative}
.msp-share{position:absolute;top:6px;right:6px;width:30px;height:30px;border-radius:50%;border:1px solid var(--line2);background:var(--panel2);
  color:var(--accent);font-size:15px;font-weight:900;line-height:1;cursor:pointer;display:grid;place-items:center;z-index:2;padding:0}
.mscore .msp-teams{padding-right:30px}
button.share-link{font:inherit;font-size:11px;font-weight:800;cursor:pointer;background:transparent;color:var(--accent);border:1px solid var(--line2)}
/* commentary filter chips */
.cmt-filter{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;margin:2px 0 10px}
.cmt-filter::-webkit-scrollbar{display:none}
/* key moments */
.km-row{display:flex;align-items:center;gap:9px;padding:6px 0;font-size:13px;color:var(--muted)}
.km-row b{color:var(--txt)}
.km-ic{flex:none;min-width:30px;height:24px;padding:0 5px;border-radius:7px;display:grid;place-items:center;font-size:11px;font-weight:900}
.km-w{background:rgba(255,73,95,.18);color:var(--red)}
.km-o{background:rgba(61,139,255,.18);color:var(--blue)}
.km-m{background:rgba(255,181,46,.18);color:var(--amber)}
.km-ov{margin-left:auto;font-size:11.5px;font-weight:700;color:var(--muted2);white-space:nowrap}
.km-row .msp-ball{transform:scale(.8);margin:0 -2px}
/* phone score widget: status/situation lines are ONE line, always — a wrapping line changes the
   widget's height mid-match and everything below it jumps */
@media (max-width:820px){
  body.mobile-detail-open .mscore .msp-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
/* points what-if */
.wi-wrap{margin-top:12px;border-top:1px solid var(--line,rgba(127,127,127,.2));padding-top:10px}
.wi-h{font-weight:700;font-size:14px;margin-bottom:6px}
.wi-sub{font-weight:400;font-size:12px;opacity:.7;margin-left:4px}
.wi-list{display:flex;flex-direction:column;gap:5px;margin-bottom:8px}
.wi-fx{display:flex;align-items:center;gap:6px;font-size:13px}
.wi-dt{width:46px;flex:none;font-size:11px;opacity:.65}
.wi-v{font-size:11px;opacity:.6}
.wi-pick{flex:1 1 0;min-width:0;padding:6px 8px;border-radius:8px;border:1px solid var(--line,rgba(127,127,127,.3));background:transparent;color:inherit;font:inherit;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wi-pick.on{background:var(--accent,#2b7);border-color:var(--accent,#2b7);color:#fff;font-weight:700}
.wi-up{color:#2a9d55;font-size:11px;font-weight:700}
.wi-dn{color:#d64545;font-size:11px;font-weight:700}
.wi-gain{color:#2a9d55;font-size:11px}
.wi-note{font-size:11px;opacity:.75;margin-top:6px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.wi-reset{font:inherit;font-size:11px;padding:3px 8px;border-radius:6px;border:1px solid var(--line,rgba(127,127,127,.3));background:transparent;color:inherit;cursor:pointer}
/* language switch (EN / हि) — same footprint as the theme toggle beside it */
.nav-lang{font-size:14px;font-weight:700;margin-right:6px}
/* non-striker "not out": faded on dark; on a light panel a faded green is unreadable (2:1) */
.sc-str.off{opacity:.6}
body.theme-light .sc-str.off{opacity:1;color:var(--muted)}
.sc-txt .sc-str{margin-left:0}
/* phone scorecard: 18px card padding + 5px cell padding left a 6-column table ~20px wider than
   the card's content box at 375px, so SR sat in the padding. Measured: 0px overflow after this. */
@media (max-width:820px){
  .sc-card{padding-left:10px;padding-right:10px}
  .sc-tbl td{padding-left:4px;padding-right:4px}
}
/* light theme: the dark theme's pastel format badges read at 1.5-2.2:1 on a white card */
body.theme-light .fmt.fmt-t20{color:#1d5fd0}
body.theme-light .fmt.fmt-t20i{color:#6a3bd6}
body.theme-light .fmt.fmt-odi{color:#08803f}
body.theme-light .fmt.fmt-test{color:#9a5a00}
body.theme-light .sf-note{opacity:1}
/* Info tab: series / teams / squad names are real links now (crawlable) — keep them looking as before */
a.inf-row{color:inherit;text-decoration:none}
.inf-teams a{color:var(--accent);text-decoration:none;font-weight:700}
/* /team/<slug>: the exact-team filter is always visible, with one tap to clear */
.team-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 10px;padding:9px 12px;border-radius:12px;border:1px solid var(--line2);background:var(--panel2)}
.team-bar-n{font-weight:800;font-size:15px}
.team-bar-x{font:inherit;font-size:12px;font-weight:700;padding:5px 10px;border-radius:8px;border:1px solid var(--line2);background:transparent;color:inherit;cursor:pointer}
/* BEFORE the first real paint the landing is empty, so the footer sat near the top with the
   screen below it blank ("75% of the screen, then it fixes itself"). Hold the list area open and
   keep the footer out of sight until app.js has drawn the first content (html.cl-ready). */
html:not(.cl-ready) .site-foot{visibility:hidden}
html:not(.cl-ready) #landingGrid{min-height:calc(100vh - 140px)}
/* team flags / logos over the initials badge (teamFlag) */
.flag{position:relative;overflow:hidden}
.flag .flimg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .2s;background:#fff}
.flag .flimg.ok{opacity:1}
/* small inline flag beside a team name (phone score widget, live rail) — sits in the text line,
   so it adds no height to the fixed-height widget */
.flag.xs{display:inline-grid;width:14px;height:14px;font-size:6.5px;border-radius:3px;vertical-align:-2px;margin-right:5px}
/* ---- squad sheet (Info tab): team tabs · role chips · photo grid ---- */
.sqs{padding:12px 0 6px;border-bottom:1px solid var(--line)}
.sq-head{font-size:11.5px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.sq-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:10px}
.sq-tab{font:inherit;font-size:14px;font-weight:800;padding:8px 14px;background:transparent;border:0;border-bottom:2px solid transparent;color:var(--muted);cursor:pointer;display:inline-flex;align-items:center}
.sq-tab.on{color:var(--txt);border-bottom-color:var(--live)}
.sq-chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.sq-chip{font:inherit;font-size:12.5px;font-weight:700;padding:6px 11px;border-radius:9px;border:1px solid var(--line2);background:transparent;color:var(--muted);cursor:pointer}
.sq-chip.on{background:var(--blue);border-color:var(--blue);color:#fff}
.sq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 10px}
@media (min-width:821px){.sq-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.sq-p{display:flex;align-items:center;gap:10px;padding:7px 2px;min-width:0;color:inherit;text-decoration:none;border-radius:10px}
.sq-p:hover{background:var(--panel2)}
.sq-av{width:44px;height:44px;font-size:13px;flex:none}
.sq-tx{display:flex;flex-direction:column;min-width:0}
.sq-tx b{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sq-tx small{font-size:12px;color:var(--muted)}
.sq-tx b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.2}
/* ---- 🤖 Ask CricLive ---- */
.ask-body .gchat-list{display:flex;flex-direction:column;gap:8px;padding:10px}
.ask-msg{max-width:88%;padding:9px 12px;border-radius:14px;font-size:14px;line-height:1.45;word-wrap:break-word}
.ask-msg.me{align-self:flex-end;background:var(--blue);color:#fff;border-bottom-right-radius:4px}
.ask-msg.bot{align-self:flex-start;background:var(--panel2);border:1px solid var(--line);border-bottom-left-radius:4px}
.ask-msg.bot a{color:var(--accent);font-weight:700;text-decoration:none}
.ask-msg small{color:var(--muted)}
.ask-typing{letter-spacing:3px;font-weight:800}
.ask-empty{margin:auto;text-align:center;padding:20px 14px}
.ask-hi{font-size:17px;font-weight:800;margin-bottom:6px}
.ask-sub{font-size:13px;color:var(--muted);line-height:1.45}
.ask-chips{display:flex;gap:6px;overflow-x:auto;padding:4px 10px 8px;scrollbar-width:none}
.ask-chips::-webkit-scrollbar{display:none}
.ask-chip{flex:none;font:inherit;font-size:12.5px;font-weight:700;padding:6px 11px;border-radius:999px;border:1px solid var(--line2);background:transparent;color:var(--txt);cursor:pointer;white-space:nowrap}
.ask-chip:hover{border-color:var(--accent)}
/* phone chat sheet: four tabs (Match · Global · Group · Ask) + the name box share ~355px —
   inactive tabs show their icon only, the active one its label too */
.chat-tabs-merged .chat-tab:not(.on) .ct-l{display:none}
.chat-tabs-merged .chat-tab{flex:none;padding-left:9px;padding-right:9px}
/* ===== POP-UPS FIT THE VISIBLE SCREEN (iPhone) =====
   On iPhone Safari `vh` is the viewport with the toolbars HIDDEN, so a 92vh sheet anchored to the
   bottom was taller than what you can see: its top — the player's name and the ✕ — sat under the
   address bar, and the card was already at its own top, so you could not scroll up to it
   (reported with a screenshot of the player card). Every overlay and sheet is now sized to the
   VISIBLE viewport: --vvh (visualViewport height, set by fitMobileShell) → 100dvh → vh. */
.pm-overlay,.fs-overlay,.consent-gate,.nw-modal{bottom:auto;height:100vh;height:100dvh;height:var(--vvh,100dvh)}
.pm-card{max-height:88vh;max-height:calc(var(--vvh,100dvh) - 40px)}
@media(max-width:560px){.pm-card{max-height:92vh;max-height:calc(var(--vvh,100dvh) - 16px)}}
.fs-sheet{max-height:80vh;max-height:calc(var(--vvh,100dvh) * .85)}
.consent-card{max-height:92vh;max-height:calc(var(--vvh,100dvh) - 32px)}
/* the ✕ stays on screen however far you scroll inside the card */
.pm-x{position:sticky;top:0;display:block;margin:-8px -8px -22px auto;z-index:3}
/* reaction picker: it sat inside the 30px "+" wrapper and took THAT width, so the 8 emojis
   spilled out to the right — cut off, and the overflow let iPhone slide the whole page sideways
   (reported with a screenshot). Size it to its emojis, open leftwards, never wider than the screen. */
.rx-pop{width:max-content;max-width:calc(100vw - 32px);flex-wrap:wrap;justify-content:flex-end}
/* …and on phones `body.mobile-detail-open .detail *{max-width:100%}` capped both pop-ups at the
   width of their tiny wrapper (29px picker, 91px emoji panel). Exempt them — they size to their
   content, limited to the screen. */
body.mobile-detail-open .detail .rx-pop,body.mobile-detail-open .detail .emoji-pop{max-width:calc(100vw - 32px)}
body.mobile-detail-open .detail .rx-pop{max-width:calc(100vw - 64px)}   /* iPhone SE: wraps to 2 rows instead of running off the left edge */
/* ---- whole-match charts ---- */
.ch-sub{font-size:11.5px;font-weight:600;color:var(--muted);letter-spacing:0;text-transform:none;margin-left:6px}
.ch-w{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--red);vertical-align:0}
.ch-legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin:2px 0 6px;font-size:12.5px;color:var(--muted)}
.ch-lg{display:inline-flex;align-items:center;gap:6px}
.ch-lg i{width:14px;height:3px;border-radius:2px;display:inline-block}
.ch-lg b{color:var(--txt)}
.pt-list{display:flex;flex-direction:column;gap:7px}
.pt-row{display:grid;grid-template-columns:54px 1fr 38px;grid-template-areas:"n bar r" ". who who";align-items:center;column-gap:8px;font-size:12.5px}
.pt-n{grid-area:n;color:var(--muted);font-weight:700}
.pt-bar{grid-area:bar;height:10px;border-radius:6px;background:var(--panel2);overflow:hidden}
.pt-bar i{display:block;height:100%;border-radius:6px;background:var(--accent)}
.pt-row.best .pt-bar i{background:var(--blue)}
.pt-r{grid-area:r;text-align:right;font-variant-numeric:tabular-nums}
.pt-who{grid-area:who;font-size:11.5px;color:var(--muted)}
/* 📸 share-this-moment pill — fixed, so it never moves the page; above the phone bottom nav */
.moment-pill{position:fixed;left:50%;bottom:calc(76px + env(safe-area-inset-bottom));transform:translate(-50%,140%);z-index:350;
  display:flex;align-items:center;gap:8px;max-width:calc(100vw - 24px);padding:8px 8px 8px 14px;border-radius:999px;
  background:var(--panel);border:1px solid var(--line2);box-shadow:var(--shadow);opacity:0;pointer-events:none;transition:transform .25s ease,opacity .25s ease}
.moment-pill.show{transform:translate(-50%,0);opacity:1;pointer-events:auto}
.mp-t{font-size:13.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.mp-share{flex:none;font:inherit;font-size:13px;font-weight:800;padding:7px 14px;border-radius:999px;border:0;background:var(--accent);color:#fff;cursor:pointer}
.mp-x{flex:none;font:inherit;width:28px;height:28px;border-radius:50%;border:0;background:transparent;color:var(--muted);cursor:pointer}
@media(min-width:821px){.moment-pill{left:auto;right:24px;bottom:24px;transform:translateY(140%)}.moment-pill.show{transform:translateY(0)}}
/* 👏 fan pulse — on the predict strip's header line, pushed right; never wraps the row */
.nb-pulse{margin-left:auto;display:inline-flex;gap:3px;flex:none}
.np-b{font:inherit;font-size:13px;line-height:1;padding:3px 6px;border-radius:999px;border:1px solid var(--line2);background:transparent;color:var(--txt);cursor:pointer;display:inline-flex;align-items:center;gap:3px}
.np-b b{font-size:10.5px;font-weight:800;color:var(--muted);font-variant-numeric:tabular-nums}
.np-b.on{border-color:var(--accent);background:rgba(31,207,109,.14)}
.np-b.on b{color:var(--accent)}
.event-pop.pop-streak{color:#ffb52e}
/* "Who wins?" — one slim row on upcoming cards */
.mwho{display:flex;align-items:center;gap:6px;margin-top:9px;padding-top:9px;border-top:1px dashed var(--line);font-size:12.5px}
.mwho-q{color:var(--muted);font-weight:700;margin-right:2px;white-space:nowrap}
.mwho-b{font:inherit;font-size:12.5px;font-weight:800;padding:5px 10px;border-radius:999px;border:1px solid var(--line2);background:transparent;color:var(--txt);cursor:pointer;white-space:nowrap}
.mwho-b b{color:var(--muted);font-weight:700}
.mwho-b.on{border-color:var(--accent);background:rgba(31,207,109,.14);color:var(--accent)}
.mwho-n{margin-left:auto;color:var(--muted2);font-size:11.5px;white-space:nowrap}
.mwho{flex-wrap:wrap;row-gap:6px}
/* "CricLiveChat" is 4 letters longer than the old name — on the narrowest phones (iPhone SE,
   320px) the theme button was pushed off the edge. Tighten only below 380px. */
@media (max-width:380px){
  .site-nav{gap:6px}
  .nav-name{font-size:16px}
  .nav-filterbtn,.nav-theme{width:34px;height:34px;padding:0;min-width:34px}
  .nav-lang{margin-right:2px}
}
/* ===== CricLiveChat header brand: logo mark + three-colour wordmark (see the brand/ block below) ===== */
.nav-brand{display:flex;align-items:center;gap:9px}
.nav-mark{width:36px;height:36px;flex:none;display:block}
.nav-txt{display:flex;flex-direction:column;line-height:1}
.bw-c{color:#e53935;font-weight:900}.bw-l{color:#22c55e;font-weight:900}.bw-h{color:var(--txt);font-weight:900}
body.theme-light .bw-h{color:#0c1f42}
.nav-name b{font-weight:900}
.nav-tag{font-size:8.5px;font-weight:800;letter-spacing:2.2px;color:var(--muted);margin-top:4px;white-space:nowrap}
.consent-logo,.sf-logo{display:flex;align-items:center}
/* phones: the tagline stays off the crowded header (it is in the footer + share image) */
@media (max-width:820px){ .nav-tag{display:none} .nav-mark{width:32px;height:32px} }
@media (max-width:380px){ .nav-mark{width:28px;height:28px} .nav-brand{gap:6px} }
/* ===== the owner's logo (brand/): batsman-and-ball mark + full logo with bubble + tagline =====
   Dark theme (default) shows the *-dark files (navy parts lightened so they read on the dark page);
   light theme shows the original colours. Wordmark text matches the logo: Cric navy, Live red,
   Chat green, heavy and slanted. */
.bl-light{display:none}
body.theme-light .bl-light{display:block}
body.theme-light .bl-dark{display:none}
.nav-mark{width:auto;height:38px;flex:none}
.nav-name{font-style:italic;letter-spacing:-.6px}
.bw-c{color:var(--txt)}body.theme-light .bw-c{color:#0c1f42}
.bw-l{color:var(--b-live)}.bw-h{color:var(--b-chat)}
body.theme-light .bw-h{color:#15803d}
.consent-logo{justify-content:center;margin-bottom:6px}
.sf-logo{margin-bottom:8px}
@media (max-width:820px){ .nav-mark{height:30px} }
@media (max-width:380px){ .nav-mark{height:24px} }
@media (max-width:380px){
  .nav-filterbtn,.nav-theme{width:30px;height:30px;min-width:30px;border-radius:9px}
  .nav-name{font-size:15px}
  .site-nav{gap:5px;padding-left:10px;padding-right:10px}
}
/* 📅 calendar links */
.inf-cal{margin-left:auto;font-size:13px;font-weight:700;color:var(--accent);text-decoration:none;white-space:nowrap}
.team-bar-cal{margin-left:auto;margin-right:8px;font-size:12px;font-weight:700;color:var(--accent);text-decoration:none;white-space:nowrap}
/* 🔊 listen toggle — beside the share button (phone widget) / share link (desktop) */
.msp-listen{position:absolute;top:6px;right:42px;width:30px;height:30px;border-radius:50%;border:1px solid var(--line2);background:var(--panel2);
  color:var(--txt);font-size:14px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0;z-index:2}
.msp-listen.on,.listen-link.on{border-color:var(--accent);background:rgba(31,207,109,.16)}
.listen-link.on{color:var(--accent)}
.msp-listen{right:6px;top:42px}
/* 🔔 match alerts (push notifications) — the phone score box's right-hand button column (↗, 🔈, 🔔: the team names keep
   their full width — a padding for a button to the LEFT of ↗ cut "West Indies" to "West Indi…" on a 320 px SE);
   beside 🔈 Listen on desktop */
.msp-bell{position:absolute;top:42px;right:6px;width:30px;height:30px;border-radius:50%;border:1px solid var(--line2);background:var(--panel2);
  color:var(--txt);font-size:13px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0;z-index:2}
.msp-bell.on,.bell-link.on{border-color:var(--amber);background:rgba(245,166,35,.14)}
button.bell-link{font:inherit;font-size:11px;font-weight:800;cursor:pointer;background:transparent;color:var(--muted);border:1px solid var(--line2)}
button.bell-link.on{color:var(--amber)}
.msp-listen ~ .msp-bell{top:78px}
/* folded score box (Chat tab, after a tab tap): the batters · bowler row starts 99 px down on a 320 px SE — a 30 px 🔔
   at 78 sat over the bowler's "(8.0)". Folded, the 🔔 is 24 px at 74 (clear of 🔈 above and the row below). Squeezing
   the row instead made it scroll on the SE (fitPlRows ran out of steps). */
body.ph-score-only .mscore .msp-listen ~ .msp-bell,body.mobile-detail-open.chat-mode .mscore .msp-listen ~ .msp-bell{top:74px;width:24px;height:24px;font-size:11px}
.ps-opt span:first-child,.ps-ev span:first-child{display:flex;flex-direction:column;text-align:left}
.ps-opt small{font-size:11.5px;font-weight:600;color:var(--muted);margin-top:2px}
.ps-test{justify-content:center;color:var(--accent)}
.ps-why{color:var(--txt);font-size:13px;line-height:1.45}
/* SMALL PHONES (iPhone SE, 320px): the crawl found the SR column CUT OFF — scorecard tables 11-37px
   and the series "Most runs / Most wickets" tables 60px wider than the screen.
   (1) a grid column may shrink below its widest table (minmax(0,1fr)); (2) tighter type, cells and
   photos under 360px; (3) safety net: a table that still cannot fit scrolls sideways inside its card
   instead of losing a column. */
@media (max-width:720px){ .si-grid{grid-template-columns:minmax(0,1fr)} .si-col{min-width:0;overflow-x:auto} }
@media (max-width:360px){
  .sc-tbl{font-size:13.5px}
  .sc-tbl td,.sc-tbl th{padding-left:3px;padding-right:3px}
  .sc-tbl .avatar.av-sm{width:24px;height:24px;font-size:9px}
  .sc-tbl .sc-who{gap:6px}
  .sc-card{padding-left:8px;padding-right:8px;overflow-x:auto}
  .si-tbl{font-size:12.5px}
  .si-tbl td,.si-tbl th{padding-left:4px;padding-right:4px}
}
/* phone widget: the over row is ONE line, always — on an iPhone SE the balls + "FOUR! 🏏💨" wrapped
   to two lines and the widget changed height whenever the label came and went (the jumping class
   of bug). Under 360px the label (which repeats the coloured ball chip) is dropped. */
@media (max-width:820px){
  .msp-balls{flex-wrap:nowrap}
  .msp-over{min-width:0;overflow:hidden}
  .msp-over .msp-last{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@media (max-width:360px){
  .msp-over .msp-last{display:none}
  .msp-ball{min-width:18px;padding:0 4px}
  .sc-tbl{font-size:13px}
  .sc-card{padding-left:6px;padding-right:6px}
  /* 11 Nov 2026 — iPhone SE (320px), measured on live cards: ONE long surname (Sooriyabandara, Chandrasinghe) made the
     name column 145px and pushed the SR column 3-7px past the card, behind a sideways scroll. Slimmer cells first; and
     a name may break inside a word ONLY when it would otherwise push a figure off (overflow-wrap:anywhere lets the
     column shrink — while there is room it still wraps between words exactly as before). */
  .sc-tbl td,.sc-tbl th{padding-left:2px;padding-right:2px}
  .sc-tbl td.sc-nm{overflow-wrap:anywhere}
  .sc-tbl td.sc-nm .sc-who{min-width:0}
}
/* Innings buttons (Scorecard). `auto-fit, minmax(130px,1fr)` put THREE per row on wide phones
   (iPhone Pro Max ~430px) while a Test button needs ~165px — the text spilled out of the buttons
   (reported with a screenshot; a narrower phone showed the correct 2×2). Phones: always 2 per row;
   if the text still can't fit (iPhone SE, Safari text zoom), the overs wrap INSIDE the button.
   Desktop: a wider minimum, so a button is never narrower than its text. */
.inns-tog{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
.inns-tog .dtab.itog{min-width:0;flex-wrap:wrap;white-space:normal;text-align:center;line-height:1.25;padding-top:7px;padding-bottom:7px;column-gap:4px;row-gap:0}
.inns-tog .dtab.itog small{white-space:nowrap}
@media (max-width:820px){ .inns-tog{grid-template-columns:repeat(2,minmax(0,1fr))} }
/* …and 2 per row on desktop too: 3 + a lone 4th looked unbalanced; 2 innings sit side by side */
.inns-tog{grid-template-columns:repeat(2,minmax(0,1fr))}
/* phone chat sheet: the tabs were EQUAL shares (~43px each), so the SELECTED tab's label ("🌍 Global")
   spilled out of its box (caught by the site crawl). The selected tab takes the width its label
   needs; the icon-only tabs share what is left. */
body.chat-drawer-open .chat-tabs-merged .chat-tab.on{flex:0 0 auto;padding-left:10px;padding-right:10px}
body.chat-drawer-open .chat-tabs-merged .chat-tab:not(.on){flex:1 1 0;min-width:30px}
/* ...and on a 375px phone the name chip (fixed ~98px) pushed the row 55px past the edge. The name
   field is the one thing in that row that may shrink; its font stays 16px so iOS never zooms. */
body.chat-drawer-open .chat-tabs .chat-name-wrap{flex:0 1 auto;min-width:0;overflow:hidden}
body.chat-drawer-open .chat-tabs .chat-name{flex:1 1 auto;width:130px;min-width:48px}   /* 19 Oct: 96px cut "Guest-25027" at 16px; the active tab is icon-only on narrow phones now, which frees the room */
/* Phone chat sheet: the predict-the-next-ball row was ~100px (a header line + 40px buttons) and,
   with the keyboard up, left room for barely a message (user report 14 Oct 2026, screenshot).
   Same widget, same buttons, same pulse — just slim: one 18px header line + 30px buttons, and
   while typing (kb-open = keyboard up) ONLY the 26px button row, the ball number moving into
   its chip. Nothing is removed; the header comes back when the keyboard goes down. */
@media (max-width:820px){
  body.chat-drawer-open .drawer-nextball{padding:0 8px 4px}
  body.chat-drawer-open .drawer-nextball .nb-strip-hd{margin-bottom:3px;gap:6px;min-height:18px}
  body.chat-drawer-open .drawer-nextball .nb-strip-t{font-size:9.5px;letter-spacing:.2px}
  body.chat-drawer-open .drawer-nextball .nb-res,
  body.chat-drawer-open .drawer-nextball .nb-streak{font-size:10.5px}
  body.chat-drawer-open .drawer-nextball .np-b{font-size:11px;padding:1px 5px;gap:2px}
  body.chat-drawer-open .drawer-nextball .np-b b{font-size:9.5px}
  body.chat-drawer-open .drawer-nextball .nb-opts{gap:3px}
  body.chat-drawer-open .drawer-nextball .nb-ball{display:inline-flex;align-items:center;height:30px;padding:0 6px;font-size:10px;border-radius:7px}
  body.chat-drawer-open .drawer-nextball .nb-opt{height:30px;border-radius:7px;flex-direction:row;gap:3px}
  body.chat-drawer-open .drawer-nextball .nb-lbl{font-size:12.5px}
  body.chat-drawer-open .drawer-nextball .nb-pct{font-size:8px;min-height:0}
  body.kb-open.chat-drawer-open .drawer-nextball{padding-bottom:3px}
  body.kb-open.chat-drawer-open .drawer-nextball .nb-strip-hd{display:none}
  body.kb-open.chat-drawer-open .drawer-nextball .nb-opt,
  body.kb-open.chat-drawer-open .drawer-nextball .nb-ball{height:26px}
  body.kb-open.chat-drawer-open .drawer-nextball .nb-pct{display:none}
}

/* Schedule icon: a drawn calendar showing TODAY. The 📅 emoji is artwork — iOS always draws it as
   "JUL 17", which read as a wrong date on a page about dates. app.js fills the month/day. */
.bn-cal{display:inline-flex;flex-direction:column;width:19px;height:19px;border-radius:4px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.18)}
.bn-cal b{display:block;background:#e5484d;color:#fff;font:800 6px/7px system-ui,-apple-system,sans-serif;letter-spacing:.3px;text-align:center;text-transform:uppercase}
.bn-cal i{display:block;color:#111;font:800 11px/12px system-ui,-apple-system,sans-serif;font-style:normal;text-align:center}

/* PHONE SCORE SIZE (owner: "the score should be bigger"). It was 17px on every phone ≤430px — every
   iPhone — because "183 & 295/10 (107.4)" had to fit beside the share/listen buttons. The overs now sit
   on their own small line under the runs, so the runs can be big. MEASURED with real Test + T20 strings:
   28px fits on 375-430px phones, 22px on a 320px iPhone SE. Keyboard open (chat): stays compact. */
@media(max-width:820px){
  .mscore .msp-sc{font-size:28px;white-space:nowrap}
  .mscore .msp-sc .msp-ov{display:block;font-size:12px;line-height:1.2;margin-top:1px}
  body.kb-open.mobile-detail-open .mscore .msp-sc{font-size:20px}
  body.kb-open.mobile-detail-open .mscore .msp-sc .msp-ov{display:inline}
}
@media(max-width:360px){ .mscore .msp-sc{font-size:22px} }

/* 🎯 milestone in place of BATTING / BOWLING on the phone player card */
.mpc-role.mpc-near{color:var(--amber);letter-spacing:.2px}
/* 🎉 six / wicket burst — fixed overlay, nothing on the page moves */
.cel-burst{position:fixed;left:50%;top:38%;width:0;height:0;z-index:9000;pointer-events:none}
.cel-burst span{position:absolute;left:-12px;top:-12px;font-size:24px;opacity:0;animation:celFly 1s ease-out forwards}
@keyframes celFly{0%{transform:translate(0,0) scale(.4);opacity:1}70%{opacity:1}100%{transform:translate(var(--dx),var(--dy)) scale(1.1);opacity:0}}
/* 📲 add-to-home-screen bar: phones, landing page only, above the bottom nav */
.inst-bar{position:fixed;left:8px;right:8px;bottom:calc(66px + env(safe-area-inset-bottom,0px));z-index:190;display:flex;align-items:center;gap:8px;
  padding:9px 10px 9px 12px;border-radius:12px;background:var(--panel2);border:1px solid var(--line2);box-shadow:0 6px 24px rgba(0,0,0,.35);font-size:13px;color:var(--txt)}
.inst-bar .inst-t{flex:1;min-width:0;line-height:1.35}
.inst-bar .inst-go{flex:none;font:inherit;font-weight:800;padding:6px 14px;border-radius:999px;border:0;background:var(--accent);color:#04120a;cursor:pointer}
.inst-bar .inst-x{flex:none;font:inherit;background:transparent;border:0;color:var(--muted);font-size:15px;padding:4px 6px;cursor:pointer}
.inst-bar .inst-ic{display:inline-block;padding:0 3px;border:1px solid var(--line2);border-radius:4px}
body.mobile-detail-open .inst-bar,body.kb-open .inst-bar,body.chat-drawer-open .inst-bar{display:none}
@media(min-width:821px){.inst-bar{display:none}}

/* language list under the header button */
.lang-menu{position:fixed;z-index:9500;display:flex;flex-direction:column;min-width:140px;padding:6px;border-radius:12px;background:var(--panel2);border:1px solid var(--line2);box-shadow:0 10px 30px rgba(0,0,0,.4)}
.lang-opt{font:inherit;font-size:15px;font-weight:700;text-align:left;padding:9px 12px;border:0;border-radius:8px;background:transparent;color:var(--txt);cursor:pointer}
.lang-opt:hover{background:var(--bg2)}
.lang-opt.on{color:var(--accent)}
.lang-opt.on::after{content:' ✓'}

/* Tamil words are long: "அட்டவணை" (Schedule) was cut to "அட்டவ…" in the bottom bar */
html[lang=ta] .bottom-nav .bn-lb,html[lang=te] .bottom-nav .bn-lb{font-size:9.5px;letter-spacing:-.2px}
html[lang=ta] .bottom-nav .bnav-item,html[lang=te] .bottom-nav .bnav-item{flex:1 1 auto;min-width:0;padding-left:1px;padding-right:1px}

/* story card brand: the full CricLiveChat name (it still read "CricLive") */
.sa-brand .sa-chat{font-style:normal}   /* colours: the --b-* wordmark tokens at the end of this file */

/* CricLiveChat wordmark — the INDIA colours (owner, 15 Oct): Cric white · Live saffron · Chat green.
   Sampled from the owner's reference: #E8E8F0 / #F87840 / #20A058. White cannot show on the light
   theme, so there Cric is navy (the Ashoka chakra blue). ONE place: every wordmark uses these. */
:root{--b-cric:#E8E8F0;--b-live:#F87840;--b-chat:#20A058}
body.theme-light{--b-cric:#0c1f42}
.bw-c{color:var(--b-cric)}.bw-l{color:var(--b-live)}.bw-h{color:var(--b-chat)}
body.theme-light .bw-c{color:var(--b-cric)}body.theme-light .bw-h{color:var(--b-chat)}
.brand .brand-name{color:var(--b-cric)}.brand .brand-name span{color:var(--b-live)}.brand .brand-name .b-chat{color:var(--b-chat);font-style:inherit}
.sa-brand{color:var(--b-cric)}.sa-brand b{color:var(--b-live)}.sa-brand .sa-chat{color:var(--b-chat)}

/* ONE WORDMARK STYLE everywhere (owner: "keep font every where same"): the header's bold italic,
   India colours (--b-*). The footer and the welcome sheet used the logo PICTURE, whose baked-in
   "Live" stayed red; they now draw the same mark + text as the header, at a larger size. */
.wordmark,.nav-name,.sa-brand{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;font-style:italic;font-weight:900;letter-spacing:-.6px}
.wordmark b,.sa-brand b,.sa-brand i{font-weight:900;font-style:italic}
.brand-lockup{display:inline-flex;align-items:center;gap:calc(var(--lk) * .2)}
.brand-lockup .lk-mark{width:var(--lk);height:var(--lk);flex:none;display:block}
.brand-lockup .lk-txt{display:flex;flex-direction:column;align-items:flex-start;line-height:1}
.brand-lockup .lk-name{font-size:calc(var(--lk) * .5);display:inline-flex;align-items:center}
.brand-lockup .lk-bubble{position:relative;display:inline-grid;place-items:center;margin-left:.22em;padding:.08em .32em .14em;font-size:.42em;font-style:normal;
  font-weight:900;letter-spacing:1px;line-height:1;color:#fff;background:var(--b-chat);border-radius:.35em;transform:translateY(-.35em)}
.brand-lockup .lk-bubble::after{content:'';position:absolute;left:.35em;bottom:-.32em;border:.2em solid transparent;border-top-color:var(--b-chat);border-left-color:var(--b-chat)}
.brand-lockup .lk-tag{margin-top:calc(var(--lk) * .12);font-size:calc(var(--lk) * .155);font-weight:800;letter-spacing:.24em;color:var(--muted);white-space:nowrap}
.consent-logo .brand-lockup .lk-tag{color:#9fb0c8}
.consent-logo .bw-c{color:#E8E8F0}   /* the welcome sheet is always dark */
/* the lockup must keep the theme swap (.bl-dark/.bl-light) and its colours inside the welcome card,
   whose `.consent-card b` rule turned every <b> off-white */
.brand-lockup .lk-mark.bl-light{display:none}
body.theme-light .brand-lockup .lk-mark.bl-light{display:block}
body.theme-light .brand-lockup .lk-mark.bl-dark{display:none}
.brand-lockup .bw-c{color:var(--b-cric)}.brand-lockup .bw-l{color:var(--b-live)}.brand-lockup .bw-h{color:var(--b-chat)}
.consent-logo .brand-lockup .bw-c{color:#E8E8F0}
@media (max-width:380px){ .consent-logo .brand-lockup{--lk:44px !important} .sf-logo .brand-lockup{--lk:44px !important} }
/* 🚩/🚫 report + block — a quiet ⋯ on other people's messages and posts, and its menu */
.msg-more{flex:none;align-self:center;margin-left:2px;width:24px;height:22px;padding:0;border:0;border-radius:6px;background:transparent;
  color:var(--muted2);font:inherit;font-size:15px;font-weight:900;line-height:1;letter-spacing:1px;cursor:pointer;opacity:.75}
.msg-more:hover,.msg-more:focus-visible{background:var(--bg2);color:var(--txt);opacity:1}
.dsc-meta .msg-more,.dsc-rep .msg-more{display:inline-block;vertical-align:middle;margin-left:6px}
.more-menu{position:fixed;z-index:9600;min-width:210px;max-width:min(300px,calc(100vw - 16px));max-height:calc(var(--vvh,100dvh) - 16px);overflow:auto;padding:6px;border-radius:12px;
  background:var(--panel2);border:1px solid var(--line2);box-shadow:0 12px 32px rgba(0,0,0,.45);display:flex;flex-direction:column}
.more-menu .mm-h{font-size:12px;font-weight:800;color:var(--muted);padding:6px 10px 4px}
.more-menu .mm-b{font:inherit;font-size:14.5px;font-weight:700;text-align:left;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:var(--txt);cursor:pointer}
.more-menu .mm-b:hover{background:var(--bg2)}
.more-menu .mm-sub{font-size:13px;color:var(--muted)}
.more-menu .mm-x{color:var(--muted);font-weight:600}
.more-menu .mm-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;font-size:14px}
.more-menu .mm-un{font:inherit;font-size:12.5px;font-weight:800;padding:5px 10px;border-radius:999px;border:1px solid var(--line2);background:transparent;color:var(--accent);cursor:pointer}
.more-menu .mm-note{padding:8px 12px;font-size:13px;color:var(--muted)}
/* ☰ MENU — one place for everything (CREX-style). Phones + apps: language/theme live in here. */
.nav-menu{font-size:18px;font-weight:700;line-height:1}
@media (max-width:820px){ #langNav,#themeNav{display:none !important} }
.mn-overlay{position:fixed;inset:0;z-index:9400;background:rgba(4,8,18,0);transition:background .2s ease;display:flex;justify-content:flex-end}
.mn-overlay.in{background:rgba(4,8,18,.55)}
.mn-sheet{width:min(380px,100vw);height:100%;height:var(--vvh,100dvh);background:var(--panel);border-left:1px solid var(--line2);display:flex;flex-direction:column;
  transform:translateX(100%);transition:transform .22s ease;box-shadow:-12px 0 40px rgba(0,0,0,.35)}
.mn-overlay.in .mn-sheet{transform:none}
@media (prefers-reduced-motion:reduce){ .mn-overlay,.mn-sheet{transition:none} }
.mn-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line);padding-top:calc(14px + env(safe-area-inset-top,0px))}
.mn-brand{font-size:20px}
.mn-close{font:inherit;font-size:18px;width:36px;height:36px;border-radius:10px;border:1px solid var(--line2);background:transparent;color:var(--txt);cursor:pointer}
.mn-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:6px 10px calc(24px + env(safe-area-inset-bottom,0px))}
.mn-sec{font-size:11.5px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted2);padding:16px 8px 6px}
.mn-item{display:flex;align-items:center;gap:12px;width:100%;padding:12px 8px;border:0;border-radius:10px;background:transparent;color:var(--txt);font:inherit;font-size:15.5px;font-weight:700;text-align:left;text-decoration:none;cursor:pointer}
.mn-item:hover{background:var(--bg2)}
.mn-ic{width:26px;flex:none;text-align:center;font-size:18px}
.mn-lb{flex:1;min-width:0;display:flex;flex-direction:column}
.mn-lb small{font-size:12.5px;font-weight:600;color:var(--muted);margin-top:2px;line-height:1.35;overflow-wrap:anywhere}
.mn-go{color:var(--muted2);font-size:18px}
.mn-row{display:flex;align-items:center;gap:12px;padding:10px 8px;font-size:15.5px;font-weight:700}
.mn-row .mn-lb{flex:1}
.mn-row.mn-col{flex-direction:column;align-items:stretch;gap:8px}
.mn-lbl2{display:flex;align-items:center;gap:12px}
.mn-seg{display:inline-flex;border:1px solid var(--line2);border-radius:999px;overflow:hidden;flex:none}
.mn-seg button{font:inherit;font-size:13px;font-weight:800;padding:7px 12px;border:0;background:transparent;color:var(--muted);cursor:pointer}
.mn-seg button.on{background:var(--accent);color:#04120a}
.mn-langs{display:flex;flex-wrap:wrap;gap:6px;padding-left:38px}
.mn-langs button{font:inherit;font-size:14px;font-weight:700;padding:7px 12px;border-radius:999px;border:1px solid var(--line2);background:transparent;color:var(--txt);cursor:pointer}
.mn-langs button.on{border-color:var(--accent);color:var(--accent)}
.mn-blocked,.mn-note{margin:0 8px 6px 46px;padding:8px 10px;border-radius:10px;background:var(--bg2);font-size:13.5px;color:var(--txt)}
.mn-blocked .mm-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0}
.mn-foot{padding:18px 8px 4px;font-size:12px;color:var(--muted2);text-align:center}
body.menu-open{overflow:hidden}
.mn-cal{vertical-align:middle}   /* menu Fixtures icon = today's date (📅 is always JUL 17 on iOS) */
.fx-tz{font-size:12.5px;font-weight:700;color:var(--muted);margin:2px 2px 8px}   /* schedule: which zone the times are in */

/* ONE emoji button (owner, 16 Oct): emoji (inserted) + stickers (sent) in the same panel */
.emoji-pop .ep-h{grid-column:1/-1;font-size:11.5px;font-weight:800;letter-spacing:.4px;color:var(--muted);padding:4px 4px 2px}
.emoji-pop .ep-h small{font-weight:600;color:var(--muted2)}
.emoji-pop .ep-h2{margin-top:6px;border-top:1px solid var(--line);padding-top:8px}
.emoji-pop .ep-stk{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,1fr);gap:2px}
.emoji-pop .sticker-pick{font-size:26px;padding:5px}

/* PHONE SCROLL MODEL (16 Oct 2026). <body> as the scroller (html,body{height:100%}, kept above for
   desktop) made iPhone scrolling stop "in the middle" until a reload — a WebKit bug with a scrolling
   <body> after the keyboard or the toolbar resizes the viewport — and broke tap-the-status-bar-to-top.
   On phones the DOCUMENT scrolls now (html.doc-scroll, set by app.js), except while a chat screen is
   open (chat sheet, a match's Chat tab): those keep the old locked model they were tuned for. */
@media (max-width:820px){ html.doc-scroll, html.doc-scroll body{height:auto}
  /* body overflow-x:HIDDEN turns <body> into a scroll box of its own, and position:sticky inside it
     then never sticks (the document is what scrolls). `clip` hides sideways spill the same way
     without that — so the pinned score bar + tab row work. Old browsers keep `hidden`. */
  html.doc-scroll body{overflow-x:clip} }

/* ✏️ admin score corrections — only ever rendered in the /admin site view */
.ce-b{background:rgba(255,122,69,.12);border:1px solid rgba(255,122,69,.45);border-radius:6px;font-size:11px;line-height:1;padding:2px 4px;margin-left:4px;cursor:pointer;vertical-align:middle}
.ce-b:hover{background:rgba(255,122,69,.28)}
.ce-sheet{position:fixed;inset:0;z-index:9000;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.ce-box{background:var(--panel);color:var(--txt,inherit);border:1px solid var(--line2);border-radius:12px;width:min(360px,100%);padding:14px;display:flex;flex-direction:column;gap:8px}
.ce-h{font-weight:800;font-size:15px}
.ce-note{font-size:12px;color:var(--muted)}
.ce-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}
.ce-row input{width:130px;background:var(--panel2);color:inherit;border:1px solid var(--line2);border-radius:8px;padding:6px 8px;font-size:14px}
.ce-row input[name="how"]{width:190px}
.ce-err{color:#ff6b7d;font-size:12px}
.ce-acts{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
.ce-acts button{border-radius:8px;padding:7px 14px;font-weight:700;cursor:pointer;border:1px solid var(--line2);background:var(--panel2);color:inherit}
.ce-acts .ce-save{background:var(--accent);border-color:var(--accent);color:#fff}
/* 📌 phone sticky score — slides in once the big score box scrolls away (every match tab, not Chat).
   Fixed + transform only: it never moves the page. Fixed height so changing text can't resize it. */
#phStick{display:none}
@media (max-width:820px){
  #phStick{display:block;position:fixed;left:0;right:0;top:0;z-index:70;padding:env(safe-area-inset-top) 8px 6px;background:var(--bg);
    transform:translateY(-110%);transition:transform .2s ease;pointer-events:none}
  #phStick.on{transform:none;pointer-events:auto}
  #phStick .phs-in{display:flex;flex-direction:column;justify-content:center;gap:2px;width:100%;height:54px;margin:6px 0 0;padding:0 12px;
    font:inherit;text-align:left;color:var(--txt,#e8edf7);background:var(--panel);border:1px solid var(--line2);border-radius:12px;
    box-shadow:0 6px 18px rgba(0,0,0,.35);cursor:pointer;overflow:hidden}
  #phStick .phs-row{display:flex;align-items:center;gap:8px;white-space:nowrap;overflow:hidden;min-width:0}
  #phStick .phs-t{display:flex;align-items:baseline;gap:5px;font-size:13px;color:var(--muted);min-width:0}
  #phStick .phs-t b{font-size:15px;font-weight:800;color:inherit}
  #phStick .phs-t i{font-style:normal;font-size:11.5px;opacity:.85}
  #phStick .phs-t.on{color:var(--accent)}
  #phStick .phs-t.on b{font-size:18px}
  #phStick .phs-n{font-weight:800}
  #phStick .phs-v{color:var(--muted2)}
  #phStick .phs-2{font-size:12px;font-weight:700;color:var(--muted);justify-content:space-between}
  #phStick .phs-sit{overflow:hidden;text-overflow:ellipsis;min-width:0}
  #phStick .phs-ball{flex:none;min-width:20px;height:20px;line-height:20px;border-radius:6px;text-align:center;font-size:11px;font-weight:800;padding:0 4px}
  #phStick .phs-roll{flex:none;display:inline-flex;align-items:center}
}
@media (max-width:820px) and (prefers-reduced-motion:reduce){ #phStick{transition:none} }
/* …and the match tab row pins just UNDER that bar (CREX-style), so it is never covered by it and
   every tab stays one tap away while reading far down a scorecard or discussion. */
@media (max-width:820px){
  body.mobile-detail-open:not(.chat-mode) .lower-tabs{position:sticky;top:calc(env(safe-area-inset-top) + 66px);z-index:65;
    background:var(--bg);padding-top:4px;padding-bottom:4px;margin-top:-4px}
}
/* Squads table on a series page: the header ("Australian Capital Territory Women · T20") and long
   names were nowrap, so on a 320px iPhone SE the table was 376px and the Role column was cut off
   (body overflow:hidden used to clip it silently). Let the name column wrap. */
.si-squads .si-tbl th.pt-team,.si-squads .si-tbl td.pt-team{white-space:normal;overflow-wrap:anywhere}

/* ═══ CREX-style chat (owner, 16 Oct 2026) — "ours are best, but their chat feels better" ═══
   Letter avatars, name · time over the text, a feed instead of boxed cards, slim pill composers.
   Discussion keeps TITLES (owner). Desktop message rows are unchanged — the avatar is phone-only there. */
.chat-av{--avh:200;flex:none;width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:800;line-height:1;color:#fff;background:hsl(var(--avh) 55% 45%);user-select:none}
.chat-av.sm{width:24px;height:24px;font-size:11px}
.chat-av-clc{background:#0b1730;overflow:hidden}
.chat-av-clc img{width:100%;height:100%;object-fit:contain}
.chat-msg .chat-u.chat-u-clc{color:var(--accent)}
.chat-msg > .chat-av{display:none}

/* Discussion: a feed, everywhere */
.dsc-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.dsc-h{font-size:13px;font-weight:800;letter-spacing:.3px;color:var(--muted)}
.dsc-sort{display:inline-flex;gap:6px}
.dsc-sort button{font:inherit;font-size:12.5px;font-weight:800;padding:5px 14px;border-radius:999px;border:1px solid var(--line2);background:transparent;color:var(--muted);cursor:pointer}
.dsc-sort button.on{background:var(--blue,#2f6fd6);border-color:transparent;color:#fff}
.dsc-new{gap:6px;padding:0 0 10px;margin-bottom:4px}
.dsc-new-row{display:flex;align-items:center;gap:6px;background:var(--panel2);border:1px solid var(--line2);border-radius:24px;padding:3px 3px 3px 12px}
.dsc-new-row:focus-within{border-color:var(--accent)}
.dsc-new-row .dsc-in{flex:1;min-width:0;border:0;background:transparent;padding:8px 2px;font-size:14.5px}
.dsc-new-more{display:none;align-items:flex-end;gap:6px}
.dsc-new:focus-within .dsc-new-more,.dsc-new.has .dsc-new-more{display:flex}
.dsc-new-more .dsc-ta{flex:1;min-width:0;border-radius:14px;font-size:14px}
.dsc-send{flex:none;width:38px;height:38px;border-radius:50%;border:0;cursor:pointer;font-size:16px;line-height:1;color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent2));display:inline-flex;align-items:center;justify-content:center}
.dsc-th{border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;padding:12px 2px;margin:0}
.dsc-th.open{border-color:var(--line)}
.dsc-hd{display:flex;align-items:center;gap:8px;min-width:0}
.dsc-hd .dsc-u{font-size:13.5px;font-weight:800;color:var(--txt);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.dsc-ago{font-size:11.5px;color:var(--muted2);flex:none}
.dsc-hd .msg-more{margin-left:auto}
.dsc-hd .dsc-adm{margin:0}
.dsc-main{padding-left:38px}
.dsc-title{margin-top:4px;font-size:14.5px;cursor:pointer}
.dsc-body{margin-top:3px;font-size:14px;color:var(--txt);opacity:.92}
.dsc-acts{display:flex;align-items:center;gap:10px;margin-top:7px;flex-wrap:wrap}
.dsc-acts .dsc-votes{margin-left:0}
.dsc-rbtn,.dsc-viewr{font:inherit;background:none;border:0;padding:4px 2px;cursor:pointer}
.dsc-rbtn{font-size:12.5px;font-weight:800;color:var(--muted)}
.dsc-viewr{display:block;margin-top:6px;font-size:12.5px;font-weight:700;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.dsc-replies{margin-top:8px;padding-top:4px;border-top:0}
.dsc-rep{display:flex;align-items:flex-start;gap:8px;padding:8px 0;flex-wrap:nowrap}
.dsc-rep-main{flex:1;min-width:0}
.dsc-rep .dsc-u{font-size:12.5px}
.dsc-rep .dsc-rt{display:block;margin-top:2px;font-size:13.5px}
.dsc-rep .dsc-acts{margin-top:4px}
.dsc-reply-row{margin-top:6px;background:var(--panel2);border:1px solid var(--line2);border-radius:24px;padding:3px 3px 3px 6px}
.dsc-reply-row:focus-within{border-color:var(--accent)}
.dsc-reply-row .dsc-in{border:0;background:transparent;padding:8px 2px;font-size:14px}
.dsc-reply-row .emoji-btn,.dsc-new-more .emoji-btn{border:0;background:transparent;padding:6px}

@media (max-width:820px){
  /* chat messages: avatar | name · time / text — a feed, not boxed bubbles */
  .chat-msg:not(.chat-sys){display:grid;grid-template-columns:30px auto 1fr auto;column-gap:9px;row-gap:1px;align-items:center;
    grid-template-areas:"av u ts mr" "av t t t" "av x x x";background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:8px 2px}
  .chat-msg > .chat-av{display:inline-flex;grid-area:av;align-self:start}
  .chat-msg .chat-u{grid-area:u;font-size:12.5px;color:var(--txt)}
  .chat-msg.mine .chat-u{color:var(--accent)}
  .chat-msg .chat-ts{grid-area:ts;font-size:11px}
  .chat-msg .msg-more,.chat-msg .amod{grid-area:mr;justify-self:end}
  .chat-msg .chat-t,.chat-msg .chat-sticker{grid-area:t;font-size:14px;line-height:1.4}
  .chat-msg .chat-tr,.chat-msg .chat-tr-btn{grid-area:x;justify-self:start}
  .chat-msg.mine{background:none;border-color:var(--line)}
  .chat-msg.sticker-msg{padding:6px 2px}
  /* one slim pill composer: 😊 · text · round ➤ */
  .chat-input-row{align-items:center;gap:4px;background:var(--panel2);border:1px solid var(--line2);border-radius:24px;padding:3px 3px 3px 4px}
  .chat-input-row:focus-within{border-color:var(--accent)}
  .chat-input-row .chat-input{border:0 !important;background:transparent !important;box-shadow:none !important;min-height:40px;padding:9px 4px;border-radius:0;font-size:15px}
  .chat-input-row .emoji-btn{border:0;background:transparent;padding:6px 7px;font-size:19px}
  .chat-input-row .chat-send{width:40px;height:40px;min-width:40px;padding:0 !important;border-radius:50%;font-size:0 !important;line-height:0;display:inline-flex;align-items:center;justify-content:center}
  .chat-input-row .chat-send::after{content:"➤";font-size:17px;line-height:1;color:#fff}
}
/* The full-screen match Chat: the message list fills everything between the tabs and the composer.
   The "shorter phones" caps above (185/150/120px, same specificity, later in the file) were beating
   the chat-mode rule, so on most iPhones Chat showed 2-3 messages over a blank half-screen. */
@media (max-width:820px){
  body.mobile-detail-open.chat-mode .chat-mini .chat-list{max-height:none}
  body.mobile-detail-open.chat-mode .chat-mini{max-height:none}
}
@media (max-width:820px){ .chat-input-row > .emoji-wrap{align-self:center} }
/* Keyboard up: space above the keyboard is tiny, so messages fold to ONE compact line each
   (name · text · time, no avatar) — several stay readable while you type. */
@media (max-width:820px){
  body.kb-open .chat-msg:not(.chat-sys){display:flex;align-items:baseline;gap:7px;padding:3px 2px;border-bottom:0}
  body.kb-open .chat-msg > .chat-av{display:none}
  body.kb-open .chat-msg .chat-t{font-size:13.5px;line-height:1.3}
}
/* phone score box: series · match · format on top (one line), and a one-line batters · bowler
   row that shows ONLY when the big player cards are folded away (Chat, or after a tab tap) */
.msp-ser{display:none}
.msp-pl{display:none}
@media (max-width:820px){
  .msp-ser{display:block;font-size:11.5px;font-weight:700;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    margin:0 64px 6px 0;line-height:16px;height:16px}
  body.ph-score-only .mscore .msp-pl,body.mobile-detail-open.chat-mode .mscore .msp-pl{display:flex}
  .msp-pl{align-items:center;gap:12px;height:24px;margin-top:6px;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow-x:auto;scrollbar-width:none}
  .msp-pl::-webkit-scrollbar{display:none}
  .msp-pl span{flex:none}
  .msp-pl b{color:var(--txt);margin-left:3px}
  .msp-pl i{font-style:normal;font-size:11px;margin-left:2px;color:var(--muted2)}
  .msp-pl span.on b{color:var(--accent)}
  .msp-pl .msp-pl-b{margin-left:auto}
}
@media (max-width:820px){
  /* typing in Chat (keyboard up): the title line and the players row step aside for the messages */
  body.kb-open.mobile-detail-open.chat-mode .mscore .msp-ser{display:none}
}

/* CRR in the score line (always on) */
.msp-crr{display:none}
@media (max-width:820px){ .msp-crr{display:block;font-size:11.5px;font-weight:800;color:var(--muted);margin-top:1px;font-variant-numeric:tabular-nums} }
@media (max-width:820px){
  /* typing in Chat: score + CRR + batters/bowler stay; the secondary lines step aside for messages */
  body.kb-open.mobile-detail-open.chat-mode .mscore .msp-line,
  body.kb-open.mobile-detail-open.chat-mode .mscore .msp-over,
  body.kb-open.mobile-detail-open.chat-mode .mscore .lx-row,
  body.kb-open.mobile-detail-open.chat-mode .mscore .lb-wrap,
  body.kb-open.mobile-detail-open.chat-mode .mscore::after{display:none}
  body.kb-open.mobile-detail-open.chat-mode .mscore .msp-pl{margin-top:2px}
}
/* score box commentary: two lines, each swipes sideways for the FULL text (fixed height — no jumping) */
.lb-tx{text-overflow:clip;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
  -webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
.lb-tx::-webkit-scrollbar{display:none}
/* The 3 big player cards (2 batters + bowler, with photos) stay on EVERY tab, Chat included (owner,
   18 Oct 2026). The slim one-line players row is only for typing (keyboard up), when space is tight. */
@media (max-width:820px){
  body.ph-score-only .mscore .mpc-wrap{display:flex;max-height:640px;opacity:1;margin-top:9px;padding-top:9px;border-width:1px 0 0;pointer-events:auto}
  body.mobile-detail-open.chat-mode .mscore .mpc-wrap{display:flex}
  body.ph-score-only .mscore .msp-pl,body.mobile-detail-open.chat-mode .mscore .msp-pl{display:none}
  body.kb-open.mobile-detail-open.chat-mode .mscore .mpc-wrap{display:none}
  body.kb-open.mobile-detail-open.chat-mode .mscore .msp-pl{display:flex}
}
/* After any tab tap (and on Chat): the same 3 cards, photos and all, SIDE BY SIDE in one row — the SAME
   on every tab, so the tab row never moves (full cards on some tabs and a row on Chat jumped it 90px).
   A match opens with the full-size cards. Name shortens; figures never do. */
@media (max-width:820px){
  body.ph-score-only .mscore .mpc-wrap,body.mobile-detail-open.chat-mode .mscore .mpc-wrap{flex-direction:row;gap:5px;margin-top:7px;padding-top:7px}
  body.ph-score-only .mscore .mpc,body.mobile-detail-open.chat-mode .mscore .mpc{flex:1 1 0;min-width:0;display:grid;grid-template-columns:24px 1fr;grid-template-areas:"av nm" "fg fg";
    gap:3px 5px;padding:5px 6px;align-items:center}
  body.ph-score-only .mscore .mpc .mpc-av,body.mobile-detail-open.chat-mode .mscore .mpc .mpc-av{grid-area:av;width:24px;height:24px;font-size:9.5px}
  body.ph-score-only .mscore .mpc-mid,body.mobile-detail-open.chat-mode .mscore .mpc-mid{grid-area:nm;min-width:0}
  body.ph-score-only .mscore .mpc-role,body.mobile-detail-open.chat-mode .mscore .mpc-role{display:none}
  body.ph-score-only .mscore .mpc-name,body.mobile-detail-open.chat-mode .mscore .mpc-name{font-size:12px}
  body.ph-score-only .mscore .mpc-fig,body.mobile-detail-open.chat-mode .mscore .mpc-fig{grid-area:fg;font-size:14px;white-space:nowrap}
  body.ph-score-only .mscore .mpc-fig small,body.mobile-detail-open.chat-mode .mscore .mpc-fig small{font-size:10px}
}
/* P'ship · Last wkt · DRS: back on every tab as ONE small line (owner, 18 Oct 2026) — it used to fold
   away after a tab tap. Fixed height, swipes sideways if it is longer than the screen. */
@media (max-width:820px){
  body.mobile-detail-open .mscore .lx-row,
  body.ph-score-only .mscore .lx-row{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:12px;max-height:none;height:26px;align-items:center;
    opacity:1;margin-top:6px;padding-top:6px;border-top:1px solid var(--line);font-size:11.5px;white-space:nowrap;overflow-x:auto;scrollbar-width:none;pointer-events:auto}
  body.mobile-detail-open .mscore .lx-row::-webkit-scrollbar{display:none}
  body.mobile-detail-open .mscore .lx-row span{flex:none}
  body.kb-open.mobile-detail-open.chat-mode .mscore .lx-row{display:none}
}
/* the 2 commentary lines stay on every tab too (they folded away after a tab tap) */
@media (max-width:820px){
  body.ph-score-only .mscore .lb-wrap{display:flex;max-height:none;opacity:1;margin-top:6px;padding-top:6px;border-top:1px solid var(--line);pointer-events:auto}
  body.kb-open.mobile-detail-open.chat-mode .mscore .lb-wrap{display:none}
}
/* phone chat sheet: ★ My matches | All live, a ☆ on each card, and a dot on cards with new messages */
.gsw-scope{display:flex;gap:6px;margin:0 0 6px}
.gsw-scope button{font:inherit;font-size:12px;font-weight:800;padding:5px 12px;border-radius:999px;border:1px solid var(--line2);background:transparent;color:var(--muted);cursor:pointer}
.gsw-scope button.on{background:var(--accent);border-color:var(--accent);color:#04120a}
.gsw-card{position:relative}
.gsw-star{position:absolute;top:6px;right:8px;width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:var(--muted2);font-size:18px;line-height:1;cursor:pointer;padding:0}
.gsw-star.on{color:var(--amber,#f5b301)}
.gsw-card.has-new::after{content:'';position:absolute;top:10px;right:40px;width:9px;height:9px;border-radius:50%;background:var(--live,#ff3b4e);box-shadow:0 0 0 2px var(--panel)}
.gsw .mini-score .msl-teams{padding-right:30px}

/* Fan Meter (📊 tab): model vs fans, plus the vote right there */
.fan-meter{margin:0 0 12px}
.fan-meter .fm-h{font-size:11px;font-weight:800;color:var(--muted);margin:0 0 4px}
.fan-meter .fm-wait{font-size:12px;color:var(--muted);margin:0 0 8px}
.fan-meter .fm-strip{margin:0 0 8px}
.fan-meter .poll-widget{margin:0}
/* 🏅 badges — one wrapping row of small chips */
.bdg-card .bdg-n{float:right;font-size:11px;color:var(--muted)}
.bdg-row{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 2px}
.bdg{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:700;border:1px solid var(--line);color:var(--muted2);opacity:.6}
.bdg i{font-style:normal}
.bdg small{font-weight:600;color:var(--muted2)}
.bdg.got{opacity:1;color:var(--txt);background:var(--panel);border-color:var(--accent,#f5b301)}
/* 💬 quick messages inside the emoji/sticker pop-up */
.emoji-pop .ep-quick{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px;padding-bottom:2px}
.quick-pick{border:1px solid var(--line2);background:var(--bg2);color:var(--txt);cursor:pointer;font:600 12px/1.2 inherit;padding:5px 8px;border-radius:999px}
.quick-pick:active{transform:scale(.96)}
/* 🏆 group leaderboard — one slim scrolling line */
.grp-board{display:flex;align-items:center;gap:6px;height:24px;padding:0 10px;font-size:11px;color:var(--muted);white-space:nowrap;overflow-x:auto;scrollbar-width:none;flex:0 0 auto}
.grp-board::-webkit-scrollbar{display:none}
.grp-board b{color:var(--txt)}
.grp-board .gb-c.me{color:var(--txt);font-weight:700}
.grp-board i{font-style:normal;color:var(--muted2)}
body.kb-open .grp-board{display:none}
/* 🎯 Quiz tag on upcoming home cards — sits in the existing tag row, adds no height */
.quiz-tag{display:inline-flex;align-items:center;padding:1px 7px;border-radius:999px;font-size:10px;font-weight:800;background:rgba(245,179,1,.14);color:#f5b301;border:1px solid rgba(245,179,1,.35);cursor:pointer;margin-left:4px}
.quiz-folded{font-size:11px;color:var(--muted);padding:6px 2px 0}
/* computer share menu (no share sheet on http) */
.share-menu-wrap{position:fixed;z-index:200}
.share-menu{display:flex;flex-direction:column;min-width:170px;padding:6px;border-radius:12px;background:var(--panel);border:1px solid var(--line2);box-shadow:var(--shadow)}
.share-menu .sm-item{display:block;width:100%;text-align:left;padding:8px 10px;border-radius:8px;font-family:inherit;font-size:13px;font-weight:600;line-height:1.2;color:var(--txt);text-decoration:none;background:none;border:none;cursor:pointer}
.share-menu .sm-item:hover{background:var(--bg2)}
/* 📷 photos — button sits beside 😊; a photo never shifts the layout (width/height reserve its box) */
.photo-btn{flex:0 0 auto;width:34px;height:34px;border-radius:50%;border:1px solid var(--line2);background:var(--bg2);cursor:pointer;font-size:16px;line-height:1;padding:0;display:inline-flex;align-items:center;justify-content:center}
.dsc-reply-row .photo-btn,.dsc-new-more .photo-btn{width:30px;height:30px;font-size:14px}
.ph-img{display:block;margin:4px 0 2px;max-width:min(260px,100%)}
.ph-img img{display:block;width:100%;height:auto;max-height:240px;object-fit:cover;border-radius:10px;border:1px solid var(--line);background:var(--bg2)}
.dsc-main .ph-img{max-width:min(360px,100%)}
.dsc-main .ph-img img{max-height:320px}
.ph-chip{display:inline-flex;align-items:center;gap:6px;margin:4px 0;padding:3px 6px 3px 3px;border-radius:999px;border:1px solid var(--line2);font-size:11px;color:var(--muted)}
.ph-chip img{width:28px;height:28px;object-fit:cover;border-radius:50%}
.ph-chip button{border:none;background:none;color:var(--muted);cursor:pointer;font-size:12px;padding:0 2px}
.chat-t-ph .ph-img{margin:2px 0 4px}
.chat-t-ph .ph-img{max-width:min(200px,100%)}
.chat-t-ph .ph-img img{max-height:150px}
.chat-t-ph .ph-img{width:200px}   /* width, not max-width: the phone rule "body.mobile-detail-open .detail *{max-width:100%}" outranks a max-width here */

/* 📷 INSIDE the text box (19 Oct, "the text box became small"). The wrapper takes the box's flex
   slot and can always shrink, so a row can never be pushed past the screen edge. */
.in-wrap{position:relative;display:flex;flex:1 1 0;min-width:0}
.in-wrap > .chat-input,.in-wrap > .dsc-in{flex:1 1 auto;min-width:0;width:100%}
.in-wrap.has-ph > .chat-input,.in-wrap.has-ph > .dsc-in{padding-right:40px}
.in-wrap > .photo-btn{position:absolute;right:4px;bottom:50%;transform:translateY(50%);width:32px;height:32px;border:none;background:transparent;font-size:17px;opacity:.75}
.in-wrap > .photo-btn:hover{opacity:1;background:var(--bg2)}
.in-wrap > textarea.dsc-ta + .photo-btn{bottom:6px;transform:none}      /* multi-line box: bottom corner */
.dsc-new-more .in-wrap{flex:1 1 0}
.dsc-reply-row .in-wrap{flex:1 1 0}

/* NO PAGE ZOOM ON PHONES. iPhone Safari zooms the whole page into any text box under 16px and
   stays zoomed — that was the "chopped" Discussion (its boxes were 14-14.5px). Every field, every
   page, 16px on phones. !important on purpose: a later, more specific rule must never undo it. */
@media (max-width:820px){
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),textarea,select{font-size:16px !important}
}
/* desktop: a message is ONE wrapping row aligned on the text baseline — the name sat at the BOTTOM of
   the photo. With a photo: name + time on the first line, photo (+caption) on its own line below.
   (The phone message is a grid with its own areas; order/flex-basis don't apply there.) */
.chat-msg.has-ph{align-items:center}
.chat-msg.has-ph > .chat-t{flex:1 0 100%;order:5}
.chat-msg.has-ph > .chat-tr,.chat-msg.has-ph > .chat-tr-btn{order:6}
/* 📲 add-to-home-screen steps (menu box + the slim bar when opened) */
.inst-steps{margin:6px 0 4px;padding-left:20px;display:flex;flex-direction:column;gap:5px;line-height:1.35}
.inst-steps li::marker{color:var(--accent,#f5b301);font-weight:800}
.inst-warn{font-weight:700;color:var(--txt);margin-bottom:2px}
.inst-note{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.35}
.inst-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.inst-btn{display:inline-flex;align-items:center;gap:4px;padding:7px 12px;border-radius:999px;border:1px solid var(--line2);background:var(--panel2);color:var(--txt);font:700 12.5px/1 inherit;text-decoration:none;cursor:pointer}
.inst-bar.open{align-items:flex-start;max-height:70vh;overflow-y:auto}
/* 👆 TAP TARGETS on phones (19 Oct audit: ☆ was 18×14 px, footer links 18 px tall). The touch area
   grows to 32 px; negative margins keep the VISIBLE size and the layout exactly as before. */
@media (max-width:820px){
  .star{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;margin:-9px -7px}
  .sf-legal a{display:inline-flex;align-items:center;min-height:32px;padding:0 2px}
}
/* 👆 more phone tap targets from the full-site audit (19 Oct): chat ⋯, Discussion ＋/reactions,
   Info team links, Add to calendar, All news, team Fixtures, the Ask bot's match links.
   Bigger touch area; padding + negative margin keep what you SEE where it was. */
@media (max-width:820px){
  .msg-more{width:32px;height:32px;margin:-5px -4px -5px 0}
  .dsc-vote{min-height:32px;padding-top:4px;padding-bottom:4px}
  .dsc-rep .dsc-vote{min-height:30px}
  .inf-teams a,.inf-cal,.team-bar-cal,.si-all{display:inline-flex;align-items:center;min-height:32px;margin:-6px 0}
  .ask-msg a{display:inline-flex;align-items:center;min-height:30px}
}
/* Fans tab: one card like every other tab — the vote inside it is not a second boxed card */
.fan-meter.card{padding:12px 14px}
.fan-meter .poll-widget{border:0;background:none;padding:0;margin-top:6px}
/* 📊 points table on a phone: all 8 columns fit a 375 px screen (19 Oct audit: NRR sat off-screen
   behind a sideways scroll, showing only "+" / "−"). Tighter cells; a long team name truncates. */
@media (max-width:820px){
  .pt-tbl th,.pt-tbl td{padding-left:4px;padding-right:4px}
  .pt-tbl td.pt-team{max-width:118px;overflow:hidden;text-overflow:ellipsis}
}
/* narrow phones: the chat sheet's tab row also holds your name (16px text needs ~120px) — the active
   tab shows its icon + highlight only, like the others, so the name is never cut off (19 Oct audit) */
@media (max-width:400px){ .chat-tabs-merged .chat-tab .ct-l{display:none} }

/* the narrowest phones (iPhone SE, 320 px) — 19 Oct audit:
   • points table: 8 columns in 266 px → smaller type, minimal padding, shorter team names
   • chat sheet row: back + 4 tabs + your name + online count do not fit; on these screens only, the
     online count is left out of that row, so the name is never cut off */
@media (max-width:359px){
  .pt-tbl{font-size:12px}
  .pt-tbl th{font-size:9.5px;letter-spacing:0}
  .pt-tbl th,.pt-tbl td{padding-left:2px;padding-right:2px}
  .pt-tbl td.pt-team{max-width:92px}
  body.chat-drawer-open .chat-tabs-merged .gchat-presence{display:none}
  body.chat-drawer-open .chat-tabs-merged .chat-tab:not(.on){min-width:26px}
  body.chat-drawer-open .chat-tabs-merged{gap:3px}
}

/* 🎨 EVERY main tab shows WHERE YOU ARE (19 Oct: only Chat + the innings tabs had a selected colour —
   Discussion, Scorecard, Summary, Info, Quiz, Fans looked identical selected or not).
   One colour per tab, by meaning; light theme uses the darker shade so the label stays readable.
   The generic .dtab.on rule is the fallback: a tab added later can never be invisible when selected. */
.dtab-chat{--tc:#b06bff;--tt:#cfa8ff;--td:#6d32c9}
.dtab-disc{--tc:#3d8bff;--tt:#8fbaff;--td:#1c58c4}
.dtab-card{--tc:#1fcf6d;--tt:#7ff0ad;--td:#0f8a45}
.dtab-sum{--tc:#ffb52e;--tt:#ffce6e;--td:#9a6500}
.dtab-info{--tc:#2fd9c8;--tt:#7fe9dd;--td:#0b7d72}
.dtab-quiz{--tc:#ff6ea6;--tt:#ff9cc4;--td:#b8285e}
.dtab-wp{--tc:#ff8a3d;--tt:#ffb27f;--td:#b44d07}
.dtab-proj{--tc:#7c83ff;--tt:#aeb2ff;--td:#434bd0}
.lower-tabs .dtab.on{border-color:var(--tc,var(--accent,#f5b301));color:var(--tt,var(--txt));
  box-shadow:0 0 0 1px var(--tc,var(--accent,#f5b301)),0 8px 22px color-mix(in srgb,var(--tc,#888) 18%,transparent)}
body.theme-light .lower-tabs .dtab.on{color:var(--td,var(--txt));background:#fff}
/* 📝 COMMENTARY joined the match tab row (11 Nov 2026) — nine tabs on a live match, so every tab gives a little back:
   the icon had two spacings (its own margin AND the flex gap), the font drops ½px, the padding 2px.
   The row still scrolls sideways on a phone and still wraps on a computer; a tab is never cut with "…". */
.dtab-cmt{--tc:#38bdf8;--tt:#93d9fb;--td:#0a6a96}
.dtab-card{--td:#0b7a3b}   /* light theme: #0f8a45 on white measured 4.43:1 — short of 4.5 */
.lower-tabs .dtab{gap:0;font-size:12px}
@media (max-width:820px){
  /* the 7px gap between tabs stays: the pinned row's edge fades (::before/::after, margin -37px) are sized to it */
  body.mobile-detail-open .lower-tabs .dtab{padding:8px 9px;min-height:33px}   /* 9px: Linux fonts run ~2px a tab wider than the Mac's — at 10px the 4th tab showed 22px, the rule is 24 */
  /* the innings sub-tabs: ONE row, as the phone rule further up always meant (the base `.sub-tabs{flex-wrap:wrap}`
     comes later in the file and won, so five sub-tabs stacked on two rows). Without the icons all five fit a 375px
     phone; on a 320px one the row scrolls. */
  body.mobile-detail-open .sub-tabs{flex-wrap:nowrap;overflow-x:auto;gap:3px;padding:4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  body.mobile-detail-open .sub-tabs::-webkit-scrollbar{display:none}
  body.mobile-detail-open .sub-tabs .stab{flex:1 0 auto;gap:0;padding:7px 7px;min-height:32px;font-size:11.5px}
}
@media (min-width:821px){
  .lower-tabs{gap:5px}
  .lower-tabs .dtab{padding:7px 6px}
}
/* WHERE YOU ARE: the open tab is filled with a breath of its own colour, not only outlined — in the light theme an
   open tab was white on a near-white row. Text on the tint measured ≥ 4.6:1 (light) and ≥ 7:1 (dark, black). */
.lower-tabs .dtab.on{background:color-mix(in srgb,var(--tc,var(--accent)) 14%,var(--panel))}
body.theme-light .lower-tabs .dtab.on{background:color-mix(in srgb,var(--tc,var(--accent)) 10%,var(--panel))}
/* light theme: the open sub-tab was near-black on the DARK light-theme green (3.1-3.7:1) → white (4.6-5.4:1) */
body.theme-light .stab.on{color:#fff}
/* dark themes: the open innings button was white on the bright blue (3.3:1) → the same blue, deeper (5.1:1) */
body:not(.theme-light) .inns-tog .dtab.itog.on{background:color-mix(in srgb,var(--blue) 78%,#000);border-color:color-mix(in srgb,var(--blue) 78%,#000)}
/* 🔘 TABS LOOK LIKE TABS (owner, 12 Nov 2026: "tabs look like plain text… add colour, don't over-colour, text not icons").
   Owner picked option B of two mock-ups: a closed tab is a clear BUTTON (full-strength text on a lifted chip with a
   visible border — never the grey body-text look); the open tab is a SOLID fill in its own colour (--tc dark / --td light).
   Sub-tabs follow the same rule, open = green. No icons in either row (19px back per tab: a live Test's 8 tabs 714 → 552px).
   Measured: closed 13.6:1 dark / 18.2:1 light; open ≥ 5.8:1 dark (#0a0e1a on --tc), ≥ 4.96:1 light (white on --td). */
.lower-tabs .dtab:not(.on),.sub-tabs .stab:not(.on){color:var(--txt);background:var(--panel2);border-color:var(--line2)}
body.theme-light .lower-tabs .dtab:not(.on),body.theme-light .sub-tabs .stab:not(.on){background:#fff}
.sub-tabs .stab{--tc:#1fcf6d;--td:#0b7a3b}
.lower-tabs .dtab.on,.sub-tabs .stab.on{background:var(--tc,var(--accent));border-color:var(--tc,var(--accent));color:#0a0e1a;box-shadow:none}
body.theme-light .lower-tabs .dtab.on,body.theme-light .sub-tabs .stab.on{background:var(--td,var(--accent));border-color:var(--td,var(--accent));color:#fff}
.lower-tabs .dtab,.sub-tabs .stab{gap:0}
/* without an icon "Info" came to 43px — a tap target is never under 44px wide (phone-tabs-browser) */
.lower-tabs .dtab,.sub-tabs .stab{min-width:44px;justify-content:center}
/* 🌗 CONTRAST PASS (11 Nov 2026). Every pair here was MEASURED under 4.5:1 in a real browser (text colour against the
   nearest solid background, all three themes, home + every match tab + the menu); the ratio after is in brackets.
   Dark themes also got a lighter --muted2 at the top of the file (#646e8f was 3.2-3.8:1 on every panel). */
/* dark + black: white on the bright green was 2.06:1 → the near-black the other green buttons already use (9.3:1) */
body:not(.theme-light) .ct-chip.on,body:not(.theme-light) .quiz-opt.correct{color:#04120a}
body:not(.theme-light) .ct-chip.on .ct-n{background:rgba(0,0,0,.16);color:#04120a}
/* dark + black: white on the bright blue, 3.3:1 → the deeper blue of the innings buttons (5.1:1) */
body:not(.theme-light) .dsc-sort button.on{background:color-mix(in srgb,var(--blue) 78%,#000)}
/* light: near-black on the DARK light-theme green was 3.7-4.2:1 → white (4.6:1) */
body.theme-light .ds-chip.on,body.theme-light .mn-seg button.on{color:#fff}
/* light: the predict buttons' 4 / 6 / W kept their dark-theme pastels (2.3-2.5:1 on the pale button) → 4.7-5.6:1 */
body.theme-light .nbo-6 .nb-lbl{color:var(--purple)}
body.theme-light .nbo-4 .nb-lbl{color:var(--blue)}
body.theme-light .nbo-w .nb-lbl{color:#c81e36}
/* …but the score box on a computer is ALWAYS dark navy (.hero), light theme included: its predict row keeps the pastels */
body.theme-light .hero .nbo-6 .nb-lbl{color:#b58bff}
body.theme-light .hero .nbo-4 .nb-lbl{color:#5b9bff}
body.theme-light .hero .nbo-w .nb-lbl{color:#ff6b7a}
/* light: the phone bottom bar — "Chat" in pastel pink (2.7:1) and the date in the Schedule icon (2.2:1) → 4.7:1 */
body.theme-light .bnav-item.bnav-chat:not(.on) .bn-lb{color:#c2256f}
body.theme-light [data-nav="upcoming"] .bn-cal2 i{color:var(--blue)}
/* light: "🏠 Home" beside a match on a computer was pale blue on the pale page (1.3:1) */
body.theme-light .all-matches-btn{color:var(--txt);background:var(--panel);border-color:var(--line2)}
body.theme-light .all-matches-btn:hover{color:var(--accent)}
/* the unread count: white on the bright red was 3.3:1 at 9px → 4.9:1 */
.dtab-unread{background:color-mix(in srgb,var(--red) 80%,#000)}
/* the browser draws native controls (dropdown lists, scrollbars, date pickers) to match the theme —
   without this a dark page opened a white dropdown with light text on it (19 Oct) */
:root{color-scheme:dark}
body.theme-light{color-scheme:light}
select option{background:var(--panel,#131829);color:var(--txt,#e8edf7)}
body.theme-light select option{background:#fff;color:#0c1f42}

/* ━━ MATCH HEADER ON ONE LINE (19 Oct, owner: "fix it into one line, don't remove anything").
   The normal match view's centre column is narrower than Own Page's, so the buttons wrapped to a
   second row and pushed the score down. Now: series name on the left (truncates with "…"),
   everything else on the right in ONE row. When the header is narrow the buttons drop their word
   and keep their icon (hover/long-press shows the name); the status is a compact pill. ━━ */
.hero-inner{container-type:inline-size;container-name:hero}
.hero-top{flex-wrap:nowrap;gap:12px}
.hero-top .series{flex:1 1 auto;min-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-topright{flex:0 0 auto;flex-wrap:nowrap;gap:6px}
.hero-chips{flex-wrap:nowrap}
.hero-topright .solo-link{padding:4px 8px;white-space:nowrap;font-size:10.5px;letter-spacing:.5px;gap:4px}
/* status → a pill: "● LIVE" pulsing red, a break in amber */
.hero-status{padding:4px 10px;border-radius:999px;white-space:nowrap;font-size:11px;letter-spacing:1px;line-height:1}
.hero-status.live{color:#fff;background:linear-gradient(135deg,#ff3b5c,#ff6a3d);box-shadow:0 0 0 0 rgba(255,59,92,.5);animation:livepill 2s ease-in-out infinite}
.hero-status.live .d{background:#fff}
.hero-status.paused{background:rgba(255,181,46,.12);border:1px solid rgba(255,181,46,.35);letter-spacing:.2px}
.hero-status.up{background:rgba(61,139,255,.12);border:1px solid rgba(61,139,255,.35);color:#9cc2ff}
@keyframes livepill{0%,100%{box-shadow:0 0 0 0 rgba(255,59,92,.45)}50%{box-shadow:0 0 0 6px rgba(255,59,92,0)}}
@media (prefers-reduced-motion:reduce){.hero-status.live{animation:none}}
body.theme-light .hero-status.paused{color:#8a5a00}
body.theme-light .hero-status.up{color:#1c58c4}
/* narrow header: icons only, the words move into the tooltip / screen-reader label */
@container hero (max-width: 600px){
  .hero-topright .solo-link .hl{display:none}
  .hero-topright .solo-link{padding:5px 9px;letter-spacing:0}
}
@container hero (max-width: 560px){
  .hero-chips .hchip{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* 2. Share + Listen are icon buttons in the header (name on hover / for screen readers); Own Page keeps
   its words — it is the one people missed before. Square 30 px tap targets. */
.hero-topright .share-link .hl,.hero-topright .listen-link .hl{display:none}
.hero-topright .share-link,.hero-topright .listen-link{min-width:30px;height:28px;justify-content:center;padding:0 7px;font-size:13px}
.hero-status .hs-day{opacity:.8;font-weight:700}
.hero-topright{gap:5px}
.hero-status{padding:4px 9px}
.hero-topright .solo-link:not(.share-link):not(.listen-link){padding:4px 7px}
.hero-top{gap:8px}
/* 📱↔ PHONE HELD SIDEWAYS (short landscape): score + tabs + chat fit; tap the score for everything */
@media (max-width:820px){
  body.ls-tight #mScoreHost .mscore .mpc-wrap,
  body.ls-tight #mScoreHost .mscore .lx-row,
  body.ls-tight #mScoreHost .mscore .lb-wrap,
  body.ls-tight #mScoreHost .mscore .info-strip,
  body.ls-tight #mScoreHost .mscore .msp-ser{display:none!important}
  body.ls-tight #mScoreHost .mscore{padding-top:6px;padding-bottom:6px}
  body.ls-tight #mScoreHost .mscore::after{content:'▾';position:absolute;right:50%;bottom:0;font-size:11px;line-height:1;color:var(--muted)}
  body.ls-tight #mScoreHost .mscore{position:relative}
  /* the status ("Day 2 · ⏸ Stumps", "RSA lead by 97") must always show — the short screen made the page
     think the keyboard was open and hid it. Sideways there is width to spare: both sit on ONE row. */
  body.ls-tight #mScoreHost .mscore .msp-line.msp-status{display:inline-flex!important;font-size:11.5px;margin:2px 14px 0 0;padding-top:0;border-top:0}
}
@media (max-width:820px){
  /* sideways: slimmer tab row + Match/Group switch, so the chat box stays on a 340 px screen */
  body.ls-tight .lower-tabs .dtab{padding-top:5px;padding-bottom:5px}
  body.ls-tight.mobile-detail-open .chat-stick-row .chat-tab{padding-top:3px;padding-bottom:3px;min-height:26px;flex-direction:row;gap:5px}
  body.ls-tight .chat-stick-row{padding-top:2px;padding-bottom:2px}
  /* "💬 Match" broke onto two lines inside a squeezed 69 px button, making the row 42 px tall
     and leaving the messages 38 px on a sideways phone (19 Oct). Labels never wrap. */
  body.mobile-detail-open .chat-stick-row .chat-tab{white-space:nowrap;flex-shrink:0}
}
@media (max-width:820px){
  /* sideways: "97/5 (43.0) · CRR 2.26" on ONE line — the score was three stacked lines */
  body.ls-tight #mScoreHost .mscore .msp-sc{font-size:22px;display:inline-block}
  body.ls-tight #mScoreHost .mscore .msp-sc .msp-ov{display:inline;margin-left:4px}
  body.ls-tight #mScoreHost .mscore .msp-crr{display:inline-block;margin-left:10px}
  /* 5 Nov 2026: .msp-team is a flex COLUMN, which turns those inline-blocks into blocks — name, score and
     CRR still stacked (66 px) and the chat box ended 4-8 px below a 340 px screen. Sideways: one row. */
  body.ls-tight #mScoreHost .mscore .msp-team{flex-direction:row;flex-wrap:wrap;align-items:baseline;column-gap:8px;row-gap:0}
  body.ls-tight #mScoreHost .mscore .msp-team .msp-crr{margin-left:0}
  /* ...and the stacked ↗ / 🔊 buttons then sat over the bowler's figures: side by side, there is width */
  body.ls-tight #mScoreHost .mscore .msp-listen{top:6px;right:42px}
  body.ls-tight #mScoreHost .mscore .msp-listen ~ .msp-bell{top:6px;right:78px}
}
/* 📟 TABLETS (821–1180 px, e.g. iPad portrait 834, iPad landscape 1024): the top links did not fit —
   "Points" was cut to "Po" and the rest sat under EN / 🌙 / ☰ (19 Oct audit). The logo's tagline
   gives up its 167 px here, and the link strip fades at its edge so it reads as "swipe for more". */
@media (min-width:821px) and (max-width:1239px){      /* up to 1239: iPad Pro 11 landscape is 1194 and lost "News" */
  .nav-brand .nav-tag{display:none}
  /* 24 Oct: once Pavilion + Chat joined the bar, the strip was left 81 px wide at 834 (iPad Pro 11 portrait) —
     only "Live" showed and nothing said "swipe" (owner: "all icon was gone I only see live"). On tablets the links
     now take their own row under the logo and buttons, every one visible; --navh is measured live, so the
     chat page / Pavilion follow the taller header. Phones (bottom bar) and wide screens are unchanged. */
  .site-nav{flex-wrap:wrap;row-gap:6px}
  .site-nav .nav-links{order:10;flex:1 0 100%;justify-content:space-between;overflow:visible;padding:0;-webkit-mask-image:none;mask-image:none}
  .site-nav .nav-links .nav-link{flex:1 1 0;min-width:0}
}

/* one real heading per page, named for THAT page ("South Africa vs Australia Live Score"), for search
   engines and screen readers; the logo is not the heading. Visually the page already says it. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cl-summary{max-width:760px;margin:16px auto;padding:0 16px;line-height:1.6}
.cl-summary ul{margin:8px 0 8px 20px}

/* 🏏 ball in play stays visible while chatting: when the over row folds away (short screen or
   keyboard up, Chat tab) the chip on the batting side's score line shows it instead */
.msp-bip{display:none}
@media (max-width:820px){
  body.chat-tight.mobile-detail-open.chat-mode .mscore .msp-bip,
  body.kb-open.mobile-detail-open.chat-mode .mscore .msp-bip{display:inline-flex;align-items:center;gap:4px;margin-left:6px;vertical-align:middle;
    font-size:10px;font-weight:900;letter-spacing:.3px;font-style:normal;white-space:nowrap}
  .msp-bip.run{color:#ff8a96}
  .msp-bip.run .roll-ball{width:9px;height:9px}
}
/* 🔴 unread badge on phones (20 Oct): the tab row SCROLLS sideways there, and a scrolling row clips
   whatever sticks out above it — the corner badge was cut to a 9×8 px sliver (and colourless: it used
   var(--bad), which this site never defined). Tucked INSIDE the corner on phones — and still ZERO width:
   giving the tab room for it (padding) made the tab row jump when a badge appeared (phone-tabs test). */
@media (max-width:820px){
  .lower-tabs .dtab-unread{top:1px;right:1px;height:14px;min-width:14px;padding:0 3px;font-size:9px;border-width:1px}
}

/* ⏳ live updates delayed — a fixed overlay so it can never push the score or tabs (no layout shift) */
#feedNotice{position:fixed;left:0;right:0;margin:0 auto;width:fit-content;top:calc(env(safe-area-inset-top, 0px) + 8px);z-index:900;   /* left:50% would cap it at HALF the screen width (3 lines on a phone) */
  
  max-width:calc(100vw - 32px);padding:8px 14px;border-radius:999px;font-size:13px;font-weight:700;line-height:1.3;
  background:var(--amber);color:#1a1205;box-shadow:0 6px 20px rgba(0,0,0,.25);text-align:center;pointer-events:none}
#feedNotice[hidden]{display:none}

/* 💬 THE WEBSITE'S CHAT PAGE (owner, 20 Oct): the phone's chat screen — Match / 🌍 / 👥 / 🤖 tabs, live score
   cards, predict-the-ball, chat — as a centred column under the top menu. The page behind turns plain and
   the space left and right stays EMPTY on purpose: room for ads later (≥ 180 px each side; ~300 px on a
   1366 px screen, the standard side-ad width). Same drawer as phones, so there is one design to maintain.
   From 821 px (tablets in portrait, e.g. iPad Pro 834 px) — not 981: between the two the page fell back to the
   full-width phone sheet and lost the ad space (caught by the 12-device crawl). */
@media (min-width:821px){
  body.chat-drawer-open .chat-drawer-backdrop{display:block;position:fixed;left:0;right:0;bottom:0;top:var(--navh,64px);z-index:290;background:var(--bg)}
  body.chat-drawer-open .chat-col{top:calc(var(--navh,64px) + 12px);left:0;right:0;margin:0 auto;
    width:min(760px, calc(100vw - 360px));height:calc(100vh - var(--navh,64px) - 24px);transform:none;
    border:1px solid var(--line);border-radius:18px;box-shadow:0 18px 50px rgba(0,0,0,.28);padding:10px 12px;
    animation:none;   /* a page, not a sheet sliding up (the slide also fooled the screenshot checks) */
    zoom:calc(1 / 1.04)}   /* the desktop page is drawn at 104% (.wrap zoom) — undo it so the page fits the SCREEN */
  body.chat-drawer-open{overflow:hidden}
  /* (the Chat button styling is at the end of the file) */
}

/* the live score cards inside the chat drawer, on EVERY screen (20 Oct: the website's Chat page showed
   them unstyled — names twice, the over's balls as plain text — because these lived in the phone block) */
body.chat-drawer-open .gsw .mini-score .msl-teams{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;font-size:21.5px;font-weight:900}
body.chat-drawer-open .gsw .mini-score .msl-team{color:var(--muted)}
body.chat-drawer-open .gsw .mini-score .msl-team.bat{color:var(--accent)}
body.chat-drawer-open .gsw .mini-score .msl-team i{font-style:normal;font-weight:600;color:var(--muted2);font-size:15.4px}
body.chat-drawer-open .gsw .mini-score .msl-v{color:var(--muted2)}
body.chat-drawer-open .gsw .mini-score .msl-players{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;
margin-top:6px;padding-top:6px;border-top:1px solid var(--line);font-size:16.5px;font-weight:700;color:var(--muted)}
body.chat-drawer-open .gsw .mini-score .msl-bowl{color:var(--blue)}
body.chat-drawer-open .gsw .mini-score .msl-bat b,body.chat-drawer-open .gsw .mini-score .msl-bowl b{color:var(--txt);font-weight:900}
body.chat-drawer-open .gsw .mini-score .msl-players i{font-style:normal;font-weight:600;color:var(--muted2);font-size:14.3px}
body.chat-drawer-open .gsw .pn-short{display:none}
body.chat-drawer-open .gsw .mini-score .msl-over{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;
margin-top:6px;padding-top:6px;border-top:1px solid var(--line)}
body.chat-drawer-open .gsw .mini-score .msl-ovl{font-size:12.1px;font-weight:800;letter-spacing:.5px;color:var(--muted2)}
body.chat-drawer-open .gsw .mini-score .msl-balls{display:flex;gap:5px;flex-wrap:wrap}
body.chat-drawer-open .gsw .mini-score .msl-b{min-width:26px;height:26px;padding:0 6px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;
font-size:14.3px;font-weight:800;background:var(--panel2);border:1px solid var(--line2);color:var(--txt)}
body.chat-drawer-open .gsw .mini-score .msl-last{font-size:13.8px;font-weight:800;color:var(--amber)}
body.chat-drawer-open .gsw .mini-score .msl-chase{margin-top:6px;padding-top:6px;border-top:1px solid var(--line);text-align:center;
font-size:13.8px;font-weight:700;color:var(--amber)}
body.chat-drawer-open .gsw .mini-score .msl-chase b{color:var(--txt);font-weight:900}

/* 💻 WEBSITE CHAT PAGE, wide screens (owner, 20 Oct): broadcast scoreboard LEFT, chat RIGHT. ‹ › / swipe / ← →
   moves to the next live match and the Match chat follows. The column grows to 1180px but always leaves
   ≥ 170px either side for ads. Phones and the apps never get body.chat-wide. */
@media (min-width:981px){
  body.chat-wide .chat-col{width:min(1260px, calc(100vw - 320px))}
  body.chat-wide .cp-wrap{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,360px);gap:14px}
  body.chat-wide .cp-left{min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:8px;scrollbar-width:thin}
  body.chat-wide .cp-right{min-height:0;display:flex;flex-direction:column;border-left:1px solid var(--line);padding-left:12px}
  body.chat-wide .cp-right .gchat{flex:1;min-height:0}
  body.chat-wide .cp-left .gsw{margin:0}
  body.chat-wide .gsw-trackwrap{position:relative}
  body.chat-wide .gsw-card{flex:0 0 100%;cursor:default}
  body.chat-wide .gsw-nav{position:absolute;top:4px;z-index:3;width:34px;height:34px;border-radius:50%;
    border:1px solid var(--line2);background:var(--panel);color:var(--txt);font-size:24px;line-height:1;font-weight:700;
    cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.25)}
  body.chat-wide .gsw-nav:hover{border-color:var(--accent);color:var(--accent)}
  body.chat-wide .gsw-nav.prev{left:6px}
  body.chat-wide .gsw-nav.next{right:6px}
  body.chat-wide .gsw-dots{display:none}   /* 15 dots were a row of nothing — the header says "3 / 15" instead */
  body.chat-wide .gsw-track{align-items:flex-start}
  .bc-pos{flex:none;font-size:12px;font-weight:900;color:#fff;background:#1f2747;border-radius:6px;padding:2px 7px}

  /* tabs that look like tabs: every label shown, the selected one filled */
  body.chat-wide .chat-tabs-merged{flex-wrap:wrap;gap:6px;padding:2px 0 8px;border-bottom:1px solid var(--line)}
  body.chat-wide .chat-tabs-merged .chat-tab,
  body.chat-wide .chat-tabs-merged .chat-tab.on,
  body.chat-wide .chat-tabs-merged .chat-tab:not(.on){flex:1 1 calc(25% - 6px);min-width:0;font-size:13.5px;font-weight:800;padding:9px 6px;gap:5px;white-space:nowrap;
    border-radius:11px;border:1px solid var(--line2);background:var(--panel2);color:var(--txt);opacity:.82}
  body.chat-wide .chat-tabs-merged .chat-tab:not(.on) .ct-l{display:inline}
  body.chat-wide .chat-tabs-merged .chat-tab:hover{opacity:1;border-color:var(--accent)}
  body.chat-wide .chat-tabs-merged .chat-tab.on{opacity:1;background:var(--accent);border-color:var(--accent);color:#04140a;box-shadow:0 4px 14px rgba(31,207,109,.28)}
  body.chat-wide .chat-tabs-merged .gchat-back{display:none}   /* the top menu's Chat button closes it; every tab needs the width for its label */
  body.chat-wide .chat-tabs-merged .chat-name-wrap{order:5;flex:1 1 calc(100% - 90px)}
  body.chat-wide .chat-tabs-merged .chat-name{width:100%}
  body.chat-wide .chat-tabs-merged .gchat-presence{order:6;align-self:center}

  /* the board (owner, 20 Oct): the team scores BIG; everything else packed into a tight grid below — no row for one fact */
  .bcard{border-radius:16px;border:1px solid var(--line2);background:#0b1020;color:#fff;padding:8px;display:flex;flex-direction:column;gap:6px}
  .bc-head{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:800;color:#aeb8d6;padding:0 42px;min-height:30px}
  .bc-ser{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .bc-live{flex:none;color:#fff;background:var(--live);border-radius:6px;padding:2px 7px;font-size:11px;letter-spacing:.6px}
  .bc-open{flex:none;font:inherit;font-size:12px;font-weight:800;color:#7dffb0;background:none;border:1px solid #2c3658;border-radius:8px;padding:3px 9px;cursor:pointer}
  .bc-open:hover{border-color:#7dffb0}
  .bc-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,.55fr) minmax(0,1fr);gap:6px;align-items:stretch}
  .bc-team{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;align-items:center;min-width:0;padding:9px 11px;border-radius:14px;
    background:linear-gradient(135deg,color-mix(in srgb,var(--tc) 78%,#000) 0%,color-mix(in srgb,var(--tc) 40%,#05070f) 100%);border:2px solid color-mix(in srgb,var(--tc) 60%,#fff 10%)}
  .bc-team.on{box-shadow:0 0 0 2px #ffd23f,0 6px 22px color-mix(in srgb,var(--tc) 45%,transparent)}
  .bc-flag{width:50px;height:50px;border-radius:50%;font-size:15px;border:3px solid rgba(255,255,255,.85)}
  .bc-tb{min-width:0;display:flex;flex-direction:column}
  .bc-tn{font-size:14px;line-height:1.15;font-weight:900;text-transform:uppercase;letter-spacing:.3px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.5)}
  .bc-sc{font-size:clamp(30px,2.6vw,54px);font-weight:900;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums;color:#fff;text-shadow:0 2px 6px rgba(0,0,0,.45)}
  .bc-sc small{display:block;white-space:normal;font-size:15px;font-weight:900;color:#ffd23f;margin-top:3px}
  .bc-role{font-size:26px;font-weight:900;color:#ffd23f;letter-spacing:.5px;text-shadow:0 2px 6px rgba(0,0,0,.5)}
  .bc-mid{border-radius:14px;background:#000;border:2px solid #222b45;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:6px;min-height:96px;gap:2px}
  .bc-mbig{font-size:clamp(40px,3.8vw,64px);font-weight:900;line-height:1;color:#fff}
  .bc-mw{font-size:15px;font-weight:900;letter-spacing:.6px;color:#ffd23f;text-transform:uppercase}
  .bc-mid.r4 .bc-mbig{color:#4d9bff}.bc-mid.r6 .bc-mbig{color:#b98bff}.bc-mid.w .bc-mbig{color:#ff4d61}
  .bc-mid.r4{border-color:#3d8bff}.bc-mid.r6{border-color:#9b6bff}.bc-mid.w{border-color:#ff495f}
  .bc-mid.over .bc-mbig{font-size:clamp(26px,2.3vw,44px);color:#ff9a1f}
  .bc-mid.run .bc-mw,.bc-mid.done .bc-mw{font-size:16px;white-space:nowrap}
  /* ball in play: a red ball with a seam rolls down a strip of pitch, stumps at each end; the box glows */
  .bc-mid.run{border-color:#ff495f;animation:bcGlow 1.1s ease-in-out infinite}
  @keyframes bcGlow{0%,100%{box-shadow:0 0 0 0 rgba(255,73,95,.0)}50%{box-shadow:0 0 18px 2px rgba(255,73,95,.55)}}
  .bc-pitch{position:relative;width:92%;height:46px;margin-bottom:5px;border-radius:6px;
    background:linear-gradient(180deg,#c9a76a,#a8864c);box-shadow:inset 0 0 0 2px rgba(255,255,255,.25)}
  .bc-pitch::before,.bc-pitch::after{content:'';position:absolute;top:3px;bottom:3px;width:2px;background:rgba(255,255,255,.85)}
  .bc-pitch::before{left:14%}.bc-pitch::after{right:14%}
  .bc-stumps{position:absolute;top:6px;bottom:6px;width:6px;background:repeating-linear-gradient(90deg,#fff 0 2px,transparent 2px 4px)}
  .bc-stumps.l{left:6%}.bc-stumps.r{right:6%}
  .bc-rball{position:absolute;top:50%;left:10%;width:24px;height:24px;margin-top:-12px;border-radius:50%;
    background:radial-gradient(circle at 32% 30%,#ff7a7a,#c81836 70%,#7d0d20);box-shadow:0 3px 6px rgba(0,0,0,.45);
    animation:bcRoll 1s cubic-bezier(.35,.05,.45,1) infinite}
  .bc-rball::before{content:'';position:absolute;inset:9px 0;border-top:1.5px dashed rgba(255,255,255,.85);border-bottom:1.5px dashed rgba(255,255,255,.55)}
  @keyframes bcRoll{0%{left:10%;transform:rotate(0) scale(.9)}45%{transform:rotate(360deg) scale(1.15);margin-top:-18px}
    100%{left:calc(90% - 24px);transform:rotate(720deg) scale(.95);margin-top:-12px}}
  @media (prefers-reduced-motion:reduce){.bc-rball,.bc-mid.run{animation:none}}
  .bc-mid.toss .bc-mw{font-size:15px;line-height:1.25}
  .bc-mid.brk{border-color:#ffb52e}
  .bc-mbrk{font-size:clamp(18px,1.7vw,28px);font-weight:900;line-height:1.1;color:#ffb52e;text-transform:uppercase;letter-spacing:.5px}
  .bc-t.sm b{font-size:14px;line-height:1.5}
  /* overs | numbers, side by side */
  .bc-mid2{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:6px}
  .bc-mid2.one{grid-template-columns:1fr}
  .bc-cmth{font-size:11px;font-weight:900;letter-spacing:.7px;color:#ffd23f;margin-bottom:3px}
  .bc-box{border-radius:12px;background:#141a30;border:1px solid #2c3658;padding:7px 9px;min-width:0}
  .bc-oversbox{display:flex;flex-direction:column;justify-content:center;gap:6px}
  .bc-ov{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:6px}
  .bc-ov:nth-child(2){opacity:.62}
  .bc-ovl{font-size:11.5px;font-weight:900;color:#ffd23f;letter-spacing:.4px;line-height:1.1}
  .bc-ovl i{font-style:normal;color:#aeb8d6}
  .bc-bs{display:flex;flex-wrap:wrap;gap:4px}
  .bc-b{min-width:30px;height:30px;padding:0 5px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:14.5px;font-weight:900;border:2px solid #4a5680;background:#0b1020;color:#fff}
  .bc-b.r4{background:#ffb52e;color:#1a1205;border-color:#ffb52e}.bc-b.r6{background:#9b6bff;border-color:#9b6bff}
  .bc-b.w{background:#ff495f;border-color:#ff495f}.bc-b.extra{background:#2a3a1a;color:#b9ff5c;border-color:#7fbf2e;border-radius:9px}
  .bc-b.dot{color:#aeb8d6}
  .bc-ovr{font-size:19px;font-weight:900;color:#ffd23f;min-width:30px;text-align:right}
  .bc-ovr::before{content:'= ';font-size:14px;color:#aeb8d6}
  .bc-dim{color:#7a84a6;font-size:13px}
  .bc-nums{display:flex;flex-direction:column;justify-content:center;gap:6px}
  .bc-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(74px,1fr));gap:5px}
  .bc-t{display:flex;flex-direction:column;align-items:center;padding:3px 4px;border-radius:8px;background:#1b2240}
  .bc-t small{font-size:10.5px;font-weight:900;letter-spacing:.6px;color:#aeb8d6}
  .bc-t b{font-size:20px;font-weight:900;color:#fff;font-variant-numeric:tabular-nums;line-height:1.1}
  .bc-t b i{font-style:normal;font-size:12px;color:#aeb8d6;margin-left:2px}
  .bc-t.hot b{color:#ffd23f}
  .bc-wpb{display:flex;height:22px;border-radius:6px;overflow:hidden}
  .bc-wpb span{display:flex;align-items:center;justify-content:center;min-width:fit-content;padding:0 6px;font-size:12.5px;font-weight:900;color:#fff;white-space:nowrap;text-shadow:0 1px 2px rgba(0,0,0,.6)}
  /* situation + last wicket: one row */
  .bc-bans{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:6px}
  .bc-ban{padding:7px 12px;border-radius:10px;font-size:17px;text-align:center;line-height:1.25;font-weight:900;text-transform:uppercase;letter-spacing:.2px}
  .bc-ban b{color:#ffd23f}.bc-ban i{font-style:normal;color:#ffe06b}
  .bc-ban.need{background:linear-gradient(90deg,#1d4fd6,#2a6bff)}
  .bc-ban.wkt{background:linear-gradient(90deg,#a70d27,#e0243f)}
  /* at the crease: three across */
  .bc-players{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:6px}
  .bc-p{display:flex;gap:8px;align-items:center;min-width:0;padding:7px 8px;border-radius:12px;background:linear-gradient(160deg,#4d0d19,#25060e);border:1px solid #7a2233}
  .bc-p.on{border-color:#ffd23f;box-shadow:inset 0 0 0 1px #ffd23f}
  .bc-p.bowl{background:linear-gradient(160deg,#0f2f6b,#08173a);border-color:#24498f}
  .bc-av{width:44px;height:44px;font-size:14px;flex:none;border:2px solid rgba(255,255,255,.7)}
  .bc-pi{min-width:0;flex:1}
  .bc-pn{font-size:13.5px;line-height:1.15;font-weight:900;text-transform:uppercase;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
  .bc-strk{color:#7dffb0;font-size:10px}
  .bc-pf{font-size:26px;font-weight:900;line-height:1.05;font-variant-numeric:tabular-nums}
  .bc-pf i{font-style:normal;font-size:16px;color:#ffd23f;margin-left:2px}
  .bc-ps{font-size:12px;font-weight:700;color:#c9d0e6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .bc-ps b{color:#ffd23f}
  /* next batters + toss: one line */
  .bc-next{display:flex;align-items:center;flex-wrap:wrap;gap:5px 7px;padding:5px 10px;border-radius:10px;background:#141a30;border:1px solid #2c3658}
  .bc-nl{font-size:11.5px;font-weight:900;letter-spacing:.6px;color:#ffd23f}
  .bc-nb{display:inline-flex;align-items:center;gap:5px;font-size:14px;font-weight:800;padding:2px 9px 2px 2px;border-radius:999px;background:#1f2747}
  .bc-nb i{font-style:normal;width:19px;height:19px;border-radius:50%;display:inline-grid;place-items:center;font-size:11px;background:#ffd23f;color:#1a1205}
  .bc-tchip{flex:none;font-size:11.5px;font-weight:900;color:#d6dcf0;background:#1f2747;border-radius:6px;padding:2px 7px;cursor:help}
  .bc-lwk{display:inline-flex;align-items:baseline;gap:6px;font-size:14px;font-weight:700;color:#e8edf7;min-width:0;white-space:nowrap}
  .bc-lwk b{font-weight:900}.bc-lwk i{font-style:normal;color:#ffd23f}
  .bc-nl.red{color:#ff6b7d}
  .bc-nxt{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px 7px;margin-left:auto}
  .bc-cmt .lb-wrap{margin:0}
  .bc-cmt .lb-row{font-size:14px;padding:3px 0}
  .bc-res{text-align:center;font-size:19px;font-weight:900;color:#ffd23f}
  /* the next-ball game sits ABOVE the board (owner, 20 Oct) */
  body.chat-wide .cp-left{gap:6px}
  body.chat-wide .cp-left .drawer-nextball:empty{display:none}
  body.chat-wide .cp-left .drawer-nextball{flex:none}
  /* right column: one header — whose chat this is — then the messages */
  body.chat-wide .cp-head{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;padding:4px 2px 10px;border-bottom:1px solid var(--line)}
  body.chat-wide .cp-title{font-size:18px;font-weight:900;color:var(--txt)}
  body.chat-wide .cp-vs{flex:1 1 100%;order:3;font-size:13px;font-weight:800;color:var(--accent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.chat-wide .cp-head .gchat-presence{margin-left:auto;padding:0;border:none;background:none}
  body.chat-wide .cp-head .chat-name-wrap{flex:1 1 100%;order:4;display:flex;align-items:center;gap:6px}
  body.chat-wide .cp-head .chat-name{flex:1;min-width:0}
}


/* 💬 the top-menu Chat button stands out (owner, 20 Oct: "bigger, brighter, a different colour so people
   notice it") — a filled pink-purple pill with a live dot, unlike the plain text links beside it. */
.nav-link.nav-chat{margin-left:8px;padding:8px 16px;border-radius:999px;font-size:15px;font-weight:900;color:#fff;
  background:linear-gradient(135deg,#8b5cff 0%,#e8458f 100%);border:1px solid rgba(255,255,255,.18);
  box-shadow:0 2px 10px rgba(232,69,143,.35);position:relative}
.nav-link.nav-chat::after{content:'';width:8px;height:8px;border-radius:50%;background:#3dff8b;box-shadow:0 0 0 2px rgba(61,255,139,.25);animation:pulse 1.4s infinite}
.nav-link.nav-chat:hover{color:#fff;background:linear-gradient(135deg,#9d74ff 0%,#f25a9c 100%);filter:brightness(1.08)}
.nav-link.nav-chat.on{color:#fff;background:linear-gradient(135deg,#6c3fe6 0%,#c9306f 100%);box-shadow:inset 0 0 0 2px rgba(255,255,255,.55)}

/* ★ Chat page match picker (wide screens only) */
@media (min-width:981px){
  body.chat-wide .gsw-star{display:none}   /* stars live on the picker chips here */
  .cp-pick{display:flex;align-items:center;gap:8px;min-width:0;flex:none}
  .cp-pick .gsw-scope{flex:none;margin:0}
  .cp-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin;min-width:0;padding-bottom:2px}
  .cp-chip{flex:none;display:inline-flex;align-items:center;gap:5px;font:inherit;font-size:12.5px;font-weight:700;color:var(--muted);white-space:nowrap;
    padding:5px 10px 5px 6px;border-radius:999px;border:1px solid var(--line2);background:var(--panel2);cursor:pointer}
  .cp-chip b{color:var(--txt);font-weight:900}
  .cp-chip i{font-style:normal;color:var(--muted2)}
  .cp-chip:hover{border-color:var(--accent)}
  .cp-chip.fav{border-color:rgba(255,210,63,.55)}
  .cp-chip.on{background:var(--accent);border-color:var(--accent);color:#04140a}
  .cp-chip.on b,.cp-chip.on i{color:#04140a}
  .cp-star{font-size:16px;line-height:1;width:20px;text-align:center;color:var(--muted2);cursor:pointer}
  .cp-star.on{color:#ffd23f}
  .cp-chip.on .cp-star.on{color:#7a5a00}
}

@media (min-width:981px){
  .bc-live.paused{background:#ffb52e;color:#1a1205}
  .cp-st{flex:none;width:8px;height:8px;border-radius:50%;background:var(--live);box-shadow:0 0 0 3px rgba(255,59,78,.2);animation:pulse 1.4s infinite}
  .cp-st.paused{width:auto;height:auto;border-radius:5px;background:rgba(255,181,46,.18);color:#ffb52e;box-shadow:none;animation:none;font-size:9.5px;font-weight:900;letter-spacing:.4px;padding:1px 5px}
  .cp-chip.on .cp-st.paused{background:rgba(0,0,0,.18);color:#3d2a00}
}

@media (min-width:981px){
  .cp-crowd{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;font-size:13.5px;font-weight:700;color:var(--muted);padding:0 4px}
  .cp-crowd:empty{display:none}
  .cp-crowd b{color:var(--txt);font-weight:900}
  .cp-crowd i{font-style:normal;color:var(--muted2)}
  .bc-trend{display:flex;flex-direction:column;gap:2px}
  .bc-trl{font-size:10px;font-weight:900;letter-spacing:.6px;color:#aeb8d6}
  .bc-trend svg{width:100%;height:40px;display:block;background:#0f1428;border-radius:6px}
  .bc-tr50{stroke:#3a4570;stroke-width:1;stroke-dasharray:3 3;vector-effect:non-scaling-stroke}
}

@media (min-width:981px){
  /* the bowler at the other end: its own two short lines, never cut (owner, 20 Oct) */
  .bc-p .bc-oth{margin-top:4px;padding-top:4px;border-top:1px solid rgba(255,255,255,.12);line-height:1.2}
  .bc-p .bc-oth small{display:block;font-size:9.5px;font-weight:900;letter-spacing:.6px;color:#9fb0d9}
  .bc-p .bc-oth span{display:block;font-size:13px;font-weight:800;color:#e8edf7;overflow-wrap:anywhere}
  .bc-p .bc-oth b{color:#ffd23f}.bc-p .bc-oth i{font-style:normal;color:#aeb8d6}
}

/* ● BALL CHIPS ARE CIRCLES, EVERYWHERE (owner, 20 Oct: "the 4 in a rectangle is bad — seen all over the site").
   .msp-ball had its size/shape only inside the PHONE media query, so on a computer the same chip (commentary rows,
   "Big over · 0 4 4 5", key moments) was a bare coloured rectangle glued to its neighbours. One shape for all: a
   circle for 0-6 and W, a pill for two-letter extras (WD, NB, LB). */
.msp-ball{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 5px;border-radius:999px;
  font-size:11px;font-weight:800;line-height:1;vertical-align:middle;background:var(--panel2);border:1px solid var(--line2);color:var(--txt);box-sizing:border-box}
.msp-ball.dot{color:var(--muted)}
.km-row .msp-ball{transform:none;margin:0 2px;min-width:20px;height:20px;font-size:10.5px}
.mini-score .msl-b,.gsw .mini-score .msl-b,body.chat-drawer-open .gsw .mini-score .msl-b,body.chat-tight.mobile-detail-open.chat-mode .msl-b{border-radius:999px}
@media (max-width:820px){ .msp-ball{border-radius:999px} }
.ro-b,.po-b,.phs-ball,.bc-b.extra{border-radius:999px}

@media (min-width:981px){
  /* number tiles: a coloured label + accent edge per figure, plain-words sub line */
  .bc-tiles{grid-template-columns:repeat(auto-fit,minmax(118px,1fr))}
  .bc-t{align-items:flex-start;padding:6px 10px;border-left:4px solid var(--ac,#4a5680);background:#161d36}
  .bc-t small{color:var(--ac,#aeb8d6);font-size:10.5px}
  .bc-t b{font-size:24px;line-height:1.1}
  .bc-t b i{font-size:13px;color:#aeb8d6;font-style:normal;margin-left:2px}
  .bc-t em{font-style:normal;font-size:11px;font-weight:700;color:#8f9abd;white-space:nowrap}
  .bc-t.t-rr{--ac:#35c6ff}.bc-t.t-tg{--ac:#ff9a1f}.bc-t.t-pj{--ac:#b98bff}.bc-t.t-ps{--ac:#3ddc84}.bc-t.t-l5{--ac:#ffd23f}.bc-t.t-drs{--ac:#ff6b9a}
  .bc-drsw{display:flex;gap:5px;flex-wrap:nowrap;margin-top:3px}
  .bc-drs{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:900;white-space:nowrap;padding:2px 8px 2px 6px;border-radius:999px;
    background:color-mix(in srgb,var(--tc) 30%,#161d36);border:1px solid color-mix(in srgb,var(--tc) 70%,#fff 5%)}
  .bc-drs b{font-size:16px;color:#fff}
}

@media (min-width:981px){
  /* overs: one slim strip, this over | last over side by side, each total right after its balls */
  .bc-oversbox{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:4px 14px;align-items:center;padding:6px 10px}
  .bc-ov{display:flex;align-items:center;gap:8px;min-width:0}
  .bc-ov:nth-child(2){opacity:.7;padding-left:14px;border-left:1px solid #2c3658}
  .bc-ovl{flex:none;width:auto;display:flex;flex-direction:column;line-height:1.05}
  .bc-ovl i{font-size:11px}
  .bc-bs{flex:0 1 auto;flex-wrap:wrap;gap:4px}
  .bc-b{min-width:28px;height:28px;font-size:13.5px}
  .bc-b.extra{font-size:11.5px;padding:0 6px}
  .bc-ovr{flex:none;min-width:0;text-align:left}
  /* numbers: one row across the board */
  .bc-nums .bc-tiles{grid-template-columns:repeat(auto-fit,minmax(112px,1fr))}
}
@media (min-width:981px){
  .bc-oversbox .bc-b{min-width:26px;height:26px;font-size:13px;padding:0 4px}
  .bc-oversbox .bc-b.extra{font-size:11px;padding:0 5px}
  .bc-oversbox .bc-bs{gap:3px}
  .bc-oversbox .bc-ovl{font-size:11px}
  .bc-t.t-drs .bc-drsw{gap:4px}
  .bc-t.t-drs .bc-drs{font-size:11px;padding:1px 6px 1px 5px;gap:3px}
  .bc-t.t-drs .bc-drs b{font-size:13.5px}
}

@media (min-width:981px){
  /* the vendor's live call in the centre box: CHECKING / PLAYER INJURED / SPIN — bowler running in / FOUR! … */
  .bc-mev{font-size:clamp(20px,2vw,32px);font-weight:900;line-height:1.05;color:#fff;letter-spacing:.4px;text-align:center}
  .bc-mid.ev{border-color:#ffd23f}
  .bc-mid.chk{border-color:#35c6ff;animation:bcGlowBlue 1.2s ease-in-out infinite}.bc-mid.chk .bc-mev{color:#35c6ff}
  @keyframes bcGlowBlue{0%,100%{box-shadow:none}50%{box-shadow:0 0 16px 2px rgba(53,198,255,.5)}}
  .bc-mid.inj{border-color:#ff9a1f}.bc-mid.inj .bc-mev{color:#ff9a1f}
  .bc-mid.runup .bc-mev{color:#7dffb0}.bc-mid.runup{border-color:#3ddc84}
  .bc-mid.ev.r4 .bc-mev{color:#4d9bff}.bc-mid.ev.r6 .bc-mev{color:#b98bff}.bc-mid.ev.w .bc-mev{color:#ff4d61}
  @media (prefers-reduced-motion:reduce){.bc-mid.chk{animation:none}}
}

@media (min-width:981px){
  .bc-wpb{height:24px;background:#0f1428}
  .bc-wpb span{color:#0b1020;text-shadow:none;font-size:13px}
  .bc-trbox{position:relative;display:block}
  .bc-trdot{position:absolute;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;border-radius:50%;border:2px solid #fff;box-sizing:content-box}
  .bc-trnow{position:absolute;right:6px;top:3px;font-size:11px;font-weight:900}
}

/* 💬 phone bottom bar: Chat in the MIDDLE, raised, in the website Chat button's pink-purple (owner, 21 Oct) —
   the thing that makes us different from every other score site should be the easiest thing to tap */
@media (max-width:820px){
  .bottom-nav{overflow:visible}
  .bnav-item.bnav-chat{color:#f25a9c;font-weight:900;font-size:10.5px;gap:2px}
  .bnav-item.bnav-chat .bn-ic{width:46px;height:46px;margin-top:-22px;border-radius:50%;display:grid;place-items:center;font-size:21px;
    background:linear-gradient(135deg,#8b5cff 0%,#e8458f 100%);border:3px solid var(--bg2);
    box-shadow:0 6px 16px rgba(232,69,143,.45),0 0 0 1px rgba(255,255,255,.12)}
  .bnav-item.bnav-chat .bn-lb{color:#f25a9c}
  .bnav-item.bnav-chat.on{color:#fff}
  .bnav-item.bnav-chat.on .bn-ic{background:linear-gradient(135deg,#6c3fe6 0%,#c9306f 100%);box-shadow:0 0 0 3px rgba(255,255,255,.55),0 6px 16px rgba(232,69,143,.45);filter:none}
  .bnav-item.bnav-chat.on .bn-lb{color:#fff}
  .bnav-item.bnav-chat .bn-dot{top:-20px;right:calc(50% - 25px);width:10px;height:10px;background:#3dff8b;box-shadow:0 0 0 2px var(--bg2)}
}

/* 🏟️ THE PAVILION — a page of its own over the site, under the top menu (owner, 21 Oct) */
.nav-link.nav-pav{margin-left:6px;padding:8px 14px;border-radius:999px;font-size:15px;font-weight:900;color:#1a1205;
  background:linear-gradient(135deg,#ffd23f 0%,#ff9a1f 100%);border:1px solid rgba(255,255,255,.18);box-shadow:0 2px 10px rgba(255,154,31,.3)}
.nav-link.nav-pav:hover{color:#1a1205;filter:brightness(1.07)}
.nav-link.nav-pav.on{box-shadow:inset 0 0 0 2px rgba(0,0,0,.45)}
.nav-pav-top{display:none}
.pav-page{display:none}
body.pav-open{overflow:hidden}
body.pav-open .pav-page{display:block;position:fixed;left:0;right:0;bottom:0;top:var(--navh,64px);z-index:280;overflow-y:auto;overscroll-behavior:contain;background:var(--bg);-webkit-overflow-scrolling:touch}
.pav-inner{max-width:760px;margin:0 auto;padding:14px 16px 90px}
.pav-head{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.pav-back{flex:none;width:36px;height:36px;border-radius:10px;border:1px solid var(--line2);background:var(--panel2);color:var(--txt);font-size:22px;line-height:1;cursor:pointer}
.pav-ttl{flex:1 1 300px;min-width:0}
.pav-ttl h2{margin:0;font-size:22px;font-weight:900}
.pav-ttl p{margin:3px 0 0;font-size:13px;color:var(--muted);line-height:1.4}
.pav-ttl p b{color:#ffb52e}
.pav-name{flex:none;align-self:center;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}
.pav-name .chat-name{width:140px}
.pav-foot{font-size:11.5px;color:var(--muted2);text-align:center;margin-top:12px}
.pav-pollbtn{flex:none;font:inherit;font-size:12.5px;font-weight:800;padding:0 10px;border-radius:9px;border:1px solid var(--line2);background:var(--panel2);color:var(--txt);cursor:pointer}
.pav-pollbtn.on{background:#ffd23f;color:#1a1205;border-color:#ffd23f}
.pav-opts{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.pav-optadd{align-self:flex-start;font:inherit;font-size:12.5px;font-weight:800;color:var(--accent);background:none;border:1px dashed var(--line2);border-radius:9px;padding:5px 10px;cursor:pointer}
.pav-poll{display:flex;flex-direction:column;gap:6px;margin:8px 0 4px}
.pav-po{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:10px;font:inherit;font-size:14px;font-weight:800;
  text-align:left;padding:9px 12px;border-radius:10px;border:1px solid var(--line2);background:var(--panel2);color:var(--txt);cursor:pointer}
.pav-po:hover{border-color:#ffd23f}
.pav-po.me{border-color:#ffd23f;box-shadow:inset 0 0 0 1px #ffd23f}
.pav-pofill{position:absolute;left:0;top:0;bottom:0;background:rgba(255,210,63,.18);transition:width .4s ease}
.pav-po.me .pav-pofill{background:rgba(255,210,63,.32)}
.pav-pot,.pav-po b{position:relative}
.pav-pomet{font-size:11.5px;color:var(--muted2)}
@media (max-width:820px){
  .nav-pav-top{display:inline-flex;align-items:center;gap:4px;flex:none;height:34px;padding:0 10px;border-radius:999px;border:0;cursor:pointer;
    font:inherit;font-size:12px;font-weight:900;color:#1a1205;background:linear-gradient(135deg,#ffd23f 0%,#ff9a1f 100%);box-shadow:0 2px 8px rgba(255,154,31,.35)}
  .nav-pav-top span{font-size:15px}
  body.pav-open .pav-page{bottom:calc(58px + env(safe-area-inset-bottom))}
  .pav-inner{padding:10px 12px 24px}
  .pav-ttl h2{font-size:19px}
  .pav-name{width:100%}
  .pav-name .chat-name{flex:1}
}
/* phones: the header row has no spare 35 px on a 390–412 px screen (the ☰ was pushed off the edge — caught by the
   crawl), so the Pavilion button is a bright round icon there, with its word only where it fits */
@media (max-width:820px){
  .nav-pav-top{width:36px;height:36px;padding:0;justify-content:center;border-radius:50%}
  .nav-pav-top b{display:none}
  .nav-pav-top span{font-size:18px}
}
@media (min-width:430px) and (max-width:820px){
  .nav-pav-top{width:auto;padding:0 10px;border-radius:999px}
  .nav-pav-top b{display:inline}
}

/* 📊 the match poll in the chat: a chip pinned to the top-right of the messages; open = a panel OVER them */
.gchat-body{position:relative}
.cpoll{position:absolute;top:6px;right:8px;z-index:6;display:flex;flex-direction:column;align-items:flex-end;gap:6px;max-width:calc(100% - 16px)}
.cpoll:empty{display:none}
.cpoll-chip{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:12px;font-weight:800;color:var(--txt);cursor:pointer;
  padding:5px 10px;border-radius:999px;border:1px solid rgba(155,107,255,.55);background:color-mix(in srgb,var(--panel) 88%,#9b6bff);
  box-shadow:0 4px 14px rgba(0,0,0,.3);max-width:100%;white-space:nowrap}
.cpoll-chip span{overflow:hidden;text-overflow:ellipsis;min-width:0}
.cpoll-chip i{font-style:normal;font-size:10px;color:var(--muted)}
.cpoll.open .cpoll-chip{border-color:#9b6bff}
.cpoll-panel{width:min(320px,calc(100vw - 40px));padding:10px;border-radius:14px;background:var(--panel);border:1px solid var(--line2);box-shadow:0 14px 34px rgba(0,0,0,.45)}
.cpoll-panel .poll-widget{margin:0}
/* ☆ on the website chat board */
.bc-star{flex:none;width:28px;height:28px;border-radius:50%;border:1px solid #2c3658;background:#141a30;color:#aeb8d6;font-size:16px;line-height:1;cursor:pointer;display:grid;place-items:center}
.bc-star.on{color:#ffd23f;border-color:#ffd23f}
.bc-star:hover{border-color:#ffd23f}
/* the phone header Pavilion button: icon with its NAME under it, like the bottom bar's Chat */
@media (max-width:820px){
  /* 8 px sides + a 10 px corner: with 5 px and a 12 px corner the word ran into the rounded corners and its
     first/last letters looked chopped, worst on iPhone's wider font (owner, 22 Oct 2026) */
  .nav-pav-top{width:auto;min-width:52px;height:42px;padding:2px 8px 2px;border-radius:10px;flex-direction:column;justify-content:center;gap:1px}
  .nav-pav-top span{font-size:16px;line-height:1}
  .nav-pav-top b{display:block;font-size:8.5px;line-height:1.1;letter-spacing:.1px;white-space:nowrap}
}

/* 🏟️ Pavilion, simpler (owner, 21 Oct): a feed of posts + a ＋ button; one "New post" box; a clear Reply */
.pav-text{font-size:15px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;margin:2px 0 4px}
.pav-empty{padding:28px 10px;font-size:15px;line-height:1.6}
.pav-empty b{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#ffd23f;color:#1a1205}
.pav-rbtn{font:inherit;font-size:13px;font-weight:800;color:var(--txt);background:var(--panel2);border:1px solid var(--line2);border-radius:999px;padding:5px 12px;cursor:pointer}
.pav-rbtn:hover,.pav-rbtn.on{border-color:#ffd23f}
.pav-fab{position:fixed;right:max(20px,calc((100vw - 760px) / 2 + 20px));bottom:28px;z-index:290;width:58px;height:58px;border-radius:50%;border:0;cursor:pointer;
  font-size:32px;font-weight:700;line-height:1;color:#1a1205;background:linear-gradient(135deg,#ffd23f 0%,#ff9a1f 100%);box-shadow:0 10px 26px rgba(255,154,31,.45)}
.pav-fab:hover{filter:brightness(1.06)}
.pav-sheet{position:fixed;inset:0;z-index:300;background:rgba(5,8,18,.6);display:flex;align-items:center;justify-content:center;padding:16px}
.pav-sheet[hidden]{display:none}
.pav-sheet-in{width:min(560px,100%);max-height:calc(100vh - 32px);overflow-y:auto;background:var(--panel);border:1px solid var(--line2);border-radius:18px;padding:14px;box-shadow:0 20px 50px rgba(0,0,0,.5)}
.pav-sh-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:16px}
.pav-sh-x{width:32px;height:32px;border-radius:50%;border:1px solid var(--line2);background:var(--panel2);color:var(--txt);font-size:14px;cursor:pointer}
.pav-ta{width:100%;min-height:110px;font-size:16px;resize:vertical;box-sizing:border-box}
.pav-sh-tools{display:flex;align-items:center;gap:8px;margin-top:10px;flex-wrap:wrap}
.pav-sh-tools .photo-btn{position:static;width:38px;height:38px;border-radius:10px;border:1px solid var(--line2);background:var(--panel2);font-size:18px}
.pav-sh-tools .pav-pollbtn{height:38px}
.pav-postbtn{margin-left:auto;height:40px;padding:0 22px;border-radius:999px;border:0;cursor:pointer;font:inherit;font-size:15px;font-weight:900;color:#04140a;background:var(--accent)}
@media (max-width:820px){
  .pav-fab{right:16px;bottom:calc(74px + env(safe-area-inset-bottom))}
  .pav-sheet{align-items:flex-end;padding:0}
  .pav-sheet-in{width:100%;border-radius:18px 18px 0 0;max-height:85vh;padding-bottom:calc(14px + env(safe-area-inset-bottom))}
}

@media (min-width:981px){
  .cp-hint{flex:none;font-size:12px;font-weight:700;color:var(--muted);white-space:nowrap}
  .cp-hint b{color:#ffd23f}
  .cp-pick .gsw-scope button{white-space:nowrap}
}

/* the chat corner: 🎯 next ball (phone) + 📊 who wins, side by side; their panels open over the messages */
.cpoll{flex-direction:row;align-items:flex-start;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.cpoll-one,.cnb{display:flex;flex-direction:column;align-items:flex-end;gap:6px;max-width:100%}
.cnb-chip{border-color:rgba(255,181,46,.6);background:color-mix(in srgb,var(--panel) 88%,#ffb52e)}
.cnb-chip.picked{border-color:#ffb52e}
.cnb-panel .nb-wrap,.cnb-panel>*{margin:0}
@media (max-width:820px){ .cpoll-chip{font-size:11.5px;padding:4px 9px} }

/* ✏️ line icons in the menus (owner, 21 Oct: "use the latest icons, not emoji") — one set, drawn as SVG, the
   same on every phone; they take the menu's text colour, so active/inactive just work */
.bnav-item .bn-ic .ico{width:22px;height:22px;display:block}
.bnav-item.on .bn-ic .ico{filter:drop-shadow(0 0 6px rgba(46,213,115,.45))}
.bn-live .ico{color:#ff4d5e}
.bn-cal2{position:relative;display:block;width:22px;height:22px}
.bn-cal2 .ico{width:22px;height:22px;display:block}
.bn-cal2 b{display:none}
.bn-cal2 i{position:absolute;left:0;right:0;top:9px;font:900 9px/1 system-ui,-apple-system,sans-serif;font-style:normal;text-align:center;color:currentColor}
.nav-link .nl-ico{width:16px;height:16px;flex:none;opacity:.85}
.nav-link.on .nl-ico,.nav-link:hover .nl-ico{opacity:1}

/* top menu: Pavilion + Chat never scroll away or get cut */
.nav-cta{display:flex;align-items:center;gap:6px;flex:none}
.nav-cta .nav-link{margin-left:0}
@media (max-width:820px){ .nav-cta{display:none} }
/* New post: header with Post always on top */
.pav-sheet{z-index:400}
.pav-sh-hd{gap:10px}
.pav-sh-hd b{flex:1;text-align:center}
.pav-sh-hd .pav-postbtn{margin-left:0;height:36px;padding:0 18px}
@media (max-width:820px){
  .pav-sheet{padding:0;align-items:stretch;justify-content:stretch;background:var(--bg)}
  .pav-sheet-in{width:100%;max-height:none;height:var(--vvh,100dvh);transform:translateY(var(--vvo,0px));border-radius:0;border:0;box-shadow:none;
    display:flex;flex-direction:column;padding:10px 12px calc(10px + env(safe-area-inset-bottom));box-sizing:border-box;overflow-y:auto}
  .pav-ta{min-height:120px;flex:none}
}

.uico{width:17px;height:17px;flex:none;vertical-align:-3px}
.chat-tab .uico{width:16px;height:16px;margin-right:2px}
.lv-tab .lv-ico{width:16px;height:16px;margin-right:5px}
.lv-tab[data-view=today] .lv-ico{color:#ff4d5e}
/* the menu needs ~150 px more with icons than without: under 1600 px wide it shows words only, so no link is ever
   cut (1366 px: 668 px of links in 556 px of room with icons; 514 px without) */
/* icons ALWAYS; only when the links truly don't fit (measured by fitNavIcons in app.js) do they fall back to words */
.nav-links.nl-tight .nav-link .nl-ico{display:none}

/* reaction picker opens INTO the screen (rightwards from the 🙂 that starts the row) and wraps — it opened
   leftwards and ran off the phone's edge, cutting off most of the emojis (owner, 21 Oct) */
.rx-pop{left:0;right:auto;justify-content:flex-start;max-width:min(330px,calc(100vw - 96px))}
.nav-links.nl-tighter{gap:0}
.nav-links.nl-tighter .nav-link{padding-left:8px;padding-right:8px}
.site-nav.nav-tight3 .nfb-label{display:none}
/* New post: the tools sit near the TOP of the page, so the emoji picker opens DOWNWARD (it opened up, off the screen) */
#pavSheet .emoji-pop{top:calc(100% + 6px);bottom:auto;left:0;right:auto}

/* website menu = the phone's icons: Live is the red signal, Schedule is the calendar with today's date in it */
.nav-link .nl-livei{color:#ff4d5e;opacity:1}
.nl-cal{position:relative;display:inline-block;width:16px;height:16px;flex:none}
.nl-cal .nl-ico{display:block}
.nl-calD{position:absolute;left:0;right:0;top:6.5px;font:900 7px/1 system-ui,-apple-system,sans-serif;font-style:normal;text-align:center;color:currentColor}
.nav-links.nl-tight .nav-link .nl-cal{display:none}
.nav-links.nl-tight .nav-link .nl-livei{display:block}
/* 🎨 a soft colour per menu icon (owner, 21 Oct) — website menu and phone bar alike; the words stay neutral and
   the selected item keeps its own highlight */
[data-nav="upcoming"]  .nl-ico,[data-nav="upcoming"]  .bn-ic .ico{color:#5aa2ff}
[data-nav="series"]    .nl-ico,[data-nav="series"]    .bn-ic .ico{color:#ffc93c}
[data-nav="standings"] .nl-ico,[data-nav="standings"] .bn-ic .ico{color:#b48cff}
[data-nav="completed"] .nl-ico,[data-nav="completed"] .bn-ic .ico{color:#3ddc84}
[data-nav="players"]   .nl-ico{color:#ff9a4d}
[data-nav="news"]      .nl-ico,[data-nav="news"]      .bn-ic .ico{color:#2fd9c8}
[data-nav="upcoming"] .bn-cal2 i,[data-nav="upcoming"] .nl-calD{color:#5aa2ff}
.nav-link .nl-ico{opacity:1}

/* website menu, like the phone bar: icon above the word (owner, 21 Oct) */
@media (min-width:821px){
  .site-nav .nav-links{gap:2px}
  .site-nav .nav-links .nav-link{flex-direction:column;justify-content:center;gap:2px;padding:4px 10px;font-size:12.5px;line-height:1.1;min-height:44px}
  .site-nav .nav-links .nav-link .nl-ico,.site-nav .nav-links .nav-link .nl-cal{display:block;width:20px;height:20px}
  .site-nav .nav-links .nav-link .nl-cal .nl-ico{width:20px;height:20px}
  .site-nav .nav-links .nav-link .nl-calD{top:8px;font-size:8.5px}
  .nav-links.nl-tight .nav-link .nl-ico,.nav-links.nl-tight .nav-link .nl-cal{display:block}
}
@media (min-width:821px) and (max-width:1279px){
  .site-nav .nfb-label{display:none}
  .site-nav .nav-links .nav-link{padding:4px 7px}
}

/* 📱 PULL TO REFRESH in the Pavilion (owner, 21 Oct): on a phone the Pavilion is an ordinary page in the flow, not
   a layer over the site, so the page itself scrolls and the browser's pull-down refresh works as on every page */
@media (max-width:820px){
  body.pav-open{overflow:auto}
  body.pav-open > .wrap{display:none}
  body.pav-open .pav-page{position:static;top:auto;bottom:auto;overflow:visible;z-index:auto;min-height:calc(100vh - var(--navh,64px))}
}

/* ── 🌗 THEMES (owner, 21 Oct) ─────────────────────────────────────────────────────────── */
/* Black (OLED): true black page, near-black cards */
body.theme-black{--bg:#000000;--bg2:#05060a;--panel:#0c0d13;--panel2:#15171f;--line:#1d2029;--line2:#2a2e3a;background:#000}
/* Dark: three clear levels — page, card, raised — instead of one flat navy */
body:not(.theme-light):not(.theme-black) .lr-card,body:not(.theme-light):not(.theme-black) .card{
  background:linear-gradient(180deg,#171e35,#121829);box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 6px 18px rgba(0,0,0,.25)}
/* team badges: a near-black team colour (Tasmania, Victoria…) vanished on the dark page — a soft ring keeps every one visible */
body:not(.theme-light) .flag{box-shadow:0 0 0 1.5px rgba(255,255,255,.22)}
/* light mode: the dark score panels (match page, Chat board) are deliberate "TV scoreboards" — give them an edge + depth */
body.theme-light .hero,body.theme-light .bcard{border-color:#2b3a63;box-shadow:0 12px 30px rgba(15,23,42,.22),0 2px 6px rgba(15,23,42,.12)}
/* theme choice in the ☰ menu: four options */
.mn-seg4{display:grid!important;grid-template-columns:1fr 1fr;gap:4px}
.mn-seg4 button{display:inline-flex;align-items:center;justify-content:center;gap:5px}
.mn-seg4 button svg{width:15px;height:15px}
#themeNav svg{display:block;margin:auto}

/* 🔍 search, like the phone (owner, 21 Oct): a small button in the top bar opens the search box; the big bar on
   the website is gone until you ask for it */
.nav-searchbtn{display:inline-flex}
body:not(.search-open) .landing-bar .search{display:none}
body.search-open #searchBtn{border-color:var(--accent);color:var(--accent)}
/* the extra button costs the menu ~50 px: the compact step (icon-only Filters, closer links) now starts below 1366 px */
@media (min-width:821px) and (max-width:1365px){
  .site-nav .nfb-label{display:none}
  .site-nav .nav-links .nav-link{padding:4px 7px}
}
/* Chat page on smaller laptops (owner's audit, 21 Oct: at 1024 px the board was ~330 px and cut the scores):
   the chat column narrows with the screen, and the board itself switches to a compact layout when IT is narrow */
@media (min-width:981px){
  body.chat-wide .cp-wrap{grid-template-columns:minmax(0,1fr) clamp(280px,29vw,360px)}
  body.chat-wide .gsw-card{container-type:inline-size}
}
@container (max-width:600px){
  .bc-hero{grid-template-columns:minmax(0,1fr) 88px minmax(0,1fr);gap:5px}
  .bc-team{padding:7px 8px;column-gap:7px}
  .bc-flag{width:32px;height:32px;font-size:11px;border-width:2px}
  .bc-tn{font-size:12px}
  .bc-sc{font-size:24px}
  .bc-sc small{font-size:12.5px}
  .bc-role{font-size:18px}
  .bc-mid{min-height:78px}
  .bc-mbig{font-size:38px}
  .bc-mw,.bc-mbrk{font-size:12.5px}
  .bc-head{padding:0 38px;font-size:11.5px}
  .bc-players{grid-template-columns:1fr 1fr}
}
@container (max-width:470px){
  .bc-team{grid-template-columns:1fr}
  .bc-flag{display:none}
  .bc-sc{font-size:22px}
  .bc-players{grid-template-columns:1fr}
}
/* light-mode contrast (owner's review, 21 Oct): the dark theme's pink / yellow text read at ~2:1 on white.
   One status palette in BOTH themes: red = live, amber = break / stumps, green = result. */
body.theme-light .sec-live{color:#c8102e}
body.theme-light .sec-rest{color:var(--amber)}
body.theme-light .cp-hint b{color:var(--amber)}
/* one line of placeholder in any column width — it used to wrap to two and look broken */
.chat-input::placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-sys.chat-wk{justify-content:flex-start;margin:3px 0}
.chat-sys.chat-wk span{background:none;border:0;padding:2px 4px;color:var(--muted2);font-size:11.5px;font-weight:700;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;display:flex;align-items:center;gap:6px}
.chat-sys.chat-wk span::before{content:'OUT';flex:none;order:-1;font-size:9.5px;font-weight:900;letter-spacing:.5px;color:var(--live,#e53935)}
/* match-page tab line icons */
/* win-chance trend: say what the chart is — the dashed line is 50%, the width is the WHOLE chase, so the right
   part is overs still to come (owner, 22 Oct 2026: "what is below the red line and above the bar?") */
.bc-trfut{fill:rgba(255,255,255,.035)}
body.theme-light .bc-trfut{fill:rgba(20,30,60,.05)}
.bc-tr50l{position:absolute;left:5px;top:50%;transform:translateY(-100%);font-style:normal;font-size:9px;font-weight:800;color:#6b779c;line-height:1;padding-bottom:1px}
.bc-trfl{position:absolute;bottom:3px;margin-left:12px;font-style:normal;font-size:9px;font-weight:800;letter-spacing:.3px;color:#6b779c;white-space:nowrap;line-height:1}
.bc-trax{display:flex;justify-content:space-between;font-size:9px;font-weight:800;color:#6b779c;letter-spacing:.3px;margin-top:1px}
.bc-trax em{font-style:normal}
/* very small phones (iPhone SE, 320 px): the roomier Pavilion button pushed the ☰ 3 px off the edge — tighter here,
   still with a 8 px corner so the word clears it */
@media (max-width:359px){
  .nav-pav-top{min-width:0;padding:2px 5px;border-radius:8px}
  .nav-pav-top b{font-size:8px;letter-spacing:0}
}
/* partnership split (vendor's named stands) under each bar in Charts → Partnerships */
.pt-split{grid-column:2/-1;font-size:11.5px;font-weight:700;color:var(--muted2);margin:-2px 0 2px}
.pt-split i{font-style:normal;opacity:.8}
/* bowling card M · 0s · WD · NB: on a phone the 0s / WD / NB columns tighten, the narrowest drop WD/NB */
/* the 8-column bowling card on a phone (390 px measured 428 px wide — NB and Econ were cut off): tighter type and
   cells, smaller face, the name wraps; the narrowest phones drop WD / NB rather than scroll sideways */
@media (max-width:820px){
  .sc-tbl.sc-bowlx{font-size:13.5px}
  .sc-tbl.sc-bowlx td{padding:8px 2px}
  .sc-tbl.sc-bowlx .sc-h th{padding-left:2px;padding-right:2px;font-size:10px;letter-spacing:.2px}
  .sc-tbl.sc-bowlx td.sc-nm{font-size:13.5px;line-height:1.2}
  .sc-tbl.sc-bowlx td.sc-nm .av-sm{width:22px;height:22px;font-size:9px;margin-right:5px}
}
@media (max-width:359px){ .sc-tbl.sc-bowlx .sc-x2,.sc-tbl.sc-bowlx .sc-x{display:none} }   /* iPhone SE: O · M · R · W · Econ */
.ps-split{color:var(--muted2);font-weight:700}
/* Info tab · match preview (weather, venue pattern, head to head, form) */
.pv-venue .pv-split{display:block;height:6px;border-radius:3px;background:color-mix(in srgb,var(--blue) 35%,transparent);margin:7px 0 4px;overflow:hidden;max-width:360px}
.pv-venue .pv-split i{display:block;height:100%;background:var(--accent)}
.pv-sub{display:block;font-size:12.5px;color:var(--muted2)}
.pv-h2h .pv-score{display:block;font-size:15px;margin:2px 0 4px}
.pv-h2h ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px}
.pv-h2h li{font-size:12.5px;line-height:1.35}
.pv-h2h li small{color:var(--muted2);font-weight:600;margin-left:4px}
.pv-h2h li em{display:block;font-style:normal;color:var(--muted2);font-variant-numeric:tabular-nums}
.pv-form{display:inline-flex;align-items:center;gap:4px;margin-right:14px;font-weight:800}
.pv-f{font-style:normal;width:20px;height:20px;border-radius:50%;display:inline-grid;place-items:center;font-size:10.5px;font-weight:900;color:#fff;background:#6b7280}
.pv-f.pv-w{background:#16a34a}.pv-f.pv-l{background:#dc2626}
.pv-sc{display:block;font-weight:600}
.pv-sc + .pv-sc{margin-top:3px}
.pv-ps{display:block;height:6px;border-radius:3px;background:color-mix(in srgb,var(--purple) 45%,transparent);margin:7px 0 0;overflow:hidden;max-width:360px}
.pv-ps i{display:block;height:100%;background:var(--blue)}
.pv-form + .pv-form{margin-left:0}
.pv-roster .pv-team{display:block;font-weight:600;font-size:13.5px;line-height:1.5}
.pv-roster .pv-team + .pv-team{margin-top:4px}
.pv-pl i{font-style:normal;font-size:11px;font-weight:800;color:var(--accent)}
.pv-pl.pv-in{font-weight:800}
/* ground updates (rain, covers, inspection, delays…) — newest first, with the time each was called */
.gu-box{margin:4px 0 10px;padding:8px 10px;border-radius:10px;border:1px solid color-mix(in srgb,#38bdf8 40%,var(--line));background:color-mix(in srgb,#38bdf8 8%,transparent)}
.gu-h{font-size:11px;font-weight:900;letter-spacing:.7px;color:#38bdf8;margin-bottom:4px}
.gu-list{display:flex;flex-direction:column;gap:4px}
.gu-row{display:flex;gap:10px;align-items:baseline;font-size:13.5px;font-weight:700}
.gu-t{flex:none;font-size:11.5px;font-weight:800;color:var(--muted2);font-variant-numeric:tabular-nums;min-width:42px}
.bc-gu .gu-row{font-size:13px}
.bc-gu .bc-cmth{color:#38bdf8}
body.theme-light .gu-h,body.theme-light .bc-gu .bc-cmth{color:#0369a1}
.chat-sys.chat-gnd span::before{content:'GROUND';color:#38bdf8}
body.theme-light .chat-sys.chat-gnd span::before{color:#0369a1}
/* series page · results & fixtures (built from our archive + the vendor's lists) */
.si-matches{margin:6px 0 14px}
.sm-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:10px}
.sm-row{display:flex;gap:12px;align-items:flex-start;padding:9px 12px;border-bottom:1px solid var(--line);font-size:13.5px}
.sm-row:last-child{border-bottom:0}
.sm-d{flex:none;min-width:48px;font-size:12px;font-weight:800;color:var(--muted2);padding-top:1px}
.sm-live{font-style:normal;font-size:10.5px;font-weight:900;color:#fff;background:var(--live,#e53935);border-radius:5px;padding:1px 5px}
.sm-m{display:flex;flex-direction:column;gap:2px;min-width:0}
.sm-m small{color:var(--muted2);font-size:11.5px;font-weight:600}
.sm-sc{font-weight:600}
.sm-res{font-weight:800;color:var(--accent)}
/* series stats: "Most runs" + "Most wickets" side by side only when BOTH fit — at ~1024-1440 px with the chat column
   the pair needed 649 px in a 629 px card and the ECON column was cut off (seen 22 Oct). Now they stack instead. */
.si-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr))}
.si-col{min-width:0;overflow-x:auto}
/* the vendor's chase equation after each over (overhistory run_need / ball_rem / rr_rate) */
.over-need{font-size:11px;font-weight:700;color:var(--amber);margin-top:2px;line-height:1.25}
/* series page: the vendor's header + tour score */
.si-head{display:flex;align-items:center;gap:12px;margin:4px 0 10px}
.si-head img{width:44px;height:44px;border-radius:10px;object-fit:cover;flex:none;background:var(--panel2)}
.si-head span{display:flex;flex-direction:column;gap:2px}
.si-head b{font-size:16px}
.si-head small{color:var(--muted2);font-weight:700;font-size:12px}
.si-tour{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.si-tr{display:flex;align-items:baseline;gap:8px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.si-tf{font-size:11px;font-weight:900;letter-spacing:.5px;color:var(--muted2)}
.si-ts{font-weight:700}.si-ts b{font-size:16px}
.si-tr small{color:var(--muted2);font-weight:600}
/* chat window: Live · Finished · Upcoming — one slim segmented switch (owner, 22 Oct 2026) */
.cs-seg{display:inline-flex;gap:2px;padding:2px;border-radius:999px;background:var(--panel2);border:1px solid var(--line);margin:0 0 6px}
.cs-seg button{font:inherit;font-size:11.5px;font-weight:800;border:0;border-radius:999px;padding:4px 10px;background:transparent;color:var(--muted);cursor:pointer;white-space:nowrap}
.cs-seg button i{font-style:normal;font-weight:700;opacity:.75;margin-left:2px}
.cs-seg button.on{background:var(--accent);color:#04140a}
.cs-seg button[data-chatset="done"].on{background:#3d8bff;color:#fff}
.cs-seg button[data-chatset="up"].on{background:#f5b83d;color:#1a1205}
.gsw .cs-seg{margin:0 8px 6px}

/* top menu: the page you are on must be OBVIOUS (owner, 22 Oct: "very light, not sure where I am") — a darker filled
   pill and a coloured ring, in both themes (no bar under it — owner asked to remove it) */
.site-nav .nav-link.on{color:#fff;background:color-mix(in srgb,var(--accent) 26%,#0b1222);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--accent) 75%,transparent),0 4px 14px rgba(0,0,0,.35);position:relative}
.site-nav .nav-link.on .nl-ico{opacity:1}
body.theme-light .site-nav .nav-link.on{color:#0b3d22;background:color-mix(in srgb,var(--accent) 20%,#fff);box-shadow:inset 0 0 0 1.5px var(--accent),0 3px 10px rgba(16,40,80,.15)}
.bc-mid.up .bc-mbrk{font-size:15px;line-height:1.25;text-align:center}
/* phone chat window: Finished / Upcoming cards in smaller type than a live one (owner, 22 Oct 2026) */
@media (max-width:820px){
  body.chat-drawer-open .gsw .gsw-card.gsw-quiet .mini-score .msl-teams{font-size:16px;gap:7px}
  body.chat-drawer-open .gsw .gsw-card.gsw-quiet .mini-score .msl-team i{font-size:12px}
  body.chat-drawer-open .gsw .gsw-card.gsw-quiet .mini-score .msl-players,body.chat-drawer-open .gsw .gsw-card.gsw-quiet .mini-score .msl-chase,body.chat-drawer-open .gsw .gsw-card.gsw-quiet .mini-score .msl-over{font-size:12.5px}
  body.chat-drawer-open .gsw .gsw-card.gsw-quiet .mini-score{padding-top:6px;padding-bottom:6px}
}
.cs-seg button[data-chatset="mine"].on{background:#ffd23f;color:#1a1205}
.cs-seg button[data-chatset="up"].on{background:#a78bfa;color:#140a2e}
/* the chase line under an over must never push the row wider than a 320 px phone (iPhone SE) */


/* 🏆 ICC rankings (1 Nov 2026) */
.rk-wrap{max-width:760px}
.rk-h{font-size:18px;margin:2px 0 10px}
.rk-sub{align-items:center}.rk-sep{flex:none;width:1px;height:20px;background:var(--line2);margin:0 4px}
.rk-tbl{width:100%;border-collapse:collapse;font-size:13.5px;font-variant-numeric:tabular-nums}
.rk-tbl th{font-size:11.5px;font-weight:700;color:var(--muted);text-align:right;padding:6px 8px;border-bottom:1px solid var(--line2)}
.rk-tbl td{text-align:right;padding:8px;border-bottom:1px solid var(--line)}
.rk-tbl .rk-l{text-align:left}.rk-tbl .rk-n{color:var(--muted);width:28px;text-align:left}
.rk-note{font-size:12px;color:var(--muted2);margin:8px 2px}
.rk-players{display:flex;flex-direction:column}
.rk-p{display:flex;align-items:center;gap:10px;width:100%;padding:8px 6px;border:0;border-bottom:1px solid var(--line);background:none;color:var(--txt);font:inherit;text-align:left;cursor:pointer}
.rk-p:hover{background:var(--panel2)}
.rk-p .rk-n{width:24px;color:var(--muted);font-variant-numeric:tabular-nums}
.rk-p .rk-nm{flex:1;min-width:0;display:flex;flex-direction:column}.rk-p .rk-nm small{color:var(--muted);font-size:11.5px}
.rk-p .rk-rt{font-weight:800;font-variant-numeric:tabular-nums}
.si-more{margin:14px 0 4px}.si-more .si-h{margin-bottom:6px}
/* Players & Rankings: one page, two big tabs (also the phone News | Players switch) */
.pl-tabs{display:flex;gap:6px;margin:0 0 12px;padding:4px;background:var(--panel);border:1px solid var(--line);border-radius:12px}
.pl-tab{flex:1;font:inherit;font-size:13.5px;font-weight:800;padding:9px 8px;border:0;border-radius:9px;background:none;color:var(--muted);cursor:pointer}
.pl-tab.on{background:var(--accent);color:#06210f}.pl-tab b{font-weight:900;margin-left:4px}
/* phone: target + at this stage, previous over, the other bowler (1 Nov 2026 — what the desktop had and the phone didn't) */
.msp-ats{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.msp-ats b{color:var(--txt)}
.msp-ats .cc-lbl{font-weight:700}.msp-ats .cc-ahead{color:var(--accent);font-weight:800}.msp-ats .cc-behind{color:#ff6b6b;font-weight:800}
.msp-prevov{display:flex;align-items:center;gap:8px;height:22px;margin-top:2px;opacity:.75;overflow:hidden}
.msp-prevov .msp-ov-l{font-size:10.5px}.msp-ball.sm{width:18px;height:18px;min-width:18px;font-size:10px;line-height:18px}
.msp-pvr{font-size:11.5px;font-weight:800;color:var(--muted)}
.mpc-prev{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-news{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;padding:8px 10px;margin:0 0 6px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);color:var(--txt);font:inherit;cursor:pointer}
.pm-news:hover{border-color:var(--accent)}.pm-news-t{font-weight:700;font-size:13.5px;line-height:1.3}.pm-news-d{font-size:11.5px;color:var(--muted)}

/* ══ PHONE, 2 Nov 2026 (owner: "phone feels clumsy… more elegant… chat needs more space, like YouTube") ══ */
@media(max-width:820px){
  /* top bar: no Filters button (it is in the ☰ menu); the empty "Follow your team" prompt is in the menu too */
  #filterBtn{display:none}
  .follow-bar.follow-empty{display:none}   /* only the empty prompt — your followed teams still show */
  /* match top row: Home + the match title; the title line inside the score card goes */
  body.mobile-detail-open #focusTop .ft-title{flex:1 1 0;min-width:0;font-size:12.5px;font-weight:700;color:var(--muted);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.mobile-detail-open #mScoreHost .msp-ser{display:none}
  /* predict row = the bottom edge of the scoreboard */
  #mPredictHost{margin:6px 0 0}
  #mPredictHost[hidden],#mPredictHost:has(.nb-inline:empty){display:none}
  /* 12 Nov 2026 (owner: "move predict on top"): inside the score card, right under this over, above batters / bowler */
  #mScoreHost .msp-pslot #mPredictHost{margin:8px 0 0}
  #mScoreHost .msp-pslot:empty{display:none}
  /* keyboard up: give back the 8px the card's own padding + margin now add below the row (phone-reliability: a message
     stays readable on a 293px keyboard-up screen) */
  body.kb-open.mobile-detail-open #mScoreHost .msp-pslot #mPredictHost{margin-top:3px}
  body.kb-open.mobile-detail-open #mScoreHost .mscore:has(.msp-pslot #mPredictHost:not([hidden])){margin-bottom:3px}
  /* CHAT = score on top, the conversation fills the rest (YouTube-style): only what you need while chatting —
     score, chase, this over, who's batting / bowling, predict. Partnership, the last two balls' text and the
     target / previous-over rows fold away (they are one tab away, on Scorecard / Commentary). */
  body.mobile-detail-open.chat-mode .mscore .lx-row,
  body.mobile-detail-open.chat-mode .mscore .lb-wrap,
  body.mobile-detail-open.chat-mode .mscore .msp-more{display:none!important}
  body.mobile-detail-open.chat-mode #mScoreHost .mscore::after{display:none}
  /* batters + bowler in ONE line while chatting (the 3 player cards were ~70px) — still always on screen */
  body.mobile-detail-open.chat-mode .mscore .mpc-wrap{display:none!important}
  body.mobile-detail-open.chat-mode .mscore .msp-pl{display:flex!important}
  /* messages like a live-stream chat: small avatar, name and message on ONE flowing line, time after it.
     Photos and stickers keep their own layout. */
  /* flex:none (3 Nov 2026, messages drawn over each other on iPhone + Android): the list is a flex column, so a FULL list
     shrank every row to its 30px min-height and a two-line message spilled over the next. Rows keep their own height. */
  body.mobile-detail-open.chat-mode .chat-mini .chat-msg:not(.chat-sys):not(.has-ph):not(.sticker-msg){display:block;position:relative;
    padding:5px 26px 5px 32px;border-bottom:0;line-height:1.35;min-height:30px;flex:none}   /* flex:none: see below */
  body.mobile-detail-open.chat-mode .chat-mini .chat-msg:not(.chat-sys):not(.has-ph):not(.sticker-msg) > .chat-av{position:absolute;left:0;top:5px;
    width:24px;height:24px;font-size:10.5px;display:inline-flex}
  body.mobile-detail-open.chat-mode .chat-mini .chat-msg:not(.chat-sys):not(.has-ph):not(.sticker-msg) .chat-u{display:inline;margin-right:6px;font-size:12.5px;color:var(--muted)}
  body.mobile-detail-open.chat-mode .chat-mini .chat-msg.mine:not(.chat-sys):not(.has-ph):not(.sticker-msg) .chat-u{color:var(--accent)}
  body.mobile-detail-open.chat-mode .chat-mini .chat-msg:not(.chat-sys):not(.has-ph):not(.sticker-msg) .chat-t{display:inline;font-size:14.5px}
  body.mobile-detail-open.chat-mode .chat-mini .chat-msg:not(.chat-sys):not(.has-ph):not(.sticker-msg) .chat-ts{display:inline;margin-left:6px;font-size:10.5px;color:var(--muted2)}
  body.mobile-detail-open.chat-mode .chat-mini .chat-msg:not(.chat-sys):not(.has-ph):not(.sticker-msg) .msg-more,
  body.mobile-detail-open.chat-mode .chat-mini .chat-msg:not(.chat-sys):not(.has-ph):not(.sticker-msg) .amod{position:absolute;right:0;top:3px}
  body.mobile-detail-open.chat-mode .chat-mini .chat-msg:not(.chat-sys):not(.has-ph):not(.sticker-msg) .chat-tr,
  body.mobile-detail-open.chat-mode .chat-mini .chat-msg:not(.chat-sys):not(.has-ph):not(.sticker-msg) .chat-tr-btn{display:block}
}

/* ══ PHONE — the bottom-bar Chat (2 Nov 2026, owner: "it is overriding the next ball prediction… other messages I
   can't see"). Same idea as the match Chat: score on top, conversation fills the rest. ══ */
@media(max-width:820px){
  /* the bottom bar sits ABOVE everything while this chat is open (it is the open/close toggle) — opened from a
     match's Chat tab, the match view's own shell covered it and its message box showed through the gap */
  body.chat-drawer-open .bottom-nav{z-index:310}
  /* "Next ball?" was a chip floating OVER the newest messages: now a row directly under the score cards */
  body.chat-drawer-open .gchat-body > .cpoll{position:static;justify-content:flex-start;margin:0 0 4px;max-width:100%}
  /* each score card is as tall as ITS match (they all stretched to the tallest) */
  body.chat-drawer-open .gsw{align-items:flex-start}
  /* the score card in FEW lines (it was ~280px of a 750px screen): both scores on one line, batters on one, the
     bowler beside them when there is room — NOTHING is ever cut with "…": a score or a figure that doesn't fit
     moves to the next line whole (rule 1: a number is shown in full or not at all) */
  body.chat-drawer-open .gsw .msl-teams{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:baseline;justify-content:center;
    column-gap:7px;row-gap:0;font-size:15px!important;line-height:1.25;padding-right:22px}
  body.chat-drawer-open .gsw .msl-teams .msl-team,body.chat-drawer-open .gsw .msl-teams .msl-v{display:inline!important;font-size:inherit!important;white-space:nowrap}
  body.chat-drawer-open .gsw .msl-teams i{font-size:11.5px}
  body.chat-drawer-open .gsw .msl-players{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;column-gap:12px;row-gap:2px;justify-content:center;font-size:13px}
  body.chat-drawer-open .gsw .msl-players > span{display:inline;white-space:nowrap}
  body.chat-drawer-open .gsw .pn-full{display:none}
  body.chat-drawer-open .gsw .pn-short{display:inline}
  body.chat-drawer-open .gsw .msl-over,body.chat-drawer-open .gsw .msl-chase{margin-top:5px;padding-top:5px}
  /* messages like a live-stream chat: small avatar, name + message on one flowing line */
  body.chat-drawer-open .gchat-list .chat-msg:not(.chat-sys):not(.has-ph):not(.sticker-msg){display:block;position:relative;
    padding:5px 26px 5px 32px;border-bottom:0;line-height:1.35;min-height:30px;flex:none}   /* flex:none: see below */
  body.chat-drawer-open .gchat-list .chat-msg:not(.chat-sys):not(.has-ph):not(.sticker-msg) > .chat-av{position:absolute;left:0;top:5px;
    width:24px;height:24px;font-size:10.5px;display:inline-flex}
  body.chat-drawer-open .gchat-list .chat-msg:not(.chat-sys):not(.has-ph):not(.sticker-msg) .chat-u{display:inline;margin-right:6px;font-size:12.5px;color:var(--muted)}
  body.chat-drawer-open .gchat-list .chat-msg.mine:not(.chat-sys):not(.has-ph):not(.sticker-msg) .chat-u{color:var(--accent)}
  body.chat-drawer-open .gchat-list .chat-msg:not(.chat-sys):not(.has-ph):not(.sticker-msg) .chat-t{display:inline;font-size:14.5px}
  body.chat-drawer-open .gchat-list .chat-msg:not(.chat-sys):not(.has-ph):not(.sticker-msg) .chat-ts{display:inline;margin-left:6px;font-size:10.5px;color:var(--muted2)}
  body.chat-drawer-open .gchat-list .chat-msg:not(.chat-sys):not(.has-ph):not(.sticker-msg) .msg-more,
  body.chat-drawer-open .gchat-list .chat-msg:not(.chat-sys):not(.has-ph):not(.sticker-msg) .amod{position:absolute;right:0;top:3px}
  body.chat-drawer-open .gchat-list .chat-msg:not(.chat-sys):not(.has-ph):not(.sticker-msg) .chat-tr,
  body.chat-drawer-open .gchat-list .chat-msg:not(.chat-sys):not(.has-ph):not(.sticker-msg) .chat-tr-btn{display:block}
}

/* ⏸ play stopped (Stumps / Rain / Lunch) — the card says so; the predict chip waits, greyed, in its usual place */
.msl-stop{color:#ffb52e}
.cnb-chip.cnb-off{cursor:default;opacity:.7;border-color:var(--line2);background:var(--panel);font-weight:700}
/* 📱 MAIN Chat tab (bottom bar) = score on top, conversation fills the rest (owner, 2 Nov 2026: "on phone chat tab for
   live matches as well — not inside the match, keep that"). The swipe card was 188px: players as two 24px lines with a
   16px gap at 16.5px type, and every card is stretched to the tallest one, so a Test at stumps sat in a 188px box with
   87px of nothing. Same facts, tighter: surnames, 13px, small gaps, smaller over balls. Nothing is cut — rows wrap. */
@media (max-width:820px){
  body.chat-drawer-open #globalChatMount .gsw .mini-score{padding:7px 10px}
  body.chat-drawer-open #globalChatMount .gsw .mini-score .msl-players{font-size:13px!important;line-height:1.35;gap:1px 10px!important;margin-top:4px;padding-top:4px}
  body.chat-drawer-open #globalChatMount .gsw .mini-score .msl-players i{font-size:11.5px}
  body.chat-drawer-open #globalChatMount .gsw .mini-score .pn-full{display:none}
  body.chat-drawer-open #globalChatMount .gsw .mini-score .pn-short{display:inline}
  body.chat-drawer-open #globalChatMount .gsw .mini-score .msl-over{margin-top:4px;padding-top:4px;gap:6px}
  body.chat-drawer-open #globalChatMount .gsw .mini-score .msl-b{min-width:21px;height:21px;padding:0 4px;font-size:11.5px}
  body.chat-drawer-open #globalChatMount .gsw .mini-score .msl-ovl{font-size:10.5px}
  body.chat-drawer-open #globalChatMount .gsw .mini-score .msl-last{font-size:12px}
  body.chat-drawer-open #globalChatMount .gsw .mini-score .msl-chase{margin-top:4px;padding-top:4px;font-size:12.5px}
  body.chat-drawer-open #globalChatMount .gsw .gsw-dots{margin-top:3px}
  /* every card is the SAME size (the tallest sets it) and a shorter match FILLS its box — the box reaches the bottom of
     the strip and its rows sit in the middle, never a short card over an empty band (owner, 12 Nov 2026: "India match
     it is small… should be like New South Wales") */
  body.chat-drawer-open:not(.chat-wide) #globalChatMount .gsw-track{align-items:stretch}
  body.chat-drawer-open:not(.chat-wide) #globalChatMount .gsw-card{display:flex;flex-direction:column}
  body.chat-drawer-open:not(.chat-wide) #globalChatMount .gsw .gsw-card > .mini-score{flex:1 1 auto;display:flex;flex-direction:column;justify-content:space-evenly}
}
/* the run rate · stand · powerplay row lives only on the Chat sheet's swipe cards (the match page has those elsewhere) */
.mini-score .msl-info{display:none}
#globalChatMount .gsw .mini-score .msl-info{display:block;color:var(--muted)}
#globalChatMount .gsw .mini-score .msl-info b{color:var(--txt)}
#globalChatMount .gsw .mini-score .msl-info i{font-style:normal;color:var(--muted2)}
/* the three Rankings sub-tabs stay on one line on a phone */
@media (max-width:820px){ .pl-tabs .pl-tab{white-space:nowrap;font-size:13px;padding-left:6px;padding-right:6px} }

/* 👆 every picker row snaps chip by chip (phone and website); the chip at the start is the one selected (app.js
   SWIPE TO SELECT). Snap only bites when a row actually overflows. */
.st-chips,.ds-strip,.ct-row,.cp-chips{scroll-snap-type:x mandatory}
.st-chips>button,.ds-strip>button,.ct-row>button,.cp-chips>button{scroll-snap-align:start}

/* 🎯 Predict on the right of the Live / Upcoming row (phone chat): one line, not two; its options drop over the chat */
.cs-line{display:flex;align-items:center;gap:8px;min-width:0}
.cs-line>.cs-seg{flex:0 1 auto;min-width:0}
.cs-nb-slot{margin-left:auto;flex:none;position:relative}
.cs-nb-slot>.cpoll{position:relative!important;top:auto;right:auto;margin:0!important;max-width:none}
.cs-nb-slot .cnb{position:relative}
.cs-nb-slot .cnb-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:30}
.gsw .cs-line{margin:0 8px 6px}
.gsw .cs-line>.cs-seg{margin:0}
@media(max-width:360px){.cs-nb-slot .cnb-no{display:none}}   /* 320px SE: "🎯 Predict" alone keeps Mine · Live · Upcoming whole */

/* more to the side: a soft fade on the edge where the row continues */
.more-r{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 34px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 34px),transparent)}
.more-l{-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 34px),transparent);mask-image:linear-gradient(to left,#000 calc(100% - 34px),transparent)}
.more-l.more-r{-webkit-mask-image:linear-gradient(to right,transparent,#000 34px,#000 calc(100% - 34px),transparent);mask-image:linear-gradient(to right,transparent,#000 34px,#000 calc(100% - 34px),transparent)}
/* a news picture that hasn't arrived yet shimmers in its (already reserved) 16:9 box instead of sitting blank */
@keyframes nwShim{0%{background-position:100% 0}100%{background-position:-100% 0}}
.nw-img{background:linear-gradient(110deg,var(--panel2) 35%,var(--panel) 50%,var(--panel2) 65%);background-size:200% 100%;animation:nwShim 1.4s linear infinite}

/* 📊 Series in numbers (vendor tracker, 2 Nov 2026) — one slim wrap row of figures */
.si-num{margin:10px 0}
.si-nums{display:flex;gap:5px}
.si-nums span{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;padding:6px 2px;border:1px solid var(--line2);border-radius:10px;background:var(--panel2)}
.si-nums b{font-size:14px;font-weight:800;white-space:nowrap}
.si-nums small{font-size:11px;color:var(--muted)}
@media (max-width:359px){.si-nums{gap:3px}.si-nums b{font-size:12px}}

/* 🐞 Ads-review layout fixes (2 Nov 2026) */
/* phone players row: app.js fitPlRows() steps it down until it fits — a figure is never cut at the edge */
.msp-pl[data-fit="1"],.msp-pl[data-fit="2"],.msp-pl[data-fit="3"]{gap:8px;font-size:12px}
.msp-pl[data-fit="2"] .msp-pl-e,.msp-pl[data-fit="3"] .msp-pl-e{display:none}
.msp-pl[data-fit="3"] span:not(.msp-pl-b) i{display:none}
/* phone chat: Live / Upcoming keep their full width; the 🎯 chip takes what is left and wraps its own words */
.cs-line>.cs-seg{flex:none}
.cs-nb-slot{flex:0 1 auto;min-width:0}
.cs-nb-slot>.cpoll,.cs-nb-slot .cnb{min-width:0;max-width:100%}
.cs-nb-slot .cnb-chip.cnb-off{white-space:normal;line-height:1.15;font-size:11px;padding-top:3px;padding-bottom:3px}
/* phone match tab row pinned under the score bar: the edge fade was a MASK, which also faded the row's own
   background so the scorecard showed through. Pinned, the fade is drawn over the chips instead. */
@media (max-width:820px){
  body.mobile-detail-open:not(.chat-mode) .lower-tabs.more-r,body.mobile-detail-open:not(.chat-mode) .lower-tabs.more-l{-webkit-mask-image:none;mask-image:none}
  body.mobile-detail-open:not(.chat-mode) .lower-tabs::before,body.mobile-detail-open:not(.chat-mode) .lower-tabs::after{content:'';position:sticky;z-index:2;flex:none;width:30px;align-self:stretch;pointer-events:none;opacity:0}
  body.mobile-detail-open:not(.chat-mode) .lower-tabs::before{left:0;margin-right:-37px;background:linear-gradient(to right,var(--bg),transparent)}
  body.mobile-detail-open:not(.chat-mode) .lower-tabs::after{right:0;margin-left:-37px;background:linear-gradient(to left,var(--bg),transparent)}
  body.mobile-detail-open:not(.chat-mode) .lower-tabs.more-l::before,body.mobile-detail-open:not(.chat-mode) .lower-tabs.more-r::after{opacity:1}
}

/* 🎮 the header's play icon (#playNav) and the room it takes, MEASURED (2 Nov 2026): at 381-392px it pushed ☰ 2px off
   the screen, and at 1280-1366px the website menu links had to scroll by 16-23px. Kept at the END: the rules it
   tightens are defined further up with the same or higher specificity. */
@media (min-width:381px) and (max-width:440px){ .site-nav{gap:7px} }
@media (min-width:1280px) and (max-width:1600px){ .site-nav .nav-links .nav-link{padding:4px 7px} }
/* 1240-1300px still overflowed (by up to 55px): there the links take their own row, exactly as on tablets above */
@media (min-width:1240px) and (max-width:1300px){
  .nav-brand .nav-tag{display:none}
  .site-nav{flex-wrap:wrap;row-gap:6px}
  .site-nav .nav-links{order:10;flex:1 0 100%;justify-content:space-between;overflow:visible;padding:0;-webkit-mask-image:none;mask-image:none}
  .site-nav .nav-links .nav-link{flex:1 1 0;min-width:0}
}

/* 📣 ads test preview (app.js CLC_adsSides, set BEFORE the first paint so nothing jumps).
   ads-on-sides (≥ 1366 px): side ads in the margins, the page's own side padding drops to 10 px.
   ads-col (> 1200 px, where the left column shows): the left column holds ads under its content — 289 css px (= 300 on
   screen, +9) for a 300×600 / 300×250, and it scrolls with the page (a column that stays on screen would slide over the
   ads below it). The ?chat=match page's slim button column widens to the same 300 px. */
html.ads-on-sides .wrap{padding-left:10px;padding-right:10px}
html.ads-col .grid,html.ads-col.solo-page .grid{grid-template-columns:289px minmax(0,1fr) 300px}
html.ads-col .grid>aside{position:static}
html.ads-col .grid>.ad-col{grid-column:1;grid-row:1;align-self:start}
/* the ad items take cell 1/1 explicitly, so the page's own columns are pinned too (auto-placement would shift them right) */
html.ads-col .grid>aside{grid-column:1;grid-row:1}
html.ads-col .grid>.center{grid-column:2;grid-row:1}
html.ads-col .grid>.chat-col{grid-column:3;grid-row:1}
/* laptops (1366–1649 px): the page narrows so a 120 px side ad fits each side; slimmer Live Now (240, a 240×400 under it)
   + chat (280) columns so the middle keeps TWO match cards per row. These come AFTER ads-col so they win there. */
html.ads-sides .wrap{max-width:var(--ads-wrap,1320px)}
html.ads-sides .grid{grid-template-columns:240px minmax(0,1fr) 280px;gap:12px}
html.ads-sides .lg-cards{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
/* 1366–1439 px: on a MATCH page the Live Now list folds to its Home button (as on the dedicated match page) */
html.ads-tight body.match-open .grid{grid-template-columns:132px minmax(0,1fr) 280px}
html.ads-tight body.match-open .grid>aside>*:not(#asideNav){display:none}
html.ads-tight body.match-open #asideNav{flex-direction:column;align-items:stretch;gap:6px}
/* the ?chat=match page (owner, 3 Nov 2026: "only one bigger one… NOT two… dont squeeze the scorecard, use the space under
   home and all matches"): no LEFT side ad there — the page takes that strip instead (wider by 126 px on screen, starting
   at the left edge) and gives it ALL to the button column, 132 → 253 px, so a 240×400 fits under 🏠 Home / ← All matches
   while the middle keeps exactly its width. --ads-wrap-solo is set with --ads-wrap in app.js. */
html.ads-sides.solo-page .wrap{max-width:var(--ads-wrap-solo,1320px);margin-left:0}
html.ads-sides.solo-page body.match-open .grid,html.ads-sides.solo-page .grid{grid-template-columns:253px minmax(0,1fr) 280px}
/* the website chat page with side ads on: ≥ 200 px margins each side, so a 160 px ad fits there (300 px on wide screens) */
html.ads-on-sides body.chat-wide .chat-col{width:min(1260px, calc(100vw - 400px))}
/* side ads / ads column: the "This over" row is tighter, and if an over (with extras) still doesn't fit, the previous
   over drops to its own line instead of being cut (a figure is never cut — "= 5" was cut at 1440 px) */
html.ads-col .thisover,html.ads-sides .thisover{gap:8px;flex-wrap:wrap;row-gap:8px}
html.ads-col .thisover .balls,html.ads-sides .thisover .balls{gap:4px}

/* 🔞 18+ participation dialog (askAge in app.js): asked once, at the first post. Fits the visible screen (iPhone). */
.age-gate{position:fixed;inset:0;z-index:9700;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.55)}
.age-gate .ag-box{width:min(380px,100%);max-height:calc(var(--vvh,100dvh) - 32px);overflow:auto;padding:16px 16px 12px;border-radius:14px;
  background:var(--panel2);border:1px solid var(--line2);box-shadow:0 12px 32px rgba(0,0,0,.45);color:var(--txt)}
.age-gate .ag-h{font-size:17px;font-weight:800;margin-bottom:6px}
.age-gate .ag-p{font-size:14px;line-height:1.45;margin:0 0 10px}
.age-gate .ag-c{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700;padding:8px 0;cursor:pointer}
.age-gate .ag-c input{width:24px;height:24px;flex:none;margin:0}
.age-gate .ag-s{font-size:12px;color:var(--muted);margin:2px 0 12px}
.age-gate .ag-btns{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.age-gate .ag-btns button{font:inherit;font-size:14.5px;font-weight:800;padding:10px 16px;border-radius:10px;border:1px solid var(--line2);background:transparent;color:var(--txt);cursor:pointer}
.age-gate .ag-yes{background:var(--accent,#22c55e)!important;color:#fff!important;border-color:transparent!important}
.age-gate .ag-yes:disabled{opacity:.45;cursor:not-allowed}
/* ⏰ REMIND ME (7 Nov 2026): icon on upcoming cards / slim rows / schedule rows, labelled in Info. Same visible size as
   the ☆ beside it; 32 px touch area on phones (negative margin keeps the layout). 📅 = the calendar fallback. */
.rem-btn{cursor:pointer;background:none;border:none;font-size:15px;line-height:1;padding:0 2px;color:var(--muted2);text-decoration:none;flex:none;font-family:inherit;border-radius:999px}
.rem-btn:not(.rem-long).on{background:color-mix(in srgb,var(--accent) 28%,transparent);box-shadow:0 0 0 1px var(--accent) inset}
.rem-btn.rem-long{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700;color:var(--accent);filter:none;opacity:1;margin-left:auto;margin-right:12px;white-space:nowrap}
.rem-btn.rem-long + .inf-cal{margin-left:0}
@media (max-width:820px){
  .rem-btn:not(.rem-long){display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:32px;margin:-9px -4px}
  .rem-btn.rem-long{min-height:32px;margin-top:-6px;margin-bottom:-6px}
}
/* 🙋 the one-time alerts ask: fixed (no layout shift), above the phone bottom bar, never over the score */
.ask-card{position:fixed;z-index:330;flex-wrap:wrap;left:12px;right:12px;bottom:calc(env(safe-area-inset-bottom) + 72px);display:flex;align-items:center;gap:10px;
  padding:10px 12px;border-radius:14px;background:var(--panel2);border:1px solid var(--line2);box-shadow:var(--shadow);color:var(--txt);
  opacity:0;transform:translateY(10px);transition:opacity .2s,transform .2s}
.ask-card.show{opacity:1;transform:none}
.ask-txt{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:13.5px;line-height:1.3}
.ask-txt small{font-size:11.5px;color:var(--muted2)}
.ask-btns{display:flex;gap:6px;flex:none;margin-left:auto}
.ask-btns button{min-height:34px;padding:0 12px;border-radius:999px;font:700 13px/1 inherit;cursor:pointer;border:1px solid var(--line2);background:none;color:var(--txt)}
.ask-btns .ask-yes{background:var(--accent);border-color:var(--accent);color:#fff}
@media (min-width:821px){.ask-card{left:auto;right:20px;bottom:20px;width:380px}}

/* ⌨️ KEYBOARD UP ON A SHORT SCREEN (body.kb-short = keyboard up and under 470px left, set by fitMobileShell — 11 Nov 2026).
   Measured at 375x553 with a 260px keyboard (293px left): rows above the message list ended at 302px, the list was 0px
   tall and the message box ended at 366px — under the keyboard. While typing a fan needs the score, the ball, the
   conversation and the box: the home/title row, the match tab row and the Match·Group·name row fold away and come back
   when the keyboard closes. Score, BALL IN PLAY and "Predict next ball" stay. */
@media (max-width:820px){
  body.kb-short.mobile-detail-open.chat-mode #focusTop,
  body.kb-short.mobile-detail-open.chat-mode .lower-tabs,
  body.kb-short.mobile-detail-open.chat-mode .chat-stick-row{display:none}
}
/* ✋ the vendor's live call ("Bowler Stop", review, injury…) in the VS circle / over row / CRR chip, ⚡ powerplay and 📢 the
   ground update that is still news (12 Nov 2026) — all in places that already exist, so nothing changes height */
.vs-ev{flex-direction:column;gap:1px;line-height:1;width:64px!important;height:42px!important;border-radius:12px;padding:0 4px;background:rgba(255,184,77,.12);border-color:rgba(255,184,77,.55)}
.vs-ev .vs-val{font-size:15px}
.vs-ev .vs-lb{color:var(--amber);max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.msp-ev{font-size:11px;font-weight:800;color:var(--amber);min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.msp-bip.ev{color:var(--amber);font-size:10px;font-weight:900}
.msp-pp{color:var(--amber);font-weight:900;letter-spacing:.3px}
.hchip-pp{color:var(--amber)}
.hchip-gu small{font-weight:700;color:var(--muted);margin-left:2px}
.lb-gu .lb-ov{text-align:center}
.lb-gu .lb-tx b{color:var(--amber);font-weight:800}
.clc-tag{display:inline-block;font-size:10px;font-weight:900;letter-spacing:.04em;line-height:1;padding:3px 5px;border-radius:5px;background:var(--accent);color:#04120a;vertical-align:1px}
body.theme-light .clc-tag{color:#fff}
.lb-gu .lb-tx i{font-style:normal;color:var(--muted2);font-size:11px;margin-left:4px}

/* 🎯 PHONE: Predict = a chip at the right of the match page's top row (owner, 12 Nov 2026: "predict ball on top right…
   make it small"). The in-card 7-button row is gone on phones; the options drop down over the page on a tap. */
#ftNb{display:none}
@media(max-width:820px){
  body.mobile-detail-open #focusTop{position:relative;z-index:60}   /* above the sticky score card (z 50), so the options drop over it */
  body.mobile-detail-open #focusTop #ftNb{display:block;flex:none;margin-left:auto;position:relative}
  body.mobile-detail-open #focusTop #ftNb:empty{display:none}
  #ftNb .cnb{position:relative}
  #ftNb .cnb-chip{white-space:nowrap}
  #ftNb .cnb-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:60;width:min(360px,calc(100vw - 24px))}
  #ftNb .cnb-panel .nb-strip{margin:0}
  #mPredictHost,#mScoreHost .msp-pslot{display:none!important}
}
@media(max-width:360px){#ftNb .cnb-no{display:none}}
/* ⚡ powerplay beside the batting side's overs line on the website hero (owner, 12 Nov 2026: "PP1… just beside score") */
.sb-team .ov .hero-pp{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;font-size:.82em;font-weight:900;
  color:#ffb52e;border:1px solid color-mix(in srgb,#ffb52e 55%,transparent);background:color-mix(in srgb,#ffb52e 12%,transparent);vertical-align:1px}
.cmt-pre{margin:4px 0 10px}
/* pre/post-match lines (15 Nov 2026): the Playing XI wraps as plain text, names never cut; result + end-of-innings separated from the balls */
.cmt-story .gu-tx{min-width:0;overflow-wrap:anywhere}
.cmt-xi{font-weight:500;line-height:1.45}
.cmt-xi b{font-weight:800}
.cmt-res .gu-tx{color:var(--accent)}
.cmt-post{padding-bottom:8px;border-bottom:1px solid var(--line2)}
.cmt-start{margin-top:10px;padding-top:8px;border-top:1px solid var(--line2)}
/* ⚡ PP beside the phone score (owner, 12 Nov 2026: "missing PP on phone as well") — it used to ride only on the CRR line,
   which isn't drawn at 0 overs */
.msp-sc .msp-pp{display:inline-block;font-size:11px;line-height:1;padding:2px 6px;border-radius:999px;vertical-align:middle;
  color:#ffb52e;border:1px solid color-mix(in srgb,#ffb52e 55%,transparent);background:color-mix(in srgb,#ffb52e 12%,transparent);font-style:normal}
/* previous over behind a small button at the end of this over's row (owner, 12 Nov 2026) */
.msp-over .msp-pvbtn{margin-left:auto;flex:none;font:inherit;font-size:11px;font-weight:800;line-height:1;color:var(--muted);cursor:pointer;
  padding:5px 8px;border-radius:999px;border:1px solid var(--line2);background:var(--panel2);min-height:24px}
.msp-over .msp-pvbtn[aria-expanded="true"]{color:var(--txt);border-color:var(--muted2)}

/* 🏏 PHONE CHAT PAGE — which match, which chat (owner, 16 Nov 2026: "difficult to understand next page… scorecard and
   chat look the same… swipe is tough"; then: "light mode dark scorecard… dark mode colour scorecard… phone only").
   No new rows: Live · match chips · Upcoming share one row, the next card's sliver names its match, the dots stay.
   ONE colour per card, a different one per match (owner: "multi colour for different matches when they swipe" — never two
   colours in one card). LIGHT theme = dark boards (the laptop look) over the light chat; DARK theme = light boards over
   the dark chat — the board always stands apart from the chat.
   Match events are small centred pills that WRAP (a score is never cut). app.js globalSwipeHTML / syncGswMarks. */
@media (max-width:820px){
  body.chat-drawer-open:not(.chat-wide) #globalChatMount .gsw .gsw-card[data-tint] > .mini-score{background:var(--board);border-color:var(--board-line)}
  /* one colour per match (blue · purple · plum · slate). DARK theme = LIGHT boards on the dark page (owner, 16 Nov 2026:
     "keep light mode here for scorecard… for dark"); LIGHT theme = dark boards on the light page */
  #globalChatMount [data-tint="0"],#globalChatMount[data-tint="0"]{--board:#e3eaff;--board-line:#9fb3f0}
  #globalChatMount [data-tint="1"],#globalChatMount[data-tint="1"]{--board:#ebe5ff;--board-line:#b6a6f0}
  #globalChatMount [data-tint="2"],#globalChatMount[data-tint="2"]{--board:#f6e5f0;--board-line:#dca6c7}
  #globalChatMount [data-tint="3"],#globalChatMount[data-tint="3"]{--board:#e0eef4;--board-line:#98c2d4}
  body:not(.theme-light).chat-drawer-open:not(.chat-wide) #globalChatMount .gsw .gsw-card[data-tint] > .mini-score,
  body:not(.theme-light) .gsw-peek{
    --bg:#f3f6fb;--bg2:#e7edf6;--panel:#ffffff;--panel2:#ffffff;--line:#c9d4e6;--line2:#b6c3da;--txt:#0e1524;--muted:#455073;--muted2:#5d6884;
    --accent:#0a8743;--blue:#1d63d4;--amber:#935700;--purple:#6f3fd9;--red:#d0213a;color:var(--txt)}
  body.theme-light #globalChatMount [data-tint="0"],body.theme-light #globalChatMount[data-tint="0"]{--board:#0f1a33;--board-line:#0f1a33}
  body.theme-light #globalChatMount [data-tint="1"],body.theme-light #globalChatMount[data-tint="1"]{--board:#221a4a;--board-line:#221a4a}
  body.theme-light #globalChatMount [data-tint="2"],body.theme-light #globalChatMount[data-tint="2"]{--board:#341838;--board-line:#341838}
  body.theme-light #globalChatMount [data-tint="3"],body.theme-light #globalChatMount[data-tint="3"]{--board:#112c3b;--board-line:#112c3b}
  /* light theme: the scoreboard is DARK (same tokens as the dark theme), the chat stays light */
  body.theme-light.chat-drawer-open:not(.chat-wide) #globalChatMount .gsw .gsw-card[data-tint] > .mini-score,
  body.theme-light .gsw-peek{
    --bg:#0a0e1a;--bg2:#0f1424;--panel:#141a2e;--panel2:#1a2138;--line:#222a45;--line2:#2c3658;--txt:#e8edf7;--muted:#a9b3cf;--muted2:#8a94b3;
    --accent:#1fcf6d;--blue:#5b9dff;--amber:#ffb52e;--red:#ff495f;color:var(--txt)}
  /* the sliver of the next card: which match it is (tap = go there) */
  body.chat-drawer-open:not(.chat-wide) #globalChatMount .gsw-trackwrap{position:relative}
  .gsw-peek{position:absolute;top:0;bottom:0;right:0;width:calc(9% - 8px);min-width:22px;z-index:2;cursor:pointer;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:9.5px;line-height:1.1;color:var(--txt);
    border-radius:13px 0 0 13px;border:1px solid var(--board-line);border-right:0;background:var(--board);transition:opacity .12s}
  .gsw-peek[hidden]{display:none}
  .gsw-peek b{font-weight:900;letter-spacing:-.2px}
  .gsw-peek i{font-style:normal;color:var(--muted2)}
  .gsw-peek span{font-size:13px;font-weight:900;color:var(--accent)}
  .gsw-moving .gsw-peek{opacity:0;pointer-events:none}
  /* first-visit nudge */
  @keyframes gswNudge{0%,100%{transform:translateX(0)}45%{transform:translateX(-46px)}}
  .gsw-track.gsw-nudge>.gsw-card{animation:gswNudge 1.1s ease-in-out 1}
  .gsw-track.gsw-nudge~.gsw-peek{opacity:0}
  /* where the score ends and the chat begins: a thin line in the two team colours */
  body.chat-drawer-open:not(.chat-wide) #globalChatMount[data-tint] .gchat-body{border-top:2px solid var(--board-line)}
  /* match events = small centred pills that WRAP — a score is never cut with "…" */
  body.chat-drawer-open:not(.chat-wide) #globalChatMount .gchat-list .chat-sys.chat-wk{justify-content:center;margin:2px 0}
  body.chat-drawer-open:not(.chat-wide) #globalChatMount .gchat-list .chat-sys.chat-wk span{display:inline-block;white-space:normal;overflow:visible;
    text-overflow:clip;text-align:center;line-height:1.3;border-radius:12px;padding:2px 9px;font-size:11.5px;
    background:color-mix(in srgb,var(--live,#e53935) 12%,transparent);color:var(--txt)}
  body.chat-drawer-open:not(.chat-wide) #globalChatMount .gchat-list .chat-sys.chat-wk span::before{margin-right:6px}
  body.chat-drawer-open:not(.chat-wide) #globalChatMount .gchat-list .chat-sys.chat-gnd span{background:color-mix(in srgb,#38bdf8 13%,transparent)}
  body.chat-drawer-open:not(.chat-wide) #globalChatMount .gchat-list .chat-msg.chat-clc{display:block!important;width:fit-content;max-width:100%;
    margin:2px auto!important;padding:2px 10px!important;min-height:0!important;border:0!important;border-radius:12px;text-align:center;line-height:1.3;
    background:color-mix(in srgb,#ffb52e 15%,transparent)}
  body.chat-drawer-open:not(.chat-wide) #globalChatMount .gchat-list .chat-msg.chat-clc > .chat-av{display:none!important}
  body.chat-drawer-open:not(.chat-wide) #globalChatMount .gchat-list .chat-msg.chat-clc .chat-u{display:inline!important;font-size:9.5px!important;font-weight:900;letter-spacing:.5px;margin-right:6px}
  body.chat-drawer-open:not(.chat-wide) #globalChatMount .gchat-list .chat-msg.chat-clc .chat-t{display:inline!important;font-size:11.5px!important;font-weight:700}
  body.chat-drawer-open:not(.chat-wide) #globalChatMount .gchat-list .chat-msg.chat-clc .chat-ts{display:inline!important;margin-left:6px;font-size:10px}
}
