/* Crease. Lineage: the House of 1400 Sport app, with die-cut stickers for the one object on each screen
   that matters (the score, the next match) and a page tint taken from the match's team colour.
   Content flat and opaque; glass only on floating chrome. Numerals are the hero type (Barlow Condensed).
   Every match row is one grid so scores and dividers line up. */
:root {
  /* Light: warm paper and ink type; cards sit on the page rather than float. */
  --bg: #f4f1ea;
  --surface: #fffdf9;
  --sunk: #f0ebe1;
  --ink: #14172b;
  --ink2: #33384f;
  --muted: #575b6f;
  --line2: rgba(20, 23, 43, 0.09);
  --line: rgba(20, 23, 43, 0.18);
  --live: #dc2a1f;
  --win: #147a40;
  --accent: #2442e8;
  --ipl: #4a2fb0;
  --four: #2442e8;
  --six: #7a2fc0;
  --wkt: #c22a23;
  --extra: #9a6a00;
  /* Extras text on its own 20% tint: darker than the tint's colour, for contrast. */
  --extra-ink: #7a5300;
  /* Freshness warnings on their own light tints. */
  --warn-ink: #7a4d00;
  --bad-ink: #a8201a;
  --glass: color-mix(in oklab, var(--surface) 88%, transparent);
  --glass-edge: rgba(0, 0, 0, 0.12);
  --glass-rim: rgba(255, 255, 255, 0.7);
  /* Stickers: a cobalt card for the score, tangerine labels for state, a die-cut edge. */
  --cobalt: #2442e8;
  --sticker: #ff6a2b;
  --on-sticker: #0e1330;
  --die: #fff;
  /* Ball chips carry white text, so they keep these fills in both themes. */
  --chip-four: #2442e8;
  --chip-six: #7a2fc0;
  --chip-wkt: #c22a23;
  --lift: 0 1px 0 rgba(20, 23, 43, 0.05), 0 12px 28px rgba(20, 23, 43, 0.1);
  /* The edge of a card or list on the page. */
  --edge: 0 0 0 0.5px var(--line2), 0 1px 2px rgba(20, 23, 43, 0.05);
  --scene-mix: 16%;
  /* A faint paper grain under the page tint, one SVG noise tile. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --sans:
    "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --num: "Barlow Condensed", var(--sans);
  --t-display: 1.88rem;
  --t-title: 1.18rem;
  --t-body: 0.9rem;
  --t-meta: 0.78rem;
  --t-cap: 0.72rem;
  --n-hero: 2.4rem;
  --n-row: 1.15rem;
  --gut: 16px;
  --r: 20px;
  --r-s: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tabh: 62px;
  --st: 3.6rem;
  --spring-fast: linear(
    0,
    0.181,
    0.497,
    0.795,
    0.982,
    1.074,
    1.091,
    1.072,
    1.043,
    1.016,
    1,
    0.993,
    0.992,
    0.994,
    0.996,
    0.999,
    1,
    1.001,
    1.001,
    1.001,
    1
  );
  --spring: linear(
    0,
    0.089,
    0.27,
    0.466,
    0.64,
    0.776,
    0.877,
    0.941,
    0.98,
    1.001,
    1.011,
    1.014,
    1.013,
    1.011,
    1.008,
    1.005,
    1.003,
    1.002,
    1.001,
    1,
    1
  );
  --spring-fx: linear(
    0,
    0.118,
    0.321,
    0.499,
    0.653,
    0.766,
    0.845,
    0.899,
    0.933,
    0.957,
    0.972,
    0.982,
    0.989,
    0.993,
    0.995,
    0.997,
    0.998,
    0.999,
    0.999,
    1,
    1
  );
  color-scheme: light;
}
/* Dark: a night-stadium navy rather than black, cards lit from above, a die-cut edge
   you can see, and the team colour glowing at the top. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0c16;
  --surface: #131729;
  --sunk: #1c2136;
  --ink: #f2f3f8;
  --ink2: #c9cddd;
  --muted: #959bb5;
  --line2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.18);
  --live: #ff5248;
  --win: #4bd389;
  --accent: #8fa2ff;
  --ipl: #a99bff;
  --four: #5b73ff;
  --six: #c99bff;
  --wkt: #ff7169;
  --extra: #e8c15a;
  --extra-ink: #e8c15a;
  --warn-ink: #f5c25a;
  --bad-ink: #ff7169;
  --glass: color-mix(in oklab, #151a2e 90%, transparent);
  --glass-edge: rgba(255, 255, 255, 0.12);
  --glass-rim: rgba(255, 255, 255, 0.1);
  --die: #39406a;
  --lift: 0 14px 34px rgba(0, 0, 0, 0.55);
  --edge: 0 0 0 0.5px var(--line2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 106.25%;
}
body {
  margin: 0;
  /* --scene is the match's team colour, set per view; without one the page stays plain. */
  background:
    var(--grain),
    linear-gradient(
        180deg,
        color-mix(in oklab, var(--scene, var(--bg)) var(--scene-mix), var(--bg))
          0,
        var(--bg) 460px
      )
      no-repeat,
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.38;
  -webkit-font-smoothing: antialiased;
}
/* Dark: the team colour (cobalt without one) glows from the top; no grain. */
:root[data-theme="dark"] body {
  background:
    radial-gradient(
        120% 60% at 50% -10%,
        color-mix(in oklab, var(--scene, var(--cobalt)) 45%, transparent),
        transparent 70%
      )
      no-repeat,
    var(--bg);
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
}
[hidden] {
  display: none !important;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.tnum {
  font-variant-numeric: tabular-nums;
}
.num {
  font-family: var(--num);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.005em;
}
.dim {
  color: var(--muted);
}
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .tabs {
    background: var(--surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ---------- shell */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: var(--safe-t);
  border-bottom: 0.5px solid transparent;
  transition:
    background 0.25s var(--spring-fx),
    border-color 0.25s;
}
.top.solid {
  background: var(--bg);
  border-bottom-color: var(--line2);
}
.top-in {
  height: 48px;
  display: grid;
  /* Equal sides keep the middle (title and freshness) centred at its own width. */
  grid-template-columns: minmax(96px, 1fr) minmax(0, auto) minmax(96px, 1fr);
  align-items: center;
  padding: 0 calc(var(--gut) - 6px);
  max-width: 720px;
  margin: 0 auto;
}
/* The middle of the top bar: one button, so the whole of it refreshes on tap. The
   page title shows above the freshness line once the page has scrolled. */
.top-mid {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  min-width: 0;
  padding: 0 6px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.top-title {
  max-width: 100%;
  max-height: 0;
  font-weight: 650;
  font-size: var(--t-body);
  line-height: 1.25;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    max-height 0.25s var(--spring-fx),
    opacity 0.2s var(--spring-fx);
}
.top.solid .top-title {
  max-height: 1.3em;
  opacity: 1;
}
/* Grey while fine; amber once a minute old; red when refreshing fails. */
.fresh {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fresh i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}
.fresh.tick i {
  animation: blink 1.2s ease-out;
}
@keyframes blink {
  0%,
  40% {
    opacity: 1;
    background: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  }
}
.fresh.spin i {
  opacity: 1;
  background: var(--accent);
  animation: pulse 1s ease-in-out infinite;
}
.fresh.old {
  color: var(--warn-ink);
  background: color-mix(in srgb, #f5a623 14%, transparent);
}
.fresh.bad {
  color: var(--bad-ink);
  background: color-mix(in srgb, var(--live) 10%, transparent);
}
.fresh.old i,
.fresh.bad i {
  opacity: 1;
}
.top-left {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 2px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
/* The mark as a sticker: stumps and a flying bail, with the die-cut edge. */
.brand .mark {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 6px;
  box-shadow:
    0 0 0 2px var(--die),
    0 2px 6px rgba(14, 19, 48, 0.22);
}
.top-btns {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  gap: 2px;
}
.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink2);
}
.icon:active {
  background: var(--sunk);
}
.icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.back svg {
  width: 24px;
  height: 24px;
}
.alerts.on {
  color: var(--accent);
}
.alerts.on svg path:first-child {
  fill: currentColor;
}
main {
  padding: 0 var(--gut) calc(var(--tabh) + var(--safe-b) + 44px);
  max-width: 720px;
  margin: 0 auto;
  outline: none;
}
.page {
  animation: in 0.4s var(--spring) both;
}
@keyframes in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.tabs {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(var(--safe-b) + 10px);
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 440px);
  height: var(--tabh);
  display: grid;
  grid-template-columns: repeat(var(--n, 4), 1fr);
  padding: 5px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  backdrop-filter: blur(20px) saturate(1.7);
  box-shadow:
    inset 0 1px 0 var(--glass-rim),
    0 0 0 0.5px var(--glass-edge),
    0 10px 30px -10px rgba(0, 0, 0, 0.3);
}
/* The current tab is a die-cut sticker, slapped on at a tilt: it lifts, slides and
   lands on the next tab (the spring's overshoot is the slap). */
.tab-pill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / var(--n, 4));
  border-radius: 20px;
  background: var(--cobalt);
  box-shadow:
    0 0 0 3px var(--die),
    0 6px 14px rgba(14, 19, 48, 0.28);
  transform: translateX(calc(var(--ti, 0) * 100%)) rotate(-4deg) scale(1.04);
  transition:
    transform 0.5s var(--spring),
    opacity 0.2s;
}
.tabs.none .tab-pill {
  opacity: 0;
}
.tabs a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 999px;
  color: var(--muted);
  font-size: var(--t-cap);
  font-weight: 650;
  min-width: 0;
  transition: color 0.2s;
}
.tabs a svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--spring-fast);
}
.tabs a svg .ball {
  fill: currentColor;
  stroke: none;
}
/* India's flag in its own colours, the IPL trophy in gold, selected or not. */
.tabs a svg .tri-s {
  fill: #ff9933;
  stroke: none;
}
.tabs a svg .tri-w {
  fill: #fff;
  stroke: none;
}
.tabs a svg .tri-g {
  fill: #138808;
  stroke: none;
}
.tabs a svg .tri-c {
  stroke: #000080;
  stroke-width: 0.9;
}
.tabs a svg .gold {
  fill: #f2b705;
  stroke: #a87800;
}
.tabs a[aria-current] svg .gold {
  stroke: #fff;
}
.tabs a[aria-current] {
  color: #fff;
}
.tabs a[aria-current] span {
  font-weight: 800;
}
.tabs a:active svg {
  transform: scale(0.88);
}
/* Something is live in this tab: a tangerine sticker stuck on its corner. */
.tabs .lv {
  position: absolute;
  top: -8px;
  left: calc(50% + 4px);
  padding: 1px 6px;
  border-radius: 7px;
  background: var(--sticker);
  color: var(--on-sticker);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transform: rotate(8deg);
  box-shadow:
    0 0 0 2px var(--die),
    0 3px 8px rgba(14, 19, 48, 0.25);
}

