:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-bg: #1a1d29;
  --card-bg: #ffffff;
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --border-color: #e2e8f0;
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 200, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1030 !important;
}

.navbar-brand {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  color: var(--text-primary) !important;
  font-weight: 500 !important;
  position: relative;
  transition: all 0.3s ease;
  margin: 0 0.5rem;
  border-radius: 10px !important;
  padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: var(--primary-gradient) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.navbar-toggler {
  background: var(--primary-gradient);
  border: none !important;
}

.playerCards {
  margin-top: 120px !important;
  padding: 2rem 1rem !important;
}

.pCard {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  border-radius: 25px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: var(--shadow-medium) !important;
  padding: 2rem 1.5rem !important;
  margin-bottom: 2rem !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  font-family: 'Inter', sans-serif !important;
  max-width: 320px !important;
  min-height: 450px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.pCard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pCard:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-large) !important;
}

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

.pCard {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.pCard:nth-child(1) { animation-delay: 0.1s; }
.pCard:nth-child(2) { animation-delay: 0.2s; }
.pCard:nth-child(3) { animation-delay: 0.3s; }
.pCard:nth-child(4) { animation-delay: 0.4s; }
.pCard:nth-child(5) { animation-delay: 0.5s; }
.pCard:nth-child(6) { animation-delay: 0.6s; }

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

.firstCont {
  text-align: center;
  margin-bottom: 1.5rem;
}

.firstCont img {
  width: 60px !important;
  height: 60px !important;
  object-fit: contain !important;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.pCard:hover .firstCont img {
  transform: scale(1.1);
}

.club-name {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--text-secondary) !important;
  margin: 0.5rem 0 0 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.Simg {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.Simg img {
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  border: 4px solid rgba(255, 255, 255, 0.8) !important;
  object-fit: cover !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.pCard:hover .Simg img {
  transform: scale(1.05);
  border-color: #667eea;
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.3) !important;
}

.nameBox {
  background: rgba(102, 126, 234, 0.1) !important;
  border-radius: 15px !important;
  padding: 0.75rem 1rem !important;
  margin-bottom: 1.5rem !important;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.nameBox p {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  text-align: center !important;
  margin: 0 !important;
  line-height: 1.2;
}

.stats {
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  margin-top: auto !important;
  padding-top: 1rem !important;
  border-top: 1px solid rgba(102, 126, 234, 0.1) !important;
}

.stats .col {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.5rem !important;
  border-radius: 12px !important;
  transition: all 0.3s ease;
}

.stats .col:hover {
  background: rgba(102, 126, 234, 0.05) !important;
  transform: translateY(-2px);
}

.lastCont img {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
  margin: 0 !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.stats .col:hover .lastCont img {
  transform: scale(1.1);
}

.stats div p {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  margin: 0 !important;
  font-family: 'Poppins', sans-serif !important;
}

footer {
  background: rgba(26, 29, 41, 0.95) !important;
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4rem !important;
}

footer h5 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

footer a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 50% !important;
  color: white !important;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

footer a:hover {
  background: var(--primary-gradient) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
  color: white !important;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  color: white;
  font-size: 1.2rem;
  font-family: 'Inter', sans-serif;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .playerCards {
    margin-top: 100px !important;
    padding: 1rem !important;
  }
  
  .pCard {
    max-width: 100% !important;
    margin: 0 auto 2rem auto !important;
  }
  
  .Simg img {
    width: 100px !important;
    height: 100px !important;
  }
  
  .club-name {
    font-size: 0.8rem !important;
  }
  
  .nameBox p {
    font-size: 1rem !important;
  }
  
  .stats div p {
    font-size: 1.2rem !important;
  }
  
  .lastCont img {
    width: 28px !important;
    height: 28px !important;
  }
}

@media (max-width: 576px) {
  .pCard {
    padding: 1.5rem 1rem !important;
    min-height: 400px !important;
  }
  
  .Simg img {
    width: 90px !important;
    height: 90px !important;
  }
  
  .firstCont img {
    width: 50px !important;
    height: 50px !important;
  }
  
  .nameBox {
    padding: 0.5rem !important;
  }
  
  .nameBox p {
    font-size: 0.9rem !important;
  }
  
  .stats div p {
    font-size: 1.1rem !important;
  }
  
  .lastCont img {
    width: 24px !important;
    height: 24px !important;
  }
}

.stats .col:nth-child(1):hover {
  background: rgba(34, 197, 94, 0.1) !important;
}

.stats .col:nth-child(2):hover {
  background: rgba(255, 193, 7, 0.1) !important;
}

.stats .col:nth-child(3):hover {
  background: rgba(220, 53, 69, 0.1) !important;
}

.pCard:hover .nameBox {
  background: rgba(102, 126, 234, 0.15) !important;
  border-color: rgba(102, 126, 234, 0.3);
}

@keyframes slideInFromBottom {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.Simg img[src*="football-player.png"] {
  border-color: rgba(102, 126, 234, 0.3) !important;
  background: rgba(102, 126, 234, 0.05) !important;
}