/* ===== Tokens ===== */
:root {
  --green-900: #003d22;
  --green-800: #004d2a;
  --green-700: #006437;
  --green-600: #0b7a45;
  --gold: #c9a227;

  --bg: #f1f4f2;
  --surface: #ffffff;
  --surface-2: #f5f8f6;
  --line: #e1e8e4;
  --text: #0f1a14;
  --muted: #5b6a62;
  --accent: #006437;
  --accent-soft: #e2f1e8;
  --on-accent: #ffffff;

  --win: #15994a;
  --draw: #84909a;
  --loss: #d93b3b;

  --zone-lib: #15994a;
  --zone-pre: #7cc49a;
  --zone-sula: #2f7dd1;
  --zone-reb: #d93b3b;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 30, 15, .05), 0 6px 18px rgba(0, 40, 20, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tabbar-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08110c;
    --surface: #101c15;
    --surface-2: #16251c;
    --line: #213428;
    --text: #e5eee8;
    --muted: #93a69a;
    --accent: #34b870;
    --accent-soft: #163222;
    --on-accent: #04140b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #08110c;
  --surface: #101c15;
  --surface-2: #16251c;
  --line: #213428;
  --text: #e5eee8;
  --muted: #93a69a;
  --accent: #34b870;
  --accent-soft: #163222;
  --on-accent: #04140b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Topo ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  color: #fff;
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-800) 70%, var(--green-900) 100%);
  padding-top: env(safe-area-inset-top);
  box-shadow: 0 2px 12px rgba(0, 40, 20, .25);
}
.topbar-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-crest { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 18px; letter-spacing: .2px; }
.brand-text small { font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; gap: 4px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.topbar .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.topbar :focus-visible { outline-color: #fff; }
.icon-btn.spinning svg { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-line {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 8px;
  font-size: 12px;
  opacity: .9;
}

/* ===== Conteúdo ===== */
.view {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 16px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom));
  outline: none;
}
.view > * + * { margin-top: 16px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 2px 10px;
}
.section-head h2 { font-size: 17px; }
.view > .section-head + *, .view > .month + * { margin-top: 0; }
.view > .section-head { margin-top: 26px; }
.section-head a, .link-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ===== Destaque (próximo jogo / ao vivo) ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 16px;
  color: #fff;
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(201, 162, 39, .28) 0%, transparent 55%),
    linear-gradient(150deg, #0b7a45 0%, #005430 60%, #003d22 100%);
  box-shadow: 0 10px 28px rgba(0, 70, 35, .28);
}
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.hero-label { font-weight: 700; letter-spacing: .6px; text-transform: uppercase; font-size: 11px; opacity: .9; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, .16);
  white-space: nowrap;
}
.pill-live { background: #e0262f; color: #fff; }
.pill-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; } }
.hero-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 18px 0 14px;
}
.hero-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.hero-team img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.hero-team span { font-weight: 700; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.hero-mid { text-align: center; min-width: 92px; }
.hero-time { font-size: 30px; font-weight: 800; letter-spacing: .5px; }
.hero-score { font-size: 38px; font-weight: 800; letter-spacing: 1px; }
.hero-date { font-size: 13px; opacity: .9; text-transform: capitalize; }
.hero-note {
  font-size: 13px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .18);
  margin-bottom: 12px;
}
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13px; opacity: .92; }
.hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero-meta svg { width: 16px; height: 16px; }
.countdown {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 4px;
}
.countdown div {
  min-width: 58px;
  padding: 6px 4px;
  text-align: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
}
.countdown b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 11px; opacity: .85; text-transform: uppercase; letter-spacing: .4px; }
.hero-actions { display: flex; gap: 8px; margin-top: 14px; }
.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hero .btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); color: #fff; }
.hero .btn-primary { background: #fff; color: var(--green-700); border-color: #fff; }

/* ===== Cartões de competição ===== */
.comp-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 6px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  scrollbar-width: none;
}
.comp-strip::-webkit-scrollbar { display: none; }
.comp-card {
  flex: 0 0 auto;
  min-width: 150px;
  scroll-snap-align: start;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  border-top: 4px solid var(--c, var(--accent));
}
.comp-card .comp-name { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.comp-card .comp-status { font-size: 16px; font-weight: 800; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.comp-card .comp-extra { font-size: 12px; color: var(--muted); margin-top: 2px; }
.comp-card svg.trophy { width: 18px; height: 18px; color: var(--gold); }

/* ===== Forma / resultados ===== */
.res {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex: 0 0 auto;
}
.res-V { background: var(--win); }
.res-E { background: var(--draw); }
.res-D { background: var(--loss); }
.form-row { display: flex; gap: 6px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.stats-grid div { background: var(--surface); padding: 12px 6px; text-align: center; }
.stats-grid b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.stats-grid small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }

.aprov {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  display: flex;
}
.bar i { display: block; height: 100%; }

/* ===== Lista de jogos ===== */
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.seg button {
  border: 0;
  background: transparent;
  padding: 9px 8px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 12px -16px 0;
  padding: 0 16px 2px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); flex: 0 0 auto; }

.month { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin: 20px 4px 8px; }
.match-list { display: flex; flex-direction: column; gap: 8px; }
.match {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  border-left: 4px solid var(--c, var(--accent));
}
.match:active { transform: scale(.995); }
.match-meta {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--muted);
}
.match-meta b { color: var(--text); font-weight: 600; }
.match-teams { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mt-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mt-row img { width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; }
.mt-row .tn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.mt-row .tn.is-pal { color: var(--accent); }
.mt-row .sc { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; min-width: 18px; text-align: right; }
.mt-row .sc small { font-size: 11px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.match-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px; font-size: 13px; }
.match-side .time { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.match-side .live { color: #e0262f; font-weight: 800; }
.match-note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }

/* ===== Tabelas ===== */
.table-wrap { overflow-x: auto; }
table.standings { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.standings th {
  position: sticky;
  top: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: 10px 4px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.standings th.team-col { text-align: left; }
.standings td { padding: 8px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.standings tr:last-child td { border-bottom: 0; }
.standings td.pos { width: 34px; font-weight: 700; position: relative; }
.standings td.pos::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: var(--zone, transparent);
}
.standings td.team { text-align: left; }
.standings .tcell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.standings .tcell img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.standings .tcell span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.standings td.pts { font-weight: 800; }
.standings tr.is-pal td { background: var(--accent-soft); font-weight: 700; }
.standings .opt { display: none; }
@media (min-width: 480px) {
  .standings .opt { display: table-cell; }
  .standings .tcell span { max-width: 180px; }
}
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 12px 16px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

.card-title { padding: 14px 16px 0; font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-title small { font-weight: 500; color: var(--muted); font-size: 12px; }

.splits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.split { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; }
.split b { display: block; font-size: 14px; margin-bottom: 2px; }

/* ===== Elenco ===== */
.leaders { display: grid; gap: 12px; }
@media (min-width: 560px) { .leaders { grid-template-columns: 1fr 1fr; } }
.leader-card h3 { font-size: 14px; padding: 14px 16px 6px; display: flex; align-items: center; gap: 8px; }
.leader-row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 7px 16px; font-size: 14px; }
.leader-row:last-child { padding-bottom: 14px; }
.leader-row .rk { color: var(--muted); font-weight: 700; font-size: 13px; text-align: center; }
.leader-row .nm { min-width: 0; }
.leader-row .nm span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.leader-row .nm .bar { height: 5px; margin-top: 4px; }
.leader-row .nm .bar i { background: var(--accent); border-radius: 999px; }
.leader-row .vl { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }

.squad-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 14px 16px 6px; }
.player {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
}
.player .jn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.player .pn { min-width: 0; }
.player .pn b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .pn small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.player .pn small img { width: 16px; height: 11px; object-fit: cover; border-radius: 2px; }
.player .ps { display: flex; gap: 12px; font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }
.player .ps span { min-width: 22px; }
.player .ps small { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; }

/* ===== Notícias ===== */
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
}
.news.no-img { grid-template-columns: 1fr; }
.news.news-big { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
.news.news-big .news-img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
.news.news-big .news-text { padding: 12px 14px 14px; }
.news.news-big h3 { font-size: 18px; }
.news-text { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.news h3 { font-size: 15px; line-height: 1.3; }
.news p { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: auto; }
.news-img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }

.links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.link-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.link-tile svg { color: var(--accent); width: 20px; height: 20px; flex: 0 0 auto; }

/* ===== Painel inferior ===== */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 10, 5, .5);
  animation: fade .2s ease;
}
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  max-width: 680px;
  margin: 0 auto;
  max-height: 92vh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
  animation: slide-up .25s cubic-bezier(.2, .8, .2, 1);
}
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 18px; }
.sheet-head h2 { font-size: 17px; }
.sheet-body { overflow-y: auto; padding: 4px 16px calc(24px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.sheet-body > * + * { margin-top: 14px; }
@keyframes slide-up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.score-head { padding: 16px; text-align: center; }
.score-head .hero-teams { margin: 10px 0 6px; }
.score-head .hero-team img { width: 50px; height: 50px; }
.score-head .hero-team span { font-size: 14px; }
.score-head .hero-score { font-size: 34px; }

.timeline { list-style: none; margin: 0; padding: 6px 0; }
.timeline li { display: grid; grid-template-columns: 1fr 52px 1fr; align-items: center; gap: 8px; padding: 7px 14px; font-size: 14px; }
.timeline .min { text-align: center; font-weight: 700; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.timeline .ev-home { text-align: right; }
.timeline .ev small { display: block; color: var(--muted); font-size: 12px; }
.ev-ico { display: inline-block; vertical-align: -2px; margin: 0 4px; }
.card-y, .card-r { display: inline-block; width: 10px; height: 14px; border-radius: 2px; vertical-align: -2px; margin: 0 4px; }
.card-y { background: #f2c200; }
.card-r { background: #d93b3b; }

.stat-row { padding: 9px 16px; }
.stat-row .lbl { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; font-variant-numeric: tabular-nums; }
.stat-row .lbl span:nth-child(2) { color: var(--muted); font-size: 13px; }
.stat-row .lbl b { min-width: 34px; }
.stat-row .lbl b:last-child { text-align: right; }
.stat-row .bar { gap: 3px; background: transparent; }
.stat-row .bar i { border-radius: 999px; }
.stat-row .bar i.is-pal { background: var(--accent); }
.stat-row .bar i.is-opp { background: var(--draw); opacity: .55; }

.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.lineups > div { padding: 4px 0 10px; }
.lineups > div + div { border-left: 1px solid var(--line); }
.lineups h4 { margin: 10px 12px 6px; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.lineups h4 img { width: 18px; height: 18px; object-fit: contain; }
.lineups h4 small { color: var(--muted); font-weight: 600; }
.lineups ul { list-style: none; margin: 0; padding: 0; }
.lineups li { display: flex; gap: 6px; padding: 4px 12px; font-size: 13px; min-width: 0; }
.lineups li b { min-width: 20px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lineups li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lineups .sub-label { margin: 10px 12px 4px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.arrow-in { color: var(--win); font-weight: 800; }
.arrow-out { color: var(--loss); font-weight: 800; }

.menu-list { display: flex; flex-direction: column; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
}
.menu-item:first-child { border-top: 0; }
.menu-item svg { color: var(--accent); flex: 0 0 auto; }
.menu-item span { flex: 1; }
.menu-item small { color: var(--muted); }

/* ===== Estados ===== */
.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
  border: 1px solid var(--line);
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.empty, .error-box { padding: 24px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.error-box b { display: block; color: var(--text); margin-bottom: 4px; }
.error-box .btn { margin-top: 12px; flex: none; }

/* ===== Barra de abas ===== */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px max(6px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-right));
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 2px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.tabbar a[aria-current="page"] { color: var(--accent); }
.tabbar a[aria-current="page"] svg { stroke-width: 2.3; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 12px;
  background: #13241a;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  animation: fade .2s ease;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