/* ---------- page headings */
.ph {
  padding: 6px 2px 6px;
}
.ph h1 {
  margin: 0;
  font-size: var(--t-display);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.ph p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--t-meta);
}
.sec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 4px 8px;
  font-size: var(--t-meta);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sec:first-child {
  margin-top: 4px;
}
/* Under a page heading: room for a card's sticker, and no more. */
.ph + .sec {
  margin-top: 12px;
}
.ph + .card,
.ph + .list {
  margin-top: 10px;
}
.ph + .hero {
  margin-top: 22px;
}
.sec small {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--live);
  font-weight: 800;
  font-size: var(--t-cap);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}
.live.paused {
  color: var(--muted);
}
.live.paused i {
  animation: none;
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--sunk);
  color: var(--ink2);
}
.tag.ipl {
  background: color-mix(in srgb, var(--ipl) 14%, transparent);
  color: var(--ipl);
}
.tag.india {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
/* The followed team's matches. */
.tag.fav {
  gap: 3px;
  background: color-mix(in srgb, #f2b705 22%, transparent);
  color: var(--ink);
}
.tag.fav i {
  font-style: normal;
  color: #a87800;
}
:root[data-theme="dark"] .tag.fav i {
  color: #f2b705;
}

/* ---------- surfaces */
.list,
.card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--edge);
}
.list {
  overflow: hidden;
}
.card {
  padding: 14px;
}
.card.flush {
  padding: 0;
  overflow: hidden;
}
.list + .list,
.card + .card,
.list + .card,
.card + .list,
.hero + .list,
.hero + .card {
  margin-top: 16px;
}

