/* ══════════════════════════════════════════════════
   VARIABLES & RESET
══════════════════════════════════════════════════ */
:root {
  /* Base clara */
  --bg: oklch(0.97 0.005 145);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.95 0.008 145);
  --ink: oklch(0.15 0.02 145);
  --text: oklch(0.3 0.015 145);
  --muted: oklch(0.55 0.01 145);
  --border: oklch(0.88 0.012 145);

  /* Brand */
  --brand: oklch(0.52 0.18 145);
  --brand-dark: oklch(0.38 0.16 145);
  --brand-light: oklch(0.93 0.06 145);

  /* Estado */
  --win: var(--brand);
  --win-light: var(--brand-light);
  --loss: oklch(0.52 0.22 25);
  --green: var(--brand);
  --green-light: var(--brand-light);
  --red: oklch(0.52 0.22 25);
  --red-light: oklch(0.94 0.06 25);

  /* Ouro */
  --gold: oklch(0.72 0.14 75);
  --gold-light: oklch(0.96 0.05 75);

  /* Categorias */
  --blue: #1d4ed8;
  --blue-light: #dbeafe;
  --pink: #be185d;
  --pink-light: #fce7f3;
  --amber: #b45309;
  --amber-light: #fef3c7;
  --violet: #7c3aed;
  --violet-light: #ede9fe;

  /* Tipografia */
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;

  --shadow: 0 1px 4px oklch(0.15 0.02 145 / 0.08);
  --radius: 10px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
button {
  font-family: inherit;
  cursor: pointer;
}
input,
select,
textarea {
  font-family: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* ── LAYOUT ── */
#app {
  display: flex;
  min-height: 100vh;
}
#main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════ */
#sidebar {
  width: 250px;
  flex-shrink: 0;
  background: oklch(0.18 0.08 145);
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: oklch(0.55 0.18 145 / 0.2) transparent;
}
#sidebar::-webkit-scrollbar {
  width: 4px;
}
#sidebar::-webkit-scrollbar-thumb {
  background: oklch(0.55 0.18 145 / 0.25);
  border-radius: 2px;
}

.sb-brand {
  padding: 18px 16px 14px;
  border-bottom: 1px solid oklch(0.55 0.18 145 / 0.15);
}
.sb-brand-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: oklch(0.88 0.1 145);
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-transform: uppercase;
}
.sb-brand-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 3px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sb-nav {
  padding: 6px 0;
  border-bottom: 1px solid oklch(0.55 0.18 145 / 0.1);
}
.sb-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 16px;
  background: none;
  border: none;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 150ms ease;
  border-left: 3px solid transparent;
}
.sb-nav-btn:hover {
  color: #fff;
  background: oklch(0.55 0.18 145 / 0.08);
}
.sb-nav-btn.active {
  color: #fff;
  background: oklch(0.55 0.18 145 / 0.14);
  border-left-color: var(--brand);
  font-weight: 700;
}
.sb-nav-icon {
  font-size: 15px;
  width: 20px;
  text-align: center;
}

.sb-section {
  padding: 14px 16px;
  border-bottom: 1px solid oklch(0.55 0.18 145 / 0.08);
}
.sb-section-title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sb-mvp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.sb-mvp-name {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sb-mvp-count {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}
.sb-item-rank {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  min-width: 14px;
}
.sb-game-row {
  padding: 6px 0;
  border-bottom: 1px solid oklch(0.55 0.18 145 / 0.07);
}
.sb-game-row:last-child {
  border-bottom: none;
}
.sb-game-teams {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  line-height: 1.3;
}
.sb-game-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
}
.sb-empty {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  font-style: italic;
}

/* ── MOBILE HEADER ── */
.mobile-header {
  display: none;
  height: 52px;
  background: var(--brand);
  align-items: center;
  padding: 0 14px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid oklch(0.38 0.16 145 / 0.6);
  flex-shrink: 0;
}
.mobile-header-brand {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  padding-right: 46px;
}
.mobile-header-flag {
  height: 30px;
  border-radius: 3px;
  box-shadow: 0 2px 8px oklch(0 0 0 / 0.35);
  flex-shrink: 0;
}
.mobile-header-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mobile-header-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-header-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1.2;
}
.menu-toggle {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: oklch(1 0 0 / 0.15);
  border: 1px solid oklch(1 0 0 / 0.25);
  cursor: pointer;
  padding: 7px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: oklch(0.97 0.01 145);
  border-radius: 1px;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: oklch(0 0 0 / 0.6);
  z-index: 150;
}

/* ══════════════════════════════════════════════════
   HERO BANNER
══════════════════════════════════════════════════ */
.hero {
  background: var(--ink);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 4px,
    oklch(0.55 0.18 145 / 0.07) 4px,
    oklch(0.55 0.18 145 / 0.07) 5px
  );
  pointer-events: none;
}
.hero-flag,
.hero-content {
  position: relative;
}
.hero-flag {
  flex-shrink: 0;
}
.hero-flag img {
  height: 70px;
  border-radius: 4px;
  box-shadow: 0 4px 20px oklch(0 0 0 / 0.55);
}
.hero-content {
  flex: 1;
  min-width: 200px;
  color: #fff;
}
.hero-edition {
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
  color: #fff;
}
.hero-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ── PAGE ── */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 14px 40px;
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 10px;
}
.card-header {
  padding: 9px 14px;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── BADGES ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  color: #fff;
}
/* category badge overrides handled by inline style in catBadge() */

