/* Cricket League Manager public widgets, powered by Digital Boosters IT Center.
   Everything is scoped under .clm-site so the site theme is never affected.
   Text uses the theme font; numbers use a condensed scoreboard face. */

.clm-site {
    --lg-primary: #14213D;
    --lg-accent: #C8102E;
    --lg-hl: #FFD34D;
    --lg-num: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
    --lg-radius: 12px;
    font-family: inherit;
    line-height: 1.5;
    margin: 0 0 24px;
}
.clm-site--light { --lg-bg: #FFFFFF; --lg-soft: #F4F6FA; --lg-line: #E1E6EE; --lg-text: #172033; --lg-muted: #5E6B7E; --lg-win: #1E7A4C; }
.clm-site--dark  { --lg-bg: #16213A; --lg-soft: #0F1729; --lg-line: #283A5E; --lg-text: #F2F5FA; --lg-muted: #9AA8C2; --lg-win: #4CD08A; color: var(--lg-text); }
.clm-site *, .clm-site *::before, .clm-site *::after { box-sizing: border-box; }
.clm-site a { color: inherit; }
.clm-site [hidden] { display: none !important; }
.lg-muted { color: var(--lg-muted); }
.lg-empty { padding: 28px 16px; text-align: center; color: var(--lg-muted); background: var(--lg-soft); border-radius: var(--lg-radius); margin: 0; }
.lg-note { color: var(--lg-muted); font-size: 13px; margin: 10px 0; }
.lg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lg-credit { margin-top: 18px; text-align: right; font-size: 11px; color: var(--lg-muted); }
.lg-credit a { font-weight: 600; text-decoration: none; }

/* Headings and season picker */
.lg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.lg-head h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; color: var(--lg-text, inherit); }
.lg-sub { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font-size: 18px; }
.lg-season label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--lg-muted); }
.lg-season select, .lg-filter input, .lg-filter select {
    min-height: 40px; padding: 6px 12px; border: 1px solid var(--lg-line); border-radius: 8px;
    background: var(--lg-bg); color: var(--lg-text); font: inherit; font-size: 15px;
}