/* match row: status track | teams+scores */
.mr {
  position: relative;
  display: grid;
  grid-template-columns: var(--st) 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  min-height: 64px;
  transition: background 0.2s;
}
.mr:active {
  background: var(--sunk);
}
.list > .mr + .mr::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: calc(14px + var(--st) + 12px);
  border-top: 0.5px solid var(--line2);
}
.st {
  display: grid;
  gap: 1px;
  font-size: var(--t-cap);
  color: var(--muted);
  font-weight: 650;
  line-height: 1.2;
}
.st .num {
  font-size: 1.02rem;
  color: var(--ink);
  font-weight: 600;
}
.st .live {
  font-size: 0.72rem;
}
.sides {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.side {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.side .nm {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.side.lose .nm,
.side.lose .sc {
  color: var(--muted);
}
.side .sc {
  font-family: var(--num);
  font-weight: 700;
  font-size: var(--n-row);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}
.side .sc small {
  font-family: var(--sans);
  font-size: var(--t-cap);
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
}
.nw {
  white-space: nowrap;
}
.side.bat .nm .nw::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--live);
  vertical-align: middle;
}
.mr .why {
  grid-column: 2;
  font-size: var(--t-meta);
  color: var(--muted);
  margin-top: -2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mr .why.on {
  color: var(--live);
}

.flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  background: var(--sunk);
  box-shadow: 0 0 0 0.5px var(--line2);
}
.flag.mono {
  display: grid;
  place-items: center;
  font-size: 0.5rem;
  font-weight: 800;
  color: var(--muted);
}
/* Crests are square and transparent: fit them whole, no tile behind. */
.flag.logo {
  height: 22px;
  object-fit: contain;
  background: none;
  box-shadow: none;
}
.flag.lg {
  width: 34px;
  height: 25px;
  border-radius: 5px;
}
.flag.lg.mono {
  font-size: 0.62rem;
}

/* Sticker: a die-cut card with a tangerine state label stuck on its corner. */
.hero,
.mhero {
  position: relative;
  margin: 5px 0;
  box-shadow:
    0 0 0 5px var(--die),
    var(--lift);
}
.sec + .hero,
.hero + .hero,
.mhero {
  margin-top: 22px;
}
.stk {
  position: absolute;
  top: -14px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 12px;
  background: var(--sticker);
  color: var(--on-sticker);
  font-weight: 800;
  font-size: var(--t-body);
  white-space: nowrap;
  box-shadow:
    0 0 0 3px var(--die),
    0 6px 14px rgba(14, 19, 48, 0.2);
  transform: rotate(4deg);
}
.stk i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}

/* Matchday poster: home's next match when nothing is on. The two sides' colours
   (darkened to carry white text) split on the diagonal; flags tilt toward each
   other; the countdown is the headline. Same in both themes, like the score card. */
.ph.sm {
  padding-bottom: 0;
}
.ph.sm h1 {
  font-size: var(--t-meta);
  font-weight: 750;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.poster {
  display: block;
  position: relative;
  margin: 14px 0 6px;
  padding: 16px 16px 18px;
  border-radius: 26px;
  color: #fff;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--pl) 0,
    var(--pl) 46%,
    var(--pr) 46.2%,
    var(--pr) 100%
  );
  box-shadow:
    0 0 0 5px var(--die),
    0 18px 40px rgba(14, 19, 48, 0.3);
}
.poster .top {
  text-align: left;
  font-size: var(--t-cap);
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.poster .vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin: 18px 0 6px;
}
.poster .side-p {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 0;
}
.poster .pf {
  width: 72px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow:
    0 0 0 3px #fff,
    0 8px 18px rgba(0, 0, 0, 0.35);
}
.poster .pf.mono {
  display: grid;
  place-items: center;
  background: #fff;
  color: #0e1330;
  font-family: var(--num);
  font-weight: 700;
  font-size: 1.3rem;
}
.poster .pf.l {
  transform: rotate(-6deg);
}
.poster .pf.r {
  transform: rotate(6deg);
}
.poster .tn {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.poster .v {
  font-family: var(--num);
  font-weight: 700;
  font-size: 1rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}
.poster .cd {
  margin-top: 12px;
  font-family: var(--num);
  font-weight: 700;
  font-size: 4rem;
  line-height: 0.95;
  white-space: nowrap;
}
.poster .cdl {
  margin-top: 4px;
  font-size: var(--t-meta);
}
.poster .pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 14px;
  font-size: var(--t-meta);
  font-weight: 650;
}
.poster .pills span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}
.poster .pills svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.2;
}
.poster .ser {
  margin-top: 12px;
  font-size: var(--t-cap);
}
.idle {
  margin: 12px 4px 0;
  font-size: var(--t-meta);
  color: var(--muted);
}
/* The link keeps a 44px tap area without adding height: padding, offset by margin. */
/* Links inside running text: the 44px tap area doesn't push the lines apart. */
.idle .link,
.ph p .link,
.empty span .link,
.sheet p .link {
  display: inline-block;
  min-height: 0;
  padding: 13px 0;
  margin: -13px 0;
}

/* hero: a live match on a list page */
.hero {
  display: block;
  padding: 14px 16px 16px;
  border-radius: var(--r);
  background: var(--surface);
  transition: transform 0.3s var(--spring-fast);
}
.hero:active {
  transform: scale(0.985);
}
.hero .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-meta);
  color: var(--muted);
  min-width: 0;
}
.hero .meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero .meta .tag {
  flex: none;
}
.hero .rows {
  display: grid;
  gap: 8px;
  margin: 12px 0 10px;
}
.hrow {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
}
.hrow .nm {
  font-weight: 680;
  font-size: var(--t-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hrow .sc {
  font-family: var(--num);
  font-weight: 700;
  font-size: var(--n-hero);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}
.hrow .sc small {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 600;
  margin-left: 4px;
}
.hrow .sc .prev {
  font-size: 1.2rem;
  color: var(--muted);
  margin-right: 6px;
}
.hrow.lose .nm,
.hrow.lose .sc {
  color: var(--muted);
}
.hero .status {
  font-size: var(--t-meta);
  font-weight: 650;
  color: var(--ink2);
}
.hero.is-live:not(.paused) .status {
  color: var(--live);
}
.hero .meta {
  padding-right: 64px;
}

/* next match + series ahead */
.hero.next .rows {
  margin: 12px 0;
}
.when {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.when .cd {
  font-family: var(--num);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.when > span:last-child {
  font-size: var(--t-meta);
  font-weight: 600;
  color: var(--ink2);
}
/* The start on the ground's own clock, smaller, with its sun or moon. */
.lt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: var(--t-cap);
  font-weight: 600;
  color: var(--muted);
}
.lt svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.lt svg .fill,
.lt svg circle {
  fill: currentColor;
}
.mhero .lt {
  color: inherit;
}
.season .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-meta);
  color: var(--muted);
  margin-bottom: 10px;
}
.season .when .cd {
  color: var(--ipl);
}
details.sr {
  position: relative;
}
.list > details.sr + details.sr::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 0;
  border-top: 0.5px solid var(--line2);
}
details.sr > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
}
/* A recent series' standing in one line: "ODIs IND 2–1 · T20Is 2–2 · 1 NR", India
   ahead in the accent colour. Its chips show once it is opened. */
