/* ================================================================
   BRASIL 90 — dark editorial premium futebol brasileiro
   ================================================================ */

:root {
  /* Palette — almost-black base with Brazil flag accents */
  --ink-000: #050608;
  --ink-050: #0a0c10;
  --ink-100: #0f1217;
  --ink-200: #161a21;
  --ink-300: #1d222b;
  --ink-400: #262c37;
  --ink-500: #353c49;
  --ink-600: #4a5260;
  --ink-700: #6b7280;
  --paper:   #e9edf3;
  --paper-2: #c6ccd6;
  --paper-3: #8b93a1;

  /* Brazil */
  --br-green:  #00a651;
  --br-green-2:#04733a;
  --br-yellow: #febd00;
  --br-yellow-2:#ffd24a;
  --br-blue:   #002776;
  --br-blue-2: #0a3aa8;

  --accent: var(--br-yellow);
  --accent-hot: #ff4d4f;

  --radius-sm: 6px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --max: 1320px;
  --gap:  28px;

  --font-display: "Archivo Black", "Bebas Neue", system-ui, sans-serif;
  --font-condensed: "Bebas Neue", "Archivo Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(0,166,81,0.07), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(254,189,0,0.06), transparent 60%),
    var(--ink-000);
  color: var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ================================================================
   TOP BAR
   ================================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,6,8,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 22px; height: 22px;
  display: inline-flex; flex-direction: column; gap: 2px;
}
.brand-mark-bar { display:block; height: 6px; border-radius: 2px; }
.brand-mark-bar--green  { background: var(--br-green);  width: 22px; }
.brand-mark-bar--yellow { background: var(--br-yellow); width: 16px; }
.brand-mark-bar--blue   { background: var(--br-blue);   width: 22px; }
.brand-word {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.04em;
  color: var(--paper);
}
.brand-word em {
  font-style: normal;
  color: var(--br-yellow);
}
.brand-beta {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--paper-3);
  text-transform: uppercase;
}

.topnav {
  display: flex; align-items: center; gap: 4px;
  margin-left: 8px;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--paper-3);
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.topnav-btn:hover { color: var(--paper); background: rgba(255,255,255,0.04); }
.topnav-btn.is-active {
  background: rgba(254,189,0,0.12);
  color: var(--br-yellow);
}
.topnav-btn img { width: 16px; height: 16px; object-fit: contain; filter: brightness(1.05); }

.topbar-meta {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ed573;
  box-shadow: 0 0 0 4px rgba(46,213,115,0.18);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(46,213,115,0.18); }
  50%      { box-shadow: 0 0 0 9px rgba(46,213,115,0.02); }
}
.topbar-meta-text { font-size: 12.5px; color: var(--paper-3); letter-spacing: 0.02em; }
.refresh-btn {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--paper-2);
  transition: background .15s, color .15s, transform .4s;
}
.refresh-btn:hover { background: rgba(255,255,255,0.05); color: var(--paper); }
.refresh-btn.is-spinning { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   LAYOUT
   ================================================================ */
.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 80px;
}

.section { margin-top: 56px; }
.section-head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.section-head--inline { padding-bottom: 8px; }
.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--paper);
}
.section-title--sm { font-size: 16px; letter-spacing: 0.02em; }
.section-sub {
  color: var(--paper-3);
  font-size: 13px;
}

/* ================================================================
   HERO ROW
   ================================================================ */
.hero-row {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: var(--gap);
}

.hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  background: var(--ink-100);
  isolation: isolate;
  border: 1px solid rgba(255,255,255,0.05);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('./public/hero-stadium.png');
  background-size: cover;
  background-position: center 40%;
  filter: contrast(1.05) saturate(0.92);
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(5,6,8,0.55) 50%, rgba(5,6,8,0.95) 100%),
    linear-gradient(90deg, rgba(5,6,8,0.85) 0%, rgba(5,6,8,0.35) 55%, rgba(5,6,8,0.15) 100%);
  z-index: 1;
}
.hero-body {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  padding: 32px 36px;
  width: 100%;
  gap: 18px;
}
.hero-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--paper);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.chip--countdown { background: rgba(254,189,0,0.14); color: var(--br-yellow); border-color: rgba(254,189,0,0.35); }
.chip--countdown strong { font-family: var(--font-condensed); font-weight: 400; font-size: 14px; letter-spacing: 0.04em; }
.chip-icon { font-size: 13px; }
.chip-label { color: rgba(254,189,0,0.78); font-size: 11.5px; }
.chip--meta { background: rgba(255,255,255,0.06); color: var(--paper-2); border-color: rgba(255,255,255,0.08); font-size: 11px; }
.chip--round {
  background: rgba(0,166,81,0.16);
  color: #6fe3a4;
  border-color: rgba(0,166,81,0.32);
  font-family: var(--font-condensed);
  letter-spacing: 0.06em;
  font-size: 13px;
  font-weight: 400;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.88;
  letter-spacing: -0.025em;
  margin: 10px 0 0;
  color: var(--paper);
  text-transform: uppercase;
}
.hero-year { color: var(--br-yellow); }
.hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--paper-2);
  max-width: 540px;
  margin: 0;
}
.hero-foot {
  margin-top: auto;
  display: flex; align-items: center; gap: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-logo-wrap {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.94);
  border-radius: 14px;
  padding: 8px;
  flex-shrink: 0;
}
.hero-logo-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-meta-line {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 13px;
}
.hero-meta-key {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--paper-3);
}
.hero-meta-line span:last-child {
  color: var(--paper);
  font-weight: 500;
}

