/* CricBun - Modern Premium Frontend Theme
   Light default | Dark via [data-bs-theme="dark"]
   ============================================================ */

/* ── Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Nunito:wght@900;1000&display=swap');

/* ── Design Tokens (Light) ─────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-nav: rgba(255, 255, 255, 0.85);
  --bg-section-alt: #f1f5f9;
  --bg-input: #ffffff;
  --bg-overlay: rgba(15, 23, 42, 0.6);

  /* Surfaces */
  --surface-1: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;

  /* Borders */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #4f46e5;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* Brand */
  --accent: #4f46e5;
  --accent-rgb: 79, 70, 229;
  --accent-hover: #4338ca;
  --primary: #4f46e5;
  --success: #10b981;
  --success-rgb: 16, 185, 129;
  --danger: #f43f5e;
  --danger-rgb: 244, 63, 94;
  --warning: #f59e0b;
  --warning-rgb: 245, 158, 11;
  --info: #06b6d4;
  --live: #f43f5e;

  /* Shadows - multi-layered for premium depth */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 8px -1px rgba(15, 23, 42, 0.03);
  --shadow-glass: 0 8px 32px 0 rgba(15, 23, 42, 0.06);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Spacing */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-logo: 'Nunito', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;

  /* Fluid typography clamp values */
  --clamp-xs: clamp(0.65rem, 0.6vw + 0.5rem, 0.75rem);
  --clamp-sm: clamp(0.75rem, 0.7vw + 0.55rem, 0.875rem);
  --clamp-base: clamp(0.85rem, 0.85vw + 0.6rem, 1rem);
  --clamp-lg: clamp(1rem, 1vw + 0.7rem, 1.125rem);
  --clamp-xl: clamp(1.15rem, 1.2vw + 0.8rem, 1.25rem);
  --clamp-2xl: clamp(1.4rem, 1.8vw + 0.9rem, 1.5rem);
  --clamp-3xl: clamp(1.7rem, 2.5vw + 1rem, 1.875rem);
  --clamp-4xl: clamp(2.2rem, 3.5vw + 1.2rem, 2.5rem);

  /* Animations */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 350ms;

  /* Skeleton */
  --skeleton-base: #eef0f4;
  --skeleton-shine: #f6f8fa;

  /* CB Logo - synced with .cb-logo-master local variables */
  --cb-yellow: #FBC000;
  --cb-black: #050505;
  --cb-blue: #009CDE;
  --cb-red-body: #D20000;
  --cb-red-shadow: #800000;
  --duration-med: 200ms;
  --duration-long: 400ms;

  /* Component heights */
  --control-height: 42px;
  --control-height-sm: 34px;
}

/* ── Design Tokens (Dark) ──────────────────────────────────── */
[data-bs-theme="dark"] {
  --bg-body: #0b0f19;
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --bg-nav: rgba(11, 15, 25, 0.8);
  --bg-section-alt: #0f172a;
  --bg-input: #1f2937;
  --bg-overlay: rgba(0, 0, 0, 0.8);
  --surface-1: #111827;
  --surface-2: #1f2937;
  --surface-3: #374151;
  --border: #1f2937;
  --border-light: #162235;
  --border-focus: #6366f1;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #6366f1;
  --accent-rgb: 99, 102, 241;
  --accent-hover: #818cf8;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.45);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.35), 0 2px 8px -1px rgba(0, 0, 0, 0.25);
  --shadow-glass: 0 8px 32px rgba(0,0,0,0.45);
  --cb-black: #f9fafb;
  --primary: #6366f1;
  --live: #f43f5e;
  --text-inverse: #0f172a;
  --skeleton-base: #1f2937;
  --skeleton-shine: #374151;
  --cb-black: #f9fafb;
  --cb-yellow: #FBC000;
  --cb-blue: #5BA4CF;
  --cb-red-body: #E85D5D;
  --cb-red-shadow: #A84444;
}

/* Cookie consent banner uses theme tokens */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-3);
  color: var(--text-primary);
  padding: 14px 20px;
  z-index: 9999;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--border);
}
.cookie-consent-banner a { color: var(--warning); text-decoration: underline; }

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-body);
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--duration-normal) var(--ease-in-out),
              color var(--duration-normal) var(--ease-in-out);
}
a { color: var(--accent); text-decoration: none; transition: color var(--duration-fast); }
a:hover { color: var(--accent-hover); }
::selection { background: rgba(var(--accent-rgb), 0.15); color: var(--text-primary); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Focus Ring ────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; border-radius: var(--radius-sm); }

/* ── Utility Classes ───────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-start { text-align: left; }
.text-center { text-align: center; }
.text-end { text-align: right; }

.d-flex { display: flex; }
.flex-center { justify-content: center; align-items: center; }
.flex-between { justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--space-6); }
@media(max-width:768px) { .container { padding: 0 var(--space-4); } }

.aspect-16x9 { position: relative; width: 100%; padding-bottom: 56.25%; }
.aspect-16x9 > * { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.truncate-1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.glass-bg {
  background: var(--bg-nav);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* ── NAVBAR ────────────────────────────────────────────────── */
.navbar-cricbun {
  background: var(--bg-nav) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  min-height: 64px;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background var(--duration-normal) var(--ease-in-out);
}
.navbar-cricbun .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-cricbun .cricbun-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-cricbun .navbar-nav { gap: 2px; }
.navbar-cricbun .nav-link {
  color: var(--text-secondary) !important;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-3) !important;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}
.navbar-cricbun .nav-link:hover,
.navbar-cricbun .nav-link:focus {
  color: var(--text-primary) !important;
  background: rgba(var(--accent-rgb), 0.06) !important;
}
.navbar-cricbun .nav-link.active {
  color: var(--accent) !important;
  background: rgba(var(--accent-rgb), 0.08) !important;
  font-weight: 600;
}

/* Nav icon buttons */
.nav-icon-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.15rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}
.nav-icon-btn:hover { background: rgba(var(--accent-rgb), 0.08); color: var(--text-primary); }

/* Nav dropdowns */
.navbar-cricbun .dropdown-menu {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  margin-top: var(--space-2);
}
.navbar-cricbun .dropdown-item {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  transition: all var(--duration-fast);
}
.navbar-cricbun .dropdown-item:hover {
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--text-primary);
}

/* Mega menu for dropdowns */
.navbar-cricbun .dropdown-menu .mega-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  padding: var(--space-3);
}
.navbar-cricbun .mega-menu-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}
.navbar-cricbun .mega-menu-item a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
  display: block;
  transition: color var(--duration-fast);
}
.navbar-cricbun .mega-menu-item a:hover {
  color: var(--accent);
}

/* Mobile nav */
@media(max-width:991.98px) {
  .navbar-cricbun .navbar-collapse {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: var(--space-3);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .navbar-cricbun .nav-link { padding: var(--space-3) !important; }
  .navbar-cricbun .dropdown-menu {
    box-shadow: none;
    border: none;
    padding-left: var(--space-4);
    background: transparent;
  }
}

/* ── LIVE SCORE TICKER ─────────────────────────────────────── */
.live-ticker {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: var(--text-sm);
  font-weight: 500;
  position: relative;
  z-index: 999;
  box-shadow: var(--shadow-sm);
}
.live-ticker-inner {
  display: inline-flex;
  gap: 40px;
  animation: ticker-scroll 40s linear infinite;
}
.live-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.live-ticker-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
  box-shadow: 0 0 8px rgba(255,255,255,0.8);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}
.live-ticker:hover .live-ticker-inner {
  animation-play-state: paused;
}

/* ── BREADCRUMB ────────────────────────────────────────────── */
.cb-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.cb-breadcrumb a { color: var(--text-secondary); }
.cb-breadcrumb a:hover { color: var(--accent); }
.cb-breadcrumb .sep { color: var(--text-muted); }

/* ── PAGE HEADER ────────────────────────────────────────────── */
.page-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: var(--space-6) 0;
  margin-bottom: var(--space-6);
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 80%);
  opacity: 0.3;
}
.page-header h1 {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

/* ── MATCH CARDS (Cricinfo Style) ─────────────────────────── */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.match-card:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.match-card.live {
  border-top: 3px solid var(--live);
}
.match-card .match-status-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.match-card .match-status-badge.status-live {
  background: rgba(244, 63, 94, 0.1);
  color: var(--live);
}
.match-card .match-status-badge.status-upcoming {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}
.match-card .match-status-badge.status-completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.match-card .match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.match-card .match-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.match-card .team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.match-card .team-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
}
.match-card .team-score {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.match-card .match-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-light);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 500;
}
.match-card .match-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── SECTION HEADERS ───────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}
.section-title {
  font-size: var(--text-xl);
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  letter-spacing: -0.02em;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.25;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 4px rgba(var(--accent-rgb), 0.1);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.25);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover {
  background: rgba(var(--accent-rgb), 0.05);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: rgba(var(--accent-rgb), 0.05);
  color: var(--text-primary);
}
.btn-sm { padding: 6px 14px; font-size: var(--text-xs); border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: var(--text-base); border-radius: var(--radius-lg); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #e11d48; color: #fff; transform: translateY(-1px); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; color: #fff; transform: translateY(-1px); }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #d97706; color: #fff; transform: translateY(-1px); }

/* ── BADGES ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-live { background: var(--danger); color: #fff; box-shadow: 0 0 8px rgba(var(--danger-rgb), 0.3); }
.badge-upcoming { background: rgba(var(--warning-rgb), 0.12); color: var(--warning); }
.badge-completed { background: rgba(var(--success-rgb), 0.12); color: var(--success); }
.badge-format { background: rgba(var(--accent-rgb), 0.08); color: var(--accent); }
.badge-series { background: rgba(6, 182, 212, 0.1); color: var(--info); }

/* Badge variants */
.badge-primary { background: var(--accent); color: #fff; }
.badge-secondary { background: rgba(148, 163, 184, 0.15); color: var(--text-secondary); }
.badge-success { background: var(--success); color: #fff; }
.badge-danger { background: var(--danger); color: #fff; }
.badge-warning { background: var(--warning); color: #fff; }
.badge-info { background: var(--info); color: #fff; }

/* ── HERO (Home) ────────────────────────────────────────────── */
.cb-hero {
  background: radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
  padding: var(--space-12) 0;
  position: relative;
}
.cb-hero-title {
  font-size: clamp(2.25rem, 5vw + 1rem, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}
.cb-hero-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

/* ── STAT CARDS ─────────────────────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: var(--border);
  transition: background var(--duration-normal);
}
.stat-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.stat-card:hover::before {
  background: var(--accent);
}
.stat-card .stat-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-card .stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── TABLES (Data) ──────────────────────────────────────────── */
.data-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
  margin-bottom: var(--space-6);
}
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
}
.data-table thead th {
  background: var(--surface-2);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table tbody td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  vertical-align: middle;
  transition: background var(--duration-fast);
}
.data-table tbody tr:hover td { background: var(--surface-2); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:focus-within { outline: 2px solid var(--accent); }

/* ── CARDS (Content) ───────────────────────────────────────── */
.cb-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
}
.cb-card:hover { box-shadow: var(--shadow-card); }
.cb-card-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
}
.cb-card-header h5, .cb-card-header h6 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }
.cb-card-body { padding: var(--space-6); }
.cb-card-body-compact { padding: var(--space-4); }
.cb-card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

/* ── LIST ITEMS ────────────────────────────────────────────── */
.list-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--duration-fast);
}
.list-item:hover { background: var(--surface-2); }
.list-item:last-child { border-bottom: none; }

/* ── AVATARS ────────────────────────────────────────────────── */
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-muted);
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--border);
}

