/* cricstat pages (P0.4) — the pandyaHomeLab homepage theme (dark surfaces, 12px radius, frosted nav,
   glow gradients, pill badges, fade-up cards) with cricstat's accents: saffron + India blue.
   System fonts only: nothing is loaded from third parties (site privacy promise). */
:root {
  --bg: #0d0f14; --surface: #13161e; --surface2: #1a1e2a; --surface3: #212636; --border: #252a38;
  --text: #e2e8f0; --soft: #cbd5e1; --dim: #94a3b8; --muted: #64748b; --radius: 12px;
  --saffron: #FF9933; --blue: #4F7FD6; --blue-deep: #1347A3; --green: #22c55e; --red: #ef4444;
  --amber: #facc15; --mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6;
       font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; }
a { color: var(--saffron); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 200; background: var(--surface2); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }

/* ── nav (same shape as the homepage) ── */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 72px;
            display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1.5rem;
            background: rgba(13,15,20,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
            border-bottom: 1px solid var(--border); }
.brand { color: var(--text); font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.brand em { font-style: normal; color: var(--blue); }
.brand .sep { color: var(--muted); font-weight: 400; margin: 0 .35rem; }
.cs { color: #fff; font-weight: inherit; white-space: nowrap; } .cs b { color: var(--saffron); font-weight: inherit; }
.cs i { font-style: normal; } .cs-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .cs-i { position: relative; display: inline-block; line-height: 1.05; } .cs-i::after { content: ""; position: absolute; left: 50%; top: .03em; width: .3em; height: .3em; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 32%, #e2544b, #b3201c 65%, #6e1210); box-shadow: inset -.03em -.03em .04em rgba(0,0,0,.35); }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; overflow-x: auto;
             scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a, .nav-links span { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
                                color: var(--dim); font-size: .875rem; padding: .55rem .8rem; border-radius: 99px;
                                min-height: 40px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface2); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--saffron); background: rgba(255,153,51,.1); }
.nav-links span.soon { color: var(--muted); cursor: default; }
.soon-tag, .nav-links span.soon-tag { font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
            border: 1px solid currentColor; border-radius: 99px; padding: 0 .4rem; line-height: 1.4; min-height: 0; }
@media (max-width: 720px) { .site-nav { height: auto; flex-wrap: wrap; padding: .6rem 1rem; gap: .25rem; }
                            .nav-links { width: 100%; } }
.page-top { padding-top: 72px; } @media (max-width: 720px) { .page-top { padding-top: 104px; } }

/* ── layout ── */
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 3rem); }
.section { padding: 1.8rem 0; }
.section-label { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--soft); margin-bottom: .5rem; }
.section-title { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: .4rem; }
.section-desc { color: var(--dim); max-width: 640px; margin-bottom: 1rem; font-size: .95rem; }
.section-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: .9rem; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: .875rem; } .tiny { font-size: .78rem; }

/* ── hero ── */
.hero { padding: 3.4rem 0 2.4rem; text-align: center;
        background: radial-gradient(ellipse 70% 55% at 18% 35%, rgba(19,71,163,.28) 0%, transparent 60%),
                    radial-gradient(ellipse 60% 50% at 82% 60%, rgba(255,153,51,.12) 0%, transparent 60%), var(--bg); }
.hero.left { text-align: left; padding: 3.5rem 0 2.2rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: var(--surface2); border: 1px solid var(--border);
           border-radius: 99px; padding: .35rem 1rem; font-size: .75rem; color: var(--soft); letter-spacing: .08em;
           text-transform: uppercase; margin-bottom: 1.4rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 6px var(--saffron);
       animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .4 } }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--saffron); }
.hero h1 .cs { font-weight: 800; }
.hero .subtitle { max-width: 860px; margin: 0 auto 2rem; color: var(--soft); font-size: 1.05rem; }
.hero.left .subtitle { margin: 0 0 1.2rem; }

/* big search */
.search-bar { display: flex; gap: .5rem; max-width: 720px; margin: 0 auto; background: var(--surface);
              border: 1px solid var(--border); border-radius: 99px; padding: .35rem .35rem .35rem 1.2rem;
              transition: border-color .2s, box-shadow .2s; }
.search-bar:focus-within { border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(255,153,51,.12); }
.hero.left .search-bar { margin: 0; }
.search-bar input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: inherit;
                    font-size: 1rem; outline: none; min-height: 44px; }
.search-bar input::placeholder { color: var(--muted); }

/* buttons, pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px;
       padding: .6rem 1.4rem; border-radius: 99px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
       border: 1px solid var(--border); background: var(--surface2); color: var(--text);
       transition: transform .15s, box-shadow .15s, border-color .2s, background .2s; }
.btn:hover { transform: translateY(-2px); text-decoration: none; border-color: var(--muted); }
.btn.pri { background: var(--saffron); border-color: var(--saffron); color: #0d0f14; box-shadow: 0 4px 20px rgba(255,153,51,.35); }
.btn.pri:hover { box-shadow: 0 6px 28px rgba(255,153,51,.55); }
.btn.ghost { background: rgba(79,127,214,.1); border-color: rgba(79,127,214,.35); color: var(--blue); }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.tab { min-height: 40px; padding: .4rem 1rem; border-radius: 99px; border: 1px solid var(--border); background: var(--surface);
       color: var(--dim); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.tab:hover { color: var(--text); border-color: var(--muted); }
.tab[aria-pressed="true"] { color: #0d0f14; background: var(--saffron); border-color: var(--saffron); }
.tab small { font-weight: 500; opacity: .75; margin-left: .25rem; }
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 99px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; }
.badge.live { background: rgba(34,197,94,.15); color: var(--green); }
.badge.soon { background: rgba(100,116,139,.15); color: var(--dim); }
.badge.fmt { background: rgba(79,127,214,.15); color: var(--blue); }
.badge.saff { background: rgba(255,153,51,.15); color: var(--saffron); }

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem;
        transition: transform .2s, border-color .2s; animation: fadeUp .4s ease both; }
.card.accent { border-top: 3px solid var(--saffron); } .card.blue { border-top: 3px solid var(--blue); }
a.card { color: var(--text); display: block; } a.card:hover { transform: translateY(-4px); border-color: var(--saffron); text-decoration: none; }
.card h2, .card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .9rem; }
.card-head { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.card-head h2, .card-head h3 { margin: 0; }
.card.disabled { opacity: .6; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
.grid > :nth-child(2), .grid-4 > :nth-child(2) { animation-delay: .05s }
.grid > :nth-child(3), .grid-4 > :nth-child(3) { animation-delay: .1s }
.grid > :nth-child(4), .grid-4 > :nth-child(4) { animation-delay: .15s }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* big numbers */
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.25rem; max-width: 1200px; margin: 2.2rem auto 0; }
.counter { background: rgba(19,22,30,.7); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.c-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px;
          font-style: normal; font-size: 1.25rem; margin-bottom: .45rem; }