/* ── BUTTONS ── */
.btn {
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: all 0.14s;
}
.btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-danger {
  border-color: var(--red);
  color: var(--red);
}
.btn-danger:hover {
  background: var(--red);
  color: #fff;
}
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  padding: 8px 20px;
  font-size: 13px;
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}
.tab-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════════════
   JOGOS FILTERS
══════════════════════════════════════════════════ */
.jogos-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.jogos-filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.jogos-team-select {
  flex: 1;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
  cursor: pointer;
}
.jogos-team-select:focus {
  outline: none;
  border-color: var(--brand);
}
.jogos-active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.jogos-result-count {
  font-size: 12px;
  color: var(--text-muted);
}
.jogos-clear-btn {
  font-size: 12px;
  padding: 4px 10px;
  background: oklch(0.28 0.04 25);
  color: oklch(0.75 0.12 25);
  border: 1px solid oklch(0.4 0.08 25 / 0.5);
}
.jogos-clear-btn:hover {
  background: oklch(0.32 0.06 25);
}

/* ══════════════════════════════════════════════════
   STREAM BANNER
══════════════════════════════════════════════════ */
.stream-banner {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid oklch(0.55 0.18 145 / 0.35);
  text-decoration: none;
  color: inherit;
}
.stream-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: oklch(0.55 0.22 25);
  flex-shrink: 0;
  margin-top: 5px;
  box-shadow: 0 0 0 3px oklch(0.55 0.22 25 / 0.25);
  animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 3px oklch(0.55 0.22 25 / 0.25);
  }
  50% {
    box-shadow: 0 0 0 6px oklch(0.55 0.22 25 / 0.1);
  }
}
.stream-info {
  flex: 1;
}
.stream-label {
  font-size: 10px;
  font-weight: 800;
  color: oklch(0.55 0.22 25);
  letter-spacing: 2px;
  margin-bottom: 2px;
}
.stream-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.stream-btn {
  background: oklch(0.55 0.22 25);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
  transition: background 0.15s;
}
.stream-btn:hover {
  background: oklch(0.48 0.22 25);
}
.stream-banner-scheduled {
  border-color: oklch(0.55 0.18 145 / 0.4);
}
.stream-banner-scheduled .stream-label {
  color: var(--brand);
}
.stream-scheduled-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.stream-scheduled-time {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.stream-scheduled-date {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.stream-btn-scheduled {
  background: var(--brand);
}
.stream-btn-scheduled:hover {
  background: var(--brand-dark);
}

/* Team logo inline in match cards */
.team-logo-inline {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  vertical-align: middle;
  flex-shrink: 0;
}
.team-logo-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0;
}

/* ══════════════════════════════════════════════════
   STATS GRID — fundo branco com separadores
══════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 18px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.stat-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 16px 8px 14px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-card:last-child {
  border-right: none;
}
.stat-val {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 9px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════
   MATCH CARD V2 (aba Jogos — fundo branco, layout idêntico ao todayGameCard)
══════════════════════════════════════════════════ */
.match-card-v2 {
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
}
.match-card-v2.done {
  border-color: oklch(0.55 0.18 145 / 0.35);
}
.mcv2-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.mcv2-loc {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 42%;
  min-width: 0;
}
.mcv2-grp {
  font-size: 10px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-light);
  border-radius: 4px;
  padding: 2px 6px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.mcv2-done {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  background: var(--brand-light);
  border-radius: 99px;
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.mcv2-body {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 0;
}
.mcv2-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.mcv2-team.right {
  flex-direction: column;
}
.mcv2-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mcv2-team.win .mcv2-name {
  color: var(--brand);
}
.mcv2-team.lose .mcv2-name {
  color: var(--muted);
}
.mcv2-score {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}
.mcv2-score.win {
  color: var(--brand);
}
.mcv2-team.lose .mcv2-score {
  color: var(--muted);
}
.mcv2-vs-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  min-width: 52px;
  flex-shrink: 0;
}
.mcv2-vs {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}
.match-card-v2.done .mcv2-vs {
  font-size: 18px;
  color: var(--ink);
}
.mcv2-sets {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 0 16px 10px;
  flex-wrap: wrap;
}
.mcv2-sets span {
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  border-radius: 4px;
  padding: 2px 7px;
  font-weight: 600;
}
.mcv2-mvp {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-light);
  border-top: 1px solid oklch(0.72 0.14 75 / 0.2);
}

