
/* Batch 1: SVG badges, micro-animations, phase markers, and innings tracker */
.cx-card,
.cx-stat-tile,
.cx-innings-tab,
.cx-tabs a,
.cx-xi-player-card,
.cx-fow-item,
.cx-boundary-widget,
.cx-info-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.cx-card:hover,
.cx-stat-tile:hover,
.cx-xi-player-card:hover,
.cx-fow-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--cx-shadow-sm);
}

.cx-innings-tab:hover,
.cx-tabs a:hover {
  transform: translateY(-1px);
}

.cx-svg-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: inherit;
  font-weight: 900;
}

.cx-svg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cx-primary), var(--cx-primary-deep));
  color: var(--cx-white);
  box-shadow: 0 8px 18px rgba(56, 92, 123, 0.22);
  flex: 0 0 auto;
}

.cx-svg-badge svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
}

.cx-innings-tracker {
  margin: 14px 16px 0;
  padding: 14px;
  border: 1px solid var(--cx-primary-border);
  border-radius: var(--cx-radius-lg);
  background: linear-gradient(135deg, rgba(56, 92, 123, 0.08), rgba(47, 143, 201, 0.08));
}

.cx-innings-tracker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--cx-primary-dark);
}

.cx-innings-tracker-head strong {
  color: var(--cx-primary);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.cx-innings-tracker-rail {
  position: relative;
  display: flex;
  height: 12px;
  overflow: visible;
  border-radius: 999px;
  background: var(--cx-border);
  box-shadow: inset 0 0 0 1px rgba(56, 92, 123, 0.12);
}

.cx-innings-tracker-rail span {
  display: block;
  min-width: 2px;
  height: 12px;
  background: linear-gradient(90deg, rgba(56, 92, 123, 0.95), rgba(47, 143, 201, 0.88));
  border-right: 1px solid rgba(255, 255, 255, 0.55);
}

.cx-innings-tracker-rail span:nth-child(2) {
  background: linear-gradient(90deg, rgba(47, 143, 201, 0.85), rgba(56, 92, 123, 0.75));
}

.cx-innings-tracker-rail span:nth-child(3) {
  background: linear-gradient(90deg, rgba(255, 207, 61, 0.92), rgba(230, 149, 24, 0.92));
  border-right: 0;
}

.cx-innings-tracker-rail span:nth-child(4) {
  background: linear-gradient(90deg, rgba(255, 207, 61, 0.92), rgba(230, 149, 24, 0.92));
  border-right: 0;
}

.cx-innings-tracker-rail i {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid var(--cx-white);
  border-radius: 999px;
  background: var(--cx-gold);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, -50%);
}

.cx-innings-tracker-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.cx-phase-tab {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--cx-primary-border);
  border-radius: var(--cx-radius-md);
  background: rgba(255, 255, 255, 0.72);
  color: var(--cx-primary-dark);
  text-align: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cx-phase-tab span,
.cx-phase-tab small {
  color: var(--cx-muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.cx-innings-tracker-labels > span {
  color: var(--cx-muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.cx-phase-tab span {
  color: var(--cx-primary-dark);
}

.cx-phase-tab:hover,
.cx-phase-tab.is-active {
  border-color: var(--cx-primary);
  background: var(--cx-white);
  box-shadow: var(--cx-shadow-sm);
  transform: translateY(-1px);
}

.cx-phase-tab.is-active span {
  color: var(--cx-primary);
}

.cx-phase-detail-list {
  margin-top: 12px;
}

.cx-phase-detail {
  padding: 12px;
  border: 1px solid var(--cx-primary-border);
  border-radius: var(--cx-radius-md);
  background: var(--cx-card-bg);
}

.cx-phase-detail[hidden] {
  display: none !important;
}

.cx-phase-detail span,
.cx-phase-detail small {
  display: block;
  color: var(--cx-muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.cx-phase-detail strong {
  display: block;
  margin: 5px 0;
  color: var(--cx-primary-dark);
  font-size: 18px;
  font-weight: 900;
}

.cx-phase-marker-strip {
  margin: 14px 16px 0;
  padding: 14px;
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius-lg);
  background: var(--cx-card-bg);
}

.cx-phase-marker-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--cx-primary-dark);
}

.cx-phase-marker-title small {
  color: var(--cx-muted);
  font-size: 11px;
  font-weight: 800;
}

.cx-phase-marker-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.cx-phase-marker {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--cx-primary-border);
  border-radius: var(--cx-radius-md);
  background: var(--cx-primary-soft);
}

.cx-phase-marker::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--cx-primary);
}

