/* Enhanced and refactored CSS with variables and better spacing */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --background-color: #f8f9fb;
  --text-color: #212529;
  --border-radius: 6px;
  --box-shadow-light: 0 4px 12px rgba(0,0,0,0.06);
  --font-family-serif: Georgia, 'Times New Roman', serif;
  --font-family-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
  background: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-family-serif);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin-top: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.card {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-light);
  background: #fff;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.app-title {
  font-family: var(--font-family-serif);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.muted {
  color: var(--secondary-color);
}

.team-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.bracket-match {
  padding: 1rem;
  background: #fff;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  border: 1px solid #dee2e6;
}

.final-match {
  border: 2px solid var(--primary-color);
  background: linear-gradient(180deg, rgba(13,110,253,0.04), rgba(13,110,253,0.02));
  box-shadow: 0 8px 20px rgba(13,110,253,0.06);
}

.winner {
  border-left: 4px solid #198754;
  padding-left: 10px;
}

.btn-small {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.round-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.team-name {
  font-weight: 600;
}

.score-badge {
  font-weight: 700;
}

@media (max-width: 576px) {
  .team-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .match-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