/* ══════════════════════════════════════════════════
   MATCH CARD (legado — mantido para admin)
══════════════════════════════════════════════════ */
.match-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.match-card.done {
  border-color: oklch(0.55 0.18 145 / 0.4);
}
.match-card-top {
  padding: 7px 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.match-loc {
  font-size: 11px;
  color: var(--muted);
}
.match-body {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
}
.match-team {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  transition: color 0.15s;
}
.match-team.home {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
}
.match-team.away {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-direction: row-reverse;
}
.match-team.winner {
  font-weight: 800;
  color: var(--win);
}
.match-team.loser {
  color: var(--muted);
  font-weight: 400;
}
.match-score-box {
  min-width: 60px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  padding: 3px 8px;
  font-variant-numeric: tabular-nums;
}
.match-vs {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1.5px;
  padding: 5px 8px;
}
.match-sets-detail {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 14px 6px;
}
.match-sets-detail span {
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}
.match-mvp {
  padding: 4px 14px 8px;
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  border-top: 1px solid var(--border);
}
.match-status-done {
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}
.match-status-wait {
  font-size: 11px;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════
   DATE HEADER (jogos page)
══════════════════════════════════════════════════ */
.date-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  margin-top: 20px;
}
.date-header:first-child {
  margin-top: 0;
}
.date-pill {
  background: var(--surface);
  color: var(--text);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid var(--border);
}
.today-pill {
  background: oklch(0.55 0.22 25 / 0.15);
  color: oklch(0.72 0.18 25);
  border: 1px solid oklch(0.55 0.22 25 / 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.date-count {
  font-size: 11px;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════
   STANDINGS TABLE
══════════════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
thead th {
  padding: 8px 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border-bottom: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
thead th.left {
  text-align: left;
}
tbody td {
  padding: 8px 10px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
tbody td.left {
  text-align: left;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr.qualified {
  background: var(--win-light);
}
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  background: var(--surface-2);
  color: var(--muted);
}
.rank-badge.q {
  background: var(--green);
  color: #fff;
}
.table-note {
  padding: 6px 12px;
  font-size: 11px;
  color: var(--muted);
  background: var(--surface-2);
}

/* ══════════════════════════════════════════════════
   TEAM AVATAR
══════════════════════════════════════════════════ */
.team-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px oklch(0 0 0 / 0.35);
}
.team-avatar.sm {
  width: 36px;
  height: 36px;
  font-size: 12px;
}
.team-avatar.lg {
  width: 72px;
  height: 72px;
  font-size: 24px;
  border: 2px solid oklch(0.55 0.18 145 / 0.5);
}

/* ══════════════════════════════════════════════════
   ELENCOS (ROSTERS)
══════════════════════════════════════════════════ */
.roster-team-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.roster-team-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.roster-team-header:hover {
  background: var(--surface-2);
}
.roster-team-info {
  flex: 1;
}
.roster-team-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.roster-team-count {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.roster-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--border);
}
.player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}
.player-chip-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 0 2px;
}
.player-chip-remove:hover {
  color: var(--red);
}
.player-input-row {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid oklch(0.75 0.01 145);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 12px;
  background: var(--surface);
  color: var(--ink);
}
.form-input:focus {
  border-color: var(--brand);
}

/* ══════════════════════════════════════════════════
   BRACKET / CHAVEAMENTO
══════════════════════════════════════════════════ */
.bracket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.phase-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 2px;
  margin-bottom: 8px;
  margin-top: 16px;
}
.phase-label:first-child {
  margin-top: 0;
}
.po-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}
.po-card-top {
  padding: 6px 12px;
  background: var(--surface-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.po-label {
  font-size: 11px;
  font-weight: 700;
}
.po-date {
  font-size: 11px;
  color: var(--muted);
}
.po-body {
  padding: 10px 14px;
}
.po-teams {
  display: flex;
  align-items: center;
  gap: 8px;
}
.po-team {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}
.po-team.home {
  text-align: left;
}
.po-team.away {
  text-align: right;
}
.po-team.winner {
  font-weight: 800;
  color: var(--green);
}
.po-team.loser {
  color: var(--muted);
}
.po-score {
  min-width: 52px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  padding: 2px 8px;
  color: var(--text);
}
.po-sets {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.po-sets span {
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 3px;
}
.po-mvp {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  margin-top: 4px;
}
.po-advance {
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  margin-top: 4px;
}
.podium {
  background: linear-gradient(135deg, #3f2208, #78350f);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
}
.podium-title {
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.podium-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.podium-row:last-child {
  border-bottom: none;
}
.podium-pos {
  font-size: 12px;
  font-weight: 700;
  min-width: 110px;
}
.podium-name {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}

/* ══════════════════════════════════════════════════
   REGULAMENTO
══════════════════════════════════════════════════ */
.reg-header {
  background: var(--ink);
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-bottom: none;
}
.reg-edition {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
  margin-bottom: 3px;
}
.reg-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.3px;
}
.reg-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}
.pdf-download-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 12px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}
.pdf-download-btn:hover {
  border-color: var(--brand);
}
.pdf-icon {
  font-size: 28px;
}
.pdf-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.pdf-info span {
  font-size: 11px;
  color: var(--muted);
}
.pdf-embed-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.pdf-embed-wrap iframe {
  display: block;
  width: 100%;
  border: none;
  min-height: 520px;
}
.accordion {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}
.accordion-btn:hover {
  background: var(--surface-2);
}
.accordion-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.accordion-icon {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
  flex-shrink: 0;
}
.accordion-body {
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-line;
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════
   PATROCINADORES
══════════════════════════════════════════════════ */
.sponsors-intro {
  text-align: center;
  padding: 16px 0 20px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.sponsor-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition:
    box-shadow 0.15s,
    transform 0.15s;
  border: 1.5px solid transparent;
}
.sponsor-card:hover {
  box-shadow: 0 4px 16px oklch(0 0 0 / 0.3);
  transform: translateY(-2px);
  border-color: var(--brand);
}
.sponsor-logo {
  width: 120px;
  height: 90px;
  object-fit: contain;
}
.sponsor-logo-placeholder {
  width: 120px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--surface-2);
  border-radius: 8px;
}
.sponsor-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}
.sponsor-site {
  font-size: 10px;
  color: var(--muted);
}
.sponsors-empty {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════
   ADMIN PANEL
══════════════════════════════════════════════════ */
.login-card {
  max-width: 380px;
  margin: 40px auto;
  padding: 28px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
}
.login-icon {
  font-size: 44px;
  margin-bottom: 12px;
}
.login-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 4px;
  color: var(--text);
}
.login-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.admin-title {
  font-weight: 900;
  font-size: 16px;
  color: var(--text);
}
.admin-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* Date navigation */
.admin-date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.adn-arrow {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.adn-arrow:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}
.adn-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.adn-date {
  flex: 1;
  text-align: center;
}
.adn-date-main {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.adn-date-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.adn-today-btn {
  background: var(--brand-light);
  border: 1.5px solid var(--brand);
  color: var(--brand);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.adn-today-btn:hover {
  background: var(--brand);
  color: #fff;
}

/* Admin game card */
.agc {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.agc.done {
  border-color: oklch(0.55 0.18 145 / 0.5);
}
.agc.po-match {
  border-color: oklch(0.65 0.15 80 / 0.5);
}
.agc-head {
  padding: 10px 14px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.agc-head-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.agc-loc {
  font-size: 11px;
  color: var(--muted);
}
.agc-done-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  padding: 2px 8px;
  border-radius: 20px;
}
.agc-po-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-light);
  padding: 2px 8px;
  border-radius: 20px;
}
.agc-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 10px;
  border-bottom: 1px solid var(--border);
}
.agc-team {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.3px;
  line-height: 1.1;
  color: var(--text);
}
.agc-team.home {
  text-align: right;
}
.agc-team.away {
  text-align: left;
}
.agc-team.winner {
  color: var(--green);
}
.agc-team.loser {
  color: var(--muted);
}
.agc-score-center {
  text-align: center;
}
.agc-score-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
}
.agc-score-vs {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.agc-body {
  padding: 12px 14px 10px;
}
.agc-sets-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.agc-set-row {
  display: grid;
  grid-template-columns: 44px 1fr 16px 1fr auto;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.agc-set-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.agc-set-inp {
  width: 100%;
  padding: 8px 6px;
  text-align: center;
  border: 1.5px solid oklch(0.75 0.01 145);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  outline: none;
  color: var(--ink);
  background: var(--surface);
  -moz-appearance: textfield;
}
.agc-set-inp::-webkit-inner-spin-button,
.agc-set-inp::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.agc-set-inp:focus {
  border-color: var(--brand);
}
.agc-set-sep {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}
.agc-set-win {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.agc-set-win.h {
  background: #dbeafe;
  color: var(--blue);
}
.agc-set-win.a {
  background: #fce7f3;
  color: var(--pink);
}
.agc-add-set-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  background: none;
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
}
.agc-add-set-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.agc-mvp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-light);
  border: 1px solid oklch(0.72 0.14 75 / 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 10px;
}
.agc-mvp-lbl {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
}
.agc-mvp-inp {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.agc-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}
.agc-clear-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.agc-clear-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

/* No games for date */
.no-games-day {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.no-games-day .ngd-icon {
  font-size: 40px;
  margin-bottom: 8px;
}
.no-games-day p {
  font-size: 14px;
}

/* Admin roster */
.agc-section-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* Transmissão admin */
.admin-config-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.admin-config-title {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text);
}
.admin-config-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.admin-config-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.admin-config-row input {
  flex: 1;
  margin: 0;
}

/* Sponsor admin row */
.admin-sponsor-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.admin-sponsor-info {
  flex: 1;
}
.admin-sponsor-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}
.admin-sponsor-url {
  font-size: 11px;
  color: var(--muted);
}
.admin-add-sponsor-form {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-top: 12px;
  border: 1px solid var(--border);
}
.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.admin-form-row input {
  margin-bottom: 0;
}
.admin-sponsor-edit-form {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 8px;
  border: 1px solid var(--brand);
}

