.match-card {
  min-width: 300px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  background: #e0e8ff;
}

.match-card:hover {
  transform: translateY(-2px);
}

.card-header {
  background: none;
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  padding-bottom: 0;
}

.match-type {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
}

.match-info {
  color: var(--secondary);
  font-size: 0.8rem;
}

.card-body {
  padding: 1rem;
}

.team-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.team {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-flag-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.team-flag {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

/* .team-flag-fallback / .strip-team-avatar.team-flag-fallback: shown by
   window.__crexFlagFallback (score.js) when a team's cricketvectors.akamaized.net
   flag image 404s -- an initials badge in the same box the <img> would fill. */
.team-flag-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border, #eef1f8);
  color: var(--text, #374151);
  font-weight: 700;
  font-size: 0.55rem;
}

.team-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.score {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
}

.match-result {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--secondary);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.player-of-match {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0rem;
  padding: 3px;
  background: #f8f9fa;
  border-radius: 8px;
}

.player-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.player-info {
  flex: 1;
}

.player-name {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text);
}

.player-title {
  font-size: 0.6rem;
  color: var(--secondary);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  background: #dc3545;
  color: white;
  padding: 1px 10px;
  border-radius: 1rem;
  font-size: 0.55rem;
  margin-bottom: 0rem;
  font-weight: 500;
}
.progress-bar{
  height: 0.4rem;
}

.match-day-info {
  color: var(--secondary);
  font-weight: 400;
}

.section-cat-slider .section-content{
  height: 300px;
}

/* ---- #live_feeds match ticker: tabs + horizontal match strip ---- */

.match-ticker-wrap {
  padding: 0.5rem 0 1rem;
}

.match-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
  margin-bottom: 1rem;
}

