@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;700;800;900&display=swap');

:root {
  --bg: #050914;
  --panel: rgba(15, 25, 47, .93);
  --panel2: rgba(10, 16, 30, .98);
  --line: rgba(255, 255, 255, .12);
  --text: #fff;
  --muted: #9fa9bd;
  --gold: #d8a93a;
  --gold2: #ffd66a;
  --blue: #246bfe;
  --red: #df3349;
  --green: #16935e;
  --shadow: 0 26px 80px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 5%, rgba(36,107,254,.24), transparent 32%),
    radial-gradient(circle at 90% 0%, rgba(216,169,58,.25), transparent 30%),
    linear-gradient(180deg, #071126, var(--bg) 56%, #02040a);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 18px 24px;
  border-bottom: 1px solid rgba(216,169,58,.45);
}

.hero-admin { padding-bottom: 34px; }

.hero-glow {
  position: absolute;
  right: -120px;
  top: -150px;
  width: 440px;
  height: 440px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(216,169,58,.34), transparent 64%);
  filter: blur(12px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  width: 88px;
  min-width: 88px;
  height: 88px;
  border-radius: 26px;
  border: 2px solid var(--gold);
  color: var(--gold2);
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 900;
  background: linear-gradient(160deg, rgba(216,169,58,.16), rgba(36,107,254,.05));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 900;
}

h1, h2, h3 { margin: 0; line-height: 1.05; }

h1 {
  font-size: clamp(32px, 7vw, 66px);
  text-transform: uppercase;
  font-weight: 900;
}

h1 span, h3 span { color: var(--gold2); }

.subtitle, .meta, small { color: var(--muted); }

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.summary-strip {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.summary-strip div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}

.summary-strip strong {
  display: block;
  font-size: 26px;
  color: var(--gold2);
}