/* Team logo admin row */
.admin-team-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 8px;
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════
   MVP RANKING
══════════════════════════════════════════════════ */
.mvp-row {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
}
.mvp-row:last-child {
  border-bottom: none;
}
.mvp-rank {
  width: 28px;
  font-weight: 800;
  font-size: 13px;
  color: var(--gold);
}
.mvp-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.mvp-count {
  font-size: 12px;
  color: var(--muted);
  margin-right: 4px;
}

/* ── MINI STANDINGS ── */
.mini-st-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mini-st-row {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
}
.mini-st-row:last-child {
  border-bottom: none;
}
.mini-rank {
  width: 20px;
  font-size: 11px;
  font-weight: 800;
}
.mini-rank.q {
  color: var(--green);
}
.mini-rank.nq {
  color: var(--muted);
}
.mini-team {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}
.mini-pts {
  font-weight: 900;
  font-size: 13px;
  color: var(--brand);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}
.mini-pts-label {
  font-size: 10px;
  color: var(--muted);
  margin-left: 2px;
}

/* ── FOOTER ── */
.footer {
  background: var(--ink);
  border-top: 1px solid oklch(0.55 0.18 145 / 0.15);
  padding: 14px 16px 14px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  position: relative;
}
.footer-admin-link {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 10px;
  color: oklch(0.32 0.02 145);
  cursor: pointer;
  font-family: inherit;
  padding: 2px 4px;
  transition: color 0.15s;
}
.footer-admin-link:hover {
  color: var(--muted);
}
.footer-sponsors-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.footer-sponsors-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.footer-sponsor-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: oklch(0.19 0.025 145);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s;
}
a.footer-sponsor-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.footer-sponsor-chip img {
  height: 16px;
  width: auto;
  display: inline;
}
.pdf-actions-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.pdf-toggle-btn {
  width: 100%;
  padding: 9px 16px;
  background: oklch(0.22 0.025 145);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.pdf-toggle-btn:hover {
  background: var(--brand-light);
  border-color: var(--brand);
}

/* ══════════════════════════════════════════════════
   HOME — PRÓXIMO JOGO EM DESTAQUE
══════════════════════════════════════════════════ */
.home-next-match {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid oklch(0.55 0.18 145 / 0.35);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.hnm-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: oklch(0.55 0.18 145 / 0.1);
  border-bottom: 1px solid oklch(0.55 0.18 145 / 0.2);
}
.hnm-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--brand);
  text-transform: uppercase;
  flex: 1;
}
.hnm-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.hnm-body {
  display: flex;
  align-items: center;
  padding: 24px 16px 20px;
  gap: 0;
}
.hnm-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hnm-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hnm-vs-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 0 12px;
}
.hnm-vs-sep {
  width: 1px;
  height: 20px;
  background: oklch(0.55 0.18 145 / 0.35);
}
.hnm-vs {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  font-style: italic;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -1px;
}
.hnm-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid oklch(0.55 0.18 145 / 0.15);
  font-size: 12px;
  color: var(--muted);
}
.hnm-group {
  background: var(--brand-light);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.hnm-cta {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--brand);
  color: oklch(0.98 0.005 145);
  border: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
.hnm-cta:hover {
  background: var(--brand-dark);
}

/* ══════════════════════════════════════════════════
   HOME — UPCOMING SCROLL (próximos jogos compactos)
══════════════════════════════════════════════════ */
.upcoming-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0 -14px;
  padding-left: 14px;
  padding-right: 14px;
  scrollbar-width: none;
}
.upcoming-scroll::-webkit-scrollbar {
  display: none;
}
.upcoming-card {
  flex-shrink: 0;
  width: 195px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.uc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.uc-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.uc-matchup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.uc-team-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.uc-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uc-vs-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  padding: 0 4px;
}
.uc-vs-line {
  display: block;
  width: 1px;
  height: 12px;
  background: oklch(0.55 0.18 145 / 0.3);
}
.uc-vs {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  font-style: italic;
  color: var(--brand);
  line-height: 1;
}
.uc-loc {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════════
   HOME — JOGOS DE HOJE (dark cards on light page)
══════════════════════════════════════════════════ */
.today-game-card {
  background: oklch(0.96 0.004 145);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid oklch(0.9 0.01 145);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    0 4px 12px rgba(0,0,0,0.08),
    0 8px 24px rgba(0,0,0,0.05);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.today-game-card:hover {
  border-color: oklch(0.6 0.15 145 / 0.5);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.07),
    0 8px 24px rgba(0,0,0,0.1),
    0 0 20px oklch(0.55 0.22 145 / 0.15);
  transform: translateY(-2px);
}
.today-game-card:active {
  transform: translateY(0);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    0 3px 8px rgba(0,0,0,0.08);
}
.today-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0 -14px;
  padding-left: 14px;
  padding-right: 14px;
  scrollbar-width: none;
}
.today-scroll::-webkit-scrollbar {
  display: none;
}
.today-scroll .today-game-card {
  flex-shrink: 0;
  width: 300px;
  margin-bottom: 0;
  scroll-snap-align: start;
}
.tgc-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: oklch(0.93 0.006 145);
  border-bottom: 1px solid oklch(0.9 0.01 145);
}
.tgc-loc {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 42%;
  min-width: 0;
}
.tgc-grp {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.tgc-body {
  display: flex;
  align-items: center;
  padding: 20px 16px;
  gap: 0;
}
.tgc-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.tgc-team.away {
  flex-direction: column;
}
.tgc-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.3px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tgc-team.win .tgc-name {
  color: var(--brand);
}
.tgc-team.lose .tgc-name {
  color: var(--muted);
}
.tgc-score {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--muted);
  line-height: 1;
}
.tgc-score.tgc-score-win {
  color: var(--brand);
}
.tgc-vs-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 0 14px;
}
.tgc-vs-line {
  width: 1px;
  height: 18px;
  background: var(--border);
}
.tgc-vs {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  font-style: italic;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -1px;
}
.tgc-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--brand);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
.tgc-btn:hover {
  background: var(--brand-dark);
}
.tgc-mvp {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  color: oklch(0.5 0.12 75);
  background: oklch(0.96 0.04 75);
  border-top: 1px solid oklch(0.72 0.14 75 / 0.3);
}
.today-game-card .team-avatar {
  width: 56px;
  height: 56px;
  font-size: 18px;
}

