/* =====================================================================
   Cricket League Stats — design system
   Mobile-first. Breakpoints: 560px (phone), 860px (tablet).
   ===================================================================== */

:root {
  --bg: #f3f5f9; --card: #ffffff; --soft: #f7f9fc; --text: #0f172a; --muted: #64748b; --line: #e5e9f0;
  --brand: #1d4ed8; --brand-soft: #dbeafe; --accent: #f59e0b;
  --win: #16a34a; --loss: #dc2626; --tie: #64748b; --live: #e11d48;
  --head: #0b1430; --head-2: #13224d;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 18px rgba(15, 23, 42, .05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1c; --card: #111a2b; --soft: #0f1726; --text: #e5e7eb; --muted: #94a3b8; --line: #1e293b;
    --brand: #60a5fa; --brand-soft: #1e3a5f; --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
a.plain { color: inherit; }
a.plain:hover { color: var(--brand); text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.empty { color: var(--muted); text-align: center; padding: 28px 12px; }
@media (max-width: 560px) { body { font-size: 14.5px; } .hide-sm { display: none !important; } }
@media (max-width: 860px) { .hide-md { display: none !important; } }
@media (min-width: 561px) { .only-sm { display: none !important; } }

/* ---------- header ---------- */
.site-top { position: sticky; top: 0; z-index: 50; background: linear-gradient(180deg, var(--head), var(--head-2)); color: #fff; box-shadow: 0 2px 12px rgba(2, 6, 23, .25); }
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: .72rem; letter-spacing: .02em; background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; }
.brand b { display: block; font-size: 1rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; font-size: .72rem; color: rgba(255, 255, 255, .65); white-space: nowrap; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; color: rgba(255, 255, 255, .72); font-weight: 600; font-size: .9rem; padding: 10px 14px 12px; border-bottom: 3px solid transparent; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.active { color: #fff; border-bottom-color: var(--accent); }
@media (min-width: 861px) { .nav { mask-image: none; } }
.live-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(225, 29, 72, .16); border: 1px solid rgba(244, 63, 94, .35); padding: 5px 11px; border-radius: 99px; font-size: .75rem; font-weight: 700; white-space: nowrap; color: #fff; }
.live-badge:hover { text-decoration: none; }
.live-badge[hidden] { display: none; }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #f43f5e; animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, .7); } 70% { box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); } }
.announce { background: #fef3c7; color: #78350f; font-size: .9rem; }
.announce .wrap { padding-top: 9px; padding-bottom: 9px; }

/* ---------- page scaffolding ---------- */
main.wrap { padding-top: 20px; padding-bottom: 56px; }
.page-head { margin: 4px 0 18px; }
.page-head h1 { margin: 0; font-size: clamp(1.35rem, 4vw, 1.75rem); letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.crumb { display: inline-block; margin-bottom: 12px; font-size: .9rem; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 28px 0 12px; font-size: .78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.section-title a { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .85rem; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.stack { display: grid; gap: 16px; align-content: start; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); overflow: hidden; }
.card.flush { padding: 0; }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 16px 8px; }
.card > .card-h:first-child { margin: -16px -16px 0; }
.card.flush > .card-h:first-child { margin: 0; }
.card h2 { margin: 0 0 12px; font-size: 1rem; }
.card-h h2 { margin: 0; font-size: 1rem; }
.card-h a, .card-h .muted { font-size: .85rem; white-space: nowrap; }
.card-foot { padding: 10px 16px 14px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- stat tiles ---------- */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
.tile .l { color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.tile .v { font-size: 1.65rem; font-weight: 800; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .v small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.tile .s { font-size: .82rem; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* caps (orange / purple) */
.caps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cap { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); color: #fff; box-shadow: var(--shadow); min-width: 0; }
.cap:hover { text-decoration: none; filter: brightness(1.05); }
.cap.orange { background: linear-gradient(135deg, #f97316, #c2410c); }
.cap.purple { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
.cap .avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.cap-body { min-width: 0; flex: 1; }
.cap-l { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.cap-n { font-weight: 800; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-t { font-size: .8rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-v { text-align: right; font-size: 1.9rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.cap-v small { display: block; font-size: .7rem; font-weight: 700; opacity: .85; letter-spacing: .05em; text-transform: uppercase; }

/* season banner (overview) */
.banner { position: relative; overflow: hidden; border-radius: 18px; padding: 20px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(245, 158, 11, .45), transparent 55%), linear-gradient(135deg, #102a6b, #0b1430); box-shadow: 0 10px 30px rgba(2, 6, 23, .2); margin-bottom: 16px; }
.banner h1 { margin: 0; font-size: clamp(1.45rem, 5vw, 2.1rem); letter-spacing: -.01em; }
.banner p { margin: 4px 0 0; color: rgba(255, 255, 255, .75); font-size: .92rem; }
.banner-progress { margin-top: 16px; max-width: 520px; }
.banner-progress .bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.banner-progress .bar span { display: block; height: 100%; background: linear-gradient(90deg, #fbbf24, #f97316); border-radius: 99px; }
.banner-progress small { display: flex; justify-content: space-between; margin-top: 6px; color: rgba(255, 255, 255, .7); font-size: .78rem; }
.banner-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.banner-actions a { color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); padding: 8px 14px; border-radius: 99px; font-weight: 600; font-size: .85rem; }
.banner-actions a:hover { background: rgba(255, 255, 255, .2); text-decoration: none; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.card > .table-scroll { margin: 0 -16px; padding: 0 8px; }
.card.flush > .table-scroll { margin: 0; padding: 0 8px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
th { color: var(--muted); font-weight: 700; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; }
th.l, td.l { text-align: left; }
td.wrap-cell { white-space: normal; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--soft); }
td.pts, td.strong { font-weight: 800; }
td.rank { color: var(--muted); font-weight: 700; width: 34px; }
@media (max-width: 560px) { th, td { padding: 9px 6px; } table { font-size: .86rem; } }

/* points table */
.pt tr.q td.rank { box-shadow: inset 3px 0 0 var(--win); color: var(--win); }
.pt tr.cut td { border-bottom: 2px dashed color-mix(in srgb, var(--win) 45%, var(--line)); }
.pt td.team-cell { max-width: 260px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--win); margin-right: 5px; vertical-align: -1px; }
.nrr-pos { color: var(--win); } .nrr-neg { color: var(--loss); }

/* team name with logo; short code on phones in dense tables */
.team { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; min-width: 0; max-width: 100%; }
.team > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tn-short { display: none; }
@media (max-width: 560px) { .dense .tn-full { display: none; } .dense .tn-short { display: inline; } }

.form { display: inline-flex; gap: 3px; }
.form span { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: .62rem; font-weight: 800; color: #fff; }
.form .W { background: var(--win); } .form .L { background: var(--loss); } .form .T, .form .N { background: var(--tie); }

/* ---------- avatars & player cells ---------- */
.avatar { position: relative; flex: none; display: inline-grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; color: #fff; font-weight: 800; font-size: calc(var(--s) * .38); letter-spacing: .02em; }
.avatar.sq { border-radius: 8px; background: #fff !important; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--card); }
.avatar.sq img { object-fit: contain; padding: 2px; background: #fff; }
.pcell { display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; }
.pcell > div { min-width: 0; }
.pcell b, .pcell > div > a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcell small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { td .pcell { max-width: 175px; } }

/* leader list (compact leaderboards) */
.leaders { list-style: none; margin: 0; padding: 0; }
.leaders li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); }
.leaders li:first-child { border-top: 0; }
.leaders .rk { color: var(--muted); font-weight: 800; font-size: .85rem; text-align: center; }
.leaders li:first-child .rk { color: var(--accent); }
.leaders .val { text-align: right; font-weight: 900; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.leaders .val small { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); }

/* ---------- pills, tags, buttons ---------- */
.pill { display: inline-block; font-size: .66rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.pill.live { background: var(--live); border-color: var(--live); color: #fff; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag.ok { background: #dcfce7; border-color: #bbf7d0; color: #166534; }
.tag.warn { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .14); color: inherit; }
a.chip:hover { text-decoration: none; background: rgba(255, 255, 255, .24); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 700; background: var(--brand); color: #fff; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: var(--loss); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* segmented control (tabs inside a page) */
.seg { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin: 16px 0; overflow-x: auto; scrollbar-width: none; box-shadow: var(--shadow); }
.seg::-webkit-scrollbar { display: none; }
.seg button, .seg a { flex: 1 0 auto; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: .9rem; padding: 8px 16px; border-radius: 9px; cursor: pointer; text-align: center; white-space: nowrap; }
.seg button.active, .seg a.active { background: var(--brand); color: #fff; }
.seg a:hover { text-decoration: none; }
@media (min-width: 561px) { .seg { display: inline-flex; max-width: 100%; } .seg button, .seg a { flex: 0 0 auto; } }

/* ---------- match cards ---------- */
.matches { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.match { display: block; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; background: var(--card); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
a.match:hover { text-decoration: none; border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-1px); }
.match .top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .78rem; margin-bottom: 10px; gap: 8px; }
.match .side { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 4px 0; }
.match .side .team { font-weight: 600; }
.match .side.won .team, .match .side.won .sc { font-weight: 800; }
.match .side.lost { opacity: .7; }
.match .sc { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; font-size: .95rem; }
.match .sc small { color: var(--muted); font-size: .78rem; font-weight: 500; }
.match .res { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--brand); font-weight: 650; }
.match .res .pom { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; margin-top: 2px; }
.match .res.muted { color: var(--muted); font-weight: 500; }
.date-group { margin: 22px 0 10px; font-size: .82rem; font-weight: 800; color: var(--muted); }
.date-group:first-child { margin-top: 0; }

/* ---------- hero (team / player) ---------- */
.hero-card { position: relative; overflow: hidden; border-radius: 18px; color: #fff; padding: 20px; box-shadow: 0 10px 30px rgba(2, 6, 23, .18);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tc, #1d4ed8) 70%, transparent), transparent 60%), linear-gradient(135deg, #0f1a33, #0b1120); }
.hero-row { display: flex; align-items: center; gap: 18px; }
.hero-row > div { min-width: 0; }
.hero-card h1 { margin: 0; font-size: clamp(1.35rem, 5vw, 2rem); line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.hero-card .sub { color: rgba(255, 255, 255, .75); margin-top: 4px; font-size: .92rem; }
.hero-card .avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.hero-card .chips { margin-top: 12px; }
.hero-card a { color: #fff; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; margin-top: 18px; }
.hero-stats div { background: rgba(11, 17, 32, .5); border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; padding: 9px 12px; }
.hero-stats span { display: block; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.hero-stats b { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.hero-stats b small { font-size: .7em; opacity: .7; }
@media (max-width: 560px) { .hero-card { padding: 16px; } .hero-row { gap: 14px; } }

/* team cards & squad */
.team-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.team-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: inherit; border-left: 5px solid var(--tc); min-width: 0; }
.team-card:hover { text-decoration: none; border-color: var(--tc); }
.team-card .tc-body { min-width: 0; flex: 1; }
.team-card .tc-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-card .tc-meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.team-card .tc-pos { text-align: right; font-weight: 900; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.team-card .tc-pos small { display: block; font-size: .65rem; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.squad { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
@media (max-width: 560px) { .squad { grid-template-columns: 1fr 1fr; } }
.squad a { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; min-width: 0; }
.squad a:hover { border-color: var(--brand); text-decoration: none; }
.squad a > div { min-width: 0; }
.squad b { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.squad small { display: block; color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* champions */
.champs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.champ { border-radius: var(--radius); padding: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.champ.won { background: linear-gradient(160deg, color-mix(in srgb, #f59e0b 14%, var(--card)), var(--card) 60%); border-color: color-mix(in srgb, #f59e0b 35%, var(--line)); }
.champ .s-no { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.champ .w { margin-top: 8px; font-weight: 900; font-size: 1.05rem; line-height: 1.25; }
.champ .ru { margin-top: 6px; font-size: .84rem; color: var(--muted); }
.champ .pz { margin-top: 10px; font-size: .8rem; font-weight: 700; }
.champ .note { margin-top: 6px; font-size: .78rem; color: var(--muted); }

/* ---------- match page: scoreboard (live and finished) ---------- */
.sb { position: relative; overflow: hidden; border-radius: 18px; color: #fff; padding: 18px 20px 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c1) 55%, transparent) 0%, transparent 55%),
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--c2) 55%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, #111a2e, #0b1120);
  box-shadow: 0 12px 32px rgba(2, 6, 23, .28); }
.sb a { color: #fff; }
.sb-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .78rem; color: rgba(255, 255, 255, .7); }
.sb-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 20px 0 16px; }
.sb-team { display: flex; align-items: center; gap: 14px; opacity: .72; min-width: 0; }
.sb-team.batting, .sb-team.winner, .sb-team.neutral { opacity: 1; }
.sb-team.right { flex-direction: row-reverse; text-align: right; }
.sb-team .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .18); }
.sb-team-info { min-width: 0; }
.sb-name { font-weight: 700; font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.sb-score { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin-top: 6px; }
.sb-score small { font-size: .55em; opacity: .75; font-weight: 700; }
.sb-overs { font-size: .85rem; color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; margin-top: 4px; }
.sb-overs span { opacity: .6; }
.sb-yet { margin-top: 6px; font-size: .9rem; color: rgba(255, 255, 255, .6); }
.sb-vs { font-size: .72rem; font-weight: 800; color: rgba(255, 255, 255, .4); letter-spacing: .12em; }
.sb-batting { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; margin-left: 6px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.sb-win { display: inline-block; margin-left: 6px; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: #fbbf24; color: #111; padding: 2px 6px; border-radius: 5px; vertical-align: middle; }
.sb-status { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 14px; font-size: .95rem; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sb-status b { color: #fbbf24; }
.sb-status.result { font-weight: 700; color: #fde68a; }
.sb-tag { margin-left: auto; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(251, 191, 36, .18); color: #fbbf24; padding: 3px 8px; border-radius: 6px; }
.sb-chase { margin-top: 12px; }
.sb-chase-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.sb-chase-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22c55e, #facc15); transition: width .6s; }
.sb-chase-labels { display: flex; justify-content: space-between; font-size: .75rem; color: rgba(255, 255, 255, .65); margin-top: 5px; }
.sb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 1px; margin-top: 14px; background: rgba(255, 255, 255, .08); border-radius: 12px; overflow: hidden; }
.sb-kpis div { background: rgba(11, 17, 32, .6); padding: 10px 12px; min-width: 0; }
.sb-kpis span { display: block; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.sb-kpis b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.sb-kpis b small { font-size: .72em; opacity: .7; font-weight: 600; }
.sb-kpis b.up { color: #fca5a5; } .sb-kpis b.down { color: #86efac; }
.sb-pom { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.sb-pom span { display: block; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.sb-pom b { font-size: 1rem; }
.sb-when { font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 800; text-align: center; }
.sb-when small { display: block; font-size: .78rem; font-weight: 600; color: rgba(255, 255, 255, .65); }
@media (max-width: 640px) {
  .sb { padding: 16px; border-radius: 16px; }
  .sb-teams { grid-template-columns: 1fr; gap: 12px; }
  .sb-vs { display: none; }
  .sb-team.right { flex-direction: row; text-align: left; }
  .sb-tag { margin-left: 0; }
  .sb-when { text-align: left; }
}

/* scorecard */
.inn-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 16px 6px; }
.inn-h h2 { margin: 0; font-size: 1rem; min-width: 0; }
.inn-h .score { font-weight: 900; font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inn-h .score small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.sc-t td.bat { white-space: normal; text-align: left; min-width: 140px; }
.sc-t td.bat a { font-weight: 700; color: var(--text); }
.sc-t .how { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; margin-top: 1px; line-height: 1.3; }
.sc-t .how.notout { color: var(--win); font-weight: 600; }
.sc-t td.big { font-weight: 800; font-size: 1rem; }
.sc-note { padding: 10px 16px; font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); }
.sc-note a { color: var(--text); }

/* ---------- live centre ---------- */
.live-pill { display: inline-flex; align-items: center; gap: 6px; background: #e11d48; color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .14em; padding: 4px 10px 4px 8px; border-radius: 99px; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.lc-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 860px) { .lc-grid { grid-template-columns: 1fr; } }
.lc-col { display: grid; gap: 16px; align-content: start; }
.card.pane { padding: 0; }
.pane-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 16px 6px; }
.pane-h h3 { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.pane-h .muted { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pane .table-scroll { margin: 0; padding: 0 8px; }
.live-t td { padding: 10px 8px; }
.live-t td.big { font-size: 1.15rem; font-weight: 800; }
.live-t tr.on-strike td { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.bat-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--win); margin: 0 3px 1px 5px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--win) 25%, transparent); }
.partner { padding: 12px 16px; border-top: 1px solid var(--line); }
.partner-h { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.partner-h b { color: var(--text); }
.partner-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--line); margin: 8px 0 6px; }
.partner-bar span:first-child { background: var(--brand); }
.partner-bar span:last-child { flex: 1; background: #f59e0b; }
.partner-names { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; }
.last-wkt { padding: 10px 16px 14px; border-top: 1px solid var(--line); font-size: .85rem; }
.last-wkt span { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--loss); font-weight: 800; margin-right: 6px; }
.this-over { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 16px 14px; }
.over-sum { margin: 0 16px 12px; padding: 10px 12px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; font-size: .85rem; }
.recent { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 0 16px 14px; font-size: .8rem; }
.comm { padding: 0 16px 10px; max-height: 620px; overflow: auto; }
.comm-ball { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.comm-ball:last-child { border-bottom: 0; }
.comm-l { display: flex; align-items: flex-start; gap: 8px; }
.comm-no { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 6px; min-width: 28px; }
.comm-t { font-weight: 600; font-size: .9rem; }
.comm-d { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.comm-ball.is-boundary .comm-t { color: #2563eb; }
.comm-ball.is-out { background: color-mix(in srgb, var(--loss) 8%, transparent); margin: 0 -16px; padding: 11px 16px; }
.comm-ball.is-out .comm-t { color: var(--loss); }
.comm-over { margin: 14px 0 4px; border-radius: 10px; background: #0f172a; color: #e2e8f0; padding: 10px 12px; }
.comm-over-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.comm-over-h span { color: #94a3b8; font-size: .85rem; }
.comm-score { margin-left: auto; color: #fbbf24; }
.comm-over-b { font-size: .8rem; color: #94a3b8; margin-top: 4px; }
@media (prefers-color-scheme: dark) { .comm-ball.is-boundary .comm-t { color: #93c5fd; } .comm-over { background: #1e293b; } }
@media (max-width: 560px) {
  .live-t td, .live-t th { padding: 8px 5px; }
  .pane .table-scroll { padding: 0 4px; }
  .this-over { gap: 6px; }
  .comm { max-height: none; }
  .comm-ball { grid-template-columns: 64px 1fr; }
}

/* ball chips */
.balls { display: inline-flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.ball { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; font-size: .78rem; font-weight: 800; background: var(--line); color: var(--text); font-variant-numeric: tabular-nums; }
.ball.dot { color: var(--muted); }
.ball.r { background: color-mix(in srgb, var(--text) 10%, transparent); }
.ball.s4 { background: #2563eb; color: #fff; }
.ball.s6 { background: #7c3aed; color: #fff; }
.ball.w { background: #e11d48; color: #fff; }
.ball.x { background: #fbbf24; color: #111; }
.ball.lg { min-width: 42px; height: 42px; font-size: .95rem; }
.ball.sm { min-width: 22px; height: 22px; font-size: .68rem; padding: 0 4px; }
.ball.todo { background: transparent; border: 2px dashed var(--line); }
.ball-sep { width: 1px; height: 20px; background: var(--muted); margin: 0 3px; opacity: .5; }
@media (max-width: 560px) { .ball.lg { min-width: 36px; height: 36px; font-size: .85rem; } }

/* featured live card */
.live-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.live-card { display: block; color: #fff; border-radius: 16px; padding: 14px 16px;
  background:
    radial-gradient(100% 120% at 0% 0%, color-mix(in srgb, var(--c1) 45%, transparent), transparent 60%),
    radial-gradient(100% 120% at 100% 100%, color-mix(in srgb, var(--c2) 45%, transparent), transparent 60%),
    #0f172a;
  box-shadow: 0 8px 24px rgba(2, 6, 23, .22); transition: transform .15s, box-shadow .15s; }
a.live-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(2, 6, 23, .3); }
.lc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .75rem; color: rgba(255, 255, 255, .65); margin-bottom: 10px; }
.lc-team { display: flex; align-items: center; gap: 10px; padding: 5px 0; opacity: .7; }
.lc-team.batting { opacity: 1; }
.lc-name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-score { white-space: nowrap; }
.lc-score b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.lc-score small { color: rgba(255, 255, 255, .6); font-size: .78rem; }
.lc-yet { color: rgba(255, 255, 255, .55); font-size: .85rem; }
.lc-status { margin: 8px 0 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: .88rem; font-weight: 600; color: #fde68a; }
.lc-foot { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.lc-players { display: flex; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: rgba(255, 255, 255, .85); }
.lc-players b { color: #fff; margin-left: 3px; }
.lc-players small { opacity: .6; margin-left: 1px; }
.lc-bowler { color: rgba(255, 255, 255, .65); }
.lc-cta { margin-top: 12px; font-size: .8rem; font-weight: 700; color: #93c5fd; }
.live-card .ball { background: rgba(255, 255, 255, .14); color: #fff; }
.live-card .ball.r { background: rgba(255, 255, 255, .16); color: #fff; }
.live-card .ball.dot { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); }
.live-card .ball.s4 { background: #2563eb; } .live-card .ball.s6 { background: #7c3aed; }
.live-card .ball.w { background: #e11d48; } .live-card .ball.x { background: #f59e0b; color: #111; }

.bump { animation: bump 1.6s ease-out; border-radius: 6px; }
@keyframes bump { 0% { background: rgba(250, 204, 21, .55); } 100% { background: transparent; } }

/* ---------- footer ---------- */
footer.site { color: var(--muted); font-size: .82rem; text-align: center; padding: 20px 16px 32px; border-top: 1px solid var(--line); }
footer.site a { color: inherit; text-decoration: underline; }

/* ---------- forms (filters + admin) ---------- */
label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 9px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; }
input[type=checkbox] { width: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); margin-bottom: 12px; }
.check { display: flex; gap: 6px; align-items: center; font-size: .9rem; color: var(--text); font-weight: 400; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters select { width: auto; max-width: 100%; }

/* ---------- admin ---------- */
.admin-bar { background: var(--head); color: #fff; position: sticky; top: 0; z-index: 50; }
.admin-bar .wrap { display: flex; gap: 6px 18px; align-items: center; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.admin-bar .wrap::-webkit-scrollbar { display: none; }
.admin-bar a { color: #cbd5e1; font-weight: 600; white-space: nowrap; flex: none; padding: 2px 0; }
.admin-bar a.active, .admin-bar a:hover { color: #fff; text-decoration: none; }
.admin-bar a.active { box-shadow: inset 0 -2px 0 var(--accent); }
.admin-bar .brand { color: #fff; font-weight: 800; margin-right: auto; white-space: nowrap; flex: none; display: inline; }
.admin-sub { position: static; background: var(--soft); color: var(--text); border-bottom: 1px solid var(--line); }
.admin-sub .wrap { padding-top: 8px; padding-bottom: 8px; font-size: .92rem; }
.admin-sub a { color: var(--muted); }
.admin-sub a.active, .admin-sub a:hover { color: var(--text); }
.admin-sub .brand { color: inherit; margin-right: 10px; display: inline !important; }
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; background: #dcfce7; color: #14532d; }
.flash.err { background: #fee2e2; color: #7f1d1d; }
.innings { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.innings h3 { margin: 0 0 10px; font-size: .95rem; }
.perf input { padding: 6px; min-width: 52px; }
.perf input.name { min-width: 160px; }
.perf td { padding: 4px; }
.profile { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.profile h2 { margin: 0; }
@media (max-width: 560px) { .admin-bar .brand { display: none; } }

/* knockout slot placeholder + rest day */
.avatar.slot { background: var(--soft) !important; color: var(--muted); border: 1px dashed var(--line); box-shadow: none; font-size: calc(var(--s) * .45); }
.sb .avatar.slot { background: rgba(255, 255, 255, .08) !important; color: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .25); }
.rest-day { padding: 12px 16px; border-radius: var(--radius); border: 1px dashed var(--line); color: var(--muted); font-size: .88rem; text-align: center; background: var(--soft); }

/* visually hidden, still read by screen readers and search engines */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- videos ---------- */
.videos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.video { margin: 0; min-width: 0; }
.video .yt, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; border: 0; }
.video .yt img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s, opacity .25s; opacity: .92; }
.video .yt:hover img { transform: scale(1.03); opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 46px; margin: -23px 0 0 -32px; border-radius: 14px; background: rgba(225, 29, 72, .92); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.yt-play::after { content: ""; position: absolute; left: 26px; top: 14px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.video.lg .yt-play { width: 78px; height: 56px; margin: -28px 0 0 -39px; }
.video.lg .yt-play::after { left: 31px; top: 17px; border-width: 11px 0 11px 18px; }
.yt-badge { position: absolute; left: 12px; top: 12px; background: #e11d48; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; }
.video figcaption { padding: 8px 2px 0; min-width: 0; }
.video figcaption b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; line-height: 1.3; }
.video figcaption small { color: var(--muted); font-size: .78rem; }
.stream { margin: 0 0 16px; max-width: 880px; }
.stream .video figcaption b { font-size: 1rem; }

/* ---------- posts ---------- */
.posts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post { display: flex; flex-direction: column; padding: 0; }
.post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-body { padding: 14px 16px 16px; }
.post h3 { margin: 4px 0 6px; font-size: 1rem; line-height: 1.3; }
.post h3 a { color: var(--text); }
.post p, .post-text { margin: 0; color: var(--muted); font-size: .9rem; }
.post-matches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.video .post-matches { margin-top: 6px; }
.post-matches a, .post-matches span { font-size: .8rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.post-matches a:hover { text-decoration: underline; }
.post-text { color: var(--text); white-space: normal; }

/* ---------- match report ---------- */
.report { margin-top: 16px; }
.report-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.report-h h2 { margin: 0; }
.report p { margin: 10px 0 0; line-height: 1.6; }
.report p.lede { font-size: 1.04rem; font-weight: 600; }

/* answer-first summary line (quoted by search and AI engines) */
.answer { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 10px 10px 0; font-size: .95rem; box-shadow: var(--shadow); }
.answer time { font-weight: 700; }
/* FAQ */
.faq { padding: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 12px; font-size: 1.2rem; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 16px 14px; color: var(--muted); line-height: 1.55; }

/* ===================================================================== */
/*  Watch panel (match stream / replay)                                  */
/* ===================================================================== */
.watch { border-radius: 18px; overflow: hidden; background: #060b16; color: #fff; box-shadow: 0 14px 40px rgba(2, 6, 23, .32); border: 1px solid rgba(255, 255, 255, .06); margin-bottom: 16px; }
.watch a { color: inherit; }
.watch-head { display: flex; align-items: center; gap: 12px; padding: 11px 14px 11px 16px; background: linear-gradient(180deg, #121c33, #0b1120); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.watch-kind { font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .1); padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.watch-title { min-width: 0; flex: 1; line-height: 1.25; }
.watch-title b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.watch-title small { display: block; color: rgba(255, 255, 255, .55); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-yt { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .8rem; padding: 7px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); white-space: nowrap; transition: background .15s; }
.watch-yt:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }
.yt-logo { position: relative; width: 22px; height: 16px; border-radius: 4px; background: #ff0033; flex: none; }
.yt-logo::after { content: ""; position: absolute; left: 8px; top: 4px; border-style: solid; border-width: 4px 0 4px 7px; border-color: transparent transparent transparent #fff; }

.watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; }
.watch-player { position: relative; background: #000; aspect-ratio: 16 / 9; }
.watch .video { margin: 0; height: 100%; }
.watch .video .yt, .watch .video iframe { border-radius: 0; height: 100%; width: 100%; aspect-ratio: auto; }
.watch .video .yt img { opacity: .85; }
.watch .video .yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .45)); pointer-events: none; }

.watch-side { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #0b1120; border-left: 1px solid rgba(255, 255, 255, .06); font-size: .88rem; min-width: 0; }
@media (max-width: 980px) {
  .watch-grid { grid-template-columns: 1fr; }
  .watch-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .06); }
  .watch-side.hide-mobile { display: none; }
}
@media (max-width: 560px) { .watch { border-radius: 14px; margin-left: -4px; margin-right: -4px; } .watch-head { padding: 10px 12px; } }
.ws-score { display: flex; gap: 12px; align-items: center; }
.ws-score small { display: block; color: rgba(255, 255, 255, .6); font-size: .75rem; }
.ws-score b { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-right: 6px; line-height: 1.1; }
.ws-score span { color: rgba(255, 255, 255, .65); font-size: .82rem; }
.ws-status, .ws-result { color: #fde68a; font-weight: 700; background: rgba(255, 255, 255, .06); padding: 9px 11px; border-radius: 10px; }
.ws-rows { display: grid; gap: 7px; }
.ws-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 46px; gap: 8px; align-items: baseline; }
.ws-row span { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ws-row b { font-variant-numeric: tabular-nums; }
.ws-row small { color: rgba(255, 255, 255, .5); text-align: right; font-variant-numeric: tabular-nums; }
.ws-row.bowl span { color: rgba(255, 255, 255, .7); }
.ws-row.won b { color: #fbbf24; }
.ws-row .avatar { flex: none; }
.ws-label, .ws-over small, .ws-pom small { display: block; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 4px; }
.ws-pom b { font-size: 1rem; }
.ws-note { margin: 0; color: rgba(255, 255, 255, .7); }
.ws-more { margin-top: auto; color: #93c5fd !important; font-weight: 700; font-size: .85rem; }
.watch .ball { background: rgba(255, 255, 255, .14); color: #fff; }
.watch .ball.dot { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); }
.watch .ball.s4 { background: #2563eb; } .watch .ball.s6 { background: #7c3aed; }
.watch .ball.w { background: #e11d48; } .watch .ball.x { background: #f59e0b; color: #111; }

/* docked mini player: the video stays in place in the DOM, only its position changes, so it keeps playing */
.watch-player.is-docked::after { content: "Playing in the mini player"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .6); font-size: .9rem; font-weight: 600; background: radial-gradient(circle, #111a2e, #000); }
.watch .video.docked { position: fixed; right: 16px; bottom: 16px; width: min(380px, calc(100vw - 32px)); height: auto; aspect-ratio: 16 / 9; z-index: 90; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 18px 44px rgba(0, 0, 0, .5); animation: dockin .25s ease-out; }
.watch .video.docked iframe { height: 100%; }
@keyframes dockin { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.dock-close { position: absolute; top: 6px; right: 6px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .72); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.dock-close:hover { background: #000; }
@media (max-width: 560px) { .watch .video.docked { right: 10px; bottom: 10px; width: min(300px, calc(100vw - 20px)); } }

/* Videos & News list pages */
.list-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 16px 0; }
.list-bar .seg { margin: 0; flex: 1 1 auto; min-width: 0; }
.list-bar .seg small { opacity: .7; font-weight: 600; margin-left: 2px; }
.list-filter select { min-width: 200px; max-width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; }
@media (max-width: 560px) { .list-filter, .list-filter select { width: 100%; } }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 20px 0 4px; }

/* Past seasons (/season-N/) */
.archive-note { background: var(--brand-soft); color: var(--text); }
.archive-note a { font-weight: 700; }
.champ-link { display: inline-block; margin-top: 8px; font-size: .85rem; font-weight: 700; }

/* Season switcher (header) */
.top-bar .live-badge + .season-pick, .season-pick { margin-left: auto; }
.top-bar .live-badge:not([hidden]) + .season-pick { margin-left: 8px; }
.season-pick { position: relative; flex: none; }
.season-pick summary { list-style: none; cursor: pointer; color: #fff; font-weight: 700; font-size: .85rem; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; white-space: nowrap; }
.season-pick summary::-webkit-details-marker { display: none; }
.season-pick summary::after { content: " ▾"; opacity: .7; }
.season-pick[open] summary { background: rgba(255, 255, 255, .12); }
.season-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 190px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); padding: 6px; }
.season-menu a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: .9rem; }
.season-menu a:hover { background: var(--soft); text-decoration: none; }
.season-menu a.active { background: var(--brand-soft); color: var(--brand); }
.season-menu small { font-size: .72rem; color: var(--muted); font-weight: 600; }

/* All-time tables: this season's row, totals row */
tr.hl td { background: var(--brand-soft); }
tr.total td { border-top: 2px solid var(--line); font-weight: 700; background: var(--soft); }

/* All-seasons pages: one heading per season */
.season-group { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.season-group a { margin-left: auto; font-size: .85rem; text-transform: none; letter-spacing: 0; }

/* Team picker on the team page (same menu as the season switcher, on the light background) */
.crumb-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.crumb-bar .crumb { margin-bottom: 0; }
.team-pick summary { display: flex; align-items: center; gap: 8px; color: var(--text); background: var(--card); border-color: var(--line); box-shadow: var(--shadow); padding: 6px 12px 6px 6px; font-size: .88rem; max-width: 70vw; }
.team-pick summary span { overflow: hidden; text-overflow: ellipsis; }
.team-pick[open] summary { background: var(--soft); }
.team-pick .season-menu { min-width: 260px; max-height: min(70vh, 520px); overflow-y: auto; }
.team-pick .pick-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.season-menu .menu-head { padding: 8px 12px 4px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* Written player profile */
.profile-text { margin-top: 16px; }
.profile-text p { margin: 0 0 10px; line-height: 1.6; }
.profile-text p.lede { font-weight: 600; }
.profile-text .profile-more { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }

/* Player stat tables (batting / bowling / fielding) */
.stat-table { margin-top: 14px; }
.stat-table th, .stat-table td { white-space: nowrap; }
.table-note { font-size: .82rem; margin: 10px 2px 0; }

/* All cricket (CricHeroes) on the player page */
.tour-list { list-style: none; margin: 0; padding: 0 16px 8px; }
.tour-list li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.tour-list li:last-child { border-bottom: 0; }
.tour-list small { margin-left: 4px; }
.tour-more summary { cursor: pointer; padding: 8px 16px; font-weight: 600; font-size: .88rem; color: var(--brand); }

/* /leagues */
.league-card h2 { margin: 0 0 4px; font-size: 1.1rem; }
.league-card p { margin: 6px 0; font-size: .9rem; }
.league-facts { display: flex; gap: 10px; margin: 12px 0; }
.league-facts div { flex: 1; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.league-facts b { display: block; font-size: 1.2rem; }
.league-facts small { color: var(--muted); font-size: .75rem; }
.league-card .actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* Records (as on ESPNcricinfo) */
.rec-grid { margin-top: 4px; }
.rec-card .card-h h2 { font-size: .95rem; }
.rec-card .card-h a { color: var(--text); }
.rec-top { list-style: none; counter-reset: r; margin: 0; padding: 0 16px 6px; }
.rec-top li { counter-increment: r; display: flex; align-items: baseline; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.rec-top li:last-child { border-bottom: 0; }
.rec-top li::before { content: counter(r); width: 1.2em; color: var(--muted); font-size: .8rem; font-weight: 700; }
.rec-top .rec-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-top b { font-variant-numeric: tabular-nums; }
.rec-table td, .rec-table th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rec-seg { flex-wrap: nowrap; }
.rec-filter { margin-top: 0; flex-wrap: nowrap; }

/* Portal (/) */
.portal-banner h1 { font-size: clamp(1.4rem, 4vw, 2rem); }
.season-list { list-style: none; margin: 8px 0; padding: 0; }
.season-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.season-list li:last-child { border-bottom: 0; }

/* Front page, laid out like ESPNcricinfo's */
.cx-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: 4px -2px 14px; scrollbar-width: thin; }
.cx-card { flex: 0 0 236px; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--text); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 5px; }
.cx-card:hover { text-decoration: none; border-color: var(--brand); }
.cx-card.is-live { border-color: var(--live); }
.cx-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-side { display: flex; align-items: center; gap: 7px; font-size: .9rem; }
.cx-side b { flex: 1; }
.cx-side span { font-variant-numeric: tabular-nums; font-weight: 700; }
.cx-side span small { color: var(--muted); font-weight: 500; }
.cx-side.lost { opacity: .62; }
.cx-status { font-size: .76rem; color: var(--muted); line-height: 1.3; min-height: 2.6em; }
.cx-live { color: var(--live); font-weight: 800; }
.cx-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .cx-layout { grid-template-columns: minmax(0, 1fr); } }
.cx-main > * + * { margin-top: 14px; }
.cx-side-col { display: flex; flex-direction: column; gap: 14px; }
.cx-lead { padding: 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.cx-lead img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; display: block; }
.cx-lead-teams { display: flex; align-items: center; justify-content: center; gap: 16px; background: var(--soft); min-height: 200px; font-weight: 800; color: var(--muted); }
.cx-lead-body { padding: 18px; }
.cx-lead h2 { margin: 6px 0 8px; font-size: 1.3rem; line-height: 1.25; }
.cx-lead h2 a, .cx-story h3 a { color: var(--text); }
.cx-lead p { margin: 0 0 8px; color: var(--muted); }
@media (max-width: 640px) { .cx-lead { grid-template-columns: 1fr; } .cx-lead img { min-height: 170px; max-height: 220px; } }
.cx-kicker { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); }
.cx-stories { padding: 4px 16px; }
.cx-story { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cx-story:last-child { border-bottom: 0; }
.cx-story img { width: 110px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
/* Team logos in a story without a photo: logo size, not the photo rules above. */
.cx-lead .avatar img, .cx-story .avatar img { width: 100%; height: 100%; min-height: 0; border-radius: 0; object-fit: contain; }
.cx-story-teams { width: 110px; height: 72px; flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--soft); border-radius: 8px; }
.cx-story h3 { margin: 3px 0 4px; font-size: .98rem; line-height: 1.3; }
.cx-story p { margin: 0; color: var(--muted); font-size: .86rem; }
.cx-results td { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.cx-results small { display: block; }
.cx-res { display: block; font-size: .85rem; color: var(--muted); }
.cx-series { list-style: none; margin: 0; padding: 0 16px 8px; }
.cx-series li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.cx-series li:last-child { border-bottom: 0; }
.cx-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-right: 6px; }
.cx-mini { width: 100%; font-size: .86rem; table-layout: fixed; } /* long team names wrap, the numbers stay in view */
.cx-mini th:not(.l), .cx-mini td:not(.l) { width: 44px; padding-left: 4px; padding-right: 4px; text-align: center; }
.cx-mini th:last-child, .cx-mini td:last-child { padding-right: 16px; width: 56px; }
.cx-mini td.l { white-space: normal; overflow-wrap: anywhere; }
.cx-mini th, .cx-mini td { padding: 6px 16px; }
.cx-mini th { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.res-item .cx-kicker { margin: 0 0 4px 2px; }
.scope-toggle { margin: -8px 0 12px; font-size: .9rem; }

/* Tournament logos (imported tournaments, from CricHeroes) */
.banner.with-logo { position: relative; padding-left: 110px; }
.banner-logo { position: absolute; left: 22px; top: 22px; width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: #fff; }
@media (max-width: 560px) { .banner.with-logo { padding-left: 22px; } .banner-logo { position: static; width: 56px; height: 56px; margin-bottom: 8px; } }
.brand-logo { object-fit: cover; background: #fff; padding: 0; }
.league-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; vertical-align: middle; margin-right: 10px; }
.series-logo { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; vertical-align: -4px; margin-right: 7px; }
.edition-links { display: flex; flex-wrap: wrap; gap: 6px; }
.edition-links a { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .85rem; }
.edition-links a:hover { text-decoration: none; border-color: var(--accent); }
.page-head h1 .h1-pre { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); margin-bottom: 2px; }