/* ── TABS ───────────────────────────────────────────────────── */
.cb-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--border);
}
.cb-tab {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
}
.cb-tab:hover { color: var(--text-primary); }
.cb-tab.active {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* ── FORMS ─────────────────────────────────────────────────── */
.form-control, .form-select {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-input);
  background-clip: padding-box;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast) ease-in-out, box-shadow var(--duration-fast) ease-in-out;
}
.form-control:focus, .form-select:focus {
  border-color: var(--border-focus);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}
.form-label {
  display: inline-block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

/* ── SKELETON LOADING ──────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-shine) 50%, var(--skeleton-base) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text.w-75 { width: 75%; }
.skeleton-text.w-50 { width: 50%; }
.skeleton-thumb { width: 100%; height: 180px; border-radius: var(--radius-md); }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.3s var(--ease-out) forwards; }

/* ── NEWSLETTER ─────────────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--accent) 0%, #4338ca 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-6);
  text-align: center;
  color: #fff;
  margin: var(--space-10) 0;
  box-shadow: var(--shadow-lg);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.cb-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: var(--space-12) 0 var(--space-6);
  margin-top: var(--space-12);
}
.cb-footer-divider { border: none; border-top: 1px solid var(--border); margin: var(--space-8) 0 var(--space-4); }
.cb-footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-xs); color: var(--text-muted); }

/* ── SEARCH OVERLAY ────────────────────────────────────────── */
.search-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-in-out);
}
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-input-wrap {
  width: 100%;
  max-width: 600px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.search-input {
  width: 100%;
  padding: 16px 24px;
  border: none;
  font-size: var(--text-lg);
  background: transparent;
  color: var(--text-primary);
  outline: none;
}
.search-results { max-height: 400px; overflow-y: auto; border-top: 1px solid var(--border); }
.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  color: var(--text-primary);
  text-decoration: none;
  transition: background var(--duration-fast);
}
.search-result-item:hover { background: var(--surface-2); }

/* ── CB LOGO ──────────────────────────────────────────────── */
.cricbun-logo-link { display: block; text-decoration: none; width: 180px; height: 55px; position: relative; overflow: visible; }
.cb-logo-master {
  position: absolute;
  width: 520px; height: 120px;
  top: 0; left: 0;
  transform: scale(0.35);
  transform-origin: top left;
  display: flex;
  z-index: 0;
  align-items: flex-end;
  justify-content: flex-start;
  font-family: var(--font-logo);
  -webkit-font-smoothing: antialiased;
}
.cb-swoosh-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.cb-swoosh-graphic {
  position: absolute; left: 125px; top: 90px; width: 380px; height: 90px;
  background-color: var(--cb-yellow);
  clip-path: path("M 0 55 Q 180 65 360 0 L 360 22 Q 180 90 0 55 Z");
}
.cb-text-layer {
  display: flex; align-items: flex-end; z-index: 10; position: relative; bottom: 15px;
  font-size: 115px; font-weight: 1000; line-height: 0.65; letter-spacing: -4px;
}
.cb-char-black { color: var(--cb-black); }
.cb-char-blue { color: var(--cb-blue); position: relative; margin-left: 2px; }
.cb-i-block { width: 28px; height: 90px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; margin: 0 3px; }
.cb-stick { width: 25px; height: 50px; background-color: var(--cb-black); border-radius: 10px 10px 0 0; }
.cb-ball-container { position: relative; margin-bottom: 6px; z-index: 10; transform: rotate(-43deg); animation: spin-cricket-ball 3s linear infinite; }
.cb-ball-body {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #ffffff 0%, #ff9999 15%, var(--cb-red-body) 50%, var(--cb-red-shadow) 100%);
  box-shadow: 2px 3px 6px rgba(0,0,0,0.4);
  position: relative;
}
.cb-seam-ridge { border: 3px solid rgba(255,255,255,0.9); top: -1px; left: -1px; right: -1px; bottom: -1px; transform: scaleX(0.38); }
.cb-seam-groove { border: 1px solid rgba(150,0,0,0.5); transform: scaleX(0.38); }
.cb-seam-stitch { border: 1.5px dashed rgba(255,255,255,0.9); transform: scaleX(0.38); }

@keyframes spin-cricket-ball {
  from { transform: rotate(-43deg); }
  to { transform: rotate(317deg); }
}

/* Mobile logo adjustments (matching cricbun.com) */
@media (max-width: 480px) {
  .cricbun-logo-link { width: 140px; }
  .cb-logo-master { transform: scale(0.28); }
}

/* Lightbox */
.lightbox-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9); backdrop-filter: blur(5px);
  z-index: 3000; display: none; align-items: center; justify-content: center;
}
.lightbox-overlay.open { display: flex; }

/* ── FLASH MESSAGES ────────────────────────────────────────── */
.cb-flash {
  padding: 12px 0;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.cb-flash-error {
  background: rgba(var(--danger-rgb), 0.06);
  border-color: var(--danger);
  color: var(--danger);
}
.cb-flash-success {
  background: rgba(var(--success-rgb), 0.06);
  border-color: var(--success);
  color: var(--success);
}

/* ── FOOTER ELEMENTS ──────────────────────────────────────── */
.cb-footer h5 {
  font-size: var(--text-base);
  font-weight: 800;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}
.cb-footer h6 {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
}
.cb-footer a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: color var(--duration-fast);
}
.cb-footer a:hover { color: var(--accent); }
.cb-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.cb-footer-desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.cb-footer-newsletter {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.cb-footer-newsletter .form-control {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  font-size: var(--text-sm);
}
.cb-footer-newsletter .btn {
  padding: 10px 20px;
  flex-shrink: 0;
}
.cb-footer-social {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.cb-social-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--duration-fast) var(--ease-out);
}
.cb-social-link:hover {
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.2);
  transform: translateY(-2px);
}
.cb-footer-tagline {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin: 0;
}
.cb-footer-legal {
  display: flex;
  gap: var(--space-6);
}
.cb-footer-legal a {
  color: var(--text-muted);
  font-size: var(--text-xs);
  transition: color var(--duration-fast);
}
.cb-footer-legal a:hover { color: var(--accent); }
/* ── SECTION VARIANTS ──────────────────────────────────────── */
.cb-section-alt { background: var(--bg-section-alt); }
.cb-placeholder-text { color: var(--text-secondary); font-size: var(--text-sm); }

/* ── NEWSLETTER FORM ──────────────────────────────────────── */
.cb-newsletter-form {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}
.cb-newsletter-input {
  max-width: 320px;
  padding: 14px 20px;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.cb-newsletter-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
  outline: none;
}
.cb-newsletter-btn { padding: 14px 28px; }

/* ── STAT CARD COLOR ACCENTS ──────────────────────────────── */
.cb-stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal), transform var(--duration-normal);
}
.cb-stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cb-stat-card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) var(--space-5);
}
.cb-stat-card .card-footer {
  background: transparent;
  border-top: 1px solid var(--border);
  padding: var(--space-3) var(--space-4);
}

/* ── EMPTY STATE ──────────────────────────────────────────── */
.cb-empty {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
/* ── ERROR PAGES ──────────────────────────────────────────── */
.cb-error-page { background: var(--bg-body); }

/* ── DETAIL PAGE UTILITIES ────────────────────────────────── */
.cb-progress-lg { height: 24px; }
.cb-over-block { min-width: 50px; }
.cb-wl-badge {
  width: 22px;
  height: 22px;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.cb-ball-badge { min-width: 44px; }

/* ── NEWS CARD STYLES ─────────────────────────────────────── */
.cb-news-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.cb-news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  transition: box-shadow var(--duration-normal), transform var(--duration-normal);
}
.cb-news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cb-news-body {
  padding: var(--space-4);
}
.cb-news-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.cb-news-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}
.cb-news-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast);
}
.cb-news-title a:hover { color: var(--accent); }

/* ── PLAYER & TEAM CARDS ──────────────────────────────────── */
.cb-entity-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.cb-entity-avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}
.cb-entity-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: var(--space-5);
  text-align: center;
  transition: box-shadow var(--duration-normal), transform var(--duration-normal);
}
.cb-entity-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── ARTICLE DETAIL STYLES ────────────────────────────────── */
.cb-article-meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.cb-featured-img {
  max-height: 400px;
  object-fit: cover;
}
.cb-article-body {
  line-height: 1.8;
  font-size: 1.05rem;
}
.cb-article-body p { margin-bottom: var(--space-4); }
.cb-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--space-4) 0;
}
.cb-related-category {
  color: var(--text-secondary);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cb-related-time {
  color: var(--text-secondary);
  font-size: 0.7rem;
  margin-top: 4px;
}
.cb-news-meta-sm { font-size: 0.75rem; }
.cb-skeleton-bg { background: var(--surface-2); }

/* ── PLAYER & TEAM AVATARS ────────────────────────────────── */
.cb-player-avatar {
  width: 56px;
  height: 56px;
  font-size: var(--text-lg);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  color: var(--text-secondary);
}
.cb-team-avatar {
  width: 64px;
  height: 64px;
  font-size: 1.25rem;
  background: var(--surface-2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.cb-team-country { font-size: 0.8rem; }
.cb-player-avatar-lg {
  background: var(--surface-2);
  font-size: var(--text-xl);
  color: var(--text-secondary);
}
.cb-team-avatar-lg {
  background: var(--surface-2);
  color: var(--accent);
  font-size: var(--text-xl);
}
.cb-author-avatar-lg {
  width: 80px;
  height: 80px;
  background: var(--surface-2);
  font-size: var(--text-xl);
  color: var(--text-secondary);
}

/* ── PHOTO & MEDIA STYLES ─────────────────────────────────── */
.cb-photo-thumb {
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--duration-normal);
}
.cb-photo-thumb:hover { transform: scale(1.03); }
.cb-podcast-avatar { background: var(--surface-2); }
.cb-audio-player { height: 30px; }

/* ── CALENDAR STYLES ──────────────────────────────────────── */
.cb-cal-cell { min-height: 100px; }
.cb-cal-match { font-size: 11px; }
.cb-cal-more { font-size: 10px; }

/* ── COMMENTARY ───────────────────────────────────────────── */
.cb-commentary-scroll {
  max-height: 600px;
  overflow-y: auto;
}

/* ── VIDEO THUMBNAILS ─────────────────────────────────────── */
.cb-video-thumb {
  aspect-ratio: 16/9;
  background: var(--surface-2);
}


/* ── UTILITY ──────────────────────────────────────────────── */
.cb-logo-center { margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE: ESPNcricinfo-style High-Density Layout
   ═══════════════════════════════════════════════════════════════ */

/* ── Live Score Ticker Strip ─────────────────────────────────── */
.ci-ticker-header-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border-light);
  background: var(--surface-1);
}
.ci-ticker-title {
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  border-right: 1px solid var(--border);
  padding-right: var(--space-4);
}
.ci-ticker-filters {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.ci-ticker-filters::-webkit-scrollbar {
  display: none;
}
.ci-ticker-filter {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast) ease;
}
.ci-ticker-filter:hover {
  color: var(--text-primary);
  background: var(--surface-2);
}
.ci-ticker-filter.active {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
}
.ci-ticker-inner.grabbing {
  cursor: grabbing;
  user-select: none;
  transition: none;
}
.flash-update {
  animation: flash-animation 1.5s ease-out;
}
@keyframes flash-animation {
  0% { background-color: rgba(var(--accent-rgb), 0.25); }
  100% { background-color: transparent; }
}

.ci-ticker {
  position: relative;
  background: var(--bg-body);
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow: visible;
}

.ci-ticker-track-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.ci-ticker-inner {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  transition: transform 0.4s var(--ease-out);
  will-change: transform;
  min-height: 160px;
}

.ci-ticker-loading, .ci-ticker-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 130px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  padding: var(--space-4);
}

