/* ============================================================
   IPL FANTASY 2025 - L08 LIVE MATCH CENTER
   Palette: Forest Green #1B4332 + Saffron #FF8C00 + Cream #FFF8E7
   Fonts: Manrope (sans) + Fraunces (display) + IBM Plex Mono (data)
   Layout: Live ticker bar + countdown timers + ball-by-ball stream
   ============================================================ */

:root {
  /* Core palette */
  --primary: #1B4332;
  --primary-deep: #0F2A1F;
  --primary-soft: #2D5F47;
  --primary-mid: #386B53;
  --accent: #FF8C00;
  --accent-bright: #FFA940;
  --accent-deep: #C26800;
  --bg: #FFF8E7;
  --surface: #FFFFFF;
  --surface-2: #F5EFD9;
  --surface-3: #E8DDB8;
  --surface-dark: #0F2A1F;
  --surface-mid: #1B4332;
  --text: #1F2D26;
  --text-soft: #4A5A4F;
  --text-mute: #6B7B70;
  --text-on-dark: #FFF8E7;
  --text-on-dark-soft: #C7D4CB;
  --border: #D4C5A0;
  --border-strong: #A88F5C;
  --border-soft: #E8DDB8;
  --success: #2E7D32;
  --danger: #B71C1C;
  --warning: #C26800;
  --info: #1B4332;

  /* Live accent (animated ticker pulse) */
  --live-red: #D62828;
  --live-glow: rgba(214, 40, 40, 0.55);

  /* Layout */
  --container: 1280px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --shadow: 0 2px 6px rgba(15, 42, 31, 0.10);
  --shadow-lg: 0 8px 24px rgba(15, 42, 31, 0.18);
  --shadow-deep: 0 14px 40px rgba(15, 42, 31, 0.28);

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: env(safe-area-inset-top, 0px);
}
section[id] { scroll-margin-top: 80px; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-deep);
  letter-spacing: -0.01em;
  line-height: 1.18;
  margin: 0 0 0.55em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
a:hover { color: var(--accent-deep); }
.prose a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
code, pre { font-family: var(--font-mono); }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

