/* ==========================================================================
   CricNotOut design system
   All colour, shape, depth and type values come from theme tokens (--cno-*),
   generated per theme by ThemeCssBuilder (/theme/themes.css). Radzen and
   MudBlazor read the same tokens, so there is one visual language.
   Breakpoints: sm 600px · md 960px · lg 1200px · xl 1440px
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL — see /fonts/OFL-LICENSE.txt) ---------- */
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Noto Sans Bengali Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/noto-sans-bengali-bengali-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Noto Sans Devanagari Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/noto-sans-devanagari-devanagari-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: "Oswald Variable"; font-style: normal; font-display: swap; font-weight: 200 700;
  src: url("../fonts/oswald-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4 Variable"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Serif Bengali Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/noto-serif-bengali-bengali-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1; }
@font-face { font-family: "Noto Serif Devanagari Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/noto-serif-devanagari-devanagari-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }

/* ---------- Scale ---------- */
:root {
  --cno-space-1: 4px; --cno-space-2: 8px; --cno-space-3: 12px; --cno-space-4: 16px;
  --cno-space-5: 24px; --cno-space-6: 32px; --cno-space-7: 48px; --cno-space-8: 64px;
  --cno-container: 1720px; /* ~1670px of content plus the 24px desktop gutters */
  --cno-gutter: 16px;
  --cno-header-h: 72px;
  --cno-ease: cubic-bezier(.2, .7, .2, 1);
  --cno-dur: 180ms;
  --mud-appbar-height: 64px;
}
@media (min-width: 960px) { :root { --cno-gutter: 24px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--cno-header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--cno-bg); color: var(--cno-text);
  font-family: var(--cno-font-ui); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[lang="bn"] body, html[lang="hi"] body { line-height: 1.7; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--cno-link); text-decoration-thickness: from-font; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6, .cno-heading {
  font-family: var(--cno-font-heading); font-weight: var(--cno-heading-weight);
  letter-spacing: var(--cno-heading-tracking); line-height: 1.2; margin: 0 0 .5em; color: var(--cno-text);
}
h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cno-focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--cno-primary); color: var(--cno-on-primary); }
.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 2000; padding: 10px 16px;
  background: var(--cno-primary); color: var(--cno-on-primary); border-radius: var(--cno-radius); font-weight: 700;
}
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Layout ---------- */
.cno-container { width: 100%; max-width: var(--cno-container); margin-inline: auto; padding-inline: var(--cno-gutter); }
.cno-main { min-height: 60vh; padding-block: var(--cno-space-5) var(--cno-space-8); }
.cno-section { margin-block: var(--cno-space-6); }
.cno-section:first-child { margin-top: 0; }
.cno-band { background: var(--cno-bg-alt); padding-block: var(--cno-space-6); margin-block: var(--cno-space-6); }
.cno-grid { display: grid; gap: var(--cno-space-4); }
.cno-grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.cno-grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.cno-grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.cno-grid-6 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.cno-split { display: grid; gap: var(--cno-space-5); grid-template-columns: minmax(0, 1fr); }
.cno-split > aside { align-self: start; }
@media (min-width: 960px) {
  .cno-split { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
  .cno-split--wide-aside { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); }
}
.cno-stack { display: flex; flex-direction: column; gap: var(--cno-space-3); }
.cno-row { display: flex; align-items: center; gap: var(--cno-space-2); flex-wrap: wrap; }
.cno-row--between { justify-content: space-between; }
.cno-muted { color: var(--cno-text-muted); }
.cno-small { font-size: .875rem; }
.cno-tiny { font-size: .78rem; }
.cno-num { font-variant-numeric: tabular-nums; }
.cno-nowrap { white-space: nowrap; }
.cno-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cno-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cno-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Header: "pavilion" design ----------
   Adapted from the Dynamic Website cricket templates: Southern Cricket Club 1579 (navigation rail with dividers,
   active dot, red call to action, chevron lower edge) and Tigers Cricket Club (ball-seam line). All colours are
   header tokens of the active theme. */
