/* ==========================================================================
   Cricket Live — design system
   Light, airy "sports app" look: soft blue-grey canvas, white cards, vivid
   blue primary, colour-coded ball outcomes. Mobile-first; becomes a
   sidebar + multi-column layout on desktop. Dark theme via [data-theme].
   ========================================================================== */

:root {
  --bg: #F3F6FB;
  --bg-2: #EAF0F9;
  --card: #FFFFFF;
  --card-2: #F7F9FD;
  --ink: #0B1530;
  --ink-2: #33415C;
  --mute: #6B7A90;
  --mute-2: #94A3B8;
  --line: #E4EAF3;
  --line-2: #EEF2F8;

  --pri: #2563EB;
  --pri-2: #3B82F6;
  --pri-3: #60A5FA;
  --pri-ink: #1D4ED8;
  --pri-soft: #EAF1FF;
  --pri-soft-2: #DCE8FF;

  --live: #EF3B3B;
  --live-soft: #FFECEC;
  --green: #16A34A;
  --green-2: #22C55E;
  --green-soft: #E7F7EE;
  --orange: #F97316;
  --orange-soft: #FFF1E6;
  --purple: #7C3AED;
  --purple-soft: #F1EAFE;
  --amber: #D97706;
  --amber-soft: #FEF3C7;
  --pink: #EC4899;
  --pink-soft: #FDE8F3;

  --r-xl: 24px;
  --r-lg: 20px;
  --r: 16px;
  --r-sm: 12px;
  --r-xs: 8px;

  --sh-1: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px -2px rgba(15, 23, 42, .06);
  --sh-2: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -10px rgba(15, 23, 42, .14);
  --sh-pri: 0 10px 24px -10px rgba(37, 99, 235, .55);

  --tabbar-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --script: 'Caveat', 'Segoe Script', cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0A1020;
  --bg-2: #0F172A;
  --card: #121A2E;
  --card-2: #172139;
  --ink: #EEF3FF;
  --ink-2: #C8D3E8;
  --mute: #8C9AB5;
  --mute-2: #64748B;
  --line: #1F2A44;
  --line-2: #1A2440;
  --pri-soft: #15254A;
  --pri-soft-2: #1C3163;
  --live-soft: #3A1520;
  --green-soft: #0F2E21;
  --orange-soft: #36210F;
  --purple-soft: #261A44;
  --amber-soft: #33270C;
  --pink-soft: #3A1530;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .3);
  --sh-2: 0 12px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-y: scroll;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow-x: clip;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.ms {
  font-family: 'Material Symbols Rounded';
  font-weight: normal; font-style: normal; font-size: 22px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap;
  direction: ltr; -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}
.ms.fill { font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }
:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--pri-soft-2); }

/* ------------------------------------------------------------------ shell */
.app {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
}
.stage {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--safe-t) + 6px) 14px calc(var(--tabbar-h) + var(--safe-b) + 20px);
  outline: none;
  box-sizing: border-box;
  min-width: 0;
  overflow-x: clip;
}
.stage.no-tabbar { padding-bottom: calc(var(--safe-b) + 28px); }
.view-enter { animation: viewIn .35s var(--ease); width: 100%; max-width: 100%; min-width: 0; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* bottom tab bar (firmly locked to viewport bottom) */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100vw;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding: 6px 4px var(--safe-b);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: color-mix(in srgb, var(--card) 96%, transparent);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 22px rgba(15, 23, 42, .12);
  z-index: 9999;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0;
}
.tab-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--mute); font-size: 11px; font-weight: 600; position: relative; border-radius: 14px;
  transition: color .2s; min-width: 0; width: 100%; overflow: hidden;
}
.tab-btn span:not(.ms):not(.tb-dot) {
  font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.tab-btn .ms { font-size: 24px; transition: transform .25s var(--ease); }
.tab-btn.active { color: var(--pri); }
.tab-btn.active .ms { font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24; transform: translateY(-1px); }
.tab-btn.active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--pri);
}
.tab-btn .tb-dot {
  position: absolute; top: 6px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 9px; background: var(--live); color: #fff; font-size: 10px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--card);
}

/* desktop rail */
.rail { display: none; }

/* ------------------------------------------------------------------ type + headers */
.top-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 2px 14px; width: 100%; max-width: 100%; box-sizing: border-box; min-width: 0;
}
.sync-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: 11px; font-weight: 800;
  color: var(--ink-2); letter-spacing: .3px; text-transform: uppercase; user-select: none;
}
.sync-pill .sync-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, .25); animation: pulseDot 2s infinite;
}
.sync-pill.syncing .sync-dot { background: var(--pri); animation: pulseDot .6s infinite; }
button.syncing .ms, .syncing .ms { animation: spinSync .8s linear infinite; }
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .65; } }
@keyframes spinSync { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.logo-type { display: flex; align-items: center; min-width: 0; flex-shrink: 0; cursor: pointer; }
.top-app-icon { width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; object-fit: cover; box-shadow: 0 4px 14px rgba(37, 99, 235, .25); transition: transform .15s ease; }
.top-app-icon:active { transform: scale(.94); }
.db-app-icon { width: 58px; height: 58px; border-radius: 16px; flex-shrink: 0; object-fit: cover; box-shadow: 0 6px 18px rgba(37, 99, 235, .3); position: relative; z-index: 1; }
.top-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: var(--card); box-shadow: var(--sh-1); color: var(--ink-2);
  border: 1px solid var(--line-2); flex-shrink: 0;
  transition: transform .15s, background .2s;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn .ms { font-size: 22px; }
.icon-btn .dot {
  position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 0 2px var(--card);
}
.icon-btn.flat { background: transparent; box-shadow: none; border-color: transparent; }
.icon-btn.on { color: var(--pri); background: var(--pri-soft); }

.page-h {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding: 10px 2px 14px; width: 100%; max-width: 100%; box-sizing: border-box; min-width: 0;
}
.page-h > div:first-child { min-width: 0; flex: 1 1 180px; overflow: hidden; }
.page-h .row { min-width: 0; flex: 1; overflow: hidden; }
.page-h .row > div { min-width: 0; flex: 1; overflow: hidden; }
.page-h .row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.page-h .row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.page-h h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-h p { margin: 2px 0 0; color: var(--mute); font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sec-h { display: flex; align-items: center; justify-content: space-between; margin: 24px 2px 12px; width: 100%; box-sizing: border-box; }
.sec-h h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.3px; display: flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-h h2 .count { font-size: 12px; color: var(--mute); font-weight: 700; flex-shrink: 0; }
.see-all { color: var(--pri); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; }
.see-all .ms { font-size: 18px; }

/* ------------------------------------------------------------------ chips & segmented */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; margin: 0; width: 100%; max-width: 100%; -webkit-overflow-scrolling: touch; box-sizing: border-box; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px;
  border-radius: 999px; background: var(--card); color: var(--ink-2); font-weight: 700; font-size: 13px;
  border: 1px solid var(--line); transition: all .2s var(--ease); white-space: nowrap;
}
.chip .ms { font-size: 18px; }
.chip b {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 11px;
  display: inline-grid; place-items: center; background: var(--pri-soft); color: var(--pri);
}
.chip.active { background: var(--pri); color: #fff; border-color: var(--pri); box-shadow: var(--sh-pri); }
.chip.active b { background: #fff; color: var(--pri); }
.chip.sm { height: 32px; padding: 0 13px; font-size: 12.5px; }

.seg {
  display: flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; overflow-x: auto; scrollbar-width: none; width: 100%; max-width: 100%; -webkit-overflow-scrolling: touch; box-sizing: border-box;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex: 1 0 auto; height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 13px;
  color: var(--mute); white-space: nowrap; transition: all .2s var(--ease);
}
.seg button.active { background: var(--pri); color: #fff; box-shadow: var(--sh-pri); }
.seg.soft button.active { background: var(--pri-soft); color: var(--pri); box-shadow: none; }

/* ------------------------------------------------------------------ badges */
.live-badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 7px; background: var(--live); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .6px;
  box-shadow: 0 6px 14px -6px rgba(239, 59, 59, .8);
}
.live-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff;
  animation: pulse 1.4s infinite;
}
.live-badge.sm { height: 20px; padding: 0 7px; font-size: 10px; border-radius: 6px; gap: 5px; }
.live-badge.sm::before { width: 6px; height: 6px; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 6px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .3px; background: var(--pri-soft); color: var(--pri);
  text-transform: uppercase;
}
.tag.gray { background: var(--line-2); color: var(--mute); }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.orange { background: var(--orange-soft); color: var(--orange); }
.tag.red { background: var(--live-soft); color: var(--live); }
.tag.purple { background: var(--purple-soft); color: var(--purple); }
.glass {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px;
  background: rgba(10, 18, 40, .45); color: #fff; font-size: 11.5px; font-weight: 700;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .14);
}
.glass .ms { font-size: 16px; }

/* ------------------------------------------------------------------ team logos */
.tlogo {
  --s: 34px;
  width: var(--s); height: var(--s); border-radius: 50%; flex: none; position: relative;
  display: grid; place-items: center; overflow: hidden;
  background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 3px 8px -3px rgba(15, 23, 42, .2);
}
.tlogo img { width: 100%; height: 100%; object-fit: cover; }
.tlogo.init {
  color: #fff; font-weight: 800; font-size: calc(var(--s) * .34); letter-spacing: -.3px;
  background: linear-gradient(135deg, hsl(var(--h) 72% 54%), hsl(calc(var(--h) + 34) 70% 40%));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 4px 10px -4px hsl(var(--h) 60% 30% / .6);
}
.tlogo.xs { --s: 22px; }
.tlogo.sm { --s: 28px; }
.tlogo.lg { --s: 44px; }
.tlogo.xl { --s: 56px; }
.tlogo.xxl { --s: 64px; }

/* player avatars (initials) */
.avatar {
  --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: calc(var(--s) * .36);
  background: linear-gradient(140deg, hsl(var(--h) 65% 58%), hsl(calc(var(--h) + 40) 62% 42%));
  box-shadow: 0 0 0 3px var(--card), 0 6px 14px -6px hsl(var(--h) 60% 30% / .7);
  position: relative;
}
.avatar.sm { --s: 32px; }
.avatar.lg { --s: 48px; }
.avatar .ms {
  position: absolute; right: -4px; bottom: -4px; font-size: 14px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--card);
}

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  border: 1px solid var(--line-2); padding: 16px;
  overflow: hidden; width: 100%; max-width: 100%; box-sizing: border-box; min-width: 0;
}
.card + .card { margin-top: 12px; }
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; min-width: 0; flex-wrap: wrap; }
.card-h h3 { margin: 0; font-size: 14.5px; font-weight: 800; letter-spacing: -.2px; display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-h h3 .ms { font-size: 19px; color: var(--pri); flex-shrink: 0; }
.card-h .sub { color: var(--mute); font-size: 12px; font-weight: 600; flex-shrink: 0; }
.grid { display: grid; gap: 12px; width: 100%; max-width: 100%; box-sizing: border-box; }
.stack > * + * { margin-top: 12px; }

/* ------------------------------------------------------------------ hero carousel */
.hero { position: relative; margin: 14px 0 4px; width: 100%; max-width: 100%; overflow: hidden; box-sizing: border-box; }
.hero-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--r-xl); scroll-behavior: smooth; width: 100%; max-width: 100%; box-sizing: border-box;
}
.hero-track::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 100%; width: 100%; max-width: 100%; min-width: 0;
  scroll-snap-align: center; aspect-ratio: 16 / 10.4; min-height: 200px;
  border-radius: var(--r-xl); overflow: hidden; color: #fff; isolation: isolate; display: block;
  box-shadow: var(--sh-2); background: #0b1a3a; box-sizing: border-box;
}
.slide-bg {
  position: absolute; inset: 0; background-size: cover; background-position: var(--pos, 30% 40%); z-index: -2;
  transform: scale(1.04); transition: transform 6s linear;
}
.slide.in-view .slide-bg { transform: scale(1.12); }
.slide::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 12, 32, .05) 0%, rgba(5, 12, 32, .15) 35%, rgba(5, 12, 32, .82) 78%, rgba(5, 12, 32, .92) 100%),
    linear-gradient(90deg, rgba(5, 12, 32, .35), transparent 60%);
}
.slide-top {
  position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; align-items: center;
  max-width: calc(100% - 24px); overflow: hidden; min-width: 0; z-index: 4;
}
.slide-top .glass { margin-left: auto; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1; }
.slide-body {
  position: absolute; left: 14px; right: 142px; bottom: 14px;
  max-width: calc(100% - 156px); overflow: hidden; min-width: 0; z-index: 3;
}
.slide-logos { display: flex; margin-bottom: 8px; }
.slide-logos .tlogo + .tlogo { margin-left: -8px; }
.slide h2 {
  margin: 0; font-size: clamp(18px, 5.2vw, 26px); line-height: 1.15; font-weight: 800; letter-spacing: -.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35); word-break: break-word; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.slide .s-score { margin: 6px 0 0; font-weight: 800; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.slide .s-score span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slide .s-score small { font-weight: 600; opacity: .75; }
.slide .s-status { margin: 4px 0 0; font-size: 12px; font-weight: 600; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide .s-count { margin-top: 8px; display: inline-flex; gap: 6px; }
.slide .s-count span { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .2); border-radius: 8px; padding: 4px 8px; font-weight: 800; font-size: 13px; backdrop-filter: blur(6px); }
.slide .s-count small { display: block; font-size: 9px; font-weight: 700; opacity: .75; text-transform: uppercase; letter-spacing: .5px; }

/* hero watch live button: firmly pinned to bottom-right of slide, never overlapping slide-top */
.hero-watch-btn {
  position: absolute; right: 14px; bottom: 14px; z-index: 5;
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 15px;
  border-radius: 999px; background: linear-gradient(135deg, #10B981, #059669);
  color: #fff; font-size: 13px; font-weight: 800; border: 0; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 0 1.5px rgba(255, 255, 255, .3);
  transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap;
}
.hero-watch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .55), 0 0 0 2px rgba(255, 255, 255, .4);
}
.hero-watch-btn:active { transform: scale(.95); }
.hero-watch-btn .ms { font-size: 20px; }
.hero-watch-btn.upcoming {
  background: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .3); box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
