/* === CONMEBOL Libertadores — La Gloria Eterna === */
:root {
  --lib-bg: #070605;
  --lib-bg-elevated: #12100c;
  --lib-panel: rgba(18, 14, 8, .88);
  --lib-panel-border: rgba(212, 175, 55, .22);
  --lib-gold: #D4AF37;
  --lib-gold-bright: #F0C25A;
  --lib-gold-soft: #F6CF8A;
  --lib-gold-deep: #8A6A1A;
  --lib-bronze: #B07B00;
  --lib-bronze-dark: #6B4A00;
  --lib-charcoal: #1A1510;
  --lib-muted: rgba(246, 207, 138, .55);
  --lib-text: #FFF8E7;
  --dash-bg: var(--lib-bg);
  --dash-panel: var(--lib-panel);
  --dash-muted: var(--lib-muted);
  --dash-gold: var(--lib-gold);
  --dash-radius: 18px;
  --hero-logo-space: 280px;
}

html, body {
  min-height: 100%;
}

body.theme-libertadores {
  font-family: 'Oswald', 'Inter', sans-serif;
  color: var(--lib-text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--lib-bg);
  background-image:
    linear-gradient(180deg, rgba(7, 6, 5, .55) 0%, rgba(7, 6, 5, .82) 42%, rgba(7, 6, 5, .94) 100%),
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212, 175, 55, .22), transparent 60%),
    url('../img/fundo-dourado2.PNG');
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, top center, top center;
  background-size: cover, 100% 60%, cover;
  background-attachment: fixed, scroll, fixed;
}
body.theme-libertadores > .dash-page {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}
body.theme-libertadores .dash-main {
  flex: 1 1 auto;
}
body.theme-libertadores .site-footer {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
}

/* Stripe ouro metálico (substitui arco-íris Copa) */
.wc-stripe {
  height: 4px;
  background: linear-gradient(90deg,
    #3D2A08 0%,
    #B07B00 18%,
    #F0C25A 38%,
    #D4AF37 50%,
    #F0C25A 62%,
    #B07B00 82%,
    #3D2A08 100%);
  background-size: 200% 100%;
  animation: libGoldFlow 8s ease-in-out infinite;
}

@keyframes libGoldFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes libShine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes libRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes libFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* === Brand header === */
.lib-brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 16px 4px;
  margin-top: -8px;
  animation: libRise .6s ease both;
}
.lib-brand-logo {
  width: clamp(72px, 16vw, 110px);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(212, 175, 55, .35));
  animation: libFloat 5s ease-in-out infinite;
}
.lib-brand-tag {
  margin-top: 6px;
  font-family: 'Oswald', 'Anton', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--lib-gold-soft);
  opacity: .85;
}

/* === Index hero (full-bleed) === */
.lib-hero {
  position: relative;
  z-index: 2;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -12px;
  margin-bottom: 6px;
  line-height: 0;
  overflow: hidden;
}
.lib-hero-img {
  display: block;
  width: 100%;
  height: clamp(150px, 18vw, 198px);
  object-fit: fill;
  object-position: center;
}
@media (max-width: 640px) {
  .lib-hero-img {
    height: 138px;
  }
}

/* === Nav === */
.dash-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(212, 175, 55, .18);
  background: linear-gradient(180deg, rgba(7, 6, 5, .92), rgba(7, 6, 5, .72));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.dash-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.dash-nav-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.dash-nav-brand span {
  font-family: 'Oswald', 'Anton', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lib-gold-soft);
}
.dash-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, .35);
  background: linear-gradient(145deg, rgba(212, 175, 55, .18), rgba(0, 0, 0, .35));
  color: var(--lib-gold-bright);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: border-color .2s, box-shadow .2s;
}
.dash-nav-btn:hover {
  border-color: var(--lib-gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, .25);
}
.dash-nav-link {
  font-family: 'Oswald', 'Anton', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  color: rgba(255, 248, 231, .5);
  padding: 10px 12px;
  position: relative;
  transition: color .2s;
}
.dash-nav-link:hover { color: #fff; }
.dash-nav-link.active { color: var(--lib-gold-bright); }
.dash-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lib-gold), transparent);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(212, 175, 55, .6);
}