.ci-ticker-card {
  flex: 0 0 280px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--duration-normal) ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ci-ticker-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--accent-rgb), 0.3);
  text-decoration: none;
  color: var(--text-primary);
}

.ci-ticker-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: 10px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.ci-ticker-card-series {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.ci-ticker-card-format {
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 9px;
  line-height: 1;
}

.ci-format-test, .ci-format-fc {
  background: rgba(var(--danger-rgb), 0.08);
  color: var(--danger);
  border: 1px solid rgba(var(--danger-rgb), 0.15);
}

.ci-format-t20, .ci-format-t20i, .ci-format-odi {
  background: var(--surface-3);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.ci-ticker-card-body {
  padding: var(--space-3) var(--space-3) var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.ci-ticker-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  line-height: 1.4;
}

.ci-ticker-team-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ci-ticker-team-flag {
  line-height: 1;
  width: 22px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ci-ticker-team-flag-img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.ci-ticker-team-flag-fallback {
  font-size: 14px;
  line-height: 1;
}

.ci-ticker-team-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.ci-ticker-team-name.active-batting {
  font-weight: 700;
  color: var(--text-primary);
}

.ci-ticker-team-right {
  text-align: right;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.ci-ticker-team-right.muted-score {
  font-weight: 500;
  color: var(--text-secondary);
}

.ci-ticker-team-overs-val {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 3px;
}

.ci-ticker-card-note {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ci-note-live {
  color: var(--danger);
}

.ci-note-completed {
  color: #1d4ed8;
}

[data-bs-theme="dark"] .ci-note-completed {
  color: #60a5fa;
}

.ci-note-upcoming {
  color: var(--warning);
}

.ci-ticker-card-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border-light);
  padding: 6px var(--space-3);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.ci-ticker-card-action {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ci-ticker-card-action:hover {
  color: var(--accent);
}

.ci-ticker-nav {
  position: absolute;
  top: 60%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #007a6a;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 122, 106, 0.35);
  z-index: 10;
  transition: all var(--duration-fast) ease;
  font-size: 16px;
}

.ci-ticker-nav:hover {
  background: #006053;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 122, 106, 0.45);
}

.ci-ticker-prev {
  left: -18px;
}

.ci-ticker-next {
  right: -18px;
}

/* ── Main Container & 3-Column Grid ──────────────────────────── */
.ci-main {
  padding-top: var(--space-5);
  padding-bottom: var(--space-10);
}

.ci-grid {
  display: grid;
  grid-template-columns: 220px 1fr 300px;
  gap: var(--space-5);
  align-items: start;
}

/* ── Sidebar Widgets ──────────────────────────────────────────── */
.ci-sidebar-left, .ci-sidebar-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: sticky;
  top: 80px;
}

.ci-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ci-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.ci-widget-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  padding: var(--space-3) var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-light);
}
.ci-widget-header .ci-widget-title {
  padding: 0;
  border-bottom: none;
}

.ci-widget-link {
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.ci-widget-link:hover { text-decoration: underline; }

.ci-widget-placeholder {
  padding: var(--space-5);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ── Quick Links ──────────────────────────────────────────────── */
.ci-quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ci-quick-links li { border-bottom: 1px solid var(--border-light); }
.ci-quick-links li:last-child { border-bottom: none; }
.ci-quick-links a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--duration-fast) ease;
}
.ci-quick-links a:hover {
  background: var(--bg-card-hover);
  color: var(--accent);
}
.ci-quick-links a i {
  font-size: 14px;
  color: var(--text-muted);
  width: 20px;
  text-align: center;
}
.ci-quick-links a:hover i { color: var(--accent); }

/* ── Series List ──────────────────────────────────────────────── */
.ci-series-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ci-series-list li { border-bottom: 1px solid var(--border-light); }
.ci-series-list li:last-child { border-bottom: none; }
.ci-series-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-size: 13px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: background var(--duration-fast) ease;
}
.ci-series-list a:hover { background: var(--bg-card-hover); }
.ci-series-format {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-3);
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ── Trending Tags ──────────────────────────────────────────── */
.ci-trending-tags {
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.ci-tag {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), rgba(var(--accent-rgb), 0.04));
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: all var(--duration-fast) ease;
}
.ci-tag:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Center: Hero Story ──────────────────────────────────────── */
.ci-center {
  min-width: 0; /* prevent overflow */
}

.ci-hero-story {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-5);
}

.ci-hero-link {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) ease, transform var(--duration-normal) ease;
}
.ci-hero-link:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: var(--text-primary);
  text-decoration: none;
}

.ci-hero-img {
  width: 100%;
  height: 260px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-3);
  position: relative;
}
.ci-hero-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
}

.ci-hero-body {
  padding: var(--space-4) var(--space-5);
}

.ci-hero-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.ci-hero-title {
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 var(--space-2);
  color: var(--text-primary);
}
.ci-hero-link:hover .ci-hero-title { color: var(--accent); }

.ci-hero-excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ci-hero-meta {
  display: flex;
  gap: var(--space-3);
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Section Bar ──────────────────────────────────────────────── */
.ci-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--accent);
  margin-bottom: var(--space-3);
}

.ci-section-title {
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
}

.ci-section-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ci-section-link:hover { text-decoration: underline; }

/* ── News Feed Items ──────────────────────────────────────────── */
.ci-news-feed {
  display: flex;
  flex-direction: column;
}

.ci-news-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text-primary);
  transition: background var(--duration-fast) ease;
}
.ci-news-item:hover {
  color: var(--text-primary);
  text-decoration: none;
}
.ci-news-item:last-child { border-bottom: none; }

.ci-news-item-body { flex: 1; min-width: 0; }

.ci-news-item-title {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 var(--space-1);
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ci-news-item:hover .ci-news-item-title { color: var(--accent); }

.ci-news-item-excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ci-news-item-meta {
  display: flex;
  gap: var(--space-3);
  font-size: 12px;
  color: var(--text-muted);
  align-items: center;
}

.ci-news-item-cat {
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.3px;
}

.ci-news-item-thumb {
  flex: 0 0 120px;
  height: 80px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--surface-3);
}

.ci-news-item-skeleton {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-light);
}
.ci-hero-story-skeleton {
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* ── Match Row (Upcoming / Results) ──────────────────────────── */
.ci-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--duration-fast) ease;
  gap: var(--space-3);
}
.ci-match-row:hover {
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  text-decoration: none;
}

.ci-match-row-teams {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.ci-match-row-team {
  font-weight: 700;
  font-size: var(--text-sm);
}

.ci-match-row-score {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.ci-match-row-vs {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.ci-match-row-meta {
  flex-shrink: 0;
}

/* ── Ranking Widget ──────────────────────────────────────────── */
.ci-ranking-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  padding: 0;
}

.ci-tab {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border: none;
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  transition: all var(--duration-fast) ease;
  border-bottom: 2px solid transparent;
}
.ci-tab:hover { color: var(--text-primary); }
.ci-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.04);
}

.ci-ranking-body {
  padding: 0;
  min-height: 80px;
}

.ci-ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ci-ranking-table thead th {
  padding: var(--space-2) var(--space-3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.ci-ranking-table thead th:last-child { text-align: right; }
.ci-ranking-table tbody td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border-light);
}
.ci-ranking-table tbody tr:last-child td { border-bottom: none; }
.ci-ranking-table tbody tr:hover { background: var(--bg-card-hover); }

.ci-rank-num {
  font-weight: 800;
  color: var(--text-muted);
  width: 28px;
  font-size: 12px;
}
.ci-rank-name {
  font-weight: 600;
  color: var(--text-primary);
}
.ci-rank-rating {
  text-align: right;
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
}

/* ── Video Placeholder ────────────────────────────────────────── */
.ci-video-placeholder {
  padding: var(--space-8) var(--space-4);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.ci-video-placeholder i { font-size: 2rem; }

/* ── Newsletter Widget ────────────────────────────────────────── */
.ci-newsletter-widget {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.06), rgba(var(--accent-rgb), 0.02));
}
.ci-newsletter-desc {
  padding: 0 var(--space-4);
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.4;
}
.ci-newsletter-form-sm {
  padding: 0 var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.ci-newsletter-input-sm {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--duration-fast) ease;
}
.ci-newsletter-input-sm:focus { border-color: var(--accent); }
.ci-newsletter-btn-sm {
  padding: var(--space-2) var(--space-4);
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--duration-fast) ease;
}
.ci-newsletter-btn-sm:hover { background: var(--accent-hover); }

