* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ff6b00;
  --primary-dark: #cc5500;
  --primary-light: #ff8533;
  --secondary: #00d4ff;
  --bg-dark: #0a0a0a;
  --bg-darker: #050505;
  --bg-card: #151515;
  --bg-card-hover: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.5);
  --nav-height: 70px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.nav-title {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--primary);
}

.nav-link-special {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white !important;
  font-weight: 600;
}

.nav-link-special:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #2d0e10 0%, #2d0e04 50%, #2d0e10 100%);
  padding: 30px 20px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 107, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.logo {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px rgba(255, 107, 0, 0.5));
  animation: float 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

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

.hero-title {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, #ff6b00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 40px rgba(255, 107, 0, 0.3);
}

.tournament-info {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
  font-weight: 500;
}

/* LIVE BUTTON */
.live-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.live-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s;
}

.live-btn:hover::before {
  opacity: 1;
}

.live-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.live-btn.live {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: white;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
  animation: livePulse 2s ease-in-out infinite;
}

.live-btn.live .live-indicator {
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 30px rgba(255, 0, 0, 0.5); }
  50% { box-shadow: 0 0 40px rgba(255, 0, 0, 0.8); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.live-btn.offline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.live-btn.offline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

/* SECTIONS */
.section {
  padding: 80px 20px;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: 15px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

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

/* CARDS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 107, 0, 0.3);
  box-shadow: 
    0 20px 40px var(--shadow),
    0 0 0 1px rgba(255, 107, 0, 0.1);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.team-logo {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
}

.team-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-light);
  margin: 0;
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.8;
}

.card p:empty {
  display: none;
}

.card strong {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  display: block;
  margin-bottom: 12px;
}

.card small {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
}

/* MATCH FILTERS */
.match-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 25px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 107, 0, 0.3);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: white;
}

/* MATCHES LIST */
.matches-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.match-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.match-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.match-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 107, 0, 0.3);
  transform: translateX(8px);
}

.match-item:hover::before {
  opacity: 1;
}

.match-phase {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  min-width: 80px;
}

.match-teams {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.match-team {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
}

.match-vs {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.match-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  min-width: 120px;
}

.match-score {
  font-weight: 700;
  font-size: 18px;
  color: var(--primary-light);
}

.match-map {
  font-size: 13px;
  color: var(--text-secondary);
}

.match-status {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.match-status.em-breve {
  background: rgba(100, 100, 255, 0.15);
  color: #6b9eff;
  border: 1px solid rgba(100, 100, 255, 0.3);
}

.match-status.andamento {
  background: rgba(255, 107, 0, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(255, 107, 0, 0.3);
  animation: pulse-status 2s ease-in-out infinite;
}

.match-status.finalizado {
  background: rgba(100, 200, 100, 0.15);
  color: #66cc66;
  border: 1px solid rgba(100, 200, 100, 0.3);
}

@keyframes pulse-status {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.match-result-btn {
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: var(--primary-light);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.match-result-btn:hover {
  background: rgba(255, 107, 0, 0.2);
  border-color: var(--primary);
  transform: scale(1.05);
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: rotate(90deg);
}

.modal-body {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  object-fit: contain;
}

/* CHAMPIONS SECTION */
.champions-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #1a0800 50%, var(--bg-dark) 100%);
  position: relative;
}

.champions-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.champions-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.champion-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 107, 0, 0.05) 100%);
  border: 2px solid rgba(255, 107, 0, 0.3);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(255, 107, 0, 0.2);
}

.champion-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), #ffd700, var(--primary));
}

.champion-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.champion-trophy {
  font-size: 64px;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
  animation: float 3s ease-in-out infinite;
}

.champion-team-info {
  flex: 1;
}

.champion-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}

.champion-team-name {
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, #ffd700, #ff6b00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.champion-team-logo {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  object-fit: cover;
  border: 3px solid #ffd700;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.champion-roster {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.champion-player {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* MVP CARD */
.mvp-card {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, var(--bg-card) 100%);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.mvp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--secondary), #00ff88, var(--secondary));
}

.mvp-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}

.mvp-photo-container {
  position: relative;
}

.mvp-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--secondary);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
}

.mvp-crown {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 40px;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
  animation: float 2s ease-in-out infinite;
}

.mvp-info h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}

.mvp-nick {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--secondary), #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.mvp-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.mvp-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 12px;
  text-align: center;
}

.mvp-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.mvp-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary);
}

/* RESPONSIVE MATCHES */
@media (max-width: 768px) {
  .match-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .match-phase {
    min-width: auto;
  }

  .match-teams {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .match-info {
    text-align: center;
  }

  .champion-header {
    flex-direction: column;
    text-align: center;
  }

  .champion-team-name {
    font-size: 28px;
  }

  .mvp-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mvp-photo {
    width: 120px;
    height: 120px;
  }

  .mvp-stats {
    justify-content: center;
  }
}

/* FOOTER */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border);
  padding: 30px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 50px 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 20px 50px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .tournament-info {
    font-size: 16px;
  }
  
  .logo {
    width: 70px;
    height: 70px;
  }
}

/* LOADING STATE */
.grid:empty::after {
  content: "Carregando...";
  display: block;
  text-align: center;
  color: var(--text-secondary);
  padding: 40px;
  font-size: 16px;
}