/* === Main / Panels === */
.dash-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 14px 56px;
}
.dash-panel {
  position: relative;
  background: var(--lib-panel);
  border-radius: var(--dash-radius);
  padding: 22px 18px 24px;
  margin: 0 8px 18px;
  border: 1px solid var(--lib-panel-border);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, .45),
    inset 0 1px 0 rgba(240, 194, 90, .08);
  overflow: hidden;
  animation: libRise .5s ease both;
}
.dash-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lib-gold), transparent);
  opacity: .7;
}
.dash-panel-title {
  font-family: 'Oswald', 'Anton', sans-serif;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--lib-text);
}
.dash-panel-title i {
  color: var(--lib-gold) !important;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, .45));
}
.dash-panel-desc {
  color: var(--lib-muted);
  font-weight: 400;
}

/* === Tabs / mobile menu === */
.tab-btn:hover {
  color: #fff;
  border-color: rgba(212, 175, 55, .45);
  background: rgba(212, 175, 55, .1);
}
.tab-btn.active {
  color: #0A0A0A;
  background: linear-gradient(135deg, #F0C25A, #B07B00);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(212, 175, 55, .45);
}
.mobile-menu-panel {
  background: linear-gradient(180deg, #12100c 0%, #070605 100%) !important;
  border-left: 1px solid rgba(212, 175, 55, .25);
}
.mobile-menu-head {
  border-bottom: 1px solid rgba(212, 175, 55, .2);
}
.mobile-menu-head span {
  color: var(--lib-gold-soft);
  font-family: 'Oswald', sans-serif;
  letter-spacing: .2em;
}
.mobile-menu-nav .tab-btn.active {
  color: #0A0A0A;
  background: linear-gradient(135deg, #F0C25A, #B07B00);
}

/* === Entrevistas === */
.interview-row {
  border: 1px solid rgba(212, 175, 55, .2);
  background: rgba(0, 0, 0, .4);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
  border-radius: 16px;
}
.interview-quote {
  background: linear-gradient(135deg, rgba(26, 21, 16, .97) 0%, rgba(10, 8, 5, .98) 100%);
  border-left: 1px solid rgba(212, 175, 55, .15);
}
.interview-quote::before {
  color: rgba(212, 175, 55, .12);
}
.interview-quote-badge {
  background: linear-gradient(135deg, #B07B00, #6B4A00);
  color: #FFF8E7;
  border: 1px solid rgba(240, 194, 90, .35);
  border-radius: 4px;
  letter-spacing: .16em;
}
.interview-quote-q { color: var(--lib-gold-soft); }
.interview-quote-a { color: rgba(255, 248, 231, .78); }

.theme-libertadores .mz-card {
  border-color: rgba(212, 175, 55, .22);
  background: linear-gradient(160deg, #16120C 0%, #0A0805 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
}
.theme-libertadores .mz-topbar {
  background: linear-gradient(90deg, #1A150C, #0A0805);
  border-bottom-color: rgba(212, 175, 55, .18);
}
.theme-libertadores .mz-topbar-label {
  color: var(--lib-gold-soft);
}
.theme-libertadores .mz-reporter {
  background: linear-gradient(160deg, #1A150C 0%, #0C0A08 100%);
  border-right-color: rgba(212, 175, 55, .12);
}
.theme-libertadores .mz-player {
  background: linear-gradient(160deg, #14110C 0%, #0A0805 100%);
}
.theme-libertadores .mz-player-visual {
  background:
    radial-gradient(circle, rgba(212, 175, 55, .1) 1.5px, transparent 2px),
    linear-gradient(160deg, #2A1C08 0%, #12100C 100%);
  background-size: 10px 10px, auto;
}
.theme-libertadores .mz-q {
  color: var(--lib-gold-soft);
}
.theme-libertadores .mz-a {
  color: rgba(255, 248, 231, .8);
}
.theme-libertadores .mz-vs span {
  color: rgba(240, 194, 90, .45);
}
.theme-libertadores .mz-bubble-label {
  background: var(--lib-gold-bright);
  color: #0A0A0A;
}

/* === Stat cards (jogador) === */
.stat-card-v {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .4);
  min-height: 250px;
}
.stat-card-v .sc-bg {
  background-image:
    linear-gradient(160deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .45)),
    radial-gradient(circle, rgba(255, 255, 255, .06) 1.5px, transparent 2px);
  background-size: auto, 10px 10px;
}
.stat-card-v .sc-num {
  color: var(--accent, var(--lib-gold-bright));
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
.stat-card-v .sc-team {
  color: var(--accent, var(--lib-gold-soft));
}
.stat-card-v .sc-footer {
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(212, 175, 55, .2);
}

/* === Team perf — variantes Gloria Eterna === */
.team-perf {
  border-radius: 16px;
  min-height: 220px;
}
.team-perf-num,
.team-perf-unit {
  color: var(--lib-gold-bright) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.team-perf--purple,
.team-perf--gold {
  --tp-bg: linear-gradient(145deg, #2A2110 0%, #1A150C 100%);
  --tp-border: rgba(212, 175, 55, .55);
  --tp-glow: rgba(212, 175, 55, .22);
  background: linear-gradient(145deg, #2A2110 0%, #1A150C 100%);
}
.team-perf--red,
.team-perf--bronze {
  --tp-bg: linear-gradient(145deg, #3A2510 0%, #1F1408 100%);
  --tp-border: rgba(176, 123, 0, .55);
  --tp-glow: rgba(176, 123, 0, .2);
  background: linear-gradient(145deg, #3A2510 0%, #1F1408 100%);
}
.team-perf--green,
.team-perf--champagne {
  --tp-bg: linear-gradient(145deg, #2E2618 0%, #16120C 100%);
  --tp-border: rgba(246, 207, 138, .4);
  --tp-glow: rgba(246, 207, 138, .15);
  background: linear-gradient(145deg, #2E2618 0%, #16120C 100%);
}
.team-perf--yellow,
.team-perf--amber {
  --tp-bg: linear-gradient(145deg, #4A3810 0%, #221A08 100%);
  --tp-border: rgba(240, 194, 90, .6);
  --tp-glow: rgba(240, 194, 90, .25);
  background: linear-gradient(145deg, #4A3810 0%, #221A08 100%);
}
.team-perf--blue,
.team-perf--deep {
  --tp-bg: linear-gradient(145deg, #1A1612 0%, #0C0A08 100%);
  --tp-border: rgba(138, 106, 26, .5);
  --tp-glow: rgba(138, 106, 26, .18);
  background: linear-gradient(145deg, #1A1612 0%, #0C0A08 100%);
}
.team-perf--orange,
.team-perf--copper {
  --tp-bg: linear-gradient(145deg, #3A2814 0%, #18100A 100%);
  --tp-border: rgba(184, 115, 51, .5);
  --tp-glow: rgba(184, 115, 51, .2);
  background: linear-gradient(145deg, #3A2814 0%, #18100A 100%);
}

/* === Footer === */
.site-footer {
  border-top: none;
}
.site-footer-inner {
  background: linear-gradient(180deg, rgba(18, 14, 8, .95), #070605);
  padding: 22px 20px 28px;
}
.site-footer-inner p {
  color: rgba(246, 207, 138, .45);
  letter-spacing: .14em;
}
.site-footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: .7;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, .3));
}

/* === Responsive === */
@media (max-width: 900px) {
  .dash-nav {
    margin-bottom: 8px;
    padding: 10px 14px;
  }
  .dash-nav-brand span { display: none; }
  .lib-brand { padding: 4px 12px 8px; }
  .lib-brand-logo { width: 64px; }
  .lib-hero { margin-top: -8px; }
  .dash-nav-links.open {
    background: rgba(12, 10, 6, .97);
    border: 1px solid rgba(212, 175, 55, .25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  }
  .dash-panel {
    margin-left: 4px;
    margin-right: 4px;
    padding: 18px 14px 20px;
  }
}

@media (max-width: 560px) {
  .dash-main { padding: 4px 8px 48px; }
  .stat-card-v { min-height: 230px; border-radius: 14px; }
  .team-perf { border-radius: 14px; }
  .interview-quote-badge { font-size: 8px; padding: 4px 8px; }
}

/* Safe areas (PWA standalone) */
@supports (padding: env(safe-area-inset-top)) {
  .dash-nav {
    padding-top: calc(12px + env(safe-area-inset-top));
  }
  .site-footer-inner {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
}

/* Install banner */
.lib-pwa-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1A1510, #0A0806);
  border: 1px solid rgba(212, 175, 55, .4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .55);
}
.lib-pwa-banner.show { display: flex; }
.lib-pwa-banner img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.lib-pwa-banner-text {
  flex: 1;
  min-width: 0;
}
.lib-pwa-banner-text strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--lib-gold-soft);
}
.lib-pwa-banner-text span {
  font-size: 11px;
  color: rgba(255, 248, 231, .55);
}
.lib-pwa-banner-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.lib-pwa-banner button {
  border: none;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 8px;
}
.lib-pwa-install {
  background: linear-gradient(135deg, #F0C25A, #B07B00);
  color: #0A0A0A;
  font-weight: 600;
}
.lib-pwa-dismiss {
  background: transparent;
  color: rgba(255, 248, 231, .5);
  border: 1px solid rgba(255, 255, 255, .15) !important;
}

/* ========== Páginas internas — override Copa → Libertadores ========== */

/* Títulos de página */
.class-page-title {
  background: linear-gradient(135deg, #1A150C 0%, #0C0A08 100%) !important;
  border: 1px solid rgba(212, 175, 55, .28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.class-page-title .t1 { color: #FFF8E7 !important; font-family: 'Oswald', 'Anton', sans-serif !important; }
.class-page-title .t2 { color: var(--lib-gold-bright) !important; font-family: 'Oswald', 'Anton', sans-serif !important; }

/* Classificação */
.class-card,
.class-card--rodada-mini,
.class-page .match-card,
.copa-carousel--matches .match-card {
  background: linear-gradient(160deg, #16120C 0%, #0A0805 100%) !important;
  border: 1px solid rgba(212, 175, 55, .18) !important;
}
.class-card-head {
  background: linear-gradient(90deg, #3A2810, #1A150C) !important;
  color: var(--lib-gold-soft) !important;
}
.class-card--forma .class-card-head {
  background: rgba(58, 40, 16, .75) !important;
}
.class-pos,
.class-pts,
.class-sg-pos,
.rodada-mini-pos,
.match-score {
  color: var(--lib-gold-bright) !important;
}
.class-card-top > i { color: var(--lib-gold) !important; }
.class-card-top p { color: var(--lib-gold-soft) !important; }

.copa-carousel-btn {
  background: linear-gradient(145deg, #B07B00, #6B4A00) !important;
  color: #FFF8E7 !important;
  border: 1px solid rgba(240, 194, 90, .4);
}
.copa-carousel-btn:hover:not(:disabled) {
  background: linear-gradient(145deg, #F0C25A, #B07B00) !important;
  color: #0A0A0A !important;
}
.copa-carousel-dot.is-active { background: var(--lib-gold) !important; }
.copa-carousel--matches .jogos-rodada-list {
  scrollbar-color: rgba(212, 175, 55, .45) transparent;
}

.match-rodada-badge {
  background: linear-gradient(135deg, #B07B00, #6B4A00) !important;
  color: #FFF8E7 !important;
  border: 1px solid rgba(240, 194, 90, .3);
  border-radius: 6px !important;
}

/* Playoff */
.playoff-card {
  background: linear-gradient(160deg, #16120C, #0A0805) !important;
  border-color: rgba(212, 175, 55, .3) !important;
}
.playoff-card-badge,
.playoff-team-status,
.playoff-semi-label,
.playoff-vs span {
  color: var(--lib-gold-bright) !important;
}
.playoff-team--final .playoff-team-pos,
.playoff-team-status--final,
.playoff-note--info i {
  color: var(--lib-gold) !important;
}

/* Artilharia / rankings */
.art-card.art-card--leader {
  background: linear-gradient(135deg, #3A2810 0%, #1A150C 55%, #0A0805 100%) !important;
  box-shadow: 0 14px 40px rgba(176, 123, 0, .35) !important;
  border: 1px solid rgba(212, 175, 55, .3);
}
.art-card {
  background: linear-gradient(145deg, #14110C, #0A0805) !important;
  border: 1px solid rgba(212, 175, 55, .12) !important;
}
.art-card--leader .art-rank--big,
.art-name-last,
.art-stat-num,
.art-stat-item--primary .art-stat-num,
.art-rank {
  color: var(--lib-gold-bright) !important;
}
.art-photo--thumb {
  background: #1A150C !important;
  border-color: rgba(212, 175, 55, .35) !important;
}

/* Equipes */
.equipe-head {
  background: linear-gradient(90deg, #1A150C, #0C0A08) !important;
  border: 1px solid rgba(212, 175, 55, .2);
}
.equipe-stats-card,
.equipe-elenco-card {
  background: linear-gradient(160deg, #14110C, #0A0805) !important;
  border-color: rgba(212, 175, 55, .15) !important;
}
.equipe-stat-val,
.equipe-elenco-head p,
.equipe-table td,
.equipe-table td.eq-pos {
  color: var(--lib-gold-bright) !important;
}
.equipe-elenco-head > i {
  background: linear-gradient(135deg, #B07B00, #6B4A00) !important;
  color: #FFF8E7 !important;
}
.equipe-player-photo {
  background: #1A150C !important;
  border-color: rgba(212, 175, 55, .25) !important;
}
.equipe-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  background: linear-gradient(135deg, #F0C25A, #B07B00);
  color: #0A0A0A;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Time da semana */
.xi-rodada-bar {
  background: linear-gradient(90deg, rgba(176, 123, 0, .35) 0%, rgba(18, 14, 8, .7) 50%, rgba(176, 123, 0, .35) 100%) !important;
  border: 1px solid rgba(212, 175, 55, .3) !important;
}
.xi-field-wrap {
  border-color: rgba(212, 175, 55, .4) !important;
}
.xi-field-overlay {
  background: linear-gradient(180deg, rgba(7, 6, 5, .5) 0%, rgba(7, 6, 5, .15) 45%, rgba(7, 6, 5, .55) 100%) !important;
}
.xi-slot-bg--default {
  background: linear-gradient(160deg, #3A2810 0%, #1A150C 100%) !important;
}
.xi-btn--primary {
  color: #0A0A0A !important;
  background: linear-gradient(135deg, #F0C25A, #B07B00) !important;
}
.xi-btn--secondary {
  color: #FFF8E7 !important;
  background: linear-gradient(135deg, #2A2110, #1A150C) !important;
  border-color: rgba(212, 175, 55, .35) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35) !important;
}
.xi-expand-box,
.xi-vote-card {
  background: rgba(18, 14, 8, .7) !important;
  border-color: rgba(212, 175, 55, .2) !important;
}
.xi-vote-head { color: var(--lib-gold-bright) !important; }

/* Acesso */
.access-card {
  background: linear-gradient(160deg, #1A150C 0%, #0A0805 100%) !important;
  border-color: rgba(212, 175, 55, .45) !important;
}
.access-icon {
  background: linear-gradient(135deg, #B07B00, #6B4A00) !important;
  box-shadow: 0 0 24px rgba(212, 175, 55, .35) !important;
  color: #FFF8E7 !important;
}
.access-field-icon { color: var(--lib-gold) !important; }
.access-field input {
  background: #0A0805 !important;
  border-color: rgba(212, 175, 55, .25) !important;
}
.access-field input:focus {
  border-color: var(--lib-gold) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .2), inset 0 2px 6px rgba(0, 0, 0, .25) !important;
}
.access-btn {
  background: linear-gradient(135deg, #F0C25A, #B07B00) !important;
  color: #0A0A0A !important;
}

/* Legacy utilities (rodadas / jogadores / dashboard) */
.bg-gray-personalizado {
  background: linear-gradient(160deg, rgba(18, 14, 8, .92), rgba(10, 8, 5, .95)) !important;
  border: 1px solid rgba(212, 175, 55, .2);
  border-radius: 16px !important;
}
.text-sub-white { color: #FFF8E7 !important; }
.text-sub-gray { color: rgba(246, 207, 138, .65) !important; }
.text-dourado { color: var(--lib-gold-soft) !important; }
.box-shadow-entrevista-capitaes {
  box-shadow: 0 8px 28px rgba(0, 0, 0, .4);
}
.bg-gradient-destaques-rodadas {
  background: linear-gradient(270deg, #0A0805 2%, #8A7144 50%, #0A0805 98%) !important;
}
.bg-gradient-gold-animate {
  background: linear-gradient(135deg, #1A150C 0%, #2A2110 50%, #1A150C 100%) !important;
  border: 1px solid rgba(212, 175, 55, .25);
}
.bg-dourado-gradiente-super-claro {
  background: linear-gradient(135deg, #F0C25A, #B07B00) !important;
  color: #0A0A0A !important;
}
.bg-img-capitao {
  background: linear-gradient(270deg, #000 6%, #8A7144 43%, #000 92%) !important;
}

/* Rodadas (nova estrutura) */
.rodadas-page { max-width: 560px; margin: 0 auto; padding: 0 12px 40px; }
.rodadas-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(176, 123, 0, .3), rgba(18, 14, 8, .7), rgba(176, 123, 0, .3));
  border: 1px solid rgba(212, 175, 55, .25);
}
.rodadas-nav h2 {
  font-family: 'Oswald', 'Anton', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #FFF8E7;
  text-align: center;
  flex: 1;
}
.rodadas-nav button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, .35);
  background: linear-gradient(145deg, rgba(212, 175, 55, .2), rgba(0, 0, 0, .35));
  color: var(--lib-gold-bright);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rodadas-list { display: flex; flex-direction: column; gap: 14px; }
.rodada-item.is-hidden { display: none !important; }

/* Painel jogador / dashboard */
.player-dash-panel {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 22px;
  text-align: center;
}
.player-dash-panel h2 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lib-gold-soft);
  margin-bottom: 8px;
}
.player-dash-panel .player-dash-hello {
  color: rgba(255, 248, 231, .65);
  font-size: 13px;
  margin-bottom: 24px;
}
.player-dash-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.player-dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  padding: 14px 20px;
  border-radius: 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.player-dash-btn--primary {
  background: linear-gradient(135deg, #F0C25A, #B07B00);
  color: #0A0A0A;
  box-shadow: 0 6px 20px rgba(212, 175, 55, .3);
}
.player-dash-btn--secondary {
  background: rgba(0, 0, 0, .4);
  color: #FFF8E7;
  border: 1px solid rgba(212, 175, 55, .35);
}
.player-dash-btn:hover { transform: translateY(-2px); }

/* Votação — remapeamento visual Champions → ouro */
.theme-libertadores [class*="border-ucl-cyan"],
.theme-libertadores .border-ucl-cyan {
  border-color: rgba(212, 175, 55, .45) !important;
}
.theme-libertadores .shadow-\[0_0_40px_rgba\(6\,182\,212\,0\.5\)\] {
  box-shadow: 0 0 40px rgba(212, 175, 55, .35) !important;
}

.match-keepers {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(212, 175, 55, .12);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 248, 231, .65);
}
.match-keepers > span:first-child { text-align: right; }
.match-keepers > span:last-child { text-align: left; }
.match-keepers-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--lib-gold);
  text-transform: uppercase;
}

/* Jogadores page wrapper */
#detalhes-jogadores {
  margin: 0 8px 24px;
  padding: 16px 12px 20px !important;
}
#detalhes-jogadores > .mb-4.font-bold {
  font-family: 'Oswald', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lib-gold-soft);
}
.jogador-card {
  border: 1px solid rgba(212, 175, 55, .2) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .35);
}

.playoff-bracket--dual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.playoff-bracket--dual .playoff-semi-block {
  margin: 0;
}
.playoff-bracket--dual .playoff-team--direct,
.playoff-bracket--dual .playoff-team--out {
  width: 100%;
}

/* ========== Kill purple leftovers (classificação + time da semana) ========== */
.theme-libertadores .dash-panel,
.theme-libertadores .xi-panel.dash-panel {
  background: rgba(18, 14, 8, .92) !important;
  border-color: rgba(212, 175, 55, .22) !important;
}

.theme-libertadores .class-page .class-card,
.theme-libertadores .class-page .class-card--rodada-mini,
.theme-libertadores .class-page .match-card,
.theme-libertadores .class-page .copa-carousel--matches .match-card {
  background: linear-gradient(160deg, #16120C 0%, #0A0805 100%) !important;
  border: 1px solid rgba(212, 175, 55, .18) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45) !important;
}

.theme-libertadores .class-page .class-card-head,
.theme-libertadores .class-page .class-card--forma .class-card-head {
  background: linear-gradient(90deg, #3A2810, #1A150C) !important;
}

.theme-libertadores .class-page-title {
  background: linear-gradient(135deg, #1A150C 0%, #0C0A08 100%) !important;
}

.theme-libertadores .playoff-card,
.theme-libertadores .playoff-card--final,
.theme-libertadores .playoff-card--semifinal {
  background: linear-gradient(160deg, #1A150C 0%, #0A0805 100%) !important;
  border-color: rgba(212, 175, 55, .4) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4) !important;
}

.theme-libertadores .playoff-card-badge {
  background: linear-gradient(180deg, #B07B00, #6B4A00) !important;
  color: #FFF8E7 !important;
  border-color: rgba(240, 194, 90, .45) !important;
}

.theme-libertadores .playoff-card--final .playoff-card-badge {
  background: linear-gradient(180deg, #F0C25A, #B07B00) !important;
  color: #0A0A0A !important;
}

.theme-libertadores .playoff-semi-block {
  background: rgba(176, 123, 0, .12) !important;
  border: 1px solid rgba(212, 175, 55, .22);
  border-radius: 14px;
}

.theme-libertadores .playoff-team--direct,
.theme-libertadores .playoff-team--semi,
.theme-libertadores .playoff-team--final {
  background: rgba(26, 21, 16, .85) !important;
  border-color: rgba(212, 175, 55, .3) !important;
}

.theme-libertadores .playoff-team--out {
  background: rgba(20, 12, 10, .7) !important;
  border-color: rgba(230, 57, 70, .35) !important;
}

.theme-libertadores .playoff-note--info {
  background: rgba(176, 123, 0, .1) !important;
  border-color: rgba(212, 175, 55, .25) !important;
}

.theme-libertadores .copa-carousel-btn {
  background: linear-gradient(145deg, #B07B00, #6B4A00) !important;
}

.theme-libertadores .rodada-mini-team {
  background: rgba(212, 175, 55, .08) !important;
  border-color: rgba(212, 175, 55, .18) !important;
}

.theme-libertadores .xi-panel {
  background: rgba(18, 14, 8, .92) !important;
}

.theme-libertadores .xi-rodada-bar {
  background: linear-gradient(90deg, rgba(176, 123, 0, .35) 0%, rgba(18, 14, 8, .75) 50%, rgba(176, 123, 0, .35) 100%) !important;
  border: 1px solid rgba(212, 175, 55, .3) !important;
}

.theme-libertadores .xi-slot-frame {
  background: #1A150C !important;
  border-color: #D4AF37 !important;
}

.theme-libertadores .xi-slot-bg--default {
  background: linear-gradient(160deg, #3A2810 0%, #1A150C 100%) !important;
}

.theme-libertadores .xi-btn--secondary {
  background: linear-gradient(135deg, #2A2110, #1A150C) !important;
  border-color: rgba(212, 175, 55, .35) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35) !important;
  color: #FFF8E7 !important;
}

.theme-libertadores .xi-expand-box,
.theme-libertadores .xi-vote-card {
  background: rgba(18, 14, 8, .75) !important;
  border-color: rgba(212, 175, 55, .22) !important;
}

.theme-libertadores .xi-field-overlay {
  background: linear-gradient(180deg, rgba(7, 6, 5, .45) 0%, rgba(7, 6, 5, .12) 45%, rgba(7, 6, 5, .5) 100%) !important;
}

.theme-libertadores .match-rodada-badge {
  background: linear-gradient(135deg, #B07B00, #6B4A00) !important;
}

/* === Quadro Campeões === */
.champs-panel .dash-panel-head { margin-bottom: 16px; }
.champs-frame {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 4px;
  background:
    linear-gradient(145deg, #6B4A00 0%, #D4AF37 22%, #F0C25A 50%, #D4AF37 78%, #6B4A00 100%);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(240, 194, 90, .35),
    inset 0 1px 0 rgba(255, 255, 255, .25);
}
.champs-frame-ornament {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 3;
  border: 2px solid #F6CF8A;
  box-shadow: 0 0 10px rgba(212, 175, 55, .45);
}
.champs-frame-ornament--tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.champs-frame-ornament--tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.champs-frame-ornament--bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.champs-frame-ornament--br { bottom: 6px; right: 6px; border-left: none; border-top: none; }
.champs-frame-inner {
  position: relative;
  background: #0A0805;
  border: 1px solid rgba(0, 0, 0, .45);
  padding: 10px 10px 14px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .65);
}
.champs-frame-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 6px 12px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, .15), transparent);
}
.champs-frame-badge img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, .4));
}
.champs-frame-badge span {
  font-family: 'Oswald', 'Anton', sans-serif;
  font-size: clamp(.95rem, 2.8vw, 1.15rem);
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--lib-gold-soft);
  text-transform: uppercase;
}
.champs-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, .35);
  background: #000;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .5);
}
.champs-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(62vh, 520px);
  object-fit: cover;
  object-position: center top;
}
.champs-frame-caption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(212, 175, 55, .25);
}
.champs-frame-year {
  font-family: 'Oswald', 'Anton', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--lib-gold-bright);
  line-height: 1;
  text-shadow: 0 0 16px rgba(212, 175, 55, .35);
}
.champs-frame-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(246, 207, 138, .65);
}
@media (max-width: 560px) {
  .champs-frame { padding: 10px; }
  .champs-frame-inner { padding: 8px 8px 12px; }
  .champs-photo img { max-height: 48vh; }
  .champs-frame-badge span { letter-spacing: .14em; font-size: .85rem; }
}

/* === Maiores Campeões === */
.alltime-champs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.alltime-champ {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(42, 33, 16, .95) 0%, rgba(10, 8, 5, .98) 100%);
  border: 1px solid rgba(212, 175, 55, .28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.alltime-champ-photo {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, .45);
  background: #0A0805;
  box-shadow: 0 0 18px rgba(212, 175, 55, .18);
  flex-shrink: 0;
}
.alltime-champ-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 6px;
  background: radial-gradient(circle at center, rgba(212, 175, 55, .08), transparent 70%);
}
.alltime-champ-body { min-width: 0; }
.alltime-champ-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.alltime-champ-name {
  margin: 0;
  font-family: 'Oswald', 'Anton', sans-serif;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #FFF8E7;
  line-height: 1.15;
}
.alltime-champ-titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 6px 10px;
  border-radius: 10px;
  background: linear-gradient(145deg, #F0C25A, #B07B00);
  color: #0A0A0A;
  box-shadow: 0 4px 14px rgba(212, 175, 55, .3);
  flex-shrink: 0;
}
.alltime-champ-titles strong {
  font-family: 'Oswald', 'Anton', sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 700;
}
.alltime-champ-titles small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  margin-top: 2px;
}
.alltime-champ-years {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.alltime-champ-years span {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--lib-gold-soft);
  background: rgba(212, 175, 55, .1);
  border: 1px solid rgba(212, 175, 55, .22);
}
@media (max-width: 480px) {
  .alltime-champ {
    grid-template-columns: 68px 1fr;
    gap: 10px;
    padding: 10px;
  }
  .alltime-champ-photo { width: 68px; height: 68px; border-radius: 10px; }
  .alltime-champ-titles { min-width: 48px; padding: 5px 8px; }
  .alltime-champ-titles strong { font-size: 1.2rem; }
  .alltime-champ-years span { font-size: 10px; padding: 3px 6px; }
}

.theme-libertadores .h2h-card {
  background: linear-gradient(160deg, #16120C 0%, #0A0805 100%) !important;
  border-color: rgba(212, 175, 55, .22) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4) !important;
}
.theme-libertadores .h2h-flag {
  border-color: rgba(240, 194, 90, .5) !important;
}

/* Classificação: escudos limpos (sem círculo, borda ou fundo) */
.class-page .class-team-flag,
.class-page .playoff-team-flag,
.class-page .rodada-mini-flag,
.class-page .h2h-flag,
.class-page .pos-chart-legend-flag {
  border-radius: 0 !important;
  border: none !important;
  background: transparent !important;
  overflow: visible !important;
  width: auto !important;
  height: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.class-page .class-team-flag img,
.class-page .playoff-team-flag img,
.class-page .rodada-mini-flag img,
.class-page .h2h-flag img,
.class-page .pos-chart-legend-flag img {
  width: auto !important;
  height: 40px !important;
  max-width: 48px;
  object-fit: contain !important;
  display: block;
  background: transparent !important;
}
.class-page .playoff-team-flag img {
  height: 36px !important;
}
.class-page .playoff-team--final .playoff-team-flag img {
  height: 44px !important;
}
.class-page .rodada-mini-flag img {
  height: 36px !important;
}
.class-page .h2h-flag img {
  height: 40px !important;
}
.class-page .pos-chart-legend-flag img {
  height: 20px !important;
  max-width: 24px;
}
.class-page .class-card--forma .class-team-flag img {
  height: 36px !important;
}
.theme-libertadores .h2h-vs {
  color: var(--lib-gold-bright) !important;
}
.theme-libertadores .h2h-stat {
  background: rgba(212, 175, 55, .06) !important;
  border-color: rgba(212, 175, 55, .16) !important;
}
.theme-libertadores .h2h-stat strong {
  color: var(--lib-gold-bright) !important;
}
.theme-libertadores .h2h-stat--draw strong {
  color: #FFF8E7 !important;
}
.theme-libertadores .h2h-stat small {
  color: var(--lib-gold-soft) !important;
}

.theme-libertadores .pos-chart-card {
  background: linear-gradient(160deg, #16120C 0%, #0A0805 100%) !important;
  border-color: rgba(212, 175, 55, .22) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4) !important;
}
.theme-libertadores .pos-chart-empty {
  color: var(--lib-gold-soft) !important;
}
.theme-libertadores .pos-chart-legend-name {
  color: #FFF8E7 !important;
}
