.main-container {
  max-width: 100%;
  margin: 0;
  padding: 1rem 0.5rem;
  min-height: calc(100vh - 60px);
}

.main-container h1 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.teams-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.6s ease 0.2s both;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0 0.25rem;
}

.team-card {
  background: white;
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.5s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card:active {
  transform: scale(0.95);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  border-color: #764ba2;
}

.team-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 0.8rem;
  object-fit: cover;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: block;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  border: 3px solid #667eea;
}

.team-name {
  font-size: 1rem;
  font-weight: bold;
  color: #667eea;
  text-transform: uppercase;
}

.team-full-name {
  font-size: 0.75rem;
  color: #1a1a1a;
  margin-top: 0.4rem;
  font-weight: 500;
}

.team-captain {
  font-size: 0.7rem;
  color: #666;
  margin-top: 0.3rem;
}

.players-section {
  background: white;
  padding: 1.2rem;
  border-radius: 12px;
  border: 2px solid #667eea;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease;
  margin: 0 0.25rem;
}

.players-section h2 {
  color: #667eea;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.8rem;
}

.player-card {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.player-card:active {
  transform: scale(0.95);
}

.player-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
}

.player-card.captain {
  border: 3px solid #764ba2;
  background: linear-gradient(135deg, #764ba215 0%, #667eea15 100%);
}

.player-image {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.player-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.captain-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.player-info {
  padding: 0.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.player-info h3 {
  font-size: 0.8rem;
  color: #1a1a1a;
  margin: 0 0 0.4rem 0;
  font-weight: 600;
  line-height: 1.3;
}

.player-info .position {
  font-size: 0.7rem;
  color: #667eea;
  margin: 0.2rem 0;
  font-weight: 500;
}

.player-info .number {
  font-size: 0.7rem;
  color: #666;
  margin: 0.2rem 0 0 0;
}

.update-soon {
  text-align: center;
  font-size: 1.5rem;
  color: #666;
  padding: 2rem;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
  }

  .main-container h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }

  .teams-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .teams-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
  }

  .team-card {
    padding: 1.5rem;
  }

  .team-logo {
    width: 90px;
    height: 90px;
    margin-bottom: 1rem;
  }

  .team-name {
    font-size: 1.2rem;
  }

  .team-full-name {
    font-size: 0.9rem;
  }

  .team-captain {
    font-size: 0.8rem;
  }

  .players-section {
    padding: 2rem;
  }

  .players-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
  }

  .player-image {
    height: 160px;
  }

  .player-info {
    padding: 1rem;
  }

  .player-info h3 {
    font-size: 0.95rem;
  }

  .captain-badge {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
}

@media (min-width: 1024px) {
  .main-container {
    padding: 2.5rem 1.5rem;
  }

  .main-container h1 {
    font-size: 2.5rem;
  }

  .teams-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
  }

  .players-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 2rem;
  }

  .player-image {
    height: 200px;
  }
}