@media (max-width: 420px) {
  .hero-watch-btn {
    height: 34px; padding: 0 10px; font-size: 12px; gap: 4px; right: 10px; bottom: 10px;
  }
  .hero-watch-btn .ms { font-size: 17px; }
  .slide-body {
    left: 10px; right: 115px; bottom: 10px; max-width: calc(100% - 125px);
  }
}

.play-btn {
  position: absolute; right: 14px; bottom: 16px; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: #ffffff !important;
  color: #1D4ED8 !important;
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .6), 0 0 0 2px rgba(255, 255, 255, .4);
  transition: transform .2s var(--ease), box-shadow .2s;
  flex-shrink: 0;
  z-index: 5;
}
.play-btn::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6);
  animation: ring 2s infinite; pointer-events: none;
}
@keyframes ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.play-btn .ms {
  font-size: 32px; font-variation-settings: 'FILL' 1;
  color: #1D4ED8 !important;
  fill: #1D4ED8 !important;
  display: block;
}
.play-btn:active { transform: scale(.92); }
[data-theme="dark"] .play-btn {
  background: #2563EB !important;
  color: #ffffff !important;
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .8), 0 0 0 2px rgba(59, 130, 246, .5);
}
[data-theme="dark"] .play-btn .ms {
  color: #ffffff !important;
  fill: #ffffff !important;
}
[data-theme="dark"] .play-btn::before {
  border-color: rgba(96, 165, 250, .6);
}
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dots button { width: 7px; height: 7px; border-radius: 4px; background: var(--mute-2); opacity: .45; transition: all .3s var(--ease); }
.dots button.active { width: 22px; background: var(--pri); opacity: 1; }

/* ------------------------------------------------------------------ match cards */
.cards { display: grid; gap: 12px; width: 100%; max-width: 100%; box-sizing: border-box; }
.cards.auto { grid-template-columns: minmax(0, 1fr); width: 100%; }
.mcard {
  display: block; background: var(--card); border-radius: var(--r-lg); padding: 14px 14px 12px;
  border: 1px solid var(--line-2); box-shadow: var(--sh-1); position: relative;
  transition: transform .2s var(--ease), box-shadow .2s; width: 100%; max-width: 100%;
  box-sizing: border-box; overflow: hidden; min-width: 0;
}
.mcard:active { transform: scale(.985); }
@media (hover: hover) { .mcard:hover { box-shadow: var(--sh-2); transform: translateY(-2px); } }
.mc-head { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--mute); margin-bottom: 10px; min-width: 0; width: 100%; overflow: hidden; }
.mc-head .fmt { color: var(--ink-2); font-weight: 800; flex-shrink: 0; }
.mc-head .series { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.mc-head .sep { opacity: .5; flex-shrink: 0; }
.mc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 4px;
  background: var(--card-2);
  border: 1px solid transparent;
  transition: all .15s ease;
}
.mc-row.active-bat {
  background: var(--pri-soft);
  border-color: rgba(37, 99, 235, .25);
}
.mc-row.dim {
  opacity: .75;
}
.mc-team-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.mc-team-info .t-short {
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: -.2px;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.mc-team-info .t-name {
  color: var(--mute);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .mc-team-info .t-name { display: none; }
}
.mc-role-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.mc-role-badge.bat {
  background: rgba(37, 99, 235, .15);
  color: #2563EB;
  border: 1px solid rgba(37, 99, 235, .2);
}
.mc-role-badge.bowl {
  background: rgba(16, 185, 129, .15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, .2);
}
.mc-role-badge.break {
  background: rgba(245, 158, 11, .15);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, .2);
}
[data-theme="dark"] .mc-role-badge.bat {
  background: rgba(59, 130, 246, .22);
  color: #93C5FD;
  border-color: rgba(59, 130, 246, .35);
}
[data-theme="dark"] .mc-role-badge.bowl {
  background: rgba(16, 185, 129, .22);
  color: #6EE7B7;
  border-color: rgba(16, 185, 129, .35);
}
[data-theme="dark"] .mc-role-badge.break {
  background: rgba(245, 158, 11, .22);
  color: #FCD34D;
  border-color: rgba(245, 158, 11, .35);
}

.mc-score-info {
  display: flex;
  align-items: baseline;
  gap: 5px;
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}
.mc-score-info .t-score {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.3px;
  color: var(--ink);
}
.mc-score-info .t-ov {
  font-size: 11px;
  font-weight: 600;
  color: var(--mute);
}
.mc-score-info .yet {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--mute);
}

.mc-target-bar {
  margin: 7px 0 3px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .2);
  color: var(--pri);
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[data-theme="dark"] .mc-target-bar {
  background: rgba(37, 99, 235, .18);
  border-color: rgba(59, 130, 246, .3);
  color: #93C5FD;
}

