/* ============================================================
   VALEFARM CRICKET CLUB — Premium Stylesheet
   Inspired by Warwickshire CCC / Edgbaston design language
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0d1b3e;
  --navy-mid:   #162548;
  --navy-light: #1e3360;
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --gold-dark:  #a8872e;
  --white:      #ffffff;
  --bg:         #f2f4f8;
  --bg-card:    #ffffff;
  --border:     #e2e6ef;
  --text:       #0d1b3e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --green:      #16a34a;
  --red:        #dc2626;
  --amber:      #d97706;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 4px rgba(13,27,62,0.07);
  --shadow:     0 4px 16px rgba(13,27,62,0.10);
  --shadow-lg:  0 8px 32px rgba(13,27,62,0.15);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Top Banner ───────────────────────────────────────────── */
.site-top-bar {
  background: var(--navy-light);
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  padding: 6px 0;
  text-align: center;
  letter-spacing: 0.5px;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow-lg);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-crest {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
}
.brand-crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text { display: flex; flex-direction: column; }

.brand-name {
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.brand-subtitle {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.header-socials { display: flex; gap: 8px; }

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.15);
}
.social-icon:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ── Live Ticker Bar (between header & nav) ──────────────── */
#live-ticker {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.lt-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 0;
  height: 44px;
}
.lt-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px 0 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #22c55e;
  white-space: nowrap;
  flex-shrink: 0;
}
.lt-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: greenPulse 1.8s ease-in-out infinite;
}
.lt-match {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  margin: 4px 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.lt-match:hover { background: rgba(255,255,255,0.15); }
.lt-scores {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.lt-comp {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
}
.lt-arrow {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  margin-left: auto;
}

/* ── Main Nav ─────────────────────────────────────────────── */
.site-nav {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 14px 18px;
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity var(--transition), transform var(--transition);
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after { opacity: 0.5; transform: scaleX(1); }
.nav-link.active { color: var(--gold); }
.nav-link.active::after { opacity: 1; transform: scaleX(1); }

/* ── Sub Nav (tabs) ───────────────────────────────────────── */
.sub-nav {
  background: #fff;
  border-bottom: 2px solid var(--border);
}

.sub-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 0;
}

.sub-nav-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 14px 22px;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  white-space: nowrap;
}
.sub-nav-link:hover { color: var(--navy); border-bottom-color: rgba(13,27,62,0.2); }
.sub-nav-link.active { color: var(--navy); border-bottom-color: var(--gold); }

/* ── Page Hero ────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a3060 100%);
  padding: 52px 32px 48px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 300px at 80% 50%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 120px;
  opacity: 0.04;
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.page-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 500;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* ── Live Match Hero ──────────────────────────────────────── */
.live-hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  z-index: 0;
}
.live-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,27,62,0.55) 0%, rgba(13,27,62,0.85) 100%);
  z-index: 1;
}
.live-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
  color: #fff;
}
.live-hero-comp {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
  font-style: italic;
}
.live-hero-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}
.live-hero-venue {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}
.live-hero-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 12px;
}
.live-hero-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.live-hero-team-name {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.3px;
}
.live-hero-score {
  font-size: 22px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  margin-top: 2px;
}
.live-hero-score .overs {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.live-hero-centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  flex-shrink: 0;
}
.live-hero-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
}
.live-hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.live-hero-status-badge.live {
  background: rgba(34,197,94,0.2);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.3);
}
.live-hero-status-badge.live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: live-pulse 1.5s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.live-hero-status-badge.completed {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
}
.live-hero-status-badge.stumps {
  background: rgba(201,168,76,0.2);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
}
.live-hero-result {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-top: 10px;
}
.live-hero-summary {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}
.live-hero-link {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 22px;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s;
  border: 1px solid rgba(255,255,255,0.15);
}
.live-hero-link:hover {
  background: rgba(255,255,255,0.22);
}
/* multiple live matches — ticker */
.live-hero-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.live-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  padding: 0;
}
.live-hero-dot.active {
  background: #fff;
}
@media (max-width: 640px) {
  .live-hero { min-height: 280px; }
  .live-hero-inner { padding: 28px 16px; }
  .live-hero-team-name { font-size: 18px; }
  .live-hero-score { font-size: 16px; }
  .live-hero-centre { padding: 0 10px; }
  .live-hero-logo { width: 36px; height: 36px; }
}

/* ── Main Content ─────────────────────────────────────────── */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 32px 60px;
}

/* ── Filter Bar ───────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.filter-select {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
.filter-select:focus { border-color: var(--navy); }

/* ── Loading / Error ──────────────────────────────────────── */
.api-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 16px;
}
.api-loading p { color: var(--text-muted); font-size: 14px; }

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.api-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--red);
  font-size: 14px;
}

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.5; }
.empty-state p { color: var(--text-muted); font-size: 16px; }

/* ── Section Title ────────────────────────────────────────── */
.section-month-hdr {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-month-hdr::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 16px;
  background: var(--gold);
  border-radius: 2px;
}

/* ════════════════════════════════════════════════════════════
   MATCH CARDS
   ════════════════════════════════════════════════════════════ */

/* ── Fixture Card ─────────────────────────────────────────── */
.fixture-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
  display: grid;
  grid-template-columns: 120px 150px 1fr;
}
.fixture-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }

/* ── Col 1: competition logo + name ── */
.fixture-badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  border-right: 1px solid #e8e8e8;
  text-align: center;
  gap: 8px;
}
.fixture-comp-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.fixture-comp-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  max-width: 110px;
}

/* ── Col 2: date + venue (desktop only) ── */
.fixture-dv-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 18px;
  border-right: 1px solid #e8e8e8;
}
.fixture-dv-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.fixture-dv-venue {
  font-size: 12px;
  font-weight: 400;
  color: #696d79;
  margin-top: 3px;
}