/* ── Empty State ──────────────────────────────────────────────── */
.ci-empty-state {
  padding: var(--space-5) var(--space-4);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.mt-4 { margin-top: var(--space-5); }


/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media(max-width:768px) {
  .hero-section { padding: var(--space-8) 0; }
  .hero-section h1 { font-size: 1.75rem; }
  .newsletter-section { padding: var(--space-8) var(--space-4); border-radius: var(--radius-lg); }
  .cb-card-body { padding: var(--space-4); }
  .match-card { padding: var(--space-4); }
  .page-header { padding: var(--space-4) 0; }
  .cb-footer { padding: var(--space-8) 0 var(--space-4); }
  .cb-footer-bottom { flex-direction: column; gap: var(--space-2); text-align: center; }
  .cb-footer-legal { justify-content: center; }
  .cb-footer-newsletter { flex-direction: column; }
  .cb-newsletter-input { max-width: 100%; }
  .cb-newsletter-form { flex-direction: column; align-items: center; }
  .ci-ticker-card { flex: 0 0 240px; }
  .ci-news-item-thumb { flex: 0 0 80px; height: 60px; }
}

@media(max-width:480px) {
  .hero-section h1 { font-size: 1.5rem; }
  .match-card .match-teams { flex-direction: column; text-align: center; }
  .match-card .team-score { font-size: var(--text-lg); }
  .cb-hero-title { font-size: 1.5rem; }
  .ci-ticker-card { flex: 0 0 220px; }
  .ci-ticker-nav { display: none; }
  .ci-match-row { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
}

/* ── CRICBULL MATCHES LIST PAGE (Cricbuzz-Style) ──────────────── */
.cb-match-list-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.cb-series-group {
  margin-bottom: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
}

.cb-series-header {
  background: var(--surface-2);
  padding: 10px var(--space-4);
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cb-match-row-card {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--duration-fast) ease;
}

.cb-match-row-card:last-child {
  border-bottom: none;
}

.cb-match-row-card:hover {
  background: var(--bg-card-hover);
}

.cb-match-row-main-link {
  display: block;
  padding: var(--space-4) var(--space-4) var(--space-2);
  text-decoration: none;
  color: inherit;
}

.cb-match-row-main-link:hover {
  text-decoration: none;
  color: inherit;
}

.cb-match-row-header {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cb-live-pill {
  background: rgba(var(--danger-rgb), 0.08);
  color: var(--danger);
  border: 1px solid rgba(var(--danger-rgb), 0.15);
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
}

.cb-live-dot-pulsing {
  width: 5px;
  height: 5px;
  background: var(--danger);
  border-radius: 50%;
  display: inline-block;
  animation: cb-pulse 1.5s infinite;
}

@keyframes cb-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.cb-match-row-teams {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-2);
}

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

.cb-match-row-team-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cb-match-row-flag {
  width: 22px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cb-match-row-flag-img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--border-light);
}

.cb-match-row-flag-fallback {
  font-size: 13px;
}

.cb-match-row-team-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.cb-match-row-team-name.active-batting {
  font-weight: 700;
  color: var(--text-primary);
}

.cb-match-row-score {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
}

.cb-match-row-score.muted-score {
  font-weight: 500;
  color: var(--text-muted);
}

.cb-match-row-overs {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

.cb-match-row-note {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

.cb-note-live {
  color: var(--danger);
}

.cb-note-completed {
  color: #1d4ed8;
}

[data-bs-theme="dark"] .cb-note-completed {
  color: #60a5fa;
}

.cb-note-upcoming {
  color: var(--warning);
}

.cb-match-row-footer {
  padding: 8px var(--space-4);
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 16px;
  background: var(--surface-2);
}

.cb-match-row-action {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.cb-match-row-action:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ═══ LIVE SCORES PAGE (ls-*) ═══
   Cricbuzz-style live scores with tabs,
   series groupings, featured match card.
   ============================================================ */

.ls-page-header {
  background: linear-gradient(135deg,var(--accent),#2563eb);
  padding: 32px 0;
  color: #fff;
}

[data-bs-theme="dark"] .ls-page-header {
  background: linear-gradient(135deg,#1e293b,#0f172a);
}

.ls-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.ls-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
}

.ls-subtitle {
  font-size: 14px;
  margin: 4px 0 0;
  opacity: .85;
}

.ls-header-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--duration-fast);
}

.ls-header-btn:hover {
  background: rgba(255,255,255,.3);
  color: #fff;
}

/* ── Filter Bar ── */
.ls-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ls-filter-bar::-webkit-scrollbar { display: none; }

.ls-filter-pill {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.ls-filter-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ls-filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.ls-filter-divider {
  width: 1px;
  min-width: 1px;
  background: var(--border);
  margin: 4px 4px;
  align-self: stretch;
}

/* ── Tabs ── */
.ls-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  padding: 0;
  list-style: none;
}

.ls-tab-item { margin: 0; }

.ls-tab-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--duration-fast);
}

.ls-tab-link:hover {
  color: var(--accent);
}

.ls-tab-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.ls-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.ls-tab-link.active .ls-tab-count {
  background: var(--accent);
  color: #fff;
}

.ls-tab-content {
  min-height: 300px;
}

.ls-tab-pane {
  display: none;
}

.ls-tab-pane.active {
  display: block;
}

/* ── Featured Card ── */
.ls-featured-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  transition: transform var(--duration-med), box-shadow var(--duration-med);
}

.ls-featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
  color: #fff;
}

.ls-featured-bg {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0, rgba(255,255,255,.02) 40px, transparent 40px, transparent 80px);
  pointer-events: none;
}

.ls-featured-body {
  position: relative;
  padding: 28px 32px;
  z-index: 1;
}

.ls-featured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ls-featured-series {
  font-size: 13px;
  font-weight: 500;
  opacity: .8;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.ls-featured-live {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #ef4444;
  text-transform: uppercase;
}

.ls-featured-format {
  font-size: 12px;
  font-weight: 700;
  opacity: .7;
}

.ls-featured-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ls-featured-team {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.ls-featured-flag img {
  width: 36px;
  height: 24px;
  border-radius: 4px;
}

.ls-featured-flag .ls-team-flag-fallback,
.ls-featured-flag-fallback {
  font-size: 28px;
}

.ls-featured-team-name {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  width: 100%;
}

.ls-featured-score {
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ls-featured-overs {
  font-size: 12px;
  opacity: .7;
  font-weight: 500;
}

.ls-featured-vs {
  font-size: 14px;
  font-weight: 800;
  opacity: .5;
}

.ls-featured-note {
  text-align: center;
  font-size: 14px;
  opacity: .9;
  margin-bottom: 16px;
}

.ls-featured-cta {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  opacity: .7;
  transition: opacity var(--duration-fast);
}

.ls-featured-card:hover .ls-featured-cta {
  opacity: 1;
}

/* ── Series Groups ── */
.ls-series-group {
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-1);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: box-shadow var(--duration-med);
}

.ls-series-group:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.ls-series-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  cursor: default;
}

.ls-series-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ls-series-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.ls-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  text-transform: uppercase;
}

.ls-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
  animation: ls-dot-pulse 1.5s ease-in-out infinite;
}

.ls-live-dot-pulsing {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: ls-dot-pulse 1.5s ease-in-out infinite;
}

@keyframes ls-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.5); }
}

/* ── Match Cards ── */
.ls-match-card {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--duration-fast);
}

.ls-match-card:last-child {
  border-bottom: none;
}

.ls-match-card:hover {
  background: var(--bg-card-hover);
}

.ls-match-link {
  display: block;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
}

.ls-match-link:hover {
  color: inherit;
}

.ls-match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.ls-match-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.ls-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 4px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

[data-bs-theme="dark"] .ls-live-pill {
  background: rgba(220,38,38,.15);
}

.ls-completed-pill {
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
}

.ls-match-teams {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ls-match-team {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ls-team-flag img {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  display: block;
}

.ls-team-flag-fallback {
  font-size: 18px;
}

.ls-team-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ls-team-name.ls-batting {
  font-weight: 700;
}

.ls-batting::after {
  content: ' *';
  color: var(--accent);
}

.ls-team-score {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  white-space: nowrap;
}

.ls-score-muted {
  color: var(--text-muted);
  font-weight: 500;
}

.ls-team-overs {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.ls-match-note {
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
}

.ls-note-live { color: #dc2626; }
.ls-note-completed { color: #1d4ed8; }
.ls-note-upcoming { color: #d97706; }

[data-bs-theme="dark"] .ls-note-completed {
  color: #60a5fa;
}

/* ── Match Actions Row ── */
.ls-match-actions {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border-light);
  overflow: hidden;
}

.ls-action-btn {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  text-decoration: none;
  border-right: 1px solid var(--border-light);
  transition: all var(--duration-fast);
}

.ls-action-btn:last-child {
  border-right: none;
}

.ls-action-btn:hover {
  color: var(--accent);
  background: var(--bg-card-hover);
}

/* ── Empty State ── */
.ls-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.ls-empty-state p {
  font-size: 15px;
  margin: 0;
}

/* ── Score Flash Animations ── */
@keyframes ls-score-update {
  0% { background: rgba(79,70,229,.2); }
  100% { background: transparent; }
}

.ls-match-card.score-updated .ls-team-score {
  animation: ls-score-update 1s ease-out;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ls-header-content { flex-direction: column; align-items: flex-start; }
  .ls-featured-body { padding: 20px 16px; }
  .ls-featured-teams { gap: 12px; }
  .ls-featured-score { font-size: 20px; }
  .ls-tab-link { padding: 10px 14px; font-size: 13px; }
  .ls-match-link { padding: 12px 14px; }
  .ls-match-header { flex-wrap: wrap; }
  .ls-match-actions { flex-wrap: wrap; }
  .ls-action-btn { flex: auto; min-width: 80px; border-bottom: 1px solid var(--border-light); }
  .ls-featured-card { border-radius: 12px; }
}

@media (max-width: 480px) {
  .ls-series-header { padding: 10px 14px; }
  .ls-filter-pill { padding: 4px 12px; font-size: 12px; }
  .ls-team-name { font-size: 13px; }
  .ls-team-score { font-size: 14px; }
}

/* ═══ SCHEDULE PAGE (sc-*) ═══
   Cricbuzz-style schedule with month filter,
   series grouping, match cards.
   ============================================================ */

.sc-page-header {
  background: linear-gradient(135deg, #059669, #047857);
  padding: 32px 0;
  color: #fff;
}

[data-bs-theme="dark"] .sc-page-header {
  background: linear-gradient(135deg, #064e3b, #022c22);
}

.sc-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.sc-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
}

.sc-subtitle {
  font-size: 14px;
  margin: 4px 0 0;
  opacity: .85;
}

.sc-header-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--duration-fast);
}

.sc-header-btn:hover {
  background: rgba(255,255,255,.3);
  color: #fff;
}

/* ── Filter Bar ── */
.sc-filter-bar {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.sc-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.sc-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
  flex: 1;
}

.sc-filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: .5px;
}

.sc-filter-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--duration-fast);
}

.sc-filter-select:focus {
  border-color: var(--accent);
  outline: none;
}

.sc-filter-actions {
  justify-content: flex-end;
  min-width: auto;
}

.sc-clear-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--duration-fast);
}

.sc-clear-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* ── Results Count ── */
.sc-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sc-results-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ── Series Groups ── */
.sc-series-group {
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-1);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: box-shadow var(--duration-med);
}

.sc-series-group:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.sc-series-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.sc-series-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.sc-series-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
}

.sc-series-logo-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-muted);
}

.sc-series-info {
  min-width: 0;
}

.sc-series-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-series-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.sc-series-format {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.sc-format-test { background: #dbeafe; color: #1d4ed8; }
.sc-format-odi { background: #d1fae5; color: #059669; }
.sc-format-t20 { background: #fef3c7; color: #d97706; }
.sc-format-t10 { background: #ffe4e6; color: #e11d48; }
.sc-format-the-hundred { background: #e0e7ff; color: #4f46e5; }

[data-bs-theme="dark"] .sc-format-test { background: rgba(29,78,216,.2); }
[data-bs-theme="dark"] .sc-format-odi { background: rgba(5,150,101,.2); }
[data-bs-theme="dark"] .sc-format-t20 { background: rgba(217,119,6,.2); }
[data-bs-theme="dark"] .sc-format-t10 { background: rgba(225,29,72,.2); }
[data-bs-theme="dark"] .sc-format-the-hundred { background: rgba(79,70,229,.2); }

.sc-series-type {
  color: var(--text-muted);
  font-weight: 500;
}

.sc-series-dates {
  color: var(--text-muted);
}

.sc-series-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sc-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  text-transform: uppercase;
}

.sc-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
  animation: sc-dot-pulse 1.5s ease-in-out infinite;
}

@keyframes sc-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.5); }
}

.sc-view-series-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--duration-fast);
}

.sc-view-series-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Match Cards ── */
.sc-series-matches {
  border-bottom: none;
}

.sc-match-card {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--duration-fast);
}

.sc-match-card:last-child {
  border-bottom: none;
}

.sc-match-card:hover {
  background: var(--bg-card-hover);
}

.sc-match-link {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: inherit;
}

.sc-match-link:hover {
  color: inherit;
}

.sc-match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.sc-match-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.sc-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 4px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

[data-bs-theme="dark"] .sc-live-pill {
  background: rgba(220,38,38,.15);
}

.sc-completed-pill {
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
}

