.player-profile-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2.25rem 1.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
}

/* ── Avatar ──────────────────────────────────────────────────── */
.player-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.player-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Name & username ─────────────────────────────────────────── */
.player-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.25rem;
  line-height: 1.2;
  word-break: break-word;
}

.player-username {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* ── Open app button ─────────────────────────────────────────── */
.player-open-btn {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  padding: 0.875rem 2rem;
  background: #2563eb;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  margin-bottom: 1.75rem;
}

.player-open-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.player-open-btn:active {
  transform: translateY(0);
}

/* ── Clubs section ───────────────────────────────────────────── */
.player-clubs {
  border-top: 1px solid #f3f4f6;
  padding-top: 1.25rem;
  margin-top: 0.25rem;
}

.player-clubs__label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  text-align: left;
}

.player-clubs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
}

.player-club {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.player-club__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  flex-shrink: 0;
}

img.player-club__avatar {
  object-fit: cover;
  display: block;
}

div.player-club__avatar {
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.player-club__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  max-width: 100px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── "Powered by" footer ─────────────────────────────────────── */
.powered-by {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 1.5rem 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.powered-by__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.powered-by__link:hover {
  text-decoration: underline;
}

.powered-by__logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (min-width: 640px) {
  .player-profile-card {
    padding: 2.75rem 2.5rem 2.5rem;
  }
}