/* ══════════════════════════════════════════════════
   HOME — MVP DESTAQUES
══════════════════════════════════════════════════ */
.mvp-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
  margin: 0 -14px;
  padding-left: 14px;
  padding-right: 14px;
  scrollbar-width: none;
}
.mvp-scroll::-webkit-scrollbar {
  display: none;
}
.mvp-card {
  background: var(--gold-light);
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  min-width: 90px;
  flex-shrink: 0;
}
.mvp-card-first {
  min-width: 100px;
  background: oklch(0.92 0.08 75);
  border-width: 2px;
}
.mvp-card-minor {
  background: var(--surface-2);
  border-color: var(--border);
}
.mvp-card-rank {
  font-size: 20px;
  margin-bottom: 4px;
}
.mvp-card-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}
.mvp-card-count {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  margin-top: 2px;
}
.mvp-card-minor .mvp-card-count {
  color: var(--muted);
}

/* ── MVP POR CATEGORIA ── */
.mvp-cat-block {
  margin-bottom: 20px;
}
.mvp-cat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.mvp-cat-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.mvp-cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 4px;
}
.mvp-cat-rank {
  font-size: 16px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.mvp-cat-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mvp-cat-count {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}
.mvp-cat-row:first-child .mvp-cat-name {
  color: oklch(0.45 0.14 75);
}

/* ── LAST ROUND RESULT CARD ── */
.last-round-card {
  background: var(--surface);
  border: 1.5px solid oklch(0.72 0.025 145);
  border-radius: var(--radius);
  padding: 10px 12px;
  min-width: 200px;
  max-width: 240px;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 3px 3px 0 oklch(0.72 0.025 145);
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}
.last-round-card:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 oklch(0.72 0.025 145);
}
.lrc-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.lrc-date {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  margin-left: auto;
}
.lrc-matchup {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lrc-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.lrc-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72px;
  text-transform: uppercase;
}
.lrc-name.win {
  color: var(--brand);
}
.lrc-score-block {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.lrc-score {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--muted);
  line-height: 1;
}
.lrc-score.win {
  color: var(--brand);
}
.lrc-sep {
  font-size: 14px;
  color: var(--border);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════
   HOME — SECTION HEADERS
══════════════════════════════════════════════════ */
.home-sec {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.home-sec::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: 4px;
}
.home-sec-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  white-space: nowrap;
}
.home-sec-link {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  padding: 4px 0;
  font-family: inherit;
  order: 3;
}
.home-sec-link:hover {
  text-decoration: underline;
}