.cno-header {
  --cno-edge: 12px;
  position: sticky; top: 0; z-index: 1100;
  background: var(--cno-header-bg); color: var(--cno-header-text);
  border-bottom: var(--cno-header-border);
  padding-bottom: var(--cno-edge); margin-bottom: calc(-1 * var(--cno-edge));
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--cno-edge)) no-repeat, url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 14' preserveAspectRatio='none'><path d='M0 0H1440V4L1320 14L1200 4L1080 14L960 4L840 14L720 4L600 14L480 4L360 14L240 4L120 14L0 4Z'/></svg>") bottom / 100% var(--cno-edge) no-repeat;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--cno-edge)) no-repeat, url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 14' preserveAspectRatio='none'><path d='M0 0H1440V4L1320 14L1200 4L1080 14L960 4L840 14L720 4L600 14L480 4L360 14L240 4L120 14L0 4Z'/></svg>") bottom / 100% var(--cno-edge) no-repeat;
}
/* Ball-seam stitching along the bottom of the bar. */
.cno-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(var(--cno-edge) + 5px); height: 2px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--cno-header-accent) 0 9px, transparent 9px 16px); opacity: .45;
}
.cno-header__inner { display: flex; align-items: center; gap: var(--cno-space-3); height: var(--cno-header-h); }
.cno-header a { color: inherit; text-decoration: none; }
.cno-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--cno-header-text); }
.cno-logo svg { display: block; flex-shrink: 0; max-width: none; }
.cno-logo__word { font-family: "Oswald Variable", var(--cno-font-ui); font-weight: 600; font-size: 1.45rem; letter-spacing: .01em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.cno-logo__word b { color: var(--cno-header-accent); font-weight: 700; }
.cno-header__brand { display: inline-flex; flex-direction: column; justify-content: center; gap: 3px; flex-shrink: 0; }
.cno-header__tagline { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .72; padding-left: 46px; white-space: nowrap; }
html:not([lang="en"]) .cno-header__tagline { letter-spacing: .02em; font-size: .72rem; }
@media (max-width: 599px) { .cno-header__tagline { display: none; } }
@media (max-width: 479px) {
  .cno-header__inner { gap: 4px; }
  .cno-header .cno-logo { gap: 7px; }
  .cno-header .cno-logo svg { width: 30px; height: 30px; }
  .cno-header .cno-logo__word { font-size: 1.15rem; }
  .cno-header .cno-lang-btn { min-width: 40px; padding-inline: 6px; }
  .cno-header .cno-lang-btn .mud-button-icon-start { display: none; }
  .cno-header__actions .mud-icon-button { padding: 8px; }
}
@media (max-width: 399px) { .cno-header__search { display: none; } }

/* Navigation rail: one rounded bar, items split by hairlines, the active page marked by a dot. */
.cno-nav { display: none; flex: 1; min-width: 0; justify-content: center; }
.cno-rail {
  display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0 4px; height: 46px; border-radius: 12px;
  background: color-mix(in srgb, var(--cno-header-text) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--cno-header-text) 14%, transparent);
  box-shadow: inset 0 2px 0 var(--cno-header-accent);
}
.cno-rail > li { position: relative; display: flex; align-items: center; }
.cno-rail > li + li::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: color-mix(in srgb, var(--cno-header-text) 16%, transparent); }
.cno-rail a {
  position: relative; display: flex; align-items: center; height: 100%; padding: 0 14px;
  font-weight: 800; font-size: .8rem; text-transform: uppercase; white-space: nowrap; opacity: .88;
  transition: background var(--cno-dur) var(--cno-ease), opacity var(--cno-dur) var(--cno-ease);
}
html[lang="en"] .cno-rail a, html[lang="en"] .cno-rail__more .mud-button-root { letter-spacing: .07em; }
html:not([lang="en"]) .cno-rail a { font-size: .9rem; font-weight: 700; }
.cno-rail a:hover { opacity: 1; background: var(--cno-nav-hover); text-decoration: none; }
.cno-rail a.active { opacity: 1; }
.cno-rail a.active::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--cno-nav-active); }
.cno-rail__more .mud-button-root { height: 100%; border-radius: 0 !important; font-weight: 800; font-size: .8rem; text-transform: uppercase; opacity: .88; }
.cno-rail__wide { display: none !important; }
@media (min-width: 1100px) { .cno-nav { display: flex; } .cno-menu-toggle { display: none !important; } }
@media (min-width: 1366px) { .cno-rail__wide { display: flex !important; } .cno-more__wide { display: none !important; } }

.cno-header__actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.cno-header__actions .mud-icon-button, .cno-header .mud-button-root { color: var(--cno-header-text) !important; }
/* Red call to action (the template's "Next match" button), here the live centre. */
.cno-live-cta {
  display: none; align-items: center; gap: 8px; margin-left: 6px; height: 40px; padding: 0 16px; border-radius: 10px;
  background: var(--cno-live); color: var(--cno-on-live) !important; font-weight: 800; font-size: .8rem; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 8px 18px -10px var(--cno-live); transition: transform var(--cno-dur) var(--cno-ease);
}
html[lang="en"] .cno-live-cta { letter-spacing: .06em; }
.cno-live-cta:hover { transform: translateY(-1px); }
.cno-live-cta .cno-live-dot { background: var(--cno-on-live); }
.cno-live-cta.active { box-shadow: 0 0 0 2px var(--cno-header-text); }
@media (min-width: 600px) { .cno-live-cta { display: inline-flex; } }
/* Phones: the call to action shrinks to a round live button; its label stays available to screen readers. */
@media (max-width: 599px) {
  .cno-live-cta { display: inline-flex; justify-content: center; width: 40px; height: 40px; padding: 0; margin-left: 2px; border-radius: 50%; }
  .cno-live-cta > span:not(.cno-live-dot) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.cno-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cno-live); display: inline-block; box-shadow: 0 0 0 0 var(--cno-live); animation: cno-pulse 1.8s infinite; flex-shrink: 0; }
@keyframes cno-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cno-live) 60%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.cno-lang-btn { font-weight: 700; font-size: .85rem; min-width: 44px; }

/* ---------- Mobile drawer ---------- */
.cno-drawer .mud-drawer-content { background: var(--cno-surface); }
.cno-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--cno-header-bg); color: var(--cno-header-text); }
.cno-drawer__nav { list-style: none; margin: 0; padding: 8px 0; }
.cno-drawer__nav a { display: flex; align-items: center; gap: 14px; padding: 12px 20px; color: var(--cno-text); text-decoration: none; font-weight: 600; min-height: 48px; }
.cno-drawer__nav a.active { color: var(--cno-link); background: var(--cno-primary-soft); box-shadow: inset 3px 0 0 var(--cno-primary); }
.cno-drawer__nav a:hover { background: var(--cno-surface-hover); }

