@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=DM+Mono:wght@400;500&display=swap');

/* ── TOKENS ── */
:root {
  --navy-dark:   #0b1629;
  --navy:        #132040;
  --navy-mid:    #1a2d5a;
  --navy-card:   #162038;
  --orange:      #e8820c;
  --orange-lt:   #f5a73b;
  --white:       #ffffff;
  --muted:       #7a9ac8;
  --muted2:      #4a6a9a;
  --border-dark: rgba(255,255,255,0.08);

  /* Light body */
  --bg:          #f0f2f5;
  --card-bg:     #ffffff;
  --card-border: #e2e6ed;
  --text-primary:#1a2340;
  --text-secondary:#5a6a85;
  --text-muted:  #8a98b0;
  --divider:     #e8ecf2;

  --green:  #16a34a;
  --red:    #dc2626;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: 'DM Sans', sans-serif; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo svg { width: 34px; height: 34px; flex-shrink: 0; }
.nav-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 21px;
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1;
  white-space: nowrap;
}
.nav-logo-text em { color: var(--orange); font-style: normal; }
.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all .15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-link.active {
  color: var(--orange-lt);
  background: rgba(232,130,12,0.12);
  font-weight: 500;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.year-select {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(232,130,12,0.35);
  color: var(--orange-lt);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}
.year-select option { background: var(--navy-dark); color: var(--white); }

/* ── HERO ── */
.hero {
  background: linear-gradient(155deg, var(--navy-dark) 0%, var(--navy-mid) 60%, #0f2a50 100%);
  padding: 52px 32px 44px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 75% 40%, rgba(232,130,12,.08), transparent);
  pointer-events: none;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}
.hero-left { position: relative; z-index: 1; }
.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--orange-lt);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: .9;
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 5.5vw, 84px);
  line-height: .92;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 14px;
}
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  letter-spacing: .3px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-right {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
  border-left: 1px solid rgba(255,255,255,0.07);
  padding-left: 48px;
  min-width: 220px;
}
.hero-kpi { text-align: right; }
.hero-kpi-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  color: var(--orange-lt);
  line-height: 1;
}
.hero-kpi-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
}
.hero-kpi-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 1px;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--orange-lt); }
.btn-outline {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 13px;
  transition: all .15s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline:hover { background: rgba(255,255,255,0.13); }
.hero-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--orange) 40%, transparent);
  margin: 0;
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
}

/* ── LAYOUT ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.section { padding: 28px 0; }
.section + .section { padding-top: 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--text-primary);
}
.section-badge {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--orange);
  background: rgba(232,130,12,0.1);
  border: 1px solid rgba(232,130,12,0.2);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.stage-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 2.5px;
  color: var(--orange);
  margin: 22px 0 10px;
  text-transform: uppercase;
}

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hero { padding: 32px 16px 28px; }
  .container { padding: 0 16px; }
}
@media (max-width: 400px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── CARDS ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card-dark {
  background: var(--navy-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 16px;
}
.card-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

/* ── CHAMPION BANNER ── */
.champion-banner {
  background: linear-gradient(135deg, rgba(232,130,12,.08), rgba(232,130,12,.03));
  border: 1px solid rgba(232,130,12,.25);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
}
.champion-trophy { font-size: 22px; }
.champion-banner strong { color: var(--orange); }

/* ── STAT CARDS ── */
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  border-left: 3px solid var(--orange);
  box-shadow: var(--shadow);
}
.stat-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--orange);
  line-height: 1;
}
.stat-unit { font-size: 11px; color: var(--text-muted); margin-left: 2px; }
.stat-player { font-size: 13px; font-weight: 500; color: var(--text-primary); margin-top: 4px; }
.stat-team { font-size: 11px; color: var(--text-muted); }

