/* Cricket centre: hub (live / upcoming / results) and match centre. Theme tokens from style.css (--ink, --muted,
   --line, --soft, --card-bg); team colours arrive per element as --ck-a / --ck-b / --c (badge) / --i (badge ink). */

.ck-page {
  --ck-navy: #0b1530;
  --ck-navy-2: #13254d;
  --ck-live: #e11d48;
  --ck-green: #16a34a;
  --ck-gold: #f59e0b;
  --ck-four: #2563eb;
  --ck-six: #7c3aed;
  --ck-card: var(--card-bg, #fff);
  --ck-line: var(--line, #e5e7eb);
  --ck-soft: var(--soft, #f5f6f8);
  --ck-ink: var(--ink, #111827);
  --ck-muted: var(--muted, #646b78);
  --ck-radius: 14px;
  --ck-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .18);
  padding-bottom: 48px;
}
html[data-theme="dark"] .ck-page { --ck-shadow: 0 0 0 1px var(--line); }

/* ---------- Shared bits ---------- */
.ck-dot { position: relative; display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ck-live); }
.ck-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; color: var(--ck-live); opacity: 0; animation: ck-ping 1.6s ease-out infinite; }
@keyframes ck-ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ck-dot::after, .ck-line.is-new { animation: none !important; } }

.ck-format, .ck-comp, .ck-status {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font: 800 10.5px/1.4 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.ck-format { color: #fff; background: #475569; }
.ck-format.is-test { background: #9f1239; }
.ck-format.is-odi { background: #1d4ed8; }
.ck-format.is-t20 { background: #ea580c; }
.ck-format.is-t10 { background: #0d9488; }
.ck-comp { color: #fff; background: linear-gradient(135deg, #7c3aed, #c026d3); }
.ck-comp.is-ipl { background: linear-gradient(135deg, #1e3a8a, #f97316); }
.ck-status { margin-left: auto; color: var(--ck-muted); background: var(--ck-soft); border: 1px solid var(--ck-line); }
.ck-status.is-live { color: #fff; background: var(--ck-live); border-color: transparent; }
.ck-status.is-live .ck-dot { background: #fff; width: 6px; height: 6px; }
.ck-status.is-live .ck-dot::after { color: #fff; }
.ck-status.is-upcoming { color: #075985; background: #e0f2fe; border-color: #bae6fd; }
.ck-status.is-completed { color: #166534; background: #dcfce7; border-color: #bbf7d0; }
html[data-theme="dark"] .ck-status.is-upcoming { color: #7dd3fc; background: rgba(14, 165, 233, .14); border-color: rgba(14, 165, 233, .35); }
html[data-theme="dark"] .ck-status.is-completed { color: #86efac; background: rgba(22, 163, 74, .14); border-color: rgba(22, 163, 74, .35); }

.ck-badge {
  display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; overflow: hidden; border-radius: 50%;
  background: var(--c, #475569); color: var(--i, #fff); font: 800 11px/1 system-ui, sans-serif; letter-spacing: .02em;
  box-shadow: 0 0 0 2px var(--ck-card), 0 0 0 3px color-mix(in srgb, var(--c, #475569) 45%, transparent);
}
.ck-badge img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
/* National flag: a 4:3 waving-card look — rounded, hairline border, soft shadow, subtle sheen. */
.ck-flag { position: relative; display: inline-block; flex: none; width: 40px; height: 30px; overflow: hidden; border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .12), 0 3px 8px -3px rgba(15, 23, 42, .35); background: #e5e7eb; }
.ck-flag img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ck-flag::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .28), transparent 45%, rgba(0, 0, 0, .08)); }
.ck-flag.is-lg { width: 76px; height: 57px; border-radius: 8px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 12px 26px -10px rgba(0, 0, 0, .6); }
.ck-inn-flag { display: inline-block; width: 20px; height: 15px; margin-right: 7px; border-radius: 3px; vertical-align: -2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 23, 42, .15); }
html[data-theme="dark"] .ck-flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 3px 8px -3px rgba(0, 0, 0, .6); }
.ck-badge.is-lg { width: 64px; height: 64px; font-size: 17px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 10px 24px -8px rgba(0, 0, 0, .5); }
.ck-trophy { color: var(--ck-gold); font-size: .9em; }

/* ---------- Hub hero ---------- */
.ck-hero {
  position: relative; overflow: hidden; color: #fff; padding: 14px 0 0;
  background:
    radial-gradient(900px 300px at 85% -40%, rgba(249, 115, 22, .45), transparent 60%),
    radial-gradient(700px 260px at 0% 120%, rgba(37, 99, 235, .5), transparent 60%),
    linear-gradient(135deg, var(--ck-navy), var(--ck-navy-2));
}
.ck-hero::before { /* faint pitch stripes */
  content: ""; position: absolute; inset: 0; opacity: .035; pointer-events: none;
  background: repeating-linear-gradient(90deg, #fff 0 60px, transparent 60px 120px);
}
.ck-hero .page-shell, .ck-score-hero .page-shell { position: relative; }
.ck-page .breadcrumb-trail { width: auto; max-width: none; margin: 0 0 8px; padding: 0; }
body .ck-page :is(.ck-hero, .ck-score-hero) .breadcrumb-trail :is(ol, li::before) { color: rgba(255, 255, 255, .7); }
body .ck-page :is(.ck-hero, .ck-score-hero) .breadcrumb-trail a { color: #fff; text-decoration: none; }
body .ck-page :is(.ck-hero, .ck-score-hero) .breadcrumb-trail a:hover { text-decoration: underline; }
body .ck-page :is(.ck-hero, .ck-score-hero) .breadcrumb-trail span[aria-current] { color: rgba(255, 255, 255, .85); }
.ck-hero-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 0 18px; }
.ck-hero h1 { display: flex; align-items: center; gap: 12px; margin: 0; color: #fff; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.15; font-weight: 900; }
.ck-hero p { margin: 6px 0 0; color: rgba(255, 255, 255, .78); font-size: 15px; }
.ck-ball { /* stitched red ball */
  position: relative; display: inline-block; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ff8a8a, #dc2626 45%, #7f1d1d);
  box-shadow: inset -3px -4px 8px rgba(0, 0, 0, .35), 0 6px 16px -6px rgba(220, 38, 38, .8);
}
.ck-ball::before, .ck-ball::after { content: ""; position: absolute; top: 4px; bottom: 4px; width: 10px; border: 1.5px dashed rgba(255, 255, 255, .75); border-block: 0; border-radius: 50%; }
.ck-ball::before { left: 7px; border-right: 0; }
.ck-ball::after { right: 7px; border-left: 0; }
.ck-live-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; color: #fff; text-decoration: none;
  background: rgba(225, 29, 72, .92); font-weight: 800; font-size: 14px; box-shadow: 0 8px 22px -8px rgba(225, 29, 72, .9);
}
.ck-live-pill .ck-dot { background: #fff; }
.ck-live-pill .ck-dot::after { color: #fff; }

.ck-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ck-tabs::-webkit-scrollbar { display: none; }
.ck-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px 12px 0 0; white-space: nowrap;
  color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 800; font-size: 15px; transition: background .15s, color .15s;
}
.ck-tab:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.ck-tab[aria-selected="true"] { color: var(--ck-ink); background: var(--bg, #f6f7f9); }
body.md-ui .ck-tab[aria-selected="true"] { background: var(--md-bg, #f6f7f9); }
.ck-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 12px; text-align: center; }
.ck-tab[aria-selected="true"] .ck-count { color: #fff; background: #334155; }
.ck-tab.is-live[aria-selected="true"] .ck-count { background: var(--ck-live); }
.ck-tab.is-upcoming[aria-selected="true"] .ck-count { background: #0284c7; }
.ck-tab.is-completed[aria-selected="true"] .ck-count { background: var(--ck-green); }

/* ---------- Hub body ---------- */
.ck-body { padding-top: 18px; }
.ck-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ck-chip {
  padding: 7px 15px; border: 1px solid var(--ck-line); border-radius: 999px; background: var(--ck-card); color: var(--ck-ink);
  font: 700 13px/1.2 inherit; cursor: pointer; transition: transform .12s, background .15s, color .15s, border-color .15s;
}
.ck-chip:hover { transform: translateY(-1px); border-color: #94a3b8; }
.ck-chip:focus-visible, .ck-tab:focus-visible, .ck-card-link:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.ck-chip.is-active { color: #fff; border-color: transparent; background: #0f172a; }
html[data-theme="dark"] .ck-chip.is-active { background: #e2e8f0; color: #0f172a; }
.ck-chip.is-test.is-active { background: #9f1239; color: #fff; }
.ck-chip.is-odi.is-active { background: #1d4ed8; color: #fff; }
.ck-chip.is-t20.is-active { background: #ea580c; color: #fff; }
.ck-chip.is-t10.is-active { background: #0d9488; color: #fff; }
.ck-chip.is-comp.is-active { background: linear-gradient(135deg, #7c3aed, #c026d3); color: #fff; }
.ck-chip.is-ipl.is-active { background: linear-gradient(135deg, #1e3a8a, #f97316); color: #fff; }

.ck-panel + .ck-panel { margin-top: 28px; }
.ck-panel-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--ck-ink); font-size: 19px; font-weight: 900; }
.ck-js .ck-panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* the tab names it */
.ck-js .ck-panel + .ck-panel { margin-top: 0; }
.ck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }

.ck-card { position: relative; border-radius: var(--ck-radius); background: var(--ck-card); box-shadow: var(--ck-shadow); overflow: hidden; transition: transform .16s, box-shadow .16s; }
.ck-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--ck-a), var(--ck-b)); }
.ck-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 18px 36px -16px rgba(15, 23, 42, .35); }
.ck-card.is-live { box-shadow: 0 0 0 1.5px rgba(225, 29, 72, .55), var(--ck-shadow); }
.ck-card-link { display: flex; flex-direction: column; height: 100%; padding: 16px 16px 12px; color: inherit; text-decoration: none; }
.ck-card-head { display: flex; align-items: center; gap: 6px; min-width: 0; margin-bottom: 12px; }
.ck-series { overflow: hidden; color: var(--ck-muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.ck-teams { display: grid; gap: 10px; }
.ck-team { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.ck-team-name { display: flex; flex-direction: column; min-width: 0; }
.ck-team-name b { color: var(--ck-ink); font-size: 16px; font-weight: 900; line-height: 1.2; }
.ck-team-name small { overflow: hidden; color: var(--ck-muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.ck-team-score { display: inline-flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.ck-team-score b { color: var(--ck-ink); font-size: 20px; font-weight: 900; }
.ck-team-score small { color: var(--ck-muted); font-size: 12.5px; }
.ck-yet { font-style: italic; }
.ck-team.is-batting .ck-team-score b { color: var(--ck-live); }
.ck-card.is-completed .ck-team:not(.is-winner) { opacity: .62; }
.ck-card-foot { margin-top: auto; padding-top: 12px; }
.ck-headline { margin: 12px 0 10px; padding: 8px 11px; border-radius: 8px; font-size: 13.5px; font-weight: 700; line-height: 1.4;
  color: #9a3412; background: #fff7ed; border-left: 3px solid #f97316; }
.ck-card.is-live .ck-headline { color: #9f1239; background: #fff1f2; border-left-color: var(--ck-live); }
.ck-card.is-completed .ck-headline { color: #166534; background: #f0fdf4; border-left-color: var(--ck-green); }
.ck-card.is-upcoming .ck-headline { color: #075985; background: #f0f9ff; border-left-color: #0284c7; }
html[data-theme="dark"] .ck-headline { background: rgba(249, 115, 22, .1) !important; color: #fdba74 !important; }
html[data-theme="dark"] .ck-card.is-live .ck-headline { background: rgba(225, 29, 72, .12) !important; color: #fda4af !important; }
html[data-theme="dark"] .ck-card.is-completed .ck-headline { background: rgba(22, 163, 74, .12) !important; color: #86efac !important; }
html[data-theme="dark"] .ck-card.is-upcoming .ck-headline { background: rgba(2, 132, 199, .12) !important; color: #7dd3fc !important; }
.ck-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; padding-top: 10px; border-top: 1px dashed var(--ck-line); color: var(--ck-muted); font-size: 12.5px; }
.ck-more { margin-left: auto; color: #1d4ed8; font-weight: 800; }
html[data-theme="dark"] .ck-more { color: #93c5fd; }
.ck-card:hover .ck-more i { transform: translateX(3px); }
.ck-more i { display: inline-block; transition: transform .15s; }

.ck-empty { display: grid; place-items: center; gap: 10px; padding: 46px 16px; border: 2px dashed var(--ck-line); border-radius: var(--ck-radius); color: var(--ck-muted); text-align: center; background: var(--ck-card); }
.ck-empty p { margin: 0; font-size: 15px; }
.ck-empty-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; font-size: 24px; background: linear-gradient(135deg, #2563eb, #7c3aed); }
.ck-filter-empty { padding: 20px; color: var(--ck-muted); text-align: center; }
.ck-auto-note { display: inline-flex; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--ck-muted); font-size: 13px; font-weight: 600; }

/* ---------- Match centre: scoreboard ---------- */
.ck-score-hero {
  position: relative; overflow: hidden; color: #fff; padding: 14px 0 26px;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--ck-a) 78%, #000) 0%, rgba(11, 21, 48, .96) 42%, rgba(11, 21, 48, .96) 58%, color-mix(in srgb, var(--ck-b) 78%, #000) 100%);
}
.ck-score-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, var(--ck-a), var(--ck-b)); }
.ck-score-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ck-score-series { color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 600; }
.ck-score-hero .ck-status:not(.is-live) { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); }
.ck-score-title { margin: 10px 0 18px; color: #fff; font-size: clamp(19px, 2.6vw, 26px); font-weight: 900; line-height: 1.25; }
.ck-score-title span { color: rgba(255, 255, 255, .6); font-weight: 600; font-size: .8em; }
.ck-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.ck-board-team { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ck-board-team.side-b { flex-direction: row-reverse; text-align: right; }
.ck-board-info { display: flex; flex-direction: column; min-width: 0; }
.ck-board-name { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .9); font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.side-b .ck-board-name { justify-content: flex-end; }
.ck-board-score { color: #fff; font-size: clamp(30px, 5vw, 46px); font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ck-board-overs { color: rgba(255, 255, 255, .72); font-size: 13.5px; }
.ck-board-team:not(.is-batting):not(.is-winner) .ck-board-score { color: rgba(255, 255, 255, .78); }
.ck-score-hero.is-completed .ck-board-team:not(.is-winner) { opacity: .7; }
.ck-bat-dot { color: #4ade80; font-size: 8px; }
.ck-vs { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); font-weight: 900; font-size: 13px; letter-spacing: .04em; }
.ck-score-headline { margin: 20px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(4px); color: #fff; font-size: 15px; font-weight: 800; text-align: center; }
.ck-score-hero.is-live .ck-score-headline { background: rgba(225, 29, 72, .3); }
.ck-score-hero.is-completed .ck-score-headline { background: rgba(22, 163, 74, .32); }
.ck-rates { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.ck-rates span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .25); color: #fff; font-weight: 800; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ck-rates small { color: rgba(255, 255, 255, .7); font-size: 11px; font-weight: 700; letter-spacing: .05em; }

/* Recent balls */
.ck-recent { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 14px; border-radius: var(--ck-radius); background: var(--ck-card); box-shadow: var(--ck-shadow); }
.ck-recent-label { flex: none; color: var(--ck-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.ck-recent-balls { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.ck-ball-chip {
  display: inline-grid; place-items: center; flex: none; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 50%;
  color: var(--ck-ink); background: var(--ck-soft); border: 1px solid var(--ck-line); font: 800 12.5px/1 system-ui, sans-serif;
}
.ck-ball-chip.is-0 { color: var(--ck-muted); }
.ck-ball-chip.is-r { color: #0f172a; background: #e2e8f0; border-color: #cbd5e1; }
.ck-ball-chip.is-4, .ck-ball-chip.is-four { color: #fff; background: var(--ck-four); border-color: transparent; }
.ck-ball-chip.is-6, .ck-ball-chip.is-six { color: #fff; background: var(--ck-six); border-color: transparent; }
.ck-ball-chip.is-w, .ck-ball-chip.is-wicket { color: #fff; background: var(--ck-live); border-color: transparent; }
.ck-ball-chip.is-x, .ck-ball-chip.is-extra { color: #92400e; background: #fef3c7; border-color: #fde68a; border-radius: 8px; font-size: 11px; }
.ck-ball-chip.is-milestone { color: #fff; background: var(--ck-gold); border-color: transparent; }
.ck-ball-chip.is-result { background: #dcfce7; border-color: #bbf7d0; }
.ck-ball-chip.is-sep { min-width: 2px; width: 2px; padding: 0; border: 0; border-radius: 2px; background: var(--ck-line); margin: 0 4px; }

/* Layout: commentary + side */
.ck-match-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.ck-commentary, .ck-panel-card { border-radius: var(--ck-radius); background: var(--ck-card); box-shadow: var(--ck-shadow); }
.ck-commentary { padding: 16px 18px; }
.ck-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ck-section-head h2, .ck-panel-card h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ck-ink); font-size: 18px; font-weight: 900; }
.ck-section-head .ck-auto-note { margin: 0; }
.ck-feed { margin: 0; padding: 0; list-style: none; }
.ck-line { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ck-line); }
.ck-line:last-child { border-bottom: 0; }
.ck-line-over { display: flex; align-items: center; gap: 8px; }
.ck-line-over b { min-width: 30px; color: var(--ck-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ck-line-text { margin: 0; color: var(--ck-ink); font-size: 15px; line-height: 1.55; }
.ck-line-text time { display: block; margin-top: 2px; color: var(--ck-muted); font-size: 11.5px; }
.ck-line.is-four .ck-line-text, .ck-line.is-six .ck-line-text, .ck-line.is-wicket .ck-line-text { font-weight: 700; }
.ck-line.is-wicket { margin: 0 -18px; padding-inline: 18px; background: linear-gradient(90deg, rgba(225, 29, 72, .1), transparent 70%); }
.ck-line.is-six { margin: 0 -18px; padding-inline: 18px; background: linear-gradient(90deg, rgba(124, 58, 237, .1), transparent 70%); }
.ck-line.is-four { margin: 0 -18px; padding-inline: 18px; background: linear-gradient(90deg, rgba(37, 99, 235, .08), transparent 70%); }
.ck-line.is-milestone { margin: 0 -18px; padding-inline: 18px; background: linear-gradient(90deg, rgba(245, 158, 11, .14), transparent 70%); }
.ck-line.is-over_end { margin: 6px -18px; padding: 9px 18px; background: var(--ck-soft); border-bottom: 0; }
.ck-line.is-over_end .ck-line-text { color: var(--ck-muted); font-size: 13.5px; font-weight: 800; }
.ck-line.is-result { margin: 0 -18px; padding-inline: 18px; background: linear-gradient(90deg, rgba(22, 163, 74, .14), transparent 80%); }
.ck-line.is-result .ck-line-text { font-weight: 800; color: #15803d; }
html[data-theme="dark"] .ck-line.is-result .ck-line-text { color: #86efac; }
.ck-line.is-info .ck-line-text { color: var(--ck-muted); font-style: italic; }
.ck-line.is-empty { display: block; color: var(--ck-muted); }
.ck-line.is-new { animation: ck-flash 2.4s ease-out; }
@keyframes ck-flash { 0% { background-color: rgba(250, 204, 21, .35); } 100% { background-color: transparent; } }

.ck-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; }
.ck-panel-card { padding: 14px 16px; }
.ck-panel-card h2 { font-size: 16px; margin-bottom: 10px; }
.ck-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ck-table + .ck-table { margin-top: 12px; }
.ck-table th, .ck-table td { padding: 7px 4px; border-bottom: 1px solid var(--ck-line); text-align: right; }
.ck-table thead th { color: var(--ck-muted); font-size: 11.5px; font-weight: 800; text-transform: uppercase; }
.ck-table th:first-child { text-align: left; }
.ck-table tbody th { color: var(--ck-ink); font-weight: 700; }
.ck-table tr.is-strike th { color: #1d4ed8; }
html[data-theme="dark"] .ck-table tr.is-strike th { color: #93c5fd; }
.ck-strike { margin-left: 2px; color: var(--ck-live); }
.ck-innings { margin: 0; padding: 0; list-style: none; }
.ck-innings li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0 9px 12px; border-bottom: 1px solid var(--ck-line); border-left: 4px solid var(--c); margin-bottom: 6px; border-radius: 2px; }
.ck-innings li:last-child { border-bottom: 0; }
.ck-innings span { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 4px; color: var(--ck-ink); font-weight: 700; font-size: 14px; }
.ck-innings small { color: var(--ck-muted); font-weight: 600; }
.ck-innings b { color: var(--ck-ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.ck-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 13.5px; }
.ck-facts dt { color: var(--ck-muted); font-weight: 700; }
.ck-facts dd { margin: 0; color: var(--ck-ink); }
.ck-report-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 10px; border-radius: 10px; color: #fff; text-decoration: none; font-weight: 800; background: linear-gradient(135deg, #d52a31, #f97316); }
.ck-back { color: var(--ck-muted); font-weight: 700; text-decoration: none; font-size: 14px; }
.ck-back:hover { color: var(--ck-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .ck-match-layout { grid-template-columns: minmax(0, 1fr); }
  .ck-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
  .ck-side .ck-back { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ck-tab { padding: 10px 13px; font-size: 14px; }
  .ck-board { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ck-board-team.side-b { flex-direction: row; text-align: left; }
  .side-b .ck-board-name { justify-content: flex-start; }
  .ck-vs { display: none; }
  .ck-badge.is-lg { width: 48px; height: 48px; font-size: 14px; }
  .ck-flag.is-lg { width: 56px; height: 42px; }
  .ck-board-score { font-size: 30px; }
  .ck-line { grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
  .ck-commentary { padding: 14px; }
  .ck-line.is-wicket, .ck-line.is-six, .ck-line.is-four, .ck-line.is-milestone, .ck-line.is-over_end, .ck-line.is-result { margin-inline: -14px; padding-inline: 14px; }
}

/* ---------- Match centre: Commentary | Scorecard tabs ---------- */
.ck-page .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ck-pane-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--ck-soft); }
.ck-pane-tabs button {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border: 0; border-radius: 9px; background: transparent;
  color: var(--ck-muted); font: 800 15px/1.2 inherit; cursor: pointer; transition: background .15s, color .15s;
}
.ck-pane-tabs button:hover { color: var(--ck-ink); }
.ck-pane-tabs button[aria-selected="true"] { background: var(--ck-card); color: var(--ck-ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .15); }
.ck-pane-tabs button:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.ck-js-tabs .ck-pane[hidden] { display: none; }
.ck-commentary:not(.ck-js-tabs) .ck-pane + .ck-pane { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ck-line); }

/* ---------- Scorecard ---------- */
.ck-card-inn { margin-top: 12px; border: 1px solid var(--ck-line); border-radius: 12px; overflow: hidden; }
.ck-card-inn + .ck-card-inn { margin-top: 18px; }
.ck-card-inn-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: #fff;
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 88%, #000), color-mix(in srgb, var(--c) 55%, #0b1530));
}
.ck-card-inn-head h3 { flex: 1; margin: 0; color: #fff; font-size: 16px; font-weight: 900; }
.ck-card-inn-head h3 small { color: rgba(255, 255, 255, .75); font-size: 12px; font-weight: 700; }
.ck-card-inn-score { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ck-card-inn-score small { font-size: 12px; font-weight: 600; opacity: .8; }
.ck-inn-flag.is-md { width: 28px; height: 21px; border-radius: 4px; margin: 0; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .8); }
.ck-inn-code { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .2); font-size: 11px; font-weight: 900; }
.ck-table-wrap { overflow-x: auto; }
.ck-sc-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ck-sc-table th, .ck-sc-table td { padding: 9px 10px; border-bottom: 1px solid var(--ck-line); text-align: right; white-space: nowrap; }
.ck-sc-table thead th { background: var(--ck-soft); color: var(--ck-muted); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ck-sc-table th:first-child { width: 100%; text-align: left; white-space: normal; }
.ck-sc-table tbody th { font-weight: 400; }
.ck-sc-name { display: block; color: #1d4ed8; font-weight: 800; }
html[data-theme="dark"] .ck-sc-name { color: #93c5fd; }
.ck-sc-out { display: block; margin-top: 1px; color: var(--ck-muted); font-size: 12.5px; font-weight: 500; }
.ck-sc-runs { color: var(--ck-ink); font-weight: 900; }
.ck-sc-table tr.is-batting { background: rgba(34, 197, 94, .08); }
.ck-sc-table tr.is-batting .ck-sc-out { color: #15803d; font-weight: 700; }
html[data-theme="dark"] .ck-sc-table tr.is-batting .ck-sc-out { color: #86efac; }
.ck-sc-table tr.is-not_out .ck-sc-out { color: #15803d; }
.ck-sc-table tr.is-bowling-now { background: rgba(37, 99, 235, .07); }
.ck-sc-table tfoot th, .ck-sc-table tfoot td { background: var(--ck-soft); }
.ck-sc-table tfoot td { color: var(--ck-ink); text-align: left; font-weight: 700; }
.ck-sc-total th, .ck-sc-total td { font-size: 15px; font-weight: 900 !important; color: var(--ck-ink); }
.ck-sc-table.is-bowling { border-top: 3px solid var(--ck-line); }
.ck-fow { padding: 10px 14px; border-bottom: 1px solid var(--ck-line); }
.ck-fow h4 { margin: 0 0 4px; color: var(--ck-muted); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ck-fow p { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 13px; color: var(--ck-ink); }
.ck-fow small { color: var(--ck-muted); }
.ck-sc-none { margin: 10px 0 0; padding: 14px; color: var(--ck-muted); }
@media (max-width: 640px) {
  .ck-pane-tabs button { padding: 7px 11px; font-size: 14px; }
  .ck-sc-table th, .ck-sc-table td { padding: 8px 6px; font-size: 13px; }
  .ck-card-inn-score { font-size: 17px; }
}

/* ---------- Stoppages, reduced overs, revised targets ---------- */
.ck-status.is-paused { color: #92400e; background: #fef3c7; border-color: #fcd34d; }
.ck-status.is-paused i { font-size: 12px; }
html[data-theme="dark"] .ck-status.is-paused { color: #fcd34d; background: rgba(245, 158, 11, .16); border-color: rgba(245, 158, 11, .4); }
.ck-score-hero .ck-status.is-paused { color: #78350f; background: #fde68a; border-color: transparent; }
.ck-headline.is-paused, .ck-card .ck-headline.is-paused { color: #92400e; background: #fffbeb; border-left-color: #f59e0b; }
html[data-theme="dark"] .ck-headline.is-paused { color: #fcd34d !important; background: rgba(245, 158, 11, .12) !important; }
.ck-card:has(.ck-status.is-paused) { box-shadow: 0 0 0 1.5px rgba(245, 158, 11, .6), var(--ck-shadow); }
.ck-reduced { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 10px; padding: 3px 9px; border-radius: 999px; background: #ede9fe; color: #5b21b6; font-size: 12px; font-weight: 800; }
html[data-theme="dark"] .ck-reduced { background: rgba(124, 58, 237, .18); color: #c4b5fd; }
.ck-pause-banner { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 20px 0 0; padding: 12px 16px; border-radius: 12px; color: #fff; text-align: left;
  background: linear-gradient(100deg, rgba(245, 158, 11, .9), rgba(217, 119, 6, .85)); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.ck-pause-banner.is-weather { background: linear-gradient(100deg, rgba(71, 85, 105, .92), rgba(30, 64, 175, .85)); }
.ck-pause-banner > i { font-size: 30px; line-height: 1; }
.ck-pause-banner.is-weather > i { animation: ck-rain 2.4s ease-in-out infinite; }
@keyframes ck-rain { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .ck-pause-banner.is-weather > i { animation: none; } }
.ck-pause-banner b { display: block; font-size: 16px; font-weight: 900; }
.ck-pause-banner small { display: block; margin-top: 2px; color: rgba(255, 255, 255, .85); font-size: 13px; }
.ck-rates .is-revised { background: rgba(124, 58, 237, .55); }
.ck-rates .is-reduced { background: rgba(124, 58, 237, .35); }

/* SEO text and headings */
.ck-title-kind { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .9) !important; font-size: .55em !important; font-weight: 800 !important; vertical-align: middle; }
.ck-score-alt { margin: -12px 0 16px; color: rgba(255, 255, 255, .8); font-size: 15px; font-weight: 700; }
.ck-about { margin-top: 32px; padding: 18px 20px; border-radius: var(--ck-radius); background: var(--ck-card); box-shadow: var(--ck-shadow); }
.ck-about h2 { margin: 0 0 8px; color: var(--ck-ink); font-size: 17px; font-weight: 900; }
.ck-about p { margin: 0; color: var(--ck-muted); font-size: 14.5px; line-height: 1.7; }
.ck-about-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px !important; }
.ck-about-links a { padding: 5px 12px; border: 1px solid var(--ck-line); border-radius: 999px; color: var(--ck-ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.ck-about-links a:hover { border-color: #94a3b8; }

/* Super Over scores, shown apart from the main innings */
.ck-board-so { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: rgba(124, 58, 237, .55); color: #fff; font-size: 12.5px; font-weight: 800; }
.ck-so-tag { padding: 1px 6px; border-radius: 999px; background: #ede9fe; color: #5b21b6 !important; font-size: 10.5px !important; font-weight: 800; white-space: nowrap; }
html[data-theme="dark"] .ck-so-tag { background: rgba(124, 58, 237, .25); color: #c4b5fd !important; }
.ck-sc-table tr.is-retired .ck-sc-out { color: #b45309; font-weight: 700; }