/* ── UTILITY ── */
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-20 {
  margin-top: 20px;
}
.empty-state {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════
   BOTTOM NAVIGATION (mobile only)
══════════════════════════════════════════════════ */
.bottom-nav {
  display: none;
}

/* ══════════════════════════════════════════════════
   NOVAS ADIÇÕES: FILTROS DA HOME & CENTRALIZAÇÃO
══════════════════════════════════════════════════ */

/* ── FILTROS DE CATEGORIA NA HOME ── */
.home-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin-bottom: 16px;
  scrollbar-width: none; /* Oculta barra de rolagem no Firefox */
}
.home-filters::-webkit-scrollbar {
  display: none; /* Oculta barra de rolagem no Chrome/Safari */
}
.filter-btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 150ms ease;
  box-shadow: var(--shadow);
}
.filter-btn:hover {
  background: var(--surface-2);
}
.filter-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ── CENTRALIZAÇÃO DA PÁGINA AO VIVO ── */
.live-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  padding: 20px 0;
}
.live-player-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.live-player-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}
/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── Sidebar drawer ── */
  #sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    z-index: 200;
    width: 250px;
    height: 100vh;
    transition: left 0.25s ease;
  }
  #sidebar.open {
    left: 0;
    box-shadow: 4px 0 20px oklch(0 0 0 / 0.5);
  }
  .sidebar-overlay.open {
    display: block;
  }

  /* ── Mobile header com safe-area-inset-top (PWA iOS standalone) ── */
  .mobile-header {
    display: flex;
    height: calc(52px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
  }

  /* ── Bottom nav com safe-area-inset-bottom ── */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border-top: 2px solid var(--brand);
    z-index: 300;
    align-items: flex-start;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* Conteúdo principal não fica atrás do bottom-nav nem do header */
  #main {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }

  /* ── Page: menos padding lateral em tela menor ── */
  .page {
    padding: 12px 12px 40px;
  }

  /* ── Tab-row: scroll horizontal em vez de quebrar linha ── */
  .tab-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .tab-row::-webkit-scrollbar {
    display: none;
  }

  /* ── Home section headers: permite quebra de linha no mobile ── */
  .home-sec-title {
    white-space: normal;
    letter-spacing: 1px;
    font-size: 12px;
  }

  /* ── Botões: área de toque mínima de 44px (WCAG) ── */
  .btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* ── Stream banner: empilha verticalmente em telas estreitas ── */
  .stream-banner {
    flex-wrap: wrap;
  }
  .stream-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* ── Hero: menos padding, mantém flag e texto lado a lado ── */
  .hero {
    padding: 14px 12px;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .hero-flag img {
    height: 52px;
  }
  .hero-content {
    min-width: 0;
  }
  .hero-title {
    font-size: clamp(16px, 5vw, 28px);
  }
  .hero-sub {
    font-size: 11px;
  }

  /* ── Chaveamento: times no card de playoff sem overflow ── */
  .po-team {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  /* ── Admin: times no card sem overflow ── */
  .agc-team {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  .adn-date-main {
    font-size: 13px;
  }

  /* ── PDF embed: altura adaptada para mobile ── */
  .pdf-embed-wrap iframe {
    min-height: 420px;
  }

  /* ── Tabela de classificação: colunas compactas ── */
  tbody td,
  thead th {
    padding: 7px 6px;
    font-size: 12px;
  }

  /* ── Sponsors footer bar: centralizado ── */
  .sfb-inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-align: center;
  }
  .sfb-logos {
    justify-content: center;
    gap: 14px;
  }
}

/* ── 600px: grids e layouts intermediários ── */
@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card:nth-child(2) {
    border-right: none;
  }
  .stat-card:nth-child(1),
  .stat-card:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
  .mini-st-grid {
    grid-template-columns: 1fr;
  }
  .bracket-grid {
    grid-template-columns: 1fr;
  }
  .admin-form-row {
    grid-template-columns: 1fr;
  }
  .hnm-vs {
    font-size: 40px;
  }
  .hnm-name {
    font-size: 15px;
  }
  /* Home sec: título menor para caber com "Ver todos" na mesma linha */
  .home-sec-title {
    font-size: 12px;
    letter-spacing: 1.5px;
  }
  /* Admin tabs: scroll horizontal */
  .admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .admin-tabs::-webkit-scrollbar {
    display: none;
  }
}

/* ── 390px: telas muito pequenas (iPhone SE, Android compact) ── */
@media (max-width: 390px) {
  .page {
    padding: 10px 10px 40px;
  }
  /* today-game-card: avatares menores */
  .today-game-card .team-avatar {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }
  .tgc-vs {
    font-size: 22px;
  }
  .tgc-vs-col {
    padding: 0 8px;
  }
  .tgc-name {
    font-size: 11px;
  }
  .tgc-body {
    padding: 14px 12px;
  }
  /* match-card-v2: mais compacto */
  .mcv2-body {
    padding: 10px 10px;
  }
  .mcv2-vs-col {
    padding: 0 6px;
    min-width: 40px;
  }
  .mcv2-name {
    font-size: 11px;
  }
  /* Stats: valores menores */
  .stat-val {
    font-size: 22px;
  }
  .stat-card {
    padding: 12px 6px 10px;
  }
  /* Mobile header: título ainda menor */
  .mobile-header-title {
    font-size: 11px;
  }
  .mobile-header-sub {
    font-size: 9px;
  }
  .mobile-header-flag {
    height: 24px;
  }
  /* Tabela de classificação: colunas muito compactas */
  tbody td,
  thead th {
    padding: 6px 4px;
    font-size: 11px;
  }
  .rank-badge {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
}

/* Bottom nav items */
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px 6px;
  position: relative;
  transition: opacity 0.15s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.bn-icon {
  font-size: 18px;
  line-height: 1;
  position: relative;
  display: block;
}
.bn-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  color: oklch(0.48 0.015 145);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: color 0.15s;
}
.bn-item.active .bn-label {
  color: var(--brand);
}
.bn-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
}
.bn-live-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(0.55 0.22 25);
  border: 1.5px solid var(--surface);
  animation: pulse-dot 1.4s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════
   SPONSORS