details.sr .stand {
  margin-top: 3px;
  font-size: var(--t-meta);
  color: var(--muted);
}
details.sr .stand-l {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
}
details.sr .stand b {
  margin-left: 2px;
  font-family: var(--num);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
details.sr .stand b.w {
  color: var(--accent);
}
.sr-chips {
  padding: 0 14px 6px;
}
.sr-chips .rcr {
  margin-top: 0;
}
/* Points tables: position, the team (a button: tap to follow), its form, figures. The
   qualifying places sit above a line; the followed team is tinted. */
.tbl.pts td,
.tbl.pts th {
  vertical-align: middle;
}
.tbl.pts td.n,
.tbl.pts th:not(:first-child):not(:nth-child(2)) {
  padding-left: 4px;
  padding-right: 4px;
}
.tbl.pts td:last-child,
.tbl.pts th:last-child {
  padding-right: 12px;
}
.tbl.pts td:first-child,
.tbl.pts th:first-child {
  width: auto;
  padding-right: 4px;
}
.tbl.pts td:nth-child(2),
.tbl.pts th:nth-child(2) {
  width: 100%;
  text-align: left;
}
.tbl.pts .pos {
  color: var(--muted);
}
.tbl.pts tr.cut td {
  border-bottom: 1.5px solid var(--accent);
}
.tbl.pts tr.me td {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.tm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
/* Only the star follows: a 44px target that overlaps the cell's padding. */
.star-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 -14px 0 -10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.star-btn .star {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.star-btn[aria-pressed="true"] .star {
  fill: #f2b705;
  stroke: #a87800;
}
.form {
  display: flex;
  gap: 2px;
  margin-top: -6px;
  padding-bottom: 6px;
}
.form i {
  font-style: normal;
  font-family: var(--num);
  font-size: 0.7rem;
  font-weight: 700;
  width: 14px;
  text-align: center;
  border-radius: 3px;
  color: var(--muted);
}
/* A loss is an outlined chip, so it reads as a result, not a gap. */
.form i.L {
  box-shadow: inset 0 0 0 1px var(--line);
}
/* Wins keep the same green in both themes, like the ball chips, for white text. */
.form i.W {
  color: #fff;
  background: #147a40;
}
/* The champion and a followed side between seasons: a sticker card with a flag. */
.card.champ,
.card.fav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}
.card.champ .nm,
.card.fav .nm {
  font-weight: 750;
  font-size: var(--t-title);
}
.card.champ .sub,
.card.fav .sub {
  font-size: var(--t-meta);
  color: var(--muted);
  margin-top: 2px;
}
.card.champ {
  box-shadow:
    0 0 0 3px #f2b705,
    var(--lift);
}
.cup {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--ink2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cup .gold {
  fill: #f2b705;
  stroke: #a87800;
}
/* A series ahead leads with its start date as a calendar tile. */
details.sr.ahead > summary {
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
}
.list > details.sr.ahead + details.sr.ahead::before {
  left: 72px;
}
details.sr > summary::-webkit-details-marker {
  display: none;
}
details.sr > summary .nm {
  font-weight: 650;
}
details.sr > summary .sub {
  font-size: var(--t-meta);
  color: var(--muted);
  margin-top: 2px;
}
details.sr > summary .nx {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-cap);
  font-weight: 650;
  color: var(--ink2);
  white-space: nowrap;
}
details.sr .chev {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--spring);
}
details.sr[open] .chev {
  transform: rotate(180deg);
}
/* Fixture rows: a tear-off calendar date, the match and city, start time and ground. */
.mr.fxr {
  grid-template-columns: 46px 1fr auto;
  min-height: 0;
  padding: 10px 14px;
}
.cal {
  display: grid;
  justify-items: center;
  align-content: center;
  width: 46px;
  height: 50px;
  border-radius: 12px;
  background: var(--sunk);
  line-height: 1.05;
}
.cal small {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cal b {
  font-family: var(--num);
  font-size: 1.35rem;
  font-weight: 700;
}
.fxr.is-next .cal {
  background: var(--cobalt);
  color: #fff;
}
.fxr.is-next .cal small {
  color: #dce2ff;
}
.fxm {
  min-width: 0;
}
.fxr .nm {
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fxr .why {
  margin-top: 2px;
  font-size: var(--t-meta);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip-next {
  padding: 3px 9px;
  border-radius: 10px;
  background: var(--sticker);
  color: var(--on-sticker);
  font-weight: 800;
  font-size: var(--t-cap);
  white-space: nowrap;
  box-shadow: 0 0 0 2px var(--die);
  transform: rotate(3deg);
}
/* Not uppercased: "T20Is" would read "T20IS". */
.fmt-h {
  padding: 12px 14px 2px;
  font-size: var(--t-meta);
  font-weight: 700;
  color: var(--muted);
}
details.sr > .mr::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 14px;
  border-top: 0.5px solid var(--line2);
}
details.sr[open] {
  background: color-mix(in srgb, var(--sunk) 45%, transparent);
}

.empty {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--line2);
  color: var(--muted);
  font-size: var(--t-meta);
}
.empty b {
  color: var(--ink);
  font-size: var(--t-body);
}
.err {
  color: var(--live);
}
.skel {
  height: 110px;
  border-radius: var(--r);
  background: linear-gradient(
    90deg,
    var(--surface) 0,
    var(--sunk) 50%,
    var(--surface) 100%
  );
  background-size: 200% 100%;
  animation: sk 1.2s linear infinite;
}
.skel + .skel {
  margin-top: 10px;
}
.skel.sm {
  height: 64px;
}
.skel.line {
  display: block;
  width: 9ch;
  height: 0.9em;
  margin: 0.08em 0;
  border-radius: 10px;
}
@keyframes sk {
  to {
    background-position: -200% 0;
  }
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 12px;
  margin: 18px 4px 0;
  font-size: var(--t-cap);
  color: var(--muted);
  text-align: center;
}

/* ---------- match page */
/* The score is the sticker: cobalt, with every token inside retuned for white type. */
.mhero {
  --ink: #fff;
  --ink2: #e7ebff;
  --muted: #e3e8ff;
  --live: #fff;
  --sunk: rgba(255, 255, 255, 0.16);
  --line2: rgba(255, 255, 255, 0.22);
  --accent: #fff;
  padding: 14px 16px 16px;
  border-radius: var(--r);
  background: var(--cobalt);
  color: var(--ink);
  margin-bottom: 16px;
}
.mhero .series {
  padding-right: 72px;
}
.mhero .tag {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.mhero h1 {
  margin: 6px 0 0;
  font-size: var(--t-title);
  font-weight: 720;
  letter-spacing: -0.01em;
}
.mhero .series {
  font-size: var(--t-meta);
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.mhero .rows {
  display: grid;
  gap: 10px;
  margin: 14px 0 12px;
}
.mhero .status {
  font-size: var(--t-body);
  font-weight: 650;
}
.mhero .eq {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--sunk);
  font-size: var(--t-cap);
  font-weight: 650;
  color: var(--muted);
  align-items: center;
}
.pill b {
  font-family: var(--num);
  font-size: 0.98rem;
  color: var(--ink);
  font-weight: 700;
}

.seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  padding: 3px;
  margin-bottom: 12px;
  border-radius: 999px;
  /* Opaque, so content scrolling underneath doesn't show through. */
  background: var(--surface);
  box-shadow:
    0 0 0 0.5px var(--glass-edge),
    0 4px 12px -6px rgba(0, 0, 0, 0.2);
}
.seg .thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / var(--n));
  border-radius: 999px;
  background: var(--surface);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.14),
    0 0 0 0.5px var(--line2);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 0.45s var(--spring);
}
.seg a,
.seg button {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 2px;
  border-radius: 999px;
  font-size: var(--t-meta);
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.seg [aria-current="true"],
.seg [aria-pressed="true"] {
  color: var(--ink);
}
/* Match sections: each tab as wide as its label ("Commentary" needs more room than
   "Info"), the current one filled cobalt like the bottom tabs. Sub-switches stay
   neutral with a sliding thumb. */
.seg:not(.sub) {
  display: flex;
  /* On the narrowest phones the four labels don't fit: the strip scrolls sideways. */
  overflow-x: auto;
  scrollbar-width: none;
}
.seg:not(.sub)::-webkit-scrollbar {
  display: none;
}
.seg:not(.sub) .thumb {
  display: none;
}
.seg:not(.sub) a {
  flex: 1 0 auto;
  padding: 0 14px;
  overflow: visible;
}
.seg:not(.sub) a[aria-current="true"] {
  background: var(--cobalt);
}
.seg:not(.sub) [aria-current="true"] {
  color: #fff;
}
/* Match sections stick under the top bar on a full-width band: once stuck, the band
   turns the page colour so nothing scrolling beneath shows beside the pill. */
.segbar {
  position: sticky;
  top: calc(var(--safe-t) + 48px);
  z-index: 10;
  margin: 0 calc(-1 * var(--gut)) 12px;
  padding: 4px var(--gut) 8px;
}
.segbar.stuck {
  background: var(--bg);
}
.segbar .seg {
  margin-bottom: 0;
}
.seg.sub {
  background: var(--sunk);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* tables */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-meta);
}
.tbl th {
  font-size: var(--t-cap);
  font-weight: 650;
  color: var(--muted);
  text-align: right;
  padding: 9px 6px 7px;
  white-space: nowrap;
}
/* The name column takes the spare width; each figure column is as wide as its
   figures, so a wide screen doesn't spread the numbers apart. */