/* ── MATCH CARD ── */
.match-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.match-status {
  display: inline-block;
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  letter-spacing: .5px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.status-completed { color: var(--text-muted); background: var(--divider); }
.status-upcoming  { color: var(--orange); background: rgba(232,130,12,0.1); }
.status-live      { color: var(--green); background: rgba(22,163,74,0.1); }
.match-teams { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.match-side { flex: 1; }
.match-side.right { text-align: right; }
.match-team-name {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.match-side.right .match-team-name { justify-content: flex-end; }
.team-logo-sm {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.team-initials-sm {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 700;
  flex-shrink: 0;
}
.match-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--text-primary);
  line-height: 1;
}
.match-score.winner { color: var(--orange); }
.match-overs { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.match-vs { font-size: 11px; color: var(--text-muted); padding-top: 10px; }
.match-result {
  margin-top: 10px;
  padding: 6px 10px;
  background: rgba(22,163,74,0.07);
  border: 1px solid rgba(22,163,74,0.15);
  border-radius: 6px;
  font-size: 11px;
  color: var(--green);
  font-weight: 500;
}
.match-meta { margin-top: 8px; font-size: 11px; color: var(--text-muted); padding-top: 8px; border-top: 1px solid var(--divider); }

/* ── POINTS TABLE ── */
.table-wrap {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 4px;
}
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap thead { background: var(--navy-dark); }
.table-wrap th {
  padding: 9px 12px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
  white-space: nowrap;
}
.table-wrap th.r, .table-wrap td.r { text-align: right; }
.table-wrap th.c, .table-wrap td.c { text-align: center; }
.table-wrap td {
  padding: 9px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--divider);
  white-space: nowrap;
}
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr.top-row { background: rgba(232,130,12,0.04); }
.td-name { color: var(--text-primary) !important; font-weight: 500; }
.td-pts { color: var(--orange) !important; font-weight: 600; font-family: 'DM Mono', monospace; }
.td-rank { font-family: 'Bebas Neue', sans-serif; font-size: 16px; color: var(--text-muted); }
.td-rank.gold { color: var(--orange); }
.nrr-pos { color: var(--green); }
.nrr-neg { color: var(--red); }
.team-badge { display: flex; align-items: center; gap: 7px; }
.team-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.team-logo-xs {
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.team-initials-xs {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 3px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 14px;
  overflow-x: auto;
  box-shadow: var(--shadow);
}
.tab {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  border: none;
  background: none;
  color: var(--text-muted);
  transition: all .15s;
  white-space: nowrap;
}
.tab:hover { color: var(--text-primary); }
.tab.active {
  background: var(--navy-dark);
  color: var(--white);
  font-weight: 500;
}

/* ── TEAM CARD ── */
.team-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s;
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.team-logo-md {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.team-initials-md {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.team-card-name { font-size: 13px; font-weight: 500; color: var(--text-primary); line-height: 1.3; }
.team-card-year { font-size: 11px; color: var(--text-muted); }

/* ── AWARDS ── */
.award-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.award-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--orange), transparent);
}
.award-icon { font-size: 28px; margin-bottom: 8px; }
.award-title {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.award-winner {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.award-detail { font-size: 12px; color: var(--orange); }
.award-team { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ── FORMAT TIMELINE ── */
.format-flow {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 4px 0 8px;
}
.format-node {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
  flex-shrink: 0;
  min-width: 110px;
  box-shadow: var(--shadow);
}
.format-node-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text-primary);
}
.format-node-detail { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.format-arrow { color: var(--orange); font-size: 16px; padding: 0 6px; flex-shrink: 0; }

/* ── INFO CHIPS ── */
.info-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.info-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 4px 10px;
  border-radius: 20px;
}
.info-chip strong { color: var(--text-primary); }

/* ── LOADING ── */
.loading {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 14px;
}
.loading-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.2s ease-in-out infinite;
  margin: 0 2px;
}
.loading-dot:nth-child(2) { animation-delay: .2s; }
.loading-dot:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { 0%,100%{opacity:.3;transform:scale(.8)} 50%{opacity:1;transform:scale(1)} }

/* ── PAGE TRANSITION ── */
.page-content { animation: fadeSlide .2s ease; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ── YOUTUBE LINK ── */
.yt-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.yt-link:hover {
  background: rgba(255,0,0,0.15);
  border-color: rgba(255,0,0,0.35);
}
.yt-link svg { display: block; }

/* ── MOBILE HAMBURGER ── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  cursor: pointer;
  padding: 0 7px;
  flex-shrink: 0;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all .2s;
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 8px 16px 12px;
  gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--muted);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-menu a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.mobile-menu a.active { color: var(--orange-lt); background: rgba(232,130,12,0.1); }
.mobile-menu .menu-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 4px 0;
}
.mobile-menu .menu-year-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 4px;
}
.mobile-menu .menu-year-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 640px) {
  .burger { display: flex; }
  .nav-links { display: none !important; }
  .yt-link span { display: none; }
}
/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 3px; }