.sc-match-teams {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-match-team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.sc-team-flag img {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  display: block;
}

.sc-team-flag-fallback {
  font-size: 16px;
}

.sc-team-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-team-name.sc-batting {
  font-weight: 700;
}

.sc-batting::after {
  content: ' *';
  color: var(--accent);
}

.sc-match-vs {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 4px;
}

.sc-team-score {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  white-space: nowrap;
}

.sc-score-muted {
  color: var(--text-muted);
  font-weight: 500;
}

.sc-team-overs {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.sc-match-note {
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
}

.sc-note-live { color: #dc2626; }
.sc-note-completed { color: #1d4ed8; }
.sc-note-upcoming { color: #d97706; }

[data-bs-theme="dark"] .sc-note-completed {
  color: #60a5fa;
}

/* ── Match Actions ── */
.sc-match-actions {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border-light);
  overflow: hidden;
}

.sc-action-btn {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-2);
  text-decoration: none;
  border-right: 1px solid var(--border-light);
  transition: all var(--duration-fast);
}

.sc-action-btn:last-child {
  border-right: none;
}

.sc-action-btn:hover {
  color: var(--accent);
  background: var(--bg-card-hover);
}

/* ── Empty State ── */
.sc-empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.sc-empty-state i {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
  opacity: .3;
}

.sc-empty-state p {
  font-size: 15px;
  margin: 0 0 4px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .sc-header-content { flex-direction: column; align-items: flex-start; }
  .sc-filter-form { flex-direction: column; }
  .sc-filter-group { min-width: 100%; }
  .sc-filter-bar { padding: 14px; }
  .sc-series-header { flex-direction: column; align-items: flex-start; }
  .sc-series-header-right { width: 100%; justify-content: space-between; }
  .sc-match-link { padding: 12px 14px; }
  .sc-match-teams { flex-direction: column; gap: 6px; }
  .sc-match-vs { display: none; }
  .sc-match-actions { flex-wrap: wrap; }
  .sc-action-btn { flex: auto; min-width: 80px; }
}

@media (max-width: 480px) {
  .sc-series-header { padding: 12px 14px; }
  .sc-match-card { font-size: 13px; }
  .sc-team-name { font-size: 13px; }
  .sc-team-score { font-size: 14px; }
}

/* ── TABLET BREAKPOINT 1024px ───────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 var(--space-5); }
  .match-card { padding: var(--space-4); }
  .ci-sidebar-right { display: none; }
  .ci-grid { grid-template-columns: 1fr; }
}

/* ── DARK MODE: missing ls-/sc- overrides ────────────────────── */
[data-bs-theme="dark"] .ls-featured-card {
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

/* ── TOUCH TARGET SIZES (mobile) ──────────────────────────────── */
@media (max-width: 768px) {
  .ls-action-btn,
  .sc-action-btn,
  .nav-icon-btn,
  .ci-tab {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ── REDUCED MOTION ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══ HOMEPAGE NEW: FEATURED MATCH HERO ═══ */
.ci-hero-match {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-5);
  transition: box-shadow var(--duration-normal);
}
.ci-hero-match:hover {
  box-shadow: var(--shadow-lg);
}
.ci-hero-match-live {
  border-top: 3px solid var(--danger);
}
.ci-hero-match-link {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
  padding: var(--space-5);
}
.ci-hero-match-link:hover { color: var(--text-primary); text-decoration: none; }

.ci-hero-match-top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: 12px;
}
.ci-hero-match-series {
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ci-hero-match-format {
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 10px;
}
.ci-hero-match-live-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(var(--danger-rgb), 0.1);
  color: var(--danger);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.ci-hero-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--danger);
  animation: ci-pulse-dot 1.5s ease-in-out infinite;
}
@keyframes ci-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}
.ci-hero-match-upcoming-badge,
.ci-hero-match-result-badge {
  margin-left: auto;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}
.ci-hero-match-upcoming-badge {
  background: rgba(var(--warning-rgb), 0.1);
  color: var(--warning);
}
.ci-hero-match-result-badge {
  background: rgba(var(--success-rgb), 0.1);
  color: var(--success);
}

.ci-hero-match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.ci-hero-match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  min-width: 140px;
}
.ci-hero-match-flag {
  line-height: 1;
}
.ci-hero-match-flag img {
  width: 40px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border-light);
}
.ci-hero-match-teamname {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}
.ci-hero-match-score {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.ci-hero-match-overs {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.ci-hero-match-vs {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-muted);
}
.ci-hero-match-note {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.ci-hero-notes-live { color: var(--danger); }
.ci-hero-match-actions {
  text-align: center;
}
.ci-hero-match-cta {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.8;
  transition: opacity var(--duration-fast);
}
.ci-hero-match-link:hover .ci-hero-match-cta {
  opacity: 1;
}

/* ── Featured news thumbnail large ── */
.ci-news-thumb-lg {
  flex: 0 0 200px;
  height: 140px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--surface-3);
}
@media(max-width: 768px) {
  .ci-news-thumb-lg { flex: 0 0 120px; height: 90px; }
}
.ci-news-title-lg {
  font-size: var(--text-lg);
  font-weight: 800;
}

/* ── Live count badge ── */
.ci-live-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  margin-left: 4px;
}

/* ── Series Nav ── */
.ci-series-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
}
.ci-series-nav-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ci-series-nav-scroll::-webkit-scrollbar { display: none; }
.ci-series-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--duration-fast) ease;
}
.ci-series-btn:hover {
  color: var(--text-primary);
  background: var(--surface-2);
}
.ci-series-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.04);
}
.ci-series-live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--danger);
  margin-left: 5px;
  vertical-align: middle;
  animation: ci-pulse-dot 1.5s infinite;
}

/* ── Trending Players (sidebar) ── */
.ci-trending-players {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ci-trending-players li {
  border-bottom: 1px solid var(--border-light);
}
.ci-trending-players li:last-child { border-bottom: none; }
.ci-trending-players a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  color: var(--text-primary);
  transition: background var(--duration-fast) ease;
}
.ci-trending-players a:hover { background: var(--bg-card-hover); }
.ci-player-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.ci-player-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ci-player-name {
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ci-player-team {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Ranking panes (tab switching) ── */
.ci-ranking-pane {
  display: none;
}
.ci-ranking-pane.active {
  display: block;
}

/* ── Video grid (sidebar) ── */
.ci-video-grid {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.ci-video-card {
  display: flex;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity var(--duration-fast);
}
.ci-video-card:hover {
  color: var(--text-primary);
  opacity: 0.85;
}
.ci-video-thumb {
  flex: 0 0 80px;
  height: 56px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--surface-3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ci-video-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform var(--duration-fast);
}
.ci-video-card:hover .ci-video-play { transform: scale(1.1); }
.ci-video-duration {
  position: absolute;
  bottom: 3px;
  right: 3px;
  font-size: 9px;
  font-weight: 700;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 1px 4px;
  border-radius: 2px;
}
.ci-video-title {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ci-newsletter-trust {
  padding: 0 var(--space-4) var(--space-3);
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Flag fallback ── */
.cb-flag-fallback {
  font-size: 18px;
  line-height: 1;
}

/* ── Responsive tweaks for featured hero ── */
@media(max-width: 768px) {
  .ci-hero-match-team { min-width: 100px; }
  .ci-hero-match-teamname { font-size: var(--text-base); }
  .ci-hero-match-score { font-size: var(--text-xl); }
  .ci-hero-match-flag img { width: 30px; height: 20px; }
  .ci-hero-match-teams { gap: var(--space-3); }
  .ci-hero-match-link { padding: var(--space-4); }
}
@media(max-width: 480px) {
  .ci-hero-match-team { min-width: 80px; }
  .ci-series-btn { padding: 8px 14px; font-size: 12px; }
}

/* ═══ HOMEPAGE RESPONSIVE UPDATES ═══ */
@media(min-width: 1201px) {
  .ci-grid { grid-template-columns: 220px 1fr 300px; }
}
@media(max-width: 1200px) and (min-width: 769px) {
  .ci-grid { grid-template-columns: 1fr 280px; }
  .ci-sidebar-left { display: none; }
}
@media(max-width: 1024px) {
  .ci-sidebar-right { display: none; }
  .ci-grid { grid-template-columns: 1fr; }
}
@media(max-width: 768px) {
  .ci-grid { grid-template-columns: 1fr; }
  .ci-sidebar-left { display: none; }
  .ci-sidebar-right { position: static; order: 2; }
  .ci-ticker-card { flex: 0 0 240px; }
}
@media(max-width: 480px) {
  .ci-ticker-card { flex: 0 0 220px; }
  .ci-ticker-nav { display: none; }
}

/* ── MINI-SCOREBOARD STICKY BAR ──────────────────────────────── */
.cb-mini-scoreboard {
  position: sticky;
  top: 64px;
  z-index: 998;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: var(--text-sm);
}
.cb-mini-scoreboard .cb-mini-team {
  font-weight: 700;
  color: var(--text-primary);
  min-width: 80px;
}
.cb-mini-scoreboard .cb-mini-score {
  font-weight: 800;
  font-size: var(--text-base);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.cb-mini-scoreboard .cb-mini-vs {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
}
.cb-mini-scoreboard .cb-mini-link {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.cb-mini-scoreboard .cb-mini-link:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .cb-mini-scoreboard .cb-mini-team { min-width: 60px; font-size: var(--text-xs); }
  .cb-mini-scoreboard .cb-mini-score { font-size: var(--text-sm); }
}

/* ── BACK TO TOP BUTTON ──────────────────────────────────────── */
.cb-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-out);
}
.cb-back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.cb-back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .cb-back-to-top {
    transition: none;
  }
}

/* ── LAST UPDATED TIMESTAMP ─────────────────────────────────── */
.cb-last-updated {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.cb-last-updated i { font-size: 10px; }

/* ── COOKIE POLICY LINK ─────────────────────────────────────── */
.cookie-policy-link {
  color: var(--warning);
  text-decoration: underline;
}
[data-bs-theme="dark"] .cookie-policy-link {
  color: #fbbf24;
}

/* ── PRINT STYLES ─────────────────────────────────────────────── */
@media print {
  .navbar, .footer, .ci-ticker, .cb-flash, [data-search-toggle],
  .nav-icon-btn, .navbar-toggler, .ls-page-header, .sc-page-header,
  .ls-filter-bar, .ls-tabs, .cb-mini-scoreboard, .cb-back-to-top,
  .cb-last-updated, .cookie-consent-banner, #offlineBanner { display: none !important; }
  body { background: #fff; color: #000; }
  .container { max-width: 100%; padding: 0; }
  a { color: #000; text-decoration: underline; }
}
/* ── CSS ALIASES — unify ci-, ls-, sc- namespaces to cb- ──── */
/* Maps old/live/schedule namespace classes for visual consistency */

.cb-table,
.admin-table,
.ls-table,
.sc-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.cb-table th,
.admin-table th { text-align: left; font-weight: 600; color: var(--text-muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.cb-table td,
.admin-table td { padding: 10px 16px; border-bottom: 1px solid var(--border-light); }
.cb-table tbody tr:hover,
.admin-table tbody tr:hover { background: var(--bg-card-hover); }
.cb-table-wrap,
.admin-table-wrap { overflow-x: auto; }

.cb-badge,
.admin-badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); font-weight: 600; padding: 3px 10px; border-radius: var(--radius-full); }
.cb-badge-success,
.admin-badge-success { background: rgba(var(--success-rgb), 0.12); color: var(--success); }
.cb-badge-danger,
.admin-badge-danger { background: rgba(var(--danger-rgb), 0.12); color: var(--danger); }
.cb-badge-info,
.admin-badge-info { background: rgba(6, 182, 212, 0.1); color: var(--info); }
.cb-badge-warning,
.admin-badge-warning { background: rgba(var(--warning-rgb), 0.12); color: var(--warning); }
.cb-badge-secondary,
.admin-badge-secondary { background: rgba(var(--text-muted), 0.1); color: var(--text-secondary); }
.cb-badge-light,
.admin-badge-light { background: var(--surface-3); color: var(--text-secondary); }

.cb-card,
.admin-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.cb-card:hover,
.admin-card:hover { box-shadow: var(--shadow-card); }
.cb-card-header,
.admin-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border-light); }
.cb-card-body,
.admin-card-body { padding: 20px; }
.cb-card-body-compact { padding: 0; }

.cb-page-header { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: var(--space-6) 0; margin-bottom: var(--space-6); position: relative; }
.cb-breadcrumb { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) 0; font-size: var(--text-xs); color: var(--text-muted); }
.cb-breadcrumb a { color: var(--text-secondary); }
.cb-breadcrumb a:hover { color: var(--accent); }
.cb-breadcrumb .sep { color: var(--text-muted); }
.cb-breadcrumb [aria-current="page"] { color: var(--text-primary); font-weight: 600; }

/* ═══ ENHANCED COMPONENTS (Audit Fixes) ═══ */

/* ── Mega Menu Navigation ── */
.nav-item-has-mega { position: static; }
.mega-menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg-card); box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--border);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 1000; max-height: 70vh; overflow-y: auto;
}
.nav-item-has-mega:hover .mega-menu-panel,
.nav-item-has-mega:focus-within .mega-menu-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega-menu-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6); padding: var(--space-6) var(--space-8);
  max-width: 1280px; margin: 0 auto;
}
.mega-menu-section h4 {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); margin-bottom: var(--space-3); font-weight: 700;
}
.mega-menu-section ul { list-style: none; padding: 0; margin: 0; }
.mega-menu-section ul li { margin-bottom: var(--space-2); }
.mega-menu-section ul li a {
  color: var(--text-secondary); text-decoration: none; font-size: var(--text-sm);
  transition: all var(--duration-fast); display: block; padding: var(--space-1) 0;
}
.mega-menu-section ul li a:hover { color: var(--accent); padding-left: var(--space-2); }