.tbl th:first-child,
.tbl td:first-child {
  width: 100%;
  text-align: left;
  padding-left: 14px;
}
.tbl th:not(:first-child),
.tbl td.n {
  white-space: nowrap;
  padding-left: 9px;
  padding-right: 9px;
}
.tbl th:last-child,
.tbl td:last-child {
  padding-right: 14px;
}
.tbl td {
  text-align: right;
  padding: 9px 6px;
  border-top: 0.5px solid var(--line2);
  font-variant-numeric: tabular-nums;
  vertical-align: top;
}
.tbl td.n {
  font-family: var(--num);
  font-size: 1.02rem;
  font-weight: 600;
}
.tbl td.n.hi {
  font-weight: 700;
  color: var(--ink);
}
.tbl .who {
  font-weight: 620;
  font-size: var(--t-body);
}
.tbl .who small {
  font-weight: 600;
  color: var(--muted);
  font-size: var(--t-cap);
  margin-left: 3px;
}
.tbl .out {
  display: block;
  color: var(--muted);
  font-size: var(--t-cap);
  font-weight: 500;
  margin-top: 1px;
}
.tbl .out.not {
  color: var(--win);
  font-weight: 650;
}
.tbl tr.on .who::after {
  content: "*";
  color: var(--live);
  margin-left: 2px;
}
.tbl tfoot td {
  font-weight: 650;
}
.tbl .tot {
  font-family: var(--num);
  font-size: 1.25rem;
  font-weight: 700;
}