/* ── Col 3: teams + subtitle ── */
.fixture-body {
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Date/venue line inside body — hidden on desktop, shown on mobile */
.fixture-date-venue {
  display: none;
  font-size: 13px;
  color: #696d79;
  text-align: center;
}
.fixture-date-venue strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}
.fixture-date-venue .fixture-venue-text {
  font-weight: 400;
  color: #696d79;
}

/* Teams row: Name → Logo → Time → Logo → Name */
.fixture-teams-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}

.fixture-team {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.fixture-team.home-team {
  justify-content: flex-end;
  text-align: right;
}
/* Desktop: name first, then logo (logo sits near the time badge in centre) */
.fixture-team.home-team .fixture-team-name { order: -1; }
.fixture-team.away-team {
  justify-content: flex-start;
  text-align: left;
}
.team-logo-sm {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
}
.fixture-team-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  white-space: nowrap;
}
.fixture-team-xi {
  font-size: 11px;
  color: #696d79;
  font-weight: 500;
  margin-top: 1px;
}

.fixture-time-badge {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
  min-width: 50px;
  text-align: center;
  padding: 0 8px;
}

.fixture-subtitle {
  font-size: 12px;
  color: #696d79;
  text-align: center;
}

/* Inline time hidden on desktop, shown on mobile */
.fixture-time-inline { display: none; }

/* Competition name for mobile — hidden on desktop */
.fixture-comp-mobile { display: none; }

/* ── Result Card ──────────────────────────────────────────── */
/* ── Result card (Warwickshire-style clean layout) ── */
.result-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin: 0 auto 14px;
  max-width: 100%;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.result-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-1px); }

.result-card-inner-wrap {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 90px;
}

/* Left competition badge area */
.result-comp-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;
  border-right: 1px solid #e5e7eb;
  text-align: center;
  gap: 6px;
}
.result-comp-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.result-comp-name {
  font-size: 11px;
  font-weight: 600;
  color: #172c71;
  line-height: 1.25;
}

/* Right content area */
.result-card-main {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border-right: 1px solid #e5e7eb;   /* right border to match left separator */
}

/* Date & venue line — matches Warwickshire: 15px bold date, normal venue */
.result-date-venue {
  text-align: center;
  font-size: 13px;
  color: #696d79;
}
.result-date-venue strong {
  color: #172c71;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
}

/* Teams row — Warwickshire style: name+score | [logo vs logo] | name+score */
.result-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.result-team {
  flex: 1;
}
.result-team.home { text-align: right; }
.result-team.away { text-align: left; }

/* Centre block: logo vs logo */
.result-centre {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  flex-shrink: 0;
}
.result-team-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
}
.result-team-name {
  font-size: 16px;
  font-weight: 600;
  color: #172c71;
  line-height: 1.25;
}
.result-team-score {
  font-size: 14px;
  font-weight: 400;
  color: #172c71;
  font-variant-numeric: tabular-nums;
}
.result-vs {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  flex-shrink: 0;
}

/* Result text — matches Warwickshire: 13px, normal weight, grey */
.result-text {
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  color: #696d79;
}

.result-scorecard-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: opacity var(--transition), transform var(--transition);
  margin-top: 14px;
}
.result-scorecard-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ════════════════════════════════════════════════════════════
   SQUAD / PLAYER CARDS
   ════════════════════════════════════════════════════════════ */
.squad-section { margin-bottom: 40px; }

.squad-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.squad-section-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.squad-section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 18px;
  background: var(--gold);
  border-radius: 2px;
}
.squad-count { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.player-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
}
.player-card.has-player-photo {
  background: none;
  border: none;
  box-shadow: none;
  overflow: visible;
}
.player-card.has-player-photo .player-info {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
  margin-top: -20px;
  position: relative;
  z-index: 1;
}
.player-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.player-card.has-player-photo:hover { box-shadow: none; }

.player-photo {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  height: 180px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.player-photo.has-photo {
  background: none;
  height: 200px;
}
.player-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}
.player-photo-placeholder { font-size: 48px; opacity: 0.5; }
.player-number {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 12px;
}

.player-info { padding: 14px 16px; }
.player-name { font-weight: 800; font-size: 14px; color: var(--navy); margin-bottom: 6px; line-height: 1.2; }