/* ---------- Live ticker ---------- */
.cno-ticker { background: var(--cno-surface); border-bottom: 1px solid var(--cno-border); padding-top: 12px; /* under the header's chevron edge */ }
/* The ticker spans the full viewport (minus the gutter), not the content container. */
.cno-ticker__inner { display: flex; align-items: stretch; gap: var(--cno-space-2); padding-block: 8px; max-width: none; }
.cno-ticker__label { display: none; align-items: center; gap: 8px; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cno-text); padding-right: 8px; border-right: 1px solid var(--cno-border); flex-shrink: 0; }
@media (min-width: 960px) { .cno-ticker__label { display: flex; } }
/* Whole cards only: the strip is a size container, picks how many cards of at least ~250px fit, and sizes them
   so exactly that many fill its width. Mandatory snapping (and page-wise arrows in cno.js) keep every visible
   card complete after scrolling. */
.cno-ticker__strip {
  --cno-ticker-gap: 10px; --cno-ticker-cards: 1;
  display: flex; gap: var(--cno-ticker-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
  scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; container-type: inline-size;
}
.cno-ticker__strip::-webkit-scrollbar { display: none; }
.cno-ticker__strip > * {
  flex: 0 0 calc((100cqi - (var(--cno-ticker-cards) - 1) * var(--cno-ticker-gap)) / var(--cno-ticker-cards));
  min-width: 0; scroll-snap-align: start; display: flex;
}
.cno-ticker__strip > * > .cno-match--compact, .cno-ticker__strip > .cno-match--compact { width: 100%; }
/* n cards need n × 320px + (n − 1) × 10px gap, so each step is 330px; cards then stretch to fill the strip. */
@container (min-width: 650px)  { .cno-ticker__strip > * { --cno-ticker-cards: 2; } }
@container (min-width: 980px)  { .cno-ticker__strip > * { --cno-ticker-cards: 3; } }
@container (min-width: 1310px) { .cno-ticker__strip > * { --cno-ticker-cards: 4; } }
@container (min-width: 1640px) { .cno-ticker__strip > * { --cno-ticker-cards: 5; } }
@container (min-width: 1970px) { .cno-ticker__strip > * { --cno-ticker-cards: 6; } }
.cno-ticker__nav { display: none; }
@media (min-width: 600px) { .cno-ticker__nav { display: flex; align-items: center; } }
.cno-ticker__empty { color: var(--cno-text-muted); font-size: .9rem; padding: 10px 4px; }

/* ---------- Cards ---------- */
.cno-card {
  position: relative; background: var(--cno-card-bg); color: var(--cno-text);
  border: var(--cno-card-border); border-radius: var(--cno-radius-lg); box-shadow: var(--cno-card-shadow);
  backdrop-filter: var(--cno-card-backdrop); -webkit-backdrop-filter: var(--cno-card-backdrop);
  border-top: var(--cno-card-rule);
  overflow: hidden; min-width: 0;
  transition: box-shadow var(--cno-dur) var(--cno-ease), transform var(--cno-dur) var(--cno-ease), border-color var(--cno-dur) var(--cno-ease);
}
.cno-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--cno-card-accent); pointer-events: none; }
.cno-card--link:hover { box-shadow: var(--cno-card-hover-shadow); transform: translateY(-2px); }
.cno-card--link:focus-within { outline: 3px solid var(--cno-focus); outline-offset: 2px; }
.cno-card__body { padding: var(--cno-space-4); }
.cno-card__title { font-family: var(--cno-font-heading); font-weight: var(--cno-heading-weight); letter-spacing: var(--cno-heading-tracking); line-height: 1.25; margin: 0; }
.cno-card__title a { color: var(--cno-text); text-decoration: none; }
.cno-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cno-card__title a:hover { text-decoration: underline; }
.cno-card__title a:focus-visible { outline: none; }
.cno-card__cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.cno-card__cover:focus-visible { outline: none; }
.cno-panel { background: var(--cno-card-bg); border: var(--cno-card-border); border-radius: var(--cno-radius-lg); box-shadow: var(--cno-card-shadow); padding: var(--cno-space-4); min-width: 0; }
@media (min-width: 960px) { .cno-panel { padding: var(--cno-space-5); } }

/* ---------- Section header ---------- */
.cno-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--cno-space-3); margin-bottom: var(--cno-space-4); border-bottom: 2px solid var(--cno-border); padding-bottom: var(--cno-space-2); }
.cno-section-head h2 { margin: 0; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); text-transform: var(--cno-heading-transform); position: relative; }
.cno-section-head h2::after { content: ""; position: absolute; left: 0; bottom: calc(-1 * var(--cno-space-2) - 2px); width: 56px; height: 3px; background: var(--cno-primary); }
.cno-section-head__link { font-weight: 700; font-size: .9rem; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.cno-kicker { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cno-link); }

/* ---------- Badges ---------- */
.cno-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--cno-radius-pill); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.4; white-space: nowrap; }
.cno-badge--live { background: var(--cno-live); color: var(--cno-on-live); }
.cno-badge--upcoming { background: var(--cno-upcoming); color: var(--cno-on-upcoming); }
.cno-badge--result { background: var(--cno-result); color: var(--cno-on-result); }
.cno-badge--neutral { background: var(--cno-bg-alt); color: var(--cno-text); border: 1px solid var(--cno-border); }
.cno-badge--accent { background: var(--cno-accent); color: var(--cno-on-accent); }
.cno-badge--primary { background: var(--cno-primary); color: var(--cno-on-primary); }
.cno-badge--sample { background: transparent; color: var(--cno-text-muted); border: 1px dashed var(--cno-text-muted); }
.cno-badge--live .cno-live-dot { background: var(--cno-on-live); }