.inn-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px 4px;
}
.inn-h b {
  font-size: var(--t-title);
  font-weight: 700;
}
.inn-h .num {
  font-size: 1.6rem;
}
.inn-h .num small {
  font-family: var(--sans);
  font-size: var(--t-cap);
  color: var(--muted);
  font-weight: 600;
  margin-left: 4px;
}
.kv {
  padding: 10px 14px;
  border-top: 0.5px solid var(--line2);
  font-size: var(--t-meta);
  color: var(--ink2);
}
.kv b {
  color: var(--ink);
  font-weight: 650;
}
.kv .lbl {
  display: block;
  font-size: var(--t-cap);
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fow {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.fow span {
  white-space: nowrap;
}

details.inn {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: 0 0 0 0.5px var(--line2);
  overflow: hidden;
}
details.inn + details.inn {
  margin-top: 10px;
}
details.inn > summary {
  list-style: none;
  cursor: pointer;
}
details.inn > summary::-webkit-details-marker {
  display: none;
}
details.inn > summary .inn-h {
  padding-bottom: 13px;
}
details.inn > summary .chev {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--spring);
  margin-left: 6px;
  vertical-align: -2px;
}
details.inn[open] > summary .chev {
  transform: rotate(180deg);
}
details.inn[open] > summary .inn-h {
  padding-bottom: 4px;
}

/* now batting / bowling */
.now {
  display: grid;
  gap: 10px;
}
/* The over in progress and the one before, one row each; an over's balls wrap
   within their row rather than push the card wider. */
.recent {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-top: 0.5px solid var(--line2);
}
.recent .ov {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 8px;
  align-items: start;
}
.recent .ov .lbl {
  padding-top: 4px;
  font-size: var(--t-cap);
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
}
.recent .balls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.recent .b {
  min-width: 24px;
  height: 24px;
  font-size: 0.85rem;
}
.b {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--sunk);
  font-family: var(--num);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink2);
}
.b.dot {
  color: var(--muted);
}
.b.f4 {
  background: var(--chip-four);
  color: #fff;
}
.b.f6 {
  background: var(--chip-six);
  color: #fff;
}
.b.w {
  background: var(--chip-wkt);
  color: #fff;
}
.b.f4,
.b.f6,
.b.w {
  box-shadow:
    0 0 0 2px var(--die),
    0 2px 6px rgba(14, 19, 48, 0.18);
}
.b.x {
  background: color-mix(in srgb, var(--extra) 20%, transparent);
  color: var(--extra-ink);
}
/* A reviewed ball: the tangerine sticker colour, dark ink like the state labels. */
.b.drs {
  background: var(--sticker);
  color: var(--on-sticker);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 2px var(--die),
    0 2px 6px rgba(14, 19, 48, 0.18);
}

/* commentary */
.comm {
  display: grid;
  gap: 0;
}
.ci {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 12px 14px;
  position: relative;
}
.ci + .ci::before,
.ov-card + .ci::before {
  content: "";
  position: absolute;
  top: 0;
  left: 68px;
  right: 0;
  border-top: 0.5px solid var(--line2);
}
/* The ball number sits above its 4/6/W chip; side by side they collide in 42px. */
.ci .ball {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--num);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--muted);
  padding-top: 1px;
}
.ci .ball .b {
  min-width: 24px;
  height: 24px;
  font-size: 0.85rem;
}
.ci .tx {
  font-size: var(--t-body);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.ci .tx b {
  font-weight: 680;
}
.ci.note {
  grid-template-columns: 1fr;
}
.ci.note .tx {
  color: var(--ink2);
  font-size: var(--t-meta);
  background: var(--sunk);
  padding: 10px 12px;
  border-radius: var(--r-s);
}
details.ci.note > summary {
  list-style: none;
  cursor: pointer;
}
details.ci.note > summary::-webkit-details-marker {
  display: none;
}
details.ci.note:not([open]) .tx {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* The bottom padding as a border: overflow clips at the padding box, so padding
     would show the top of a fifth line. */
  padding-bottom: 0;
  border-bottom: 10px solid var(--sunk);
}
/* "Read more" sits under the preview: the whole note is the control. */
details.ci.note .more-note {
  min-height: 0;
  padding-top: 6px;
}
details.ci.note[open] .more-note {
  display: none;
}
.ci.note + .ci::before,
.ci + .ci.note::before {
  left: 14px;
}
.ci.ev-four .ball {
  color: var(--four);
}
.ci.ev-six .ball {
  color: var(--six);
}
.ci.ev-wicket .ball {
  color: var(--wkt);
}
.ci.ev-wicket {
  background: color-mix(in srgb, var(--wkt) 6%, transparent);
}
.ci.ev-review:not(.ev-wicket) {
  background: color-mix(in srgb, var(--sticker) 7%, transparent);
}
/* The review's outcome under the ball's text, and the note posted while it was decided. */
.rv {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--sticker) 16%, var(--surface));
  font-size: var(--t-meta);
  color: var(--ink);
}
.rv > b,
.rv-h {
  font-weight: 750;
}
.rv > b::before,
.rv-h i {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--sticker);
  vertical-align: 1px;
}
.rv-note {
  margin-top: 4px;
  color: var(--ink2);
}
.rv-note b {
  font-weight: 650;
}
.ci.note.rv-wait .tx {
  background: color-mix(in srgb, var(--sticker) 16%, var(--surface));
  color: var(--ink);
}
.rv-h {
  display: block;
  margin-bottom: 2px;
}
.rv-h i {
  animation: pulse 1.6s ease-in-out infinite;
}
.ov-card {
  margin: 6px 10px;
  padding: 11px 12px;
  border-radius: var(--r-s);
  background: var(--sunk);
  display: grid;
  gap: 8px;
  font-size: var(--t-meta);
}
.ov-card .top-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.ov-card .top-line b {
  font-weight: 700;
}
.ov-card .num {
  font-size: 1.15rem;
}
.ov-card .balls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ov-card .balls .b {
  background: var(--surface);
}
.ov-card .balls .b.f4 {
  background: var(--chip-four);
}
.ov-card .balls .b.f6 {
  background: var(--chip-six);
}
.ov-card .balls .b.w {
  background: var(--chip-wkt);
}
.ov-card .who {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  color: var(--muted);
}
.ov-card .who b {
  color: var(--ink2);
  font-weight: 620;
}
.more {
  display: block;
  width: 100%;
  padding: 14px;
  border-top: 0.5px solid var(--line2);
  font-weight: 650;
  color: var(--accent);
  font-size: var(--t-meta);
}
.more:disabled {
  color: var(--muted);
}

/* A series as result chips, a row per format: the match number, then the winner's
   short name (India's wins cobalt, defeats grey), NR or Draw outlined, the next match
   ringed with its date. The words carry the meaning; colour repeats it. */