.hero-role-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
  white-space: nowrap;
}
.hero-role-pill.bat { background: rgba(37, 99, 235, .25); color: #93C5FD; }
.hero-role-pill.bowl { background: rgba(16, 185, 129, .25); color: #6EE7B7; }

.sh-role-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 5px;
  display: inline-block;
}
.sh-role-badge.bat { background: rgba(37, 99, 235, .15); color: #2563EB; }
.sh-role-badge.bowl { background: rgba(16, 185, 129, .15); color: #059669; }

.mc-status {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-status .ms { font-size: 15px; flex-shrink: 0; color: var(--mute); }
.mc-status.info { color: var(--pri); }
.mc-status.warn { color: var(--orange); }
.mc-status.mute { color: var(--mute); }
.mc-flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { background: var(--pri-soft-2); } 100% { background: var(--card); } }

/* upcoming card */
.ucard {
  display: block; background: var(--card); border-radius: var(--r-lg); padding: 14px; border: 1px solid var(--line-2);
  box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s; width: 100%; max-width: 100%;
  box-sizing: border-box; overflow: hidden; min-width: 0;
}
@media (hover: hover) { .ucard:hover { box-shadow: var(--sh-2); transform: translateY(-2px); } }
.uc-when { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--mute); min-width: 0; }
.uc-when .cd { color: var(--orange); background: var(--orange-soft); padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.uc-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 10px; width: 100%; box-sizing: border-box; }
.uc-mid { text-align: center; min-width: 0; overflow: hidden; }
.uc-mid b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-mid small { display: block; color: var(--mute); font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-foot { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--mute); font-weight: 600; display: flex; gap: 6px; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.uc-foot .ms { font-size: 15px; flex-shrink: 0; }

/* series group header in lists */
.series-h { display: flex; align-items: center; gap: 8px; margin: 18px 4px 8px; font-size: 12px; font-weight: 800; color: var(--ink-2); text-transform: uppercase; letter-spacing: .4px; width: 100%; box-sizing: border-box; overflow: hidden; }
.series-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.series-h .ms { font-size: 16px; color: var(--pri); flex-shrink: 0; }

/* ------------------------------------------------------------------ desktop banner (home) */
.desk-banner { display: none; }

/* ------------------------------------------------------------------ search */
.search {
  display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); margin-bottom: 12px;
}
.search .ms { color: var(--mute); }
.search input { flex: 1; border: 0; outline: 0; background: none; font-weight: 600; min-width: 0; }
.search input::placeholder { color: var(--mute-2); }

/* ------------------------------------------------------------------ empty + skeleton */
.empty {
  text-align: center; padding: 40px 20px; color: var(--mute); background: var(--card); border-radius: var(--r-lg);
  border: 1px dashed var(--line);
}
.empty .ms { font-size: 44px; color: var(--pri-3); display: block; margin: 0 auto 8px; }
.empty p { margin: 0; font-weight: 700; color: var(--ink-2); }
.empty small { display: block; margin-top: 4px; font-weight: 600; }
.sk { background: linear-gradient(90deg, var(--line-2) 0%, var(--card-2) 40%, var(--line-2) 80%); background-size: 300% 100%; animation: shimmer 1.3s infinite linear; border-radius: 10px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk-card { height: 128px; border-radius: var(--r-lg); }
.sk-hero { aspect-ratio: 16 / 10.4; border-radius: var(--r-xl); }

/* ------------------------------------------------------------------ match center header */
.mhdr {
  position: sticky; top: 0; z-index: 30; margin: 0 0 8px 0; padding: calc(var(--safe-t) + 8px) 4px 10px;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  width: 100%; max-width: 100%; box-sizing: border-box; min-width: 0;
}
.mhdr .tt { text-align: center; min-width: 0; overflow: hidden; }
.mhdr .tt b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mhdr .tt small { display: block; color: var(--mute); font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mhdr .acts { display: flex; gap: 6px; flex-shrink: 0; }
.mhdr .icon-btn { width: 38px; height: 38px; }
.mtabs { position: sticky; top: calc(var(--safe-t) + 58px); z-index: 29; margin: 0 0 14px 0; padding: 2px 0 8px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); width: 100%; max-width: 100%; box-sizing: border-box; }

/* ------------------------------------------------------------------ score hero */
.score-hero {
  position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff; padding: 16px 16px 0;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(96, 165, 250, .55) 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(14, 165, 233, .35) 0%, transparent 60%),
    linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 45%, #2563EB 100%);
  box-shadow: 0 18px 40px -18px rgba(29, 78, 216, .7);
  isolation: isolate; width: 100%; max-width: 100%; box-sizing: border-box;
}
.score-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .18;
  background: url('assets/hero.jpg') center 30% / cover;
  mix-blend-mode: luminosity;
}
.score-hero::after {
  content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; z-index: -1; border-radius: 50%;
  border: 36px solid rgba(255, 255, 255, .05); pointer-events: none;
}
.sh-top { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; min-width: 0; overflow: hidden; }
.sh-top .ov { opacity: .9; }
.sh-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; margin: 14px 0 14px; width: 100%; box-sizing: border-box; }
.sh-team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-width: 0; overflow: hidden; }
.sh-team .nm { font-weight: 800; font-size: 13.5px; letter-spacing: .3px; display: flex; align-items: center; gap: 4px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-team .nm .ms { font-size: 15px; color: #FDBA74; flex-shrink: 0; }
.sh-team .sc { font-size: clamp(22px, 6vw, 30px); font-weight: 800; letter-spacing: -1px; line-height: 1; white-space: nowrap; }
.sh-team .sc.dim { font-size: 15px; opacity: .65; letter-spacing: 0; font-weight: 700; }
.sh-team .sc2 { font-size: 12px; font-weight: 700; opacity: .8; }
.sh-team .rr { font-size: 11px; font-weight: 700; opacity: .8; }
.sh-team .tlogo { box-shadow: 0 0 0 3px rgba(255, 255, 255, .25), 0 8px 18px -6px rgba(0, 0, 0, .5); }
.sh-vs { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); flex-shrink: 0; }
.sh-foot {
  margin: 0 -16px; padding: 12px 16px; background: rgba(4, 14, 44, .32); text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(4px); width: calc(100% + 32px); box-sizing: border-box;
}
.sh-foot b { display: block; font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-foot span { display: block; font-size: 11.5px; font-weight: 600; opacity: .85; margin-top: 2px; }
.bump { animation: bump .6s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.12); color: #FDE68A; } 100% { transform: scale(1); } }

/* ------------------------------------------------------------------ balls */
.balls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ball {
  --bs: 34px; width: var(--bs); height: var(--bs); border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 800; font-size: 13px; background: var(--card); color: var(--ink-2); border: 1.5px solid var(--line);
  animation: pop .35s var(--ease) both;
}
.ball.sm { --bs: 26px; font-size: 11px; }
.ball.xs { --bs: 22px; font-size: 10px; border-width: 1px; }
.ball.b0 { background: var(--card-2); color: var(--mute); }
.ball.b4 { background: var(--pri); color: #fff; border-color: var(--pri); box-shadow: 0 6px 12px -6px var(--pri); }
.ball.b6 { background: var(--purple); color: #fff; border-color: var(--purple); box-shadow: 0 6px 12px -6px var(--purple); }
.ball.bW { background: var(--live); color: #fff; border-color: var(--live); box-shadow: 0 6px 12px -6px var(--live); }
.ball.bX { background: var(--amber-soft); color: var(--amber); border-color: transparent; font-size: 10.5px; }
.ball.brun.solid { background: var(--green); color: #fff; border-color: var(--green); }
.balls .ov-sep { width: 1px; height: 22px; background: var(--line); margin: 0 2px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ------------------------------------------------------------------ tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; box-sizing: border-box; }
.tile { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 8px; text-align: center; box-shadow: var(--sh-1); min-width: 0; overflow: hidden; }
.tile small { display: block; font-size: 11px; color: var(--mute); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile b { display: block; margin-top: 4px; font-size: clamp(16px, 4.5vw, 21px); font-weight: 800; letter-spacing: -.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile b.up { color: var(--green); }
.tile b.down { color: var(--live); }

/* ------------------------------------------------------------------ partnership / crease */
.pship-h { display: flex; justify-content: space-between; align-items: baseline; min-width: 0; }
.pship-h b { font-size: 18px; font-weight: 800; letter-spacing: -.5px; }
.pship-h b small { font-size: 12.5px; color: var(--mute); font-weight: 700; margin-left: 2px; }
.crease { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; width: 100%; box-sizing: border-box; }
.batter { display: flex; align-items: center; gap: 8px; padding: 9px; border-radius: var(--r); background: var(--card-2); border: 1px solid var(--line-2); min-width: 0; overflow: hidden; box-sizing: border-box; }
.batter.on { background: var(--pri-soft); border-color: var(--pri-soft-2); }
.batter .avatar { flex-shrink: 0; }
.batter .info { min-width: 0; flex: 1; overflow: hidden; }
.batter .info b { display: block; font-weight: 800; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.batter .info span { display: block; font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.batter .info span small { color: var(--mute); font-weight: 700; font-size: 11.5px; }
.batter .info em { display: block; font-style: normal; color: var(--mute); font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pship-bar { display: flex; height: 6px; border-radius: 4px; overflow: hidden; margin-top: 12px; background: var(--line-2); width: 100%; }
.pship-bar i { display: block; height: 100%; background: var(--pri); transition: width .6s var(--ease); }
.pship-bar i + i { background: var(--orange); }
.bowler-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); min-width: 0; width: 100%; box-sizing: border-box; }
.bowler-row .avatar { flex-shrink: 0; }
.bowler-row .info { flex: 1; min-width: 0; overflow: hidden; }
.bowler-row .info b { display: block; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bowler-row .info small { color: var(--mute); font-weight: 600; font-size: 11.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bowler-row .fig { font-weight: 800; font-size: 15px; text-align: right; flex-shrink: 0; }
.bowler-row .fig small { display: block; font-size: 11px; color: var(--mute); font-weight: 700; }

/* ------------------------------------------------------------------ win probability */
.wp-teams { display: flex; justify-content: space-between; font-weight: 800; font-size: 13px; margin-bottom: 8px; min-width: 0; }
.wp-teams span:last-child { color: var(--orange); }
.wp-teams span:first-child { color: var(--pri); }
.wp-bar { display: flex; height: 12px; border-radius: 8px; overflow: hidden; gap: 3px; width: 100%; }
.wp-bar i { display: block; height: 100%; border-radius: 8px; transition: width .8s var(--ease); }
.wp-bar i:first-child { background: linear-gradient(90deg, var(--pri), var(--pri-2)); }
.wp-bar i:last-child { background: linear-gradient(90deg, #FB923C, var(--orange)); }
.wp-note { margin-top: 8px; color: var(--mute); font-size: 11px; font-weight: 600; }
.proj { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; box-sizing: border-box; }
.proj div { background: var(--card-2); border-radius: 12px; padding: 10px 4px; text-align: center; border: 1px solid var(--line-2); min-width: 0; overflow: hidden; }
.proj small { display: block; font-size: 10px; color: var(--mute); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj b { display: block; font-size: 15px; font-weight: 800; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj div.cur { background: var(--pri-soft); border-color: var(--pri-soft-2); }
.proj div.cur b { color: var(--pri); }

/* ------------------------------------------------------------------ charts */
.chart { width: 100%; max-width: 100%; height: auto; display: block; overflow: hidden; box-sizing: border-box; }
.chart text { font: 700 10px var(--font); fill: var(--mute); }
.chart .grid-l { stroke: var(--line); stroke-dasharray: 3 4; }
.chart .bar { fill: url(#gBar); transform-box: fill-box; transform-origin: bottom; animation: grow .7s var(--ease) both; }
.chart .bar.hi { fill: url(#gBarHi); }
.chart .wk { fill: var(--live); stroke: var(--card); stroke-width: 2; }
.chart .worm { fill: none; stroke: var(--pri); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .worm-area { fill: url(#gArea); }
.chart .val { font-size: 9.5px; fill: var(--ink-2); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 11.5px; font-weight: 700; color: var(--mute); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

/* ------------------------------------------------------------------ info list */
.info-list { display: grid; gap: 0; }
.info-list > div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.info-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list > div:first-child { padding-top: 0; }
.info-list .ms { color: var(--pri); font-size: 20px; margin-top: 1px; }
.info-list small { display: block; color: var(--mute); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.info-list span { display: block; font-weight: 700; font-size: 13.5px; }
.last-wkt { display: flex; gap: 10px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.last-wkt .ball { --bs: 28px; }

/* ------------------------------------------------------------------ watch player */
.player {
  position: relative; border-radius: var(--r-xl); overflow: hidden; background: #071022; color: #fff;
  box-shadow: 0 20px 44px -20px rgba(2, 8, 30, .8); isolation: isolate; user-select: none;
  width: 100%; max-width: 100%; box-sizing: border-box;
}

/* Fullscreen modes: native + webkit vendor prefix + in-window fallback */
.player.is-fullscreen,
.player:fullscreen,
.player:-webkit-full-screen {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: 999999 !important;
  border-radius: 0 !important;
  background: #000 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
.player.is-fullscreen .pl-video,
.player:fullscreen .pl-video,
.player:-webkit-full-screen .pl-video {
  width: 100% !important;
  height: 100% !important;
  max-height: 100vh !important;
  max-width: 100vw !important;
  aspect-ratio: auto !important;
}
.player.is-fullscreen .pl-fs-close,
.player:fullscreen .pl-fs-close,
.player:-webkit-full-screen .pl-fs-close {
  display: grid !important;
}
.pl-fs-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(10, 18, 40, .75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  place-items: center;
  z-index: 20;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
}
.pl-fs-close .ms { font-size: 24px; }
body.has-fullscreen-player {
  overflow: hidden !important;
}
.pl-video { position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; }
.pl-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 52% 48%; animation: kenburns 24s ease-in-out infinite alternate; }
.player.paused .pl-bg { animation-play-state: paused; filter: saturate(.7) brightness(.8); }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.pl-vignette { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 22%, transparent 62%, rgba(0, 0, 0, .65)); pointer-events: none; }
.pl-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; align-items: center; z-index: 4; }
.pl-top .sp { flex: 1; }
.pl-top .pl-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(10, 18, 40, .45); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .14); }
.pl-top .pl-ic .ms { font-size: 20px; }
.pl-ball {
  position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, #ff5a4f 30%, #b3120a 100%);
  box-shadow: 0 0 10px 2px rgba(255, 80, 60, .7), 0 0 26px 6px rgba(255, 140, 90, .35);
  opacity: 0; will-change: transform, opacity;
}
.pl-shadow { position: absolute; left: 0; top: 0; width: 14px; height: 6px; margin: -3px 0 0 -7px; border-radius: 50%; background: rgba(0, 0, 0, .35); filter: blur(2px); opacity: 0; z-index: 2; }
.pl-trail { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.pl-trail path { fill: none; stroke: rgba(255, 220, 120, .85); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 200, 80, .9)); }
.pl-fx {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 5; pointer-events: none;
  font-size: clamp(38px, 11vw, 84px); font-weight: 800; letter-spacing: -2px; font-style: italic;
  opacity: 0;
}
.pl-fx.play { animation: fxIn 1.8s var(--ease) forwards; }
.pl-fx.f4 { color: #fff; text-shadow: 0 0 30px rgba(37, 99, 235, .95), 0 6px 0 #1D4ED8; }
.pl-fx.f6 { color: #fff; text-shadow: 0 0 30px rgba(124, 58, 237, .95), 0 6px 0 #6D28D9; }
.pl-fx.fW { color: #fff; text-shadow: 0 0 30px rgba(239, 59, 59, .95), 0 6px 0 #B91C1C; }
.pl-fx.fR { color: #fff; font-size: clamp(26px, 7vw, 48px); text-shadow: 0 0 20px rgba(22, 163, 74, .9), 0 4px 0 #15803D; }
.pl-fx.fX { color: #FDE68A; font-size: clamp(24px, 6vw, 42px); text-shadow: 0 4px 0 #92400E; }
.pl-fx.f0 { color: rgba(255, 255, 255, .9); font-size: clamp(22px, 5vw, 36px); text-shadow: 0 3px 12px rgba(0, 0, 0, .6); }
@keyframes fxIn {
  0% { opacity: 0; transform: scale(.4) rotate(-6deg); }
  15% { opacity: 1; transform: scale(1.15) rotate(-3deg); }
  25% { transform: scale(1) rotate(-3deg); }
  80% { opacity: 1; transform: scale(1.02) rotate(-3deg); }
  100% { opacity: 0; transform: scale(1.2) rotate(-3deg); }
}
.player.shake .pl-video { animation: shake .5s; }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-4px, 1px); } 80% { transform: translate(3px, 0); } }
.pl-flash { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; }
.pl-flash.go { animation: plFlash .8s ease-out; }
@keyframes plFlash { 0% { opacity: .65; } 100% { opacity: 0; } }
.pl-burst { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.pl-burst i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: confetti 2.4s ease-in forwards; }
@keyframes confetti { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(110vh) rotate(720deg); opacity: .4; } }
.pl-stumps { position: absolute; z-index: 2; width: 22px; height: 26px; margin: -24px 0 0 -11px; pointer-events: none; }
.pl-stumps i { position: absolute; bottom: 0; width: 3px; height: 22px; background: #f6efe0; border-radius: 2px; box-shadow: 0 0 4px rgba(0, 0, 0, .4); transform-origin: bottom center; }
.pl-stumps i:nth-child(1) { left: 3px; } .pl-stumps i:nth-child(2) { left: 9.5px; } .pl-stumps i:nth-child(3) { left: 16px; }
.pl-stumps.hit i:nth-child(1) { animation: stumpL .9s var(--ease) forwards; }
.pl-stumps.hit i:nth-child(2) { animation: stumpM .9s var(--ease) forwards; }
.pl-stumps.hit i:nth-child(3) { animation: stumpR .9s var(--ease) forwards; }
.pl-stumps.hit i {
  box-shadow: 0 0 10px 4px #EF4444, 0 0 20px 8px rgba(239, 68, 68, .6) !important;
  background: #EF4444 !important;
}
@keyframes stumpL { to { transform: translate(-10px, -4px) rotate(-55deg); } }
@keyframes stumpM { to { transform: translate(2px, -10px) rotate(25deg); } }
@keyframes stumpR { to { transform: translate(12px, -3px) rotate(60deg); } }

/* Speed Gun Telemetry Radar */
.pl-radar {
  position: absolute; right: 12px; top: 52px; z-index: 4;
  background: rgba(10, 18, 40, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; padding: 6px 10px;
  font-size: 11px; font-weight: 800; color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  transition: opacity .3s, transform .3s; pointer-events: none;
}
.pl-radar .spd { font-size: 14px; color: #FBBF24; letter-spacing: -.3px; }
.pl-radar .desc { font-size: 10px; color: rgba(255, 255, 255, .8); font-weight: 600; text-transform: uppercase; }

/* Turf Dust Particle */
.pl-dust {
  position: absolute; width: 22px; height: 12px; margin: -6px 0 0 -11px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(230, 215, 180, .75) 0%, rgba(200, 180, 140, .3) 60%, transparent 100%);
  filter: blur(3px); z-index: 2; pointer-events: none; opacity: 0;
}
.pl-dust.pop { animation: dustPop .45s ease-out forwards; }
@keyframes dustPop { 0% { opacity: 0; transform: scale(.3); } 30% { opacity: .8; transform: scale(1.4); } 100% { opacity: 0; transform: scale(2.2); } }

/* Running Between Wickets */
.pl-runners {
  position: absolute; inset: 0; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .25s;
}
.pl-runners.active { opacity: 1; }
.pl-runner {
  position: absolute; width: 14px; height: 26px; border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  transition: left .9s linear, top .9s linear, transform .9s linear;
}
.pl-runner .r-bat { width: 2px; height: 12px; background: #D97706; transform: rotate(-30deg); border-radius: 1px; }
.pl-runner .r-body { width: 10px; height: 14px; background: #fff; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.5); border: 1px solid rgba(0,0,0,.2); }
.pl-runner-badge {
  position: absolute; bottom: 84px; left: 50%; transform: translateX(-50%);
  background: rgba(16, 185, 129, .92); backdrop-filter: blur(8px);
  color: #fff; font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.4); display: flex; align-items: center; gap: 5px;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .3s, transform .3s; z-index: 5;
}
.pl-runner-badge.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.pl-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; transition: transform .2s var(--ease), opacity .3s;
}
.pl-center .ms { font-size: 40px; font-variation-settings: 'FILL' 1; }
.pl-center:active { transform: translate(-50%, -50%) scale(.92); }
.player:not(.paused) .pl-center { opacity: 0; pointer-events: none; }
.pl-bug {
  position: absolute; left: 12px; bottom: 54px; z-index: 4; display: flex; align-items: stretch; border-radius: 10px; overflow: hidden;
  font-size: 12px; font-weight: 800; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6); max-width: calc(100% - 24px); min-width: 0;
}
.pl-bug > span { display: flex; align-items: center; gap: 6px; padding: 6px 10px; white-space: nowrap; }
.pl-bug .b1 { background: linear-gradient(135deg, #1D4ED8, #2563EB); flex-shrink: 0; }
.pl-bug .b2 { background: rgba(255, 255, 255, .95); color: #0B1530; flex-shrink: 0; }
.pl-bug .b3 { background: rgba(10, 18, 40, .7); backdrop-filter: blur(8px); font-weight: 700; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.pl-bug .tlogo { --s: 18px; box-shadow: none; }
.pl-ctrl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px; box-sizing: border-box; }
.pl-ctrl button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #fff; flex-shrink: 0; }
.pl-ctrl button .ms { font-size: 22px; font-variation-settings: 'FILL' 1; }
.pl-ctrl .pl-ctrl-fs { width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); flex-shrink: 0; }
.pl-ctrl .pl-ctrl-fs .ms { font-size: 18px; }
.pl-prog { flex: 1; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .25); position: relative; min-width: 40px; }
.pl-prog i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--live); transition: width .6s var(--ease); }
.pl-prog i::after { content: ''; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(239, 59, 59, .5); }
.pl-live { font-size: 11px; font-weight: 800; letter-spacing: .6px; display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.pl-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
.pl-note { margin: 8px 4px 0; color: var(--mute); font-size: 11.5px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.pl-note .ms { font-size: 16px; flex-shrink: 0; }
.watch-switch { margin-top: 14px; }
.ws-item { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 12.5px; }
.ws-item.active { border-color: var(--pri); background: var(--pri-soft); color: var(--pri); }
.ws-item small { display: block; color: var(--mute); font-weight: 600; font-size: 11px; }

/* ------------------------------------------------------------------ feed / commentary */
.feed { display: grid; gap: 0; width: 100%; box-sizing: border-box; }
.fitem { display: grid; grid-template-columns: 36px 34px minmax(0, 1fr); gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line-2); align-items: start; min-width: 0; box-sizing: border-box; }
.fitem:last-child { border-bottom: 0; }
.fitem .ov { font-size: 12px; font-weight: 800; color: var(--mute); padding-top: 7px; flex-shrink: 0; }
.fitem .ball { --bs: 30px; }
.fitem .ft { min-width: 0; overflow: hidden; }
.fitem .ft > b { display: block; font-size: 13.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fitem .ft .who { display: block; font-size: 11.5px; color: var(--mute); font-weight: 700; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fitem .ft p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-2); font-weight: 500; line-height: 1.45; word-break: break-word; overflow-wrap: anywhere; }
.fitem .ft p b, .fitem .ft p * { display: inline; font-size: inherit; font-weight: bold; white-space: normal; }
.fitem.r4 .ft > b { color: var(--pri); }
.fitem.r6 .ft > b { color: var(--purple); }
.fitem.rW .ft > b { color: var(--live); }
.fitem.rW { background: var(--live-soft); border-radius: var(--r-sm); margin: 4px 0; padding: 8px 10px; }
.fitem.fresh { animation: fresh 1.4s var(--ease); }
@keyframes fresh { from { background: var(--pri-soft-2); } }
.ftext { padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.over-card {
  margin: 10px 0; padding: 12px; border-radius: var(--r); background: var(--card-2); border: 1px solid var(--line); width: 100%; box-sizing: border-box;
}
.over-card .oc-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.over-card .oc-h b { font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.over-card .oc-h b em { font-style: normal; color: var(--pri); }
.over-card .oc-h span { font-size: 12px; font-weight: 800; color: var(--ink-2); flex-shrink: 0; }
.over-card .balls { margin-top: 8px; gap: 6px; }
.over-card .oc-p { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--mute); font-weight: 600; min-width: 0; }
.over-card .oc-p b { color: var(--ink-2); font-weight: 700; }

.moments { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; width: 100%; box-sizing: border-box; }
.moments::-webkit-scrollbar { display: none; }
.moment { flex: 0 0 240px; display: flex; gap: 10px; padding: 10px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--sh-1); }
.moment .thumb { position: relative; width: 78px; height: 64px; border-radius: 10px; overflow: hidden; flex: none; background: url('assets/broadcast.jpg') center / cover; }
.moment .thumb::after { content: 'play_circle'; font-family: 'Material Symbols Rounded'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 26px; background: rgba(0, 0, 0, .25); font-variation-settings: 'FILL' 1; }
.moment .mt { min-width: 0; overflow: hidden; }
.moment .mt b { display: block; font-size: 12.5px; font-weight: 800; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moment .mt small { display: block; color: var(--mute); font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------------ tables (scorecard / standings) */
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; box-sizing: border-box; }
.tbl.stand { min-width: 460px; }
.tbl th { text-align: right; color: var(--mute); font-weight: 700; font-size: 11px; padding: 0 4px 8px; white-space: nowrap; }
.tbl th:first-child { text-align: left; padding-left: 0; }
.tbl td { text-align: right; padding: 9px 4px; border-top: 1px solid var(--line-2); font-weight: 700; white-space: nowrap; vertical-align: top; }
.tbl td:first-child { text-align: left; white-space: normal; padding-left: 0; }
.tbl td.strong { font-weight: 800; color: var(--ink); }
.tbl td .pn { font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 5px; }
.tbl td .pn .ms { font-size: 14px; color: var(--orange); }
.tbl td .pd { display: block; color: var(--mute); font-size: 11px; font-weight: 600; margin-top: 1px; }
.tbl td .pd.no { color: var(--green); font-weight: 700; }
.tbl tr.sel td { background: var(--pri-soft); }
.tbl tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--pri); padding-left: 8px; }
.tbl tr.click { cursor: pointer; }
.tbl tr.total td { font-weight: 800; color: var(--ink); background: var(--card-2); }
.tbl tr.total td:first-child { padding-left: 8px; }
.tbl tr.muted td { color: var(--mute); font-weight: 600; }
.tbl .sr-hi { color: var(--green); }
.tbl-scroll {
  width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  box-sizing: border-box; margin: 0; padding: 0; border-radius: var(--r-sm);
}
.fow { display: flex; flex-wrap: wrap; gap: 6px; }
.fow span { font-size: 11.5px; font-weight: 700; padding: 5px 9px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line-2); color: var(--ink-2); }
.fow span b { color: var(--live); }
.ytb { font-size: 12.5px; color: var(--ink-2); font-weight: 600; line-height: 1.6; }

/* standings */
.stand {
  display: table !important;
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 5px !important;
  min-width: 490px;
}
.stand thead tr {
  display: table-row !important;
}
.stand tbody tr {
  display: table-row !important;
  transition: background .15s;
}
.stand td, .stand th {
  display: table-cell !important;
  text-align: center;
  vertical-align: middle;
  padding: 9px 6px;
  box-sizing: border-box;
}
.stand th {
  font-size: 11px;
  font-weight: 800;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: .4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-2);
}
.stand th:nth-child(2), .stand td:nth-child(2) {
  text-align: left;
  min-width: 140px;
  padding-left: 8px;
}
.stand th:first-child, .stand td:first-child {
  width: 34px;
  text-align: center;
}
.stand td:first-child {
  border-radius: var(--r-sm) 0 0 var(--r-sm);
}
.stand td:last-child {
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.stand .rk-pill {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--mute);
  background: var(--card-2);
  border: 1px solid var(--line-2);
}
.stand tr.q-top .rk-pill {
  background: var(--pri);
  color: #fff;
  border-color: var(--pri);
}
.stand tr.q-top td {
  background: var(--pri-soft);
}
.stand tr:not(.q-top) td {
  background: var(--card-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.stand .tm {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  min-width: 0;
}
.stand .tm .t-name {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stand .tm small {
  display: block;
  color: var(--mute);
  font-weight: 600;
  font-size: 11px;
}
.stand .pts {
  font-weight: 800;
  color: var(--ink);
  font-size: 14px;
}
.stand .nrr {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stand .nrr.pos { color: var(--green); }
.stand .nrr.neg { color: var(--live); }
.form { display: inline-flex; gap: 3px; align-items: center; }
.form i {
  width: 17px; height: 17px; border-radius: 5px; font-size: 9.5px;
  font-style: normal; font-weight: 800; display: grid; place-items: center;
  color: #fff; background: var(--mute-2);
}
.form i.W { background: var(--green); }
.form i.L { background: var(--live); }
.form i.D { background: var(--amber); }
.group-name {
  font-size: 13px; font-weight: 800; color: var(--pri);
  text-transform: uppercase; letter-spacing: .5px; margin: 4px 0 10px;
  display: flex; align-items: center; gap: 6px;
}

/* performers */
.perf { display: grid; }
.perf-row { display: grid; grid-template-columns: 22px auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.perf-row:last-child { border-bottom: 0; }
.perf-row .rk { font-weight: 800; color: var(--mute); text-align: center; }
.perf-row:first-child .rk { color: var(--amber); }
.perf-row .nm b { display: block; font-weight: 800; font-size: 13.5px; }
.perf-row .nm small { display: block; color: var(--mute); font-weight: 600; font-size: 11.5px; }
.perf-row .vl { font-size: 18px; font-weight: 800; letter-spacing: -.4px; text-align: right; }
.perf-row .vl small { display: block; font-size: 10px; color: var(--mute); font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }

/* select pill */
.pill-select { position: relative; display: inline-flex; align-items: center; max-width: 100%; min-width: 0; box-sizing: border-box; }
.pill-select select {
  appearance: none; -webkit-appearance: none; height: 36px; padding: 0 34px 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-weight: 700; font-size: 12px; color: var(--ink-2); box-shadow: var(--sh-1);
  width: 100%; max-width: 200px; min-width: 0;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer; box-sizing: border-box;
}
.pill-select .ms { position: absolute; right: 10px; pointer-events: none; font-size: 20px; color: var(--mute); }

/* ------------------------------------------------------------------ scoring breakdown (field) */
.field-wrap { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; justify-items: center; }
@media (min-width: 480px) {
  .field-wrap { grid-template-columns: 170px 1fr; justify-items: stretch; }
}
.field-svg { width: 100%; max-width: 220px; height: auto; }
.brk { display: grid; gap: 8px; width: 100%; }
.brk div { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 700; min-width: 0; }
.brk i { width: 10px; height: 10px; border-radius: 50%; }
.brk span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brk em { font-style: normal; color: var(--mute); font-size: 11.5px; }
.brk b { min-width: 32px; text-align: right; }

/* partnerships list */
.plist { display: grid; gap: 12px; }
.prow .ph { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink-2); gap: 8px; }
.prow .ph b { color: var(--ink); font-weight: 800; white-space: nowrap; }
.prow .ph span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .pb { display: flex; height: 8px; border-radius: 5px; overflow: hidden; margin-top: 6px; background: var(--line-2); gap: 2px; }
.prow .pb i { display: block; background: var(--pri); border-radius: 5px; animation: widen .8s var(--ease) both; transform-origin: left; }
.prow .pb i + i { background: var(--orange); }
@keyframes widen { from { transform: scaleX(0); } }

/* ------------------------------------------------------------------ settings (more) */
.prof { display: flex; align-items: center; gap: 14px; }
.prof img { width: 60px; height: 60px; border-radius: 18px; box-shadow: var(--sh-pri); }
.prof b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.prof b em { font-style: normal; color: var(--pri); }
.prof small { color: var(--mute); font-weight: 600; font-size: 12px; }
.setting { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.setting:last-child { border-bottom: 0; padding-bottom: 0; }
.setting:first-child { padding-top: 0; }
.setting .si { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--pri-soft); color: var(--pri); flex: none; }
.setting .si.o { background: var(--orange-soft); color: var(--orange); }
.setting .si.p { background: var(--purple-soft); color: var(--purple); }
.setting .si.g { background: var(--green-soft); color: var(--green); }
.setting .si.r { background: var(--live-soft); color: var(--live); }
.setting .st { flex: 1; min-width: 0; }
.setting .st b { display: block; font-weight: 800; font-size: 13.5px; }
.setting .st small { display: block; color: var(--mute); font-weight: 600; font-size: 11.5px; }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 14px; background: var(--line); transition: background .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--pri); }
.switch input:checked + span::after { transform: translateX(18px); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.feat { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--sh-1); min-width: 0; overflow: hidden; }
.feat .fi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.feat > div { min-width: 0; }
.feat b { display: block; font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat small { display: block; font-size: 11px; color: var(--mute); font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.fi.g { background: linear-gradient(135deg, #22C55E, #16A34A); }
.fi.b { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.fi.o { background: linear-gradient(135deg, #FB923C, #EA580C); }
.fi.p { background: linear-gradient(135deg, #A78BFA, #7C3AED); }
.fi.r { background: linear-gradient(135deg, #FB7185, #E11D48); }
.signature { font-family: var(--script); font-size: 30px; color: var(--pri); text-align: center; margin: 26px 0 6px; transform: rotate(-4deg); opacity: .9; }
.foot-note { text-align: center; color: var(--mute); font-size: 11.5px; font-weight: 600; }
.follow-list { display: grid; gap: 8px; }
.follow-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--card-2); font-weight: 700; font-size: 13px; }
.follow-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------ sheet + toast */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(5, 12, 30, .45); backdrop-filter: blur(2px); animation: fadeIn .25s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 82vh; overflow: auto;
  background: var(--card); border-radius: 26px 26px 0 0; padding: 10px 18px calc(var(--safe-b) + 20px);
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .4); animation: sheetUp .35s var(--ease);
  max-width: 640px; margin: 0 auto;
}
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet h3 { margin: 0 0 10px; font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: space-between; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
.ev-item { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.ev-item:last-child { border-bottom: 0; }
.ev-item .et { flex: 1; min-width: 0; }
.ev-item .et b { display: block; font-size: 13px; font-weight: 800; }
.ev-item .et small { display: block; font-size: 11.5px; color: var(--mute); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-item time { font-size: 11px; color: var(--mute); font-weight: 700; white-space: nowrap; }

/* ------------------------------------------------------------------ LIVE ALERT BANNER (REPLACES TOASTS) */
.live-alert-banner {
  position: fixed;
  bottom: calc(var(--tabbar-h, 66px) + var(--safe-b, 0px) + 14px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  max-width: min(92vw, 480px);
  width: max-content;
  background: rgba(11, 21, 48, .96);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .6), 0 0 0 1.5px rgba(37, 99, 235, .5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: bannerSlideUp .35s cubic-bezier(.16, 1, .3, 1);
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.live-alert-banner:active { transform: translateX(-50%) scale(.97); }
.live-alert-banner .b-ball {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff; flex: none;
}
.live-alert-banner .b-ball.b4 { background: #2563EB; }
.live-alert-banner .b-ball.b6 { background: #8B5CF6; }
.live-alert-banner .b-ball.bW { background: #DC2626; }
.live-alert-banner .b-ball.bX { background: #F59E0B; }
.live-alert-banner .b-text {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3;
}
.live-alert-banner .b-act {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); font-size: 11.5px; font-weight: 800; color: #38BDF8; flex: none;
}
@keyframes bannerSlideUp {
  from { opacity: 0; transform: translate(-50%, 20px) scale(.95); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@media (min-width: 1024px) {
  .live-alert-banner {
    bottom: 24px;
    right: 28px;
    left: auto;
    transform: none;
    animation: bannerSlideRight .35s cubic-bezier(.16, 1, .3, 1);
  }
  .live-alert-banner:active { transform: scale(.97); }
}
@keyframes bannerSlideRight {
  from { opacity: 0; transform: translateY(16px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ------------------------------------------------------------------ LANGUAGE ONBOARDING MODAL */
/* Android WebView: the backdrop itself scrolls and the card is never shrunk
   (flex-shrink:0, no overflow/max-height on the card, no backdrop-filter or
   transform animation) — otherwise the card collapses to a thin white strip. */
.lang-modal-backdrop {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center;
  padding: 18px; box-sizing: border-box;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: rgba(8, 15, 35, .88);
  animation: fadeIn .25s ease;
}
.lang-modal-backdrop[hidden] { display: none; }
.lang-modal-card {
  flex: 0 0 auto; width: 100%; max-width: 480px; min-height: min-content;
  margin: auto; box-sizing: border-box; border-radius: 26px; padding: 24px 20px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 28px 60px -15px rgba(0, 0, 0, .55); text-align: center;
  animation: fadeIn .3s ease;
}
.lang-modal-icon {
  width: 62px; height: 62px; border-radius: 18px; margin: 0 auto 12px;
  display: grid; place-items: center; overflow: hidden; box-shadow: 0 8px 24px rgba(37, 99, 235, .3);
}
.lang-modal-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.lang-modal-icon .ms { font-size: 32px; }
.lang-modal-card h2 { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--ink); }
.lang-modal-card .lang-sub { margin: 0 0 14px; font-size: 12.5px; color: var(--mute); line-height: 1.45; }

/* Unofficial disclaimer notice pill inside modal */
.terms-disclaimer-pill {
  background: rgba(245, 158, 11, .09); border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 14px; padding: 10px 12px; margin-bottom: 16px; text-align: left;
}
.disclaimer-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px; color: #f59e0b; margin-bottom: 4px;
}
.disclaimer-text {
  font-size: 11px; line-height: 1.45; color: var(--ink-2); margin: 0;
}

.onboard-section-label {
  font-size: 12px; font-weight: 800; color: var(--mute); text-transform: uppercase;
  letter-spacing: .5px; text-align: left; margin: 0 0 8px 4px;
}

.lang-options { display: grid; gap: 8px; text-align: left; }
.lang-opt {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px;
  background: var(--card-2); border: 2px solid transparent; color: var(--ink);
  cursor: pointer; transition: all .18s ease; font-family: inherit; width: 100%;
}
.lang-opt:hover, .lang-opt:focus {
  border-color: var(--pri); background: var(--pri-soft); transform: translateY(-1px);
}
.lang-opt.selected {
  border-color: var(--pri); background: var(--pri-soft);
}
.lang-opt.selected .check-icon {
  color: var(--pri);
}
.lang-flag { font-size: 24px; line-height: 1; flex: none; }
.lang-info { flex: 1; min-width: 0; }
.lang-info .lang-title { display: block; font-size: 14px; font-weight: 800; color: var(--ink); }
.lang-info .lang-desc { display: block; font-size: 11px; color: var(--mute); margin-top: 2px; }
.lang-opt .check-icon { font-size: 20px; color: var(--mute); transition: color .2s; }

/* Terms agreement mandatory checkbox box */
.terms-agree-box {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 11px 13px;
  border-radius: 14px; background: var(--card-2); border: 1.5px solid var(--line-2);
  text-align: left; cursor: pointer; transition: border-color .15s ease;
}
.terms-agree-box:hover {
  border-color: var(--pri);
}
.terms-checkbox {
  width: 18px; height: 18px; accent-color: var(--pri); margin-top: 2px; flex-shrink: 0; cursor: pointer;
}
.terms-agree-label {
  font-size: 11.5px; line-height: 1.45; color: var(--ink-2); flex: 1;
}
.terms-agree-label a.terms-link {
  color: var(--pri); font-weight: 700; text-decoration: underline; text-underline-offset: 2px;
}

/* Big Proceed Button */
.btn-agree-continue {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 48px; border-radius: 16px; margin-top: 14px;
  background: var(--pri); color: #fff; font-family: inherit; font-size: 14px; font-weight: 800;
  border: none; cursor: pointer; box-shadow: var(--sh-pri); transition: all .2s ease;
}
.btn-agree-continue:disabled {
  background: var(--line-2); color: var(--mute); cursor: not-allowed; box-shadow: none; opacity: .7;
}
.btn-agree-continue:not(:disabled):hover {
  filter: brightness(1.1); transform: translateY(-1px);
}
.btn-agree-continue:not(:disabled):active {
  transform: scale(.98);
}
.lang-modal-footer { margin-top: 14px; font-size: 11px; color: var(--mute); }

/* Compact vertical layout so the whole onboarding card fits on small phones */
.lang-modal-backdrop { padding: 10px; }
.lang-modal-card { padding: 14px 14px 12px; border-radius: 22px; }
.lang-modal-icon { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 6px; }
.lang-modal-icon img { border-radius: 13px; }
.lang-modal-card h2 { font-size: 17px; margin-bottom: 2px; }
.lang-modal-card .lang-sub { font-size: 11.5px; line-height: 1.3; margin-bottom: 8px; }
.terms-disclaimer-pill { padding: 7px 10px; margin-bottom: 8px; border-radius: 12px; }
.disclaimer-badge { font-size: 10px; margin-bottom: 2px; }
.disclaimer-text { font-size: 10px; line-height: 1.35; }
.onboard-section-label { font-size: 10.5px; margin-bottom: 5px; }
.lang-options { gap: 5px; }
.lang-opt { padding: 6px 12px; gap: 10px; border-radius: 12px; }
.lang-flag { font-size: 20px; }
.lang-info .lang-title { font-size: 13px; }
.lang-info .lang-desc { display: none; }
.terms-agree-box { margin-top: 8px; padding: 8px 10px; border-radius: 12px; }
.terms-agree-label { font-size: 10.5px; line-height: 1.35; }
.btn-agree-continue { height: 40px; margin-top: 8px; border-radius: 13px; font-size: 13px; }
.lang-modal-footer { display: none; }

/* ------------------------------------------------------------------ URDU & HINDI TYPOGRAPHY + RTL */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .top-bar .top-actions { margin-right: auto; margin-left: 0; }
[dir="rtl"] .mhdr .acts { margin-right: auto; margin-left: 0; }
[dir="rtl"] .rail-nav a b { margin-left: 0; margin-right: auto; }
[dir="rtl"] .mc-go { margin-left: 0; margin-right: auto; transform: scaleX(-1); }
[dir="rtl"] .b-act .ms { transform: scaleX(-1); }
[dir="rtl"] .lang-options { text-align: right; }
[dir="rtl"] .hero-watch-btn { right: auto; left: 14px; }
[dir="rtl"] .slide-body { left: 142px; right: 14px; max-width: calc(100% - 156px); }
[dir="rtl"] .wp-name { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .wp-over-balls { margin-left: 0; margin-right: auto; }
[dir="rtl"] .wsb-t-right { text-align: left; }
@media (max-width: 420px) {
  [dir="rtl"] .hero-watch-btn { right: auto; left: 10px; }
  [dir="rtl"] .slide-body { left: 115px; right: 10px; max-width: calc(100% - 125px); }
}
@media (min-width: 1024px) {
  [dir="rtl"] .live-alert-banner { right: auto; left: 28px; }
}
body.lang-ur {
  font-family: 'Noto Nastaliq Urdu', 'Segoe UI', Tahoma, sans-serif;
}
body.lang-ur .brand-name, body.lang-ur h1, body.lang-ur h2, body.lang-ur h3, body.lang-ur b {
  font-weight: 700;
}
body.lang-hi {
  font-family: 'Noto Sans Devanagari', 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

/* ------------------------------------------------------------------ PLAYING RIGHT NOW BADGE ON MATCH CARDS */
.mc-playing-now {
  margin-top: 9px; padding: 7px 10px; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--line-2);
  display: grid; gap: 4px; font-size: 11.5px;
}
.mcp-row {
  display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mcp-tag {
  font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; flex: none;
}
.mcp-tag.bat { background: rgba(37, 99, 235, .15); color: #2563EB; }
.mcp-tag.bowl { background: rgba(16, 185, 129, .15); color: #059669; }
.mcp-name { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcp-score { font-weight: 800; color: var(--ink-2); margin-left: auto; flex: none; }

/* ------------------------------------------------------------------ WATCH VIEW BOTTOM STATS & EQUATION BOARD */
.watch-stats-board {
  margin-top: 16px; border-radius: 20px; padding: 14px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--sh-1); width: 100%; max-width: 100%;
  box-sizing: border-box; overflow: hidden; min-width: 0;
}
.wsb-top-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px;
  min-width: 0; flex-wrap: wrap; width: 100%; box-sizing: border-box;
}
.wsb-title {
  display: flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 800; color: var(--ink);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wsb-title .ms { color: var(--live); font-size: 19px; flex-shrink: 0; }
.wsb-fmt {
  font-size: 11px; font-weight: 700; color: var(--mute); background: var(--card-2);
  padding: 3px 8px; border-radius: 6px; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1;
}

/* 1-Line Team Scores */
.wsb-team-list {
  display: grid; gap: 8px; width: 100%; box-sizing: border-box; min-width: 0;
}
.wsb-team-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 14px; background: var(--card-2);
  border: 1.5px solid var(--line-2); width: 100%; box-sizing: border-box;
  min-width: 0; transition: border-color .15s ease, background .15s ease;
}
.wsb-team-row.active-bat {
  border-color: #2563EB; background: rgba(37, 99, 235, .04);
  box-shadow: 0 4px 12px rgba(37, 99, 235, .08);
}
.wsb-t-left {
  display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; overflow: hidden;
}
.wsb-t-info {
  display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; flex-wrap: wrap;
}
.wsb-t-name {
  font-size: 13.5px; font-weight: 800; color: var(--ink); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 140px;
}
.wsb-t-badge {
  font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 6px;
  white-space: nowrap; flex: none; line-height: 1.3;
}
.wsb-t-badge.bat { background: rgba(37, 99, 235, .15); color: #2563EB; }
.wsb-t-badge.bowl { background: rgba(16, 185, 129, .15); color: #059669; }
.wsb-t-badge.break { background: rgba(245, 158, 11, .15); color: #D97706; }

.wsb-t-right {
  display: flex; align-items: baseline; gap: 5px; flex-shrink: 0; text-align: right; min-width: 0;
}
.wsb-t-score {
  font-size: 15.5px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.wsb-t-ov {
  font-size: 11px; font-weight: 700; color: var(--mute); white-space: nowrap;
}

/* 1-Line Clean Equation Bar */
.wsb-eq-bar {
  margin-top: 10px; padding: 8px 12px; border-radius: 12px; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; gap: 7px; width: 100%; box-sizing: border-box;
  overflow: hidden; min-width: 0; line-height: 1.3;
}
.wsb-eq-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wsb-eq-bar .ms { font-size: 16px; flex-shrink: 0; }
.wsb-eq-bar.chase { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.wsb-eq-bar.target { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.wsb-eq-bar.setting { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }

/* 1-Line Clean Situation Status */
.wsb-clean-status {
  margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: var(--bg);
  border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; gap: 7px; width: 100%; box-sizing: border-box; min-width: 0;
}
.wsb-clean-status .ms { font-size: 16px; color: var(--pri); flex-shrink: 0; }
.wsb-clean-status span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* 1-Line Players Block */
.wsb-players-block {
  margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card-2);
  border: 1px solid var(--line-2); width: 100%; box-sizing: border-box; min-width: 0; overflow: hidden;
}
.wsb-p-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 5px 0; font-size: 12.5px; width: 100%; box-sizing: border-box; min-width: 0;
  border-bottom: 1px dashed var(--line-2);
}
.wsb-p-row:last-of-type { border-bottom: 0; }
.wp-role {
  font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; flex-shrink: 0;
}
.wp-role.bat { background: rgba(37, 99, 235, .15); color: #2563EB; }
.wp-role.bat.dim { background: var(--card); color: var(--mute); }
.wp-role.bowl { background: rgba(16, 185, 129, .15); color: #059669; }
.wp-name {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink); margin-left: 6px;
}
.wp-stat {
  flex-shrink: 0; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); white-space: nowrap;
}
.wp-stat b { font-size: 13px; font-weight: 800; }
.wp-stat small { color: var(--mute); font-size: 11px; font-weight: 600; margin-left: 4px; }

.wsb-p-foot {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px;
  font-size: 11.5px; color: var(--ink-2); font-weight: 600; width: 100%; box-sizing: border-box; min-width: 0;
}
.wp-partnership { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 180px; }
.wp-over-balls { display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: auto; }
.wp-over-balls small { color: var(--mute); font-size: 10.5px; font-weight: 700; margin-right: 2px; }

.wsb-ball {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; background: var(--card); border: 1px solid var(--line); color: var(--ink); flex-shrink: 0;
}
.wsb-ball.four { background: #2563EB; color: #fff; border-color: #2563EB; }
.wsb-ball.six { background: #8B5CF6; color: #fff; border-color: #8B5CF6; }
.wsb-ball.wicket { background: #DC2626; color: #fff; border-color: #DC2626; }

/* ------------------------------------------------------------------ SETTINGS LANGUAGE SELECTOR */
.lang-selector-group {
  display: flex; gap: 8px; margin-top: 10px;
}
.lang-btn {
  flex: 1; padding: 10px 8px; border-radius: 14px; background: var(--card-2);
  border: 1.5px solid var(--line-2); font-size: 13px; font-weight: 700; color: var(--ink);
  cursor: pointer; transition: all .15s ease; text-align: center;
}
.lang-btn.active {
  background: var(--pri-soft); border-color: var(--pri); color: var(--pri); font-weight: 800;
}


/* ------------------------------------------------------------------ misc */
.muted { color: var(--mute); }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.row { display: flex; align-items: center; gap: 8px; }
.sp { flex: 1; }
.link-btn { color: var(--pri); font-weight: 700; font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 14px;
  background: var(--pri); color: #fff; font-weight: 800; font-size: 13.5px; box-shadow: var(--sh-pri); transition: transform .15s;
}
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--pri-soft); color: var(--pri); box-shadow: none; }
.btn .ms { font-size: 20px; }
.stale-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.countdown-big { display: flex; justify-content: center; gap: 10px; margin: 14px 0 4px; }
.countdown-big div { min-width: 60px; padding: 10px 6px; border-radius: 14px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); text-align: center; }
.countdown-big b { display: block; font-size: 24px; font-weight: 800; }
.countdown-big small { font-size: 10px; font-weight: 700; opacity: .8; text-transform: uppercase; letter-spacing: .5px; }

/* Mobile default grid wrappers */
.home-grid, .mc-grid, .watch-grid, .sc-grid, .stats-grid, .more-grid {
  display: block; width: 100%; max-width: 100%; box-sizing: border-box; min-width: 0;
}
.home-grid > div, .mc-grid > div, .watch-grid > div, .sc-grid > div, .stats-grid > div, .more-grid > div {
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
}

/* ==================================================================== tablet */
@media (min-width: 640px) {
  .cards.two { grid-template-columns: 1fr 1fr; }
  .slide { flex-basis: 100%; }
  .features { grid-template-columns: repeat(3, 1fr); }
}

/* ==================================================================== desktop */
@media (min-width: 1024px) {
  body { background: radial-gradient(1200px 600px at 100% -10%, var(--pri-soft) 0%, transparent 60%), var(--bg); background-attachment: fixed; }
  .app { display: grid; grid-template-columns: 264px 1fr; }
  .tabbar { display: none; }
  .toast { bottom: 24px; }
  .rail {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 22px 16px;
    background: var(--card); border-right: 1px solid var(--line);
  }
  .brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
  .brand img { width: 50px; height: 50px; border-radius: 15px; box-shadow: var(--sh-pri); }
  .brand-name { font-size: 21px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
  .brand-name em { font-style: normal; color: var(--pri); }
  .brand-tag { font-size: 11px; color: var(--mute); font-weight: 600; margin-top: 2px; }
  .rail-nav { display: grid; gap: 4px; }
  .rail-nav a {
    display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 14px; font-weight: 700; color: var(--ink-2);
    transition: background .2s, color .2s; position: relative;
  }
  .rail-nav a .ms { font-size: 22px; color: var(--mute); }
  .rail-nav a:hover { background: var(--card-2); }
  .rail-nav a.active { background: var(--pri); color: #fff; box-shadow: var(--sh-pri); }
  .rail-nav a.active .ms { color: #fff; font-variation-settings: 'FILL' 1; }
  .rail-nav a b { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--live); color: #fff; font-size: 11px; display: grid; place-items: center; }
  .rail-foot { margin-top: auto; }
  .rail-card {
    border-radius: 20px; padding: 16px; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(140deg, #1E3A8A, #2563EB 60%, #38BDF8);
  }
  .rail-card::before { content: ''; position: absolute; inset: 0; background: url('assets/hero.jpg') 30% 30% / cover; opacity: .22; mix-blend-mode: luminosity; }
  .rail-card > * { position: relative; }
  .rail-card b { display: block; font-size: 15px; font-weight: 800; line-height: 1.25; }
  .rail-card small { display: block; margin-top: 4px; font-size: 11.5px; opacity: .85; font-weight: 600; }
  .rail-card .signature { color: #fff; font-size: 24px; margin: 10px 0 0; text-align: left; }

  .stage { max-width: 1240px; width: 100%; padding: 24px 32px 48px; }
  .stage.no-tabbar { padding-bottom: 48px; }
  .top-bar .logo-type { display: none; }
  .top-bar { padding-top: 0; }
  .desk-banner {
    display: flex; align-items: center; gap: 24px; padding: 22px 26px; border-radius: var(--r-xl); margin-bottom: 18px;
    background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--sh-1); position: relative; overflow: hidden;
  }
  .desk-banner::after {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 34%;
    background: linear-gradient(90deg, var(--card), transparent 50%), url('assets/hero.jpg') 30% 35% / cover;
    opacity: .9;
  }
  .desk-banner h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.8px; line-height: 1.1; }
  .desk-banner h2 em { font-style: normal; color: var(--pri); display: block; }
  .db-feats { display: flex; gap: 18px; padding-left: 24px; border-left: 1px solid var(--line); position: relative; z-index: 1; }
  .db-feat { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink-2); width: 84px; line-height: 1.25; }
  .db-feat .ms { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 6px; font-size: 22px; }
  .db-feat:nth-child(1) .ms { background: var(--live-soft); color: var(--live); }
  .db-feat:nth-child(2) .ms { background: var(--green-soft); color: var(--green); }
  .db-feat:nth-child(3) .ms { background: var(--purple-soft); color: var(--purple); }
  .db-feat:nth-child(4) .ms { background: var(--orange-soft); color: var(--orange); }

  .home-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .home-grid .sec-h:first-child { margin-top: 6px; }
  .hero { margin-top: 0; }
  .slide { aspect-ratio: 16 / 7.6; }
  .slide h2 { font-size: 34px; }
  .cards.auto { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
  .cards.two { grid-template-columns: 1fr 1fr; }

  .mhdr { margin: -24px -32px 0; padding: 16px 32px 12px; grid-template-columns: 44px 1fr auto; }
  .mhdr .tt { text-align: left; }
  .mhdr .tt b { font-size: 20px; }
  .mtabs { margin: 0 -32px 18px; padding: 2px 32px 10px; top: 70px; }
  .mtabs .seg { display: inline-flex; }
  .mc-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .mc-grid > .col > * + * { margin-top: 14px; }
  .mc-grid .card + .card { margin-top: 14px; }
  .watch-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .watch-grid .side { position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; }
  .sc-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .tbl-scroll { margin: 0; padding: 0; }
  .stats-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .features { grid-template-columns: repeat(5, 1fr); }
  .more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .more-grid .card + .card { margin-top: 18px; }
  .fitem.rW { margin: 4px 0; }
  .sheet { bottom: auto; top: 0; right: 0; left: auto; width: 420px; height: 100vh; max-height: none; border-radius: 26px 0 0 26px; animation: sheetLeft .35s var(--ease); }
  .sheet .grab { display: none; }
  @keyframes sheetLeft { from { transform: translateX(100%); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* ------------------------------------------------------------------ TOP BAR & RAIL QUICK LANGUAGE SWITCHER */
.top-lang-pill {
  display: inline-flex; align-items: center; background: var(--card-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; gap: 2px;
}
.top-lang-pill button {
  padding: 4px 8px; border-radius: 999px; border: 0; background: transparent;
  font-size: 11px; font-weight: 800; color: var(--mute); cursor: pointer; transition: all .15s ease;
}
.top-lang-pill button.active {
  background: var(--pri); color: #fff; box-shadow: 0 2px 8px rgba(37, 99, 235, .35);
}
.rail-lang-pill {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 0 4px 16px;
  border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.rail-lang-pill .rlp-btn {
  padding: 6px 4px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2);
  font-size: 11px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: all .15s ease; text-align: center;
}
.rail-lang-pill .rlp-btn.active {
  background: var(--pri); border-color: var(--pri); color: #fff; font-weight: 800;
}

/* ------------------------------------------------------------------ PROMINENT WATCH LIVE BUTTON ON CARDS */
.mc-action-row {
  margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.mc-watch-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; border-radius: 12px; background: linear-gradient(135deg, #1E40AF, #2563EB);
  color: #fff; font-size: 13px; font-weight: 800; border: 0; cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .35); transition: transform .15s ease, box-shadow .15s ease;
}
.mc-watch-btn:active { transform: scale(.98); }
.mc-watch-btn .ms { font-size: 19px; }


/* ------------------------------------------------------------------ 1-TAP SEARCH FILTER CHIPS */
.search-chip-group {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px;
}
.s-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: 12px; font-weight: 700;
  color: var(--ink); cursor: pointer; transition: all .15s ease;
}
.s-chip:hover, .s-chip:focus {
  background: var(--pri-soft); border-color: var(--pri); color: var(--pri);
}


/* Hindi voice commentary toggle (active state) */
.hc-toggle-btn.on {
  color: #00e07a;
  background: rgba(0, 224, 122, 0.14);
  border: 1px solid rgba(0, 224, 122, 0.4);
}

/* Watch match chooser */
.wpick-list { display: flex; flex-direction: column; gap: 12px; padding: 0 16px 24px; }
.wpick {
  background: #121a24; border: 1px solid rgba(255,255,255,.08);
  border-left: 3px solid #ff3b5c; border-radius: 16px;
  padding: 13px 14px; cursor: pointer; transition: transform .12s ease, border-color .12s;
}
.wpick:active { transform: scale(.985); border-color: rgba(0,224,122,.45); }
.wpick-main { display: flex; align-items: center; gap: 10px; }
.wpick-main img { width: 30px; height: 30px; object-fit: contain; border-radius: 7px; background: rgba(255,255,255,.06); padding: 2px; }
.wpick-fallback {
  display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 7px;
  background: rgba(255,255,255,.07); font-size: 10px; font-weight: 800; padding: 0 4px;
}
.wpick-teams { display: flex; align-items: center; gap: 7px; font-size: 15px; }
.wpick-vs { color: var(--mute, #8d9cb0); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.wpick-meta { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.wpick-series { font-size: 11px; color: var(--mute, #8d9cb0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpick-status { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: #00e07a; }

/* Neutral badge for upcoming matches (no fake live look) */
.live-badge.sm.off { background: rgba(141,156,176,.16); color: #8d9cb0; }
.live-badge.sm.off::before { display: none; }

/* background refresh: no re-entry animation */
body.silent-refresh .view-enter { animation: none !important; }