.summary-strip span {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 16px;
  background: rgba(4, 7, 15, .93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

button, .nav-link, .primary-btn, .secondary-btn, .danger-btn {
  border: 0;
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.nav-btn, .nav-link, .secondary-btn {
  color: var(--text);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(216,169,58,.44);
}

.nav-btn.active, .primary-btn {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #111827;
}

.danger-btn {
  background: linear-gradient(135deg, #ff6976, #cf2035);
  color: #fff;
}

.container {
  width: min(1180px, calc(100% - 28px));
  margin: auto;
  padding: 22px 0 52px;
}

.status, .helper-card {
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: var(--muted);
  margin-bottom: 16px;
}

.status-success { color: #82f4ab; border-color: rgba(130,244,171,.35); }
.status-error, .error { color: #ff8a8a; }

.panel { display: none; }
.panel.active { display: block; }

.section-head { margin: 24px 0 18px; }
.section-head h2 { font-size: clamp(28px, 5vw, 46px); }

.slot-card, .table-card, .ko-card, .award-card, .scorer-card, .admin-card, .auth-card, .tv-card {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.slot-card, .table-card, .admin-card, .auth-card, .tv-card {
  padding: 18px;
  margin-bottom: 16px;
}

.slot-head, .admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.pill {
  color: var(--gold2);
  border: 1px solid rgba(216,169,58,.38);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.match-row {
  display: grid;
  grid-template-columns: 145px 1fr 104px 1fr;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.match-row:last-child { border-bottom: 0; }

.match-row.is-live {
  background: rgba(223,51,73,.11);
  border: 1px solid rgba(223,51,73,.26);
  margin: 8px -10px;
  padding: 14px 10px;
  border-radius: 18px;
}

.match-row.is-live .match-meta::after {
  content: "● LIVE";
  display: inline-block;
  margin-left: 8px;
  color: #ff5367;
  font-weight: 900;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  50% { opacity: .45; }
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.group-A { background: var(--blue); }
.group-B { background: var(--red); }
.group-C { background: var(--green); }

.match-meta small {
  display: block;
  margin-top: 7px;
}

.team {
  font-size: 18px;
}

.team-away { text-align: right; }

.score-box {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  text-align: center;
  align-items: center;
  background: rgba(216,169,58,.12);
  color: var(--gold2);
  border-radius: 16px;
  padding: 10px;
  font-size: 24px;
  font-weight: 900;
}

.standings-grid, .knockout-grid, .award-grid, .scorer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.table-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  background: #fff;
  color: #111827;
  border-radius: 18px;
  overflow: hidden;
}

th, td {
  padding: 11px 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}

th {
  background: #111827;
  color: #fff;
  text-align: left;
}

tr.leader {
  background: #fff7df;
}

.ko-card, .award-card, .scorer-card {
  padding: 22px;
  min-height: 150px;
}

.ko-card.final, .award-card.premium {
  border-color: rgba(216,169,58,.7);
}

.scorer-card .rank {
  color: var(--gold2);
  font-weight: 900;
}

.scorer-card strong {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold2);
  font-size: 22px;
}

.auth-card {
  max-width: 460px;
  margin: 28px auto;
}

input, select {
  width: 100%;
  margin: 8px 0 14px;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  font-size: 16px;
}

.admin-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.hidden { display: none !important; }

.footer {
  text-align: center;
  color: var(--muted);
  padding: 30px 16px;
}

@media (max-width: 760px) {
  .hero-inner { align-items: flex-start; }
  .logo { width: 62px; min-width: 62px; height: 62px; border-radius: 18px; font-size: 18px; }
  .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-row { grid-template-columns: 1fr 90px 1fr; }
  .match-meta { grid-column: 1 / -1; }
  .team { font-size: 15px; }
  .team-away { text-align: left; }
  .score-box { font-size: 20px; }
  .admin-grid { grid-template-columns: 1fr; }
}

.match-block {
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.match-block:last-child {
  border-bottom: 0;
}

.match-block .match-row {
  border-bottom: 0;
}

.discipline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 0 0 12px 145px;
  margin-top: -4px;
}

.card-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.yellow-card,
.red-card {
  width: 10px;
  height: 15px;
  border-radius: 2px;
  display: inline-block;
}

.yellow-card {
  background: #ffd400;
}

.red-card {
  background: #ff2f45;
}

.discipline-row small {
  color: var(--muted);
}

@media (max-width: 760px) {
  .discipline-row {
    padding-left: 0;
  }
}

.logo {
  overflow: hidden;
  background: rgba(255,255,255,.06) !important;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  display: block;
}

.slot-card,
.table-card,
.ko-card,
.award-card,
.scorer-card,
.admin-card,
.tv-card {
  position: relative;
  overflow: hidden;
}

.slot-card::after,
.table-card::after,
.ko-card::after,
.award-card::after,
.scorer-card::after,
.admin-card::after,
.tv-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 120px;
  height: 120px;
  background: url("assets/logos/vvv-fc.jpeg") center / contain no-repeat;
  opacity: .055;
  pointer-events: none;
  filter: saturate(1.1);
}

.footer::before {
  content: "";
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  background: url("assets/logos/vvv-fc.jpeg") center / contain no-repeat;
  border-radius: 14px;
}


/* v4.2.1 logo fix */
.logo {
  width: 88px;
  min-width: 88px;
  height: 88px;
  padding: 6px !important;
  overflow: visible !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(255,255,255,.06) !important;
}

.logo img,
.hero-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 12px;
  display: block;
}

@media (max-width: 760px) {
  .logo {
    width: 66px;
    min-width: 66px;
    height: 66px;
    padding: 5px !important;
  }
}


/* v4.3 Build 1: team logos and premium card polish */
.team-logo-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.team-logo-name--away {
  justify-content: flex-end;
}

.team-crest {
  width: 44px;
  height: 44px;
  min-width: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.2);
  padding: 4px;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

.mini-crest {
  width: 26px;
  height: 26px;
  min-width: 26px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.18);
  padding: 2px;
}

.crest-placeholder {
  display: inline-grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  font-size: 11px;
  font-weight: 900;
}

.standings-team {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.ko-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ko-team em {
  font-style: normal;
}

.admin-versus {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
}

.admin-versus b {
  color: var(--gold2);
}

.match-row {
  grid-template-columns: 150px minmax(0, 1fr) 104px minmax(0, 1fr);
}

.table-card::before,
.slot-card::before,
.admin-card::before,
.ko-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255,255,255,.05), transparent 36%);
  pointer-events: none;
}

.slot-card, .table-card, .ko-card, .admin-card {
  position: relative;
}

@media (max-width: 760px) {
  .match-row {
    grid-template-columns: 1fr 90px 1fr;
  }
  .match-meta {
    grid-column: 1 / -1;
  }
  .team-logo-name {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .team-logo-name--away {
    align-items: flex-end;
    text-align: right;
  }
  .team-crest {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
}



/* ==========================================================
   v6.1 PREMIUM — FIFA APP + LUXURY NAVY/GOLD
   Visual redesign only; core Firebase/admin logic remains stable.
========================================================== */

:root {
  --p-bg: #eef2f7;
  --p-surface: #ffffff;
  --p-ink: #0b1731;
  --p-muted: #66728a;
  --p-navy: #06142d;
  --p-navy-2: #0b2145;
  --p-gold: #f4c95d;
  --p-gold-deep: #b98a25;
  --p-red: #e9284f;
  --p-green: #16a76a;
  --p-line: #dce3ed;
  --p-shadow: 0 20px 55px rgba(13, 29, 58, .12);
}

body {
  background:
    radial-gradient(circle at 0% 0%, rgba(41, 121, 255, .10), transparent 26%),
    linear-gradient(180deg, #f8fafc 0%, var(--p-bg) 100%) !important;
  color: var(--p-ink) !important;
}

.hero {
  min-height: auto !important;
  padding: 28px 22px 24px !important;
  background:
    radial-gradient(circle at 85% 10%, rgba(244, 201, 93, .22), transparent 28%),
    linear-gradient(130deg, #06142d 0%, #0b2145 58%, #07152f 100%) !important;
  border-bottom: 4px solid var(--p-gold) !important;
  box-shadow: 0 16px 45px rgba(6, 20, 45, .22);
}

.hero-inner {
  max-width: 1180px !important;
  margin: 0 auto !important;
}

.hero-glow {
  opacity: .18 !important;
}

.logo {
  background: #fff !important;
  border: 1px solid rgba(255,255,255,.65) !important;
  box-shadow: 0 14px 35px rgba(0,0,0,.28) !important;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .subtitle {
  color: #fff !important;
}

.hero-copy h1 span {
  color: var(--p-gold) !important;
}

.hero-actions .primary-btn {
  background: var(--p-gold) !important;
  color: var(--p-navy) !important;
  box-shadow: 0 10px 28px rgba(244, 201, 93, .28) !important;
}

.hero-actions .secondary-btn {
  color: #fff !important;
  border-color: rgba(255,255,255,.32) !important;
  background: rgba(255,255,255,.07) !important;
}

.summary-strip {
  max-width: 1180px !important;
  margin: 22px auto 0 !important;
  gap: 12px !important;
}

.summary-strip > div {
  background: rgba(255,255,255,.97) !important;
  border: 1px solid rgba(255,255,255,.55) !important;
  box-shadow: 0 14px 32px rgba(0,0,0,.16) !important;
  border-radius: 18px !important;
  position: relative;
  overflow: hidden;
}

.summary-strip > div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--p-gold), var(--p-gold-deep));
}

.summary-strip strong {
  color: var(--p-navy) !important;
}

.summary-strip span {
  color: var(--p-muted) !important;
}

.nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--p-line) !important;
  box-shadow: 0 10px 28px rgba(13,29,58,.08) !important;
  padding: 12px max(18px, calc((100vw - 1180px)/2)) !important;
}

.nav-btn,
.nav-link {
  color: var(--p-muted) !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  border-radius: 12px !important;
  font-weight: 850 !important;
}

.nav-btn.active {
  color: var(--p-navy) !important;
  background: linear-gradient(135deg, #ffe08a, var(--p-gold)) !important;
  box-shadow: 0 8px 20px rgba(244,201,93,.25) !important;
}

.nav-link {
  color: var(--p-navy) !important;
  border-color: var(--p-line) !important;
  background: #f8fafc !important;
}

.container {
  max-width: 1180px !important;
  padding-top: 28px !important;
}

.status {
  background: #fff !important;
  color: var(--p-muted) !important;
  border: 1px solid var(--p-line) !important;
  box-shadow: 0 8px 22px rgba(13,29,58,.06) !important;
}

.status-success {
  color: #087247 !important;
  border-color: rgba(22,167,106,.25) !important;
  background: #f3fff9 !important;
}

.status-error {
  color: #b31332 !important;
  border-color: rgba(233,40,79,.25) !important;
  background: #fff5f7 !important;
}

.section-head .eyebrow {
  color: var(--p-gold-deep) !important;
}

.section-head h2 {
  color: var(--p-navy) !important;
}

/* Live score: clean FIFA-app cards */
.slot-card {
  background: #fff !important;
  border: 1px solid var(--p-line) !important;
  border-radius: 22px !important;
  box-shadow: var(--p-shadow) !important;
  padding: 22px !important;
  margin-bottom: 20px !important;
}

.slot-head {
  border-bottom: 1px solid var(--p-line) !important;
  padding-bottom: 14px !important;
}

.slot-head h3 {
  color: var(--p-navy) !important;
}

.pill {
  background: #fff8df !important;
  color: #8a6514 !important;
  border: 1px solid #f2dda3 !important;
}

.match-block {
  margin-top: 14px !important;
}

.match-row {
  background: #f8fafc !important;
  border: 1px solid #e5eaf2 !important;
  border-radius: 18px !important;
  padding: 18px !important;
  box-shadow: none !important;
}

.match-row.is-live {
  background: linear-gradient(90deg, #fff2f5, #fff) !important;
  border-color: rgba(233,40,79,.32) !important;
  box-shadow: inset 4px 0 0 var(--p-red) !important;
}

.match-row.is-finished {
  opacity: 1 !important;
  background: #f5f7fa !important;
}

.match-meta small {
  color: var(--p-muted) !important;
}

.team {
  color: var(--p-navy) !important;
  font-weight: 900 !important;
}

.team-crest,
.mini-crest {
  background: #fff !important;
  border: 1px solid #dce3ed !important;
  box-shadow: 0 8px 18px rgba(13,29,58,.10) !important;
}

.score-box {
  background: linear-gradient(145deg, var(--p-navy), var(--p-navy-2)) !important;
  color: var(--p-gold) !important;
  border: 1px solid rgba(244,201,93,.28) !important;
  border-radius: 15px !important;
  box-shadow: 0 12px 26px rgba(6,20,45,.22) !important;
}

/* Standings: luxury navy + gold */
.table-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(244,201,93,.10), transparent 30%),
    linear-gradient(145deg, #07162f, #0a2146) !important;
  color: #fff !important;
  border: 1px solid rgba(244,201,93,.26) !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 55px rgba(6,20,45,.20) !important;
}

.table-title {
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
}

.table-title small {
  color: rgba(255,255,255,.58) !important;
}

.table-card table,
.table-card th,
.table-card td {
  color: #fff !important;
}

.table-card thead th {
  color: var(--p-gold) !important;
  border-bottom-color: rgba(244,201,93,.20) !important;
}

.table-card tbody tr {
  background: rgba(255,255,255,.035) !important;
}

.table-card tbody tr.leader {
  background: linear-gradient(90deg, rgba(244,201,93,.18), rgba(255,255,255,.035)) !important;
  box-shadow: inset 3px 0 0 var(--p-gold);
}

/* Knockout: luxury cards */
.ko-card {
  background: linear-gradient(145deg, #07162f, #0a2146) !important;
  color: #fff !important;
  border: 1px solid rgba(244,201,93,.24) !important;
  border-radius: 22px !important;
  box-shadow: 0 20px 45px rgba(6,20,45,.18) !important;
}

.ko-card h3,
.ko-card p,
.ko-card small {
  color: #fff !important;
}

.ko-card .eyebrow {
  color: var(--p-gold) !important;
}

.ko-card.final {
  background:
    radial-gradient(circle at 50% 0%, rgba(244,201,93,.22), transparent 38%),
    linear-gradient(145deg, #07162f, #0a2146) !important;
  border-color: var(--p-gold) !important;
}

/* Stats / awards: premium white */
.scorer-card,
.award-card,
.tv-card,
.helper-card,
.auth-card,
.admin-card {
  background: #fff !important;
  color: var(--p-ink) !important;
  border: 1px solid var(--p-line) !important;
  border-radius: 22px !important;
  box-shadow: var(--p-shadow) !important;
}

.scorer-card h3,
.award-card h3,
.auth-card h2,
.admin-card h3 {
  color: var(--p-navy) !important;
}

.scorer-card p,
.award-card p,
.admin-card p {
  color: var(--p-muted) !important;
}

/* Admin */
.hero-admin {
  border-bottom-color: var(--p-gold) !important;
}

.auth-card input,
.admin-card input,
.admin-card select {
  background: #f8fafc !important;
  color: var(--p-navy) !important;
  border: 1px solid #d8e0ea !important;
  border-radius: 12px !important;
}

.admin-bar {
  background: #fff !important;
  border: 1px solid var(--p-line) !important;
  border-radius: 18px !important;
  box-shadow: var(--p-shadow) !important;
  padding: 12px !important;
}

.danger-btn {
  border-radius: 12px !important;
}

.footer {
  background: var(--p-navy) !important;
  color: rgba(255,255,255,.72) !important;
  border-top: 3px solid var(--p-gold) !important;
}

/* Mobile: app-like presentation */
@media (max-width: 760px) {
  .hero {
    padding: 20px 15px 18px !important;
  }

  .hero-inner {
    gap: 14px !important;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 9vw, 46px) !important;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .nav {
    overflow-x: auto !important;
    padding: 10px 12px !important;
    gap: 8px !important;
  }

  .nav-btn,
  .nav-link {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .container {
    padding: 20px 12px 40px !important;
  }

  .slot-card {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .match-row {
    padding: 14px 10px !important;
  }

  .team-crest {
    width: 54px !important;
    height: 54px !important;
  }

  .team {
    font-size: 17px !important;
  }

  .score-box {
    min-width: 78px !important;
  }
}



/* ==========================================================
   v6.1.1 FINAL FIX — STANDINGS VISIBILITY + MOBILE TABLE
========================================================== */

/* Prevent white row backgrounds from hiding white text in premium standings */
.table-card .table-wrap {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
}

.table-card table {
  width: 100% !important;
  min-width: 590px !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: transparent !important;
}

.table-card thead tr,
.table-card tbody tr,
.table-card tbody tr.leader {
  background: transparent !important;
}

.table-card thead th {
  background: #071328 !important;
  color: #f4c95d !important;
  border-bottom: 1px solid rgba(244,201,93,.28) !important;
  padding: 12px 10px !important;
  white-space: nowrap !important;
}

.table-card tbody td {
  background: rgba(255,255,255,.045) !important;
  color: #f7f9fc !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  padding: 12px 10px !important;
  white-space: nowrap !important;
}

.table-card tbody tr:nth-child(even) td {
  background: rgba(255,255,255,.075) !important;
}

.table-card tbody tr.leader td {
  background: linear-gradient(
    90deg,
    rgba(244,201,93,.24),
    rgba(244,201,93,.10)
  ) !important;
  color: #ffffff !important;
}

.table-card tbody td:first-child {
  color: #f4c95d !important;
  font-weight: 900 !important;
}

.table-card .mini-team {
  color: #ffffff !important;
  font-weight: 800 !important;
}

.table-card .mini-crest {
  background: #ffffff !important;
  border: 1px solid rgba(255,255,255,.55) !important;
}

/* Mobile table remains readable and scrollable */
@media (max-width: 760px) {
  .table-card {
    padding: 14px !important;
    overflow: hidden !important;
  }

  .table-card table {
    min-width: 560px !important;
    font-size: 13px !important;
  }

  .table-card thead th,
  .table-card tbody td {
    padding: 10px 8px !important;
  }

  .table-card .mini-crest {
    width: 34px !important;
    height: 34px !important;
  }
}



/* ==========================================================
   v6.2 EXPORT CENTER
========================================================== */
.export-center {
  margin: 18px 0 28px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 24px;
  align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 201, 93, .16), transparent 35%),
    linear-gradient(135deg, #07162f, #0a2146);
  border: 1px solid rgba(244, 201, 93, .28);
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(6, 20, 45, .18);
  color: #fff;
}

.export-center .eyebrow {
  color: #f4c95d !important;
  margin-bottom: 4px;
}

.export-center h2 {
  margin: 0 0 7px;
  color: #fff !important;
}

.export-center p {
  margin: 0;
  color: rgba(255,255,255,.72) !important;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.export-btn {
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 13px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.export-btn:hover {
  transform: translateY(-1px);
}

.export-pdf {
  background: linear-gradient(135deg, #ff4b68, #d91f43);
  color: #fff;
  box-shadow: 0 10px 24px rgba(217, 31, 67, .25);
}

.export-excel {
  background: linear-gradient(135deg, #3acb83, #12844f);
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 132, 79, .25);
}

.export-note {
  grid-column: 1 / -1;
  color: rgba(255,255,255,.58);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .export-center {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .export-actions {
    justify-content: stretch;
  }

  .export-btn {
    flex: 1 1 145px;
  }
}