/* ---------- Data source chip ---------- */
.cno-source { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--cno-text-muted); }
.cno-source__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cno-text-muted); }
.cno-match-hero .cno-source, .cno-page-hero .cno-source { color: var(--cno-hero-text); opacity: .92; }
.cno-source--live .cno-source__dot { background: var(--cno-result); }
.cno-source--cached .cno-source__dot { background: var(--cno-accent); }
.cno-source--unavailable .cno-source__dot { background: var(--cno-live); }

/* ---------- Match card ---------- */
.cno-match { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.cno-match__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--cno-text-muted); min-width: 0; }
.cno-match__meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cno-match__teams { display: flex; flex-direction: column; gap: 8px; }
.cno-team-line { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.cno-team-line__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cno-team-line__score { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; font-size: 1.02rem; }
.cno-team-line__overs { font-weight: 500; color: var(--cno-text-muted); font-size: .8rem; margin-left: 4px; }
.cno-team-line--winner .cno-team-line__name::after { content: " ✓"; color: var(--cno-result); }
.cno-team-line--muted .cno-team-line__name, .cno-team-line--muted .cno-team-line__score { color: var(--cno-text-muted); font-weight: 600; }
.cno-match__note { font-size: .85rem; color: var(--cno-text); border-top: 1px dashed var(--cno-border); padding-top: 8px; margin-top: auto; }
.cno-match__note--live { color: var(--cno-live); font-weight: 700; }
.cno-match--compact { padding: 10px 12px; gap: 6px; width: 264px; flex-shrink: 0; scroll-snap-align: start; }
.cno-match--compact .cno-team-line { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; font-size: .9rem; }
.cno-match--compact .cno-match__note { font-size: .78rem; padding-top: 4px; }
.cno-match--live { box-shadow: inset 0 3px 0 var(--cno-live), var(--cno-card-shadow); }

/* ---------- Team logo ---------- */
.cno-team-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: contain; background: var(--cno-surface-raised); border: 1px solid var(--cno-border); flex-shrink: 0; }
.cno-team-logo--sm { width: 22px; height: 22px; }
.cno-team-logo--lg { width: 64px; height: 64px; }
.cno-team-logo--xl { width: 96px; height: 96px; }
.cno-team-logo--fallback { display: inline-flex; align-items: center; justify-content: center; font-size: .62rem; font-weight: 800; color: var(--cno-on-primary); background: var(--cno-primary); border: 0; letter-spacing: -.02em; }
.cno-team-logo--lg.cno-team-logo--fallback { font-size: 1.2rem; }
.cno-team-logo--xl.cno-team-logo--fallback { font-size: 1.6rem; }

/* ---------- News cards ---------- */
.cno-news { display: flex; flex-direction: column; }
.cno-grid > .cno-news, .cno-grid > .cno-match { height: 100%; }
.cno-news__body > * { flex-shrink: 0; }
.cno-news__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cno-bg-alt); }
.cno-news__media svg, .cno-news__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms var(--cno-ease); }
.cno-card--link:hover .cno-news__media svg, .cno-card--link:hover .cno-news__media img { transform: scale(1.03); }
.cno-news__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.cno-news__body { display: flex; flex-direction: column; gap: 8px; padding: var(--cno-space-4); flex: 1; }
.cno-news__title { font-size: 1.1rem; }
.cno-news__summary { color: var(--cno-text-muted); font-size: .93rem; margin: 0; }
.cno-news__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .78rem; color: var(--cno-text-muted); margin-top: auto; padding-top: 4px; }
.cno-news--hero .cno-news__media { aspect-ratio: 16 / 9; }
.cno-news--hero .cno-news__title { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem); }
@media (min-width: 960px) {
  .cno-news--hero { display: grid; grid-template-columns: 1.35fr 1fr; }
  .cno-news--hero .cno-news__media { aspect-ratio: auto; min-height: 340px; height: 100%; }
  .cno-news--hero .cno-news__body { padding: var(--cno-space-6); justify-content: center; }
}
.cno-news--row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px; align-items: start; }
.cno-news--row .cno-news__media { aspect-ratio: 4 / 3; border-radius: var(--cno-radius); }
.cno-news--row .cno-news__body { padding: 0; gap: 4px; }
.cno-news--row .cno-news__title { font-size: .98rem; }
@media (min-width: 600px) { .cno-news--row { grid-template-columns: 160px minmax(0, 1fr); } }
.cno-news--compact { padding: 12px 0; border-bottom: 1px solid var(--cno-border); background: transparent; border-radius: 0; box-shadow: none; }
.cno-news--compact:last-child { border-bottom: 0; }
.cno-news--compact .cno-news__title { font-size: .98rem; }
.cno-category-link { color: var(--cno-link); font-weight: 800; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; position: relative; z-index: 2; }