.c-icon.saff { background: rgba(255,153,51,.13); } .c-icon.blue { background: rgba(79,127,214,.15); }
.counter b { display: block; font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.counter span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.kpi { display: flex; flex-direction: column; gap: .15rem; }
.kpi b { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1rem; }

/* team badge + player avatar (no flags or logos: colours and codes only) */
.tbadge { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px;
          border-radius: 10px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: #fff;
          box-shadow: inset 0 -4px 0 var(--b2, rgba(255,255,255,.25)); text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.tbadge.sm { width: 30px; height: 30px; border-radius: 8px; font-size: .6rem; }
.tbadge.lg { width: 76px; height: 76px; border-radius: 18px; font-size: 1.25rem; box-shadow: inset 0 -7px 0 var(--b2, rgba(255,255,255,.25)), 0 8px 30px rgba(0,0,0,.35); }
.tflag { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 40px; height: 40px; }
.tflag.xs { min-width: 0; height: 14px; } .tflag.xs img { box-shadow: none; border-radius: 1px; }
.team-line { display: inline-flex; align-items: center; gap: .4rem; }
.tflag.sm { min-width: 30px; height: 30px; } .tflag.lg { min-width: 76px; height: 76px; }
.tflag img { display: block; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px;
          border-radius: 50%; font-weight: 800; font-size: .85rem; color: #fff; letter-spacing: .02em;
          border: 2px solid rgba(255,255,255,.12); text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.avatar.lg { width: 108px; height: 108px; font-size: 2rem; border-width: 3px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
/* Player photo (P0.5): portrait thumbnail, shown whole-width and cropped to the frame by CSS only */
.avatar-photo { flex: 0 0 auto; width: 108px; height: 135px; object-fit: cover; object-position: 50% 20%;
                border-radius: 14px; border: 3px solid rgba(255,255,255,.12); box-shadow: 0 10px 40px rgba(0,0,0,.4);
                background: var(--surface2); }
.photo-credit a { color: inherit; text-decoration: underline; }
.avatar.photo { object-fit: cover; object-position: 50% 15%; padding: 0; background: var(--surface2); }
.ssr-photo { float: right; margin: 0 0 .6rem 1rem; max-width: 140px; }
.ssr-photo img { width: 100%; height: auto; border-radius: 10px; }
.who { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.who .name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .sub { font-size: .78rem; color: var(--dim); }
.who .name-line { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.role-ic { display: inline-flex; flex: 0 0 auto; width: 22px; height: 22px; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid var(--border); }
.role-badge { display: inline-flex; align-items: center; gap: .35rem; }
.role-badge .role-ic { width: 18px; height: 18px; background: none; border: 0; }
.role-badge .role-ic svg { width: 15px; height: 15px; }

/* results: score cards in a scroll strip */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 300px); gap: 1rem; overflow-x: auto;
         padding: .25rem .1rem 1rem; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--surface3) transparent; }
.strip > * { scroll-snap-align: start; }
.mcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem;
         display: flex; flex-direction: column; gap: .7rem; animation: fadeUp .4s ease both; }
.mcard:hover { border-color: var(--surface3); }
.mcard .top { display: flex; justify-content: space-between; gap: .5rem; align-items: center; font-size: .72rem; color: var(--dim); }
.mcard .top .comp { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard .team { display: flex; align-items: center; gap: .65rem; }
.mcard .team .tname { flex: 1; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard .team .score { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; font-size: .95rem; }
.mcard .team .score small { display: block; font-weight: 500; color: var(--dim); font-size: .72rem; }
.mcard .team.lost .tname, .mcard .team.lost .score { color: var(--dim); }
.mcard .team.won .tname::after { content: " ✓"; color: var(--green); }
.mcard .res { font-size: .82rem; color: var(--saffron); font-weight: 600; border-top: 1px solid var(--border); padding-top: .6rem; }
.mcard .where { font-size: .72rem; color: var(--muted); }
/* 2027 ODI World Cup ground marker (match cards, most-played venues) */
.wc27 { color: var(--saffron); font-weight: 600; margin-left: .35em; white-space: nowrap; cursor: help; }
.wc27-key { margin-top: .4rem; } .wc27-key .wc27 { margin: 0 .2em 0 0; }

/* form dots */
.form { display: inline-flex; gap: .3rem; }
.form i { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
          font-style: normal; font-size: .68rem; font-weight: 800; color: #0d0f14; }
.form i.W { background: var(--green); } .form i.L { background: var(--red); color: #fff; }
.form i.T, .form i.D, .form i.N { background: var(--surface3); color: var(--soft); }

/* ranked lists (leaders, top players) */
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--border); counter-increment: r; }
.rank li:last-child { border-bottom: 0; }
.rank li::before { content: counter(r); width: 1.4rem; color: var(--muted); font-weight: 700; font-size: .8rem; text-align: right; }
.rank li:first-child::before { color: var(--saffron); }
.rank .val { margin-left: auto; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.rank .val small { display: block; font-weight: 500; color: var(--dim); font-size: .72rem; }
.rank a { color: inherit; } .rank a:hover { color: var(--saffron); text-decoration: none; }

/* tables */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; background: var(--surface2); }
th:first-child, td:first-child { text-align: left; }
td.txt, th.txt { text-align: left; white-space: normal; }
tbody tr:hover td { background: rgba(255,255,255,.02); }
tbody tr:last-child td { border-bottom: 0; }
td.hl { color: var(--saffron); font-weight: 700; }
.tablecard { padding: 0; overflow: hidden; } .tablecard .card-head { padding: 1.1rem 1.3rem 0; }
.tablecard .scroll { margin-top: .4rem; }

/* misc */
.chart { position: relative; height: 280px; }
.loading { color: var(--muted); }
.skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface2) 50%, var(--surface) 100%);
            background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }
.notice { background: rgba(250,204,21,.07); border: 1px solid rgba(250,204,21,.3); color: var(--soft); border-radius: var(--radius); padding: .9rem 1.1rem; }
.error { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.35); color: #fecaca; border-radius: var(--radius); padding: .9rem 1.1rem; }
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: .6rem; }
.flow .step { flex: 1 1 150px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem;
              text-align: center; font-size: .85rem; color: var(--soft); display: flex; flex-direction: column; justify-content: center; gap: .3rem; }
.flow .step b { color: var(--text); font-size: .95rem; }
.flow .arrow { align-self: center; color: var(--saffron); }
.quote { font-size: 1.1rem; line-height: 1.65; color: var(--soft); border-left: 3px solid var(--saffron); padding-left: 1.2rem; }
select { font: inherit; font-size: .9rem; min-height: 40px; padding: 0 2rem 0 .9rem; border-radius: 99px; border: 1px solid var(--border);
         background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2394a3b8' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .8rem center;
         color: var(--text); appearance: none; -webkit-appearance: none; }
label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.field { display: flex; flex-direction: column; gap: .35rem; }
ul.plain { margin: 0; padding-left: 1.2em; color: var(--soft); } ul.plain li { margin: .35rem 0; }

/* footer (like the homepage) */
.site-foot { border-top: 1px solid var(--border); text-align: center; padding: 2rem 1rem; font-size: .8rem; color: var(--muted); margin-top: 2rem; }
.site-foot p { margin: .3rem 0; } .site-foot a { color: var(--blue); }