/* Layout primitives */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.band { padding: 64px 0; position: relative; }
.band-tight { padding: 40px 0; }
.band-elev-1 { background: var(--surface-2); }
.band-elev-2 { background: var(--surface); }
.band-elev-3 { background: var(--surface-3); }
.band-dark { background: var(--surface-dark); color: var(--text-on-dark); }
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4 { color: var(--text-on-dark); }
.band-dark p, .band-dark li { color: var(--text-on-dark-soft); }
.band-primary { background: var(--primary); color: var(--text-on-dark); }
.band-primary h1, .band-primary h2, .band-primary h3, .band-primary h4 { color: var(--text-on-dark); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--text-on-dark);
  padding: 12px 20px;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   SITE HEADER + NAV (L08 Live Match Center)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 250 !important;
  background: var(--primary-deep);
  border-bottom: 3px solid var(--accent);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand-mark {
  width: 42px; height: 42px;
  background: var(--accent);
  color: var(--primary-deep);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 900; font-size: 22px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { color: var(--text-on-dark); font-weight: 800; font-size: 18px; }
.brand-tag { color: var(--accent); font-size: 10px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 3px; }

/* Main nav (desktop) */
.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: all 0.15s;
}
.main-nav a:hover { background: rgba(255, 140, 0, 0.18); color: var(--accent-bright); }
.main-nav a.cta {
  background: var(--accent);
  color: var(--primary-deep);
  font-weight: 700;
  padding: 10px 18px;
}
.main-nav a.cta:hover { background: var(--accent-bright); color: var(--primary-deep); }
.main-nav a.live-pill {
  background: var(--live-red);
  color: white;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.main-nav a.live-pill::before {
  content: '';
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.header-right { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.header-cta-ghost {
  padding: 8px 14px;
  border: 2px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
}
.header-cta-ghost:hover { background: var(--accent); color: var(--primary-deep); }
.header-cta {
  padding: 10px 18px;
  background: var(--accent);
  color: var(--primary-deep);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
}
.header-cta:hover { background: var(--accent-bright); color: var(--primary-deep); }

.hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 300 !important;
  position: relative !important;
}
.hamburger span {
  display: block;
  width: 26px; height: 3px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: all 0.2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 86vw;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: var(--primary-deep);
  z-index: 200;
  padding: 90px 22px 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  border-left: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-drawer.open,
.mobile-drawer.is-open {
  transform: translateX(0);
}
.mobile-drawer a {
  color: var(--text-on-dark);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  display: block;
  border-bottom: 1px solid rgba(255, 248, 231, 0.08);
}
.mobile-drawer a:hover { background: rgba(255, 140, 0, 0.12); color: var(--accent-bright); }
.mobile-drawer a.cta {
  background: var(--accent);
  color: var(--primary-deep);
  font-weight: 700;
  margin-top: 14px;
  text-align: center;
  border-bottom: 0;
}
.mobile-drawer .live-pill {
  background: var(--live-red);
  color: white;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mobile-drawer .live-pill::before {
  content: '';
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
  animation: livePulse 1.4s ease-in-out infinite;
}

/* ============================================================
   L08 LIVE TICKER (signature element)
   ============================================================ */
.live-ticker {
  background: var(--primary-deep);
  border-bottom: 2px solid var(--accent);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
}
.live-ticker__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.live-ticker__badge {
  background: var(--live-red);
  color: white;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}
.live-ticker__badge::before {
  content: '';
  width: 7px; height: 7px;
  background: white;
  border-radius: 50%;
  animation: livePulse 1.4s ease-in-out infinite;
}
.live-ticker__scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}
.live-ticker__track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: tickerScroll 60s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-on-dark-soft);
}
.live-ticker__track strong { color: var(--accent-bright); margin-right: 6px; }
.live-ticker__track .sep { color: var(--accent); margin: 0 8px; }
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   HERO (L08: hero with live ticker + countdown)
   ============================================================ */
.hero {
  position: relative;
  min-height: 620px;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
  color: var(--text-on-dark);
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(255, 140, 0, 0.18) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(255, 140, 0, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__eyebrow {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--text-on-dark);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 18px;
  font-weight: 900;
}
.hero h1 em { color: var(--accent-bright); font-style: normal; }
.hero__lede {
  font-size: 18px;
  color: var(--text-on-dark-soft);
  margin-bottom: 28px;
  line-height: 1.55;
  max-width: 540px;
}
.hero__cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cta-btn {
  display: inline-block;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--primary-deep);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: 0;
  transition: all 0.15s;
}
.cta-btn:hover { background: var(--accent-bright); color: var(--primary-deep); transform: translateY(-1px); }
.cta-btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border: 2px solid var(--text-on-dark);
}
.cta-btn--ghost:hover { background: var(--text-on-dark); color: var(--primary-deep); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hero__stat {
  background: rgba(255, 248, 231, 0.08);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
}
.hero__stat strong { display: block; font-family: var(--font-display); font-size: 22px; color: var(--accent-bright); font-weight: 800; }
.hero__stat span { display: block; font-size: 11px; color: var(--text-on-dark-soft); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px; }

/* L08: Countdown panel in hero */
.hero__countdown {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--accent);
}
.hero__countdown-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700;
}
.hero__countdown-match {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 18px;
  line-height: 1.2;
}
.hero__countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.countdown-cell {
  background: var(--primary-deep);
  color: var(--accent-bright);
  border-radius: var(--radius);
  padding: 14px 6px;
  text-align: center;
}
.countdown-cell strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.countdown-cell span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-soft);
  margin-top: 4px;
}
.hero__countdown-cta {
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: var(--primary-deep);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  display: block;
  font-size: 14px;
}
.hero__countdown-cta:hover { background: var(--accent-bright); }
.hero__countdown-venues {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 248, 231, 0.15);
}
.hero__trust-item {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--text-on-dark-soft);
}
.hero__trust-item strong { color: var(--accent-bright); font-family: var(--font-mono); font-size: 18px; display: block; }

/* ============================================================
   CARDS, GRIDS, DATA CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.data-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.data-card h3 { font-size: 16px; margin-bottom: 8px; }
.data-card .data-num { font-family: var(--font-mono); font-size: 28px; color: var(--primary); font-weight: 700; display: block; margin-bottom: 4px; }
.data-card .data-label { font-size: 12px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; }

.loose-card {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.10) 0%, rgba(255, 140, 0, 0.03) 100%);
  border: 2px solid rgba(255, 140, 0, 0.4);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  margin: 18px 0;
}
.loose-card h3 { color: var(--primary-deep); margin-bottom: 8px; }
.loose-card p:last-child { margin-bottom: 0; }
.loose-card .loose-card-emoji {
  display: inline-block;
  width: 32px; height: 32px;
  background: rgba(255, 140, 0, 0.2);
  color: var(--accent-deep);
  border-radius: 6px;
  text-align: center;
  line-height: 32px;
  font-size: 18px;
  margin-right: 10px;
  vertical-align: middle;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--accent);
  color: var(--primary-deep);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 17px; margin-bottom: 8px; }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
.faq-item h3, .faq-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--primary-deep);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.faq-item h3::before, .faq-item h4::before {
  content: 'Q';
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: var(--accent);
  color: var(--primary-deep);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}
.faq-item p { color: var(--text-soft); margin-bottom: 0; }
.faq-item p strong { color: var(--primary-deep); }

.inline-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin: 32px 0;
}
.inline-image-row img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }

/* Band header (eyebrow + title + lede) */
.band-header { max-width: 800px; margin: 0 auto 40px; text-align: center; padding: 0 24px; }
.band-header .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(255, 140, 0, 0.12);
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.band-header h2 { margin-bottom: 12px; }
.band-header p { color: var(--text-soft); font-size: 17px; }
.band-header--left { text-align: left; margin-left: 0; }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 8px;
}

/* Prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: var(--text-soft); }
.prose h2 { margin-top: 36px; }
.prose h3 { margin-top: 28px; }
.prose ul li, .prose ol li { color: var(--text-soft); }
.prose strong { color: var(--primary-deep); }

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 24px 0;
  font-size: 14px;
}
.data-table th {
  background: var(--primary);
  color: var(--text-on-dark);
  font-family: var(--font-mono);
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-soft);
}
.data-table tr:nth-child(even) td { background: var(--surface-2); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num { font-family: var(--font-mono); color: var(--primary-deep); font-weight: 700; }

/* ============================================================
   L08 MATCH CARD (signature)
   ============================================================ */
.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow);
}
.match-card__team { display: flex; align-items: center; gap: 12px; }
.match-card__team:last-child { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }
.match-card__team-logo {
  width: 48px; height: 48px;
  background: var(--primary);
  color: var(--accent-bright);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  border: 2px solid var(--accent);
}
.match-card__team-name { font-weight: 700; color: var(--primary-deep); font-size: 15px; }
.match-card__team-score { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); margin-top: 2px; }
.match-card__vs {
  background: var(--accent);
  color: var(--primary-deep);
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.match-card__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   L08 BALL-BY-BALL FEED
   ============================================================ */
.bbb-feed {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  max-height: 480px;
  overflow-y: auto;
}
.bbb-entry {
  display: grid;
  grid-template-columns: 60px 60px 50px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.bbb-entry:last-child { border-bottom: 0; }
.bbb-entry__over { font-family: var(--font-mono); color: var(--primary); font-weight: 700; }
.bbb-entry__ball { font-family: var(--font-mono); color: var(--text-mute); font-size: 12px; }
.bbb-entry__runs {
  display: inline-block;
  background: var(--primary-deep);
  color: var(--accent-bright);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  min-width: 36px;
}
.bbb-entry__runs--4 { background: #2E7D32; color: white; }
.bbb-entry__runs--6 { background: var(--accent); color: var(--primary-deep); }
.bbb-entry__runs--w { background: var(--live-red); color: white; }
.bbb-entry__commentary { color: var(--text-soft); font-size: 13px; line-height: 1.4; }
.bbb-entry__time { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); white-space: nowrap; }

/* ============================================================
   COUNTDOWN WIDGETS (multiple sizes)
   ============================================================ */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--primary-deep);
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent);
}
.countdown--inline { background: var(--primary); padding: 14px; }
.countdown-cell--sm { padding: 10px 4px; }
.countdown-cell--sm strong { font-size: 20px; }

/* Player of the match widget */
.pom-widget {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  border-radius: var(--radius-xl);
  padding: 24px;
  color: var(--primary-deep);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.pom-widget__crown { font-size: 28px; margin-bottom: 4px; }
.pom-widget h3 { color: var(--primary-deep); margin-bottom: 6px; font-size: 20px; }
.pom-widget__points {
  display: inline-block;
  background: var(--primary-deep);
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
  padding: 8px 18px;
  border-radius: 4px;
  margin: 8px 0;
}
.pom-widget__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.pom-widget__stats div { background: rgba(15, 42, 31, 0.1); padding: 8px; border-radius: 4px; }
.pom-widget__stats strong { display: block; color: var(--primary-deep); font-size: 16px; }

/* News/Blog cards */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.blog-card__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  margin-bottom: 8px;
  font-weight: 700;
}
.blog-card h3 { font-size: 18px; margin-bottom: 8px; }
.blog-card p { color: var(--text-soft); font-size: 14px; flex: 1; }
.blog-card__meta { font-size: 12px; color: var(--text-mute); font-family: var(--font-mono); margin-top: 12px; }
.blog-card__cta { color: var(--primary); text-decoration: none; font-weight: 700; font-size: 14px; margin-top: 12px; display: inline-block; }
.blog-card__cta::after { content: ' →'; }

