.back-link {
    display: inline-block;
    margin: 24px 0 16px;
    color: inherit;
    text-decoration: none;
    opacity: 0.75;
    font-weight: 600;
}
.back-link:hover { opacity: 1; text-decoration: underline; }

.profile-header-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 40px;
}

.profile-photo-wrap { position: relative; }
.profile-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.profile-rank-badge {
    position: absolute;
    top: -12px;
    left: -12px;
    background: #c9a227;
    color: #1a1a1a;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
}

.profile-header-info h1 { margin: 8px 0 2px; font-size: 2.2rem; }
.profile-arabic-name { opacity: 0.8; margin-bottom: 20px; font-size: 1.1rem; }

.profile-quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}
.quick-stat {
    background: rgba(0,0,0,0.04);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.qs-label { font-size: 0.8rem; opacity: 0.65; text-transform: uppercase; letter-spacing: 0.03em; }
.qs-value { font-weight: 700; font-size: 1.05rem; }

.profile-details-section { padding: 20px 0 40px; }
.details-card {
    background: rgba(0,0,0,0.03);
    border-radius: 16px;
    padding: 28px;
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.detail-item { display: flex; flex-direction: column; gap: 4px; }
.d-label { font-size: 0.78rem; opacity: 0.6; text-transform: uppercase; letter-spacing: 0.03em; }
.d-value { font-weight: 600; font-size: 1rem; }

.related-players-section { padding: 10px 0 50px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}
.related-card {
    text-decoration: none;
    color: inherit;
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    background: rgba(0,0,0,0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.related-card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}
.related-card h4 { margin: 0 0 2px; font-size: 0.95rem; }
.related-card p { margin: 0; font-size: 0.8rem; opacity: 0.65; }

@media (max-width: 700px) {
    .profile-header-grid { grid-template-columns: 1fr; }
    .profile-photo-wrap { max-width: 240px; margin: 0 auto; }
}