/* ── Mobile Nav Toggle ── */
.mobile-nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: var(--space-2); border-radius: var(--radius-md);
  transition: all var(--duration-fast);
}
.mobile-nav-toggle:hover { background: rgba(var(--accent-rgb), 0.08); }
.mobile-nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text-primary);
  margin: 5px 0; transition: all var(--duration-normal); border-radius: 2px;
}
.mobile-nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-nav-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (max-width: 991.98px) {
  .mobile-nav-toggle { display: block; }
}

/* ── Commentary Ball Pills ── */
.ball-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 700; color: #fff; flex-shrink: 0;
}
.ball-pill-0 { background: var(--text-muted); }
.ball-pill-1 { background: #6b7280; }
.ball-pill-2 { background: #6b7280; }
.ball-pill-3 { background: #6b7280; }
.ball-pill-4 { background: var(--accent); }
.ball-pill-6 { background: #7c3aed; }
.ball-pill-w { background: var(--danger); }
.ball-pill-wd { background: var(--warning); font-size: 10px; }
.ball-pill-nb { background: var(--warning); font-size: 10px; }

/* ── Commentary Over Grouping ── */
.commentary-over-group {
  margin-bottom: var(--space-4); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
}
.commentary-over-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4); background: var(--surface-2);
  cursor: pointer; user-select: none; transition: all var(--duration-fast);
}
.commentary-over-header:hover { background: var(--surface-3); }
.commentary-over-header-left { display: flex; align-items: center; gap: var(--space-3); }
.commentary-over-number { font-weight: 700; font-size: var(--text-sm); color: var(--text-primary); }
.commentary-over-summary { display: flex; gap: var(--space-2); }
.commentary-over-runs { font-size: var(--text-xs); color: var(--text-secondary); }
.commentary-over-runs-wicket { color: var(--danger); font-weight: 600; }
.commentary-over-toggle { color: var(--text-muted); transition: all var(--duration-fast); }
.commentary-over-group.collapsed .commentary-over-toggle { transform: rotate(-90deg); }
.commentary-over-content { border-top: 1px solid var(--border); }
.commentary-over-group.collapsed .commentary-over-content { display: none; }
.commentary-ball-row {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-light);
}
.commentary-ball-row:last-child { border-bottom: none; }
.commentary-ball-info { display: flex; align-items: center; gap: var(--space-2); min-width: 80px; }
.commentary-ball-number { font-size: var(--text-xs); color: var(--text-muted); font-weight: 600; }
.commentary-ball-text { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.5; flex: 1; }
.commentary-ball-text strong { color: var(--text-primary); font-weight: 600; }

/* ── Commentary Filter Chips ── */
.commentary-filters {
  display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-4);
  padding: var(--space-3); background: var(--bg-card);
  border-radius: var(--radius-md); border: 1px solid var(--border);
}
.commentary-filter-chip {
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 500; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text-secondary);
  transition: all var(--duration-fast);
}
.commentary-filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.commentary-filter-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Over Jump Selector ── */
.over-jump-selector { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.over-jump-selector label { font-size: var(--text-sm); color: var(--text-secondary); font-weight: 500; }
.over-jump-selector select {
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary);
  font-size: var(--text-sm); cursor: pointer;
}

/* ── Responsive Table (Card on Mobile) ── */
@media (max-width: 768px) {
  .table-responsive-cards thead { display: none; }
  .table-responsive-cards, .table-responsive-cards tbody,
  .table-responsive-cards tr, .table-responsive-cards td { display: block; width: 100%; }
  .table-responsive-cards tr {
    margin-bottom: var(--space-3); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: var(--space-3); background: var(--bg-card);
  }
  .table-responsive-cards td {
    display: flex; justify-content: space-between; align-items: center;
    padding: var(--space-2) 0; border: none; text-align: right;
  }
  .table-responsive-cards td::before {
    content: attr(data-label); font-weight: 600; color: var(--text-secondary);
    text-align: left; padding-right: var(--space-4);
  }
}

/* ── Scorecard Innings Tabs ── */
.scorecard-innings-tabs {
  display: flex; gap: var(--space-1); margin-bottom: var(--space-4);
  border-bottom: 2px solid var(--border);
}
.scorecard-innings-tab {
  padding: var(--space-3) var(--space-5); font-size: var(--text-sm); font-weight: 600;
  color: var(--text-secondary); cursor: pointer; border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--duration-fast);
}
.scorecard-innings-tab:hover { color: var(--accent); }
.scorecard-innings-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Scorecard Enhancements ── */
.scorecard-dismissal { font-style: italic; color: var(--text-muted); font-size: var(--text-sm); }
.scorecard-milestone-50 { color: var(--success); font-weight: 700; }
.scorecard-milestone-100 { color: #ca8a04; font-weight: 700; }
.scorecard-milestone-duck { color: var(--danger); font-weight: 700; }
.scorecard-fow-row { background: var(--surface-2); font-size: var(--text-sm); color: var(--text-secondary); }
.scorecard-fow-row td { padding: var(--space-2) var(--space-3); font-style: italic; }
.scorecard-extras-row { background: var(--surface-1); font-weight: 600; }
.scorecard-total-row { background: var(--surface-2); font-weight: 700; font-size: var(--text-base); }
.scorecard-total-row td { padding: var(--space-3); }
.yet-to-bat {
  padding: var(--space-3) var(--space-4); background: var(--surface-2);
  border-radius: var(--radius-md); margin-bottom: var(--space-4); font-size: var(--text-sm);
}
.yet-to-bat strong { color: var(--text-primary); }
.yet-to-bat .player-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.yet-to-bat .player-list span {
  padding: var(--space-1) var(--space-3); background: var(--bg-card);
  border-radius: var(--radius-full); border: 1px solid var(--border); font-size: var(--text-xs);
}

/* ── Match Center Tabs ── */
.match-center-tabs {
  display: flex; gap: var(--space-1); margin-bottom: var(--space-5);
  border-bottom: 2px solid var(--border); overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  position: sticky; top: 64px; background: var(--bg-body); z-index: 50; padding-top: var(--space-2);
}
.match-center-tabs::-webkit-scrollbar { display: none; }
.match-center-tab {
  padding: var(--space-3) var(--space-5); font-size: var(--text-sm); font-weight: 600;
  color: var(--text-secondary); cursor: pointer; border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--duration-fast);
  white-space: nowrap;
}
.match-center-tab:hover { color: var(--accent); }
.match-center-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Match Header Enhanced ── */
.match-header-enhanced {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow-sm); margin-bottom: var(--space-5);
}
.match-header-teams {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4); align-items: center;
}
.match-header-team { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-align: center; }
.match-header-team-logo {
  width: 64px; height: 64px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-lg); font-weight: 700; color: #fff;
}
.match-header-team-name { font-size: var(--text-base); font-weight: 600; color: var(--text-primary); }
.match-header-team-score { font-size: var(--text-2xl); font-weight: 800; color: var(--text-primary); }
.match-header-team-overs { font-size: var(--text-sm); color: var(--text-muted); }
.match-header-vs { font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.match-header-info-bar {
  display: flex; justify-content: center; gap: var(--space-6); margin-top: var(--space-4);
  padding-top: var(--space-4); border-top: 1px solid var(--border);
  font-size: var(--text-sm); color: var(--text-secondary); flex-wrap: wrap;
}
.match-header-info-item { display: flex; align-items: center; gap: var(--space-2); }
.match-header-info-item strong { color: var(--text-primary); }
@media (max-width: 640px) {
  .match-header-teams { grid-template-columns: 1fr; gap: var(--space-3); }
  .match-header-vs { display: none; }
  .match-header-team-logo { width: 48px; height: 48px; font-size: var(--text-base); }
  .match-header-team-score { font-size: var(--text-xl); }
  .match-header-info-bar { flex-direction: column; gap: var(--space-2); text-align: center; }
}

/* ── Rankings Format/Category Tabs ── */
.rankings-format-tabs { display: flex; gap: var(--space-1); margin-bottom: var(--space-4); }
.rankings-format-tab {
  padding: var(--space-2) var(--space-5); font-size: var(--text-sm); font-weight: 600;
  color: var(--text-secondary); cursor: pointer; border: 1px solid var(--border);
  background: var(--bg-card); border-radius: var(--radius-md); transition: all var(--duration-fast);
}
.rankings-format-tab:hover { border-color: var(--accent); color: var(--accent); }
.rankings-format-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.rankings-category-tabs {
  display: flex; gap: var(--space-1); margin-bottom: var(--space-4);
  border-bottom: 2px solid var(--border);
}
.rankings-category-tab {
  padding: var(--space-2) var(--space-4); font-size: var(--text-sm); font-weight: 600;
  color: var(--text-secondary); cursor: pointer; border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--duration-fast);
}
.rankings-category-tab:hover { color: var(--accent); }
.rankings-category-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.rankings-toggle {
  display: inline-flex; border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; margin-bottom: var(--space-4);
}
.rankings-toggle button {
  padding: var(--space-2) var(--space-5); font-size: var(--text-sm); font-weight: 600;
  border: none; background: var(--bg-card); color: var(--text-secondary);
  cursor: pointer; transition: all var(--duration-fast);
}
.rankings-toggle button.active { background: var(--accent); color: #fff; }
.rank-change-up { color: var(--success); font-weight: 600; }
.rank-change-down { color: var(--danger); font-weight: 600; }
.rank-change-none { color: var(--text-muted); }

/* ── Series Sub-Navigation ── */
.series-subnav {
  display: flex; gap: var(--space-1); margin-bottom: var(--space-5);
  border-bottom: 2px solid var(--border); overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.series-subnav::-webkit-scrollbar { display: none; }
.series-subnav-tab {
  padding: var(--space-3) var(--space-5); font-size: var(--text-sm); font-weight: 600;
  color: var(--text-secondary); cursor: pointer; border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--duration-fast);
  white-space: nowrap;
}
.series-subnav-tab:hover { color: var(--accent); }
.series-subnav-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Series Header ── */
.series-header {
  display: flex; gap: var(--space-5); background: var(--bg-card);
  border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow-sm); margin-bottom: var(--space-5); align-items: center;
}
.series-header-logo {
  width: 80px; height: 80px; border-radius: var(--radius-md);
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-size: var(--text-2xl); font-weight: 700; color: var(--accent); flex-shrink: 0;
}
.series-header-info { flex: 1; }
.series-header-name { font-size: var(--text-2xl); font-weight: 800; color: var(--text-primary); margin-bottom: var(--space-2); }
.series-header-meta { display: flex; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-sm); color: var(--text-secondary); }
.series-header-meta-item { display: flex; align-items: center; gap: var(--space-2); }

