body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0a0a0a, #001f3f);
  color: #fff;
  margin: 0;
  padding: 0;
}

/* Loader */
.loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  color: #FFD700;
}
.spinner {
  border: 6px solid #333;
  border-top: 6px solid #FFD700;
  border-radius: 50%;
  width: 60px; height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}
@keyframes spin { 0% { transform: rotate(0deg);} 100% { transform: rotate(360deg);} }

/* Header */
.main-header {
  text-align: center;
  padding: 30px 20px;
}
.main-header h1 {
  color: #FFD700;
  text-shadow: 0 0 15px #FFD700;
}
.subtitle {
  font-size: 16px;
  color: #ccc;
}

/* Dashboard */
.dashboard {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  margin: 20px;
}
.metric {
  text-align: center;
  margin: 10px;
}
.metric h2 {
  color: #FFD700;
  font-size: 28px;
  margin: 0;
}
.metric p {
  font-size: 14px;
  color: #aaa;
}

/* Search */
.search-box {
  text-align: center;
  margin: 20px;
}
#search {
  width: 70%;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #FFD700;
  background: #111;
  color: #FFD700;
  transition: all 0.3s ease;
}
#search:focus {
  outline: none;
  box-shadow: 0 0 15px #FFD700;
}

/* Campeonatos grid */
.campeonatos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}
.campeonato {
  background: rgba(255,255,255,0.05);
  border: 1px solid #FFD700;
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.campeonato:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(255,215,0,0.6);
}

/* Top 3 */
.top3 {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
}
.winner {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  transition: transform 0.3s;
}
.winner:hover { transform: scale(1.05); }
.gold { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.silver { background: linear-gradient(135deg, #C0C0C0, #A9A9A9); color: #000; }
.bronze { background: linear-gradient(135deg, #CD7F32, #8B4513); color: #000; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
}
.modal-content {
  background: #001f3f;
  margin: 5% auto;
  padding: 20px;
  border: 2px solid #FFD700;
  width: 70%;
  border-radius: 10px;
  color: #fff;
  max-height: 80%;
  overflow-y: auto;
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn { from {opacity:0; transform:translateY(-20px);} to {opacity:1; transform:translateY(0);} }
#close {
  float: right;
  font-size: 28px;
  cursor: pointer;
  color: #FFD700;
}
#close:hover { color: #FFA500; }

.tabs {
  text-align: center;
  margin: 20px 0;
}
.tab {
  background: none;
  border: 2px solid #FFD700;
  color: #FFD700;
  padding: 8px 15px;
  margin: 0 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tab.active, .tab:hover {
  background: #FFD700;
  color: #000;
}
.tab-content {
  display: none;
  margin-top: 20px;
}
.tab-content.active {
  display: block;
}




.pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 8px;
}

.pagination .page-btn {
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

.pagination .page-btn:hover {
  background: #FFD700;
  color: #000;
  border-color: #FFD700;
}

.pagination .page-btn.active {
  background: #FFD700;
  color: #000;
  font-weight: 600;
  border-color: #FFD700;
}
