.player-card {
    display: flex;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: #fff;
    padding: 15px;
}

.player-image {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.player-details {
  display: flex;
  justify-content: space-between; 
  align-items: center;             
  width: 100%;
  padding-left: 20px;
}

.player-info {
    flex-grow: 1;
}

.player-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.player-info h2 {
    margin: 0;
    font-size: 26px; /* Bigger player name */
    font-weight: 700;
    line-height: 1.2;
}

.player-info p {
    font-size: 16px; /* Bigger Team | Position | # */
    margin-top: 4px;
    line-height: 1.2;
}

.player-stats {
  position: relative;         /* NEW: anchor for the title */
  display: flex;
  align-items: center;
  justify-content: center;    /* keep stats centered */
  gap: 20px;
  padding-right: 12px;
  padding-top: 22px;          /* NEW: room for the title line */
  flex-wrap: nowrap;          /* no wrap needed now */
  min-width: 0;               /* avoid flex min-content hiccups */
}

.player-stats-title {
  position: absolute;         /* NEW */
  top: 0;                     /* sits above the numbers */
  left: 0;
  right: 0;
  text-align: center;
  margin: 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 20px;          /* keep a stable height */
  white-space: nowrap;        /* you said titles will be short */
  pointer-events: none;       /* clicks go through, optional */
  padding-bottom: 5px;
}

.stat-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 4px;
}

.stat-column strong {
    font-size: 14px;
    margin-bottom: 5px; 
}

.stat-column span {
    font-size: 28px;
    font-weight: 700;
}