.match-tabs {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.match-tabs::-webkit-scrollbar { display: none; }

.tab-item {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 0.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--secondary, #6b7280);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.tab-item:hover {
  color: var(--text, #111827);
}
.tab-item.active {
  color: var(--text, #111827);
  font-weight: 700;
  border-bottom-color: #dc3545;
}
.tab-item .tab-count {
  opacity: 0.7;
  font-weight: 400;
}

.schedule-link {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
  white-space: nowrap;
}
.schedule-link i {
  font-size: 0.7rem;
  margin-left: 0.25rem;
}

.match-strip-container {
  position: relative;
}

.match-strip {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.match-strip::-webkit-scrollbar { display: none; }

.strip-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--bg, #fff);
  color: var(--text, #111827);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  z-index: 2;
}
.strip-prev { left: -0.75rem; }
.strip-next { right: -0.75rem; }

.strip-card {
  flex: 0 0 300px;
  max-width: 300px;
  padding: 0 1.25rem;
  border-right: 1px solid var(--border, #e5e7eb);
}
.strip-card:first-child {
  padding-left: 0.25rem;
}
.strip-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.strip-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.strip-card-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text, #111827);
  min-width: 0;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc3545;
  flex-shrink: 0;
}
.strip-live-text {
  color: #dc3545;
}
.strip-series {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strip-card-caret {
  font-size: 0.7rem;
  color: var(--secondary, #9ca3af);
  flex-shrink: 0;
}

.strip-card-sub {
  font-size: 0.75rem;
  color: var(--secondary, #6b7280);
  margin-bottom: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strip-team-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.strip-team-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.strip-team-avatar {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border, #eef1f8);
  color: var(--text, #374151);
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.strip-team-name {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text, #111827);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strip-team-score {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text, #111827);
  white-space: nowrap;
}
.strip-live-edit {
  font-size: 0.7rem;
  margin-left: 0.25rem;
}

.strip-card-status {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-progress { color: #b8860b; }
.status-result { color: #16a34a; }

.strip-card-upcoming {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.strip-card-upcoming .strip-team-list {
  flex: 1;
}
.strip-upcoming-time {
  flex-shrink: 0;
  text-align: right;
}
.upcoming-day {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text, #111827);
}
.upcoming-clock {
  font-size: 0.75rem;
  color: var(--secondary, #6b7280);
}

@media (max-width: 576px) {
  .strip-card { flex-basis: 260px; max-width: 260px; }
  .schedule-link span { display: none; }
}

/* ---- cricket section sub-nav (Live / Fixtures / Series / Rankings) ---- */
/* Shared by partials/_cricket_subnav.php and the JS-rendered fixtures
   status tabs -- same visual language as .match-tabs above, but as a
   standalone bar (not tied to the live-matches ticker). */

.cricket-subnav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.cricket-subnav::-webkit-scrollbar { display: none; }

.cricket-subnav-item {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 0.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary, #6b7280);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.cricket-subnav-item:hover {
  color: var(--text, #111827);
}
.cricket-subnav-item.active {
  color: var(--text, #111827);
  border-bottom-color: #dc3545;
}
.cricket-subnav-item .tab-count {
  opacity: 0.7;
  font-weight: 400;
}

.fixtures-status-tabs {
  margin-bottom: 1rem;
}

/* ---- rankings filter chips ---- */

.filter-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  background: var(--bg, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 2rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text, #374151);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.filter-chip:hover {
  border-color: #dc3545;
}
.filter-chip.active {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

/* ---- points table / rankings table (shared .points-table) ---- */

.points-table {
  font-size: 0.85rem;
}
.points-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.points-table .pt-rank {
  font-weight: 700;
  width: 2rem;
  text-align: center;
}
.points-table .pt-team {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  min-width: 180px;
}
.points-table .pt-team-avatar {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border, #eef1f8);
  color: var(--text, #374151);
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.points-table .pt-team-name {
  font-weight: 600;
}
.points-table .pt-points {
  font-weight: 700;
}
.pt-group-row td {
  background: var(--border, #f3f4f6);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.pt-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  margin-left: 0.25rem;
}
.pt-qualified { background: #16a34a; }
.pt-eliminated { background: #6b7280; }
.pt-legend {
  padding: 0.5rem 0 0;
}

.form-pills {
  display: inline-flex;
  gap: 0.2rem;
}
.form-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
}
.form-pill-w { background: #16a34a; }
.form-pill-l { background: #dc3545; }
.form-pill-n { background: #9ca3af; }

/* ---- /series list ---- */

.series-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.series-card {
  border-radius: 12px;
  border: 1px solid var(--border, #e5e7eb);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  height: 100%;
}
.series-card:hover {
  transform: translateY(-2px);
}
.series-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text, #111827);
}
.series-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 1rem;
  white-space: nowrap;
}
.series-badge-tour { background: #dbeafe; color: #1d4ed8; }
.series-badge-tournament { background: #fef3c7; color: #b45309; }
.series-dates {
  font-size: 0.8rem;
  color: var(--secondary, #6b7280);
  margin-top: 0.4rem;
}
.series-host {
  font-size: 0.8rem;
  color: var(--secondary, #6b7280);
  margin-top: 0.2rem;
}
.series-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  margin-top: 0.75rem;
}
.series-cta i {
  font-size: 0.65rem;
  margin-left: 0.2rem;
}

/* ---- /fixtures list ---- */

.fixture-row {
  border-radius: 12px;
  border: 1px solid var(--border, #e5e7eb);
}
.fixture-series {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text, #111827);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fixture-sub {
  font-size: 0.75rem;
  color: var(--secondary, #6b7280);
}
.fixture-result {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border, #e5e7eb);
  font-size: 0.8rem;
  color: var(--secondary, #6b7280);
}
.fixture-status {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 1rem;
  white-space: nowrap;
}
.fixture-status-finished { background: #dcfce7; color: #16a34a; }
.fixture-status-upcoming { background: #e0e7ff; color: #4338ca; }