/* MATTERS card */
.matters {
  background: linear-gradient(180deg, var(--ink-100) 0%, var(--ink-050) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 26px 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  overflow: hidden;
}
.matters::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--br-green), var(--br-yellow), var(--br-blue));
  opacity: 0.7;
}
.matters-head {
  display: flex; align-items: center; gap: 10px;
  color: var(--br-yellow);
}
.matters-icon { font-size: 14px; }
.matters-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
}
.matters-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--paper);
}
.matters-body {
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--paper-2);
  margin: 0;
}
.matters-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.matters-progress { display: flex; gap: 6px; }
.matters-progress-dot {
  width: 22px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.18);
  transition: background .15s;
}
.matters-progress-dot.is-on { background: var(--br-yellow); }
.matters-source {
  font-size: 11px;
  color: var(--paper-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ================================================================
   TICKER
   ================================================================ */
.ticker-wrap {
  margin-top: 18px;
  background: var(--ink-100);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 12px 18px;
  overflow: hidden;
  position: relative;
}
.ticker-wrap::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--ink-100));
  pointer-events: none;
}
.ticker {
  display: flex; align-items: center; gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ticker::-webkit-scrollbar { display: none; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-rank {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 400;
  color: var(--paper-3);
  letter-spacing: 0.08em;
}
.ticker-crest {
  width: 22px; height: 22px;
  background: rgba(255,255,255,0.92);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  padding: 2px;
  flex-shrink: 0;
}
.ticker-crest img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ticker-name {
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.ticker-form { display: inline-flex; gap: 3px; }
.form-dot {
  width: 16px; height: 16px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-000);
  letter-spacing: 0;
}
.form-dot--W { background: #34c759; }
.form-dot--D { background: #b0b6c0; }
.form-dot--L { background: #ff4d4f; color: #fff; }

/* ================================================================
   BIGCARDS (Who leads grid)
   ================================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.bigcard {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 460px;
  display: flex; flex-direction: column;
  background: var(--ink-100);
  border: 1px solid rgba(255,255,255,0.06);
  isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .35s;
}
.bigcard:hover { transform: translateY(-3px); border-color: rgba(254,189,0,0.25); }
.bigcard-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform .8s ease;
}
.bigcard:hover .bigcard-bg { transform: scale(1.04); }
.bigcard-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,6,8,0.25) 0%, rgba(5,6,8,0.7) 55%, rgba(5,6,8,0.96) 100%);
  z-index: 1;
}
.bigcard-body {
  position: relative; z-index: 2;
  padding: 22px 22px 18px;
  display: flex; flex-direction: column;
  flex: 1;
  gap: 14px;
}
.bigcard-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 10px;
  border-radius: 999px;
  width: fit-content;
  font-size: 11.5px;
  color: var(--paper);
  backdrop-filter: blur(6px);
}
.bigcard-eyebrow-dot { color: var(--br-yellow); font-size: 8px; }
.bigcard-title {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 0.95;
  letter-spacing: -0.012em;
  margin: 4px 0 0;
  color: var(--paper);
  text-transform: uppercase;
}
.bigcard-list {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.bigcard-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: rgba(15,18,23,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  backdrop-filter: blur(6px);
}
.bigcard-row-crest {
  width: 22px; height: 22px;
  background: rgba(255,255,255,0.96);
  border-radius: 5px;
  padding: 2px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bigcard-row-crest img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bigcard-row-name {
  flex: 1;
  font-size: 13.5px;
  color: var(--paper);
  font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bigcard-row-stat {
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 2px 10px;
  border-radius: 7px;
}
.bigcard-row-stat--gold { background: rgba(254,189,0,0.18); color: var(--br-yellow); border: 1px solid rgba(254,189,0,0.4); }
.bigcard-row-stat--green { background: rgba(0,166,81,0.18); color: #6fe3a4; border: 1px solid rgba(0,166,81,0.4); }
.bigcard-row-stat--red { background: rgba(255,77,79,0.16); color: #ff7a7c; border: 1px solid rgba(255,77,79,0.36); }
.bigcard-more {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 6px;
  color: var(--paper-2);
  font-size: 12.5px;
  font-weight: 500;
  transition: color .15s;
}
.bigcard-more::after { content: " →"; }
.bigcard-more:hover { color: var(--br-yellow); }
.bigcard-foot {
  position: relative; z-index: 2;
  padding: 14px 22px;
  background: rgba(0,0,0,0.45);
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: space-between;
}
.bigcard-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--paper-3);
}
.icon-btn {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--paper-3);
  transition: color .15s, background .15s;
}
.icon-btn:hover { color: var(--paper); background: rgba(255,255,255,0.06); }

/* ================================================================
   SPOTLIGHT
   ================================================================ */
.spotlight-grid {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: var(--gap);
}
.spotlight-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ink-100);
  border: 1px solid rgba(255,255,255,0.06);
  isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 540px;
}
.spotlight-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(0.85) contrast(1.05);
  z-index: 0;
}
.spotlight-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,6,8,0.35) 0%, rgba(5,6,8,0.75) 60%, rgba(5,6,8,0.97) 100%);
  z-index: 1;
}
.spotlight-top {
  position: relative; z-index: 2;
  display: flex; gap: 10px; padding: 22px 26px 0;
}
.chip--countdown--inline {
  background: rgba(0,0,0,0.5);
  color: var(--paper);
  border-color: rgba(255,255,255,0.16);
}
.chip--countdown--inline strong { color: var(--br-yellow); }

.spotlight-fixture {
  position: relative; z-index: 2;
  padding: 36px 26px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}