/* ── Points Table Enhanced ── */
.points-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.points-table th {
  padding: var(--space-3); text-align: center; font-weight: 600; color: var(--text-secondary);
  border-bottom: 2px solid var(--border); font-size: var(--text-xs); text-transform: uppercase;
}
.points-table th:first-child { text-align: left; }
.points-table td { padding: var(--space-3); text-align: center; border-bottom: 1px solid var(--border); }
.points-table td:first-child { text-align: left; font-weight: 600; }
.points-table tr:hover { background: var(--bg-card-hover); }
.points-table-qualified { background: rgba(var(--success-rgb), 0.05); }
.points-table-qualified td:first-child { border-left: 3px solid var(--success); }
.form-guide { display: inline-flex; gap: 2px; }
.form-guide-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: var(--radius-sm);
  font-size: 10px; font-weight: 700; color: #fff;
}
.form-guide-dot-w { background: var(--success); }
.form-guide-dot-l { background: var(--danger); }
.form-guide-dot-t { background: var(--warning); }
.form-guide-dot-nr { background: var(--text-muted); }

/* ── Stats Leaders Cards ── */
.stats-leaders {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4); margin-bottom: var(--space-5);
}
.stats-leader-card {
  background: var(--bg-card); border-radius: var(--radius-md); padding: var(--space-4);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.stats-leader-card-title {
  font-size: var(--text-sm); font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: var(--space-3);
  padding-bottom: var(--space-2); border-bottom: 2px solid var(--border);
}
.stats-leader-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) 0; }
.stats-leader-rank { font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); width: 24px; }
.stats-leader-name { flex: 1; font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); }
.stats-leader-value { font-size: var(--text-sm); font-weight: 700; color: var(--accent); }

/* ── Key Moments Timeline ── */
.key-moments-timeline { position: relative; padding-left: var(--space-6); margin-bottom: var(--space-5); }
.key-moments-timeline::before {
  content: ''; position: absolute; left: 12px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.key-moment-item { position: relative; padding: var(--space-3) 0; display: flex; gap: var(--space-3); align-items: flex-start; }
.key-moment-dot {
  position: absolute; left: -30px; top: var(--space-4);
  width: 12px; height: 12px; border-radius: var(--radius-full);
  background: var(--accent); border: 2px solid var(--bg-body);
}
.key-moment-dot-wicket { background: var(--danger); }
.key-moment-dot-six { background: #7c3aed; }
.key-moment-dot-fifty { background: var(--success); }
.key-moment-dot-century { background: #ca8a04; }
.key-moment-over { font-size: var(--text-xs); color: var(--text-muted); font-weight: 600; min-width: 50px; }
.key-moment-text { font-size: var(--text-sm); color: var(--text-secondary); }
.key-moment-text strong { color: var(--text-primary); }

/* ── Win Probability Bar ── */
.win-probability-bar {
  display: flex; height: 32px; border-radius: var(--radius-full);
  overflow: hidden; margin-bottom: var(--space-4); box-shadow: var(--shadow-sm);
}
.win-probability-team {
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: 700; color: #fff; transition: width 0.5s ease;
}
.win-probability-team-a { background: var(--accent); }
.win-probability-team-b { background: #7c3aed; }
.win-probability-labels {
  display: flex; justify-content: space-between; font-size: var(--text-xs);
  color: var(--text-secondary); margin-bottom: var(--space-2);
}

/* ── Player Info Card ── */
.player-info-card {
  display: flex; gap: var(--space-5); background: var(--bg-card);
  border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow-sm); margin-bottom: var(--space-5);
}
.player-info-photo {
  width: 120px; height: 120px; border-radius: var(--radius-full);
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-size: var(--text-3xl); font-weight: 700; color: var(--accent); flex-shrink: 0; overflow: hidden;
}
.player-info-photo img { width: 100%; height: 100%; object-fit: cover; }
.player-info-details { flex: 1; }
.player-info-name { font-size: var(--text-2xl); font-weight: 800; color: var(--text-primary); margin-bottom: var(--space-1); }
.player-info-role { font-size: var(--text-sm); color: var(--accent); font-weight: 600; margin-bottom: var(--space-3); }
.player-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-3); }
.player-info-item { display: flex; flex-direction: column; gap: 2px; }
.player-info-label { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.player-info-value { font-size: var(--text-sm); color: var(--text-primary); font-weight: 500; }
@media (max-width: 640px) {
  .player-info-card { flex-direction: column; align-items: center; text-align: center; }
  .player-info-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Player Stats Tabs ── */
.player-stats-tabs {
  display: flex; gap: var(--space-1); margin-bottom: var(--space-4);
  border-bottom: 2px solid var(--border);
}
.player-stats-tab {
  padding: var(--space-2) var(--space-4); font-size: var(--text-sm); font-weight: 600;
  color: var(--text-secondary); cursor: pointer; border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--duration-fast);
}
.player-stats-tab:hover { color: var(--accent); }
.player-stats-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Team Info Card ── */
.team-info-card {
  display: flex; gap: var(--space-5); background: var(--bg-card);
  border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow-sm); margin-bottom: var(--space-5); align-items: center;
}
.team-info-logo {
  width: 80px; height: 80px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-2xl); font-weight: 700; color: #fff; flex-shrink: 0;
}
.team-info-details { flex: 1; }
.team-info-name { font-size: var(--text-2xl); font-weight: 800; color: var(--text-primary); margin-bottom: var(--space-1); }
.team-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); margin-top: var(--space-3); }
.team-info-item { display: flex; flex-direction: column; }
.team-info-label { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; }
.team-info-value { font-size: var(--text-sm); color: var(--text-primary); font-weight: 500; }

/* ── Team Recent Results ── */
.team-recent-results { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.result-indicator {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius-md);
  font-size: var(--text-xs); font-weight: 700; color: #fff;
}
.result-indicator-w { background: var(--success); }
.result-indicator-l { background: var(--danger); }
.result-indicator-t { background: var(--warning); }
.result-indicator-nr { background: var(--text-muted); }

/* ── Squad Categorization ── */
.squad-category { margin-bottom: var(--space-6); }
.squad-category-title {
  font-size: var(--text-base); font-weight: 700; color: var(--text-primary);
  margin-bottom: var(--space-3); padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--border);
}
.squad-category-title span { color: var(--text-muted); font-size: var(--text-sm); font-weight: 400; }
.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-3); }
.squad-card {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3);
  background: var(--bg-card); border-radius: var(--radius-md);
  border: 1px solid var(--border); transition: all var(--duration-fast);
}
.squad-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.squad-card-photo {
  width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm); font-weight: 700; color: var(--accent); flex-shrink: 0;
}
.squad-card-name { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); }
.squad-card-role { font-size: var(--text-xs); color: var(--text-muted); }

/* ── Match Status Filter Tabs ── */
.match-status-tabs {
  display: flex; gap: var(--space-1); margin-bottom: var(--space-5);
  border-bottom: 2px solid var(--border);
}
.match-status-tab {
  padding: var(--space-3) var(--space-5); font-size: var(--text-sm); font-weight: 600;
  color: var(--text-secondary); cursor: pointer; border: none; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--duration-fast);
  display: flex; align-items: center; gap: var(--space-2);
}
.match-status-tab:hover { color: var(--accent); }
.match-status-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.match-status-tab-count {
  font-size: var(--text-xs); background: var(--surface-3); padding: 2px var(--space-2);
  border-radius: var(--radius-full); color: var(--text-muted);
}
.match-status-tab.active .match-status-tab-count { background: var(--accent); color: #fff; }

/* ── Live Match Carousel ── */
.live-match-carousel { position: relative; margin-bottom: var(--space-6); }
.live-match-carousel-track {
  display: flex; gap: var(--space-4); overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: var(--space-2);
}
.live-match-carousel-track::-webkit-scrollbar { display: none; }
.live-match-carousel-card { flex: 0 0 320px; scroll-snap-align: start; }
@media (max-width: 640px) { .live-match-carousel-card { flex: 0 0 85%; } }
.live-match-carousel-nav { display: flex; gap: var(--space-2); justify-content: flex-end; margin-bottom: var(--space-3); }
.live-match-carousel-nav button {
  width: 36px; height: 36px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--duration-fast);
}
.live-match-carousel-nav button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Featured News Layout ── */
.news-featured-layout {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: var(--space-5); margin-bottom: var(--space-6);
}
.news-featured-main {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 16/9;
}
.news-featured-main img { width: 100%; height: 100%; object-fit: cover; }
.news-featured-main-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-6);
}
.news-featured-main-title { font-size: var(--text-xl); font-weight: 700; color: #fff; margin-bottom: var(--space-2); line-height: 1.3; }
.news-featured-main-meta { font-size: var(--text-sm); color: rgba(255,255,255,0.8); }
.news-featured-side { display: flex; flex-direction: column; gap: var(--space-3); }
.news-featured-side-item {
  display: flex; gap: var(--space-3); padding: var(--space-3);
  border-radius: var(--radius-md); background: var(--bg-card);
  border: 1px solid var(--border); transition: all var(--duration-fast);
}
.news-featured-side-item:hover { background: var(--bg-card-hover); }
.news-featured-side-item img { width: 80px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.news-featured-side-item-content h4 { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); margin-bottom: var(--space-1); line-height: 1.3; }
.news-featured-side-item-content time { font-size: var(--text-xs); color: var(--text-muted); }
@media (max-width: 768px) { .news-featured-layout { grid-template-columns: 1fr; } }

/* ── News Category Filter ── */
.news-category-filters { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-5); }
.news-category-chip {
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 500; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary);
  transition: all var(--duration-fast); text-decoration: none;
}
.news-category-chip:hover { border-color: var(--accent); color: var(--accent); }
.news-category-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Schedule Date Navigation ── */
.schedule-date-nav {
  display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5);
  padding: var(--space-3); background: var(--bg-card); border-radius: var(--radius-md);
  border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none;
}
.schedule-date-nav::-webkit-scrollbar { display: none; }
.schedule-date-item {
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-md);
  font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary);
  cursor: pointer; white-space: nowrap; transition: all var(--duration-fast);
  text-align: center; min-width: 70px; text-decoration: none;
}
.schedule-date-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.schedule-date-item.active { background: var(--accent); color: #fff; }
.schedule-date-item-day { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; }
.schedule-date-item-date { font-size: var(--text-base); font-weight: 700; }
.schedule-date-item-month { font-size: 10px; text-transform: uppercase; opacity: 0.8; }
.schedule-date-group-header {
  font-size: var(--text-base); font-weight: 700; color: var(--text-primary);
  margin: var(--space-5) 0 var(--space-3); padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--accent);
}