.cx-phase-marker span,
.cx-phase-marker small {
  display: block;
  color: var(--cx-muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.cx-phase-marker strong {
  display: block;
  margin: 5px 0;
  color: var(--cx-primary-dark);
  font-size: 18px;
  font-weight: 900;
}

.cx-live-ux-panel,
.cx-run-chase-gauge,
.cx-key-moments-timeline {
  width: min(100%, 1140px);
  margin: 16px auto;
  padding: 14px;
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius-lg);
  background: var(--cx-card-bg);
  box-shadow: var(--cx-shadow-sm);
}

.cx-live-ux-panel {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(260px, 1fr);
  gap: 12px;
  align-items: center;
}

.cx-commentary-tab .cx-live-ux-panel {
  width: 100%;
  margin: 0;
  grid-template-columns: minmax(0, auto) minmax(240px, 1fr);
}

.cx-live-ux-actions,
.cx-context-alert-form,
.cx-context-alert-list,
.cx-key-moments-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cx-live-ux-btn,
.cx-moment-chip,
.cx-context-alert-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--cx-primary-border);
  border-radius: 999px;
  background: var(--cx-primary-soft);
  color: var(--cx-primary);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
}

.cx-live-ux-btn:hover,
.cx-moment-chip:hover,
.cx-context-alert-pill:hover,
.cx-live-ux-btn.is-active {
  border-color: var(--cx-primary);
  background: var(--cx-primary);
  color: var(--cx-white);
  transform: translateY(-1px);
}

.cx-sound-alert-toggle.is-active {
  border-color: rgba(255, 207, 61, 0.75);
  background: linear-gradient(135deg, var(--cx-primary), var(--cx-gold));
  color: var(--cx-white);
}

.cx-context-alert-form {
  justify-content: flex-end;
  min-width: 0;
}

.cx-context-alert-input {
  width: min(280px, 100%);
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius-md);
  background: var(--cx-white);
  color: var(--cx-text);
  font-size: 13px;
  font-weight: 700;
}

.cx-context-alert-list {
  grid-column: 1 / -1;
}

.cx-context-alert-empty {
  color: var(--cx-muted);
  font-size: 12px;
  font-weight: 800;
}

.cx-context-alert-pill {
  min-height: 30px;
  padding: 7px 10px;
  gap: 7px;
  background: rgba(255, 207, 61, 0.14);
  color: var(--cx-primary-dark);
}

.cx-context-alert-pill b {
  color: inherit;
  font-size: 14px;
  line-height: 1;
}

.cx-key-moments-timeline {
  width: 100%;
  margin: 12px 0 16px;
  background: linear-gradient(135deg, rgba(56, 92, 123, 0.06), rgba(47, 143, 201, 0.06));
}

.cx-key-moments-head,
.cx-run-chase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cx-key-moments-head strong,
.cx-run-chase-head strong {
  color: var(--cx-primary-dark);
  font-size: 14px;
  font-weight: 900;
}

.cx-key-moments-head small,
.cx-run-chase-head span {
  color: var(--cx-muted);
  font-size: 11px;
  font-weight: 800;
}

.cx-key-moments-strip {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.cx-moment-chip {
  flex: 0 0 auto;
  gap: 7px;
  min-height: 34px;
  padding: 8px 12px;
}

.cx-moment-chip b {
  color: inherit;
  font-size: 10px;
  opacity: 0.85;
}

.cx-moment-w {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.cx-moment-4,
.cx-moment-6 {
  border-color: rgba(255, 207, 61, 0.45);
  background: rgba(255, 207, 61, 0.18);
  color: var(--cx-primary-dark);
}

.cx-highlights-tab {
  min-width: 0;
}

.cx-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.cx-highlight-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius-lg);
  background: var(--cx-card-bg);
  box-shadow: var(--cx-shadow-sm);
}