══════════════════════════════════════════════════ */

/* ── MASTER BANNER (posição 1) ── */
#master-banner-slot:empty {
  display: none;
}
.sponsor-master-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  margin-bottom: 14px;
  background: oklch(0.96 0.05 80);
  border-top: 2px solid oklch(0.65 0.15 80);
  border-bottom: 1px solid oklch(0.65 0.15 80 / 0.3);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.sponsor-master-banner:hover {
  background: oklch(0.93 0.06 80);
}
.sponsor-master-tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: oklch(0.72 0.14 80);
  text-transform: uppercase;
}
.sponsor-master-logo {
  max-height: 80px;
  max-width: 240px;
  object-fit: contain;
  display: block;
}
.sponsor-master-name {
  font-weight: 700;
  font-size: 15px;
  color: oklch(0.82 0.1 80);
}

/* ── MASTER CARROSSEL ── */
.master-carousel {
  margin-bottom: 14px;
  border-top: 2px solid oklch(0.65 0.15 80);
  border-bottom: 1px solid oklch(0.45 0.1 80 / 0.3);
  background: oklch(0.97 0.04 80);
  overflow: hidden;
}
.mc-header {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: oklch(0.72 0.14 80);
  text-transform: uppercase;
  text-align: center;
  padding: 8px 0 0;
}
.mc-logos {
  display: flex;
  align-items: stretch;
  min-height: 84px;
}
.mc-logo-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px 12px;
  text-decoration: none;
  color: var(--text);
  border-right: 1px solid oklch(0.65 0.15 80 / 0.2);
  opacity: 0.35;
  filter: grayscale(55%);
  transition:
    opacity 0.4s ease,
    filter 0.4s ease,
    background 0.4s ease;
}
.mc-logo-item:last-child {
  border-right: none;
}
.mc-logo-item.mc-logo-active {
  opacity: 1;
  filter: none;
  background: oklch(0.65 0.15 80 / 0.12);
}
.mc-logo-item img {
  max-height: 42px;
  max-width: 85%;
  object-fit: contain;
  transition: max-height 0.4s ease;
}
.mc-logo-item.mc-logo-active img {
  max-height: 58px;
}
.mc-logo-initials {
  font-size: 20px;
  font-weight: 900;
  color: oklch(0.72 0.14 80);
  font-family: var(--font-display);
}
.mc-logo-name {
  font-size: 11px;
  font-weight: 700;
  color: oklch(0.72 0.14 80);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.mc-logo-item.mc-logo-active .mc-logo-name {
  opacity: 1;
  transform: translateY(0);
}
.mc-progress {
  height: 3px;
  background: oklch(0.65 0.15 80 / 0.15);
}
.mc-progress-bar {
  height: 100%;
  background: oklch(0.65 0.15 80);
  width: 0%;
}
@keyframes mc-fill {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* ── PLACAR TAG (posição 2) ── */
.sponsor-placar-tag {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  padding: 4px 14px 7px;
  border-top: 1px solid var(--border);
}
.sponsor-placar-tag a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.sponsor-placar-tag a:hover {
  text-decoration: underline;
}

/* ── STREAM TAG (posição 3) ── */
.sponsor-stream-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
}
.sponsor-stream-tag img {
  height: 18px;
  width: auto;
  object-fit: contain;
  border-radius: 3px;
}
.sponsor-stream-tag strong {
  color: #fff;
  font-weight: 700;
}
.sponsor-stream-tag a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

/* ── FOOTER BAR (posição 4) ── */
#sponsors-footer-bar:empty {
  display: none;
}
.sfb-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: var(--ink);
  border-top: 1px solid oklch(0.55 0.18 145 / 0.15);
  flex-wrap: wrap;
}
.sfb-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.sfb-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.sfb-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.sfb-logo img {
  height: 40px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.45;
  transition:
    filter 0.2s,
    opacity 0.2s;
}
.sfb-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
.sfb-logo-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s;
}
.sfb-logo:hover .sfb-logo-text {
  color: var(--text);
}