/* ── Schedule Filters Bar ── */
.schedule-filters-bar { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-5); align-items: center; }
.schedule-filter-group { display: flex; align-items: center; gap: var(--space-2); }
.schedule-filter-group label { font-size: var(--text-sm); color: var(--text-secondary); font-weight: 500; }
.schedule-filter-group select {
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary);
  font-size: var(--text-sm); cursor: pointer;
}
.schedule-format-chips { display: flex; gap: var(--space-2); }
.schedule-format-chip {
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary);
  transition: all var(--duration-fast);
}
.schedule-format-chip:hover, .schedule-format-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Quick Access Tiles ── */
.quick-access-tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-3); margin-bottom: var(--space-5);
}
.quick-access-tile {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  padding: var(--space-4); background: var(--bg-card); border-radius: var(--radius-md);
  border: 1px solid var(--border); text-decoration: none; color: var(--text-secondary);
  transition: all var(--duration-normal) var(--ease-out);
}
.quick-access-tile:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.quick-access-tile-icon { font-size: var(--text-2xl); }
.quick-access-tile-label { font-size: var(--text-sm); font-weight: 600; }

/* ── Series Spotlight ── */
.series-spotlight {
  display: flex; gap: var(--space-4); background: var(--bg-card);
  border-radius: var(--radius-lg); padding: var(--space-5);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-5); align-items: center; transition: all var(--duration-normal) var(--ease-out);
}
.series-spotlight:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }
.series-spotlight-logo {
  width: 64px; height: 64px; border-radius: var(--radius-md); background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xl); font-weight: 700; color: var(--accent); flex-shrink: 0;
}
.series-spotlight-info { flex: 1; }
.series-spotlight-name { font-size: var(--text-lg); font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-1); }
.series-spotlight-meta { font-size: var(--text-sm); color: var(--text-secondary); }

/* ── Breaking News Ticker ── */
.breaking-news-ticker {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--accent); color: #fff; padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md); margin-bottom: var(--space-4); overflow: hidden;
}
.breaking-news-label {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-2); background: rgba(255,255,255,0.2);
  border-radius: var(--radius-sm); flex-shrink: 0;
}
.breaking-news-content { flex: 1; overflow: hidden; white-space: nowrap; }
.breaking-news-content span { display: inline-block; animation: ticker-scroll 30s linear infinite; font-size: var(--text-sm); }

/* ── Password Visibility Toggle ── */
.password-input-wrapper { position: relative; }
.password-toggle {
  position: absolute; right: var(--space-3); top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  padding: var(--space-1); border-radius: var(--radius-sm); transition: all var(--duration-fast);
}
.password-toggle:hover { color: var(--text-primary); background: var(--bg-card-hover); }

/* ── Form Validation ── */
.form-field-error { display: none; font-size: var(--text-xs); color: var(--danger); margin-top: var(--space-1); }
.form-field-error.visible { display: block; }
.form-field-success .form-control { border-color: var(--success); }
.form-field-error-state .form-control { border-color: var(--danger); }

/* ── Button Loading State ── */
.btn-loading { position: relative; pointer-events: none; opacity: 0.7; }
.btn-loading::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ── Social Share Buttons ── */
.social-share { display: flex; gap: var(--space-2); align-items: center; }
.social-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary);
  cursor: pointer; transition: all var(--duration-fast);
}
.social-share-btn:hover { color: #fff; border-color: transparent; }
.social-share-btn.facebook:hover { background: #1877f2; }
.social-share-btn.twitter:hover { background: #1da1f2; }
.social-share-btn.whatsapp:hover { background: #25d366; }
.social-share-btn.copy:hover { background: var(--text-secondary); }

/* ── Related News ── */
.related-news { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border); }
.related-news h3 { font-size: var(--text-lg); font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-4); }
.related-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--space-4); }
.related-news-card {
  display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3);
  border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-card);
  transition: all var(--duration-fast); text-decoration: none; color: inherit;
}
.related-news-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.related-news-card img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--radius-sm); }
.related-news-card h4 { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.related-news-card time { font-size: var(--text-xs); color: var(--text-muted); }

/* ── Error Page Enhanced ── */
.error-page {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh; text-align: center; padding: var(--space-8);
}
.error-page-code { font-size: clamp(4rem, 15vw, 8rem); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: var(--space-4); }
.error-page-message { font-size: var(--text-xl); color: var(--text-secondary); margin-bottom: var(--space-6); max-width: 500px; }
.error-page-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; margin-bottom: var(--space-6); }
.error-page-popular-links { margin-top: var(--space-6); }
.error-page-popular-links h3 { font-size: var(--text-sm); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-3); }
.error-page-popular-links ul { display: flex; gap: var(--space-4); list-style: none; padding: 0; flex-wrap: wrap; justify-content: center; }
.error-page-popular-links a { color: var(--accent); text-decoration: none; font-size: var(--text-sm); font-weight: 500; }
.error-page-popular-links a:hover { text-decoration: underline; }

/* ── Modal Component ── */
.modal-backdrop {
  position: fixed; inset: 0; background: var(--bg-overlay);
  z-index: 2000; display: none; align-items: center; justify-content: center; padding: var(--space-4);
}
.modal-backdrop.active { display: flex; animation: modal-fade-in 0.2s ease; }
@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-dialog {
  background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto;
  animation: modal-slide-up 0.3s ease;
}
@keyframes modal-slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); }
.modal-title { font-size: var(--text-lg); font-weight: 700; color: var(--text-primary); }
.modal-close { background: none; border: none; font-size: var(--text-xl); cursor: pointer; color: var(--text-muted); padding: var(--space-1); border-radius: var(--radius-sm); transition: all var(--duration-fast); line-height: 1; }
.modal-close:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.modal-body { padding: var(--space-5); }
.modal-footer { display: flex; justify-content: flex-end; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-top: 1px solid var(--border); }

/* ── Dropdown Component ── */
.dropdown { position: relative; display: inline-block; }
.dropdown-trigger { cursor: pointer; }
.dropdown-menu-custom {
  position: absolute; top: 100%; right: 0; margin-top: var(--space-1);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); min-width: 200px; z-index: 100; display: none;
  animation: dropdown-fade 0.15s ease;
}
@keyframes dropdown-fade { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.dropdown.active .dropdown-menu-custom { display: block; }
.dropdown-menu-item { display: block; padding: var(--space-3) var(--space-4); color: var(--text-secondary); text-decoration: none; font-size: var(--text-sm); transition: all var(--duration-fast); border: none; background: none; width: 100%; text-align: left; cursor: pointer; }
.dropdown-menu-item:hover { background: var(--bg-card-hover); color: var(--accent); }

/* ── Toast Notifications ── */
.toast-container { position: fixed; bottom: var(--space-4); right: var(--space-4); z-index: 9999; display: flex; flex-direction: column; gap: var(--space-2); }
.toast {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); background: var(--bg-card); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); font-size: var(--text-sm); color: var(--text-primary);
  min-width: 280px; animation: toast-slide-in 0.3s ease;
}
@keyframes toast-slide-in { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--accent); }
.toast-warning { border-left: 4px solid var(--warning); }

/* ── Empty State Enhanced ── */
.empty-state-enhanced {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--space-12) var(--space-4); text-align: center;
}
.empty-state-icon { font-size: 3rem; color: var(--text-muted); margin-bottom: var(--space-4); }
.empty-state-title { font-size: var(--text-lg); font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-2); }
.empty-state-message { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-4); max-width: 400px; }
.empty-state-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }

/* ── Sidebar Widget Enhanced ── */
.sidebar-widget {
  background: var(--bg-card); border-radius: var(--radius-md);
  border: 1px solid var(--border); margin-bottom: var(--space-4); overflow: hidden;
}
.sidebar-widget-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.sidebar-widget-title { font-size: var(--text-sm); font-weight: 700; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.03em; }
.sidebar-widget-view-all { font-size: var(--text-xs); color: var(--accent); text-decoration: none; font-weight: 600; }
.sidebar-widget-view-all:hover { text-decoration: underline; }
.sidebar-widget-body { padding: var(--space-3) var(--space-4); }
.sidebar-widget-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--border-light); }
.sidebar-widget-item:last-child { border-bottom: none; }
.sidebar-widget-item-rank { font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); width: 24px; text-align: center; }
.sidebar-widget-item-name { flex: 1; font-size: var(--text-sm); color: var(--text-primary); font-weight: 500; }
.sidebar-widget-item-value { font-size: var(--text-sm); font-weight: 700; color: var(--accent); }
.sidebar-sticky { position: sticky; top: 80px; }

/* ── Ad Slot ── */
.ad-slot {
  background: var(--surface-1); border: 1px dashed var(--border); border-radius: var(--radius-md);
  padding: var(--space-4); text-align: center; color: var(--text-muted);
  font-size: var(--text-xs); margin-bottom: var(--space-4); min-height: 90px;
  display: flex; align-items: center; justify-content: center;
}

/* ── Team Logo Badge ── */
.team-logo-badge {
  width: 32px; height: 32px; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: 700; color: #fff; flex-shrink: 0;
}
.team-logo-badge-sm { width: 24px; height: 24px; font-size: 10px; }
.team-logo-badge-lg { width: 48px; height: 48px; font-size: var(--text-sm); }
.team-logo-badge-xl { width: 64px; height: 64px; font-size: var(--text-lg); }

/* ── Match Card Format Badge ── */
.match-card-format-badge {
  font-size: 10px; font-weight: 700; padding: 2px var(--space-2);
  border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.05em;
}
.match-card-format-test { background: rgba(var(--danger-rgb), 0.1); color: var(--danger); }
.match-card-format-odi { background: rgba(var(--accent-rgb), 0.1); color: var(--accent); }
.match-card-format-t20 { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.match-card-format-t20i { background: rgba(var(--success-rgb), 0.1); color: var(--success); }

/* ── Trending Section ── */
.trending-section { margin-bottom: var(--space-6); }
.trending-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.trending-section-title { font-size: var(--text-lg); font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: var(--space-2); }
.trending-cards { display: flex; gap: var(--space-3); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: var(--space-2); }
.trending-cards::-webkit-scrollbar { display: none; }
.trending-card {
  flex: 0 0 200px; padding: var(--space-3); background: var(--bg-card);
  border-radius: var(--radius-md); border: 1px solid var(--border);
  transition: all var(--duration-fast); text-decoration: none; color: inherit;
}
.trending-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.trending-card-tag { font-size: var(--text-xs); color: var(--accent); font-weight: 600; text-transform: uppercase; margin-bottom: var(--space-2); }
.trending-card-title { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); line-height: 1.3; margin-bottom: var(--space-2); }
.trending-card-meta { font-size: var(--text-xs); color: var(--text-muted); }

/* ── Skip Link (Accessibility) ── */
.skip-link {
  position: absolute; top: -40px; left: 0; background: var(--accent); color: #fff;
  padding: var(--space-3) var(--space-4); text-decoration: none; font-weight: 600;
  z-index: 9999; border-radius: 0 0 var(--radius-md) 0; transition: top var(--duration-fast);
}
.skip-link:focus { top: 0; }

/* ── ARIA Live Region ── */
.aria-live-region {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