/* ---------- Hero ---------- */
.cno-hero { background: var(--cno-hero-bg); color: var(--cno-hero-text); border-radius: var(--cno-radius-lg); overflow: hidden; position: relative; }
.cno-hero h1, .cno-hero h2, .cno-hero a, .cno-hero .cno-kicker { color: var(--cno-hero-text); }
.cno-page-hero { background: var(--cno-hero-bg); color: var(--cno-hero-text); padding-block: var(--cno-space-6); margin-bottom: var(--cno-space-5); }
.cno-page-hero h1 { color: var(--cno-hero-text); margin: 0; text-transform: var(--cno-heading-transform); }
.cno-page-hero p { margin: 8px 0 0; opacity: .92; max-width: 60ch; }
.cno-page-hero .cno-breadcrumbs, .cno-page-hero .cno-breadcrumbs a { color: var(--cno-hero-text); opacity: .9; }

/* ---------- Breadcrumbs ---------- */
.cno-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 12px; font-size: .84rem; }
.cno-breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.cno-breadcrumbs li + li::before { content: "›"; opacity: .7; }
.cno-breadcrumbs a { color: var(--cno-text-muted); }
.cno-breadcrumbs [aria-current="page"] { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* ---------- States ---------- */
.cno-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: var(--cno-space-6) var(--cno-space-4); border: 1px dashed var(--cno-border); border-radius: var(--cno-radius-lg); background: var(--cno-surface); color: var(--cno-text-muted); }
.cno-state__icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--cno-bg-alt); color: var(--cno-text); }
.cno-state__title { font-weight: 800; color: var(--cno-text); margin: 0; font-size: 1.05rem; }
.cno-state--error .cno-state__icon { background: var(--cno-live-soft); color: var(--cno-live); }
.cno-state p { margin: 0; max-width: 56ch; }
.cno-notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--cno-radius); background: var(--cno-bg-alt); border-left: 4px solid var(--cno-accent); font-size: .9rem; color: var(--cno-text); }

/* ---------- Tabs & filters ---------- */
.cno-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 2px solid var(--cno-border); margin-bottom: var(--cno-space-4); }
.cno-tabs::-webkit-scrollbar { display: none; }
.cno-tab { appearance: none; border: 0; background: transparent; color: var(--cno-text-muted); font: inherit; font-weight: 700; padding: 10px 14px; min-height: 44px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.cno-tab:hover { color: var(--cno-text); text-decoration: none; }
.cno-tab[aria-selected="true"], .cno-tab.active { color: var(--cno-link); border-bottom-color: var(--cno-primary); }
.cno-tab__count { font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: var(--cno-bg-alt); color: var(--cno-text); }
.cno-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cno-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: var(--cno-radius-pill); border: 1px solid var(--cno-border); background: var(--cno-surface); color: var(--cno-text); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.cno-chip:hover { border-color: var(--cno-primary); text-decoration: none; }
.cno-chip[aria-pressed="true"], .cno-chip.active { background: var(--cno-primary); border-color: var(--cno-primary); color: var(--cno-on-primary); }
.cno-filterbar { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items: end; margin-bottom: var(--cno-space-4); }
/* Fields with helper text below: line the input boxes up at the top instead of the helper text at the bottom. */
.cno-filterbar--top { align-items: start; }
.cno-filterbar--top .mud-input-control { margin-top: 0; }

/* ---------- Tables (native + Radzen) ---------- */
.cno-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--cno-radius); border: 1px solid var(--cno-border); }
.cno-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--cno-surface); }
.cno-table th, .cno-table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--cno-border); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cno-table th { background: var(--cno-bg-alt); font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--cno-text); position: sticky; top: 0; }
.cno-table th:first-child, .cno-table td:first-child { text-align: left; }
.cno-table td.cno-left, .cno-table th.cno-left { text-align: left; white-space: normal; }
.cno-table tbody tr:hover { background: var(--cno-surface-hover); }
.cno-table tfoot td { font-weight: 800; background: var(--cno-bg-alt); }
.cno-table .cno-strong { font-weight: 800; }
.cno-table--sticky-first td:first-child, .cno-table--sticky-first th:first-child { position: sticky; left: 0; background: inherit; z-index: 1; }
.cno-table--sticky-first tbody td:first-child { background: var(--cno-surface); }
.rz-data-grid { border-radius: var(--cno-radius); border-color: var(--cno-border) !important; font-family: var(--cno-font-ui); }
.rz-data-grid .rz-grid-table thead th { text-transform: uppercase; font-size: .74rem; letter-spacing: .04em; font-weight: 800; }
.rz-data-grid .rz-cell-data { font-variant-numeric: tabular-nums; }
.rz-tabview { font-family: var(--cno-font-ui); }

/* ---------- Scorecard ---------- */
.cno-innings + .cno-innings { margin-top: var(--cno-space-5); }
.cno-innings__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 14px; background: var(--cno-header-solid); color: var(--cno-header-text); border-radius: var(--cno-radius) var(--cno-radius) 0 0; }
.cno-innings__head h3 { color: inherit; margin: 0; font-size: 1.05rem; }
.cno-innings__total { font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.cno-dismissal { color: var(--cno-text-muted); font-size: .82rem; font-weight: 500; display: block; white-space: normal; }
.cno-batter-active { color: var(--cno-link); }
.cno-fow { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--cno-text-muted); padding: 10px 2px; }

