/* public-bundle.min.css
 * Auto-merged on 2026-07-19 from: live-sync-fixes.css, live-ball-token-fix.css,
 * public-contrast-fix.css, priority3-polish.css, match-header-consistency-fix.css
 * Merging these into one file cuts 4 extra HTTP requests per page load.
 * If you need to patch styles again, add a NEW section below with a comment
 * header noting the date/reason, rather than creating another separate file.
 */
/* Final live-sync/mobile polish */
.match-center-shell,.mcv-shell,.match-shell,.match-center-container{max-width:760px;margin-left:auto;margin-right:auto;width:100%;}
@media (max-width: 768px){
  body{overflow-x:hidden;}
  .container,.container-fluid{max-width:100%;padding-left:10px!important;padding-right:10px!important;}
  .match-center-shell,.mcv-shell,.match-shell,.match-center-container{max-width:100%!important;width:100%!important;margin:0 auto!important;}
  .mcv-hero,.match-hero,.score-hero{border-radius:0!important;margin-left:-10px!important;margin-right:-10px!important;}
  .mcv-tabs,.match-tabs,.nav-tabs{overflow-x:auto;white-space:nowrap;display:flex;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;}
  .mcv-tabs a,.match-tabs a,.nav-tabs .nav-link{flex:0 0 auto;}
  table{font-size:12px;}
  .table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch;}
  canvas{max-width:100%!important;height:auto!important;}
  .livehub-card{border-radius:16px!important;}
  .livehub-teams{gap:8px!important;}
}
.gpl-live-pulse{display:inline-block;width:8px;height:8px;border-radius:50%;background:#ef4444;box-shadow:0 0 0 rgba(239,68,68,.7);animation:gplPulse 1.4s infinite;margin-right:6px;vertical-align:middle;}
@keyframes gplPulse{0%{box-shadow:0 0 0 0 rgba(239,68,68,.7)}70%{box-shadow:0 0 0 8px rgba(239,68,68,0)}100%{box-shadow:0 0 0 0 rgba(239,68,68,0)}}
/* GPL compact ball-token fix: circle for short tokens, oval for WD/NB/LB variants */
.ball-badge,.mc-ball-badge,.cbz-ball-badge{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:28px!important;width:auto!important;height:28px!important;padding:0 8px!important;border-radius:999px!important;white-space:nowrap!important;line-height:1!important;font-weight:900!important;font-size:11px!important;letter-spacing:-.15px!important;overflow:hidden!important;text-overflow:clip!important;}
.ball-badge:not(.extra):not(.long-extra),.mc-ball-badge:not(.extra):not(.misc),.cbz-ball-badge:not(.extra):not(.misc){width:28px!important;min-width:28px!important;padding:0!important;border-radius:50%!important;}
.ball-badge.extra,.ball-badge.misc,.ball-badge.long-extra,.mc-ball-badge.extra,.mc-ball-badge.misc,.cbz-ball-badge.extra,.cbz-ball-badge.misc{min-width:34px!important;max-width:72px!important;padding:0 7px!important;border-radius:999px!important;font-size:10px!important;}
@media(max-width:480px){.ball-badge,.mc-ball-badge,.cbz-ball-badge{height:26px!important;min-width:26px!important;font-size:10px!important}.ball-badge.extra,.ball-badge.misc,.mc-ball-badge.extra,.mc-ball-badge.misc{min-width:32px!important;font-size:9px!important}}

/* GPL public/admin ball pill responsive animation */
.over-balls,.recent-strip{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;width:100%;}
.over-balls .ball-box,.recent-strip .ball-badge{flex:0 1 auto;min-width:28px;max-width:52px;height:30px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:0 6px;position:relative;overflow:hidden;transition:all .2s ease;}
.over-balls.balls-7 .ball-box{min-width:26px;height:28px;font-size:12px;}
.over-balls.balls-8 .ball-box{min-width:24px;height:26px;font-size:11px;}
.over-balls.balls-9 .ball-box,.over-balls.balls-10 .ball-box{min-width:21px;height:24px;font-size:10px;padding:0 4px;}
.ball-box.boundary-four,.ball-badge.four{animation:fourPulse 2.5s ease;}
.ball-box.boundary-six,.ball-badge.six{animation:sixPulse 2.5s ease;}
.ball-box.wicket,.ball-badge.wicket{animation:wicketShake 2s ease;}
@keyframes fourPulse{0%{transform:scale(1);box-shadow:0 0 0 rgba(30,136,229,0)}30%{transform:scale(1.18);box-shadow:0 0 20px rgba(30,136,229,.9)}100%{transform:scale(1);box-shadow:none}}
@keyframes sixPulse{0%{transform:scale(1);box-shadow:0 0 0 rgba(255,152,0,0)}25%{transform:scale(1.25);box-shadow:0 0 28px rgba(255,152,0,1)}100%{transform:scale(1);box-shadow:none}}
@keyframes wicketShake{0%,100%{transform:translateX(0)}20%{transform:translateX(-4px)}40%{transform:translateX(4px)}60%{transform:translateX(-3px)}80%{transform:translateX(3px)}}
/* Public contrast safety patch: fixes white text on light surfaces without changing dark hero/match headers. */
body.public-site {
  background: #f3f4f7 !important;
  color: #111827 !important;
}

/* Light public cards/sections */
body.public-site .home-card,
body.public-site .card:not(.polish-match-card):not(.uc-match-card):not([style*="background:#1e293b"]):not([style*="background: #1e293b"]):not([style*="background:#0f172a"]):not([style*="background: #0f172a"]):not([style*="linear-gradient"]),
body.public-site .public-panel,
body.public-site .public-surface,
body.public-site .league-widget,
body.public-site .league-standings-card {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: #e5e7eb !important;
}

/* Common page headings that were written as text-white but sit on white/light backgrounds. */
body.public-site .container > .text-center .text-white,
body.public-site .container > .text-center .fw-bolder.text-white,
body.public-site .container > .text-center .fw-bold.text-white,
body.public-site .home-card > .d-flex h1.text-white,
body.public-site .home-card > .d-flex h2.text-white,
body.public-site .home-card > .d-flex h3.text-white,
body.public-site .home-card > .d-flex h4.text-white,
body.public-site .home-card > .d-flex h5.text-white,
body.public-site .home-card > h1.text-white,
body.public-site .home-card > h2.text-white,
body.public-site .home-card > h3.text-white,
body.public-site .home-card > h4.text-white,
body.public-site .home-card > h5.text-white,
body.public-site .section-title.text-white,
body.public-site .public-section-heading.text-white {
  color: #111827 !important;
  text-shadow: none !important;
}

body.public-site .container > .text-center .text-white-50,
body.public-site .home-card > .d-flex .text-white-50,
body.public-site .home-card > .text-white-50,
body.public-site .home-card .thb-empty,
body.public-site .public-muted,
body.public-site .league-muted {
  color: #64748b !important;
  text-shadow: none !important;
}

/* Empty states inside light cards. */
body.public-site .home-card > .text-center.text-white-50,
body.public-site .home-card .text-center.text-white-50.py-4,
body.public-site .home-card .empty-state,
body.public-site .home-card .no-data {
  color: #64748b !important;
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 12px !important;
}

/* Keep true dark components readable. */
body.public-site .polish-match-card,
body.public-site .uc-match-card,
body.public-site .league-hero,
body.public-site .public-hero,
body.public-site .match-hero,
body.public-site .cbz-hero,
body.public-site .mcv-hero,
body.public-site .phase3-hero,
body.public-site .qual-card,
body.public-site [style*="background:#0f172a"],
body.public-site [style*="background: #0f172a"],
body.public-site [style*="background:#1e293b"],
body.public-site [style*="background: #1e293b"],
body.public-site [style*="linear-gradient"] {
  color: #ffffff;
}
body.public-site .polish-match-card .text-white,
body.public-site .polish-match-card .fw-bold.text-white,
body.public-site .uc-match-card .text-white,
body.public-site .league-hero .text-white,
body.public-site .public-hero .text-white,
body.public-site .match-hero .text-white,
body.public-site .cbz-hero .text-white,
body.public-site .mcv-hero .text-white,
body.public-site .phase3-hero .text-white,
body.public-site [style*="background:#0f172a"] .text-white,
body.public-site [style*="background: #0f172a"] .text-white,
body.public-site [style*="background:#1e293b"] .text-white,
body.public-site [style*="background: #1e293b"] .text-white,
body.public-site [style*="linear-gradient"] .text-white {
  color: #ffffff !important;
}
body.public-site .polish-match-card .text-white-50,
body.public-site .uc-match-card .text-white-50,
body.public-site [style*="background:#0f172a"] .text-white-50,
body.public-site [style*="background: #0f172a"] .text-white-50,
body.public-site [style*="background:#1e293b"] .text-white-50,
body.public-site [style*="background: #1e293b"] .text-white-50,
body.public-site [style*="linear-gradient"] .text-white-50 {
  color: rgba(255,255,255,.72) !important;
}

/* Tables should stay readable on white pages. */
body.public-site .table:not(.table-dark):not(.slh-points-table),
body.public-site .table:not(.table-dark):not(.slh-points-table) > :not(caption) > * > * {
  color: #111827 !important;
}
body.public-site .table:not(.slh-points-table) thead th {
  color: #334155 !important;
}
body.public-site .slh-points-table thead th {
  color: #ffffff !important;
  background: #0f172a !important;
}

/* Fixture/list pages: section counters and titles. */
body.public-site.page-fixtures .home-card h2,
body.public-site.page-liveScores .home-card h2,
body.public-site.page-season .home-card h2,
body.public-site.page-points-table .home-card h2,
body.public-site.page-team .home-card h2,
body.public-site.page-venue .home-card h2 {
  color: #111827 !important;
}

/* Final navbar brand weight lock: keep Cricket Live Hub same thickness on every public page/tab. */
body.public-site .navbar-custom .navbar-brand,
body.public-site .navbar-custom .navbar-brand span,
.navbar-custom .navbar-brand,
.navbar-custom .navbar-brand span {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: geometricPrecision !important;
}

/* Priority 3 Premium Public Polish: homepage, match center, profiles, venue and stats filters */
:root{--p3-ink:#0f172a;--p3-muted:#64748b;--p3-line:#e5e7eb;--p3-card:#ffffff;--p3-soft:#f8fafc;--p3-brand:#009270;--p3-brand2:#12b886;--p3-warn:#f59e0b;--p3-danger:#dc2626;--p3-shadow:0 14px 34px rgba(15,23,42,.08)}
.public-site .slh-card,.public-site .mcv-card,.public-site .venue-card,.public-site .profile-card,.public-site .team-card{border:1px solid rgba(148,163,184,.22)!important;box-shadow:0 10px 28px rgba(15,23,42,.06);border-radius:18px!important}
.public-site .slh-hero{position:relative;overflow:hidden;background:radial-gradient(circle at 12% 0%,rgba(18,184,134,.28),transparent 34%),linear-gradient(135deg,#07121f,#10233a 48%,#013f35)!important;border-radius:0 0 28px 28px}
.public-site .slh-hero:after{content:"";position:absolute;inset:auto -10% -38% auto;width:420px;height:420px;border-radius:50%;background:rgba(255,255,255,.08);pointer-events:none}.public-site .slh-hero .container{position:relative;z-index:1}.public-site .slh-hero-card{backdrop-filter:blur(14px);background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:22px!important}.public-site .slh-stat-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px dashed rgba(148,163,184,.35)}.public-site .slh-stat-row:last-child{border-bottom:0}
.public-site .mcv-hero{border-radius:22px!important;box-shadow:var(--p3-shadow)!important}.public-site .mcv-hero:before{height:5px!important;background:linear-gradient(90deg,var(--p3-brand),var(--p3-brand2),var(--p3-warn))!important}.public-site .mcv-tabs{gap:8px!important;overflow-x:auto;flex-wrap:nowrap!important;padding-bottom:4px}.public-site .mcv-tab{white-space:nowrap;box-shadow:0 4px 12px rgba(15,23,42,.04)}.public-site .mcv-sticky{top:88px}.public-site .mcv-commentary-item,.public-site .cbz-com-line{transition:transform .16s ease,box-shadow .16s ease,background .16s ease}.public-site .mcv-commentary-item:hover,.public-site .cbz-com-line:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(15,23,42,.07)}.public-site .cbz-over-card{border-radius:18px!important;box-shadow:0 8px 22px rgba(15,23,42,.06)!important}.public-site .cbz-over-head{background:linear-gradient(90deg,#0f172a,#1f3b52)!important;color:#fff!important}.public-site .cbz-com-title{font-weight:800;color:#111827}.public-site .cbz-com-sub{color:#64748b;font-weight:700}.public-site .cbz-ball.wkt,.public-site .cbz-ball-chip.wkt{background:#fee2e2!important;color:#991b1b!important}.public-site .cbz-ball.four,.public-site .cbz-ball-chip.four{background:#dbeafe!important;color:#1d4ed8!important}.public-site .cbz-ball.six,.public-site .cbz-ball-chip.six{background:#fef3c7!important;color:#92400e!important}
.p3-filter-panel{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 16px;padding:12px;background:#fff;border:1px solid var(--p3-line);border-radius:16px;box-shadow:0 6px 18px rgba(15,23,42,.05)}.p3-filter-btn{border:1px solid var(--p3-line);background:#f8fafc;color:#334155;border-radius:999px;padding:8px 13px;font-size:.84rem;font-weight:900}.p3-filter-btn.active{background:var(--p3-brand);border-color:var(--p3-brand);color:#fff}.p3-hidden{display:none!important}
.public-site.page-player_profile main,.public-site.page-team_profile main,.public-site.page-venue main{background:radial-gradient(circle at 50% -10%,rgba(0,146,112,.10),transparent 35%),#f3f6fb}.public-site.page-player_profile .container,.public-site.page-team_profile .container{max-width:1120px}.public-site.page-player_profile .card,.public-site.page-team_profile .card{border:1px solid rgba(148,163,184,.22)!important;border-radius:20px!important;box-shadow:0 12px 30px rgba(15,23,42,.07)!important}.public-site.page-player_profile img,.public-site.page-team_profile img{image-rendering:auto}.public-site.page-venue .venue-app{max-width:1080px!important;margin:18px auto 32px!important;border-radius:24px!important;overflow:hidden;box-shadow:var(--p3-shadow)!important}.public-site.page-venue .venue-hero{padding:38px 18px!important;background:radial-gradient(circle at center top,rgba(18,184,134,.22),transparent 30%),linear-gradient(135deg,#06111f,#0f253d 50%,#024b40)!important}.public-site.page-venue .venue-title{font-size:clamp(24px,4vw,40px)!important}.public-site.page-venue .venue-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.public-site.page-venue .venue-stat{border-radius:16px!important;background:linear-gradient(180deg,#fff,#f8fafc)!important}.public-site.page-venue .venue-stat strong{font-size:clamp(22px,3vw,34px)!important}
@media(max-width:768px){.public-site .slh-hero{border-radius:0 0 20px 20px}.public-site .slh-hero .display-5{font-size:1.85rem}.public-site .slh-card,.public-site .mcv-card{border-radius:16px!important}.public-site .mcv-wrap{padding-left:10px!important;padding-right:10px!important}.public-site .mcv-tabs{margin-left:-2px;margin-right:-2px}.public-site .mcv-tab{padding:9px 12px!important;font-size:.8rem!important}.public-site .mcv-team-score{font-size:1.35rem!important}.public-site .cbz-commentary-filters{position:sticky;top:72px;z-index:20;box-shadow:0 8px 18px rgba(15,23,42,.08)}.public-site.page-venue .venue-app{margin:8px 8px 24px!important;border-radius:18px!important}.public-site.page-venue .venue-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.p3-filter-panel{overflow-x:auto;flex-wrap:nowrap}.p3-filter-btn{white-space:nowrap}.public-site .table-responsive{border-radius:16px}}
@media(max-width:480px){.public-site .slh-hero .btn{width:100%;justify-content:center}.public-site .slh-hero .d-flex.gap-2{display:grid!important;grid-template-columns:1fr}.public-site .mcv-mini{font-size:.86rem}.public-site .cbz-com-line{grid-template-columns:48px 42px 1fr!important;gap:8px!important}.public-site .cbz-com-left{font-size:.78rem}.public-site .cbz-com-title{font-size:.9rem}}

/* Override old sticky commentary filter polish; it caused overlap with advanced filters */
@media(max-width:768px){.public-site.page-bc .cbz-commentary-filters{position:static!important;top:auto!important;z-index:auto!important;box-shadow:none!important}}
/* Match header consistency + performance-friendly layout patch */
body.public-site .mps-shell{
  max-width:760px!important;
  margin:0 auto!important;
  padding:0!important;
}
body.public-site .mps-hero{
  border-radius:0!important;
  margin:0!important;
  box-shadow:none!important;
  contain:layout paint;
}
body.public-site .match-container,
body.public-site .app-container,
body.public-site .cbz-shell{
  max-width:760px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.public-site.page-gallery .gallery-wrap,
body.public-site.page-gallery .gallery-title-card,
body.public-site.page-gallery .gallery-empty,
body.public-site.page-gallery .gallery-grid{
  box-sizing:border-box;
}
body.public-site.page-gallery .gallery-wrap{
  padding:12px!important;
  background:#f8fafc!important;
}
body.public-site.page-gallery .gallery-title-card{
  min-height:62px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}
body.public-site .mps-scoreboard{
  align-items:stretch!important;
}
body.public-site .mps-team-panel,
body.public-site .mps-center-panel{
  min-height:92px!important;
}
body.public-site .mps-team-logo{
  flex:0 0 auto!important;
  background:#fff!important;
  object-fit:contain!important;
}
body.public-site .mps-team-fallback{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#0f172a!important;
  font-weight:900!important;
  overflow:hidden!important;
}
@media(max-width:640px){
  body.public-site .mps-shell,
  body.public-site .match-container,
  body.public-site .app-container,
  body.public-site .cbz-shell{max-width:100%!important;width:100%!important;}
  body.public-site .mps-team-panel,
  body.public-site .mps-center-panel{min-height:78px!important;}
  body.public-site.page-gallery .gallery-wrap{padding:10px!important;}
}

/* Final mobile polish: scorecard innings switcher centered and commentary filters non-overlapping */
body.public-site.page-scorecard .scorecard-toggle-wrap{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:6px!important;
  overflow-x:auto!important;
  padding:6px!important;
  margin:0 auto!important;
  width:calc(100% - 24px)!important;
  max-width:640px!important;
  box-sizing:border-box!important;
}
body.public-site.page-scorecard .scorecard-toggle-btn{
  flex:0 0 auto!important;
  min-width:118px!important;
  text-align:center!important;
}
body.public-site.page-bc .cbz-card.cbz-mini-card{
  overflow:visible!important;
}
body.public-site.page-bc .cbz-commentary-filters{
  position:static!important;
  top:auto!important;
  z-index:auto!important;
  box-shadow:none!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  padding:12px 12px 8px!important;
  margin:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  white-space:nowrap!important;
  background:#fff!important;
  border-bottom:1px solid #eef2f7!important;
}
body.public-site.page-bc .cbz-filter-btn{
  position:relative!important;
  z-index:1!important;
  flex:0 0 auto!important;
  min-height:38px!important;
  padding:8px 16px!important;
  line-height:20px!important;
}
body.public-site.page-bc .cbz-filter-row-adv{
  position:relative!important;
  z-index:0!important;
  clear:both!important;
  margin:0!important;
  padding:10px 12px 12px!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  background:#f8fafc!important;
  border-top:0!important;
}
body.public-site.page-bc .cbz-option-trigger{
  min-height:44px!important;
  width:100%!important;
  box-sizing:border-box!important;
}
@media(max-width:480px){
  body.public-site.page-scorecard .scorecard-toggle-wrap{width:calc(100% - 20px)!important;}
  body.public-site.page-scorecard .scorecard-toggle-btn{min-width:128px!important;}
}


/* FINAL COMMENTARY FILTER NO-OVERLAP PATCH */
body.public-site.page-bc .cbz-card.cbz-mini-card{overflow:hidden!important;contain:layout paint!important;}
body.public-site.page-bc .cbz-commentary-filters{position:relative!important;top:auto!important;z-index:2!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:10px!important;min-height:62px!important;height:auto!important;margin:0!important;padding:12px!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;background:#fff!important;border-bottom:1px solid #e5eaf0!important;box-shadow:none!important;transform:none!important;clear:both!important;box-sizing:border-box!important;}
body.public-site.page-bc .cbz-filter-btn{position:relative!important;z-index:1!important;flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;height:42px!important;min-height:42px!important;margin:0!important;padding:0 17px!important;line-height:42px!important;border-radius:999px!important;box-sizing:border-box!important;white-space:nowrap!important;transform:none!important;}
body.public-site.page-bc .cbz-filter-row-adv{position:relative!important;z-index:1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:12px!important;background:#f8fafc!important;border-top:0!important;border-bottom:1px solid #e5eaf0!important;clear:both!important;box-sizing:border-box!important;overflow:visible!important;transform:none!important;}
body.public-site.page-bc .cbz-option-trigger{position:relative!important;z-index:1!important;display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;height:48px!important;min-height:48px!important;margin:0!important;padding:0 14px!important;border-radius:10px!important;box-sizing:border-box!important;overflow:hidden!important;white-space:nowrap!important;transform:none!important;}
body.public-site.page-bc .cbz-mini-table-wrap{position:relative!important;z-index:0!important;margin-top:0!important;clear:both!important;}
@media(max-width:380px){body.public-site.page-bc .cbz-filter-row-adv{grid-template-columns:1fr!important;}}