/* ── SIDEBAR BLOCK (posição 5) ── */
.sb-sponsor-block {
  padding: 12px 16px 16px;
  border-top: 1px solid oklch(0.55 0.18 145 / 0.08);
}
.sb-sponsor-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  text-decoration: none;
  transition: opacity 0.15s;
}
.sb-sponsor-item:hover {
  opacity: 0.75;
}
.sb-sponsor-logo {
  height: 28px;
  max-width: 80px;
  object-fit: contain;
  display: block;
  background: oklch(0.97 0.005 145);
  border-radius: 4px;
  padding: 2px 4px;
}
.sb-sponsor-name {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ── CATEGORIA TAG (posição 6) ── */
.sponsor-cat-tag {
  font-size: 11px;
  color: var(--muted);
  padding: 2px 0 10px;
}
.sponsor-cat-tag a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 600;
}
.sponsor-cat-tag a:hover {
  text-decoration: underline;
}

/* ── FOOTER TEXT (posição 7) ── */
.sponsor-footer-text {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.sponsor-footer-text a {
  color: var(--muted);
  text-decoration: none;
}
.sponsor-footer-text a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ── ADMIN COTA BADGES ── */
.cota-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}
.cota-master {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #000;
}
.cota-prata {
  background: linear-gradient(135deg, #94a3b8, #cbd5e1);
  color: #000;
}
.cota-bronze {
  background: linear-gradient(135deg, #b45309, #d97706);
  color: #fff;
}

/* ── SKELETON LOADING ── */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.skeleton {
  background: linear-gradient(
    90deg,
    oklch(0.91 0.008 145) 25%,
    oklch(0.95 0.005 145) 50%,
    oklch(0.91 0.008 145) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 5px;
  display: block;
  flex-shrink: 0;
}

/* ── MICRO-INTERAÇÕES ── */
@media (prefers-reduced-motion: no-preference) {
  .card,
  .match-card,
  .roster-team-card,
  .upcoming-card {
    transition:
      transform 180ms cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 180ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .card:hover,
  .match-card:hover,
  .upcoming-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px oklch(0 0 0 / 0.55);
  }
  .sb-nav-btn {
    transition: all 150ms ease;
  }
}

/* ══════════════════════════════════════════════════
   CLASSES FALTANTES — adicionadas para corrigir
   a inconsistência entre JS e CSS
══════════════════════════════════════════════════ */

/* ── TABS NAV ── */
.tabs-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar {
  display: none;
}
.tab-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: all 150ms ease;
  box-shadow: var(--shadow);
}
.tab-btn:hover {
  background: var(--surface-2);
}
.tab-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ── MATCHES GRID ── */
.matches-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── MATCH CARD TEAMS (linhas home/away no matchCardHTML) ── */
.match-card-teams {
  padding: 2px 14px 6px;
}
.match-team-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.match-team-line:last-child {
  border-bottom: none;
}
.match-team-line.winner .match-team {
  font-weight: 800;
  color: var(--win);
}
.match-team-line.loser .match-team {
  color: var(--muted);
  font-weight: 400;
}
.match-score {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  min-width: 26px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.match-team-line.winner .match-score {
  color: var(--win);
}
.match-team-line.loser .match-score {
  color: var(--muted);
}

/* ── TODAY GAME CARD — linhas home/away ── */
.tgc-team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
}
.tgc-team-row:first-child {
  border-bottom: 1px solid oklch(0.52 0.18 145 / 0.15);
}
.tgc-team-name {
  flex: 1;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tgc-team-row.winner .tgc-team-name {
  color: var(--brand);
  font-weight: 800;
}
.tgc-team-row.loser .tgc-team-name {
  color: oklch(0.52 0.01 145);
}
.tgc-team-row.winner .tgc-score {
  color: var(--brand);
}
.tgc-team-row.loser .tgc-score {
  color: oklch(0.52 0.01 145);
}

/* ── TEAM AVATAR INLINE (iniciais sem logo em match cards) ── */
.team-avatar-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 4px oklch(0 0 0 / 0.25);
}

/* ── TEAM AVATAR MD (tamanho médio, usado em elencos) ── */
.team-avatar.md {
  width: 48px;
  height: 48px;
  font-size: 15px;
}

/* ── LIVE WIDGET BANNER (home page — ao vivo) ── */
.live-widget-banner {
  background: var(--ink);
  border: 1.5px solid oklch(0.55 0.22 25 / 0.6);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  margin-bottom: 14px;
  transition: border-color 0.15s, background 0.15s;
  animation: pulse-dot 2s ease-in-out infinite;
}
.live-widget-banner:hover {
  border-color: oklch(0.55 0.22 25);
  background: oklch(0.2 0.03 145);
}
.live-widget-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.live-widget-text {
  flex: 1;
  min-width: 0;
}
.live-widget-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.live-widget-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-widget-chevron {
  font-size: 18px;
  color: oklch(0.55 0.22 25);
  flex-shrink: 0;
}

/* ── UTILITY ── */
.text-muted {
  color: var(--muted);
}