/* results carousel: arrows centred on the strip's edges */
.carousel { position: relative; }
.carousel .strip { scroll-behavior: smooth; }
.car-btn { position: absolute; top: calc(50% - .5rem); transform: translateY(-50%); z-index: 2; width: 44px; height: 44px;
           border-radius: 50%; border: 1px solid var(--border); background: rgba(19,22,30,.92); color: var(--text);
           font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
           box-shadow: 0 6px 20px rgba(0,0,0,.45); transition: background .2s, border-color .2s, opacity .2s; }
.car-btn:hover { border-color: var(--saffron); color: var(--saffron); }
.car-btn.prev { left: -.6rem; } .car-btn.next { right: -.6rem; }
.car-btn[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 560px) { .car-btn { width: 38px; height: 38px; font-size: 1.3rem; } .car-btn.prev { left: -.2rem; } .car-btn.next { right: -.2rem; } }

/* men / women radio as a two-way pill */
.radio-pill { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 3px; }
.radio-pill label { margin: 0; letter-spacing: 0; text-transform: none; font-size: .85rem; color: var(--dim); cursor: pointer; }
.radio-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-pill span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 1rem; border-radius: 99px; font-weight: 600; transition: all .2s; }
.radio-pill input:checked + span { background: var(--blue); color: #fff; }
.radio-pill input:focus-visible + span { outline: 2px solid var(--saffron); outline-offset: 2px; }

.age { font-size: .68rem; font-weight: 700; color: var(--saffron); background: rgba(255,153,51,.1); border-radius: 99px; padding: .05rem .5rem; margin-left: .3rem; white-space: nowrap; }
#latest-fresh { color: var(--amber); }

/* results donut */
.donut-row { display: flex; align-items: center; gap: 1.1rem; }
.donut-row svg { flex: 0 0 auto; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-size: .8rem; color: var(--dim); }
.legend li { display: flex; align-items: center; gap: .45rem; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.legend b { margin-left: auto; padding-left: .8rem; color: var(--text); font-variant-numeric: tabular-nums; }
/* ranked rows: the name shrinks with an ellipsis, the value never overlaps it */
.rank li .who { flex: 1 1 auto; min-width: 0; }
.rank li .who > div { min-width: 0; overflow: hidden; }
.rank li .who .name { display: block; }
.rank .val { flex: 0 0 auto; padding-left: .6rem; }

/* format cards: equal heights, the "Last: …" line pinned to the bottom so it lines up across cards */
.card.fcard, a.card.fcard { display: flex; flex-direction: column; }
.fcard .donut-row { flex: 1 0 auto; }
.fcard .last { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--border); }
.fcard .donut-row + .last { margin-top: auto; }
.legend li { white-space: nowrap; }
.donut-row .kpi span { white-space: nowrap; }
.donut-row .kpi small { color: var(--soft); font-size: .78rem; font-weight: 600; }
.legend li.zero { opacity: .45; }

.tab.sm { min-height: 30px; padding: .2rem .7rem; font-size: .75rem; }
.tab[disabled] { opacity: .35; cursor: not-allowed; }

.donut-row.empty { min-height: 100px; justify-content: center; }

/* what each volume number is for */
.counter { display: flex; flex-direction: column; align-items: center; }
.c-note { display: block; margin-top: .55rem; padding-top: .55rem; border-top: 1px solid var(--border); font-size: .78rem;
          line-height: 1.45; color: var(--dim); max-width: 32ch; }
.why-volume { max-width: 1200px; text-wrap: pretty; margin: 1.4rem auto 0; color: var(--soft); font-size: .92rem; line-height: 1.6; }
.why-volume b { color: var(--text); } .why-volume .badge { margin-left: .3rem; vertical-align: 1px; }

/* World Cup 2027 predictor highlight */
.wc-hl { font-weight: 800; background: linear-gradient(90deg, #FF9933, #FFD166, #FF9933); background-size: 200% 100%;
         -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; white-space: nowrap;
         animation: wc-shine 4s linear infinite; }
.wc-hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
                background: linear-gradient(90deg, transparent, #FF9933, #FFD166, transparent); background-size: 200% 100%;
                animation: wc-shine 4s linear infinite; }
.wc-hl:hover { text-decoration: none; filter: brightness(1.15); }
@keyframes wc-shine { from { background-position: 200% 0 } to { background-position: -200% 0 } }
.wc-tease { display: inline-flex; align-items: center; gap: .75rem; margin-top: 1.2rem; padding: .75rem 1.65rem; border-radius: 99px;
            border: 1.5px solid rgba(255,153,51,.5); background: rgba(255,153,51,.08); color: var(--text); font-size: 1.32rem; font-weight: 600;
            max-width: 100%; text-align: left;
            transition: transform .15s, background .2s, border-color .2s; }
.wc-tease:hover { text-decoration: none; transform: translateY(-2px); background: rgba(255,153,51,.16); border-color: var(--saffron); }
.wc-hook { font-size: 1.15rem; font-weight: 700; color: var(--saffron); margin-bottom: .5rem; }
.wc-card { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: reduce) { .wc-hl, .wc-hl::after { animation: none; } }
@media (max-width: 560px) { .wc-tease { font-size: 1.05rem; padding: .65rem 1.2rem; } }

/* section panels: each content section gets its own bordered surface */
.section.panel { padding: .55rem 0; }
.section.panel > .wrap { width: calc(100% - 2 * clamp(1rem, 3vw, 3rem)); max-width: calc(1440px - 6rem); padding: clamp(1rem, 2vw, 1.6rem);
                         border: 1px solid var(--border); border-radius: 16px;
                         background: linear-gradient(180deg, rgba(26,30,42,.55), rgba(19,22,30,.35)); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.section.panel > .wrap > .section-head:first-child, .section.panel > .wrap > .section-label:first-child { margin-top: 0; }
.section.panel .card { background: var(--surface); }
.pop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .pop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pop-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .section.panel > .wrap { width: calc(100% - 1.5rem); } }

/* data-volume panel (counters + why it matters + World Cup teaser) */
.volume { text-align: center; }
.volume .counters { margin-top: 0; max-width: none; }
.hero { padding-bottom: 1.4rem; }

/* two-line World Cup teaser: question on top, models line centred beneath */
.wc-tease { flex-direction: column; align-items: center; text-align: center; gap: .35rem; border-radius: 28px; padding: .9rem 2rem; }
.wc-tease .wc-q { font-size: 1.32rem; font-weight: 700; }
.wc-tease .wc-sub { font-size: 1.05rem; font-weight: 500; color: var(--soft); }
@media (max-width: 560px) { .wc-tease .wc-q { font-size: 1.1rem; } .wc-tease .wc-sub { font-size: .95rem; } }
.wc-tease .wc-q { display: inline-flex; align-items: center; gap: .6rem; }
.wc-icon { flex: 0 0 auto; filter: drop-shadow(0 3px 8px rgba(245,184,46,.35)); }
@media (max-width: 560px) { .wc-icon { width: 36px; height: 36px; } }

/* licences: per-flag sources */
.flag-sources { padding: 0 1.3rem 1.1rem; }
.flag-sources summary { cursor: pointer; color: var(--soft); font-size: .85rem; }
.flag-sources ul { list-style: none; margin: .6rem 0 0; padding: 0; columns: 4 200px; column-gap: 1.2rem; font-size: .8rem; color: var(--dim); }
.flag-sources li { break-inside: avoid; padding: .1rem 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-align: left; }
.link-btn:hover, .link-btn:focus-visible { text-decoration: underline; }
tr.total td { border-top: 1px solid var(--border); background: var(--surface2); font-weight: 600; }
.team-badge .team-line { gap: .35rem; } .team-badge .tflag.xs { height: 12px; } .team-badge .tflag.xs img { height: 10px; width: auto; }

/* About cricstat drawer (same pattern as the homepage's About drawer, saffron accent) */
.site-nav .about-trigger { margin-left: auto; flex: 0 0 auto; }
.about-trigger { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border-radius: 99px;
  border: 1px solid rgba(255,153,51,.4); background: rgba(255,153,51,.1); color: var(--saffron);
  font-family: inherit; font-size: .82rem; font-weight: 600; line-height: 1; cursor: pointer; transition: all .2s; white-space: nowrap; }
.about-trigger:hover { background: rgba(255,153,51,.2); border-color: var(--saffron); transform: translateY(-1px); }
.hero-hook { width: fit-content; max-width: 100%; margin: 1.2rem auto 2rem; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: .3rem .6rem; padding: .6rem 1.2rem; border-radius: 99px; color: var(--soft);
  font-size: 1.02rem; font-weight: 500; border: 1px solid rgba(255,153,51,.38); background: rgba(255,153,51,.07);
  box-shadow: 0 0 24px rgba(255,153,51,.08); }
@media (max-width: 720px) { .hero-hook { border-radius: 16px; font-size: .95rem; } }
.hero-hook .link-btn { color: var(--saffron); font-weight: 700; }
.about-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.7); opacity: 0; pointer-events: none;
  transition: opacity .25s ease; z-index: 1000; }
