* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #f4f6f9;
}

/* BACK BUTTON */

.back {
  padding: 20px;
}

.back a {
  text-decoration: none;
  font-weight: bold;
  color: #222;
}

/* MAIN CONTAINER */

.profile-container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* HERO SECTION */

.hero {
  display: flex;
  align-items: center;
  gap: 40px;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.player-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.hero-info h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero-info p {
  margin: 6px 0;
  color: #555;
}

/* POSITION BADGE */

.badge {
  display: inline-block;
  background: #111;
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 10px;
}

/* SEASON STATS */

.quick-stats {
  margin-bottom: 30px;
}

.quick-stats h2 {
  margin-bottom: 15px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 15px;
}

.card {
  background: white;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

/* POSITION STATS */

.position-stats {
  margin-top: 30px;
  margin-bottom: 30px;
}

.position-stats h2 {
  margin-bottom: 15px;
}

/* COACH SECTION */

.coach-section {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  margin-bottom: 40px;
}

.coach-section h2 {
  margin-bottom: 15px;
}

.coach-section p {
  margin: 8px 0;
}


/* MATCH HISTORY SECTION */

.match-history {
  margin-top: 40px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
}


/* TABLE CONTAINER */

.table-container {
  width: 100%;
  overflow-x: auto;
}


/* TABLE */

.match-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}


/* HEADER */

.match-table thead {
  background: #1e293b;
  color: white;
}

.match-table th {
  padding: 12px;
  text-align: left;
  font-size: 14px;
  letter-spacing: 0.5px;
}


/* ROWS */

.match-table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}


/* HOVER EFFECT */

.match-table tbody tr:hover {
  background: #f8fafc;
}


/* RATING STYLE */

.rating {
  font-weight: 600;
  color: #0f766e;
}


/* EMPTY MESSAGE */

.no-data {
  text-align: center;
  padding: 20px;
  color: #6b7280;
}


.player-radar {
  margin-top: 40px;
  max-width: 500px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.development-graph {
  margin-top:40px;
  padding:20px;
  background:white;
  border-radius:10px;
}

#progressChart {
  width:100%;
  max-height:350px;
}

/* MOBILE */

@media(max-width:768px){


  .hero {
    flex-direction:column;
    text-align:center;
  }

  .player-photo {
    width:180px;
    height:180px;
  }

}


/* MOBILE */
@media (max-width: 800px) {

  .profile {
    grid-template-columns: 1fr;
  }

  .header {
    flex-direction: column;
    gap: 10px;
  }

}

@media (max-width:768px) {

  .match-table th,
  .match-table td {
    padding:10px;
    font-size:13px;
  }

  .section-title {
    font-size:18px;
  }

}