.rcr {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.rcr > div {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 8px;
  align-items: start;
}
.rcr .lbl {
  padding-top: 5px;
  font-size: var(--t-cap);
  font-weight: 650;
  color: var(--muted);
}
.rcs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
/* A grid row, so the number and date share a baseline and the row sits in the
   middle of the chip whatever its font size. */
.rc {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: baseline;
  align-content: center;
  gap: 4px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--sunk);
  color: var(--ink);
  font-family: var(--num);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.1;
  white-space: nowrap;
}
/* Centre on the letters, not the font's descender space (dates and scores have none). */
.rc > * {
  text-box: trim-both cap alphabetic;
}
.rc small {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 650;
  color: var(--muted);
}
.rc.won {
  background: var(--cobalt);
  color: #fff;
  box-shadow: 0 0 0 2px var(--die);
}
.rc.won small {
  color: #fff;
}
.rc.nr,
.rc.ahead {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}
.rc.nr {
  color: var(--muted);
}
.rc.ahead {
  color: var(--ink2);
  font-family: var(--sans);
  font-size: var(--t-cap);
  font-weight: 650;
}
.rc.next {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.rc.live {
  background: color-mix(in srgb, var(--live) 10%, transparent);
  color: var(--bad-ink);
  box-shadow: inset 0 0 0 2px var(--live);
}
.rc.live b::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--live);
  vertical-align: 1px;
  animation: pulse 1.6s ease-in-out infinite;
}
/* A section a link lands on (#india/results) clears the top bar when scrolled to. */
#results {
  scroll-margin-top: calc(var(--safe-t) + 60px);
}
#results:focus:not(:focus-visible) {
  outline: none;
}

/* Home: the series the live or next match belongs to */
.series-now .nm {
  font-weight: 700;
  font-size: var(--t-title);
}
.series-now .sub {
  margin-top: 2px;
  font-size: var(--t-meta);
  color: var(--muted);
}
.series-now .latest {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 0.5px solid var(--line2);
  font-size: var(--t-meta);
  color: var(--ink2);
}
.series-now .latest .lbl {
  margin-right: 8px;
  font-size: var(--t-cap);
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.to-tab {
  display: block;
  margin: 14px 4px 0;
  min-height: 44px;
  line-height: 44px;
  font-weight: 650;
  font-size: var(--t-meta);
  color: var(--accent);
}
/* fall of wickets in the batting innings, latest stuck on */
.fowx {
  padding: 12px 14px 14px;
  border-top: 0.5px solid var(--line2);
}
.fowx .lbl {
  font-size: var(--t-cap);
  color: var(--muted);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fowx ol {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.fowx li {
  display: grid;
  justify-items: center;
  padding: 5px 0;
  border-radius: 10px;
  background: var(--sunk);
  font-size: 0.66rem;
  font-weight: 650;
  color: var(--muted);
}
.fowx li b {
  font-family: var(--num);
  font-size: 1.05rem;
  color: var(--ink);
}
.fowx li.last {
  background: var(--sticker);
  color: var(--on-sticker);
}
.fowx li.last b {
  color: var(--on-sticker);
}

/* squads */
.pl {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 14px;
  position: relative;
}
.pl + .pl::before {
  content: "";
  position: absolute;
  top: 0;
  left: 66px;
  right: 0;
  border-top: 0.5px solid var(--line2);
}
.face {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sunk);
}
.pl .nm {
  font-weight: 620;
}
.pl .rl {
  font-size: var(--t-cap);
  color: var(--muted);
}
.badge {
  display: inline-grid;
  place-items: center;
  height: 18px;
  min-width: 18px;
  padding: 0 5px;
  margin-left: 5px;
  border-radius: 5px;
  font-size: 0.62rem;
  font-weight: 800;
  background: var(--sunk);
  color: var(--ink2);
  vertical-align: 1px;
}
.badge.c {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.badge.in {
  background: color-mix(in srgb, var(--win) 9%, transparent);
  color: var(--win);
}
.badge.out {
  background: color-mix(in srgb, var(--live) 10%, transparent);
  color: var(--bad-ink);
}
.xi-chg {
  margin: 0;
  padding: 12px 14px;
  font-size: var(--t-cap);
  line-height: 1.6;
  color: var(--ink2);
  border-bottom: 0.5px solid var(--line2);
}
.xi-chg b {
  display: block;
  color: var(--muted);
  font-weight: 700;
}
.xi-chg > span {
  display: block;
}
.xi-chg .badge {
  min-width: 30px;
  margin: 0 6px 0 0;
}
.xi-chg + .grp-h {
  border-top: 0;
}
.grp-h {
  padding: 12px 14px 6px;
  font-size: var(--t-cap);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-top: 0.5px solid var(--line2);
}
.grp-h:first-child {
  border-top: 0;
}

/* info */
.potm {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-top: 0.5px solid var(--line2);
}
.potm .face {
  width: 48px;
  height: 48px;
}

/* ---------- sheets, messages and small controls */
.sheet {
  width: min(calc(100% - 24px), 480px);
  max-height: calc(100% - 48px);
  margin: auto auto 12px;
  padding: 8px 18px 20px;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
/* The sheet scrolls when its settings outgrow a short screen. */
.sheet {
  overflow-y: auto;
}
.pick {
  display: grid;
  gap: 8px;
  padding: 10px 4px 4px;
  border-top: 0.5px solid var(--line2);
  font-size: var(--t-meta);
  color: var(--muted);
}
.pick select {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: var(--sunk);
  color: var(--ink);
  font: inherit;
  font-size: var(--t-body);
}
.sheet::backdrop {
  background: rgba(14, 19, 48, 0.45);
}
@media (min-width: 720px) {
  .sheet {
    margin: auto;
  }
}
.sheet-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet h2 {
  margin: 0;
  font-size: var(--t-title);
  font-weight: 800;
}
.sheet p {
  margin: 8px 0;
  line-height: 1.45;
}
.sheet fieldset {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
}
.sheet legend {
  padding: 0 0 6px;
  font-size: var(--t-cap);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 4px;
  border-top: 0.5px solid var(--line2);
  cursor: pointer;
}
.opt input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--cobalt);
}
.opt small {
  margin-left: 6px;
  color: var(--muted);
}
.row-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin-top: 12px;
  border-top: 0.5px solid var(--line2);
  font-weight: 650;
  color: var(--accent);
}
.status-line {
  font-weight: 650;
}
.btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--sunk);
  font-weight: 700;
  color: var(--ink);
}
.btn.primary {
  width: 100%;
  margin-top: 8px;
  background: var(--cobalt);
  color: #fff;
}
.btn:disabled {
  opacity: 0.5;
}
/* Text-style buttons and links, padded to a 44px target without looking like buttons. */
.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: inherit;
  font-weight: 650;
  color: var(--accent);
}
.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(var(--safe-b) + var(--tabh) + 22px);
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 440px);
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: var(--t-meta);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  margin: 0 0 10px;
  padding: 6px 14px;
  border-radius: var(--r-s);
  background: color-mix(in srgb, var(--sticker) 16%, var(--surface));
  font-size: var(--t-meta);
}
.key {
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 0.5px solid var(--line2);
  font-size: var(--t-cap);
  line-height: 1.5;
  color: var(--muted);
}
details.inn + .key {
  margin-top: 10px;
  border: 0;
}
abbr[title] {
  text-decoration: none;
  cursor: help;
}
/* Names, labels and status lines wrap rather than lose their ends to an ellipsis;
   a two-innings score breaks at its "&". */