.cx-highlight-card p {
  margin: 0;
  color: var(--cx-text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.cx-highlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.cx-highlight-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: var(--cx-radius-pill);
  background: var(--cx-primary-soft);
  color: var(--cx-muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.cx-highlight-meta .cx-highlight-badge {
  background: var(--cx-primary);
  color: var(--cx-white);
}

.cx-highlight-w .cx-highlight-badge {
  background: var(--cx-red);
}

.cx-highlight-4 .cx-highlight-badge,
.cx-highlight-6 .cx-highlight-badge,
.cx-highlight-hundred .cx-highlight-badge,
.cx-highlight-fifty .cx-highlight-badge {
  background: var(--cx-gold);
  color: var(--cx-primary-dark);
}

.cx-analytics-tab {
  width: min(100%, 1140px);
  margin: 0 auto;
  min-width: 0;
}

.cx-analytics-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid rgba(56, 92, 123, 0.18);
  border-radius: var(--cx-radius-lg);
  background: linear-gradient(135deg, rgba(56, 92, 123, 0.08), rgba(47, 143, 201, 0.08));
  box-shadow: var(--cx-shadow-sm);
}

.cx-analytics-kicker {
  display: inline-flex;
  margin-bottom: 5px;
  color: var(--cx-primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cx-analytics-hero h3 {
  margin: 0;
  color: var(--cx-primary-dark);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.cx-analytics-source-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cx-analytics-source-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(47, 143, 201, 0.22);
  border-radius: var(--cx-radius-pill);
  background: var(--cx-white);
  color: var(--cx-muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.cx-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.cx-analytics-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius-lg);
  background: var(--cx-card-bg);
  box-shadow: var(--cx-shadow-sm);
}

.cx-analytics-card-wide {
  grid-column: 1 / -1;
}

.cx-analytics-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cx-analytics-card-head span {
  display: block;
  margin-bottom: 3px;
  color: var(--cx-muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.cx-analytics-card-head strong {
  display: block;
  color: var(--cx-primary-dark);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.cx-analytics-card-head small {
  flex: 0 0 auto;
  color: var(--cx-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-align: right;
}

.cx-analytics-worm-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.cx-analytics-worm-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(56, 92, 123, 0.14);
  border-radius: var(--cx-radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.cx-analytics-worm-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.cx-analytics-worm-meta strong {
  min-width: 0;
  color: var(--cx-primary-dark);
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.cx-analytics-worm-meta span {
  flex: 0 0 auto;
  color: var(--cx-muted);
  font-size: 11px;
  font-weight: 850;
}

.cx-analytics-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 9px;
}

.cx-analytics-mini-stats span {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(56, 92, 123, 0.12);
  border-radius: var(--cx-radius-md);
  background: var(--cx-primary-soft);
  color: var(--cx-muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.cx-analytics-mini-stats b {
  display: block;
  margin-bottom: 2px;
  color: var(--cx-primary-dark);
  font-size: 14px;
  font-weight: 900;
}

.cx-analytics-svg {
  display: block;
  width: 100%;
  height: 154px;
  overflow: visible;
}

.cx-analytics-gridline {
  stroke: rgba(56, 92, 123, 0.13);
  stroke-width: 1;
}

.cx-analytics-line,
.cx-analytics-rr-line {
  fill: none;
  stroke: var(--cx-primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cx-analytics-rr-line {
  stroke: var(--cx-gold);
  stroke-width: 3;
  opacity: 0.95;
}

.cx-analytics-winviz-svg .cx-analytics-rr-line {
  stroke: var(--cx-accent-blue);
}

.cx-analytics-over-bars {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 178px;
  padding: 10px 8px 0;
  border-radius: var(--cx-radius-md);
  background: linear-gradient(180deg, rgba(56, 92, 123, 0.05), rgba(47, 143, 201, 0.07));
}

.cx-analytics-over-bar {
  flex: 1 1 8px;
  min-width: 6px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--cx-accent-blue), var(--cx-primary));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.cx-analytics-over-bar.has-wicket {
  background: linear-gradient(180deg, var(--cx-red), var(--cx-primary-dark));
}

.cx-key-over-list {
  display: grid;
  gap: 9px;
}

.cx-key-over-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  overflow: hidden;
  border: 1px solid rgba(56, 92, 123, 0.13);
  border-radius: var(--cx-radius-md);
  background: var(--cx-white);
}

.cx-key-over-card.has-wicket {
  border-color: rgba(239, 68, 68, 0.22);
}

.cx-key-over-main {
  min-width: 0;
}

.cx-key-over-main strong {
  display: block;
  color: var(--cx-primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.cx-key-over-main span {
  display: block;
  margin-top: 2px;
  color: var(--cx-muted);
  font-size: 10px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.cx-key-over-score {
  text-align: right;
}

.cx-key-over-score b {
  display: block;
  color: var(--cx-primary);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.cx-key-over-score span {
  display: block;
  margin-top: 2px;
  color: var(--cx-muted);
  font-size: 10px;
  font-weight: 850;
}

.cx-key-over-card > i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--cx-primary), var(--cx-accent-blue));
}

.cx-key-over-card.has-wicket > i {
  background: linear-gradient(90deg, var(--cx-red), var(--cx-primary));
}

.cx-analytics-leader-list,
.cx-impact-grid,
.cx-matchup-grid,
.cx-milestone-list {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.cx-analytics-leader {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(56, 92, 123, 0.12);
  border-radius: var(--cx-radius-md);
  background: var(--cx-white);
}

.cx-analytics-rank {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--cx-primary);
  color: var(--cx-white);
  font-size: 12px;
  font-weight: 900;
}

.cx-analytics-leader strong,
.cx-impact-card strong,
.cx-matchup-row strong,
.cx-milestone-row strong {
  display: block;
  min-width: 0;
  color: var(--cx-primary-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cx-analytics-leader small,
.cx-impact-card span,
.cx-milestone-row span {
  display: block;
  margin-top: 2px;
  color: var(--cx-muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
}

.cx-analytics-leader b {
  color: var(--cx-primary-dark);
  font-size: 16px;
  font-weight: 900;
}

.cx-analytics-mini-bar {
  display: block;
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(56, 92, 123, 0.12);
}

.cx-analytics-mini-bar i,
.cx-impact-card > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cx-primary), var(--cx-accent-blue));
}

.cx-impact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  padding: 11px 11px 14px;
  overflow: hidden;
  border: 1px solid rgba(56, 92, 123, 0.12);
  border-radius: var(--cx-radius-md);
  background: var(--cx-white);
}

.cx-impact-card b {
  color: var(--cx-primary);
  font-size: 16px;
  font-weight: 900;
}

.cx-impact-card > i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  border-radius: 0;
}

.cx-matchup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(56, 92, 123, 0.12);
  border-radius: var(--cx-radius-md);
  background: var(--cx-white);
}

.cx-matchup-row span {
  display: inline-flex;
  justify-content: center;
  min-width: 58px;
  padding: 5px 7px;
  border-radius: var(--cx-radius-pill);
  background: var(--cx-primary-soft);
  color: var(--cx-muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.cx-matchup-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(56, 92, 123, 0.14);
  border-radius: var(--cx-radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(232, 240, 246, 0.58));
  box-shadow: 0 8px 20px rgba(16, 39, 59, 0.06);
}

.cx-matchup-players {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.cx-matchup-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cx-matchup-player.is-batter {
  justify-content: flex-end;
  text-align: right;
}

.cx-matchup-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(56, 92, 123, 0.16);
  border-radius: 50%;
  background: var(--cx-white);
  color: var(--cx-primary-dark);
  font-size: 11px;
  font-weight: 900;
}

.cx-matchup-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cx-matchup-player small {
  display: block;
  color: var(--cx-muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.cx-matchup-player strong {
  display: block;
  min-width: 0;
  color: var(--cx-primary-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cx-matchup-vs {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--cx-primary);
  color: var(--cx-white);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.cx-matchup-duel-bar {
  display: flex;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(56, 92, 123, 0.12);
}

.cx-matchup-bowl-share {
  background: var(--cx-primary);
}

.cx-matchup-bat-share {
  background: var(--cx-gold);
}

.cx-matchup-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.cx-matchup-stats span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 7px;
  border-radius: var(--cx-radius-pill);
  background: var(--cx-white);
  color: var(--cx-muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.cx-matchup-edge {
  color: var(--cx-primary);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.cx-milestone-row {
  padding: 11px;
  border: 1px solid rgba(47, 143, 201, 0.18);
  border-left: 4px solid var(--cx-accent-blue);
  border-radius: var(--cx-radius-md);
  background: rgba(47, 143, 201, 0.06);
}

.cx-milestone-bowl {
  border-left-color: var(--cx-red);
  background: rgba(239, 68, 68, 0.06);
}

.cx-analytics-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.cx-analytics-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cx-muted);
  font-size: 11px;
  font-weight: 850;
}

.cx-analytics-legend i {
  display: inline-block;
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--cx-primary);
}

.cx-analytics-legend i.is-away {
  background: var(--cx-accent-blue);
}

.cx-analytics-legend i.is-rate {
  background: var(--cx-gold);
}

.cx-analytics-card-legend {
  margin-top: 6px;
}

.cx-commentary-keyword {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 207, 61, 0.22);
  color: var(--cx-primary-dark);
  font-weight: 900;
}

.cx-commentary-jump-highlight .cx-commentary-card,
.cx-commentary-jump-highlight {
  animation: cxCommentaryJumpPulse 2.2s ease;
}

@keyframes cxCommentaryJumpPulse {
  0%, 100% {
    box-shadow: var(--cx-shadow-sm);
  }
  18%, 62% {
    box-shadow: 0 0 0 4px rgba(255, 207, 61, 0.25), var(--cx-shadow-md);
  }
}

.cx-run-chase-gauge {
  margin-top: 0;
}

.cx-run-chase-meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cx-border);
  box-shadow: inset 0 0 0 1px rgba(56, 92, 123, 0.12);
}

.cx-run-chase-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cx-primary), var(--cx-gold));
  transition: width 0.3s ease;
}

.cx-run-chase-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.cx-run-chase-stats span {
  padding: 9px 10px;
  border: 1px solid var(--cx-border);
  border-radius: var(--cx-radius-md);
  background: var(--cx-primary-soft);
  color: var(--cx-muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.cx-run-chase-stats b {
  color: var(--cx-primary-dark);
  font-size: 14px;
  font-weight: 900;
}

.cx-live-ux-toast {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 99999;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--cx-radius-md);
  background: linear-gradient(135deg, var(--cx-primary-deep), var(--cx-primary));
  color: var(--cx-white);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: var(--cx-shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cx-live-ux-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cx-commentary-controls {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.25fr);
  gap: 12px;
  align-items: center;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid rgba(56, 92, 123, 0.13);
  border-radius: var(--cx-radius-lg);
  background: linear-gradient(135deg, rgba(232, 240, 246, 0.92), rgba(255, 255, 255, 0.96));
  box-shadow: var(--cx-shadow-sm);
}

.cx-commentary-filter-tabs,
.cx-highlight-filter-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  overflow-x: auto;
  scrollbar-width: thin;
}

.cx-commentary-controls .cx-commentary-search-input {
  min-height: 42px;
  padding: 10px 14px 10px 38px;
  border-radius: var(--cx-radius-pill);
  background: var(--cx-white);
  box-shadow: inset 0 0 0 1px rgba(56, 92, 123, 0.04);
}

.cx-commentary-controls .cx-commentary-search-wrap::before {
  content: "\f002";
  position: absolute;
  left: 14px;
  top: 50%;
  color: var(--cx-muted);
  font-family: FontAwesome;
  font-size: 13px;
  transform: translateY(-50%);
  pointer-events: none;
}

.cx-highlights-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(56, 92, 123, 0.13);
  border-radius: var(--cx-radius-lg);
  background: linear-gradient(135deg, rgba(56, 92, 123, 0.08), rgba(47, 143, 201, 0.08));
  box-shadow: var(--cx-shadow-sm);
}

.cx-highlights-toolbar span,
.cx-highlights-toolbar strong {
  display: block;
}

.cx-highlights-toolbar span {
  color: var(--cx-muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.cx-highlights-toolbar strong {
  margin-top: 3px;
  color: var(--cx-primary-dark);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.cx-highlights-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cx-highlight-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-color: rgba(56, 92, 123, 0.13);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 240, 246, 0.52));
}

.cx-highlight-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--cx-primary);
}

.cx-highlight-card.cx-highlight-w::before {
  background: var(--cx-red);
}

.cx-highlight-card.cx-highlight-4::before,
.cx-highlight-card.cx-highlight-6::before,
.cx-highlight-card.cx-highlight-fifty::before,
.cx-highlight-card.cx-highlight-hundred::before {
  background: var(--cx-gold);
}

.cx-highlight-card.is-hidden {
  display: none;
}

.cx-highlight-card p {
  font-size: 15px;
  line-height: 1.62;
}

.cx-matchup-analytics-card .cx-matchup-grid {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 12px;
}

.cx-matchup-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cx-matchup-card:hover {
  border-color: rgba(47, 143, 201, 0.28);
  box-shadow: var(--cx-shadow-md);
  transform: translateY(-1px);
}

.cx-matchup-avatar {
  text-decoration: none;
}

.cx-matchup-name {
  display: block;
  min-width: 0;
  color: var(--cx-primary-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.cx-matchup-name:hover {
  color: var(--cx-accent-blue);
}

.cx-fantasy-tab {
  width: min(100%, 1140px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.85fr);
  align-items: start;
}

.cx-fantasy-tab > .cx-win-prediction-card {
  order: 1;
  grid-column: 1;
  min-height: 100%;
}

.cx-fantasy-tab > .cx-fantasy-points-card {
  order: 2;
  grid-column: 1;
}

.cx-fantasy-tab > .cx-disclaimer-card {
  order: 3;
  grid-column: 1 / -1;
}

.cx-fantasy-tab > .cx-fantasy-grid {
  display: contents;
}

.cx-fantasy-grid > .cx-ground-snapshot-card {
  order: 1;
  grid-column: 2;
  min-height: 100%;
}

.cx-fantasy-grid > .cx-top-players-card {
  order: 2;
  grid-column: 2;
}

.cx-fantasy-tab.cx-fantasy-tab--without-points > .cx-fantasy-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 16px;
  order: 2;
}

.cx-fantasy-tab.cx-fantasy-tab--without-points .cx-fantasy-grid > .cx-ground-snapshot-card {
  grid-column: 1;
  grid-row: 1;
  order: 1;
}

.cx-fantasy-tab.cx-fantasy-tab--without-points .cx-fantasy-grid > .cx-top-players-card {
  grid-column: 2;
  grid-row: 1;
  order: 1;
}

.cx-fantasy-points-card .cx-analytics-leader-list {
  gap: 10px;
}

.cx-fantasy-point-row {
  grid-template-columns: 30px 48px minmax(0, 1fr) auto;
  padding: 12px;
}

.cx-fantasy-player-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--cx-white);
  border-radius: 50%;
  background: var(--cx-primary-soft);
  color: var(--cx-primary);
  box-shadow: var(--cx-shadow-sm);
  text-decoration: none;
}

.cx-fantasy-player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.cx-fantasy-player-avatar b {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
}

.cx-fantasy-player-name {
  display: block;
  color: var(--cx-primary-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
}

.cx-fantasy-player-name:hover {
  color: var(--cx-accent-blue);
}

.cx-fantasy-contrib {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.cx-fantasy-contrib span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  overflow: hidden;
  border-radius: var(--cx-radius-pill);
  background: rgba(56, 92, 123, 0.1);
}

.cx-fantasy-contrib i {
  position: relative;
  z-index: 2;
  min-width: 38px;
  padding-left: 8px;
  color: var(--cx-primary-dark);
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.cx-fantasy-contrib b {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(47, 143, 201, 0.88), rgba(56, 92, 123, 0.88));
}

.cx-fantasy-contrib span:nth-child(2) b {
  background: linear-gradient(90deg, rgba(255, 207, 61, 0.92), rgba(230, 149, 24, 0.92));
}

.cx-top-players-card .cx-cricket-ground {
  min-height: 540px;
  background-size: auto, 148px 100%, auto;
}

.cx-ground-snapshot-card .cx-ground-info-list {
  gap: 12px !important;
}

@media (max-width: 768px) {
  .cx-innings-tracker,
  .cx-phase-marker-strip,
  .cx-live-ux-panel,
  .cx-run-chase-gauge,
  .cx-key-moments-timeline {
    margin: 12px;
    padding: 12px;
  }

  .cx-innings-tracker-head,
  .cx-phase-marker-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .cx-phase-marker-list {
    grid-template-columns: 1fr;
  }

  .cx-live-ux-panel {
    grid-template-columns: 1fr;
  }

  .cx-commentary-controls,
  .cx-fantasy-tab {
    grid-template-columns: 1fr;
  }

  .cx-commentary-filter-tabs,
  .cx-highlight-filter-tabs {
    justify-content: flex-start;
  }

  .cx-highlights-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .cx-fantasy-tab > .cx-win-prediction-card,
  .cx-fantasy-tab > .cx-fantasy-points-card,
  .cx-fantasy-grid > .cx-ground-snapshot-card,
  .cx-fantasy-grid > .cx-top-players-card {
    grid-column: 1;
  }

  .cx-fantasy-grid > .cx-ground-snapshot-card {
    order: 1;
  }

  .cx-fantasy-tab > .cx-win-prediction-card {
    order: 2;
  }

  .cx-fantasy-tab > .cx-fantasy-points-card {
    order: 3;
  }

  .cx-fantasy-grid > .cx-top-players-card {
    order: 4;
  }

  .cx-fantasy-tab > .cx-disclaimer-card {
    order: 5;
  }

  .cx-fantasy-tab.cx-fantasy-tab--without-points .cx-fantasy-grid > .cx-ground-snapshot-card {
    grid-column: 1;
    grid-row: 1;
    order: 1;
  }

  .cx-fantasy-tab.cx-fantasy-tab--without-points .cx-fantasy-grid > .cx-top-players-card {
    grid-column: 1;
    grid-row: 2;
    order: 2;
  }

  .cx-fantasy-tab.cx-fantasy-tab--without-points > .cx-fantasy-grid {
    grid-template-columns: 1fr;
  }

  .cx-fantasy-point-row {
    grid-template-columns: 30px 42px minmax(0, 1fr);
  }

  .cx-fantasy-point-row > b {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .cx-top-players-card .cx-cricket-ground {
    min-height: 380px;
  }

  .cx-commentary-tab .cx-live-ux-panel {
    grid-template-columns: 1fr;
  }

  .cx-context-alert-form {
    justify-content: flex-start;
  }

  .cx-context-alert-input {
    width: 100%;
  }

  .cx-run-chase-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cx-key-moments-head,
  .cx-run-chase-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .cx-innings-tracker-labels,
  .cx-highlights-grid {
    grid-template-columns: 1fr;
  }

  .cx-analytics-hero,
  .cx-analytics-card-head,
  .cx-analytics-worm-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .cx-analytics-source-pills {
    justify-content: flex-start;
  }

  .cx-analytics-grid,
  .cx-analytics-worm-list {
    grid-template-columns: 1fr;
  }

  .cx-matchup-analytics-card .cx-matchup-grid {
    grid-template-columns: 1fr;
  }

  .cx-analytics-card-wide {
    grid-column: auto;
  }

  .cx-matchup-row {
    grid-template-columns: 1fr 1fr;
  }

  .cx-matchup-row strong {
    grid-column: 1 / -1;
  }

  .cx-matchup-players {
    grid-template-columns: 1fr;
  }

  .cx-matchup-player.is-batter {
    justify-content: flex-start;
    text-align: left;
  }

  .cx-matchup-vs {
    width: auto;
    height: auto;
    padding: 5px 8px;
    border-radius: var(--cx-radius-pill);
    justify-self: flex-start;
  }

  .cx-matchup-stats,
  .cx-analytics-mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