/* ---------- Commentary ---------- */
.cno-commentary { list-style: none; margin: 0; padding: 0; }
.cno-ball { display: grid; grid-template-columns: 52px 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--cno-border); }
.cno-ball__over { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--cno-text-muted); }
.cno-ball__chip { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--cno-bg-alt); border: 1px solid var(--cno-border); font-size: .9rem; }
.cno-ball--four .cno-ball__chip { background: var(--cno-upcoming); color: var(--cno-on-upcoming); border-color: transparent; }
.cno-ball--six .cno-ball__chip { background: var(--cno-primary); color: var(--cno-on-primary); border-color: transparent; }
.cno-ball--wicket .cno-ball__chip { background: var(--cno-live); color: var(--cno-on-live); border-color: transparent; }
.cno-ball--wicket { background: var(--cno-live-soft); }
.cno-over-break { padding: 8px 4px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--cno-text-muted); background: var(--cno-bg-alt); border-radius: var(--cno-radius); margin-top: 10px; }

/* ---------- Match header ---------- */
.cno-match-hero { background: var(--cno-hero-bg); color: var(--cno-hero-text); padding-block: var(--cno-space-5); margin-bottom: var(--cno-space-5); }
.cno-match-hero a { color: var(--cno-hero-text); }
.cno-match-hero__teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin-block: 16px 8px; }
.cno-match-hero__team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; min-width: 0; }
.cno-match-hero__name { font-family: var(--cno-font-heading); font-weight: var(--cno-heading-weight); font-size: clamp(1rem, .9rem + 1vw, 1.5rem); line-height: 1.2; overflow-wrap: anywhere; }
.cno-match-hero__score { font-weight: 800; font-size: clamp(1.2rem, 1rem + 1.5vw, 2rem); font-variant-numeric: tabular-nums; }
.cno-match-hero__vs { font-weight: 800; opacity: .8; font-size: .9rem; }
.cno-match-hero__note { text-align: center; font-weight: 700; margin-top: 8px; }

