/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  z-index: 15000;
  position: relative;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 12000;
}

.mobile-menu-overlay.active {
  display: block;
}

.mobile-menu-sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: #000080;
  z-index: 13000;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 80px 20px 20px;
  box-shadow: -4px 0 12px rgba(0,0,0,0.3);
}

.mobile-menu-sidebar.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  z-index: 15000;
}

.mobile-menu-item {
  display: block;
  color: white;
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 16px;
  font-weight: 500;
}

.mobile-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 10px;
  transition: all 0.2s;
}

.mobile-user-info {
  padding: 20px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 10px;
}

.mobile-user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 12px;
  object-fit: cover;
}

.mobile-user-name {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.mobile-user-email {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* Responsive - Show on mobile */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  nav .container > div:last-child {
    display: none !important;
  }
  
  nav .container {
    justify-content: space-between !important;
  }
}
/* ============================================
   HOME — estilos da página inicial
   ============================================ */

.home-welcome {
  text-align: center;
  margin: 20px 0 16px 0;
}

.home-welcome__title {
  font-size: 26px;
  color: #000080;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.home-grid a {
  text-decoration: none;
  color: inherit;
}

/* ── Lista de ligas ── */
.home-leagues-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.home-league-row {
  background: linear-gradient(135deg, #000080 0%, #0033cc 100%);
  border-radius: 10px;
  padding: 15px 15px;
  display: flex;
  align-items: center;
  gap: 35px;
  flex-wrap: wrap;
  color: white;
}

.home-league-row__identity {
  flex: 0 0 25%;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start; /* alinha à esquerda */
}

.home-league-row__rounds {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

.home-league-row__badge {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.home-league-row__name {
  font-weight: 700;
  font-size: 15px;
}

.home-league-row__championship {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

.home-league-row__stats {
  flex: 0 0 18%;
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.home-league-row__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 60px;
  justify-content: center;
}

.home-league-row__stat-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.home-league-row__stat-label {
  font-size: 10px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.home-league-row__action {
  flex: 0 0 15%;
  display: flex;
  justify-content: flex-end;  /* alinha à direita */
  align-items: center;
}

.home-league-row__btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.home-league-row__btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.home-league-row__btn--open {
  background: #28a745;
  border-color: #28a745;
}

.home-league-row__btn--open:hover {
  background: #218838;
}

/* ── Card de navegação da home ── */
.home-nav-card {
  text-align: center;
  padding: 30px 20px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
}

.home-nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.home-nav-card--admin {
  background: #f8f9fa;
}

.home-nav-card__icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.home-nav-card__title {
  margin-bottom: 8px;
  font-size: 22px;
  color: #000080;
}

.home-nav-card__title--admin {
  color: #dc3545;
}

.home-nav-card__description {
  color: #666;
  font-size: 13px;
}

.home-nav-card__stat {
  color: #28a745;
  font-weight: bold;
  font-size: 14px;
}

.home-nav-card__admin-label {
  color: #999;
  font-size: 11px;
}

.home-nav-card__stat--alert {
  color: #28a745;
  font-weight: bold;
}

/* ── Dark mode ── */
[data-theme="dark"] .home-league-row {
  background: linear-gradient(135deg, #0a0a3a 0%, #1a1a6a 100%);
}

[data-theme="dark"] .home-welcome__title {
  color: #7aabff;
}

[data-theme="dark"] .home-nav-card--admin {
  background: #2a2a2a;
}

[data-theme="dark"] .home-nav-card__title {
  color: #7aabff;
}

[data-theme="dark"] .home-nav-card__description {
  color: var(--text-secondary);
}

[data-theme="dark"] .home-nav-card__admin-label {
  color: var(--text-secondary);
}

/* ── Responsividade ── */
@media (max-width: 600px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-nav-card {
    height: auto;
    min-height: 160px;
  }

  .home-nav-card__icon {
    font-size: 36px;
  }

  .home-welcome__title {
    font-size: 24px;
  }
}
/* ============================================
   LEAGUES — estilos das views de ligas
   ============================================ */

/* ── Cabeçalho de página ── */
.page-header {
  text-align: center;
  margin-bottom: 30px;
}

.page-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.page-header__icon {
  width: 48px;
  height: 48px;
}

.page-header__icon--lg {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.page-header__title {
  color: #000080;
  margin: 0;
}

.page-header__subtitle {
  font-size: 18px;
  color: #666;
  margin-top: 10px;
}

/* ── Entrar por código ── */
.join-by-code-form {
  display: flex;
  gap: 10px;
}

.join-by-code-form input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  text-transform: uppercase;
}

/* ── Seção de listagem (cabeçalho + grid) ── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-header h2 {
  margin: 0;
}

.leagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* ── Card de liga (partial _league_card) ── */
.league-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.league-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.league-card__identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.league-card__badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
}

.league-card__badge--placeholder {
  opacity: 0.4;
}

.league-card__name {
  margin: 0;
}

.league-card__name a {
  color: #000080;
  text-decoration: none;
}

.league-card__name a:hover {
  text-decoration: underline;
}

.league-card__championship {
  color: #555;
  margin-bottom: 8px;
}

.league-card__description {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
}

.league-card__members {
  color: #666;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.league-card__members img {
  width: 16px;
  height: 16px;
}

.league-card__footer {
  margin-top: 15px;
}

.league-card__action {
  font-size: 14px;
  padding: 8px 15px;
}

.league-card__action--secondary {
  background: #666;
}

/* ── Badge público/privado ── */
.badge-visibility {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 10px;
}

.badge-visibility--public {
  background: #d4edda;
  color: #155724;
}

.badge-visibility--private {
  background: #f8d7da;
  color: #721c24;
}

/* ── Página show da liga ── */
.league-show__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.league-show__identity {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 12px;
  flex: 1;
}

.league-show__badge {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  flex-shrink: 0;
}

.league-show__name {
  font-size: 22px;
  font-weight: 700;
  color: #000080;
  margin: 0 0 6px 0;
}

.league-show__meta {
  color: #555;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.league-show__meta img {
  width: 16px;
  height: 16px;
}

.league-show__description {
  color: #666;
  font-size: 14px;
  margin-top: 4px;
}

.league-show__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.btn--edit   { background: #555; }
.btn--warn   { background: #ffc107; color: #000; }
.btn--green  { background: #1a7f3c; }
.btn--blue   { background: #007bff; }

/* ── Código de convite ── */
.invite-code-box {
  margin-top: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 5px;
  border-left: 4px solid #000080;
}

.invite-code-box code {
  font-size: 20px;
  font-weight: bold;
  color: #000080;
  margin-left: 10px;
  letter-spacing: 3px;
}

/* ── Ranking inline na show da liga ── */
.ranking-overflow {
  overflow-x: auto;
}

.ranking-empty {
  color: #666;
  text-align: center;
  padding: 20px;
}

.ranking-position {
  text-align: center;
}

.ranking-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ranking-player__avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ranking-player__you {
  font-size: 11px;
  background: #000080;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
}

.ranking-points {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #000080;
}

.ranking-cell-center {
  text-align: center;
}

.ranking-row--highlight {
  background: #fffde7;
}

/* ── Seção de Membros ── */
.members-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.members-header h2 {
  margin: 0;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
}

.member-item__avatar {
  border-radius: 50%;
  object-fit: cover;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.member-item__info {
  flex: 1;
}

.member-item__name {
  font-weight: 500;
}

.member-item__role {
  font-size: 12px;
}

.member-item__role--owner { color: #000080; font-weight: bold; }
.member-item__role--banned { color: #dc3545; font-weight: bold; }
.member-item__role--member { color: #666; }

.member-item__btn {
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

.member-item__btn--suspend  { background: #ffc107; color: #000; margin-right: 4px; }
.member-item__btn--activate { background: #28a745; color: white; margin-right: 4px; }
.member-item__btn--remove   { background: #dc3545; color: white; }

/* ── Busca de membros ── */
.member-search-box {
  display: none;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #1a7f3c;
}

.member-search-box__label {
  display: block;
  margin-bottom: 10px;
}

.member-search-box__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.member-search-box__input {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.member-search-results {
  margin-top: 10px;
}

.member-search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 6px;
}

.member-search-result-item__avatar {
  border-radius: 50%;
  object-fit: cover;
  width: 32px;
  height: 32px;
}

.member-search-result-item__info {
  flex: 1;
}

.member-search-result-item__email {
  color: #999;
  font-size: 12px;
  margin-left: 6px;
}

.member-search-result-item__btn {
  background: #1a7f3c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 13px;
}

/* ── Formulário de liga ── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.form-group small {
  color: #666;
  display: block;
  margin-top: 4px;
}

.form-group__badge-preview {
  margin-bottom: 10px;
}

.form-group__badge-preview img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 5px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.form-errors {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.form-errors ul {
  margin: 0;
  padding-left: 20px;
}

/* ── Estado vazio ── */
.empty-state {
  text-align: center;
  padding: 40px;
  color: #666;
}

.empty-state__message {
  font-size: 18px;
  margin-bottom: 20px;
}

/* ── Dark mode overrides ── */
[data-theme="dark"] .invite-code-box {
  background: #2a2a2a;
  border-left-color: #7aabff;
}

[data-theme="dark"] .invite-code-box code {
  color: #7aabff;
}

[data-theme="dark"] .member-item {
  background: #2a2a2a;
}

[data-theme="dark"] .member-item__role--member {
  color: var(--text-secondary);
}

[data-theme="dark"] .member-search-box {
  background: #2a2a2a;
}

[data-theme="dark"] .member-search-result-item {
  background: #2a2a2a;
  border-color: var(--border-color);
}

[data-theme="dark"] .league-card__name a {
  color: #7aabff;
}

[data-theme="dark"] .league-card__championship,
[data-theme="dark"] .league-card__description,
[data-theme="dark"] .league-card__members {
  color: var(--text-secondary);
}

[data-theme="dark"] .page-header__title,
[data-theme="dark"] .league-show__name {
  color: #7aabff;
}

[data-theme="dark"] .page-header__subtitle,
[data-theme="dark"] .league-show__description {
  color: var(--text-secondary);
}

[data-theme="dark"] .league-show__meta {
  color: #bbb;
}

[data-theme="dark"] .badge-visibility--public {
  background: #1a3a25;
  color: #75d89a;
}

[data-theme="dark"] .badge-visibility--private {
  background: #3a1a1a;
  color: #f08080;
}

[data-theme="dark"] .ranking-player__you {
  background: #1a3a8a;
}

[data-theme="dark"] .ranking-points {
  color: #7aabff;
}

[data-theme="dark"] .ranking-row--highlight {
  background: #2a2a1a;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] .form-group small {
  color: var(--text-secondary);
}

/* ── Responsividade ── */
@media (max-width: 768px) {
  .leagues-grid {
    grid-template-columns: 1fr;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .league-show__info {
    flex-direction: column;
  }

  .members-grid {
    grid-template-columns: 1fr;
  }

  .join-by-code-form {
    flex-direction: column;
  }
}
/* Campeonatos Admin */
.championship-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-card h3 {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 14px;
  text-transform: uppercase;
}

.stat-card p {
  font-size: 32px;
  font-weight: bold;
  margin: 0;
  color: #1976d2;
}

.championship-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.add-club-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}

.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.club-card-championship {
  background: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border: 2px solid #e0e0e0;
  transition: transform 0.2s;
}

.club-card-championship:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.club-badge-large {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 10px;
  display: block;
}

.no-badge {
  width: 80px;
  height: 80px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  border-radius: 50%;
  color: #999;
  font-size: 12px;
}

.club-card-championship h4 {
  font-size: 14px;
  margin: 10px 0 5px 0;
  font-weight: 600;
}

.club-abbr {
  color: #666;
  font-size: 12px;
  margin: 0;
}

.rounds-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.round-item-admin {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.round-item-admin h4 {
  margin: 0 0 10px 0;
  color: #1976d2;
}

.round-item-admin p {
  color: #666;
  font-size: 14px;
  margin: 5px 0;
}

.round-item-admin .btn {
  margin-top: 10px;
  margin-right: 5px;
}

/* Table styling */
.table-success {
  background-color: #d4edda !important;
}

.badge {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.badge.bg-success {
  background-color: #28a745 !important;
  color: white;
}

.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #000;
}

.badge.bg-secondary {
  background-color: #6c757d !important;
  color: white;
}

.badge.bg-info {
  background-color: #17a2b8 !important;
  color: white;
}

/* Form groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.form-text {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #666;
}

.form-check {
  padding-left: 25px;
}

.form-check-input {
  margin-left: -25px;
  margin-top: 5px;
}

.form-check-label {
  font-weight: normal;
}

.input-group {
  display: flex;
  gap: 10px;
}

.input-group .form-control {
  flex: 1;
}

/* Alerts */
.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-color: #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeaa7;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

/* Responsive */
@media (max-width: 768px) {
  .championship-actions {
    flex-direction: column;
  }
  
  .clubs-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .rounds-list {
    grid-template-columns: 1fr;
  }
  
  .championship-stats {
    grid-template-columns: 1fr;
  }
}
/* ============================================
   RANKINGS — estilos das views de ranking
   ============================================ */

/* ── Cabeçalho gradiente (páginas de seleção de liga) ── */
.gradient-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 24px;
  border-radius: 8px;
}

.gradient-header--rankings {
  background: linear-gradient(135deg, #f5a623 0%, #f7c96e 100%);
}

.gradient-header--predictions {
  background: linear-gradient(135deg, #3355aa 0%, #6688dd 100%);
}

.gradient-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.gradient-header__icon {
  width: 40px;
  height: 40px;
}

.gradient-header__title {
  color: #fff;
  margin: 0;
}

.gradient-header__subtitle {
  color: #fff;
  margin: 0 0 8px 0;
}

.gradient-header__description {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* ── Grid de seleção de ligas ── */
.leagues-select-grid a {
  text-decoration: none;
  color: inherit;
}

.leagues-select-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.league-select-card {
  text-align: center;
  padding: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.league-select-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.league-select-card__badge {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.league-select-card__name {
  color: #000080;
  margin-bottom: 10px;
}

.league-select-card__championship {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.league-select-card__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 10px;
}

.league-select-card__stat-label {
  color: #666;
  font-size: 12px;
}

.league-select-card__stat-value {
  font-size: 18px;
  font-weight: bold;
  color: #000080;
}

.league-select-card__stat-value--active {
  color: #28a745;
}

.league-select-card__stat-value--inactive {
  color: #999;
}

.league-select-card__cta {
  margin-top: 20px;
  color: #000080;
  font-weight: bold;
}

/* ── Switch Tabela/Gráfico ── */
.view-toggle {
  text-align: center;
  margin: 20px 0;
}

.view-toggle__track {
  display: inline-flex;
  background: #f0f0f0;
  border-radius: 25px;
  padding: 5px;
}

.view-toggle__btn {
  padding: 10px 30px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, color 0.2s;
}

.view-toggle__btn--active {
  background: #000080;
  color: white;
}

.view-toggle__btn--inactive {
  background: transparent;
  color: #666;
}

.view-toggle__btn img {
  width: 20px;
  height: 20px;
}

/* ── Pódio (top 3) ── */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.podium__place {
  text-align: center;
  width: 150px;
}

.podium__avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.podium__avatar--1st { width: 75px; height: 75px; border-color: #FFD700; }
.podium__avatar--2nd { width: 60px; height: 60px; border-color: #C0C0C0; }
.podium__avatar--3rd { width: 60px; height: 60px; border-color: #CD7F32; }

.podium__name {
  font-size: 13px;
  font-weight: bold;
  margin-top: 6px;
  color: #222;
}

.podium__points {
  font-size: 20px;
  font-weight: bold;
  color: #000080;
  margin: 2px 0;
}

.podium__wins {
  font-size: 13px;
  color: #666;
}

.podium__stats {
  font-size: 11px;
  color: #666;
  margin-bottom: 8px;
}

.podium__block {
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.podium__block-number {
  font-size: 40px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.15);
}

/* ── Tabela ranking completo ── */
.full-ranking-header {
  text-align: center;
  margin-bottom: 30px;
}

.full-ranking-header h2 {
  color: #000080;
  margin: 0;
}

.ranking-th-star {
  font-size: 16px;
}

.ranking-row--gold   { background: #FFD700; }
.ranking-row--silver { background: #C0C0C0; }
.ranking-row--bronze { background: #CD7F32; }
.ranking-row--me     { background: #fff3cd; }
.ranking-row--normal { background: white; }

.ranking-position-num {
  font-weight: bold;
  color: #000080;
  font-size: 18px;
  text-align: center;
  vertical-align: middle;
}

.ranking-player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  vertical-align: middle;
}

.ranking-player-cell__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ranking-player-cell__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-player-cell__name--bold {
  font-weight: bold;
}

.ranking-player-cell__you {
  color: #007bff;
  font-size: 12px;
  font-weight: normal;
}

.ranking-player-cell__detail {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.ranking-player-cell__detail img {
  width: 20px;
  height: 20px;
}

.ranking-num-cell {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #000080;
  vertical-align: middle;
}

.ranking-stat-cell {
  text-align: center;
  font-size: 16px;
  vertical-align: middle;
}

/* ── Cabeçalho da página de ranking da liga ── */
.ranking-page-header {
  text-align: center;
  margin-bottom: 30px;
}

.ranking-page-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ranking-page-header__icon {
  width: 40px;
  height: 40px;
}

.ranking-page-header__title {
  color: #000080;
  margin: 0;
}

.ranking-page-header__league {
  font-size: 18px;
  color: #666;
  margin-top: 10px;
}

.ranking-page-header__actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

/* ── Gráfico de evolução ── */
.evolution-chart-container {
  width: 100%;
  height: 500px;
}

.evolution-chart-hint {
  text-align: center;
  color: #666;
  margin-top: 20px;
  font-size: 14px;
}

.evolution-chart-empty {
  text-align: center;
  color: #666;
}

/* ── Grid de rodadas ── */
.rounds-ranking-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.round-ranking-card {
  background: #f8f9fa;
  padding: 15px;
  text-align: center;
}

.round-ranking-card__title {
  color: #000080;
  margin-bottom: 15px;
}

.round-ranking-card__top3 {
  margin-bottom: 15px;
  font-size: 12px;
}

.round-ranking-card__entry {
  padding: 5px;
  border-bottom: 1px solid #ddd;
}

.round-ranking-card__entry-medal {
  font-size: 18px;
}

.round-ranking-card__empty {
  color: #999;
  font-size: 12px;
  margin-bottom: 15px;
}

.round-ranking-card__btn {
  width: 100%;
  padding: 8px;
  font-size: 14px;
}

/* ── Critérios de desempate (accordion) ── */
.criteria-accordion {
  margin-top: 30px;
}

.criteria-accordion__wrapper {
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.criteria-accordion__header {
  padding: 15px;
  background: #f8f9fa;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.criteria-accordion__title {
  color: #000080;
  margin: 0;
  font-size: 16px;
}

.criteria-accordion__icon {
  transition: transform 0.3s;
  font-size: 20px;
}

.criteria-accordion__body {
  display: none;
  padding: 20px;
  background: white;
  border-top: 1px solid #ddd;
}

.criteria-accordion__body ol {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.criteria-accordion__favorite-note {
  margin-top: 15px;
  padding: 10px;
  background: #fff3cd;
  border-radius: 3px;
  font-size: 14px;
}

/* ── Dark mode ── */
[data-theme="dark"] .league-select-card__name,
[data-theme="dark"] .league-select-card__stat-value,
[data-theme="dark"] .league-select-card__cta {
  color: #7aabff;
}

[data-theme="dark"] .league-select-card__championship,
[data-theme="dark"] .league-select-card__stat-label {
  color: var(--text-secondary);
}

[data-theme="dark"] .view-toggle__track {
  background: #2a2a2a;
}

[data-theme="dark"] .view-toggle__btn--inactive {
  color: var(--text-secondary);
}

[data-theme="dark"] .ranking-page-header__title {
  color: #7aabff;
}

[data-theme="dark"] .ranking-page-header__league {
  color: var(--text-secondary);
}

[data-theme="dark"] .ranking-num-cell,
[data-theme="dark"] .ranking-position-num,
[data-theme="dark"] .ranking-points,
[data-theme="dark"] .podium__points {
  color: #7aabff;
}

[data-theme="dark"] .podium__name {
  color: var(--text-primary);
}

[data-theme="dark"] .podium__wins,
[data-theme="dark"] .podium__stats,
[data-theme="dark"] .evolution-chart-hint {
  color: var(--text-secondary);
}

[data-theme="dark"] .round-ranking-card {
  background: #2a2a2a;
}

[data-theme="dark"] .round-ranking-card__title {
  color: #7aabff;
}

[data-theme="dark"] .round-ranking-card__entry {
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .round-ranking-card__empty {
  color: var(--text-secondary);
}

[data-theme="dark"] .criteria-accordion__wrapper {
  border-color: var(--border-color);
}

[data-theme="dark"] .criteria-accordion__header {
  background: #2a2a2a;
}

[data-theme="dark"] .criteria-accordion__title {
  color: #7aabff;
}

[data-theme="dark"] .criteria-accordion__body {
  background: var(--bg-card);
  border-top-color: var(--border-color);
}

[data-theme="dark"] .ranking-row--normal {
  background: var(--bg-card);
}

[data-theme="dark"] .ranking-row--me {
  background: #2a2a1a;
}

[data-theme="dark"] .full-ranking-header h2 {
  color: #7aabff;
}

/* ── Responsividade ── */
@media (max-width: 992px) {
  .rounds-ranking-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .leagues-select-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .leagues-select-grid {
    grid-template-columns: 1fr;
  }

  .rounds-ranking-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .podium {
    gap: 8px;
  }

  .podium__place {
    width: 110px;
  }

  .view-toggle__btn {
    padding: 8px 16px;
    font-size: 15px;
  }
}
/* ============================================
   PREDICTIONS & RANKINGS
   ============================================ */

/* Cards de liga/campeonato na index */
.league-select-card {
    text-align: center;
    padding: 30px;
    transition: transform 0.2s;
  }
  
  .league-select-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }
  
  /* Cabeçalho gradiente azul (predictions) */
  .predictions-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 24px;
    background: linear-gradient(135deg, #3355aa 0%, #6688dd 100%);
    border-radius: 8px;
  }
  
  /* Cabeçalho gradiente dourado (rankings) */
  .rankings-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 24px;
    background: linear-gradient(135deg, #f5a623 0%, #f7c96e 100%);
    border-radius: 8px;
  }
  
  .predictions-header h1,
  .predictions-header h2,
  .rankings-header h1,
  .rankings-header h2 {
    color: #fff;
    margin: 0 0 8px 0;
  }
  
  .predictions-header p,
  .rankings-header p {
    color: rgba(255,255,255,0.75);
    margin: 0;
  }
  
  /* Nome do jogador na tabela */
  .player-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  /* ============================================
     RESPONSIVIDADE MOBILE - RANKINGS
     ============================================ */
  @media (max-width: 768px) {
    html, body {
      overflow-x: hidden !important;
      max-width: 100vw !important;
    }
  
    body {
      width: 100vw !important;
    }
  
    .container {
      max-width: 100vw !important;
      width: 100vw !important;
      padding: 8px !important;
      overflow-x: hidden !important;
    }
  
    .card {
      max-width: calc(100vw - 16px) !important;
      overflow-x: hidden !important;
      padding: 8px !important;
      margin: 8px 0 !important;
      box-sizing: border-box !important;
    }
  
    /* RANKING TABLE → CARDS */
    .ranking-table {
      display: block !important;
      width: 100% !important;
      overflow: visible !important;
    }
  
    .ranking-table thead {
      display: none !important;
    }
  
    .ranking-table tbody {
      display: block !important;
      width: 100% !important;
    }
  
    .ranking-table tbody tr {
      display: block !important;
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 0 12px 0 !important;
      padding: 12px !important;
      border: 1px solid #ddd !important;
      border-radius: 6px !important;
      background: white !important;
      box-sizing: border-box !important;
      transform: none !important;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
  
    .ranking-table tbody tr:hover {
      transform: none !important;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }
  
    .ranking-table tbody td {
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
      width: 100% !important;
      max-width: 100% !important;
      padding: 8px 0 !important;
      border: none !important;
      border-bottom: 1px solid #f0f0f0 !important;
      box-sizing: border-box !important;
      font-size: 14px !important;
    }
  
    .ranking-table tbody td:last-child {
      border-bottom: none !important;
    }
  
    .ranking-table tbody td:before {
      content: attr(data-label);
      font-weight: bold;
      color: #000080;
      font-size: 11px;
      text-transform: uppercase;
      flex-basis: 40%;
    }
  
    .ranking-table tbody td > * {
      flex-basis: 60%;
      text-align: right !important;
      display: block !important;
    }
  
    .ranking-table tbody td span,
    .ranking-table tbody td strong {
      display: inline !important;
    }
  
    .ranking-table tbody td div {
      display: flex !important;
      justify-content: flex-end !important;
      align-items: center !important;
      gap: 5px !important;
      width: 100% !important;
    }
  
    /* PÓDIOS - 1 COLUNA */
    .podium-grid {
      flex-direction: column !important;
      align-items: center !important;
    }
  
    /* GRID DE RODADAS - 1 COLUNA */
    .rounds-grid {
      grid-template-columns: 1fr !important;
    }
  }
  
  /* ============================================
     RESPONSIVIDADE MOBILE - PREDICTIONS
     ============================================ */
  @media (max-width: 768px) {
    table {
      display: block !important;
      width: 100% !important;
      max-width: 100% !important;
      min-width: 0 !important;
      overflow: visible !important;
    }
  
    table thead {
      display: none !important;
    }
  
    table tbody {
      display: block !important;
      width: 100% !important;
    }
  
    table tbody tr {
      display: block !important;
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 0 12px 0 !important;
      padding: 12px !important;
      border: 1px solid #ddd !important;
      border-radius: 6px !important;
      background: #fff !important;
      box-sizing: border-box !important;
    }
  
    table tbody td {
      display: block !important;
      width: 100% !important;
      padding: 6px 0 !important;
      border: none !important;
      text-align: left !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
    }
  
    table tbody td div {
      display: block !important;
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
    }
  
    table tbody td:before {
      content: attr(data-label);
      display: block;
      font-weight: bold;
      color: #000080;
      font-size: 11px;
      text-transform: uppercase;
      margin-bottom: 4px;
      padding-bottom: 2px;
      border-bottom: 1px solid #eee;
    }
  
    table tbody td[data-label*="PREVIS"] div,
    table tbody td[data-label*="Previs"] div {
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      gap: 8px !important;
    }
  
    .prediction-field {
      width: 50px !important;
      padding: 8px !important;
      font-size: 16px !important;
    }
  
    table tbody td img {
      max-width: 30px !important;
      height: auto !important;
    }
  
    table tbody td strong,
    table tbody td span,
    table tbody td small {
      word-wrap: break-word !important;
      overflow-wrap: break-word !important;
      hyphens: auto !important;
    }
  
    /* Colunas de usuários - 1 coluna */
    .users-predictions-grid {
      flex-direction: column !important;
    }
  }
/* ==================== MATCH RESULTS CARDS ==================== */

.matches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colunas fixas iguais */
  gap: 15px; /* Reduzir gap de 20px para 15px */
  margin: 20px 0;
  width: 100%;
}

/* Responsivo: 3 colunas em telas médias */
@media (max-width: 1400px) {
  .matches-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsivo: 2 colunas em tablets */
@media (max-width: 1024px) {
  .matches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsivo: 1 coluna em mobile */
@media (max-width: 768px) {
  .matches-grid {
    grid-template-columns: 1fr;
  }
}

.match-card {
  background: white;
  border-radius: 10px;
  padding: 15px; /* Reduzir de 20px para 15px */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.match-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.match-card.finished {
  background: #e8f5e9;
}

.match-card.live {
  background: #fff3e0;
  border: 2px solid #ff9800;
}

.match-datetime {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
  font-weight: 500;
}

.match-teams {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
}

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.team-badge {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-name {
  font-weight: 600;
  font-size: 13px; /* Reduzir de 15px */
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-score {
  width: 55px; /* Reduzir de 60px */
}

.team-score input {
  width: 100%;
  text-align: center;
  padding: 6px; /* Reduzir de 8px */
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-weight: 700;
  font-size: 20px; /* Reduzir de 22px */
  color: #000080;
  font-family: var(--font-score);
}

.team-score .display {
  font-weight: 700 !important;
  font-size: 24px !important; /* Reduzir de 26px */
  color: #000080 !important;
  font-family: var(--font-score) !important;
  text-align: center !important;
  width: 100% !important;
  line-height: 1 !important;
}

.vs-separator {
  text-align: center;
  color: #ccc;
  font-weight: 700;
  font-size: 16px; /* Reduzir de 18px */
  margin: -4px 0;
}

.match-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.match-actions button,
.match-actions .live-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s;
}

.match-actions button:hover,
.match-actions .live-button:hover {
  transform: scale(1.1);
}

.match-actions button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.match-actions img {
  width: 28px; /* Reduzir de 32px */
  height: 28px;
}

.match-teams-wrapper {
  display: flex;
  gap: 15px;
  align-items: center;
}

.match-teams {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.live-controls-card {
  display: flex;
  flex-direction: column;
  gap: 5px; /* Reduzir de 6px */
  min-width: 50px; /* Reduzir de 60px */
}

.status-btn-card {
  padding: 6px 8px; /* Reduzir padding */
  font-size: 9px; /* Reduzir de 10px */
  border-radius: 5px;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}

.status-btn-card:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.status-btn-card.active {
  font-weight: bold;
}

.status-btn-card {
  padding: 8px 12px;
  font-size: 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  min-width: 50px;
  text-align: center;
  font-weight: 600;
}

.status-btn-card:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.status-btn-card.active {
  font-weight: bold;
}

/* Remover classe não utilizada */
.update-score-btn {
  display: none;
}

.update-score-btn:hover {
  background: #0056b3;
}

.match-checkbox {
  position: absolute;
  top: 10px; /* Reduzir de 12px */
  right: 10px;
}

.action-buttons-top,
.action-buttons-bottom {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
/* ═══════════════════════════════════════════════
   PÓDIO — Ranking Geral e Rodada
   ═══════════════════════════════════════════════ */

   .podium-card {
    background: white !important;
    border: none !important;
    padding: 30px 20px 40px !important;
  }
  
  [data-theme="dark"] .podium-card {
    background: radial-gradient(circle at top, #0f172a, #020617) !important;
  }
  
  .podium-title {
    text-align: center;
    font-size: 1.4rem;
    color: #000080;
    font-family: var(--font-team);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 50px;
  }
  
  [data-theme="dark"] .podium-title {
    color: #facc15;
    text-shadow: 0 0 16px #facc1566;
  }

.podium-stage {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  perspective: 1200px;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Jogadores ── */
.podium-player {
  text-align: center;
  transform: translateY(60px);
  opacity: 0;
  animation: podiumRise 0.9s ease forwards;
  position: relative;
}

.podium-player.pos-1 { animation-delay: 0.1s; }
.podium-player.pos-2 { animation-delay: 0.3s; }
.podium-player.pos-3 { animation-delay: 0.5s; }

@keyframes podiumRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.podium-player.pos-1 .podium-avatar-ring { width: 88px; height: 88px; }
.podium-player.pos-1 .podium-name        { font-size: 14px; max-width: 140px; }
.podium-player.pos-1 .podium-pts         { font-size: 22px; }
.podium-player.pos-1 .podium-wins        { font-size: 13px; }

/* ── Badge de posição ── */
.podium-badge {
  display: none;
}

/* ── Anel do avatar ── */
.podium-avatar-ring {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  padding: 3px;
  margin: 0 auto 8px;
}

.podium-player.pos-1 .podium-avatar-ring { background: linear-gradient(145deg, #facc15, #f59e0b); }
.podium-player.pos-2 .podium-avatar-ring { background: linear-gradient(145deg, #e5e7eb, #9ca3af); }
.podium-player.pos-3 .podium-avatar-ring { background: linear-gradient(145deg, #d97706, #78350f); }

.podium-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid white;
}

.podium-player.pos-1 .podium-avatar-ring img { box-shadow: 0 0 20px #facc15aa; }

.podium-crown {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%) rotate(-15deg);
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 6px #facc15aa);
}
.podium-player.pos-2 .podium-avatar-ring img { box-shadow: 0 0 12px #9ca3af88; }
.podium-player.pos-3 .podium-avatar-ring img { box-shadow: 0 0 12px #d9770688; }

[data-theme="dark"] .podium-avatar-ring img { border-color: #0f172a; }

/* ── Nome e pontos ── */
.podium-name {
  font-size: 12px;
  font-weight: 500;
  color: #333;
  margin: 0 0 3px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-ui);
}


.podium-pts {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  font-family: var(--font-score);
  letter-spacing: 0.03em;
}

.podium-player.pos-1 .podium-name { color: #333; }
.podium-player.pos-2 .podium-name { color: #333; }
.podium-player.pos-3 .podium-name { color: #333; }

.podium-player.pos-1 .podium-pts { color: #b8860b; }
.podium-player.pos-2 .podium-pts { color: #555; }
.podium-player.pos-3 .podium-pts { color: #b84d00; }

[data-theme="dark"] .podium-player.pos-1 .podium-name { color: #e2e8f0; }
[data-theme="dark"] .podium-player.pos-2 .podium-name { color: #e2e8f0; }
[data-theme="dark"] .podium-player.pos-3 .podium-name { color: #e2e8f0; }

/* ── Base/pedestal 3D ── */
.podium-base {
  transform: rotateX(18deg);
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0;
  width: 110px;
  margin: 0 auto;
  color: rgba(0, 0, 0, 0.18);
  font-family: var(--font-ui);
}

.podium-player.pos-1 .podium-base { height: 160px; background: linear-gradient(170deg, #facc15, #f59e0b); box-shadow: 0 -4px 20px #facc1544; }
.podium-player.pos-2 .podium-base { height: 120px; background: linear-gradient(170deg, #e5e7eb, #9ca3af); }
.podium-player.pos-3 .podium-base { height: 90px;  background: linear-gradient(170deg, #d97706, #92400e); color: rgba(255,255,255,0.25); }

[data-theme="dark"] .podium-player.pos-1 .podium-base { background: linear-gradient(170deg, #92400e, #451a03); }
[data-theme="dark"] .podium-player.pos-2 .podium-base { background: linear-gradient(170deg, #374151, #111827); }
[data-theme="dark"] .podium-player.pos-3 .podium-base { background: linear-gradient(170deg, #292524, #1c1917); }

/* ── Sparkle campeão ── */
.podium-sparkle {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 15px;
  animation: sparkleAnim 1.2s ease-in-out infinite alternate;
}

@keyframes sparkleAnim {
  from { opacity: 0.3; }
  to   { opacity: 1; }
}

/* ── Linha do palco ── */
.podium-stage-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #FFD70066, #FFD700, #FFD70066, transparent);
  margin-top: 0;
}

[data-theme="dark"] .podium-stage-line {
  background: linear-gradient(90deg, transparent, #facc1544, #facc1588, #facc1544, transparent);
}

/* ── Responsivo ── */
@media (max-width: 480px) {
  .podium-stage { gap: 12px; }

  .podium-avatar-ring { width: 58px; height: 58px; }

  .podium-name { font-size: 10px; max-width: 90px; }
  .podium-pts  { font-size: 13px; }

  .podium-base { width: 84px; font-size: 9px; }
  .podium-player.pos-1 .podium-base { height: 120px; }
  .podium-player.pos-2 .podium-base { height: 90px; }
  .podium-player.pos-3 .podium-base { height: 70px; }
}

.podium-wins {
  font-size: 11px;
  color: #888;
  margin: 0 0 10px;
  font-family: var(--font-ui);
}

.podium-player.pos-1 .podium-wins { color: #ebab0b; }
.podium-player.pos-2 .podium-wins { color: #555; }
.podium-player.pos-3 .podium-wins { color: #b84d00; }

[data-theme="dark"] .podium-wins { color: #94a3b8; }
[data-theme="dark"] .podium-player.pos-1 .podium-wins { color: #facc15cc; }

/* ── Layout com stats laterais ── */
.podium-layout {
  display: grid;
  grid-template-columns: 250px auto 250px;
  align-items: start;
  gap: 16px;
}

.podium-stats-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 8px;
}

.podium-stat-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 12px 14px;
  border-left: 3px solid #e0e0e0;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.podium-stat-gold   { border-left-color: #f59e0b; }
.podium-stat-blue   { border-left-color: #000080; }
.podium-stat-silver { border-left-color: #9ca3af; }
.podium-stat-bronze { border-left-color: #d97706; }

.podium-stat-label {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
  font-family: var(--font-ui);
}

.podium-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin: 0 0 2px;
  font-family: var(--font-ui);
}

.podium-stat-sub {
  font-size: 11px;
  color: #aaa;
  margin: 0;
  font-family: var(--font-ui);
}

/* Responsivo — esconde stats em mobile */
@media (max-width: 640px) {
  .podium-layout {
    grid-template-columns: 1fr;
  }
  .podium-stats-col {
    display: none;
  }
}

/* Dark mode */
[data-theme="dark"] .podium-stat-card  { background: #1e2535; }
[data-theme="dark"] .podium-stat-value { color: #e2e8f0; }
[data-theme="dark"] .podium-stat-sub   { color: #64748b; }
/* ═══════════════════════════════════════════════
   COVERFLOW 3D — navegação de rodadas
═══════════════════════════════════════════════ */
.coverflow-wrap {
    perspective: 1000px;
    overflow: hidden;
    padding: 2rem 0 2.5rem;
  }
  .coverflow-track {
    display: flex;
    gap: 1.2rem;
    justify-content: flex-start;
    align-items: center;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
    transform-style: preserve-3d;
    will-change: transform;
  }
  .cf-card {
    flex-shrink: 0;
    width: 220px;
    min-height: 230px;
    border-radius: 18px;
    padding: 1.6rem 1.4rem;
    text-align: center;
    transition: transform .5s cubic-bezier(.4,0,.2,1), opacity .4s, box-shadow .4s, filter .4s, border-color .3s;
    cursor: pointer;
    will-change: transform;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid #ddd;
    background: #f8f9fa;
  }
  .cf-card.is-center {
    transform: scale(1.15) translateZ(0);
    opacity: 1;
    box-shadow: 0 24px 60px rgba(0,0,128,.25);
    filter: none;
    z-index: 10;
  }
  .cf-card.is-adj {
    transform: scale(.88) rotateY(var(--ry, -30deg)) translateX(var(--tx, 0));
    opacity: .65;
    filter: brightness(.85);
    z-index: 5;
  }
  .cf-card.is-far {
    transform: scale(.76) rotateY(var(--ry, -45deg)) translateX(var(--tx, 0));
    opacity: .3;
    filter: brightness(.6);
    z-index: 1;
  }
  .coverflow-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: .5rem;
  }
  .cf-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1.5px solid #000080;
    background: white;
    color: #000080;
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .15s;
  }
  .cf-btn:hover:not(:disabled) { background: #000080; color: white; transform: scale(1.08); }
  .cf-btn:disabled { opacity: .25; cursor: not-allowed; }
  
  /* Minimap - Barras coloridas */
  .cf-minimap {
    display: flex;
    gap: 3px;
    align-items: flex-start;
    max-width: 600px;
    margin: 8px auto 0;
  }
  
  .cf-minimap-dot {
    flex: 1;
    min-width: 8px;
    max-width: 12px;
    height: 30px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(0,0,0,0.1);
  }
  
  .cf-minimap-dot:hover {
    transform: scaleY(1.15);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  
  .cf-minimap-label {
    font-size: 10px;
    color: #999;
    margin-top: 8px;
    font-weight: 600;
    user-select: none;
    line-height: 1;
  }
  
  .cf-minimap-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 12px;
    color: #666;
    margin-top: 20px;
  }
  
  .cf-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .cf-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
  }

  /* ============================================
   MOBILE - Lista Vertical em vez de Carousel
   ============================================ */

@media (max-width: 768px) {
  /* Manter wrapper visível mas sem perspective */
  .coverflow-wrap {
    perspective: none !important;
    overflow: visible !important;
    padding: 1rem 0 !important;
  }

  /* Esconder navegação com setas */
  .coverflow-nav {
    display: none !important;
  }

  /* Track em coluna vertical */
  .coverflow-track {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    padding: 0 !important;
    transform: none !important;
    transform-style: flat !important;
  }

  /* Cards em lista vertical - 100% largura */
  .cf-card {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    border-radius: 12px !important;
    padding: 1.2rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
  }

  /* Resetar TODOS os estados do carousel */
  .cf-card.is-center,
  .cf-card.is-adj,
  .cf-card.is-far {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    z-index: auto !important;
    scale: 1 !important;
  }

  /* Card ativo com borda azul */
  .cf-card.is-center {
    border-color: #000080 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 128, 0.2) !important;
  }

  /* Minimapa menor */
  .cf-minimap {
    max-width: 100% !important;
    padding: 0 !important;
    margin-top: 1rem !important;
  }

  .cf-minimap-dot {
    height: 20px !important;
    min-width: 5px !important;
  }

  .cf-minimap-label {
    font-size: 8px !important;
  }

  .cf-minimap-legend {
    font-size: 9px !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  .cf-legend-color {
    width: 12px !important;
    height: 12px !important;
  }
}
/* ==================== MODO AO VIVO ==================== */

@keyframes pulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.6; 
    transform: scale(1.1);
  }
}

.live-controls {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.status-btn {
  transition: all 0.2s;
  font-family: inherit;
}

.status-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.status-btn.active {
  font-weight: bold;
}

/* Animação de rotação da bola */
@keyframes spin-ball {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.live-ball {
  animation: spin-ball 2s linear infinite;
  display: inline-block;
}

.live-ball-inactive {
  opacity: 0.3;
  filter: grayscale(100%);
}
/* ═══════════════════════════════════════════════
   EVOLUTION GRID — Grid de avatares por rodada
═══════════════════════════════════════════════ */

.evolution-grid-container {
  background: var(--color-bg-primary, #fff);
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.evolution-grid-container h2 {
  text-align: center;
  color: #000080;
  margin: 0 0 1.5rem 0;
  font-size: 22px;
}

/* Legenda de jogadores */
.player-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.player-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.player-legend-item:hover {
  background: #f5f5f5;
}

.player-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid;
  flex-shrink: 0;
}

/* Grid wrapper com scroll */
.evolution-grid-wrapper {
  position: relative;
  overflow: auto;
  max-height: 600px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
}

/* SVG para linhas de trajetória */
.trajectory-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

/* Grid principal */
.evolution-grid {
  display: grid;
  grid-template-columns: 60px repeat(auto-fit, 70px);
  gap: 0;
  min-width: fit-content;
  background: white;
}

/* Esmaecer avatares não destacados */
.evolution-grid.has-highlight .avatar-wrapper:not(.highlighted) {
  opacity: 0.3;
  filter: grayscale(50%);
}

.evolution-grid.has-highlight .avatar-wrapper.highlighted {
  opacity: 1;
  filter: none;
}

/* Headers */
.grid-header {
  background: #000080;
  color: white;
  border-bottom: 1px solid #0000cc;
  border-right: 1px solid #0000cc;
  padding: 12px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 200;
}

.grid-header:first-child {
  position: sticky;
  left: 0;
  z-index: 300;
}

/* Células do grid */
.grid-cell {
  position: relative;
  padding: 8px;
  text-align: center;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.grid-cell.position-label {
  background: #f5f5f5;
  font-weight: 600;
  font-size: 14px;
  color: #000080;
  position: sticky;
  left: 0;
  z-index: 150;
  border-right: 2px solid #000080;
}

/* Avatar wrapper */
.avatar-wrapper {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
  width: 44px;
  height: 44px;
}

.avatar-wrapper:hover {
  transform: scale(1.15);
  z-index: 400;
}

/* Avatar image */
.avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid;
  transition: all 0.2s;
  object-fit: cover;
  display: block;
}

.avatar-wrapper:hover .avatar-img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.avatar-wrapper.highlighted .avatar-img {
  border-width: 4px;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.4);
}

/* Legenda inferior */
.evolution-legend {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  font-size: 13px;
  color: #666;
}

.evolution-legend p {
  margin: 4px 0;
}

.evolution-legend p:first-child {
  font-weight: 600;
  color: #000080;
}

/* Ajuste no mobile */
@media (max-width: 768px) {
  .avatar-wrapper.first-place::before {
    width: 22px;
    height: 22px;
    top: -6px;
    right: -6px;
  }
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  .evolution-grid-container {
    padding: 1rem;
  }

  .evolution-grid-container h2 {
    font-size: 18px;
  }

  .evolution-grid {
    grid-template-columns: 50px repeat(auto-fit, 60px);
  }

  .grid-header {
    font-size: 11px;
    padding: 10px 6px;
  }

  .grid-cell {
    min-height: 50px;
    padding: 6px;
  }

  .avatar-wrapper {
    width: 36px;
    height: 36px;
  }

  .avatar-img {
    width: 36px;
    height: 36px;
    border-width: 2px;
  }

  .avatar-wrapper:hover .avatar-img {
    border-width: 3px;
  }

  .player-legend {
    gap: 12px;
  }

  .player-legend-item {
    font-size: 12px;
    padding: 4px 8px;
  }

  .player-color-dot {
    width: 12px;
    height: 12px;
  }

  .evolution-legend {
    font-size: 12px;
  }
}
.card--users-table {
  overflow-x: auto;
  padding: 20px;
}

.card--users-table table {
  width: 100%;
  min-width: 900px;
}

.card--users-table table th:nth-child(1) { width: 50px; }   /* Avatar */
.card--users-table table th:nth-child(2) { width: 140px; }  /* Nome */
.card--users-table table th:nth-child(3) { width: 200px; }  /* Email */
.card--users-table table th:nth-child(4) { width: 100px; }  /* Perfil */
.card--users-table table th:nth-child(5) { width: 60px; }   /* Ligas */
.card--users-table table th:nth-child(6) { width: 70px; }   /* Pitacos */
.card--users-table table th:nth-child(7) { width: 80px; }   /* Status */
.card--users-table table th:nth-child(8) { width: 105px; }   /* Último acesso */
.card--users-table table th:nth-child(9) { width: 75px; }   /* Logins */
.card--users-table table th:nth-child(10) { width: 90px; }  /* Cadastro */
.card--users-table table th:nth-child(11) { width: 80px; }  /* Ações */
/*
 * PITACOS FC — Sistema modular de estilos
 *













 */

 @import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;600&family=Oswald:wght@500;600&family=Roboto+Condensed:wght@700&display=swap');

 

 /*
  * PITACOS FC — Sistema modular de estilos
  * Organização: Base → Components → Layouts → Pages → Themes → Responsive
  */
 
 :root {
   --nav-height: 130px;
   --logo-overflow: 30px;
   --breadcrumb-top: calc(var(--nav-height));
   --breadcrumb-height: 60px;
   --total-header: calc(var(--breadcrumb-top) + var(--breadcrumb-height));
 
   --font-logo:  'Bebas Neue', sans-serif;
   --font-ui:    'Montserrat', sans-serif;
   --font-team:  'Oswald', sans-serif;
   --font-score: 'Eurostyle', 'Roboto Condensed', sans-serif;
 }
 
 * { margin: 0; padding: 0; box-sizing: border-box; }
 
 body {
   font-family: var(--font-ui);
   font-weight: 400;
   background: #f5f5f5;
   padding-top: var(--total-header);
 }
 
 .container { max-width: 1200px; margin: 0 auto; padding: 10px; }
 
 /* ============================================
   NAVEGAÇÃO
   ============================================ */
 nav { background: #000080; color: white; padding: 10px 0; }
 nav .container { display: flex; justify-content: space-between; align-items: center; min-height: 70px; padding-left: 160px; }
 nav a { color: white; text-decoration: none; margin: 0 15px; }
 nav a:hover { text-decoration: none; opacity: 0.8; }
 
 .dropdown { position: relative; display: inline-block; }
 .dropdown-toggle {
 color: white;
 text-decoration: none;
 margin: 0 15px;
 cursor: pointer;
 padding: 7px 14px;
 border-radius: 50px;
 display: inline-flex;
 align-items: center;
 gap: 6px;
 font-size: 14px;
 border: 1px solid rgba(255,255,255,0.25);
 transition: background 0.2s, border-color 0.2s;
 }
 .dropdown-toggle:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); }
 .dropdown-click .dropdown-toggle { border: none; background: transparent; padding: 4px 6px; }
 .dropdown-click .dropdown-toggle:hover { background: rgba(255,255,255,0.15); border: none; }
 .dropdown::after {
 content: '';
 position: absolute;
 top: 100%;
 left: 0;
 width: 100%;
 height: 8px;
 }
 .dropdown-toggle svg { transition: transform 0.2s; }
 .dropdown:hover .dropdown-toggle svg { transform: rotate(180deg); }
 .dropdown-menu {
 display: none;
 position: absolute;
 top: calc(100% + 8px);
 left: 0;
 background: linear-gradient(160deg, #4a1942 0%, #7b2d6e 100%);
 border-radius: 12px;
 min-width: 210px;
 box-shadow: 0 8px 30px rgba(74,25,66,0.45);
 overflow: hidden;
 z-index: 11000;
 border: 1px solid rgba(255,255,255,0.12);
 }
 .dropdown:hover .dropdown-menu { display: block; }
 .dropdown-click .dropdown-menu { display: none !important; }
 .dropdown-click.open .dropdown-menu { display: block !important; }
 .dropdown-menu-header {
 padding: 12px 16px 8px;
 font-size: 11px;
 text-transform: uppercase;
 letter-spacing: 1px;
 color: rgba(255,255,255,0.55);
 font-weight: 700;
 text-shadow: 0 1px 3px rgba(0,0,0,0.3);
 }
 .dropdown-menu a {
 display: flex;
 align-items: center;
 gap: 10px;
 padding: 10px 16px;
 color: #fff;
 text-decoration: none;
 font-size: 14px;
 font-weight: 700;
 text-shadow: 0 1px 3px rgba(0,0,0,0.3);
 transition: background 0.15s;
 margin: 0;
 }
 .dropdown-menu a:hover { background: rgba(255,255,255,0.15); color: #fff; }
 .dropdown-menu hr { border: none; border-top: 1px solid rgba(255,255,255,0.12); margin: 4px 0; }
 
 /* ============================================
   FLASH MESSAGES
   ============================================ */
 .flash {
  padding: 15px 40px 15px 15px;
  margin: 20px 0;
  border-radius: 5px;
  position: relative;
  animation: slideDown 0.3s ease-out;
 }
 @keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
 }
 .flash.notice { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
 .flash.alert { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
 .flash-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  padding: 0;
  width: 24px;
  height: 24px;
  line-height: 24px;
 }
 .flash-close:hover { opacity: 1; }
 
 /* ============================================
   BOTÕES
   ============================================ */
 .btn { display: inline-block; padding: 10px 20px; background: #000080; color: white; text-decoration: none; border-radius: 5px; border: none; cursor: pointer; }
 .btn:hover { background: #0052a3; }
 .btn-danger { background: #dc3545; }
 .btn-danger:hover { background: #c82333; }
 
 /* ============================================
   TABELAS
   ============================================ */
 table { width: 100%; border-collapse: collapse; background: white; margin: 20px 0; }
 th, td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }
 th { background: #f8f9fa; font-weight: bold; }
 
 .ranking-table thead th {
  background: #000080 !important;
  color: white !important;
  padding: 15px 8px;
  font-size: 16px;
  font-weight: bold;
  vertical-align: middle;
 }
 .ranking-table tbody tr {
  transition: all 0.2s ease;
  cursor: pointer;
 }
 .ranking-table tbody tr:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
 }
 .ranking-table tbody tr a:hover {
  text-decoration: underline !important;
  color: #007bff !important;
 }
 .ranking-table tbody tr a:hover img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
  cursor: help;
 }
 
 /* ============================================
   CARD
   ============================================ */
 .card { background: white; padding: 20px; margin: 20px 0; border-radius: 5px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
 
 /* ============================================
   BREADCRUMB
   ============================================ */
 
   .breadcrumb {
     position: fixed;
     top: var(--breadcrumb-top);
     left: 50%;
     transform: translateX(-50%);
     width: 100%;
     max-width: 1000px;
     z-index: 10000;
     background-color: #f5f5f5;
     border-radius: 8px !important;
     padding: 8px 16px;
     margin-bottom: 0 !important;
     box-shadow: 0 2px 4px rgba(0,0,0,0.1);
     display: flex;
   }
 
    /* Esconder breadcrumb no mobile */
    @media (max-width: 768px) {
     .breadcrumb {
       display: none !important;
     }
   }
 
 /* ============================================
   LOADING OVERLAY
   ============================================ */
 #loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.45);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
 }
 
 .loading-bar {
  position: relative;
  width: 300px;
  height: 50px;
  background: rgba(0, 0, 128, 0.95);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.2);
 }
 
 .loading-bar-text {
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: rgba(255,255,255,0.4);
  letter-spacing: 6px;
  line-height: 46px;
 }
 
 .loading-ball {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 6px;
  left: 0;
  animation: roll-slow 1.5s linear infinite;
 }
 
 @keyframes roll-slow {
  0%   { left: -20px; transform: rotate(0deg); }
  100% { left: calc(100% + 20px); transform: rotate(1440deg); }
 }
 
 /* ============================================
   EMOJI
   ============================================ */
 .emoji-icon {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 24px;
  line-height: 1;
 }
 
 /* ============================================
   RESPONSIVIDADE MOBILE
   ============================================ */
 @media (max-width: 992px) {
  .container { padding: 15px; }
  nav a { margin: 0 8px; font-size: 14px; }
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
 }
 
 @media (max-width: 768px) {
  body { padding-top: var(--total-header); }
  .container { padding: 10px; }
  h1 { font-size: 24px !important; }
  h2 { font-size: 20px !important; }
  h3 { font-size: 18px !important; }
  nav .container { flex-direction: column; gap: 10px; }
  nav a { margin: 5px; font-size: 13px; }
  .dropdown-menu { position: static; box-shadow: none; margin-top: 0; }
  .btn { padding: 8px 15px; font-size: 14px; }
  div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .card { overflow-x: auto !important; }
  .ranking-table { min-width: 600px; width: 100%; }
  .ranking-table thead th { font-size: 11px !important; padding: 8px 4px !important; white-space: nowrap; }
  .ranking-table tbody td { font-size: 12px !important; padding: 8px 4px !important; }
  .ranking-table tbody td[style*="max-width: 200px"] { max-width: 120px !important; }
  table { min-width: 700px; font-size: 12px; }
  th, td { padding: 6px 4px !important; font-size: 11px !important; }
  .prediction-field { width: 40px !important; padding: 3px !important; font-size: 14px !important; }
  .breadcrumb { font-size: 12px; top: var(--breadcrumb-top); }
  .flash { padding: 10px 30px 10px 10px; font-size: 14px; }
  div[style*="font-size: 48px"] { font-size: 36px !important; }
  div[style*="font-size: 32px"] { font-size: 24px !important; }
 }
 
 @media (max-width: 480px) {
  nav { padding: 10px 0; }
  nav .container { padding: 10px; }
  nav a { display: block; margin: 3px 0; padding: 8px; background: rgba(255,255,255,0.1); border-radius: 5px; }
  h1 { font-size: 20px !important; }
  h2 { font-size: 18px !important; }
  .btn { width: 100%; margin: 5px 0 !important; }
  .breadcrumb { display: none; }
  .card { padding: 15px !important; margin: 15px 0 !important; }
  .ranking-table thead th { font-size: 10px !important; padding: 8px 3px !important; }
  .ranking-table tbody td { font-size: 11px !important; padding: 6px 3px !important; }
  .ranking-table th:nth-child(n+6), .ranking-table td:nth-child(n+6) { display: none; }
  div[style*="font-size: 48px"] { font-size: 28px !important; }
  div[style*="font-size: 32px"] { font-size: 20px !important; }
  .prediction-field { width: 35px !important; font-size: 13px !important; }
 }
 
 @media (max-width: 768px) and (orientation: landscape) {
  nav .container { flex-direction: row; }
  .card { margin: 10px 0 !important; }
 }
 
 /* ============================================
  MODO ESCURO
  ============================================ */
 [data-theme="dark"] {
 --bg-primary:    #121212;
 --bg-secondary:  #1e1e1e;
 --bg-card:       #242424;
 --bg-input:      #2a2a2a;
 --text-primary:  #e8e8e8;
 --text-secondary:#aaaaaa;
 --border-color:  #333333;
 --nav-bg:        #0a0a3a;
 --breadcrumb-bg: #1a1a1a;
 }
 
 [data-theme="light"] {
 --bg-primary:    #f5f5f5;
 --bg-secondary:  #f8f9fa;
 --bg-card:       #ffffff;
 --bg-input:      #ffffff;
 --text-primary:  #333333;
 --text-secondary:#666666;
 --border-color:  #dddddd;
 --nav-bg:        #000080;
 --breadcrumb-bg: #f5f5f5;
 }
 
 [data-theme="dark"] body {
 background: var(--bg-primary);
 color: var(--text-primary);
 }
 
 [data-theme="dark"] nav {
 background: var(--nav-bg);
 }
 
 [data-theme="dark"] .breadcrumb {
 background-color: var(--breadcrumb-bg);
 color: var(--text-primary);
 }
 
 [data-theme="dark"] .breadcrumb a {
 color: #7aabff;
 }
 
 [data-theme="dark"] .card {
 background: var(--bg-card);
 color: var(--text-primary);
 box-shadow: 0 2px 4px rgba(0,0,0,0.4);
 }
 
 [data-theme="dark"] table {
 background: var(--bg-card);
 color: var(--text-primary);
 }
 
 [data-theme="dark"] th {
 background: #2a2a2a;
 color: var(--text-primary);
 border-bottom: 1px solid var(--border-color);
 }
 
 [data-theme="dark"] td {
 border-bottom: 1px solid var(--border-color);
 color: var(--text-primary);
 }
 
 [data-theme="dark"] .ranking-table thead th {
 background: #0a0a3a !important;
 color: white !important;
 }
 
 [data-theme="dark"] .ranking-table tbody tr:hover {
 box-shadow: 0 4px 8px rgba(0,0,0,0.5);
 }
 
 [data-theme="dark"] .flash.notice {
 background: #1a3a25;
 color: #75d89a;
 border-color: #2a5a35;
 }
 
 [data-theme="dark"] .flash.alert {
 background: #3a1a1a;
 color: #f08080;
 border-color: #5a2a2a;
 }
 
 [data-theme="dark"] input,
 [data-theme="dark"] select,
 [data-theme="dark"] textarea {
 background: var(--bg-input);
 color: var(--text-primary);
 border-color: var(--border-color);
 }
 
 [data-theme="dark"] input::placeholder,
 [data-theme="dark"] textarea::placeholder {
 color: var(--text-secondary);
 }
 
 [data-theme="dark"] .btn {
 background: #1a3a8a;
 }
 
 [data-theme="dark"] .btn:hover {
 background: #2a4aaa;
 }
 
 [data-theme="dark"] .btn-danger {
 background: #8a1a1a;
 }
 
 [data-theme="dark"] .btn-danger:hover {
 background: #aa2a2a;
 }
 
 [data-theme="dark"] .dropdown-menu {
 background: linear-gradient(160deg, #2a0a22 0%, #4a1a3e 100%);
 }
 
 [data-theme="dark"] #loading-overlay {
 background: rgba(0, 0, 0, 0.65);
 }
 
 [data-theme="dark"] h1,
 [data-theme="dark"] h2,
 [data-theme="dark"] h3 {
 color: #e8e8e8;
 }
 
 [data-theme="dark"] p {
 color: var(--text-secondary);
 }
 
 /* Cor azul dos títulos no dark mode — aplicado via classe .page-header__title etc. */
 
 /* Fundos claros — agora cobertos pelas classes em cada CSS de contexto */
 
 /* Textos cinza inline — agora controlados via classes */
 
 [data-theme="dark"] p[style*="color: #555"],
 [data-theme="dark"] span[style*="color: #555"],
 [data-theme="dark"] div[style*="color: #555"] {
 color: #bbb !important;
 }
 
 /* Bordas inline remanescentes */
 [data-theme="dark"] div[style*="border: 1px solid #ddd"],
 [data-theme="dark"] div[style*="border:1px solid #ddd"] {
 border-color: var(--border-color) !important;
 }
 
 /* Accordion */
 [data-theme="dark"] .accordion-header {
 background: #2a2a2a !important;
 color: var(--text-primary) !important;
 }
 
 [data-theme="dark"] .accordion-content {
 background: var(--bg-card) !important;
 border-top-color: var(--border-color) !important;
 }
 
 /* Modal de replicação */
 [data-theme="dark"] .modal-box {
 background: var(--bg-card);
 color: var(--text-primary);
 }
 
 [data-theme="dark"] .modal-description {
 color: var(--text-secondary);
 }
 
 [data-theme="dark"] .replication-league-item {
 border-color: var(--border-color);
 }
 
 [data-theme="dark"] .replication-league-item:hover {
 background: #2a2a2a;
 }
 
 /* Títulos azuis — cobertos via classes nos CSS de contexto */
 
 [data-theme="dark"] [style*="color: #000080"],
 [data-theme="dark"] [style*="color:#000080"] {
 color: #7aabff !important;
 }
 
 [data-theme="dark"] strong,
 [data-theme="dark"] b {
 color: var(--text-primary);
 }
 
 [data-theme="dark"] [style*="color: #333"],
 [data-theme="dark"] [style*="color:#333"] {
 color: var(--text-primary) !important;
 }
 
 [data-theme="dark"] [style*="color: #444"],
 [data-theme="dark"] [style*="color:#444"] {
 color: var(--text-primary) !important;
 }
 
 [data-theme="dark"] [style*="background: #f8f9fa"] strong,
 [data-theme="dark"] [style*="background: #f8f9fa"] span {
 color: var(--text-primary) !important;
 }
 
 [data-theme="dark"] .accordion-icon img,
 [data-theme="dark"] img[src*="arrow-icon"] {
 filter: invert(1);
 }
 
 [data-theme="dark"] img[src*="predictions-round"],
 [data-theme="dark"] img[src*="league-shield"],
 [data-theme="dark"] img[src*="league-star"] {
 filter: brightness(0) invert(1);
 }
 
 [data-theme="dark"] h3[style*="color: #000080"] {
 color: #7aabff !important;
 }
 
 [data-theme="dark"] img[src*="users-icon"] {
 filter: invert(1);
 }
 
 /* TABS */
 .tabs-wrapper {
 max-width: 1200px;
 margin: 0 auto;
 border: 1.5px solid #000080;
 border-radius: 8px;
 overflow: hidden;
 }
 
 .tabs-nav {
 display: flex;
 justify-content: center;
 background: #000080;
 overflow-x: auto;
 }
 
 .tab-btn {
 flex-shrink: 0;
 padding: .9rem 1.8rem;
 background: rgba(0,0,0,.25);
 border: none;
 border-right: 1.5px solid rgba(255,255,255,.15);
 cursor: pointer;
 font-size: .85rem;
 font-weight: 700;
 color: rgba(255,255,255,.6);
 letter-spacing: .05em;
 text-transform: uppercase;
 transition: background .15s, color .15s;
 }
 
 .tab-btn:hover {
 color: white;
 background: rgba(255,255,255,.1);
 }
 
 .tab-btn.active {
 color: #000080;
 background: #f0f4ff;
 border-bottom: 3px solid #f0f4ff;
 }
 
 .tabs-content {
 padding: 1.5rem;
 background: #f0f4ff;
 }
 
 .tab-panel {
 display: none;
 }
 
 .tab-panel.active {
 display: block;
 }
 
 /* PEEK CAROUSEL */
 .peek-stage { width: 100%; overflow: visible; position: relative; }
 .peek-mask { overflow: hidden; padding: 0 80px; margin: 0 -40px; }
 .peek-track { display: flex; gap: 1rem; transition: transform .42s cubic-bezier(.4,0,.2,1); }
 
 .s-card {
 min-width: calc(100% - 200px);
 flex-shrink: 0;
 background: white;
 border: 1.5px solid #e0e0e0;
 border-radius: 16px;
 padding: 0.8rem 1rem;
 transition: opacity .35s, transform .35s, box-shadow .35s;
 }
 .s-card:not(.is-active) { opacity: .4; transform: scale(.96); }
 .s-card.is-active { opacity: 1; transform: scale(1); box-shadow: 0 8px 24px rgba(0,0,128,.12); }
 .s-card-num {
 font-size: 5rem;
 line-height: 1;
 opacity: .05;
 position: absolute;
 top: .5rem;
 right: 1.2rem;
 color: #000080;
 font-weight: bold;
 pointer-events: none;
 }
 
 .single-nav { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.2rem; }
 .arrow-btn {
 width: 44px; height: 44px;
 border: 1.5px solid #000080;
 background: white;
 color: #000080;
 cursor: pointer;
 display: flex; align-items: center; justify-content: center;
 font-size: 1.1rem;
 border-radius: 50%;
 transition: background .2s, transform .15s;
 }
 .arrow-btn:hover:not(:disabled) { background: #000080; color: white; transform: scale(1.08); }
 .arrow-btn:disabled { opacity: .25; cursor: not-allowed; }
 
 .counter { font-size: .85rem; color: #666; min-width: 50px; text-align: center; }
 
 .peek-dots { display: flex; gap: .5rem; justify-content: center; margin-top: .8rem; }
 .dot-btn {
 width: 6px; height: 6px;
 border-radius: 50%;
 background: rgba(0,0,128,.2);
 border: none; cursor: pointer;
 transition: background .2s, width .25s;
 padding: 0;
 }
 .dot-btn.active { background: #000080; width: 20px; border-radius: 3px; }
 
 #toggle-finished:checked + span { background: #000080; }
 #toggle-finished:checked ~ span#toggle-thumb { left: 23px; }
 
 .club-pill {
 display: inline-flex;
 align-items: center;
 padding: 3px 8px;
 border-radius: 999px;
 font-weight: 700;
 font-size: 11px;
 border: 2px solid;
 line-height: 1;
 white-space: nowrap;
 background: var(--pill-bg);
 color: var(--pill-txt);
 border-color: var(--pill-brd);
 }
 
 /* ============================================
    HIERARQUIA DE FONTES
    ============================================ */
 
 /* Menus e navegação */
 nav a, .dropdown-toggle, .dropdown-menu a { font-family: var(--font-ui); font-weight: 600; }
 
 /* Títulos de seções (h1, h2) */
 h1, h2, h3 { font-family: var(--font-team); }
 h1 { font-weight: 600; }
 h2 { font-weight: 600; }
 h3 { font-weight: 500; }
 
 /* Botões */
 .btn, button, input[type="submit"] { font-family: var(--font-ui); font-weight: 600; }
 
 /* Placares e números */
 .score, .placar, .match-score { font-family: var(--font-score); font-weight: 700; }
 
 /* Siglas e nomes de times */
 .team-name, .abbreviation { font-family: var(--font-team); font-weight: 500; }
 
 /* ========================================
    SLIDE-IN PANEL DE DETALHES DOS ACERTOS (RANKING)
    ======================================== */
 
    .slide-overlay-details {
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: rgba(0, 0, 0, 0.4);
     z-index: 10001;
     display: none;
     animation: fadeIn 0.2s;
   }
   
   .slide-overlay-details.active {
     display: block;
     right: 8px;
   }
   
   @keyframes fadeIn {
     from { opacity: 0; }
     to { opacity: 1; }
   }
   
   .slide-panel-details {
    position: fixed;
    right: -380px;
    top: var(--nav-height);
    width: 100%;
    max-width: 380px;
    height: calc(100vh - var(--total-height));
    background: white;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 10002;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border: 1px solid #7b2d6e;
    border-radius: 8px
  }
   
   .slide-panel-details.active {
     right: 0;
   }
   
   .slide-header-details {
     padding: 25px;
     background: #000080;
     color: white;
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     flex-shrink: 0;
   }
   
   .slide-header-details h3 {
     margin: 0;
     font-size: 20px;
     font-weight: 700;
     line-height: 1.3;
   }
   
   .slide-header-details .subtitle {
     font-size: 14px;
     margin-top: 6px;
     opacity: 0.9;
     font-weight: 500;
   }
   
   .slide-close-details {
     background: rgba(255, 255, 255, 0.2);
     border: none;
     color: white;
     font-size: 24px;
     width: 40px;
     height: 40px;
     border-radius: 50%;
     cursor: pointer;
     transition: all 0.2s;
     flex-shrink: 0;
     display: flex;
     align-items: center;
     justify-content: center;
     margin-left: 15px;
   }
   
   .slide-close-details:hover {
     background: rgba(255, 255, 255, 0.3);
     transform: rotate(90deg);
   }
   
   .slide-content-details {
     padding: 25px;
     flex: 1;
     overflow-y: auto;
   }
   
   .slide-content-details::-webkit-scrollbar {
     width: 8px;
   }
   
   .slide-content-details::-webkit-scrollbar-track {
     background: #f1f1f1;
   }
   
   .slide-content-details::-webkit-scrollbar-thumb {
     background: #ccc;
     border-radius: 4px;
   }
   
   .slide-content-details::-webkit-scrollbar-thumb:hover {
     background: #999;
   }
   
   .matches-list-details {
     display: flex;
     flex-direction: column;
     gap: 12px;
   }
   
   .match-item-details {
     padding: 14px;
     background: #f8f9ff;
     border-radius: 10px;
     border: 1px solid #e0e4f0;
     transition: all 0.2s;
   }
   
   .match-item-details:hover {
     background: #f0f2ff;
     border-color: #d0d4e8;
     transform: translateX(-3px);
     box-shadow: 3px 0 8px rgba(0, 0, 128, 0.1);
   }
   
   .match-prediction {
     display: flex;
     align-items: center;
     gap: 10px;
     justify-content: center;
     margin-bottom: 8px;
   }
   
   .match-item-details .club-abbr {
     padding: 6px 12px;
     border-radius: 20px;
     font-weight: 700;
     font-size: 13px;
     font-family: var(--font-score);
   }
   
   .score-pred {
     font-weight: 700;
     font-size: 18px;
     font-family: var(--font-score);
     color: #000080;
     min-width: 60px;
     text-align: center;
   }
   
   .match-real {
     text-align: center;
     font-size: 14px;
     color: #666;
     font-style: italic;
   }
   
   .no-matches {
     text-align: center;
     color: #999;
     padding: 60px 20px;
     font-style: italic;
     font-size: 15px;
   }
   
   /* Responsivo - Mobile */
   @media (max-width: 768px) {
     .slide-panel-details {
       max-width: 100%;
       right: -100%;
       top: 0;
       height: 100vh;
     }
     
     .slide-header-details {
       padding: 20px;
     }
     
     .slide-content-details {
       padding: 20px;
     }
   }
 
   /* Destaque na célula clicada */
 .cell-highlighted {
   background: #000080 !important;
   color: white !important;
   font-weight: 700 !important;
   transform: scale(1.1);
   box-shadow: 0 0 0 3px rgba(0, 0, 128, 0.3);
   border-radius: 4px;
   transition: all 0.2s;
 }
 /* Drag & Drop - Estilo Açaí */
 .drag-drop-wrapper {
   position: relative;
   border: 3px dashed transparent;
   border-radius: 12px;
   padding: 30px 20px;
   text-align: center;
   background: linear-gradient(135deg, #A856A8 0%, #3333A3 100%);
   transition: all 0.4s ease;
   cursor: pointer;
   max-width: 600px;
   margin: 0 auto;
 }
 
 .drag-drop-wrapper::before {
   content: '☁️ Upload';
   display: block;
   color: white;
   font-size: 20px;
   font-weight: 500;
   margin-bottom: 8px;
   text-shadow: 0 2px 4px rgba(0,0,0,0.3);
 }
 
 .drag-drop-wrapper::after {
   content: 'Clique ou arraste o arquivo';
   display: block;
   color: rgba(255,255,255,0.9);
   font-size: 14px;
 }
 
 .drag-drop-wrapper:hover {
   transform: scale(1.02);
   box-shadow: 0 8px 20px rgba(168, 86, 168, 0.4);
 }
 
 .drag-drop-wrapper.drag-active {
   background: linear-gradient(135deg, #51C46B 0%, #4DD4AC 100%);
   border-color: white;
   border-style: solid;
   transform: scale(1.05);
 }
 
 .drag-drop-wrapper.drag-active::before {
   content: '✨ Solte aqui!';
 }
 
 .drag-drop-wrapper.drag-active::after {
   content: 'Pronto para receber';
 }
 
 .drag-drop-wrapper input[type="file"] {
   opacity: 0.01;
   cursor: pointer;
   position: absolute;
   width: 100%;
   height: 100%;
   top: 0;
   left: 0;
 }
 
 .file-name-display {
   display: none;
   margin-top: 12px;
   padding: 10px 15px;
   background: #d4edda;
   border: 1px solid #28a745;
   border-radius: 8px;
   color: #155724;
   font-size: 14px;
   font-weight: 500;
 }
 
 .file-name-display.show {
   display: block;
 }
 
 /* Remover setas dos inputs numéricos */
 input[type="number"]::-webkit-inner-spin-button,
 input[type="number"]::-webkit-outer-spin-button {
   -webkit-appearance: none;
   margin: 0;
 }
 
 input[type="number"] {
   -moz-appearance: textfield; /* Firefox */
 }