/* Footer */
.site-footer {
  background: var(--primary-deep);
  color: var(--text-on-dark-soft);
  padding: 60px 0 30px;
  border-top: 4px solid var(--accent);
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  color: var(--accent-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-col a {
  color: var(--text-on-dark-soft);
  text-decoration: none;
  display: block;
  padding: 5px 0;
  font-size: 14px;
}
.footer-col a:hover { color: var(--accent-bright); }
.footer-col p { color: var(--text-on-dark-soft); font-size: 14px; line-height: 1.55; }
.footer-col p strong { color: var(--text-on-dark); }
.social-icons { display: flex; gap: 10px; margin-top: 12px; }
.social-icons a {
  width: 38px; height: 38px;
  background: rgba(255, 248, 231, 0.08);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 14px;
  padding: 0;
  font-weight: 700;
  color: var(--text-on-dark-soft);
}
.social-icons a:hover { background: var(--accent); color: var(--primary-deep); border-color: var(--accent); }
.footer-bottom {
  max-width: var(--container);
  margin: 32px auto 0;
  padding: 18px 24px 0;
  border-top: 1px solid rgba(255, 248, 231, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-on-dark-soft);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--text-on-dark-soft); text-decoration: none; margin: 0 8px; }
.footer-bottom a:hover { color: var(--accent-bright); }

/* Quote / callout */
.callout {
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-soft);
}

/* Pill */
.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--surface-3);
  color: var(--primary-deep);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
}
.pill--accent { background: var(--accent); color: var(--primary-deep); }
.pill--live { background: var(--live-red); color: white; }

/* Risk card */
.risk-card {
  background: #FFF1F0;
  border: 1px solid #F5BFBE;
  border-left: 4px solid var(--danger);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 18px 0;
}
.risk-card h3, .risk-card h4 { color: var(--danger); margin-bottom: 6px; }
.risk-card p { color: #6B3434; margin-bottom: 0; font-size: 14px; }

/* Image card with caption */
.content-image-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 24px 0;
}
.content-image-card img { width: 100%; height: 280px; object-fit: cover; }
.content-image-card .caption {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-mute);
  font-family: var(--font-mono);
}