.fix-team {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.fix-team--away { align-items: flex-end; text-align: right; }
.fix-crest {
  width: 68px; height: 68px;
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.fix-crest img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fix-name {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--paper);
  text-transform: uppercase;
}
.fix-form { display: inline-flex; gap: 3px; }

.fix-vs {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 120px;
}
.fix-vs-text {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--br-yellow);
  letter-spacing: 0.04em;
}
.fix-venue {
  font-size: 11.5px;
  color: var(--paper-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  max-width: 160px;
}
.fix-date {
  font-family: var(--font-condensed);
  font-size: 15px;
  color: var(--paper-3);
  letter-spacing: 0.06em;
}

.spotlight-momentum {
  position: relative; z-index: 2;
  margin: 18px 24px 0;
  padding: 14px 16px;
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.momentum-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.momentum-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper-3);
}
.momentum-rows { display: flex; flex-direction: column; gap: 8px; }
.momentum-row {
  display: flex; align-items: center; gap: 12px;
}
.momentum-team {
  flex: 0 0 130px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  color: var(--paper);
  font-weight: 600;
}
.momentum-team-crest {
  width: 18px; height: 18px;
  background: rgba(255,255,255,0.92);
  border-radius: 4px;
  padding: 1.5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.momentum-team-crest img { max-width: 100%; max-height: 100%; object-fit: contain; }
.momentum-form { display: flex; gap: 4px; }
.momentum-stat {
  margin-left: auto;
  font-family: var(--font-condensed);
  font-size: 13px;
  color: var(--paper-2);
  letter-spacing: 0.06em;
}

.spotlight-foot {
  position: relative; z-index: 2;
  padding: 14px 26px;
  background: rgba(0,0,0,0.55);
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: space-between;
}
.chip-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--paper-3);
}

/* INSIGHT panel */
.insight {
  background: linear-gradient(180deg, var(--ink-100) 0%, var(--ink-050) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 26px 26px;
  display: flex; flex-direction: column;
  gap: 18px;
  position: relative; overflow: hidden;
}
.insight::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--br-yellow), var(--br-green));
  opacity: 0.7;
}
.insight-head {
  display: flex; align-items: center; gap: 10px;
  color: var(--br-yellow);
}
.insight-icon { font-size: 14px; }
.insight-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
}
.insight-list { display: flex; flex-direction: column; gap: 18px; }
.insight-item {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.insight-item:last-child { border-bottom: 0; padding-bottom: 0; }
.insight-h {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.2;
  color: var(--paper);
  letter-spacing: -0.005em;
  margin: 0 0 8px;
}
.insight-b {
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--paper-2);
  margin: 0;
}

/* ================================================================
   TABLE + FIXTURES
   ================================================================ */