.about-backdrop.visible { opacity: 1; pointer-events: auto; }
.about-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 640px; background: var(--surface);
  border-left: 1px solid var(--border); box-shadow: -8px 0 24px rgba(0,0,0,.4); transform: translateX(100%);
  transition: transform .3s ease; z-index: 1001; overflow-y: auto; padding: 1.5rem 1.75rem 3rem; visibility: hidden; }
.about-drawer.visible { transform: translateX(0); visibility: visible; }
.about-header { position: sticky; top: 0; z-index: 1; background: var(--surface); padding: .25rem 0 1rem;
  border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; display: flex; justify-content: space-between;
  align-items: flex-start; gap: 1rem; }
.about-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.about-tagline { font-size: .85rem; color: var(--dim); margin-top: .35rem; line-height: 1.5; }
.about-close { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface2); color: var(--dim); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.about-close:hover { color: var(--text); border-color: var(--saffron); }
.about-section { margin-bottom: 2rem; }
.about-section h3 { display: flex; align-items: center; gap: .5rem; font-size: .98rem; font-weight: 700;
  color: var(--text); margin-bottom: .8rem; }
.about-section h3 .icon { font-size: 1.15rem; }
.about-section p { font-size: .88rem; color: var(--soft); line-height: 1.7; margin-bottom: .7rem; }
.about-section em { font-style: italic; color: var(--text); }
.about-section strong { color: var(--text); }
#about-story p strong { color: var(--saffron); }
.about-bullets { list-style: none; padding: 0; margin: .5rem 0 .8rem; }
.about-bullets li { padding: .65rem .9rem; margin-bottom: .5rem; background: var(--surface2); border-left: 2px solid var(--saffron);
  border-radius: 4px; font-size: .84rem; line-height: 1.6; color: var(--soft); }