/* ---------- Stat tiles ---------- */
.cno-stat { background: var(--cno-surface); border: 1px solid var(--cno-border); border-radius: var(--cno-radius); padding: 12px 14px; min-width: 0; }
.cno-stat__label { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--cno-text-muted); }
.cno-stat__value { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.cno-kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.cno-kv dt { color: var(--cno-text-muted); font-weight: 600; }
.cno-kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Article ---------- */
.cno-article { max-width: 760px; margin-inline: auto; }
.cno-article__title { font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.9rem); line-height: 1.15; margin: 8px 0 12px; }
.cno-article__dek { font-size: 1.18rem; color: var(--cno-text-muted); line-height: 1.5; margin-bottom: 18px; font-family: var(--cno-font-body); }
.cno-article__byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--cno-text-muted); font-size: .9rem; padding-block: 12px; border-block: 1px solid var(--cno-border); margin-bottom: 20px; }
.cno-article__figure { margin: 0 0 24px; border-radius: var(--cno-radius-lg); overflow: hidden; }
.cno-article__figure figcaption { font-size: .8rem; color: var(--cno-text-muted); padding: 8px 2px 0; }
.cno-prose { font-family: var(--cno-font-body); font-size: 1.12rem; line-height: 1.75; color: var(--cno-text); }
html[lang="bn"] .cno-prose, html[lang="hi"] .cno-prose { line-height: 1.9; }
.cno-prose h2 { font-size: 1.45rem; margin: 1.8em 0 .6em; }
.cno-prose p { margin: 0 0 1.15em; }
.cno-prose ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.cno-prose li { margin-bottom: .4em; }
.cno-prose blockquote { margin: 1.6em 0; padding: 8px 0 8px 20px; border-left: 4px solid var(--cno-primary); font-size: 1.28rem; font-style: italic; color: var(--cno-text); font-family: var(--cno-font-heading); }
.cno-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cno-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Player / team ---------- */
.cno-profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.cno-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--cno-bg-alt); border: 3px solid var(--cno-surface); box-shadow: var(--cno-shadow-sm); flex-shrink: 0; }
.cno-avatar--sm { width: 44px; height: 44px; border-width: 2px; }
.cno-avatar--fallback { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.6rem; color: var(--cno-on-primary); background: var(--cno-primary); }
.cno-avatar--sm.cno-avatar--fallback { font-size: .9rem; }
.cno-person { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-width: 0; }
.cno-person__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cno-person__meta { font-size: .8rem; color: var(--cno-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Video ---------- */
.cno-video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--cno-radius-lg); overflow: hidden; }
.cno-video-frame iframe, .cno-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cno-video-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cno-video-placeholder svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cno-video-placeholder__msg { position: relative; z-index: 1; background: rgb(0 0 0 / .72); color: #fff; padding: 10px 16px; border-radius: var(--cno-radius); font-weight: 700; text-align: center; max-width: 80%; }
.cno-play { position: absolute; z-index: 2; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgb(0 0 0 / .62); color: #fff; display: flex; align-items: center; justify-content: center; }
.cno-duration { position: absolute; right: 8px; bottom: 8px; z-index: 2; background: rgb(0 0 0 / .78); color: #fff; font-size: .76rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; font-variant-numeric: tabular-nums; }

/* ---------- Theme picker ---------- */
.cno-theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 12px; }
.cno-swatch { appearance: none; display: flex; flex-direction: column; align-items: stretch; width: 100%; border: 2px solid var(--cno-border); border-radius: 12px; padding: 0; background: var(--cno-surface); cursor: pointer; text-align: left; overflow: hidden; font: inherit; color: var(--cno-text); transition: transform var(--cno-dur) var(--cno-ease), border-color var(--cno-dur); }
.cno-swatch:hover { transform: translateY(-2px); border-color: var(--cno-primary); }
.cno-swatch[aria-pressed="true"] { border-color: var(--cno-primary); box-shadow: 0 0 0 3px var(--cno-primary-soft); }
.cno-swatch__preview { display: block; width: 100%; height: 92px; position: relative; }
.cno-swatch__bar { position: absolute; left: 0; right: 0; top: 0; height: 22px; }
.cno-swatch__card { position: absolute; left: 10px; right: 34%; top: 32px; bottom: 10px; border-radius: 6px; padding: 6px; }
.cno-swatch__line { display: block; height: 6px; border-radius: 3px; margin-bottom: 5px; }
.cno-swatch__dot { position: absolute; right: 10px; width: 18px; height: 18px; border-radius: 50%; }
.cno-swatch__label { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 10px; font-size: .82rem; font-weight: 700; }

/* ---------- Footer: "pavilion" design ----------
   Adapted from the Dynamic Website cricket templates: Southern Cricket Club 1579 (rising pitch-stripe band, glass
   brand panel, tab-topped link cards, mowing stripes) and Tigers Cricket Club (grass base band); the watermark is the
   library's "cricket" bat-and-ball motif. Colours are the active theme's header tokens. */
.cno-footer { margin-top: var(--cno-space-8); color: var(--cno-header-text); }
.cno-footer a { color: inherit; text-decoration: none; }
.cno-footer a:hover { text-decoration: underline; }
.cno-footer__stripes {
  height: 64px;
  background: repeating-linear-gradient(-58deg, transparent 0 22px, var(--cno-header-solid) 22px 52px);
  -webkit-mask: linear-gradient(to bottom, transparent, #000 92%); mask: linear-gradient(to bottom, transparent, #000 92%);
}
.cno-footer__body {
  position: relative; overflow: hidden; padding-block: var(--cno-space-6) var(--cno-space-5);
  background-color: var(--cno-header-solid);
  background-image: repeating-linear-gradient(90deg, color-mix(in srgb, var(--cno-header-text) 4%, transparent) 0 60px, transparent 60px 120px);
}
.cno-footer__body > .cno-container { position: relative; }
.cno-footer__motif { position: absolute; right: -40px; bottom: 30px; width: 380px; height: 380px; fill: none; stroke: var(--cno-header-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .06; pointer-events: none; }
.cno-footer__panel {
  display: grid; gap: 16px 32px; align-items: center; padding: 22px; border-radius: var(--cno-radius-lg);
  background: color-mix(in srgb, var(--cno-header-text) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--cno-header-text) 14%, transparent);
}
@media (min-width: 1100px) { .cno-footer__panel { grid-template-columns: auto minmax(0, 1fr) auto; } }
.cno-footer__brand { display: flex; align-items: center; gap: 14px; }
.cno-footer__wordmark { margin: 0; font-family: var(--cno-font-heading); font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); letter-spacing: .14em; text-transform: uppercase; line-height: 1.05; color: inherit; }
.cno-footer__tagline { margin: 4px 0 0; color: color-mix(in srgb, var(--cno-header-text) 82%, transparent); font-weight: 700; }
.cno-footer__about { margin: 0; opacity: .86; font-size: .93rem; max-width: 62ch; }
.cno-footer__quick { display: flex; flex-wrap: wrap; gap: 10px; }
.cno-footer__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--cno-header-text) 35%, transparent); font-weight: 800; font-size: .84rem;
}
.cno-footer__btn:hover { background: color-mix(in srgb, var(--cno-header-text) 10%, transparent); text-decoration: none !important; }
.cno-footer__btn--live { background: var(--cno-live); border-color: transparent; color: var(--cno-on-live) !important; }
.cno-footer__btn--live:hover { background: var(--cno-live); filter: brightness(1.08); }
.cno-footer__btn--live .cno-live-dot { background: var(--cno-on-live); }
.cno-footer__grid { display: grid; gap: 16px; margin-top: var(--cno-space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.cno-footer__card {
  padding: 16px 18px 12px; border-radius: 14px; min-width: 0;
  background: color-mix(in srgb, var(--cno-header-text) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--cno-header-text) 12%, transparent); border-top: 3px solid var(--cno-header-accent);
}
.cno-footer__card h2 { color: inherit; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; font-family: var(--cno-font-ui); font-weight: 800; }
.cno-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cno-footer li a { display: inline-flex; align-items: center; min-height: 36px; opacity: .9; }
.cno-footer li a:hover { opacity: 1; }
.cno-footer__langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--cno-header-text) 22%, transparent); }
.cno-footer__langs button { min-height: 36px; padding: 0 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .85rem; color: inherit; background: transparent; border: 1px solid color-mix(in srgb, var(--cno-header-text) 30%, transparent); }
.cno-footer__langs button[aria-pressed="true"] { background: var(--cno-header-text); color: var(--cno-header-solid); font-weight: 800; }
.cno-footer__bottom { border-top: 1px solid color-mix(in srgb, var(--cno-header-text) 25%, transparent); margin-top: var(--cno-space-6); padding-top: var(--cno-space-4); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: .84rem; opacity: .92; }
.cno-footer__top { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; min-height: 36px; }
.cno-footer__credit { margin-top: var(--cno-space-4); padding-top: var(--cno-space-3); border-top: 1px dashed color-mix(in srgb, var(--cno-header-text) 20%, transparent); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .82rem; opacity: .9; }
.cno-footer__credit p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cno-footer__credit a { color: inherit; overflow-wrap: anywhere; }
.cno-footer__credit-label { opacity: .8; }
.cno-footer__version { font-variant-numeric: tabular-nums; opacity: .85; }
/* Grass base band (Tigers Cricket Club). */
.cno-footer__grass { position: relative; height: 22px; background: var(--cno-header-solid); }
.cno-footer__grass::before {
  content: ""; position: absolute; inset: 0; background: var(--cno-header-accent); opacity: .5;
  -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='24'><path fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' d='M3 24Q5 12 1 2M9 24Q10 14 14 6M15 24Q16 10 13 0M21 24Q23 14 27 8M27 24Q27 16 25 10'/></svg>") repeat-x bottom / 30px 22px; mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='24'><path fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' d='M3 24Q5 12 1 2M9 24Q10 14 14 6M15 24Q16 10 13 0M21 24Q23 14 27 8M27 24Q27 16 25 10'/></svg>") repeat-x bottom / 30px 22px;
}