.table-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: var(--gap);
}
.table-wrap {
  background: var(--ink-100);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.ftable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.ftable thead th {
  position: sticky; top: 0;
  background: var(--ink-200);
  padding: 14px 8px;
  color: var(--paper-3);
  font-weight: 600;
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ftable .ftable-rank { width: 38px; text-align: center; }
.ftable .ftable-team { text-align: left; padding-left: 14px; }
.ftable .ftable-num { width: 42px; text-align: center; }
.ftable .ftable-form { width: 110px; text-align: center; }

.ftable tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background .12s;
}
.ftable tbody tr:hover { background: rgba(255,255,255,0.03); }
.ftable tbody td {
  padding: 11px 8px;
  text-align: center;
  color: var(--paper-2);
}
.ftable td.ftable-team { padding-left: 14px; text-align: left; }
.ftable td.ftable-num { font-family: var(--font-condensed); font-size: 16px; letter-spacing: 0.02em; }
.ftable td.ftable-form { padding: 11px 6px; }
.ftable .row-team {
  display: flex; align-items: center; gap: 10px;
}
.ftable .row-team-crest {
  width: 22px; height: 22px;
  background: rgba(255,255,255,0.96);
  border-radius: 5px; padding: 2px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ftable .row-team-crest img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ftable .row-team-name {
  color: var(--paper); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 220px;
}
.ftable .row-team-desc {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-3);
  font-weight: 500;
  margin-top: 1px;
}
.row-rank-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 7px;
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 400;
  background: rgba(255,255,255,0.05);
  color: var(--paper);
}
.row-rank-pill--gold { background: linear-gradient(135deg, #febd00, #c98800); color: #1c1300; }
.row-rank-pill--liberta { background: rgba(0, 166, 81, 0.16); color: #6fe3a4; border: 1px solid rgba(0,166,81,0.3); }
.row-rank-pill--sul { background: rgba(0,39,118,0.32); color: #93b4ff; border: 1px solid rgba(0,39,118,0.55); }
.row-rank-pill--rele { background: rgba(255,77,79,0.16); color: #ff7a7c; border: 1px solid rgba(255,77,79,0.36); }
.row-form { display: inline-flex; gap: 3px; justify-content: center; }
.row-form .form-dot { width: 14px; height: 14px; font-size: 8.5px; }

/* Fixtures lists */
.fixtures-list {
  display: flex; flex-direction: column;
}
.upcoming, .recent {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: flex; flex-direction: column; gap: 8px;
}
.fixture-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--ink-100);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  transition: border-color .15s, background .15s;
}
.fixture-row:hover { border-color: rgba(254,189,0,0.2); }
.fixture-team {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  color: var(--paper);
  font-weight: 600;
  min-width: 0;
}
.fixture-team--away { justify-content: flex-end; text-align: right; }
.fixture-team-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fixture-team-crest {
  width: 20px; height: 20px;
  background: rgba(255,255,255,0.94);
  border-radius: 5px; padding: 2px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fixture-team-crest img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fixture-mid {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 70px;
}
.fixture-time {
  font-family: var(--font-condensed);
  font-size: 14px;
  color: var(--br-yellow);
  letter-spacing: 0.04em;
}
.fixture-score {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--paper);
  letter-spacing: 0.02em;
}
.fixture-date {
  font-size: 10px;
  color: var(--paper-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.fixture-result-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
  margin-left: 4px;
  vertical-align: middle;
}
.fixture-result-dot--W { background: #34c759; }
.fixture-result-dot--D { background: #b0b6c0; }
.fixture-result-dot--L { background: #ff4d4f; }

/* ================================================================
   PAGE FOOT
   ================================================================ */
.page-foot {
  margin-top: 80px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 6px;
}
.page-foot-line {
  font-size: 12px;
  color: var(--paper-3);
  letter-spacing: 0.02em;
}
.page-foot-line--meta { font-size: 11px; color: var(--ink-700); }
.page-foot code {
  background: rgba(255,255,255,0.05);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--paper-2);
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 11px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .hero-row { grid-template-columns: 1fr; }
  .matters { min-height: 260px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid > :last-child { grid-column: span 2; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .table-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main { padding: 18px 14px 60px; }
  .topbar-inner { padding: 12px 14px; gap: 10px; }
  .brand-beta { display: none; }
  .topnav { order: 3; width: 100%; margin-left: 0; padding-top: 4px; border-top: 1px solid rgba(255,255,255,0.05); }
  .topbar-meta-text { display: none; }

  .hero { min-height: 380px; }
  .hero-body { padding: 22px 22px; }
  .hero-title { font-size: clamp(40px, 11vw, 64px); }
  .hero-sub { font-size: 15px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-meta { gap: 14px; }

  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid > :last-child { grid-column: auto; }
  .bigcard { min-height: 420px; }
  .bigcard-title { font-size: 28px; }

  .spotlight-card { min-height: auto; }
  .spotlight-fixture { padding: 28px 18px 20px; grid-template-columns: 1fr; gap: 14px; }
  .fix-team, .fix-team--away { align-items: center; text-align: center; }
  .fix-vs { order: -1; min-width: 0; flex-direction: row; gap: 12px; }
  .fix-vs-text { font-size: 22px; }
  .fix-venue { font-size: 10.5px; }
  .fix-date { font-size: 13px; }
  .fix-name { font-size: 22px; }

  .momentum-team { flex: 0 0 96px; font-size: 11.5px; }
  .momentum-stat { font-size: 12px; }

  .ftable { font-size: 12px; }
  .ftable .ftable-num { width: 32px; }
  .ftable td.ftable-num { font-size: 14px; padding: 9px 4px; }
  .ftable .row-team-name { max-width: 110px; }
  .ftable .ftable-form { display: none; }
  .ftable thead th.ftable-form { display: none; }
}