.about-bullets li b { color: var(--saffron); font-weight: 700; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .85rem; }
.about-fact { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: .55rem .7rem; }
.about-fact-label { font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.about-fact-value { font-size: .85rem; font-weight: 700; color: var(--text); margin-top: .15rem; }
.about-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.about-link { display: inline-flex; padding: .55rem .9rem; border-radius: 6px; background: var(--surface2);
  border: 1px solid var(--border); color: var(--saffron); font-size: .83rem; font-weight: 600; }
.about-link:hover { border-color: var(--saffron); text-decoration: none; }
.about-diagram { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 1rem;
  margin-top: .85rem; overflow-x: auto; }
.about-diagram pre.mermaid { margin: 0; color: var(--dim); font-size: .75rem; white-space: pre-wrap; }
.about-diagram svg { max-width: 100%; height: auto; }
@media (max-width: 720px) { .site-nav .about-trigger { margin-left: auto; padding: .35rem .8rem; } .site-nav .nav-links { order: 3; } }

/* Cricket feel (trial 2026-10-06; revert = git tag cricstat-p04-approved-look). The ground drawing was tried and removed. */
/* 2. scoreboard digits on the hub counters: one dark tile per digit, amber like a stadium board */
.counter b.sb { display: flex; justify-content: center; gap: 3px; font-family: var(--mono); font-weight: 700; letter-spacing: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem); margin: .3rem 0 .35rem; }
.counter b.sb span { font-size: inherit; letter-spacing: 0; text-transform: none; color: #ffc46b; }
.sb-d { display: inline-flex; align-items: center; justify-content: center; min-width: 1.05em; padding: .14em .08em;
  background: linear-gradient(#07090d 0 49%, #000 49% 51%, #0b0e14 51%); border: 1px solid #262c3b; border-radius: 4px;
  color: #ffc46b; text-shadow: 0 0 8px rgba(255,170,60,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 2px 6px rgba(0,0,0,.4); }
.sb-s { display: inline-flex; align-items: flex-end; color: #ffc46b; padding: 0 1px; text-shadow: 0 0 8px rgba(255,170,60,.45); }
/* 3. hub wordmark lockup: scorebook (stats) + bat + ball emblem, our own drawing */
.hero h1.cs-lockup { display: flex; justify-content: center; align-items: center; gap: .18em; }
.hero.left h1.cs-lockup { justify-content: flex-start; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 4. ball as the dot of the "i" in the hub wordmark (dotless ı + our ball) */
.i-ball { position: relative; display: inline-block; }
.i-dot { position: absolute; left: 50%; top: .02em; width: .3em; height: .3em; transform: translateX(-50%);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.45)); }
/* 5. "The data behind cricstat" panel as a stadium scoreboard */
.section.panel > .wrap.scoreboard { background: linear-gradient(180deg, #0c1512, #0a110f); border: 3px solid #2a3330;
  box-shadow: inset 0 0 0 1px #3d4a45, inset 0 0 40px rgba(0,0,0,.6), 0 10px 40px rgba(0,0,0,.45); border-radius: 14px; }
.scoreboard .sb-head, .board-head { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: -.2rem auto 1.4rem;
  font-family: var(--mono); font-size: .8rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: #ffc46b;
  text-shadow: 0 0 8px rgba(255,170,60,.45); padding-bottom: .8rem; border-bottom: 1px dashed #2f3b37; }
.scoreboard .bulb, .board-head .bulb { width: 8px; height: 8px; border-radius: 50%; background: #ffc46b; box-shadow: 0 0 8px 2px rgba(255,170,60,.6); }
.scoreboard .counter { background: rgba(0,0,0,.28); border: 1px solid #24302c; box-shadow: inset 0 2px 10px rgba(0,0,0,.5); }
.scoreboard .counter > span { font-family: var(--mono); color: #e8f0ec; letter-spacing: .2em; font-weight: 700; }
.scoreboard .c-note { border-top: 1px dashed #2f3b37; color: #9fb0a8; }
.scoreboard .c-icon { background: rgba(255,255,255,.04); border: 1px solid #24302c; }
.scoreboard .why-volume { color: #b8c6bf; }
/* hub: Following / Leaders / Leagues as tabs in one panel */
.sec-tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--border); margin: -.2rem 0 1.2rem; overflow-x: auto; scrollbar-width: none; }
.sec-tab { background: none; border: 0; border-bottom: 3px solid transparent; color: var(--dim); font: inherit; font-size: 1rem;
  font-weight: 700; padding: .7rem 1.1rem .8rem; cursor: pointer; white-space: nowrap; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.sec-tab:hover { color: var(--text); }
.sec-tab[aria-selected="true"] { color: var(--saffron); border-bottom-color: var(--saffron); }
.sec-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 6px 6px 0 0; }
.board-head { margin-bottom: .5rem; border-bottom: 0; padding-bottom: .2rem; } .board-head .mc-asof { margin-left: -.5rem; color: #c9a36b; letter-spacing: .18em; font-weight: 600; }
/* Match centre uses the same board as "The data behind cricstat"; its cards sit slightly lifted on the board */
.match-centre .sec-tabs { border-bottom-color: #2f3b37; }
.match-centre .card { background: rgba(10,14,13,.75); border-color: #24302c; }
.match-centre .sec-tab:not([aria-selected="true"]) { color: #9fb0a8; }

/* /cricket/about/ — the About drawer's story as a page (generated by gen_pages.py from about.json) */
a.about-trigger, a.about-trigger:hover { text-decoration: none; }
a.about-trigger[aria-current="page"] { background: rgba(255,153,51,.22); border-color: var(--saffron); }
.byline { color: var(--dim); font-size: .9rem; margin: -.4rem 0 1rem; }
.about-toc { display: flex; flex-wrap: wrap; gap: .35rem .5rem; font-size: .85rem; color: var(--muted); }
.about-page .about-section { margin-bottom: 0; scroll-margin-top: 5rem; }
.about-page .about-section h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.2rem; margin-bottom: .8rem; }
.about-page .about-section p { font-size: .98rem; }
.about-page #story p strong { color: var(--saffron); }

/* 6. hub wordmark set on a cricket pitch (2026-10-08, option C: dusty strip, mowing stripes,
   creases and stumps at both ends, soft green square). Proportions stylised to fit the wordmark. */
.hero .pitch { position: relative; width: min(800px, 100%); aspect-ratio: 800 / 170; margin: .4rem auto 1.1rem;
               display: flex; align-items: center; justify-content: center; }
.hero .pitch-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .pitch h1.cs-lockup { position: relative; margin: 0; font-size: clamp(2.4rem, 8.5vw, 5rem); }

/* 7. the "i" ball arrives on each page load: in from one end of the pitch, rolling above or below the
   wordmark (seam turning with the direction of travel), then onto the i with two settling bounces.
   hub.js picks the start at random (data-ball = rb | rt | lb | lt: right/left end, below/above);
   without it the right-below path plays. Final state = the static dot. Units are em of the wordmark.
   Reduced-motion users get the static dot. */
.hero .pitch .i-dot { --x0: 4.6em; --y0: .95em; --x1: .9em; --xh: .3em; --yh: -.7em; --dir: -1; }
.hero .pitch[data-ball="rt"] .i-dot { --y0: -.45em; --yh: -.8em; }
.hero .pitch[data-ball="lb"] .i-dot { --x0: -2.8em; --x1: -.6em; --xh: -.25em; --dir: 1; }
.hero .pitch[data-ball="lt"] .i-dot { --x0: -2.8em; --x1: -.6em; --xh: -.25em; --y0: -.45em; --yh: -.8em; --dir: 1; }
@keyframes cs-ball-in {
  0%   { transform: translateX(-50%) translate(var(--x0), var(--y0)) rotate(0deg); opacity: 0; animation-timing-function: linear; }
  8%   { opacity: 1; }
  48%  { transform: translateX(-50%) translate(var(--x1), var(--y0)) rotate(calc(var(--dir) * 1080deg)); animation-timing-function: cubic-bezier(.2,.7,.4,1); }
  64%  { transform: translateX(-50%) translate(var(--xh), var(--yh)) rotate(calc(var(--dir) * 1220deg)); animation-timing-function: cubic-bezier(.5,0,.8,.4); }
  76%  { transform: translateX(-50%) translate(0, 0) rotate(calc(var(--dir) * 1300deg)); animation-timing-function: cubic-bezier(.2,.7,.4,1); }
  85%  { transform: translateX(-50%) translate(0, -.22em) rotate(calc(var(--dir) * 1340deg)); animation-timing-function: cubic-bezier(.5,0,.8,.4); }
  92%  { transform: translateX(-50%) translate(0, 0) rotate(calc(var(--dir) * 1360deg)); animation-timing-function: cubic-bezier(.2,.7,.4,1); }
  96%  { transform: translateX(-50%) translate(0, -.06em) rotate(calc(var(--dir) * 1368deg)); animation-timing-function: cubic-bezier(.5,0,.8,.4); }
  100% { transform: translateX(-50%) translate(0, 0) rotate(calc(var(--dir) * 1440deg)); opacity: 1; }
}
.hero .pitch .i-dot { animation: cs-ball-in 1.8s .35s both; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: reduce) { .hero .pitch .i-dot { animation: none; } }
/* 8. on landing: the bails fly off and wood splinters burst from the i (hub.js adds them for ~1 s);
   clicking the ball replays the delivery, with a synthesised "tock" (sound only after a click). */
.hero .pitch .i-dot { cursor: pointer; pointer-events: auto; }
.i-ball .chip { position: absolute; left: 50%; top: .17em; width: var(--w, .05em); height: var(--h, .05em);
  border-radius: .02em; background: var(--c, #d9b27c); pointer-events: none;
  animation: cs-chip .9s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes cs-chip {
  0%   { transform: translate(-50%, -50%) rotate(0deg); opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)); opacity: 0; }
}
.cs-lockup.jolt .i-ball { animation: cs-jolt .25s ease-out; }
@keyframes cs-jolt { 30% { transform: translateY(.04em) rotate(-2deg); } 60% { transform: translateY(-.02em) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .i-ball .chip { display: none; } .cs-lockup.jolt .i-ball { animation: none; } }

/* ── P1.6 ODI World Cup 2027 predictor ─────────────────────────────────────────────────────── */
.chart-box { position: relative; width: 100%; }
.wc-stamp { margin: -.4rem 0 1rem; }
.wc-answer { font-size: 1.05rem; margin: 0 0 .9rem; max-width: 980px; }
.wc-answer:empty { display: none; }
.wc-answer b { color: var(--saffron); }
.wc-caveats { margin: .8rem 0 .2rem; color: var(--dim); max-width: 980px; }
.wc-caveats a { color: var(--saffron); }
.wc-limits .wc-sub { margin: 1rem 0 .2rem; }
.wc-limits a { color: var(--saffron); }
#wc-board { scroll-margin-top: 90px; }
/* Predictor board title bar as top-level tabs (scoreboard lettering; the inner .sec-tabs stay as they are). */
.wc-top-tabs { gap: .4rem 1.6rem; flex-wrap: wrap; margin-bottom: 1rem; border-bottom: 1px dashed #2f3b37; padding-bottom: 0; }
.top-tab { display: inline-flex; align-items: center; gap: .6rem; background: none; border: 0; border-bottom: 2px solid transparent;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: #7f8f88; text-shadow: none; cursor: pointer;
  padding: .3rem .2rem .7rem; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.top-tab:hover { color: #d9b77e; }
.top-tab[aria-selected="true"] { color: #ffc46b; text-shadow: 0 0 8px rgba(255,170,60,.45); border-bottom-color: #ffc46b; }
.top-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.top-tab .bulb { flex: none; }
.top-tab .mc-asof { margin-left: -.2rem; }
.wc-board .wrap.wc-limits, .wc-board .wrap.wc-seo { max-width: none; padding: 0; }
.wc-follow-card { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--saffron); border-radius: var(--radius);
  padding: .9rem 1.1rem; max-width: 980px; }
.wc-follow-big { font-size: 1.05rem; } .wc-follow-big b { color: var(--saffron); font-size: 1.6rem; font-weight: 800; margin-right: .2rem;
  font-variant-numeric: tabular-nums; }
.wc-table td, .wc-table th { padding: .5rem .7rem; }
.wc-table tbody tr:hover { background: var(--surface2); }
.wc-table tr.me td { background: rgba(255,153,51,.08); }
.wc-table tr.me td:first-child { box-shadow: inset 3px 0 0 var(--saffron); }
.wc-table tr.wc-pick { cursor: pointer; }
.wc-gap-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: .7rem 0 .3rem; flex-wrap: wrap; }
/* Ratings: list and chart column side by side; the list scrolls so both columns end level. Stacked on narrow screens. */
.wc-rate-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.wc-rate-scroll { max-height: 70vh; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.wc-rate-scroll thead th { position: sticky; top: 0; z-index: 1; }
@media (min-width: 900px) {
  .wc-rate-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .wc-rate-list { position: relative; min-height: 320px; }
  .wc-rate-scroll { position: absolute; inset: 0; max-height: none; }
}
.wc-team-open { color: var(--muted); text-decoration: none; font-size: .8rem; padding: 0 .3rem; opacity: .7; }
.wc-team-open:hover, .wc-team-open:focus-visible { color: var(--saffron); opacity: 1; }
.wc-table tr.sel td { background: rgba(79,127,214,.14); }
.wc-table tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.wc-table tr.wc-pick:focus-visible { outline: 2px solid var(--saffron); outline-offset: -2px; }
.wc-table td.num { color: var(--muted); font-weight: 700; width: 2.2rem; }
.wc-team { display: inline-flex; align-items: center; gap: .5rem; }
.wc-team .tname { color: var(--text); font-weight: 600; } .wc-team a.tname:hover { color: var(--saffron); text-decoration: none; }
.wc-note-mark { color: var(--saffron); font-weight: 700; margin-left: -.25rem; cursor: help; }
.wc-champ { min-width: 180px; }
.wc-bar { display: flex; align-items: center; gap: .5rem; justify-content: flex-end; }
.wc-bar-fill { display: inline-block; height: 8px; max-width: 110px; border-radius: 4px; background: linear-gradient(90deg, var(--blue-deep), var(--saffron)); }
.wc-bar-val { min-width: 3.4rem; text-align: right; font-weight: 800; color: var(--text); }
.wc-sub { font-size: 1rem; font-weight: 700; margin: 1.4rem 0 .3rem; }
.wc-moves, .wc-assume, .wc-group, .wc-limits-list { list-style: none; margin: .4rem 0 0; padding: 0; }
.wc-moves li, .wc-assume li { padding: .45rem 0; border-bottom: 1px solid var(--border); color: var(--soft); font-size: .9rem; }
.wc-assume li::before { content: "TBC"; font-size: .62rem; font-weight: 800; letter-spacing: .08em; color: var(--amber);
  border: 1px solid rgba(250,204,21,.4); border-radius: 4px; padding: .05rem .3rem; margin-right: .6rem; }
.wc-group li { padding: .4rem 0; border-bottom: 1px solid var(--border); }
.wc-group li:last-child { border-bottom: 0; }
.wc-flow { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); counter-reset: st; }
.wc-stage { position: relative; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--blue); border-radius: 10px;
  padding: .8rem .9rem; display: flex; flex-direction: column; gap: .25rem; counter-increment: st; }
.wc-stage:last-child { border-top-color: var(--saffron); }
.wc-stage b::before { content: counter(st) ". "; color: var(--muted); }
.wc-stage span { font-size: .82rem; color: var(--soft); } .wc-stage small { font-size: .72rem; color: var(--dim); margin-top: auto; }
.wc-limits-list { display: grid; gap: .5rem 1.6rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.wc-limits-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--soft); padding: .35rem 0; }
.wc-limits-list b { color: var(--text); }
.wc-li-icon { flex: 0 0 1.6rem; text-align: center; font-size: 1.05rem; color: var(--saffron); font-weight: 800; }
@media (max-width: 600px) { .wc-follow-big b { font-size: 1.35rem; } .wc-champ { min-width: 150px; } }
/* Who wins donut in the predictor hero (top five + all others, ≤ 6 segments) */
.wc-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem 2.5rem; align-items: center; }
.wc-donut { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.wc-donut .section-label { margin-bottom: .2rem; }
.wc-donut-box { position: relative; max-width: 230px; margin: 0 auto; }
.wc-donut-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none; padding: 0 22%; }
.wc-donut-mid b { font-size: 1.7rem; font-weight: 800; color: var(--saffron); line-height: 1.1; font-variant-numeric: tabular-nums; }
.wc-donut-mid span { font-size: .85rem; font-weight: 700; color: var(--text); }
.wc-donut-mid small { font-size: .68rem; color: var(--dim); line-height: 1.25; }
.wc-donut-legend { list-style: none; margin: .6rem 0 0; padding: 0; font-size: .82rem; }
.wc-donut-legend li { display: flex; align-items: center; gap: .5rem; padding: .18rem .3rem; border-radius: 6px; }
.wc-donut-legend li.me { background: rgba(255,153,51,.1); }
.wc-donut-legend i { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; }
.wc-donut-legend span { color: var(--soft); flex: 1; } .wc-donut-legend b { font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .wc-hero-grid { grid-template-columns: 1fr; } .wc-donut { max-width: 420px; } }
/* Predictor: trophy, fixtures, venues */
.wc-title .wc-icon { width: .9em; height: .9em; vertical-align: -.08em; margin-right: .1em; }
.wc-days { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.wc-day-h { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--saffron); margin: 0 0 .3rem; }
.wc-day ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.wc-fx { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .6rem .8rem; display: flex; flex-direction: column; gap: .35rem; }
.wc-fx.me { border-color: rgba(255,153,51,.55); box-shadow: inset 3px 0 0 var(--saffron); }
.wc-fx-meta { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; }
.wc-fx-teams { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-weight: 600; }
.wc-v { color: var(--muted); font-size: .8rem; }
.wc-slot { color: var(--dim); font-style: italic; font-weight: 500; }
.wc-chance { display: flex; align-items: center; gap: .5rem; font-size: .82rem; }
.wc-chance > b { min-width: 2.6rem; font-variant-numeric: tabular-nums; } .wc-chance > b:last-child { text-align: right; }
.wc-segs { flex: 1; display: flex; height: 8px; gap: 2px; border-radius: 4px; overflow: hidden; }
.wc-seg { display: block; height: 100%; flex-grow: 0; flex-shrink: 0; }
.wc-seg.t1 { background: #3987e5; } .wc-seg.t2 { background: #d95926; } .wc-seg.nr { background: #475569; }
.wc-venues { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.wc-venue { padding: 0 0 1rem; overflow: hidden; }
.wc-venue > :not(.wc-vphoto) { margin-left: 1rem; margin-right: 1rem; }
.wc-vphoto { margin: 0; position: relative; aspect-ratio: 16 / 10; background: var(--surface2); }
.wc-vphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-vphoto.none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--surface2) 0 12px, var(--surface3) 12px 24px); }
.wc-vphoto.none span { font-size: 2rem; opacity: .6; }
.wc-vcap { position: absolute; left: 0; right: 0; bottom: 0; padding: .3rem .6rem; font-size: .72rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.wc-credit { font-size: .66rem; color: var(--muted); margin-top: .35rem; }
.wc-credit a { color: var(--dim); }
.wc-vstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.wc-vstats .kpi b { font-size: 1.15rem; } .wc-vstats .kpi span { font-size: .58rem; letter-spacing: .06em; }
@media (max-width: 480px) { .wc-vstats { grid-template-columns: repeat(2, 1fr); } .wc-days { grid-template-columns: 1fr; } }
.wc-move { font-size: .66rem; font-weight: 700; margin: 0 .25rem; }
.wc-move.up { color: var(--green); } .wc-move.down { color: var(--red); }
.wc-moved { margin-top: .15rem; }
/* Following: Men/Women + team name (hub) */
.follow-pick { gap: .6rem; flex-wrap: wrap; align-items: center; }
.follow-pick select { min-width: 12rem; }
/* Countries "By format": Head to head / Top performers tabs */
[data-bf-pane][hidden] { display: none; }
/* Cricket world map (sample) */
.wm-controls { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .8rem; }
.wm-row { gap: .6rem; flex-wrap: wrap; align-items: center; }
.wm-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 860px) { .wm-grid { grid-template-columns: 1fr; } }
.wm-map { position: relative; background: #10131a; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.wm-svg { display: block; width: 100%; height: auto; }
.wm-svg path { stroke: #10131a; stroke-width: .35; vector-effect: non-scaling-stroke; }
.wm-team, .wm-dot { cursor: pointer; transition: opacity .15s; }
.wm-team:hover, .wm-dot:hover { opacity: .8; }
.wm-svg .wm-team.me { stroke: var(--saffron); stroke-width: 1.2; }
.wm-svg .wm-team.sel, .wm-svg .wm-dot.sel { stroke: #fff; stroke-width: 1.6; }
.wm-dot { stroke: #10131a; stroke-width: 1; vector-effect: non-scaling-stroke; }
.wm-star { fill: #f5c542; font-size: 9px; pointer-events: none; paint-order: stroke; stroke: #10131a; stroke-width: 2px; }
.wm-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--surface2); border: 1px solid var(--border);
          border-radius: 8px; padding: .4rem .6rem; font-size: .8rem; display: flex; flex-direction: column; min-width: 150px; }
.wm-tip[hidden] { display: none; }
.wm-legend { display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; margin-top: .55rem; font-size: .78rem; color: var(--soft); }
.wm-key { display: inline-flex; align-items: center; gap: .35rem; }
.wm-key i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.wm-star-key { color: #f5c542; }
.wm-panel { position: sticky; top: 80px; }
.wm-head { display: flex; gap: .7rem; align-items: center; margin-bottom: .6rem; }
.wm-facts { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; margin: 0 0 .8rem; font-size: .88rem; }
.wm-facts dt { color: var(--dim); } .wm-facts dd { margin: 0; }
.wm-note { color: var(--soft); border-left: 3px solid var(--saffron); padding-left: .6rem; }
.wm-form { gap: .5rem; align-items: center; margin: .6rem 0; flex-wrap: wrap; }
.wm-open { display: inline-block; margin-top: .4rem; }
.wm-list { max-height: 520px; overflow: auto; }
.wm-pick { background: none; border: 0; padding: 0; color: var(--text); font: inherit; cursor: pointer; }
.wm-pick:hover { color: var(--saffron); }
.wm-tip { min-width: 230px; max-width: 290px; gap: .3rem; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.wm-tip-head { display: flex; align-items: center; gap: .45rem; }
.wm-tip-rows { display: grid; grid-template-columns: auto 1fr; gap: .15rem .6rem; margin: .2rem 0 0; }
.wm-tip-rows dt { color: var(--dim); } .wm-tip-rows dd { margin: 0; }
.wm-tip-rows dd small { display: block; color: var(--dim); font-size: .72rem; }
.wm-tip-rows .on { color: var(--saffron); font-weight: 600; }
.wm-tip-hint { margin: .15rem 0 0; }
/* Hub pitch, the "stat" half: Manhattan of India's 2011 final chase (gen_pages manhattan_svg) */
.manhattan .mh-bar { fill: var(--saffron); opacity: .2; transform-box: fill-box; transform-origin: 50% 100%;
                     animation: mh-grow .45s calc(2s + var(--i) * 28ms) both cubic-bezier(.2,.8,.3,1); }
.manhattan .mh-six { opacity: .55; }
.manhattan .mh-wkt { fill: #f5efe6; opacity: .45; animation: mh-fade .3s calc(2.1s + var(--i) * 28ms) both; }
.manhattan .mh-worm { fill: none; stroke: #ffd29a; stroke-width: 1.2; opacity: .32; stroke-dasharray: 1; stroke-dashoffset: 1;
                      animation: mh-draw 1.6s 2.1s forwards ease-in-out; }
.manhattan .mh-target { stroke: #ffd29a; stroke-width: .8; stroke-dasharray: 3 3; opacity: .28; }
.manhattan .mh-label { fill: #ffd29a; opacity: .4; font: 600 7px system-ui, sans-serif; letter-spacing: .04em; }
.manhattan .mh-six-label { fill: var(--saffron); opacity: .7; font: 800 9px system-ui, sans-serif; animation: mh-fade .4s 3.5s both; }
@keyframes mh-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes mh-fade { from { opacity: 0; } }
@keyframes mh-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .manhattan .mh-worm { stroke-dashoffset: 0; } }
.hero .pitch-cap { color: var(--muted); margin: -.6rem auto .9rem; max-width: 640px; }
.hero .pitch-cap b { color: var(--saffron); font-weight: 700; }
/* Predictor hero: our own seal + the hosts' map (gen_wc_badges.py; the official logo is never used) */
.wc-head { display: flex; align-items: center; gap: 1.1rem 1.4rem; }
.wc-head-text { min-width: 0; flex: 1; }
.wc-head .wc-title { margin: .3rem 0 0; }
.wc-seal { width: 132px; height: 132px; flex: none; filter: drop-shadow(0 8px 22px rgba(245,184,46,.18)); }
.wc-hosts-fig { margin: 0; flex: none; text-align: center; }
.wc-hosts-fig figcaption { font-size: .72rem; color: var(--muted); margin-top: .2rem; letter-spacing: .03em; }
.wc-hosts { width: 140px; height: auto; display: block; }
.wc-hosts .h-host { fill: #2a3346; stroke: #F5B82E; stroke-width: .25; }
.wc-hosts .h-near { fill: #1b202b; stroke: #10131a; stroke-width: .2; }
.wc-hosts .h-ground { fill: #FF9933; stroke: #13161e; stroke-width: .25; cursor: pointer; transition: r .15s; }
.wc-hosts .h-ground:hover, .wc-hosts .h-ground:focus { r: 1.1; outline: none; }
@media (max-width: 1100px) { .wc-hosts-fig { display: none; } }
@media (max-width: 560px) { .wc-head { flex-direction: column; align-items: flex-start; } .wc-seal { width: 96px; height: 96px; } }
/* Methodology page */
.m-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.m-step { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1rem; }
.m-step p { margin: .2rem 0 0; color: var(--soft); font-size: .92rem; }
.m-step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
            background: rgba(255,153,51,.12); color: var(--saffron); border: 1px solid rgba(255,153,51,.4); }
.m-pre { background: #0f1218; border: 1px solid var(--border); border-radius: 8px; padding: .6rem .8rem; overflow-x: auto;
         font: 600 .88rem 'SF Mono', Consolas, monospace; color: #ffd29a; margin: .3rem 0 .6rem; }
.m-code { font: .85em 'SF Mono', Consolas, monospace; color: #ffd29a; }
.m-facts { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: .35rem 1rem; margin: .4rem 0 0; font-size: .9rem; }
.m-facts dt { color: var(--dim); } .m-facts dd { margin: 0; }
.m-list { margin: .3rem 0 0; padding-left: 1.2rem; color: var(--soft); font-size: .92rem; } .m-list li { margin: .3rem 0; }
.m-h3 { font-size: 1rem; margin: 1.2rem 0 .5rem; color: var(--text); }
.m-details { margin: .5rem 0 0; } .m-details summary { cursor: pointer; color: var(--saffron); font-size: .88rem; }
.m-chart { height: 320px; }
.m-gates { list-style: none; margin: .3rem 0 0; padding: 0; font-size: .9rem; } .m-gates li { display: flex; gap: .5rem; margin: .35rem 0; }
.m-gate { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.m-gate.ok { background: rgba(34,197,94,.15); color: #22c55e; } .m-gate.no { background: rgba(239,68,68,.15); color: #ef4444; }
.m-calmini { width: 132px; height: 132px; display: block; filter: drop-shadow(0 8px 22px rgba(57,135,229,.15)); }
/* Players page intro (plain /cricket/players/ only; hidden on profiles) */
.p-intro { margin: .2rem 0 1.1rem; }
.p-intro[hidden] { display: none; }
.p-count { width: 132px; height: 132px; border-radius: 14px; background: #0f1a12; border: 2px solid #5b5f66;
           box-shadow: inset 0 0 0 3px #1c2128, 0 8px 22px rgba(0,0,0,.35);
           display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .1rem; }
.p-count b { font: 800 1.55rem 'SF Mono', Consolas, monospace; color: #ffb547; text-shadow: 0 0 8px rgba(255,181,71,.45); letter-spacing: .02em; }
.p-count span { font-size: .78rem; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .12em; }
.p-count small { font-size: .66rem; color: var(--dim); padding: 0 .4rem; line-height: 1.25; }
/* Team page: live ratings card (men's ODI) */
.r-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .2rem 0 .6rem; }
.r-big { display: flex; flex-direction: column; }
.r-big b { font-size: 2.1rem; font-weight: 800; color: var(--saffron); line-height: 1.05; font-variant-numeric: tabular-nums; }
.r-big span { font-size: .85rem; color: var(--text); }
.r-big small { font-size: .75rem; } .r-big small.up { color: #22c55e; } .r-big small.down { color: #f87171; }
.r-spark { width: 100%; max-width: 260px; height: 54px; }
.r-wc { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; text-align: center; background: var(--surface2);
        border-radius: 10px; padding: .55rem .3rem; }
.r-wc b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; } .r-wc span { font-size: .72rem; color: var(--dim); }
.r-explain { margin: 0 0 .6rem; }
.r-what summary { cursor: pointer; color: var(--saffron); font-size: .8rem; list-style: none; }
.r-what summary::-webkit-details-marker { display: none; }
.r-what p { font-size: .82rem; color: var(--soft); margin: .4rem 0 0; }
/* "our model" pill next to cricstat Elo */
.our-model { display: inline-block; vertical-align: middle; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
             color: var(--saffron); border: 1px solid rgba(255,153,51,.5); background: rgba(255,153,51,.1); border-radius: 99px; padding: .12rem .5rem; }
.r-proof { margin: .35rem 0 0; }
.wc-host { margin-left: .3rem; font-size: .85em; cursor: help; }
/* Hub teaser answer (full P1.6 build) */
.wc-tease .wc-a { font-size: 1rem; color: var(--soft); }
.wc-tease .wc-a b { color: var(--saffron); font-size: 1.15rem; }
.wc-tease .wc-a:empty { display: none; }
/* Predictor: the forecast in words (server-rendered for search engines; readable for everyone) */
.wc-seo h3 { font-size: 1rem; margin: 1.1rem 0 .3rem; color: var(--text); }
.wc-seo p { color: var(--soft); max-width: 820px; margin: .2rem 0; font-size: .95rem; }
.wc-seo-table { margin-top: 1rem; } .wc-seo-table summary { cursor: pointer; color: var(--saffron); font-size: .9rem; }
.wc-seo-table table { margin-top: .6rem; border-collapse: collapse; font-size: .88rem; }
.wc-seo-table th, .wc-seo-table td { padding: .3rem .8rem; border-bottom: 1px solid var(--border); text-align: right; }
.wc-seo-table th:nth-child(2), .wc-seo-table td:nth-child(2), .wc-seo-table th:nth-child(3), .wc-seo-table td:nth-child(3) { text-align: left; }
/* Methodology › Calibration: grouped header, compact cells so the six columns fit the card */
.m-cal-table th, .m-cal-table td { padding: .5rem .5rem; }
.m-cal-table th { letter-spacing: .05em; }
.m-cal-table th.grp { text-align: center; border-bottom: 1px solid var(--border); color: var(--text); }
.m-cal-table thead tr:last-child th:nth-child(odd), .m-cal-table tbody td:nth-child(5) { border-left: 1px solid var(--border); }
.m-cal-table tbody td:nth-child(3) { border-left: 1px solid var(--border); }