/* Methodology block */
.methodology-wrapper {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: var(--text-on-dark);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin: 32px 0;
}
.methodology-wrapper h2, .methodology-wrapper h3 { color: var(--text-on-dark); }
.methodology-wrapper p, .methodology-wrapper li { color: var(--text-on-dark-soft); }
.methodology-wrapper a { color: var(--accent-bright); }
.methodology-wrapper .data-card { background: rgba(255, 248, 231, 0.08); border-left-color: var(--accent); border-color: rgba(255, 140, 0, 0.3); }
.methodology-wrapper .data-card h3 { color: var(--text-on-dark); }
.methodology-wrapper .data-card .data-num { color: var(--accent-bright); }
.methodology-wrapper .data-card .data-label { color: var(--text-on-dark-soft); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .card-grid-3 { grid-template-columns: 1fr 1fr; }
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .inline-image-row { grid-template-columns: 1fr; }
  .match-card { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .match-card__team:last-child { justify-content: center; text-align: center; flex-direction: row; }
}

@media (max-width: 899px) {
  .main-nav { display: none !important; }
  .header-cta-ghost { display: none !important; }
  .hamburger { display: flex !important; }
  .hero-trust { display: none !important; }
  .hero { min-height: 480px !important; max-height: 720px !important; padding: 80px 0 60px !important; }
  .hero img { height: 100% !important; object-fit: cover !important; }
  .hero__lede { font-size: 16px !important; line-height: 1.5 !important; }
  #hero-h { font-size: 32px !important; line-height: 1.1 !important; }
  .hero__countdown-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .countdown-cell strong { font-size: 22px; }
  .bbb-entry { grid-template-columns: 50px 1fr auto; gap: 8px; }
  .bbb-entry__ball, .bbb-entry__time { display: none; }
  .live-ticker__track { font-size: 12px; }
}

@media (max-width: 640px) {
  .band { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .site-header__inner { padding: 12px 16px; gap: 12px; }
  .container, .band-header, .live-ticker__inner, .footer-grid, .footer-bottom { padding-left: 16px; padding-right: 16px; }
  .band > .container, .band > .band-header { padding-left: 16px; padding-right: 16px; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 8px 10px; }
  .match-card__team { font-size: 13px; }
  .methodology-wrapper { padding: 24px 20px; }
  .hero__countdown { padding: 20px; }
  .hero__countdown-match { font-size: 18px; }
  .pom-widget { padding: 18px; }
}

/* IPL FANTASY 2025 MOBILE LAYOUT HARDENING */
@media (max-width: 767px) {
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
  body { font-size: 16px; line-height: 1.58; }
  .site-header { width: 100%; }
  .site-header__inner { min-width: 0; padding: 11px 14px; gap: 8px; }
  .brand { min-width: 0; gap: 9px; }
  .brand img, .brand-mark { width: 38px; height: 38px; flex: 0 0 38px; }
  .brand-name { font-size: 16px; white-space: nowrap; }
  .brand-tag { font-size: 9px; white-space: nowrap; }
  .header-cta { display: none !important; }
  .hamburger { margin-left: auto; padding: 9px 4px 9px 10px; }
  .mobile-drawer { width: min(100%, 360px); max-width: 100%; padding: 82px 16px 30px; z-index: 1000; }
  .mobile-drawer a { padding: 13px 12px; }
  .live-ticker { padding: 8px 0; }
  .live-ticker__inner { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .live-ticker__badge { font-size: 10px; padding: 5px 8px; }
  .hero { min-height: 0 !important; max-height: none !important; padding: 48px 0 42px !important; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-left: 16px; padding-right: 16px; }
  .hero__eyebrow { margin-bottom: 14px; padding: 6px 10px; font-size: 10px; }
  .hero h1, #hero-h { font-size: clamp(2rem, 9vw, 2.45rem) !important; line-height: 1.08 !important; }
  .hero__lede { font-size: 16px !important; margin-bottom: 22px; }
  .hero__cta-row { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 22px; }
  .hero__cta-row .cta-btn { width: 100%; text-align: center; }
  .hero__stats, .hero__trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__stat:last-child, .hero__trust-item:last-child { grid-column: 1 / -1; }
  .hero__countdown { padding: 18px; border-radius: 16px; }
  .hero__countdown-grid, .countdown { gap: 6px; }
  .countdown-cell { min-width: 0; padding: 12px 3px; }
  .countdown-cell strong { font-size: 20px; }
  .hero__countdown-venues { gap: 8px; font-size: 10px; }
  .container, .band-header, .live-ticker__inner, .footer-grid, .footer-bottom { max-width: 100%; }
  .inline-image-row, .card-grid, .card-grid-3, .card-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .data-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .bbb-feed { padding: 16px; max-width: 100%; }
  .bbb-entry { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .match-card, .methodology-wrapper, .content-image-card { max-width: 100%; }
  .content-image-card img { height: auto; min-height: 0; }
  main h1[style*="font-size:42px"] { font-size: clamp(2rem, 9vw, 2.45rem) !important; line-height: 1.12 !important; }
  main p[style*="font-size:18px"] { font-size: 1rem !important; line-height: 1.58 !important; }
}

@media (max-width: 390px) {
  .brand-name { font-size: 15px; }
  .brand-tag { letter-spacing: 0.06em; }
  .hero { padding-top: 40px !important; }
  .hero__stats { grid-template-columns: minmax(0, 1fr); }
  .hero__stat:last-child { grid-column: auto; }
}

/* IPL FANTASY 2025 DRAWER CLOSE CONTROL */
.mobile-drawer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 248, 231, 0.52);
  border-radius: 8px;
  background: rgba(255, 248, 231, 0.1);
  color: var(--text-on-dark);
  font: 700 14px/1 var(--font-body);
  letter-spacing: 0.01em;
}
.mobile-drawer__close:hover,
.mobile-drawer__close:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-deep);
  outline: none;
}
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(4, 20, 14, 0.54);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.mobile-drawer-backdrop.is-visible { opacity: 1; pointer-events: auto; }
body.mobile-menu-open .gogotofly-mobile-cta { visibility: hidden; pointer-events: none; }
@media (max-width: 767px) {
  .mobile-drawer { padding-top: 78px; }
  .mobile-drawer__close { top: 14px; right: 14px; }
}

/* Latest news hero banner (homepage freshness) */
.hero__news-banner {
  display: block;
  width: 100%;
  max-width: var(--container);
  height: auto;
  max-height: 360px;
  object-fit: cover;
  margin: 28px auto 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 140, 0, 0.35);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 899px) {
  .hero__news-banner { max-height: 220px; margin-top: 18px; border-radius: var(--radius); }
}