/* Logos and pills */
.clm-site .clm-logo { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: #fff; border: 1px solid var(--lg-line); }
.clm-site .clm-logo img { width: 100%; height: 100%; object-fit: contain; }
.clm-site .clm-logo--text { color: #fff; font-family: var(--lg-num); font-weight: 700; border: 0; }
.clm-site .clm-logo--tbd { background: var(--lg-soft); border: 1px dashed var(--lg-muted); color: var(--lg-muted); font-family: var(--lg-num); font-weight: 700; }
.clm-site .clm-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: var(--lg-soft); }
.clm-site .clm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.clm-site .clm-avatar--text { color: var(--lg-primary); font-family: var(--lg-num); font-weight: 700; background: var(--lg-soft); }
.clm-site--dark .clm-avatar--text { color: var(--lg-text); }
.lg-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--lg-soft); color: var(--lg-muted); white-space: nowrap; }
.lg-pill--live { background: var(--lg-accent); color: #fff; animation: lg-pulse 1.6s ease-in-out infinite; }
.lg-pill--innings_break { background: var(--lg-hl); color: #1B1B1B; }
.lg-pill--completed { background: var(--lg-primary); color: #fff; }
@keyframes lg-pulse { 50% { opacity: .6; } }

/* Tabs */
.lg-tabs__bar, .lg-mc__tabs, .lg-subtabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 2px solid var(--lg-line); overflow-x: auto; }
.lg-tabs__bar button, .lg-mc__tabs button, .lg-subtabs button {
    padding: 10px 16px; margin-bottom: -2px; border: 0; border-bottom: 3px solid transparent; background: none;
    color: var(--lg-muted); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.lg-tabs__bar button span { display: inline-block; min-width: 22px; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: var(--lg-soft); font-size: 12px; }
.lg-tabs__bar button.is-on, .lg-mc__tabs button.is-on, .lg-subtabs button.is-on { color: var(--lg-text, inherit); border-bottom-color: var(--lg-accent); }
.lg-subtabs { border-bottom: 0; }
.lg-subtabs button { border: 1px solid var(--lg-line); border-radius: 8px; margin: 0; padding: 6px 12px; }
.lg-subtabs button.is-on { background: var(--lg-primary); color: #fff; border-color: var(--lg-primary); }

/* Match cards */
.lg-matches { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.lg-match {
    display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; text-decoration: none;
    background: var(--lg-bg); color: var(--lg-text); border: 1px solid var(--lg-line); border-radius: var(--lg-radius);
    transition: border-color .15s ease, transform .15s ease;
}
.clm-site a.lg-match { color: var(--lg-text); text-decoration: none; }
a.lg-match:hover { border-color: var(--lg-primary); transform: translateY(-1px); }
.lg-match.is-live { border-color: var(--lg-accent); box-shadow: inset 4px 0 0 var(--lg-accent); }
.lg-match__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--lg-muted); font-size: 13px; }
.lg-match__team { display: flex; align-items: center; gap: 10px; }
.lg-match__name { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-match__team.is-winner .lg-match__name::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--lg-win); vertical-align: middle; }
.lg-match__score { font-family: var(--lg-num); font-size: 22px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lg-match__score small { font-size: 14px; color: var(--lg-muted); font-weight: 600; }
.lg-match__foot { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; border-top: 1px solid var(--lg-line); font-size: 13px; }
.lg-match__result { font-weight: 700; color: var(--lg-primary); }
.clm-site--dark .lg-match__result { color: var(--lg-hl); }
.lg-match__venue { color: var(--lg-muted); }
.lg-time { display: flex; flex-direction: column; line-height: 1.35; }
.lg-time strong { font-size: 14px; }
.lg-time small { color: var(--lg-muted); font-size: 12px; }
.lg-time .lg-localtime { color: var(--lg-primary); font-weight: 600; }
.clm-site--dark .lg-time .lg-localtime { color: var(--lg-hl); }
.lg-time--tbc { color: var(--lg-muted); }

/* Live strip */
.lg-live__label { font-size: 12px; font-weight: 700; text-transform: none; color: var(--lg-muted); margin-bottom: 6px; }
.lg-live__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }

/* Tables */
.lg-scroll { overflow-x: auto; margin-bottom: 14px; border: 1px solid var(--lg-line); border-radius: var(--lg-radius); background: var(--lg-bg); }
.lg-table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--lg-text); margin: 0; }
.lg-table th { padding: 10px 12px; background: var(--lg-soft); color: var(--lg-muted); font-size: 12px; font-weight: 700; text-align: left; white-space: nowrap; border: 0; border-bottom: 1px solid var(--lg-line); }
.lg-table td { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--lg-line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.lg-table tbody tr:last-child td { border-bottom: 0; }
.lg-table .lg-c { text-align: center; }
.lg-table .lg-r { text-align: right; }
.lg-table tr.is-total td, .lg-table tr.is-sub td { background: var(--lg-soft); }
.lg-table a { font-weight: 700; text-decoration: none; }
.lg-table a:hover { color: var(--lg-accent); }
.lg-neg { color: #B4232C; }
.clm-site--dark .lg-neg { color: #FF8A94; }
.lg-teamcell { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.lg-pos { display: inline-block; min-width: 26px; padding: 2px 6px; border-radius: 5px; background: var(--lg-soft); font-family: var(--lg-num); font-weight: 700; font-size: 16px; }
.lg-points tr.is-q .lg-pos { background: var(--lg-primary); color: #fff; }
.lg-pts { font-family: var(--lg-num); font-size: 20px; }
.lg-form { display: inline-flex; gap: 3px; }
.lg-form i { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; color: #fff; font-style: normal; font-family: var(--lg-num); font-weight: 700; font-size: 13px; }
.lg-form--w { background: #1E7A4C; } .lg-form--l { background: #C8102E; } .lg-form--t { background: #B07A12; } .lg-form--n { background: #8A94A6; }
.lg-show-sm, .lg-only-sm { display: none; }

/* Awards */
.lg-awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.lg-awards--2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lg-award { padding: 16px 18px; background: var(--lg-bg); border: 1px solid var(--lg-line); border-radius: var(--lg-radius); border-top: 4px solid var(--lg-primary); }
.lg-award--orange { border-top-color: #F28C28; }
.lg-award--purple { border-top-color: #7B2CBF; }
.lg-award h3 { margin: 0 0 10px; font-size: 16px; }
.lg-award ol { margin: 0; padding-left: 20px; }
.lg-award li { padding: 6px 0; border-bottom: 1px solid var(--lg-line); }
.lg-award li:last-child { border-bottom: 0; }
.lg-award li > span { display: inline-block; max-width: 75%; }
.lg-award li b { float: right; font-family: var(--lg-num); font-size: 18px; }
.lg-award li.is-top b { font-size: 26px; color: var(--lg-accent); }
.lg-award li a { text-decoration: none; font-weight: 700; }
.lg-award small { color: var(--lg-muted); }

/* Teams and people */
.lg-teamcard {
    display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 16px; text-align: center; text-decoration: none;
    background: linear-gradient(160deg, var(--team) 0%, var(--team) 55%, var(--team2) 160%); color: #fff; border-radius: var(--lg-radius);
    transition: transform .15s ease;
}
.clm-site a.lg-teamcard { color: #fff; text-decoration: none; }
.lg-teamcard:hover { transform: translateY(-2px); }
.lg-teamcard .clm-logo { border: 3px solid rgba(255,255,255,.85); }
.lg-teamcard strong { font-size: 19px; }
.lg-teamcard span { font-size: 13px; opacity: .85; }

.lg-teamhead, .lg-playerhead {
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px; margin-bottom: 20px; color: #fff;
    background: linear-gradient(135deg, var(--team) 0%, var(--team) 60%, var(--team2) 180%); border-radius: var(--lg-radius);
    border-bottom: 5px solid var(--team2);
}
.lg-teamhead .clm-logo, .lg-playerhead .clm-avatar { border: 4px solid rgba(255,255,255,.9); }
.lg-teamhead h1, .lg-playerhead h1 { margin: 0; color: #fff; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; }
.lg-teamhead p { margin: 4px 0 10px; opacity: .85; }
.lg-teamhead dl, .lg-playerhead dl { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0 0; }
.lg-teamhead dt, .lg-playerhead dt { font-size: 12px; opacity: .75; }
.lg-teamhead dd, .lg-playerhead dd { margin: 0; font-weight: 700; }
.lg-playerhead__team { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-weight: 700; }
.clm-site .lg-playerhead__team a { color: #fff; }
.lg-section { margin: 26px 0; }
.lg-section > h2 { margin: 0 0 12px; font-size: 22px; }
.lg-bio { max-width: 760px; }

.lg-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.lg-person {
    display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; text-align: center; text-decoration: none;
    background: var(--lg-bg); color: var(--lg-text); border: 1px solid var(--lg-line); border-radius: var(--lg-radius);
}
.clm-site a.lg-person { color: var(--lg-text); text-decoration: none; }
a.lg-person:hover { border-color: var(--lg-primary); }
.lg-person strong { font-size: 15px; line-height: 1.2; }
.lg-person small { color: var(--lg-muted); font-size: 12px; }
.lg-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.lg-tags i, .lg-xi i, .lg-pom { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: var(--lg-soft); color: var(--lg-text); }
.lg-xi i.is-in { background: #E3F2EA; color: #1E7A4C; }
.lg-xi i.is-out { background: #FCEEF0; color: #B4232C; }
.lg-chip { font-family: var(--lg-num); font-weight: 700; font-size: 13px; padding: 1px 8px; border-radius: 4px; background: var(--team); color: #fff; }
.lg-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.lg-filter input { flex: 1 1 240px; }

/* Match centre */
.lg-mc__head { padding: 18px 20px; margin-bottom: 14px; background: var(--lg-primary); color: #fff; border-radius: var(--lg-radius); border-bottom: 5px solid var(--lg-accent); }
.lg-mc__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; opacity: .9; }
.lg-mc__teams { display: grid; gap: 10px; margin: 14px 0 6px; }
.lg-mc__team { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.lg-mc__team.is-batting .lg-mc__tname::after { content: ' \25CF'; color: var(--lg-hl); font-size: 12px; vertical-align: middle; }
.lg-mc__tname { flex: 1 1 auto; font-size: clamp(17px, 2.4vw, 22px); font-weight: 700; }
.clm-site .lg-mc__tname a { color: #fff; text-decoration: none; }
.lg-mc__tscore { display: flex; flex-direction: column; align-items: flex-end; }
.lg-mc__tscore span { white-space: nowrap; }
.lg-mc__tscore b { font-family: var(--lg-num); font-size: clamp(28px, 4vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; }
.lg-mc__tscore small { font-size: 15px; opacity: .8; }
.lg-mc__tscore .is-so b { font-size: 22px; }
.lg-mc__team.is-winner .lg-mc__tscore b { color: var(--lg-hl); }
.lg-mc__line { margin: 10px 0 0; font-weight: 700; color: var(--lg-hl); font-size: 16px; }
.lg-mc__pom { margin: 4px 0 0; font-size: 14px; opacity: .9; }
.lg-mc__rates { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; font-size: 14px; color: var(--lg-muted); }
.lg-mc__rates b { color: var(--lg-text, inherit); font-family: var(--lg-num); font-size: 19px; }
.lg-fh { display: inline-block; margin-bottom: 10px; padding: 4px 12px; background: var(--lg-hl); color: #1B1B1B; border-radius: 6px; font-family: var(--lg-num); font-weight: 700; font-size: 18px; animation: lg-pulse 1.4s ease-in-out infinite; }
.lg-over, .lg-recent { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; font-size: 13px; color: var(--lg-muted); }
.lg-over > span { margin-right: 4px; font-weight: 700; }
.lg-recent span { padding: 4px 10px; background: var(--lg-soft); border-radius: 6px; }
.lg-recent b { color: var(--lg-text, inherit); }
.lg-ball { min-width: 30px; height: 30px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 15px; background: var(--lg-soft); color: var(--lg-text, inherit); font-style: normal; font-family: var(--lg-num); font-weight: 700; font-size: 15px; border: 1px solid var(--lg-line); }
.lg-ball--s4 { background: #1B5FBF; color: #fff; border-color: #1B5FBF; }
.lg-ball--s6 { background: #7B2CBF; color: #fff; border-color: #7B2CBF; }
.lg-ball--w { background: #C8102E; color: #fff; border-color: #C8102E; }
.lg-ball--x { background: #FFF4D6; color: #7A5200; border-color: #F0D58A; }
.lg-feed { list-style: none; margin: 0; padding: 0; border: 1px solid var(--lg-line); border-radius: var(--lg-radius); background: var(--lg-bg); }
.lg-feed li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--lg-line); font-size: 14px; }
.lg-feed li:last-child { border-bottom: 0; }
.lg-feed__ov { min-width: 38px; font-family: var(--lg-num); font-weight: 700; color: var(--lg-muted); }
.lg-xi { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.lg-xi ol { margin: 0; padding-left: 22px; }
.lg-xi li { padding: 5px 0; border-bottom: 1px solid var(--lg-line); }
.lg-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 0; }
.lg-info div { padding: 12px 14px; background: var(--lg-soft); border-radius: 8px; }
.lg-info dt { font-size: 12px; color: var(--lg-muted); }
.lg-info dd { margin: 2px 0 0; font-weight: 700; }

/* ================= v1.6: hero, breadcrumb, franchise cards ================= */
body.clm-site-hero-page { overflow-x: clip; }
body.clm-site-hero-page .page-header,
body.clm-site-hero-page .entry-header,
body.clm-site-hero-page h1.entry-title,
body.clm-site-hero-page h1.wp-block-post-title { display: none; }

.lg-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.clm-site.has-hero .lg-container { padding-top: 40px; padding-bottom: 24px; }

.lg-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    padding: 64px 20px 58px;
    text-align: center;
    color: #fff;
    background-color: #0B1A3A;
    background-image:
        linear-gradient(180deg, rgba(8, 18, 44, .86) 0%, rgba(8, 18, 44, .9) 100%),
        var(--lg-hero-img, radial-gradient(ellipse at 50% 120%, #1D3466 0%, #0B1A3A 60%));
    background-size: cover;
    background-position: center;
    border-bottom: 4px solid var(--lg-accent);
    overflow: hidden;
}
.lg-hero:not(.has-img)::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 90px, transparent 90px 180px);
    pointer-events: none;
}
.lg-hero__inner { position: relative; max-width: 960px; margin: 0 auto; }
.lg-crumbs ol { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 13px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.lg-crumbs li { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #fff; }
.lg-crumbs li + li::before { content: '\203A'; color: rgba(255, 255, 255, .55); font-size: 15px; margin-right: 2px; }
.clm-site .lg-crumbs a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; }
.lg-crumbs svg { color: var(--lg-accent); }
.clm-site .lg-crumbs a:hover { color: var(--lg-hl); }
.lg-crumbs li[aria-current] span { display: inline-flex; align-items: center; gap: 6px; color: var(--lg-accent); }
.clm-site .lg-hero__title {
    margin: 0;
    color: #fff;
    font-family: inherit;
    font-size: clamp(32px, 5.4vw, 60px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.lg-hero__title span { color: var(--lg-accent); }
.lg-hero__sub { max-width: 720px; margin: 14px auto 0; color: rgba(255, 255, 255, .9); font-size: 16px; font-weight: 500; }
.lg-hero__media { display: flex; justify-content: center; margin: 4px 0 16px; }
.lg-hero__logo .clm-logo, .lg-hero__photo .clm-avatar { background: #fff; border: 4px solid rgba(255, 255, 255, .95); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.clm-site .lg-hero__photo .clm-avatar--text { color: #0B1A3A; background: #fff; }
.lg-hero__facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.lg-hero__facts div { padding: 8px 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; }
.lg-hero__facts dt { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.lg-hero__facts dd { margin: 2px 0 0; font-weight: 700; color: #fff; }

.lg-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.lg-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--lg-accent); }
.lg-eyebrow::before { content: ''; width: 26px; height: 3px; background: var(--lg-accent); border-radius: 2px; }
.lg-season--right { display: flex; justify-content: flex-end; margin-bottom: 8px; }

.lg-sectitle { margin: 0 0 22px; text-align: center; }
.clm-site .lg-sectitle h2 { margin: 0; font-family: inherit; font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; text-transform: uppercase; letter-spacing: .4px; color: var(--lg-primary); }
.clm-site--dark .lg-sectitle h2 { color: #fff; }
.lg-sectitle h2 span { color: var(--lg-accent); }
.lg-sectitle p { margin: 6px 0 0; color: var(--lg-muted); }
.clm-site .lg-section > .lg-sub { justify-content: center; gap: 12px; margin: 30px 0 16px; font-family: inherit; font-size: 14px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--lg-accent); }
.clm-site .lg-section > .lg-sub::before, .clm-site .lg-section > .lg-sub::after { content: ''; width: 40px; height: 2px; background: currentColor; opacity: .5; }

/* Franchise cards (same look as the homepage "The Franchises" section) */
.lg-teams { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.lg-franchise {
    position: relative;
    flex: 0 1 calc(33.333% - 16px);
    min-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 34px 24px 30px;
    text-align: center;
    background: #F4F6FA;
    border: 1px solid #E1E6EE;
    border-radius: 16px;
    overflow: hidden;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.clm-site--dark .lg-franchise { background: var(--lg-bg); border-color: var(--lg-line); }
.lg-franchise::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--lg-accent), #F28C28); opacity: 0; transition: opacity .2s ease; }
.lg-franchise:hover { background: #fff; border-color: var(--lg-accent); box-shadow: 0 16px 36px rgba(11, 26, 58, .12); transform: translateY(-3px); }
.clm-site--dark .lg-franchise:hover { background: var(--lg-soft); }
.lg-franchise:hover::before { opacity: 1; }
.lg-franchise__logo { display: inline-flex; padding: 6px; margin-bottom: 18px; background: #fff; border-radius: 50%; box-shadow: 0 6px 18px rgba(11, 26, 58, .12); transition: box-shadow .2s ease; }
.clm-site .lg-franchise__logo .clm-logo { border: 0; }
.lg-franchise:hover .lg-franchise__logo { box-shadow: 0 0 0 2px var(--lg-accent), 0 6px 18px rgba(11, 26, 58, .12); }
.clm-site .lg-franchise__name { margin: 0; font-family: inherit; font-size: 20px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; color: var(--lg-primary); }
.clm-site--dark .lg-franchise__name { color: #fff; }
.lg-franchise__loc { margin: 6px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--lg-muted); }
.lg-franchise__cap { margin: 4px 0 0; font-size: 13px; color: var(--lg-muted); }
.clm-site a.lg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 24px;
    background: var(--lg-primary);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .2s ease;
}
.clm-site a.lg-btn:hover { background: var(--lg-accent); color: #fff; }
.lg-btn svg { transition: transform .2s ease; }
.lg-btn:hover svg { transform: translateX(3px); }

/* Player and staff cards in the same family */
.lg-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.lg-people > .lg-person { flex: 0 1 200px; }
.lg-people--grid > .lg-person { flex-basis: 190px; }
.lg-person { padding: 24px 14px 20px; background: #F4F6FA; border-color: #E1E6EE; border-radius: 14px; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.clm-site--dark .lg-person { background: var(--lg-bg); border-color: var(--lg-line); }
.clm-site a.lg-person:hover { background: #fff; border-color: var(--lg-accent); box-shadow: 0 12px 28px rgba(11, 26, 58, .1); transform: translateY(-2px); }
.clm-site--dark a.lg-person:hover { background: var(--lg-soft); }
.clm-site .lg-person .clm-avatar { background: #fff; box-shadow: 0 4px 14px rgba(11, 26, 58, .12); margin-bottom: 6px; }
.lg-person strong { font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: var(--lg-primary); }
.clm-site--dark .lg-person strong { color: #fff; }

@media (max-width: 640px) {
    .lg-hide-sm { display: none; }
    .lg-show-sm { display: block; color: var(--lg-muted); font-weight: 400; font-size: 12px; }
    .lg-only-sm { display: inline; }
    .lg-points td, .lg-points th { padding: 8px 6px; }
    .lg-points .lg-teamcell { gap: 6px; }
    .lg-matches { grid-template-columns: 1fr; }
    .lg-teamhead, .lg-playerhead { padding: 20px; gap: 16px; }
    .lg-hero { padding: 44px 16px 40px; }
    .lg-franchise { flex-basis: 100%; }
    .lg-people > .lg-person { flex: 0 1 calc(50% - 9px); }
    .clm-site.has-hero .lg-container { padding-top: 28px; }
    .lg-table td, .lg-table th { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .lg-pill--live, .lg-fh { animation: none; }
    a.lg-match:hover, .lg-teamcard:hover, .lg-franchise:hover, .clm-site a.lg-person:hover { transform: none; }
}

/* ================= v1.8: full commentary and runs-per-over chart ================= */
.lg-feedhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 10px; }
.lg-feedhead .lg-sub { margin: 0; }
.clm-site .lg-linkbtn { padding: 0; border: 0; background: none; color: var(--lg-accent); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.clm-site .lg-linkbtn:hover { text-decoration: underline; }
.clm-site .lg-morebtn {
    display: block;
    width: 100%;
    margin: 12px 0 18px;
    padding: 12px;
    border: 1px solid var(--lg-line);
    border-radius: 10px;
    background: var(--lg-soft);
    color: var(--lg-primary);
    font: inherit;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    cursor: pointer;
}
.clm-site--dark .lg-morebtn { color: #fff; }
.clm-site .lg-morebtn:hover { border-color: var(--lg-accent); color: var(--lg-accent); }

.lg-feed li.is-wicket { background: #FFF3F4; box-shadow: inset 4px 0 0 #C8102E; }
.clm-site--dark .lg-feed li.is-wicket { background: rgba(200, 16, 46, .14); }
.lg-feed li.is-boundary { background: #F4F7FF; }
.clm-site--dark .lg-feed li.is-boundary { background: rgba(27, 95, 191, .14); }
.lg-feed__text { flex: 1 1 auto; min-width: 0; }
.lg-feed__text em { display: block; margin-top: 3px; color: var(--lg-muted); font-size: 13px; }
.lg-feed__score { margin-left: auto; padding: 2px 8px; border-radius: 6px; background: #C8102E; color: #fff; font-family: var(--lg-num); font-size: 15px; white-space: nowrap; }
.lg-feed li.lg-feed__event { background: var(--lg-soft); color: var(--lg-text); font-weight: 600; }
.lg-feed li.lg-feed__over { display: block; padding: 0; background: var(--lg-primary); color: #fff; }
.lg-feed__overhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px 4px; }
.lg-feed__overhead b { font-size: 14px; letter-spacing: .4px; text-transform: uppercase; }
.lg-feed__overhead span { color: rgba(255, 255, 255, .78); font-size: 13px; }
.lg-feed__overhead strong { margin-left: auto; font-family: var(--lg-num); font-size: 20px; color: var(--lg-hl); }
.lg-feed__overbody { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding: 0 14px 10px; color: rgba(255, 255, 255, .85); font-size: 13px; }
.lg-feed--full { margin-bottom: 18px; }

.lg-manhattan { margin: 18px 0; padding: 14px 14px 10px; background: var(--lg-bg); border: 1px solid var(--lg-line); border-radius: var(--lg-radius); }
.lg-manhattan__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.lg-manhattan__head b { font-size: 15px; }
.lg-manhattan__head span { color: var(--lg-muted); font-size: 13px; }
.lg-manhattan__bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; overflow-x: auto; padding-bottom: 2px; }
.lg-manhattan__col { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; flex: 1 0 18px; max-width: 34px; height: 100%; }
.lg-manhattan__bar { width: 100%; min-height: 4px; background: var(--team); border-radius: 4px 4px 0 0; opacity: .9; }
.lg-manhattan__col:hover .lg-manhattan__bar { opacity: 1; }
.lg-manhattan__val { font-family: var(--lg-num); font-size: 12px; font-weight: 700; color: var(--lg-text, inherit); }
.lg-manhattan__n { margin-top: 4px; font-size: 11px; color: var(--lg-muted); }
.lg-manhattan__w { position: absolute; bottom: 26px; display: flex; flex-direction: column; gap: 2px; }
.lg-manhattan__w i { width: 9px; height: 9px; border-radius: 50%; background: #C8102E; border: 2px solid #fff; }

/* v1.9: player links, POM card, XI with avatars, summary, share */
.clm-site a.lg-plink { color: inherit; text-decoration: none; border-bottom: 1px dotted transparent; transition: color .15s, border-color .15s; }
.clm-site a.lg-plink:hover { color: var(--lg-accent); border-bottom-color: currentColor; }
.clm-site .lg-mc__pom a.lg-plink { color: var(--lg-hl); }
.clm-site .lg-mc__pom a.lg-plink:hover { color: #fff; }
.lg-mc__pom small { opacity: .8; margin-left: 4px; }
.lg-mc__actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.clm-site .lg-share { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 600; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; cursor: pointer; }
.clm-site .lg-share:hover { background: rgba(255,255,255,.22); }
.lg-card tr.is-crease td:first-child { box-shadow: inset 3px 0 0 var(--lg-accent); }

.lg-av { display: inline-block; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: var(--lg-soft); }
.lg-av--txt { display: inline-grid; place-items: center; background: var(--lg-primary); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .5px; }
.lg-xi ol.lg-xi__list { list-style: none; padding: 0; counter-reset: xi; }
.lg-xi .lg-xi__list li { padding: 0; counter-increment: xi; }
.lg-xi .lg-xi__list li > a, .lg-xi .lg-xi__list li > div { display: flex; align-items: center; gap: 10px; padding: 8px 6px; text-decoration: none; color: inherit; border-radius: 8px; }
.lg-xi .lg-xi__list li > a::before, .lg-xi .lg-xi__list li > div::before { content: counter(xi); min-width: 18px; font-family: var(--lg-num); font-weight: 700; color: var(--lg-muted); text-align: right; }
.lg-xi .lg-xi__list li > a:hover { background: var(--lg-soft); }
.lg-xi .lg-xi__list li > a:hover b { color: var(--lg-accent); }
.lg-xi .lg-xi__list li.is-pom > a, .lg-xi .lg-xi__list li.is-pom > div { background: #FFF7DB; }
.clm-site--dark .lg-xi .lg-xi__list li.is-pom > a, .clm-site--dark .lg-xi .lg-xi__list li.is-pom > div { background: #3A3214; }
.lg-xi__who { flex: 1 1 auto; display: grid; line-height: 1.25; min-width: 0; }
.lg-xi__who small { color: var(--lg-muted); font-size: 12px; }
.lg-xi__tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

.clm-site .lg-pomcard { display: flex; align-items: center; gap: 18px; margin: 0 0 18px; padding: 18px 20px; color: #fff; text-decoration: none; border-radius: var(--lg-radius); background: linear-gradient(120deg, var(--lg-primary) 0%, var(--team, #14213D) 140%); border-left: 6px solid var(--lg-hl); box-shadow: 0 8px 24px rgba(20,33,61,.18); transition: transform .15s; }
.clm-site a.lg-pomcard:hover { transform: translateY(-2px); }
.lg-pomcard__pic .lg-av { border: 3px solid var(--lg-hl); }
.lg-pomcard__pic .lg-av--txt { font-size: 26px; background: rgba(255,255,255,.12); }
.lg-pomcard__txt { display: grid; gap: 2px; min-width: 0; }
.lg-pomcard__label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--lg-hl); }
.lg-pomcard__txt strong { font-size: clamp(20px, 3vw, 26px); line-height: 1.15; }
.lg-pomcard__team { font-size: 14px; opacity: .85; }
.lg-pomcard__fig { margin-top: 4px; font-family: var(--lg-num); font-size: 20px; font-weight: 700; }
.lg-pomcard__cta { margin-top: 4px; font-size: 13px; font-weight: 600; opacity: .9; }

.lg-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.lg-sum__inn { border: 1px solid var(--lg-line); border-top: 4px solid var(--team); border-radius: var(--lg-radius); background: var(--lg-bg); overflow: hidden; }
.lg-sum__inn header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--lg-soft); }
.lg-sum__inn header b { flex: 1; }
.lg-sum__inn header span { font-family: var(--lg-num); font-size: 22px; font-weight: 700; }
.lg-sum__inn header small { font-size: 14px; color: var(--lg-muted); }
.lg-sum__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.lg-sum__cols > div { padding: 10px 14px; }
.lg-sum__cols > div + div { border-left: 1px solid var(--lg-line); }
.lg-sum__cols h4 { margin: 0 0 6px; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--lg-muted); }
.lg-sum__cols p { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 5px 0; font-size: 14px; }
.lg-sum__cols p span { white-space: nowrap; font-family: var(--lg-num); font-size: 16px; }
@media (max-width: 480px) {
    .lg-sum__cols { grid-template-columns: 1fr; }
    .lg-sum__cols > div + div { border-left: 0; border-top: 1px solid var(--lg-line); }
    .clm-site .lg-pomcard { gap: 12px; padding: 14px; }
}
.lg-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.lg-kpi { padding: 14px 12px; text-align: center; background: var(--lg-bg); border: 1px solid var(--lg-line); border-radius: var(--lg-radius); }
.lg-kpi b { display: block; font-family: var(--lg-num); font-size: 30px; line-height: 1.05; color: var(--lg-primary); }
.clm-site--dark .lg-kpi b { color: #fff; }
.lg-kpi span { font-size: 12px; color: var(--lg-muted); text-transform: uppercase; letter-spacing: .6px; }
.lg-kpi.is-pom { background: #FFF7DB; border-color: #F0D58A; }
.lg-kpi.is-pom b { color: #8A5A00; }

/* v2.0: stoppages and announcements */
.lg-stop { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(59,130,246,.18); border: 1px solid rgba(147,197,253,.55); color: #fff; }
.lg-stop b { font-size: 15px; }
.lg-stop small { opacity: .8; margin-left: 4px; }
.lg-stop em { display: block; font-style: normal; font-size: 13px; opacity: .9; margin-top: 2px; }
.lg-stop__ic { font-size: 26px; line-height: 1; color: #93C5FD; animation: lg-pulse 1.6s ease-in-out infinite; }
.lg-stop--injury { background: rgba(200,16,46,.2); border-color: rgba(255,120,130,.6); }
.lg-stop--injury .lg-stop__ic { color: #FF9AA2; }
.lg-stop--drinks, .lg-stop--timeout { background: rgba(255,211,77,.14); border-color: rgba(255,211,77,.5); }
.lg-stop--drinks .lg-stop__ic, .lg-stop--timeout .lg-stop__ic { color: var(--lg-hl); }
.lg-mc__notes { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.lg-mc__notes li { padding: 6px 10px; margin-top: 6px; background: rgba(255,255,255,.08); border-radius: 6px; }
.lg-feed li.lg-feed__event { background: var(--lg-soft); }
.lg-ev__ic { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--lg-bg); border: 1px solid var(--lg-line); font-size: 15px; line-height: 1; }
.lg-feed li.lg-ev--stop { background: #EAF1FE; }
.lg-feed li.lg-ev--stop .lg-ev__ic { background: #1D4ED8; border-color: #1D4ED8; color: #fff; }
.lg-feed li.lg-ev--resume { background: #E8F6EE; }
.lg-feed li.lg-ev--resume .lg-ev__ic { background: #15803D; border-color: #15803D; color: #fff; }
.lg-feed li.lg-ev--overs_cut { background: #FFF6E0; font-weight: 600; }
.lg-feed li.lg-ev--overs_cut .lg-ev__ic { background: #B45309; border-color: #B45309; color: #fff; }
.lg-feed li.lg-ev--injury, .lg-feed li.lg-ev--injury_off { background: #FCEEF0; }
.lg-feed li.lg-ev--injury .lg-ev__ic, .lg-feed li.lg-ev--injury_off .lg-ev__ic { background: #C8102E; border-color: #C8102E; color: #fff; }
.lg-feed li.lg-ev--milestone { background: #FFF7DB; font-weight: 600; }
.lg-feed li.lg-ev--milestone .lg-ev__ic { background: #F59E0B; border-color: #F59E0B; color: #111; }
.clm-site--dark .lg-feed li.lg-ev--stop, .clm-site--dark .lg-feed li.lg-ev--resume, .clm-site--dark .lg-feed li.lg-ev--overs_cut, .clm-site--dark .lg-feed li.lg-ev--injury, .clm-site--dark .lg-feed li.lg-ev--injury_off, .clm-site--dark .lg-feed li.lg-ev--milestone { background: var(--lg-soft); }