.role-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.role-badge.Batter    { background: #eff6ff; color: #2563eb; }
.role-badge.Bowler    { background: #fef3c7; color: #d97706; }
.role-badge.AllRounder { background: #f0fdf4; color: #16a34a; }
.role-badge.WK        { background: #fdf4ff; color: #9333ea; }
.role-badge.Player    { background: #f1f5f9; color: #64748b; }

.player-stats-mini {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  flex-wrap: wrap;
}

/* ── Player Modal ──────────────────────────────────────────── */
.player-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13,27,62,0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.player-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.player-modal-header {
  background: var(--navy);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.player-modal-photo {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.player-modal-name { color: #fff; font-size: 20px; font-weight: 800; }
.player-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.player-modal-close:hover { background: rgba(255,255,255,0.25); }
.player-modal-body { padding: 24px; }

/* ── Stat Grid ─────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat-box {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid var(--border);
}
.stat-val { display: block; font-size: 20px; font-weight: 900; color: var(--navy); line-height: 1; }
.stat-lbl { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }

/* ════════════════════════════════════════════════════════════
   LEAGUE TABLE
   ════════════════════════════════════════════════════════════ */
.table-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.table-panel-header {
  background: var(--navy);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.table-panel-title { color: #fff; font-size: 18px; font-weight: 800; }
.table-panel-season { color: var(--gold); font-size: 13px; font-weight: 700; }

.league-table { width: 100%; border-collapse: collapse; }
.league-table th {
  background: #f8fafc;
  text-align: center;
  padding: 11px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.league-table th.left { text-align: left; padding-left: 20px; }
.league-table td {
  padding: 14px 10px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.league-table td.left { text-align: left; padding-left: 20px; }
.league-table tr:last-child td { border-bottom: none; }
.league-table tr:hover td { background: #f8fafc; }

/* highlight our team row */
.league-table tr.our-team td { background: #fdfbf3; }
.league-table tr.our-team:hover td { background: #faf6e8; }

.pos-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 13px;
}
.pos-1 { background: var(--gold); color: var(--navy); }
.pos-2 { background: #e5e7eb; color: #374151; }
.pos-3 { background: #cd7c2f; color: #fff; }
.pos-other { background: #f1f5f9; color: var(--text-muted); font-size: 12px; }

.table-team-name { font-weight: 700; color: var(--navy); font-size: 15px; }
.table-team-name.ours { color: var(--gold-dark); }
.table-team-xi { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.pts-cell { font-weight: 900; font-size: 17px; color: var(--navy); }

.form-dots { display: flex; gap: 4px; justify-content: center; }
.form-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
}
.form-dot.W { background: var(--green); }
.form-dot.L { background: var(--red); }
.form-dot.D { background: var(--amber); }
.form-dot.N { background: #e5e7eb; color: #aaa; }

/* ════════════════════════════════════════════════════════════
   RECORDS PAGE
   ════════════════════════════════════════════════════════════ */
.records-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
@media(max-width:768px) { .records-grid { grid-template-columns: 1fr; } }

.records-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.records-panel-header {
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.records-panel-header h3 { margin: 0; font-size: 15px; font-weight: 800; }
.records-panel-icon { font-size: 18px; }

.records-table { width: 100%; border-collapse: collapse; }
.records-table th {
  background: #f8fafc;
  text-align: left;
  padding: 9px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.records-table th.right { text-align: right; }
.records-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.records-table tr:last-child td { border-bottom: none; }
.records-table tr:hover td { background: #f8fafc; }

.records-rank { font-weight: 900; color: var(--text-muted); font-size: 12px; width: 34px; text-align: center; }
.records-rank.top1 { color: var(--gold-dark); font-size: 16px; }
.records-rank.top2 { color: #9ca3af; }
.records-rank.top3 { color: #cd7c2f; }
.records-player { font-weight: 700; color: var(--navy); font-size: 14px; }
.records-team { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.records-highlight { font-weight: 900; color: var(--navy); font-size: 16px; text-align: right; }
.records-sub { font-size: 11px; color: var(--text-muted); text-align: right; }

.records-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.records-section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 16px;
  background: var(--gold);
  border-radius: 2px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media(max-width:640px) { .summary-strip { grid-template-columns: 1fr 1fr; } }

.summary-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}
.summary-val { font-size: 32px; font-weight: 900; color: var(--navy); line-height: 1; }
.summary-lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-muted); margin-top: 6px; }

.team-toggle { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.team-pill {
  padding: 8px 18px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}
.team-pill:hover { border-color: var(--navy); color: var(--navy); }
.team-pill.active { background: var(--navy); color: var(--gold); border-color: var(--navy); }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  margin-top: auto;
}

.footer-sponsors {
  background: var(--navy-mid);
  padding: 20px 32px;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.sponsor-placeholder {
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 10px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.4);
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 32px;
  text-align: center;
}
.footer-copyright { font-size: 12px; color: rgba(255,255,255,0.3); }

/* ════════════════════════════════════════════════════════════
   MEMBERSHIP PAGE
   ════════════════════════════════════════════════════════════ */
.membership-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 80px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.membership-hero h1 { color: #fff; font-size: 44px; font-weight: 900; margin-bottom: 16px; }
.membership-hero p { color: rgba(255,255,255,0.65); font-size: 16px; max-width: 560px; margin: 0 auto 28px; }
.membership-cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 8px;
  transition: opacity var(--transition), transform var(--transition);
}
.membership-cta-btn:hover { opacity: 0.9; transform: translateY(-2px); }

.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 48px 0;
}
.membership-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 32px 28px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.membership-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.membership-card.featured { border: 2px solid var(--gold); }
.membership-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 12px;
}
.membership-tier { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 8px; }
.membership-name { font-size: 24px; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.membership-price { font-size: 36px; font-weight: 900; color: var(--navy); margin: 16px 0; }
.membership-price span { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.membership-features { list-style: none; margin: 20px 0 28px; }
.membership-features li { padding: 8px 0; font-size: 14px; color: var(--text-muted); border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: flex-start; }
.membership-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.membership-btn {
  display: block;
  width: 100%;
  padding: 13px;
  text-align: center;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: all var(--transition);
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  cursor: pointer;
}
.membership-btn.primary { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.membership-btn:hover { background: var(--navy); color: var(--gold); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .lt-inner { padding: 0 20px; }
  .site-header { padding: 0 20px; }
  .page-hero { padding: 40px 20px 36px; }
  .page-hero h1 { font-size: 28px; }
  .main-content { padding: 28px 20px 48px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; padding: 36px 20px; }
  .nav-inner { padding: 0 20px; }
  .sub-nav-inner { padding: 0 20px; }
}

@media (max-width: 640px) {
  /* Single column on mobile — hide badge col + date/venue col */
  .fixture-card { grid-template-columns: 1fr; }
  .fixture-badge-col { display: none; }
  .fixture-dv-col { display: none; }

  /* Show competition name inside body on mobile */
  .fixture-body { padding: 24px 20px; }
  .fixture-body::before { display: none; }
  .fixture-comp-mobile {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    text-align: center;
    margin-bottom: 8px;
  }

  /* Show date/venue line inside body on mobile */
  .fixture-date-venue {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    text-align: center;
  }
  .fixture-date-venue strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
  }
  .fixture-date-venue .fixture-venue-text {
    display: block;
    font-size: 12px;
    margin-top: 2px;
  }

  /* Teams row: two columns side by side, logos on top */
  .fixture-teams-row {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    margin-top: 16px;
  }
  .fixture-team.home-team,
  .fixture-team.away-team {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }
  /* Reset desktop order — logo on top, name below */
  .fixture-team.home-team .fixture-team-name { order: 0; }

  .fixture-team-name {
    font-size: 14px;
    font-weight: 700;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    color: var(--navy);
  }
  .team-logo-sm { width: 44px; height: 44px; }

  /* Hide the time badge between teams on mobile — time is in the date line */
  .fixture-time-badge { display: none; }

  .fixture-subtitle {
    font-size: 12px;
    margin-top: 14px;
    color: #888;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 12px;
    width: 100%;
  }
  .fixture-time-inline { display: inline; }
  .result-card { max-width: 100%; }
  .result-card-inner-wrap { grid-template-columns: 1fr; }
  .result-comp-side { border-right: none; border-bottom: 1px solid #e5e7eb; padding: 10px 14px; flex-direction: row; gap: 8px; }
  .result-comp-logo { width: 22px; height: 22px; }
  .result-card-main { padding: 12px 14px; }
  .result-team-logo { width: 24px; height: 24px; }
  .result-team-name { font-size: 12px; }
  .result-team-score { font-size: 11px; }
  .result-team { gap: 6px; }
  .result-vs { width: 30px; font-size: 11px; }
  .squad-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .brand-subtitle { display: none; }
  .page-hero::after { display: none; }
}

/* ════════════════════════════════════════════════════════════
   BACK LINK
   ════════════════════════════════════════════════════════════ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 24px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  transition: all var(--transition);
}
.back-link:hover {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}

/* ════════════════════════════════════════════════════════════
   SCORECARD PAGE
   ════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════
   SCORECARD — Clean minimal design (Warwickshire-inspired)
   ══════════════════════════════════════════════════════════ */

/* ── Hero header ── */
.sc-hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sc-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.55;
  z-index: 0;
}
.sc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,21,55,0.3) 0%, rgba(8,21,55,0.7) 60%, rgba(8,21,55,0.9) 100%);
  z-index: 0;
}
.sc-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 44px 24px 96px;
  width: 100%;
  max-width: 800px;
}
.sc-hero-comp {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.sc-hero-date {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}
.sc-hero-venue {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
}

/* Teams row in hero */
.sc-hero-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.sc-hero-team { text-align: center; }
.sc-hero-team-name {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.sc-hero-team-score {
  font-size: 36px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -1px;
}
/* Centre column: logos + status badge */
.sc-hero-centre {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 80px;
}
.sc-hero-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  padding: 5px;
}

/* Status badges */
.sc-hero-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 4px;
  white-space: nowrap;
}
.sc-badge-prematch {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
}
.sc-badge-live {
  background: #dc2626;
  color: #fff;
  animation: livePulse 1.8s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(220,38,38,0); }
}
.sc-badge-result {
  background: var(--gold);
  color: var(--navy);
}

/* Overs in score (smaller text) */
.sc-hero-overs {
  font-size: 0.55em;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0;
}

/* Result text below teams */
.sc-hero-result-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  margin-top: 18px;
  letter-spacing: 0.3px;
}

/* ── Weather widget (top right of hero) ── */
.sc-hero-weather {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  text-align: right;
  color: #fff;
}
.sc-weather-temp {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
}
.sc-weather-desc {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-top: 3px;
}

/* ── Bottom bar — floating, transparent, Edgbaston-style ── */
.sc-hero-bottom {
  position: absolute;
  bottom: 16px;
  left: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 60px;
  background: transparent;
}

/* Left side: IN PLAY + live match boxes */
.sc-bb-left {
  display: flex;
  align-items: center;
  height: 100%;
}
/* Right side: UPCOMING + upcoming match boxes — pushed to the right */
.sc-bb-right {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: auto;
}

/* Labels: IN PLAY and UPCOMING — just text, no bg */
.sc-bb-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  background: transparent;
  flex-shrink: 0;
}
.sc-bb-inplay { color: #22c55e; }
.sc-bb-upcoming { color: rgba(255,255,255,0.55); }

/* Green blinking dot */
.sc-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: greenPulse 1.8s ease-in-out infinite;
}
@keyframes greenPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* Vertical line between IN PLAY and UPCOMING */
.sc-bb-divider {
  width: 1px;
  align-self: stretch;
  margin: 10px 8px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

/* Match box — semi-transparent so hero bg shows through */
.sc-bb-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 24px 8px 14px;
  margin: 6px 3px;
  min-width: 155px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.sc-bb-cell:hover { background: rgba(255,255,255,0.18); }

.sc-bb-comp {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2px;
}
.sc-bb-teams {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1.4;
}
.sc-bb-when {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}
.sc-bb-arrow {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
  margin-left: 3px;
}

/* ── LIVE PANEL: current batsmen + bowlers (Edgbaston style) ── */
.lp-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin: 20px auto 0;
  gap: 0;
}
.lp-section {
  padding: 0;
}
.lp-header {
  padding: 10px 16px 2px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.3px;
}
.lp-batting .lp-header { text-align: left; }
.lp-bowling .lp-header { text-align: right; }
.lp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 5px;
  padding: 0 8px;
}
.lp-table thead th {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-align: center;
  border: none;
  background: none;
}
.lp-table thead th.lp-name {
  text-align: left;
  padding-left: 14px;
}
.lp-table tbody tr {
  background: rgba(255,255,255,0.1);
}
.lp-table tbody td {
  padding: 14px 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-align: center;
  border: none;
}
.lp-table tbody tr td:first-child {
  border-radius: 4px 0 0 4px;
}
.lp-table tbody tr td:last-child {
  border-radius: 0 4px 4px 0;
}
.lp-table tbody td.lp-name {
  text-align: left;
  padding-left: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.lp-table tbody td.lp-highlight {
  color: #fff;
  font-weight: 700;
  background: rgba(255,255,255,0.12);
}
.lp-on-strike td {
  color: #fff;
}
.lp-strike {
  display: inline-block;
  margin-left: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.lp-ball {
  display: inline-block;
  margin-left: 6px;
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  vertical-align: middle;
}

/* ── SCORECARD tab (below hero) ── */
.sc-tab-bar {
  background: #fff;
  padding: 0;
  border-bottom: 1px solid #e5e7eb;
}
.sc-tab-btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  border: none;
  background: #fff;
  border-bottom: 3px solid var(--navy);
  cursor: default;
}

/* ── Live scorecard placeholder (pre-match) ── */
.sc-prematch-box {
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 32px 28px;
  margin: 32px auto;
  max-width: 860px;
}
.sc-prematch-box h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}
.sc-prematch-box p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* Legacy (kept for safety) */
.sc-hero-vs { text-align: center; min-width: 60px; }
.sc-hero-vs-text {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.25);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.sc-hero-result {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  padding: 4px 0;
}

/* ── Content area below hero ── */
.sc-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 40px 48px;
  background: #fff;
}
#scorecard-root {
  background: #fff;
}

/* ── No data state ── */
.sc-no-data {
  max-width: 500px;
  margin: 60px auto;
  text-align: center;
  padding: 48px 32px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.sc-no-data-icon { font-size: 48px; margin-bottom: 16px; }
.sc-no-data h2 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.sc-no-data p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 24px; }
.sc-no-data-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 8px; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: opacity .2s;
}
.sc-btn:hover { opacity: 0.85; }
.sc-btn-primary { background: var(--navy); color: #fff; }
.sc-btn-gold { background: var(--gold); color: var(--navy); }

/* ── Innings tabs (clean underline style) ── */
.sc-inn-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 24px;
}
.sc-inn-tab {
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  color: #9ca3af;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sc-inn-tab:hover { color: var(--navy); }
.sc-inn-tab.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* ── Section heading ── */
.sc-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 28px 0 12px;
}
.sc-section-title:first-child { margin-top: 0; }

/* ── Batting & bowling tables (clean minimal) ── */
.sc-bat-table,
.sc-bowl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 4px;
}
.sc-bat-table th,
.sc-bat-table td,
.sc-bowl-table th,
.sc-bowl-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
}
.sc-col-name { text-align: left; }
.sc-col-howout { text-align: left; color: #6b7280; font-size: 12px; }
.sc-col-num { text-align: center; width: 44px; }

.sc-bat-table thead th,
.sc-bowl-table thead th {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 2px solid #d1d5db;
  background: transparent;
  text-align: center;
}
.sc-bat-table thead th:first-child,
.sc-bowl-table thead th:first-child { text-align: left; }
.sc-bat-table thead th:nth-child(2) { text-align: left; }

/* Player names as links (Warwickshire style) */
.sc-batter-name,
.sc-bowler-name {
  font-weight: 600;
  color: #2563eb;
}
.sc-batter-name:hover,
.sc-bowler-name:hover {
  text-decoration: underline;
}

.sc-runs strong { font-weight: 700; color: #111827; }
.sc-wickets strong { font-weight: 700; color: #111827; }

/* No alternating backgrounds — clean white */
.sc-bat-table tbody tr:hover,
.sc-bowl-table tbody tr:hover { background: #f9fafb; }

/* Not out batters */
.sc-notout .sc-batter-name { color: #2563eb; }
.sc-notout .sc-runs strong { color: #111827; }
.sc-notout .sc-col-howout { color: #16a34a; font-weight: 600; font-style: italic; }

/* Did not bat */
.sc-dnb td { opacity: 0.35; font-style: italic; }

/* Five-wicket haul */
.sc-fifer .sc-wickets strong { color: var(--gold-dark); }
.sc-three-plus .sc-wickets strong { font-weight: 800; }

/* Extras & Total in tfoot — clean inline rows */
.sc-extras-row td {
  font-size: 13px;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 12px;
}
.sc-extras-detail { color: #9ca3af; font-weight: 400; margin-left: 4px; }

.sc-total-row td {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  padding: 12px 12px;
  border-bottom: 2px solid #d1d5db;
}
.sc-total-detail { font-weight: 400; font-size: 12px; color: #6b7280; margin-left: 4px; }
.sc-total-rr { font-weight: 400; font-size: 12px; color: #9ca3af; margin-left: 8px; }

/* ── Fall of wickets (flowing text) ── */
.sc-fow {
  padding: 12px 0 20px;
}
.sc-fow-title {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}
.sc-fow-text {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
}
.sc-fow-text strong {
  color: #374151;
  font-weight: 600;
}

/* ── Match info section (clean, no card) ── */
.sc-match-info {
  margin-top: 28px;
  border-top: 2px solid #e5e7eb;
  padding-top: 20px;
}
.sc-match-info-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}
.sc-match-info-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid #f3f4f6;
}
.sc-match-info-row:last-child { border-bottom: none; }
.sc-info-label {
  font-weight: 600;
  color: #374151;
  min-width: 80px;
  flex-shrink: 0;
}
.sc-info-value { color: #6b7280; }

/* Back link */
.sc-back-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  margin-bottom: 20px;
}
.sc-back-link:hover { text-decoration: underline; }

/* ── Scorecard mobile ── */
@media (max-width: 640px) {
  .sc-hero { min-height: 400px; padding-bottom: 0; }
  .sc-hero-inner { padding: 28px 16px 80px; }
  .sc-hero-teams {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }
  .sc-hero-team-name { font-size: 15px; }
  .sc-hero-team-score { font-size: 20px; }
  .sc-hero-vs { display: none; }
  .sc-hero-centre {
    flex-direction: row;
    gap: 4px;
  }
  .sc-hero-logo { width: 28px; height: 28px; padding: 3px; }
  .sc-hero-badge { font-size: 7px; padding: 3px 7px; }
  .sc-hero-result-text { font-size: 11px; margin-top: 10px; }
  .sc-hero-venue { margin-bottom: 14px; }

  /* Weather: smaller on mobile */
  .sc-hero-weather { top: 10px; right: 12px; }
  .sc-weather-temp { font-size: 16px; }
  .sc-weather-desc { font-size: 10px; }

  /* Bottom bar on mobile: hide IN PLAY side, show UPCOMING only */
  .sc-hero-bottom {
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 50px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sc-bb-left { display: none; }
  .sc-bb-divider { display: none; }
  .sc-bb-right { margin-left: 0; }
  .sc-bb-cell { min-width: 110px; padding: 6px 14px 6px 10px; margin: 4px 3px; }
  .sc-bb-label { padding: 0 10px; font-size: 9px; }
  .sc-bb-teams { font-size: 11px; }
  .sc-bb-when { font-size: 9px; }
  .sc-bb-comp { font-size: 8px; }
  .sc-prematch-box { margin: 20px 16px; padding: 24px 20px; }
  .sc-prematch-box h3 { font-size: 16px; }
  .sc-prematch-box p { font-size: 13px; }

  /* Live panel: stack vertically on mobile */
  .lp-wrap {
    grid-template-columns: 1fr;
  }
  .lp-batting .lp-header,
  .lp-bowling .lp-header {
    text-align: left;
    padding: 8px 12px 2px;
    font-size: 12px;
  }
  .lp-table {
    padding: 0 4px;
    border-spacing: 0 3px;
  }
  .lp-table thead th {
    padding: 4px 6px;
    font-size: 10px;
  }
  .lp-table thead th.lp-name {
    padding-left: 10px;
  }
  .lp-table tbody td {
    padding: 10px 6px;
    font-size: 13px;
  }
  .lp-table tbody td.lp-name {
    padding-left: 10px;
    font-size: 13px;
  }

  .sc-content { padding: 16px 16px 40px; }
  .sc-inn-tab { padding: 10px 14px; font-size: 12px; }
  .sc-bat-table th, .sc-bat-table td,
  .sc-bowl-table th, .sc-bowl-table td { padding: 8px 6px; font-size: 12px; }
  .sc-col-howout { display: none; }
  .sc-col-num { width: 32px; }
  .sc-section-title { font-size: 14px; margin: 20px 0 8px; }
  .sc-match-info-row { flex-direction: column; gap: 2px; }
}

/* ════════════════════════════════════════════════════════════
   LIVE STREAM OVERLAY SYSTEM — Broadcast-style overlays
   Cyan/white theme (matching reference screenshots)
   ════════════════════════════════════════════════════════════ */

/* ── Tab bar update ── */
.sc-tab-btn.sc-main-tab { cursor: pointer; user-select: none; transition: color 0.2s, border-color 0.2s; }
.sc-tab-btn.sc-main-tab:hover { color: var(--gold); }
.sc-tab-btn.sc-main-tab.active { color: var(--gold); border-bottom: 2px solid var(--gold); }

/* ── Live Stream Panel ── */
.sc-livestream-panel { background: #000; }

.ls-container { max-width: 1200px; margin: 0 auto; }

.ls-stream-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background: #0a0a0a;
  overflow: hidden;
}

.ls-iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.ls-no-stream {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #667; text-align: center; gap: 8px;
}
.ls-no-stream h3 { font-size: 20px; color: #889; }
.ls-no-stream p { font-size: 14px; max-width: 400px; }

/* ── Custom fullscreen button ── */
.ls-fullscreen-btn {
  position: absolute; bottom: 12px; right: 12px;
  z-index: 20;
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.6);
  border: none; border-radius: 6px;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
  pointer-events: auto;
}
.ls-stream-wrap:hover .ls-fullscreen-btn { opacity: 1; }
.ls-fullscreen-btn:hover { background: rgba(0,0,0,0.85); }

/* ── Fullscreen state — stream wrap fills screen, overlays stay on top ── */
.ls-stream-wrap:fullscreen {
  width: 100vw; height: 100vh;
  padding-top: 0;
  background: #000;
}
.ls-stream-wrap:fullscreen .ls-iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}
.ls-stream-wrap:fullscreen .ov-intro,
.ls-stream-wrap:fullscreen .ov-scorebar,
.ls-stream-wrap:fullscreen .ov-batsman,
.ls-stream-wrap:fullscreen .ov-bowler {
  z-index: 10;
}
.ls-stream-wrap:fullscreen .ls-fullscreen-btn {
  opacity: 0;
  bottom: 16px; right: 16px;
  z-index: 20;
}
.ls-stream-wrap:fullscreen:hover .ls-fullscreen-btn { opacity: 1; }
.ls-stream-wrap:-webkit-full-screen {
  width: 100vw; height: 100vh;
  padding-top: 0;
  background: #000;
}

/* ── Overlays — positioned directly in stream-wrap, no wrapper layer ── */
/* Each overlay is pointer-events:none so YouTube controls stay accessible */
.ov-intro, .ov-scorebar, .ov-batsman, .ov-bowler {
  pointer-events: none;
  z-index: 10;
}

/* ══ BROADCAST OVERLAY DESIGN ══
   Cyan (#55D4E2) solid headers with geometric pattern
   White table bodies, clean broadcast look
   Matching reference: Balmoral CC v Stanly CC style
   ════════════════════════════════════════════════ */

/* ── Shared: cyan header bar with hex pattern ── */
.ov-header {
  position: relative;
  background: linear-gradient(135deg, #45c8d8, #5adaea);
  padding: 10px 18px;
  display: flex; align-items: center; gap: 10px;
  overflow: hidden;
}
.ov-header::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(60deg, rgba(255,255,255,0.08) 25%, transparent 25%),
    linear-gradient(-60deg, rgba(255,255,255,0.08) 25%, transparent 25%),
    linear-gradient(60deg, transparent 75%, rgba(255,255,255,0.08) 75%),
    linear-gradient(-60deg, transparent 75%, rgba(255,255,255,0.08) 75%);
  background-size: 40px 46px;
  background-position: 0 0, 0 0, 20px 23px, 20px 23px;
  pointer-events: none;
}
.ov-header-logo {
  width: 36px; height: 36px; object-fit: contain;
  border-radius: 50%;
  position: relative; z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.ov-header-text {
  position: relative; z-index: 1;
  font-size: 18px; font-weight: 900; color: #fff;
  text-transform: uppercase; letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.ov-header-text .ov-header-vs {
  font-size: 13px; font-weight: 600;
  opacity: 0.85; margin-left: 4px;
}

/* ── Shared: cyan bottom status bar ── */
.ov-footer {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #45c8d8, #5adaea);
  padding: 8px 18px;
  position: relative; overflow: hidden;
}
.ov-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(60deg, rgba(255,255,255,0.08) 25%, transparent 25%),
    linear-gradient(-60deg, rgba(255,255,255,0.08) 25%, transparent 25%),
    linear-gradient(60deg, transparent 75%, rgba(255,255,255,0.08) 75%),
    linear-gradient(-60deg, transparent 75%, rgba(255,255,255,0.08) 75%);
  background-size: 40px 46px;
  background-position: 0 0, 0 0, 20px 23px, 20px 23px;
  pointer-events: none;
}
.ov-footer span {
  position: relative; z-index: 1;
  font-size: 14px; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ── Column header row (used in batsman + bowler tables) ── */
.ov-col-header {
  background: linear-gradient(135deg, #45c8d8, #5adaea);
  position: relative; overflow: hidden;
}
.ov-col-header::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(60deg, rgba(255,255,255,0.08) 25%, transparent 25%),
    linear-gradient(-60deg, rgba(255,255,255,0.08) 25%, transparent 25%),
    linear-gradient(60deg, transparent 75%, rgba(255,255,255,0.08) 75%),
    linear-gradient(-60deg, transparent 75%, rgba(255,255,255,0.08) 75%);
  background-size: 40px 46px;
  background-position: 0 0, 0 0, 20px 23px, 20px 23px;
  pointer-events: none;
}
.ov-col-header th {
  position: relative; z-index: 1;
  padding: 8px 12px; text-align: left;
  font-size: 12px; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ════════════════════════════════════════════════════
   MATCH INTRO / TARGET OVERLAY
   ════════════════════════════════════════════════════ */
.ov-intro {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70%; max-width: 680px;
  overflow: hidden;
  animation: ovFadeIn 0.4s ease;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.ov-intro-body {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  padding: 28px 24px;
  text-align: center;
}
.ov-intro-comp {
  font-size: 12px; font-weight: 700;
  color: #45c8d8; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 16px;
}
.ov-intro-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; margin: 20px 0;
}
.ov-intro-stat {
  text-align: center;
}
.ov-intro-stat-label {
  font-size: 14px; font-weight: 700; color: #555;
  text-transform: uppercase;
}
.ov-intro-stat-value {
  font-size: 56px; font-weight: 900; color: #333;
  line-height: 1.1;
}
.ov-intro-stat-sub {
  font-size: 16px; font-weight: 700; color: #555;
  text-transform: uppercase;
}
.ov-intro-rrr {
  display: inline-block;
  background: linear-gradient(135deg, #45c8d8, #5adaea);
  padding: 8px 24px;
  font-size: 14px; font-weight: 800; color: #fff;
  margin-top: 12px;
  position: relative; overflow: hidden;
}
.ov-intro-rrr::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(60deg, rgba(255,255,255,0.08) 25%, transparent 25%),
    linear-gradient(-60deg, rgba(255,255,255,0.08) 25%, transparent 25%),
    linear-gradient(60deg, transparent 75%, rgba(255,255,255,0.08) 75%),
    linear-gradient(-60deg, transparent 75%, rgba(255,255,255,0.08) 75%);
  background-size: 40px 46px;
  background-position: 0 0, 0 0, 20px 23px, 20px 23px;
  pointer-events: none;
}
.ov-intro-rrr span { position: relative; z-index: 1; }
.ov-intro-venue {
  font-size: 13px; color: #777; margin-top: 14px;
}
.ov-intro-date {
  font-size: 12px; color: #999; margin-top: 4px;
}

/* ════════════════════════════════════════════════════
   SCORE BAR OVERLAY (bottom bar)
   ════════════════════════════════════════════════════ */
.ov-scorebar {
  position: absolute; bottom: 0; left: 0;
  width: 100%;
  display: flex; align-items: stretch;
  background: linear-gradient(135deg, #45c8d8, #5adaea);
  min-height: 52px;
  animation: ovSlideUp 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
}
.ov-scorebar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(60deg, rgba(255,255,255,0.06) 25%, transparent 25%),
    linear-gradient(-60deg, rgba(255,255,255,0.06) 25%, transparent 25%),
    linear-gradient(60deg, transparent 75%, rgba(255,255,255,0.06) 75%),
    linear-gradient(-60deg, transparent 75%, rgba(255,255,255,0.06) 75%);
  background-size: 40px 46px;
  background-position: 0 0, 0 0, 20px 23px, 20px 23px;
  pointer-events: none;
}
.ov-sb-left {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  position: relative; z-index: 1;
  flex-shrink: 0;
}
.ov-sb-logo {
  width: 32px; height: 32px; object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
}
.ov-sb-team {
  font-size: 15px; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.ov-sb-score {
  font-size: 22px; font-weight: 900; color: #fff;
  margin-left: 2px;
}
.ov-sb-overs {
  font-size: 11px; color: rgba(255,255,255,0.8);
  font-weight: 600;
  display: flex; flex-direction: column; align-items: center;
  margin-left: 4px; line-height: 1.2;
}
.ov-sb-center {
  flex: 1; display: flex;
  align-items: center; justify-content: center;
  gap: 12px;
  position: relative; z-index: 1;
}
.ov-sb-batter {
  font-size: 13px; color: #fff; font-weight: 700;
  padding: 5px 14px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  white-space: nowrap;
}
.ov-sb-batter .ov-sb-batter-score {
  color: rgba(255,255,255,0.9);
  font-weight: 500; margin-left: 4px;
}
.ov-sb-ticker {
  position: relative; z-index: 1;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.85);
  text-transform: uppercase; letter-spacing: 0.3px;
  text-align: center;
  padding: 0 10px;
}
.ov-sb-right {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  position: relative; z-index: 1;
  flex-shrink: 0;
}
.ov-sb-bowl-label {
  font-size: 14px; font-weight: 800; color: #fff;
  text-transform: uppercase;
}
.ov-sb-bowler {
  font-size: 13px; color: #fff; font-weight: 600;
  white-space: nowrap;
}
.ov-sb-bbb {
  display: none;
}

/* ════════════════════════════════════════════════════
   BATSMAN CARD OVERLAY
   ════════════════════════════════════════════════════ */
.ov-batsman {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72%; max-width: 720px;
  overflow: hidden;
  animation: ovFadeIn 0.4s ease;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.ov-card-header {
  /* Uses .ov-header now — this is kept for compat but overridden */
  display: none;
}
.ov-bat-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px; color: #333;
  background: #fff;
}
.ov-bat-table thead .ov-col-header th:nth-child(n+3) { text-align: right; }
.ov-bat-table tbody tr { border-bottom: 1px solid #e0e0e0; }
.ov-bat-table tbody tr:nth-child(even) { background: #f5f8fa; }
.ov-bat-table tbody tr:nth-child(odd) { background: #fff; }
.ov-bat-table td { padding: 8px 12px; }
.ov-bat-name { font-weight: 800; color: #222; text-transform: uppercase; font-size: 14px; }
.ov-bat-howout { font-size: 13px; color: #666; }
.ov-bat-num { text-align: right; font-weight: 700; font-size: 14px; color: #333; }
tr.ov-notout { background: rgba(120,180,80,0.18) !important; }
tr.ov-notout .ov-bat-name { color: #222; }
tr.ov-notout .ov-bat-howout { color: #5a8a30; font-weight: 600; }
.ov-extras td { padding: 7px 12px; font-size: 12px; color: #888; border-top: 1px solid #ddd; background: #f9f9f9; }
.ov-total td { padding: 10px 12px; font-size: 14px; border-top: 2px solid #45c8d8; background: #f5f8fa; }
.ov-total td strong { color: #333; }

/* ════════════════════════════════════════════════════
   BOWLER CARD OVERLAY
   ════════════════════════════════════════════════════ */
.ov-bowler {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72%; max-width: 720px;
  overflow: hidden;
  animation: ovFadeIn 0.4s ease;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.ov-bowl-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px; color: #333;
  background: #fff;
}
.ov-bowl-table thead .ov-col-header th:nth-child(n+2) { text-align: center; }
.ov-bowl-table tbody tr { border-bottom: 1px solid #e0e0e0; }
.ov-bowl-table tbody tr:nth-child(even) { background: #f5f8fa; }
.ov-bowl-table tbody tr:nth-child(odd) { background: #fff; }
.ov-bowl-table td { padding: 8px 12px; }
.ov-bowl-name { font-weight: 800; color: #222; text-transform: uppercase; font-size: 14px; }
.ov-bowl-num { text-align: center; font-weight: 700; font-size: 14px; color: #333; }
.ov-wkt { color: #333; font-weight: 900; }

.ov-fow {
  background: #fff;
  border-top: 1px solid #ddd;
}
.ov-fow-row {
  display: flex;
}
.ov-fow-title-cell {
  background: #4a5568;
  color: #fff;
  font-size: 12px; font-weight: 800;
  padding: 6px 14px;
  text-transform: uppercase;
  display: flex; align-items: center;
  white-space: nowrap;
}
.ov-fow-numbers {
  display: flex; flex: 1;
}
.ov-fow-entry {
  flex: 1;
  text-align: center;
  padding: 4px 6px;
  border-left: 1px solid #e0e0e0;
}
.ov-fow-entry-wkt {
  font-size: 11px; font-weight: 800; color: #333;
  background: #f0f0f0; padding: 3px 0;
}
.ov-fow-entry-score {
  font-size: 12px; font-weight: 600; color: #333;
  padding: 3px 0;
}

.ov-fow-title {
  font-size: 11px; font-weight: 700; color: #999;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
  padding: 10px 18px 0;
}
.ov-fow-text {
  font-size: 12px; color: #555; line-height: 1.6;
  padding: 0 18px 10px;
}
.ov-fow-item { margin-right: 8px; }
.ov-fow-item strong { color: #45c8d8; font-weight: 800; }

/* ── Animations ── */
@keyframes ovFadeInFull {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ovFadeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes ovSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Responsive overlays ── */
@media (max-width: 600px) {
  .ov-intro { width: 92%; }
  .ov-intro-stat-value { font-size: 36px; }
  .ov-intro-stats { gap: 20px; }

  .ov-scorebar { flex-wrap: wrap; }
  .ov-sb-score { font-size: 18px; }
  .ov-sb-center { display: none; }
  .ov-sb-right { display: none; }

  .ov-batsman, .ov-bowler { width: 96%; }
  .ov-bat-table, .ov-bowl-table { font-size: 12px; }
  .ov-bat-table td, .ov-bowl-table td { padding: 5px 8px; }
  .ov-header-text { font-size: 14px; }
  .ov-header-logo { width: 28px; height: 28px; }
}