.fxr .nm {
  white-space: normal;
}
.hrow .sc,
.side .sc {
  white-space: normal;
}
/* A team name is never narrower than its longest word; a long score wraps at its
   spaces instead ("528/8d" over "151 ov"). */
.hrow {
  grid-template-columns: 34px minmax(min-content, 1fr) minmax(0, auto);
}
.side {
  grid-template-columns: 22px minmax(min-content, 1fr) minmax(0, auto);
}
.mhero .pill {
  background: rgba(14, 19, 48, 0.28);
  color: #fff;
}
.mr .why {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.side .nm,
.hrow .nm {
  white-space: normal;
  /* break-word, not anywhere: anywhere lets the column shrink to one letter. */
  overflow-wrap: break-word;
  line-height: 1.2;
}
/* The narrowest phones: smaller hero figures, tighter tables and section tabs. */
@media (max-width: 360px) {
  :root {
    --n-hero: 2.1rem;
  }
  .brand {
    gap: 6px;
    padding: 0 2px;
  }
  /* Five tabs (an ICC event's included): smaller labels, each on one line. */
  .tabs.five a {
    font-size: 0.62rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }
  /* Points tables: no-results drop out (played minus won minus lost gives them). */
  .tbl.pts td:nth-child(6),
  .tbl.pts th:nth-child(6) {
    display: none;
  }
  .tbl.pts td.n,
  .tbl.pts th {
    font-size: 0.95em;
  }
  /* "18s ago", "Offline": the short form of the freshness line. */
  .fresh .fx {
    display: none;
  }
  .tbl th:not(:first-child),
  .tbl td.n {
    padding-left: 5px;
    padding-right: 5px;
  }
  .tbl th:first-child,
  .tbl td:first-child {
    padding-left: 12px;
  }
  .tbl th:last-child,
  .tbl td:last-child {
    padding-right: 12px;
  }
  .seg:not(.sub) a {
    min-width: 44px;
    padding: 0 8px;
  }
}
/* The tab highlight waits for the app to know which tab is current. */
.tabs:not([data-ready]) .tab-pill {
  opacity: 0;
}
/* Very short screens (landscape phones): the tab bar stops floating over content. */
@media (max-height: 460px) {
  .tabs {
    position: static;
    transform: none;
    margin: 16px auto calc(var(--safe-b) + 12px);
  }
  main {
    padding-bottom: 8px;
  }
  .toast {
    bottom: 16px;
  }
}

/* About & privacy */
.prose {
  padding-bottom: 40px;
  line-height: 1.55;
}
.prose h1 {
  margin: 8px 0 4px;
  font-size: var(--t-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.prose h2 {
  margin: 24px 0 4px;
  font-size: var(--t-title);
  font-weight: 750;
}
.prose p,
.prose li {
  color: var(--ink2);
}
.prose ul {
  padding-left: 20px;
}

.nojs {
  padding: 40px;
  text-align: center;
}
@media (min-width: 720px) {
  :root {
    --gut: 24px;
  }
  .ph {
    padding-top: 18px;
  }
}

/* ---------- QA fixes */

/* Skip link: off screen until focused. */
.skip {
  position: fixed;
  z-index: 60;
  top: 8px;
  left: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}
/* Focused items scroll clear of the top bar and the floating tab bar. */
html {
  scroll-padding-top: 72px;
  scroll-padding-bottom: calc(var(--tabh) + 32px + var(--safe-b));
}
/* The page colour reaches the bottom of the screen on short pages. */
body {
  min-height: 100vh;
  min-height: 100dvh;
}
/* Focus rings inside clipped lists and cards are drawn inside, so none is cut off. */
.list :focus-visible,
.card.flush :focus-visible,
details > summary:focus-visible {
  outline-offset: -3px;
}
/* The toast's action. */
.toast-act {
  margin-left: 6px;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}
/* The commentary source switch's label. */
.src-l {
  margin: 0 4px 6px;
  font-size: var(--t-cap);
  color: var(--muted);
}
/* A note in a sheet: the open match isn't covered by alerts. */
.notice-line {
  padding: 10px 12px;
  border-radius: var(--r-s);
  background: color-mix(in srgb, var(--sticker) 16%, var(--surface));
  font-size: var(--t-meta);
}
/* A placeholder opponent. */
.hrow.tbc .nm {
  color: var(--muted);
  font-style: italic;
  font-weight: 600;
}
/* Cards that open a page. */
a.card.series-now,
a.card.fav {
  color: inherit;
  text-decoration: none;
}
a.card.series-now {
  display: block;
}
.card.fav .chev.go {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
}
/* Commentary entries wrapped for the list role keep their separators. */
.ci-w + .ci::before,
.ci-w + .ci-w > .ci::before,
.ci + .ci-w > .ci::before,
.ov-card + .ci-w > .ci::before {
  content: "";
  position: absolute;
  top: 0;
  left: 68px;
  right: 0;
  border-top: 0.5px solid var(--line2);
}
/* The day/night icon at the start of a fixture row's time line. */
.fxm .why .lt {
  margin: 0 5px 0 0;
  vertical-align: -2px;
}

/* A heading or section focused by the app (a new page, a revealed section) is a
   reading position, not a control: no ring, for touch and keyboard alike. */
[tabindex="-1"]:focus {
  outline: none;
}
/* Poster: the followed team's tag on the dark band. */
.poster .top .tag.fav {
  margin-left: 8px;
  vertical-align: 1px;
  background: #f2b705;
  color: #1b1600;
}
.poster .top .tag.fav i {
  color: #1b1600;
}
/* "Stop following" under the IPL tab's Your team card. */
.unfollow {
  margin: 2px 4px 0;
}
/* Headings in the scorecard and squads keep their look. */
h2.inn-t {
  margin: 0;
  font-size: var(--t-title);
  font-weight: 700;
}
h2.grp-h {
  margin: 0;
}