/* ---------- Cookie notice ---------- */
.cno-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1300; max-width: 560px; margin-inline: auto; background: var(--cno-surface); color: var(--cno-text); border: 1px solid var(--cno-border); border-radius: var(--cno-radius-lg); box-shadow: var(--cno-shadow-lg); padding: 14px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cno-cookie p { margin: 0; flex: 1 1 240px; font-size: .9rem; }

/* ---------- Ranking / standings ---------- */
.cno-form { display: inline-flex; gap: 3px; }
.cno-form__item { width: 20px; height: 20px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: .66rem; font-weight: 800; background: var(--cno-bg-alt); color: var(--cno-text); }
.cno-form__item--W { background: var(--cno-result); color: var(--cno-on-result); }
.cno-form__item--L { background: var(--cno-live); color: var(--cno-on-live); }
.cno-pos { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; background: var(--cno-bg-alt); }
.cno-pos--top { background: var(--cno-primary); color: var(--cno-on-primary); }

/* ---------- Pager ---------- */
.cno-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: var(--cno-space-5); }

/* ---------- Admin ---------- */
.cno-admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--cno-space-4); }
.cno-form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cno-textarea-mono textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }

/* ---------- MudBlazor harmonisation ---------- */
.mud-button-root { border-radius: var(--cno-radius) !important; }
.mud-button-filled { box-shadow: none !important; }
.mud-dialog { border-radius: var(--cno-radius-lg) !important; }
.mud-paper { border-radius: var(--cno-radius-lg); }
.mud-input-control { font-family: var(--cno-font-ui); }
.mud-snackbar { border-radius: var(--cno-radius) !important; font-family: var(--cno-font-ui); }
.mud-menu-item { min-height: 44px; }
.mud-skeleton { border-radius: var(--cno-radius); }
.mud-tooltip { font-family: var(--cno-font-ui); }

/* ---------- Utility animation ---------- */
.cno-fade-in { animation: cno-fade .28s var(--cno-ease) both; }
@keyframes cno-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Polish layer: depth, light and motion on top of the theme tokens (works for all 30 themes) ---------- */

/* Heroes: light from the top right and a shade bottom left over the theme gradient, plus a faint pitch arc. */
.cno-hero, .cno-page-hero, .cno-match-hero { position: relative; isolation: isolate; overflow: hidden; }
.cno-hero::after, .cno-page-hero::after, .cno-match-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 140% at 100% 0%, rgba(255, 255, 255, .16), transparent 62%),
    radial-gradient(45% 110% at 0% 100%, rgba(0, 0, 0, .22), transparent 70%),
    radial-gradient(circle at 88% 135%, transparent 38%, rgba(255, 255, 255, .07) 38.4%, transparent 39.2%);
}

/* Match cards in grids and the ticker lift like news cards. */
.cno-ticker .cno-match--compact, .cno-grid > .cno-match { transition: transform var(--cno-dur) var(--cno-ease), box-shadow var(--cno-dur) var(--cno-ease); }
.cno-ticker .cno-match--compact:hover, .cno-grid > .cno-match:hover { transform: translateY(-2px); box-shadow: var(--cno-card-hover-shadow); }

/* Live badges glow softly. */
.cno-badge--live { box-shadow: 0 0 0 3px var(--cno-live-soft); }

/* Filled buttons: gentle depth that grows on hover. */
.mud-button-filled.mud-button-filled-primary { background-image: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)); box-shadow: var(--cno-shadow-sm) !important; transition: transform var(--cno-dur) var(--cno-ease), box-shadow var(--cno-dur) var(--cno-ease); }
.mud-button-filled.mud-button-filled-primary:hover { transform: translateY(-1px); box-shadow: var(--cno-shadow-md) !important; }

/* Tables: zebra rows for long scorecards and standings. */
.cno-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--cno-bg-alt) 60%, transparent); }
.cno-table tbody tr:hover { background: var(--cno-surface-hover); }

/* Details. */
:focus-visible { outline: 3px solid var(--cno-focus); outline-offset: 2px; }
::selection { background: var(--cno-primary-soft); color: var(--cno-text); }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--cno-text-muted) 45%, transparent) transparent; }

/* ---------- Blazor error UI ---------- */
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000; padding: 12px 16px; background: var(--cno-live); color: var(--cno-on-live); font-weight: 700; }
#blazor-error-ui a { color: inherit; margin-left: 12px; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 16px; top: 10px; }
