body {
  background-image: url('../src/img/ourPlayerProfile/bg.png');
  background-size: auto;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-color: #121212;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.player-card-v2 {
  background-color: #F5F5F5;
  border-radius: 20px;
  overflow: hidden;
  margin: auto;
  max-width: 320px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.player-photo-container-v2 {
  position: relative;
  overflow: hidden;
  background-color: #ccc;
  height: 350px;
}

.player-photo-v2 {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.player-photo-v2.zinadein {
  object-position: center top;
  transform: scale(1.22);
}

.card-content-v2 {
  padding: 25px;
  color: black;
}

.player-name-v2 {
  font-size: 28px;
  font-weight: 100;
  color: #000;
  margin-bottom: 15px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-details-row-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  flex-wrap: nowrap;
}

.player-details-row-v2 .icon-list-v2 {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 5px;
  white-space: nowrap;
}

.player-details-row-v2 .icon-list-v2 li img {
  height: 50px;
}

.pos-badge-v2 {
  background-color: transparent;
  color: black;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #E5E5E5;
  font-size: 14px;
  font-weight: 600;
  margin: 0 5px;
  white-space: nowrap;
}

.age-text-v2 {
  font-size: 16px;
  font-weight: 500;
  color: black;
  white-space: nowrap;
}

.flag-overall-row-v2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 25px 0;
  gap: 15px;
}

.flag-overall-row-v2.single-flag {
  justify-content: center;
  gap: 20px;
}

.country-flag-v2 {
  width: 45px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.country-flag-v2:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.country-flag-v2:active {
  transform: scale(0.95);
}

.overall-score-box-v2 {
  background-color: #F6FF00;
  color: #121212;
  padding: 8px;
  border-radius: 10px;
  text-align: center;
  min-width: 85px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.overall-score-box-v2:hover {
  transform: scale(1.05);
  background-color: #e0e000;
}

.overall-score-box-v2:active {
  transform: scale(0.98);
}

.overall-score-number-v2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.overall-score-text-v2 {
  font-size: 9px;
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
}

.card-actions-v3 {
  padding-top: 20px;
  border-top: 1px solid #444;
  margin-top: 20px;
  text-align: center;
}

.button-group-top-v3 {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.btn-icon-v3 {
  background-color: #444;
  border: none;
  width: 80px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 24px;
  transition: background-color 0.3s ease;
}

.btn-icon-v3:hover {
  background-color: #555;
}

.button-group-bottom-v3 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-text-v3 {
  background-color: #F6FF00;
  color: #121212;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.btn-text-v3:hover {
  background-color: #e0e000;
}

/* Media queries untuk konsistensi tampilan antara 1336px dan 1440px */
@media (min-width: 1336px) and (max-width: 1440px) {
  .container.player-section {
    max-width: 1200px;
    padding: 0 20px;
  }
  
  .row.g-4 {
    gap: 1.5rem !important;
    justify-content: center;
    margin: 0 -0.75rem;
  }
  
  .col-12.col-sm-6.col-lg-3 {
    flex: 0 0 auto;
    width: calc(25% - 1.125rem);
    max-width: 280px;
    padding: 0 0.75rem;
  }
  
  .player-card-v2 {
    max-width: 280px;
    margin: 0 auto;
    width: 100%;
  }
  
  .player-photo-container-v2 {
    height: 320px;
  }
  
  .player-photo-v2 {
    height: 320px;
  }
  
  .card-content-v2 {
    padding: 20px;
  }
  
  .player-name-v2 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  .btn-icon-v3 {
    width: 70px;
    height: 45px;
    font-size: 20px;
  }
  
  .btn-text-v3 {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  /* Penyesuaian khusus untuk overall score di resolusi 1366px */
  .overall-score-number-v2 {
    font-size: 18px;
  }
  
  .overall-score-text-v2 {
    font-size: 8px;
  }
  
  .overall-score-box-v2 {
    min-width: 80px;
    padding: 5px 10px;
  }
  
  /* Konsistensi untuk header */
  .d-flex {
    align-items: center;
    gap: 1rem;
  }
  
  .logo-main {
    height: 60px;
    width: auto;
  }
  
  h1.poppins-extrabold {
    font-size: 2.5rem;
    margin: 0;
  }
}

/* Penyesuaian khusus untuk 1440px */
@media (min-width: 1440px) {
  .container.player-section {
    max-width: 1320px;
    padding: 0 30px;
  }
  
  .row.g-4 {
    gap: 2rem !important;
    justify-content: center;
    margin: 0 -1rem;
  }
  
  .col-12.col-sm-6.col-lg-3 {
    width: calc(25% - 1.5rem);
    max-width: 300px;
    padding: 0 1rem;
  }
  
  .player-card-v2 {
    max-width: 300px;
    width: 100%;
  }
  
  .logo-main {
    height: 70px;
  }
  
  h1.poppins-extrabold {
    font-size: 3rem;
  }
}

/* Fallback untuk memastikan grid tetap rapi */
@media (min-width: 1200px) {
  .row.g-4 > * {
    display: flex;
    justify-content: center;
  }
  
  .player-card-v2 {
    transform: none;
    transition: transform 0.3s ease;
  }
  
  .player-card-v2:hover {
    transform: translateY(-5px);
  }
}

/* Animasi khusus untuk mobile */
@media (max-width: 768px) {
  .flag-overall-row-v2 {
    gap: 10px;
  }
  
  .country-flag-v2 {
    width: 40px;
  }
  
  .overall-score-box-v2 {
    min-width: 90px;
    padding: 6px 12px;
  }
  
  .country-flag-v2:active,
  .overall-score-box-v2:active {
    animation: mobilePress 0.2s ease;
  }
}

@keyframes mobilePress {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
