/* CRIX promotions for cricketscore.app (templates/house_ads.html, house_ads.go). Neutral names on purpose: class "crx",
   data-crx* attributes, this file name. Blockers match "ad", "ads", "sponsor", "banner", "promo" in class names, ids and
   URLs; nothing here or in the markup may. The server renders the promotion visible; this file is its whole behaviour
   (crx.js only adds analytics and the sticky bar's dismissal).
   One markup per concept; the slot shape (.crx--strip|box|card|bar, from house_ads.go Kind) and the slot's width
   (container queries) pick the layout, and data-device (server, from the User-Agent) picks the call to action:
   android -> one Google Play button, ios -> one App Store button, desktop -> QR code (to /crix) + both official badges.
   Fonts and colours come from the Floodlight tokens in cricketscore.css; the fallbacks keep the design preview self-contained. */

/* ---------- Wrapper ---------- */
.crx[hidden]{display:none!important}
.crx{container:hx/inline-size;min-width:0}
.crx{position:relative;margin:var(--s4,16px) 0}

/* ---------- Tokens ---------- */
.hx{
  --hx-bg:oklch(.2 .036 262);--hx-line:oklch(.32 .032 262);--hx-line-hi:oklch(.42 .03 262);
  --hx-ink:var(--ink,oklch(.97 .007 85));--hx-ink-2:var(--ink-2,oklch(.88 .012 80));--hx-ink-3:var(--ink-3,oklch(.8 .014 75));
  --hx-accent:var(--accent,oklch(.83 .165 78));--hx-on-accent:var(--night,oklch(.135 .032 262));
  --hx-live:var(--live-ink,oklch(.74 .17 27));--hx-live-fill:var(--live-fill,oklch(.57 .22 27));
  --hx-display:var(--score,"CS Display","Arial Narrow",system-ui,sans-serif);
  --hx-text:var(--text,"CS Text",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif);
  --hx-app:#0d1117;
}

/* ---------- Base ---------- */
.hx{position:relative;isolation:isolate;display:grid;overflow:hidden;box-sizing:border-box;margin:0;color:var(--hx-ink);background:var(--hx-bg);border:1px solid var(--hx-line);border-radius:2px;font-family:var(--hx-text);font-variant-numeric:tabular-nums lining-nums;text-align:left;-webkit-font-smoothing:antialiased;transition:border-color .2s}
.hx *,.hx *::before,.hx *::after{box-sizing:border-box}
.hx p,.hx dl{margin:0}
.hx img{display:block;max-width:none}
/* The one light in the unit: a floodlight from above, over the phone (Floodlight's "lit from above" device). */
.hx::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(42% 80% at 82% -10%,oklch(.92 .07 85/.17),transparent 72%),linear-gradient(180deg,oklch(1 0 0/.03),transparent 45%)}
@media(hover:hover){.hx:has(.hx-cta:hover,.hx-store:hover,.hx-url:hover){border-color:var(--hx-line-hi)}}

