/* ============================================
   IPL 2026 Orange Cap — Volcanic Glass Theme
   Syne + Plus Jakarta Sans
   ============================================ */

:root {
  --bg:        #111111;
  --bg-card:   #1A1A1A;
  --bg-dark:   #0D0D0D;
  --border:    #2A2A2A;
  --orange:    #FF6B2B;
  --orange-lt: #FFB088;
  --orange-glow: rgba(255, 107, 43, 0.18);
  --text:      #F0EDE8;
  --text-muted:#8A8580;
  --text-dim:  #5A5550;
  --gold:      #F5C842;
  --white:     #FFFFFF;
  --radius:    12px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ── CONTAINER ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,43,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,43,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255,107,43,0.22) 0%, transparent 65%);
  pointer-events: none;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}

/* NAV */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  border-bottom: 1px solid rgba(255,107,43,0.12);
}

.nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--text);
}
.nav-brand span { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }

/* HERO CONTENT */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 40px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,107,43,0.15);
  border: 1px solid rgba(255,107,43,0.4);
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  animation: fadeDown 0.6s ease both;
}

.hero-cap-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: fadeDown 0.7s ease both;
  filter: drop-shadow(0 0 24px rgba(255,107,43,0.6));
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
  animation: fadeDown 0.8s ease both;
}
.hero-title span {
  color: var(--orange);
  display: block;
}

.hero-subtitle {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  animation: fadeDown 0.9s ease both;
}

/* HERO LEADER CARD */
.hero-leader-card {
  margin-top: 48px;
  background: linear-gradient(135deg, rgba(255,107,43,0.12), rgba(255,107,43,0.04));
  border: 1px solid rgba(255,107,43,0.35);
  border-radius: var(--radius-lg);
  padding: 32px 48px;
  text-align: center;
  animation: fadeUp 1s ease both;
  position: relative;
  overflow: hidden;
}
.hero-leader-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

.hero-leader-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-leader-name {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}
.hero-leader-team {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}
.hero-leader-runs {
  font-family: 'Syne', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin: 16px 0 8px;
}
.hero-leader-runs small {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
}
.hero-leader-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-scroll-hint {
  text-align: center;
  padding: 24px;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  animation: bounce 2s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
.section {
  padding: 100px 0;
}
.section--dark {
  background: var(--bg-dark);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 48px;
}

/* ══════════════════════════════════════
   LEADERBOARD
══════════════════════════════════════ */
.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}

.lb-row {
  display: grid;
  grid-template-columns: 64px 200px 1fr 200px;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 24px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.lb-row:hover {
  border-color: rgba(255,107,43,0.4);
  transform: translateX(4px);
  box-shadow: 0 4px 24px rgba(255,107,43,0.08);
}

.lb-row--gold {
  background: linear-gradient(135deg, rgba(255,107,43,0.1), rgba(255,107,43,0.03));
  border-color: rgba(255,107,43,0.4);
  box-shadow: 0 0 32px rgba(255,107,43,0.1);
}

.lb-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.rank-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-muted);
}
.lb-row--gold .rank-num { color: var(--orange); }
.rank-crown { font-size: 1rem; }

.lb-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}
.lb-team {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.lb-bar-wrap {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.lb-bar {
  height: 100%;
  width: 0%;
  background: var(--bar-color, var(--orange));
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lb-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.lb-runs {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange);
}
.lb-row--gold .lb-runs { color: var(--orange); }
.lb-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.lb-meta strong { color: var(--text); }

.lb-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.badge--100 { background: rgba(245,200,66,0.15); color: var(--gold); border: 1px solid rgba(245,200,66,0.3); }
.badge--50  { background: rgba(255,107,43,0.12); color: var(--orange-lt); border: 1px solid rgba(255,107,43,0.25); }
.badge--fire { background: rgba(255,60,60,0.12); color: #FF8080; border: 1px solid rgba(255,60,60,0.25); }
.badge--record { background: rgba(100,200,255,0.1); color: #80CFFF; border: 1px solid rgba(100,200,255,0.25); }

/* ══════════════════════════════════════
   SPOTLIGHTS
══════════════════════════════════════ */
.spotlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.spotlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.spotlight-card:hover {
  border-color: rgba(255,107,43,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255,107,43,0.1);
}
.spotlight-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.spotlight-card:hover::after { opacity: 1; }

.spotlight-rank {
  font-family: 'Syne', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(255,107,43,0.1);
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
  pointer-events: none;
}

.spotlight-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.spotlight-cap { font-size: 2rem; }
.spotlight-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}
.spotlight-team {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.spotlight-stats-row {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.spotlight-stat {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-right: 1px solid var(--border);
}
.spotlight-stat:last-child { border-right: none; }
.stat-val {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--orange);
}
.stat-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spotlight-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════
   MILESTONES
══════════════════════════════════════ */
.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.milestone-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}
.milestone-card:hover {
  border-color: rgba(255,107,43,0.35);
  transform: translateY(-3px);
}

.milestone-icon { font-size: 2rem; margin-bottom: 12px; }
.milestone-record {
  font-family: 'Syne', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.milestone-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 8px 0 4px;
}
.milestone-player {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
}
.milestone-detail {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ══════════════════════════════════════
   HISTORY TABLE
══════════════════════════════════════ */
.history-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-top: 40px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.history-table thead tr {
  background: rgba(255,107,43,0.1);
  border-bottom: 1px solid rgba(255,107,43,0.25);
}
.history-table th {
  padding: 14px 20px;
  text-align: left;
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}
.history-table td {
  padding: 13px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
  transition: background 0.2s;
}
.history-table td:first-child {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--text);
}
.history-table td:nth-child(2) { color: var(--white); font-weight: 500; }
.history-table td:last-child {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--orange-lt);
}
.history-table tbody tr:hover td { background: rgba(255,107,43,0.04); }
.history-row--highlight td { background: rgba(255,107,43,0.06); }
.history-row--record td {
  background: rgba(245,200,66,0.06);
  color: var(--gold) !important;
}
.history-row--record td:last-child { color: var(--gold) !important; }

/* HISTORY FACTS */
.history-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.fact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.fact-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange);
  white-space: nowrap;
  min-width: 80px;
}
.fact-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}
.footer-brand {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-source, .footer-updated {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }

  .lb-row {
    grid-template-columns: 48px 1fr 120px;
    grid-template-rows: auto auto;
    gap: 10px;
  }
  .lb-bar-wrap { grid-column: 1 / -1; }

  .spotlights-grid { grid-template-columns: 1fr; }
  .milestones-grid { grid-template-columns: 1fr 1fr; }
  .history-facts   { grid-template-columns: 1fr; }

  .hero-leader-card { padding: 24px 20px; }
  .hero-leader-runs { font-size: 2.5rem; }
}

@media (max-width: 480px) {
  .milestones-grid { grid-template-columns: 1fr; }
  .lb-row { grid-template-columns: 40px 1fr; }
  .lb-stats { align-items: flex-start; }
}