.hx-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.hx-brand{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;font:500 12.5px/1.2 var(--hx-text);color:var(--hx-ink-3)}
.hx-icon{width:30px;height:30px;flex:none;border-radius:23%;box-shadow:0 0 0 1px oklch(1 0 0/.1)}
.hx-lockup{display:flex;align-items:center;gap:9px;min-width:0}
.hx-word{width:auto;height:19px;flex:none;margin-top:1px}
.hx-meta{min-width:0;padding-left:9px;border-left:1px solid var(--hx-line-hi);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hx-title{font:700 30px/.98 var(--hx-display);letter-spacing:-.004em;color:var(--hx-ink);text-wrap:balance}
.hx-title em{font-style:normal;color:var(--hx-accent)}
.hx-sub{font:400 14px/1.42 var(--hx-text);color:var(--hx-ink-2);text-wrap:pretty}
.hx-sr{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}

/* Live marker: the site's red dot + caps, never a filled sticker. */
.hx-live{display:inline-flex;align-items:center;gap:7px;min-width:0;font:700 11.5px/1 var(--hx-text);letter-spacing:.09em;text-transform:uppercase;color:var(--hx-live);white-space:nowrap}
.hx-lockup .hx-live{padding-left:9px;border-left:1px solid var(--hx-line-hi)}
.hx-live i{width:7px;height:7px;flex:none;border-radius:50%;background:var(--hx-live-fill);box-shadow:0 0 0 3px oklch(.57 .22 27/.22)}
.hx-live b{font-weight:700;color:var(--hx-ink-3);letter-spacing:.06em}

/* ---------- Calls to action ---------- */
.hx-act{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.hx-cta{position:static;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border-radius:999px;background:var(--hx-accent);color:var(--hx-on-accent);font:700 15px/1 var(--hx-text);letter-spacing:.005em;text-decoration:none;white-space:nowrap;box-shadow:inset 0 1px 0 oklch(1 0 0/.4),0 1px 2px oklch(0 0 0/.4);transition:filter .15s}
.hx-cta::after{content:"";position:absolute;inset:0;z-index:5}  /* on phones the whole unit is the link */
.hx-cta:focus-visible{outline:none}
.hx-cta:focus-visible::after{outline:2px solid var(--hx-accent);outline-offset:-3px;border-radius:2px}
@media(hover:hover){.hx-cta:hover{filter:brightness(1.08)}}
.hx-short{display:none}
.hx-note{display:block;font:500 12px/1.3 var(--hx-text);color:var(--hx-ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crx[data-device=desktop] .hx-act{display:none}

/* Desktop: QR on a light tile (dark modules on light scan best), its label beside it, both official badges. */
.hx-desk{display:none;align-items:center;gap:14px;min-width:0}
.crx[data-device=desktop] .hx-desk{display:flex}
.hx-qr{display:grid;place-items:center;flex:none;width:84px;height:84px;padding:6px;border-radius:3px;background:#f6f3ec;box-shadow:0 0 0 1px oklch(1 0 0/.14)}
.hx-qr img{width:72px;height:72px}
.hx-scan{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;font:500 12.5px/1.3 var(--hx-text);color:var(--hx-ink-3)}
.hx-scan b{font:700 15px/1.15 var(--hx-text);color:var(--hx-ink)}
.hx-scan>span:not(.hx-stores){display:none}
.hx-url{position:static;color:var(--hx-ink-2);text-decoration:underline;text-decoration-color:var(--hx-line-hi);text-underline-offset:3px;white-space:nowrap}
.hx-url::after{content:"";position:absolute;inset:0;z-index:4}  /* desktop: the whole unit opens /crix */
.hx-url:focus-visible{outline:none}
.hx-url:focus-visible::after{outline:2px solid var(--hx-accent);outline-offset:-3px;border-radius:2px}
.hx-stores{display:none;gap:10px;margin-top:8px}
.hx-store{position:relative;z-index:6;display:block;flex:none;height:40px;border-radius:7px}
.hx-store img{width:auto;height:40px}
.hx-store:focus-visible{outline:2px solid var(--hx-accent);outline-offset:3px}

/* ---------- The phone: a neutral device (no notch, no brand) showing a real CRIX capture ---------- */
.hx-art{position:relative;min-width:0;pointer-events:none}
.hx-phone{--w:132px;position:absolute;width:var(--w);aspect-ratio:9/19.5;padding:calc(var(--w)*.03);border-radius:calc(var(--w)*.155);background:linear-gradient(150deg,oklch(.4 .012 262),oklch(.19 .012 262) 26%,oklch(.12 .01 262) 62%,oklch(.22 .012 262));box-shadow:inset 0 0 0 1px oklch(.58 .02 262/.5),inset 0 0 0 calc(var(--w)*.012) oklch(0 0 0/.55),0 26px 50px -10px oklch(0 0 0/.65),0 0 0 1px oklch(0 0 0/.35)}
.hx-screen{position:relative;height:100%;overflow:hidden;border-radius:calc(var(--w)*.125);background:var(--hx-app)}
.hx-screen>img{width:100%;height:auto}
/* One screen per platform where it matters: lazy images that are display:none are never fetched. */
.hx-shot--ios,.crx[data-device=ios] .hx-shot--and{display:none}
.crx[data-device=ios] .hx-shot--ios{display:block}

/* Lock screen (alerts): a dark ground at night, the time, three real CRIX alert formats. */
.hx-lock{position:absolute;inset:0;background:var(--hx-app) url("/static/crx/ground-tall.jpg") 100% 0/cover no-repeat}
.hx-lock::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,oklch(.1 .02 262/0),oklch(.1 .02 262/.35) 45%,oklch(.1 .02 262/.75))}
.hx-time{position:absolute;z-index:1;top:8%;left:0;right:0;text-align:center;font:600 calc(var(--w)*.235)/1 var(--hx-display);letter-spacing:.01em;color:oklch(.97 .01 85/.94)}
.hx-alerts{position:absolute;z-index:1;top:27%;left:4%;right:4%;display:flex;flex-direction:column;gap:calc(var(--w)*.035)}
.hx-alert{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:calc(var(--w)*.04);row-gap:calc(var(--w)*.012);align-items:center;padding:calc(var(--w)*.045) calc(var(--w)*.05);border-radius:calc(var(--w)*.075);background:oklch(.27 .018 262/.84);box-shadow:inset 0 0 0 1px oklch(1 0 0/.07);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.hx-alert img{grid-row:1/3;align-self:start;width:calc(var(--w)*.11);height:calc(var(--w)*.11);border-radius:23%}
.hx-alert b{min-width:0;font:700 calc(var(--w)*.068)/1.2 var(--hx-text);color:oklch(.98 0 0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hx-alert time{font:500 calc(var(--w)*.06)/1.2 var(--hx-text);color:oklch(.85 .01 262/.8)}
.hx-alert span{grid-column:2/4;min-width:0;font:400 calc(var(--w)*.063)/1.28 var(--hx-text);color:oklch(.92 .01 262/.9);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

.crx--strip .hx-time{display:none}
.crx--strip .hx-alerts{top:5%}

/* Live match (contextual): the page's score, set like the site's scoreboard. */
.hx-score{display:grid;grid-template-columns:auto minmax(0,auto);justify-content:start;column-gap:14px;row-gap:3px;max-width:100%;font:700 22px/1.05 var(--hx-display);letter-spacing:.005em}
.hx-score dt{max-width:11ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--hx-ink-3);font-weight:600}
.hx-score dd{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--hx-ink);white-space:nowrap}
.hx--match .hx-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}

/* ---------- Motion: one moving element per unit, only when seen, never under reduced motion ---------- */
/* Alerts: the three notifications arrive as the unit scrolls into view (scroll-linked, no autoplay). */
@media(prefers-reduced-motion:reduce){.hx *,.hx *::before,.hx *::after{animation:none!important;transition:none!important}}

/* =====================================================================================
   CARD: in-feed, in-article and empty-spot slots (358 phone, 612 article, 800 home feed, 1216 news feed)
   ===================================================================================== */
.crx--card .hx{grid-template-columns:minmax(0,1fr) 124px;column-gap:6px;min-height:272px;padding:16px 0 16px 16px}
.crx--card .hx-title{margin-top:14px;font-size:calc(34px*var(--ts,1))}
.crx--card .hx-sub{margin-top:8px}
.crx--card .hx-act,.crx--card .hx-desk{margin-top:auto;padding-top:12px}
.crx--card .hx-phone{--w:124px;top:60px;left:0}
.crx--card .hx-meta{display:none}
.crx--card .hx-desk{gap:12px}
.crx--card .hx-qr{width:80px;height:80px;padding:5px}
.crx--card .hx-qr img{width:70px;height:70px}
@container hx (min-width:400px){
  .crx--card .hx{grid-template-columns:minmax(0,1fr) 150px}
  .crx--card .hx-title{font-size:calc(38px*var(--ts,1))}
  .crx--card .hx-phone{--w:140px;top:44px;left:4px}
  .crx--card .hx-meta{display:block}
}
@container hx (min-width:560px){
  .crx--card .hx{grid-template-columns:minmax(0,1fr) 196px;column-gap:24px;padding:24px 0 24px 28px}
  .crx[data-device=desktop].crx--card .hx{min-height:300px}
  .crx--card .hx-title{margin-top:18px;font-size:calc(44px*var(--ts,1))}
  .crx--card .hx-sub{max-width:36ch;font-size:15px}
  .crx--card .hx-phone{--w:162px;top:26px;left:4px}
  .crx[data-device=desktop].crx--card .hx-phone{--w:176px;top:40px;left:2px}
  .crx--card .hx-qr{width:84px;height:84px;padding:6px}
  .crx--card .hx-qr img{width:72px;height:72px}
  .crx--card .hx-stores{display:flex}
}
@container hx (min-width:760px){
  .crx--card .hx{grid-template-columns:minmax(0,1fr) 300px;min-height:264px;padding:28px 0 28px 36px}
  .crx--card .hx-title{font-size:calc(56px*var(--ts,1))}
  .crx--card .hx-sub{max-width:52ch}
  .crx--card .hx-phone,.crx[data-device=desktop].crx--card .hx-phone{--w:186px;top:32px;left:56px}
}
/* Widest (news feed row): copy | phone | QR and badges, all on one band. */
@container hx (min-width:1000px){
  .crx--card .hx,.crx[data-device=desktop].crx--card .hx{grid-template-columns:minmax(0,1fr) 240px auto;grid-template-rows:1fr auto auto auto auto auto 1fr;column-gap:40px;min-height:272px;padding:28px 48px}
  .crx--card .hx-copy{display:contents}
  .crx--card .hx-brand{grid-column:1;grid-row:2}
  .crx--card .hx-title{grid-column:1;grid-row:3;margin-top:20px;font-size:calc(60px*var(--ts,1))}
  .crx--card .hx-sub,.crx--card .hx-score{grid-column:1;grid-row:4}
  .crx--card .hx-sub{font-size:16px}
  .crx--card .hx-act{grid-column:1;grid-row:6;margin:0;padding-top:20px}
  .crx--card .hx-desk,.crx[data-device=desktop].crx--card .hx-desk{grid-column:3;grid-row:1/8;align-self:center;margin:0;padding:0}
  .crx--card .hx-art{grid-column:2;grid-row:1/8}
  .crx--card .hx-phone,.crx[data-device=desktop].crx--card .hx-phone{--w:200px;top:36px;left:20px}
  .crx--card .hx-scan>span:not(.hx-stores){display:block}
}

/* =====================================================================================
   BOX: sidebars, 300x250 in articles, about 360x300 on the home rail (desktop only)
   ===================================================================================== */
.crx--tile .hx{grid-template-columns:minmax(0,1fr) 96px;column-gap:6px;min-height:83.333cqw;padding:16px 0 16px 16px}
.crx--tile .hx-meta,.crx--tile .hx-sub{display:none}
.crx--tile .hx-title{margin-top:12px;font-size:calc(30px*var(--ts,1))}
.crx--tile .hx-act,.crx--tile .hx-desk{margin-top:auto;padding-top:10px}
.crx--tile .hx-desk{gap:10px}
.crx--tile .hx-qr{width:80px;height:80px;padding:5px}
.crx--tile .hx-qr img{width:70px;height:70px}
.crx--tile .hx-scan b{font-size:14px;line-height:1.2}
.crx--tile .hx-url{font-size:0;text-decoration:none}
.crx--tile .hx-cta{padding:0 16px;font-size:14px}
.crx--tile .hx-phone{--w:132px;top:44px;left:0}
@container hx (min-width:340px){
  .crx--tile .hx{grid-template-columns:minmax(0,1fr) 118px;padding:18px 0 18px 18px}
  .crx--tile .hx-title{font-size:calc(36px*var(--ts,1))}
  .crx--tile .hx-sub{display:block;margin-top:8px;font-size:13.5px}
  .crx--tile .hx-phone{--w:146px;top:48px}
}

/* =====================================================================================
   BANNER: top and footer (358 phone, 736 tablet, 1216 desktop)
   ===================================================================================== */
/* Phone: icon | title over "CRIX · Free on Google Play" | Install. Nothing else. */
.crx--strip .hx{grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:1fr auto auto 1fr;column-gap:12px;row-gap:4px;min-height:100px;padding:0 12px}
.crx--strip .hx-copy,.crx--strip .hx-act,.crx--strip .hx-lockup{display:contents}
.crx--strip .hx-brand{grid-column:1;grid-row:1/5;align-self:center}
.crx--strip .hx-icon{grid-column:1;grid-row:1/5;align-self:center;width:52px;height:52px}
.crx--strip .hx-word,.crx--strip .hx-meta,.crx--strip .hx-sub,.crx--strip .hx-art,.crx--strip .hx-desk,.crx--strip .hx-score,.crx--strip .hx-live{display:none}
.crx--strip .hx-title{grid-column:2;grid-row:2;font-size:calc(24px*var(--ts,1));line-height:.95;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.crx--strip .hx-note{grid-column:2;grid-row:3}
.crx--strip .hx-cta{grid-column:3;grid-row:1/5;align-self:center;min-height:40px;padding:0 18px}
.crx--strip .hx-long{display:none}
.crx--strip .hx-short{display:inline}
@container hx (max-width:639px){
  /* a desktop window this narrow: the Play button stands in for the QR and badges */
  .crx[data-device=desktop].crx--strip .hx-act{display:contents}
  .crx[data-device=desktop].crx--strip .hx-cta[data-crx-store=play]{display:inline-flex}
}
@container hx (min-width:640px){
  .crx--strip .hx{column-gap:20px;min-height:104px;padding:0 20px}
  .crx--strip .hx-icon{width:56px;height:56px}
  .crx--strip .hx-title{font-size:calc(32px*var(--ts,1));-webkit-line-clamp:2}
  .crx--strip .hx-sub{display:block;grid-column:2;grid-row:3;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .crx--strip .hx-note{display:none!important}
  .crx--strip .hx-cta{min-height:44px;padding:0 22px}
  .crx--strip .hx-long{display:inline}
  .crx--strip .hx-short{display:none}
  .crx[data-device=desktop].crx--strip .hx-desk{display:flex;grid-column:3;grid-row:1/5;align-self:center;gap:12px}
  .crx--strip .hx-qr{width:80px;height:80px;padding:5px}
  .crx--strip .hx-qr img{width:70px;height:70px}
}
/* Desktop-wide: brand lockup | title + line | phone rising from the floor | QR + badges. */
@container hx (min-width:960px){
  .crx--strip .hx{grid-template-columns:auto minmax(0,1fr) 184px auto;column-gap:28px;min-height:120px;padding:0 24px}
  .crx--strip .hx-brand{display:flex;gap:12px}
  .crx--strip .hx-lockup{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
  .crx--strip .hx-word{display:block;height:21px}
  .crx--strip .hx-meta{display:block;padding:0;border:0}
  .crx--strip .hx-title{font-size:calc(40px*var(--ts,1))}
  .crx--strip .hx-sub{font-size:15px}
  .crx--strip .hx-art{display:block;grid-column:3;grid-row:1/5;align-self:stretch}
  .crx--strip .hx-phone{--w:168px;top:16px;left:8px}
  .crx--strip .hx-cta{grid-column:4}
  .crx[data-device=desktop].crx--strip .hx-desk{grid-column:4;gap:14px}
  .crx--strip .hx-qr{width:84px;height:84px;padding:6px}
  .crx--strip .hx-qr img{width:72px;height:72px}
  .crx--strip .hx-stores{display:flex}
}

/* ---------- Concept accents ---------- */
/* watch: the ground under lights behind the phone (Android only: iOS has no live video). */
.hx--watch::before{background:radial-gradient(42% 80% at 82% -10%,oklch(.92 .07 85/.12),transparent 72%)}
.hx--watch .hx-art::before{content:"";position:absolute;inset:-40px -420px -40px -70px;z-index:-1;background:url("/static/crx/ground-wide.jpg") 30% 42%/cover no-repeat;opacity:.6;-webkit-mask-image:linear-gradient(90deg,transparent,#000 32%);mask-image:linear-gradient(90deg,transparent,#000 32%)}
.crx--strip .hx--watch .hx-art::before{inset:-60px -640px -60px -140px}
.crx[data-device=ios] .hx--watch .hx-art::before{display:none}

/* match: the brand row carries the live marker; the page's score sits under the title. */
.hx--match .hx-score{margin-top:12px}
/* Teams without short codes (house_ads.go leaves ShortA/ShortB empty): names on their own rows, never squeezed into one. */
.crx .hx--match.hx--long .hx-score{grid-template-columns:auto minmax(0,auto);column-gap:14px}
.crx .hx--match.hx--long .hx-score dd{margin-right:0}
.crx--card .hx--match .hx-title{margin-top:12px;font-size:27px}
.crx--tile .hx--match .hx-title{margin-top:12px;font-size:24px;-webkit-line-clamp:2}
.crx--tile .hx--match .hx-score{font-size:19px}
@container hx (min-width:560px){
  .crx--card .hx--match .hx-title{font-size:34px}
  .crx--card .hx--match .hx-score{grid-template-columns:auto minmax(0,auto) auto minmax(0,auto);column-gap:10px;font-size:24px}
  .crx--card .hx--match .hx-score dd:first-of-type{margin-right:12px}
}
@container hx (min-width:1000px){.crx--card .hx--match .hx-title{font-size:46px}}
.crx--strip .hx--match .hx-brand{display:contents}
.crx--strip .hx--match .hx-live{display:inline-flex;grid-column:2;grid-row:3;padding:0;border:0}
.crx--strip .hx--match .hx-note{display:none!important}
@container hx (min-width:640px){
  .crx--strip .hx--match{grid-template-columns:auto minmax(0,1fr) auto auto}
  .crx--strip .hx--match .hx-title{font-size:24px;-webkit-line-clamp:2}
  .crx--strip .hx--match .hx-score{display:grid;grid-column:3;grid-row:1/5;align-self:center;font-size:22px}
  .crx--strip .hx--match .hx-cta,.crx[data-device=desktop].crx--strip .hx--match .hx-desk{grid-column:4}
}
@container hx (min-width:960px){
  .crx--strip .hx--match{grid-template-columns:auto minmax(0,1fr) auto auto}
  .crx--strip .hx--match .hx-brand{display:flex}
  .crx--strip .hx--match .hx-live{grid-column:auto;grid-row:auto}
  .crx--strip .hx--match .hx-title{font-size:28px}
  .crx--strip .hx--match .hx-art{display:none}  /* the live score is this strip's picture */
  .crx--strip .hx--match .hx-cta,.crx[data-device=desktop].crx--strip .hx--match .hx-desk{grid-column:4}
}
@container hx (min-width:960px){.crx--strip .hx-lockup .hx-live{display:inline-flex;padding:0;border:0}}

/* =====================================================================================
   NARROW: a 320px phone gives the slot 288px. Not in preview.html (its narrowest slot is 300): the card keeps its
   phone but gives it less room and drops to the short button label; the banner wraps its note and lets the
   live-match title take three lines instead of cutting it mid-word.
   ===================================================================================== */
@container hx (max-width:339px){
  .crx--card .hx{grid-template-columns:minmax(0,1fr) 92px;column-gap:4px;padding-left:12px}
  .crx--card .hx-phone{--w:92px;top:64px}
  .crx--card .hx-title{font-size:calc(26px*var(--ts,1))}
  .crx--card .hx--match .hx-title{font-size:24px}
  .crx--card .hx-long{display:none}
  .crx--card .hx-short{display:inline}
  .crx--card .hx-note{white-space:normal}
  .crx--strip .hx{column-gap:10px;padding:0 10px}
  .crx--strip .hx-icon{width:44px;height:44px}
  .crx--strip .hx-cta{padding:0 14px}
  .crx--strip .hx-note{white-space:normal;line-height:1.25}
  .crx--strip .hx--match .hx-title{font-size:18px;-webkit-line-clamp:3}
}


/* =====================================================================================
   PREMIUM (owner 2026-11-19: "a lot more premium with text like free live video"): the bar is a streaming brand's promo
   unit, not a banner. A rich dark gradient with depth and a floodlight glow, a crisp gold hairline and a soft shadow;
   big display type; a red LIVE pill with a gentle pulse; a gold "Watch free in CRIX" button; real CRIX captures; at
   most one line of body copy and three chips. Still the site's own colours and fonts; nothing here looks like site
   content, a system warning or a fake control. Every animation sits in prefers-reduced-motion: no-preference.
   ===================================================================================== */
/* The disclosure is a small tab on the frame's top edge: plain text, always visible. */
.crx__label{position:absolute;z-index:4;top:0;left:16px;transform:translateY(-50%);margin:0;padding:2px 9px 3px;background:var(--night,oklch(.135 .032 262));border:1px solid oklch(.83 .165 78/.4);border-radius:3px;font:600 11px/1.25 var(--text,system-ui,sans-serif);letter-spacing:.04em;color:var(--ink-2,oklch(.88 .012 80));white-space:nowrap}
.crx{margin-top:calc(var(--s4,16px) + 6px)}
.hx{
  border:1px solid oklch(.83 .165 78/.36);border-radius:10px;
  background:
    radial-gradient(62% 130% at 92% -28%,oklch(.5 .11 255/.6),transparent 66%),
    radial-gradient(48% 84% at -4% 124%,oklch(.64 .13 70/.2),transparent 72%),
    linear-gradient(165deg,oklch(.255 .054 262),oklch(.15 .034 262));
  box-shadow:inset 0 1px 0 oklch(1 0 0/.1),0 24px 46px -26px oklch(0 0 0/.95),0 0 70px -26px oklch(.83 .165 78/.42);
}
.hx::before{background:linear-gradient(180deg,oklch(1 0 0/.05),transparent 42%)}
.hx::after{content:"";position:absolute;z-index:3;inset:0 10% auto 10%;height:1px;background:linear-gradient(90deg,transparent,oklch(.93 .13 88/.95) 30%,oklch(.93 .13 88/.95) 70%,transparent);pointer-events:none}
@media(hover:hover){.hx:has(.hx-cta:hover,.hx-store:hover,.hx-url:hover){border-color:oklch(.9 .15 85/.7);box-shadow:inset 0 1px 0 oklch(1 0 0/.12),0 24px 46px -26px oklch(0 0 0/.95),0 0 80px -22px oklch(.83 .165 78/.6)}}
.hx-sub{font-size:15px;line-height:1.4;color:oklch(.9 .01 80);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.hx-title{text-shadow:0 2px 0 oklch(0 0 0/.3);letter-spacing:-.012em}
.hx-title em{color:var(--hx-accent)}
/* Long headlines ("Live video + ball-by-ball, free in CRIX.") take a smaller step of the same scale; "Watch live. Free." a bigger one. */

/* LIVE is a red pill that breathes; FREE VIDEO is its gold sibling. */
.hx-live{display:inline-flex;align-items:center;gap:6px;padding:5px 10px 5px 8px;border-radius:999px;background:var(--hx-live-fill);color:#fff;font:800 11px/1 var(--hx-text);letter-spacing:.12em;text-transform:uppercase;box-shadow:inset 0 0 0 1px oklch(1 0 0/.2),0 6px 16px -6px oklch(.57 .22 27/.8)}
.hx-live i{width:7px;height:7px;border-radius:50%;background:#fff;box-shadow:none}
.hx-lockup .hx-live{padding-left:8px;border-left:0}
.hx-lockup{flex-wrap:wrap;row-gap:6px}
.hx-meta{padding:5px 10px;border-radius:999px;border-left:0;background:oklch(1 0 0/.07);box-shadow:inset 0 0 0 1px oklch(1 0 0/.14);font:700 11px/1 var(--hx-text);letter-spacing:.1em;text-transform:uppercase;color:oklch(.88 .012 80)}

/* The call to action: the brightest thing in the unit, always a real link with a real label. */
.hx-cta{min-height:48px;padding:0 22px;gap:8px;font:800 16px/1 var(--hx-text);letter-spacing:.01em;color:oklch(.16 .035 262);
  background-color:oklch(.84 .165 78);
  background-image:linear-gradient(105deg,transparent 38%,oklch(1 0 0/.55) 50%,transparent 62%),linear-gradient(180deg,oklch(.91 .15 90),oklch(.8 .168 72));
  background-size:260% 100%,100% 100%;background-repeat:no-repeat;background-position:150% 0,0 0;
  box-shadow:inset 0 1px 0 oklch(1 0 0/.6),0 0 0 1px oklch(.96 .1 90/.6),0 12px 26px -8px oklch(.83 .165 78/.7)}
.hx-cta .hx-long::after,.hx-cta .hx-short::after{content:"\2192";margin-left:8px;font-weight:800}
.hx-note{font-size:12.5px;color:oklch(.84 .012 80)}
.crx--strip .hx-cta{min-height:44px;padding:0 18px}
.crx--strip .hx-note{display:none!important}
/* A phone card is narrow: the short label ("Watch free") keeps the button on one line. */
@container hx (max-width:399px){.crx--card .hx-long{display:none}.crx--card .hx-short{display:inline}}
.crx--strip .hx-live{display:none}
.crx[data-crx-live].crx--strip .hx-title::before{content:"";display:inline-block;width:8px;height:8px;margin:0 8px 3px 0;border-radius:50%;background:var(--hx-live-fill)}
@container hx (min-width:640px){.crx[data-crx-live].crx--strip .hx-title::before{display:none}}
@container hx (min-width:960px){.crx--strip .hx-lockup .hx-live{display:inline-flex;padding:5px 10px}}

/* The phone is the picture: a floodlight glow behind it. */
.hx-art::before{content:"";position:absolute;z-index:-1;inset:-12% -18% -6%;background:radial-gradient(closest-side,oklch(.66 .12 250/.34),transparent 72%)}
.hx-shot{box-shadow:0 0 0 1px oklch(0 0 0/.5)}

/* Motion (research spec 6.6): data-driven only. One entrance when the unit is half in view (opacity + 12px, 400ms; crx.js arms
   only units below the fold, so with no script every unit is simply visible); the LIVE dot pulses 3 times when seen, then holds;
   nothing loops, nothing flashes; prefers-reduced-motion turns it all off. */
@media(prefers-reduced-motion:no-preference){
  @keyframes hx-dot{50%{opacity:.35}}
  @keyframes hx-pill{0%{box-shadow:inset 0 0 0 1px oklch(1 0 0/.2),0 0 0 0 oklch(.57 .22 27/.6)}70%,100%{box-shadow:inset 0 0 0 1px oklch(1 0 0/.2),0 0 0 9px oklch(.57 .22 27/0)}}
  .crx{transition:opacity .4s ease-out,transform .4s ease-out}
  .crx[data-crx-arm]{opacity:0;transform:translateY(12px)}
  .crx[data-crx-seen] .hx-live{animation:hx-pill 1.5s ease-out 3}
  .crx[data-crx-seen] .hx-live i{animation:hx-dot 1.5s ease-in-out 3}
}

/* The live match: its score is the picture. A scoreboard in the site's own score type, red edge, big figures. */
.hx-score{padding:10px 18px 10px 14px;background:oklch(.12 .03 262/.8);border:1px solid var(--hx-line-hi);border-left:3px solid var(--hx-live-fill);align-items:baseline;row-gap:5px;column-gap:14px;font:800 32px/1 var(--hx-display)}
.hx-score dt{max-width:12ch;font:700 17px/1.2 var(--hx-display);letter-spacing:.04em;text-transform:uppercase;color:oklch(.86 .012 80)}
.hx-score dd{font-size:34px;line-height:1.12;color:var(--hx-ink)}
.hx--match .hx-score{margin-top:14px}
.crx--card .hx--match .hx-title{font-size:30px}
.crx--tile .hx--match .hx-title{font-size:27px}
.crx--tile .hx--match .hx-score{padding:8px 14px 8px 12px}
.crx--tile .hx--match .hx-score dd{font-size:28px}
@container hx (min-width:560px){
  .crx--card .hx--match .hx-title{font-size:40px}
  .crx--card .hx--match .hx-score{column-gap:12px;padding:12px 20px 12px 16px}
  .crx--card .hx--match .hx-score dt{font-size:19px}
  .crx--card .hx--match .hx-score dd{font-size:36px}
}
@container hx (min-width:760px){.crx--card .hx--match .hx-score dd{font-size:42px}.crx--card .hx--match .hx-title{font-size:46px}}
@container hx (min-width:1000px){.crx--card .hx--match .hx-score dd{font-size:46px}.crx--card .hx--match .hx-title{font-size:54px}}
@container hx (min-width:640px){.crx--strip .hx--match .hx-score{padding:8px 16px 8px 12px}.crx--strip .hx--match .hx-score dd{font-size:30px}.crx--strip .hx--match .hx-score dt{font-size:15px}}
@container hx (max-width:339px){.crx--card .hx--match .hx-score dd{font-size:26px}.crx--card .hx--match .hx-score dt{font-size:15px}}

/* =====================================================================================
   PLACES: where a promotion sits and how it keeps its distance (16px from neighbours, own framed row, never in a row)
   ===================================================================================== */
body>.crx{width:min(calc(100% - var(--gutter,16px) * 2),calc(var(--max,1280px) - var(--gutter,16px) * 2));margin-inline:auto}
.crx[data-crx-place=top]{position:relative;z-index:2;margin-block:calc(var(--s4,16px) + 6px) var(--s4,16px)}
/* In grids and columns: a full row, never one narrow column, never inside a story card. */
.cs-news-topic-grid>.crx,.cs-news-front>.crx,.cs-news-headlines>.crx{grid-column:1/-1;break-inside:avoid}
@media(min-width:1024px){
  :is(.cs-home-news-top,.cs-newsroom) :is(.cs-news-front,.cs-news-headlines)>.crx{margin-block:var(--s2,8px)}
  .cs-home-compose .cs-news-topic-grid>.crx{column-span:all;margin:var(--s6,24px) 0 var(--s8,32px)}
}
.cs-article__body>.crx{margin:var(--s8,32px) 0}
.crx--tile{margin-block:var(--s6,24px)}
@media(max-width:1023px){.crx--tile{display:none}}
.cs-article__facts>.crx--tile{margin:0}
/* Between list groups and rows: its own framed row with room above and below. */
.crx[data-crx-inlist]{margin-block:calc(var(--s6,24px) + 6px) var(--s6,24px)}
.crx-tr>td{padding:0;border:0;background:none}
.crx-tr .crx{margin-block:calc(var(--s6,24px) + 6px) var(--s6,24px)}
.cs-score-directory>.crx,.cs-live-page>.crx,.cs-profile .entity-primary>.crx,.cs-search-results>.crx{margin-inline:0}
/* House-only spots in empty states reserve their height before paint (no jump): the card is about 285-300px on a phone, 337px on desktop. */
.crx--card .hx{min-height:272px}
@container hx (min-width:560px){.crx--card .hx{min-height:300px}}

/* The sticky mobile bar: above the tab bar with a gap, dismissible for the session, gone from 1024px (the tab bar goes too). */
.crx--dock{position:fixed;z-index:29;left:var(--gutter,16px);right:var(--gutter,16px);bottom:calc(var(--tabbar-h,56px) + env(safe-area-inset-bottom,0px) + 12px);width:auto;margin:0;max-width:560px;margin-inline:auto}
.crx--dock .hx{min-height:68px;padding-right:56px}
.crx--dock .hx-icon,.crx--strip.crx--dock .hx-icon{width:44px;height:44px}
.crx--dock .hx-title{font-size:calc(17px*var(--ts,1))}
.crx--dock .hx-cta{min-height:44px;padding:0 16px;font-size:15px}
.crx--dock .hx-cta .hx-short::after{margin-left:6px}
.crx--dock .crx__label{left:auto;right:14px}
.crx__close{position:absolute;z-index:7;top:50%;right:4px;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:none;color:oklch(.86 .012 80);cursor:pointer}
.crx__close svg{width:18px;height:18px}
.crx__close:hover{color:var(--ink,#fff)}
.crx__close:focus-visible{outline:2px solid var(--hx-accent,oklch(.83 .165 78));outline-offset:-4px}
@media(min-width:1024px){.crx--dock{display:none}}
@media(max-width:1023px){body:has(.crx--dock:not([hidden])){padding-bottom:calc(var(--tabbar-h,56px) + env(safe-area-inset-bottom,0px) + 96px)}}

/* The home page orders its sections with flex/grid "order" (cricketscore.css): the promotions that sit among them carry
   the order of the section they follow and, on the wide layout, take their grid cells. */
.cs-home-main>.crx{order:5}
.cs-home-rail>.crx[data-crx-place=home-sidebar]{order:10}
.cs-home-rail>.crx[data-crx-place=home-rail]{order:7}
@media(min-width:1024px){
  .crx[data-crx-place=home-rail]{display:none} /* the rail already carries the sidebar tile */
  /* The foot of each column of the home's two-column zone is a promotion that stretches into the space the other column leaves. */
  .rl-page--home .cs-home-main>.crx{grid-column:1/span 8;grid-row:4;order:0;align-self:stretch;display:flex;flex-direction:column;margin-bottom:0}
  .rl-page--home .cs-home-main>.crx>.hx{flex:1 1 auto;max-height:560px}
  .rl-page--home .cs-home-rail>.crx[data-crx-place=home-sidebar]{flex:1 1 auto;display:flex;flex-direction:column;margin:var(--s8) 0 0}
  .rl-page--home .cs-home-rail>.crx[data-crx-place=home-sidebar]>.hx{flex:1 1 auto;max-height:620px}
  /* More cricket news, four columns: promotions never cut a row. Short sections carry a tile under them so the row's columns end
     together; a lone last section is two columns wide and the promotion beside it fills the other two, as tall as the row. */
  .cs-home-compose .cs-news-topic-grid>.crx{grid-column:1/-1;order:100;column-span:none;margin-block:0}
  .cs-home-compose .cs-news-topic-grid>.crx[data-crx-place=news-topics],
  .cs-home-compose .cs-news-topic-grid:has(>.crx[data-crx-fill])>.crx[data-crx-after]{display:none}
  .cs-home-compose .cs-news-topic-grid>.crx[data-crx-fill]{display:flex;flex-direction:column;order:50;align-self:stretch;margin-block:0}
  .cs-home-compose .cs-news-topic-grid>.crx[data-crx-span="1"]{grid-column:span 1}
  .cs-home-compose .cs-news-topic-grid>.crx[data-crx-span="2"]{grid-column:span 2}
  .cs-home-compose .cs-news-topic-grid>.crx[data-crx-span="3"]{grid-column:span 3}
  .cs-home-compose .cs-news-topic-grid>.crx[data-crx-fill]>.hx{flex:1 1 auto;max-height:none}
  .cs-home-compose .cs-news-topic-grid>.cs-news-topic--wide{grid-column:span 2}
  .cs-home-compose .cs-news-topic--wide .cs-news-topic__stories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--s8);align-items:start}
  .cs-home-compose .cs-news-topic--wide .cs-news-topic__stories--single{grid-template-columns:minmax(0,1fr)}
  /* The wide section is the home's overflow list: its lead and three headlines, so the row is as tall as the promotion beside it. */
  .cs-home-compose .cs-news-topic--wide .cs-news-topic__headlines>*:nth-child(n+4){display:none}
  .cs-home-compose .cs-news-topic>.crx[data-crx-place=news-under]{display:block;margin:var(--s6) 0 0}
  /* The footer's fifth column */
  .rl-footer__inner>.crx{margin:0}
}
.cs-news-topic-grid>.crx[data-crx-fill]{display:none}

/* Two-innings scores ("98/10 & 173/5") are long: the scoreboard stacks its rows, a little smaller, and never cuts a figure. */
.hx-score dd{overflow-wrap:anywhere}
.crx .hx--match.hx--multi .hx-score{grid-template-columns:auto minmax(0,auto)!important}
.crx .hx--match.hx--multi .hx-score dd{font-size:28px!important;white-space:normal}
.crx .hx--match.hx--multi .hx-score dd:first-of-type{margin-right:0}
@container hx (min-width:760px){.crx--card .hx--match.hx--multi .hx-score dd{font-size:32px!important}}

/* Fills for the empty cells at the end of a match grid, and the match page's side column. */
.rl-match-grid>.crx[data-crx-fill]{grid-column:auto/-1}
.rl-match-grid>.crx[data-crx-span="1"]{grid-column:span 1}
.rl-match-grid>.crx[data-crx-span="2"]{grid-column:span 2}
@media(min-width:1024px){
  .cs-newsroom .cs-news-topic-grid>.crx[data-crx-fill]{display:block;order:50;align-self:start;margin-block:0}
  .cs-newsroom .cs-news-topic-grid>.crx[data-crx-span="1"]{grid-column:span 1}
  .cs-stack.cs-w4{display:flex;flex-direction:column;gap:var(--s4)}
  .cs-stack.cs-w4>.crx{flex:1 1 auto;display:flex;flex-direction:column;margin:0}
  .cs-stack.cs-w4>.crx>.hx{flex:1 1 auto;max-height:520px}
  .cs-article__facts>.crx--tile{margin-top:var(--s6)}
}
.hx-score dd{overflow:visible}

/* Frequency on a phone: at most one promotion per screen. These sit within a screen of another one (the top strip, the footer strip), so a phone does not get them. */
@media(max-width:699px){
  .crx[data-crx-place=match-top],.crx[data-crx-place=fixtures-end],.crx[data-crx-place=series-table-end],.crx[data-crx-place=search-end],.crx[data-crx-place=saved-end],.crx[data-crx-place=home-rail],.crx[data-crx-place=rankings-mid]{display:none}
}

/* A phone-width strip (88px) says the headline in few words; every wider unit says it in full. */
.hx-ts{display:none}
@container hx (max-width:639px){.crx--strip .hx-tl{display:none}.crx--strip .hx-ts{display:inline}}
/* The live-match strip carries its LIVE state as the dot before the title, never as a pill over its second line. */
.crx--strip .hx--match .hx-live{display:none!important}
@container hx (max-width:639px){.crx--strip .hx-title{--ts:1}}
.crx[data-device=desktop].crx--strip .hx-desk{display:none}
@container hx (min-width:640px){.crx[data-device=desktop].crx--strip .hx-desk{display:flex}}

/* =====================================================================================
   TYPE (research spec 6.3 + owner 2026-11-19: "big and impactful and very fomo"): the headline is the hero: heavy display type
   in capitals, tight leading, one gold word (FREE), one support line, one "Watch free" button. Sizes per slot are set with the
   layouts above (strip 40/32/24px, card 34/38/44/56/60px, tile 30-36px, dock 17px); the type scale follows the headline's
   length (data-crx-len, house_ads.go TitleSize). Gold on the night and white on the night are far above AA contrast.
   ===================================================================================== */
.crx[data-crx-len=short]{--ts:1.06}
.crx[data-crx-len=mid]{--ts:1}
.crx[data-crx-len=long]{--ts:.9}
.crx[data-crx-len=xl]{--ts:.8}
.hx-title{font-family:var(--hx-display);font-weight:900;line-height:.95;letter-spacing:-.005em;text-wrap:balance;overflow-wrap:break-word;hyphens:manual}
.hx-title em{color:var(--hx-accent);text-shadow:0 0 28px oklch(.83 .165 78/.4),0 2px 0 oklch(0 0 0/.3)}
.hx-sub{margin-top:10px;font-size:15px;font-weight:500}
@container hx (min-width:560px){.crx--card .hx-sub{font-size:16px}}
@container hx (min-width:760px){.crx--card .hx-sub{font-size:17px}}
.crx--tile .hx-sub{font-size:13.5px;margin-top:8px}
/* The button: one per unit, gold, "Watch free"; red is only ever LIVE. */
.hx-cta{min-height:48px;padding:0 22px;border-radius:999px;font:800 16px/1 var(--hx-display);letter-spacing:.05em}
@container hx (min-width:760px){.crx--card .hx-cta{min-height:52px;font-size:17px}}
.crx--strip .hx-cta{min-height:40px;padding:0 18px;font-size:15px}
@container hx (min-width:960px){.crx--strip .hx-cta{min-height:44px;font-size:16px}}
.crx--tile .hx-cta{width:100%;min-height:46px;justify-content:center}
.crx--dock .hx-cta{min-height:36px;padding:0 14px;font-size:14px}
.hx-note{text-transform:none}
/* Phone strips: no mark, the headline gets the room (a 358px strip is 100px tall). */
@container hx (max-width:639px){
  .crx--strip .hx-brand,.crx--strip .hx-icon{display:none}
  .crx--strip .hx{grid-template-columns:minmax(0,1fr) auto;column-gap:12px;padding:0 12px 0 14px}
  .crx--strip .hx-title{grid-column:1}
  .crx--strip .hx-cta{grid-column:2}
}
@container hx (min-width:640px){.crx--strip .hx-title{line-height:.95}.crx--strip .hx-sub{margin-top:6px;font-size:14px}}
@container hx (min-width:960px){.crx--strip .hx-sub{font-size:15px}}
.crx--card .hx-title{margin-bottom:2px}
.hx--match .hx-title{-webkit-line-clamp:4}

/* The site sets "body *{text-transform:none!important}" (sentence case everywhere); a promotion is its own unit, so its headline, button and pills are capitals on purpose. */
.crx .hx-title,.crx .hx-title *,.crx .hx-cta,.crx .hx-cta *,.crx :is(.hx-live,.hx-meta,.hx-score dt){text-transform:uppercase!important}
.crx :is(.hx-sub,.hx-note,.hx-scan,.hx-url){text-transform:none!important}

/* Live-match card (wide): the scoreboard, then its one support line, each in its own row. */
@container hx (min-width:1000px){
  .crx--card .hx--match .hx-score{grid-row:4}
  .crx--card .hx--match .hx-sub{grid-column:1;grid-row:5;margin-top:12px}
}

/* The sticky bar (research spec): 64px at most, one headline line at 17px, one 36px button, a 44px close target; never more than a strip. */
.hx-td{display:none}
.crx--dock .hx-tl,.crx--dock .hx-ts{display:none}
.crx--dock .hx-td{display:inline}
.crx--dock .hx{min-height:60px;max-height:64px;padding-right:56px}
.crx--dock .hx-title{-webkit-line-clamp:1;font-size:17px}
.crx--dock .hx-sub{display:none}

/* A 320px phone gives a strip 288px: three lines of 20px, a snug button, no arrow, nothing cut. */
@container hx (max-width:339px){
  .crx--strip .hx-title{font-size:calc(20px*var(--ts,1));-webkit-line-clamp:3}
  .crx--strip .hx-cta{padding:0 12px}
  .crx--strip .hx-cta .hx-short::after{content:none}
}

.crx--tile .hx-act{align-self:stretch;align-items:stretch}


/* The tile under a short news section only exists in the wide home grid. */
.cs-news-topic>.crx[data-crx-place=news-under]{display:none}
