/* ── Page shell ─────────────────────────────────────── */
#profile-content {
    min-height: 100vh;
    width: 80vw;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 80px;
    gap: 32px;
}

/* ── Header ─────────────────────────────────────────── */
#profile-header {
    width: 100%;
    padding: 48px 0 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

#profile-header-left { display: flex; flex-flow: row; align-items: center; gap: 20px; }

.team-logo-large { height: 64px; width: 64px; object-fit: contain; flex-shrink: 0; }

.profile-name-block { display: flex; flex-flow: column; gap: 6px; }
.profile-player-name { font-family: "Abolition", sans-serif; font-size: 42px; color: white; margin: 0; letter-spacing: 4px; line-height: 1; }
.profile-team-name   { font-family: "Archimoto V01 Black", sans-serif; font-size: 14px; color: rgba(255,255,255,0.4); letter-spacing: 3px; text-transform: uppercase; margin: 0; }

/* ── Stat cards grid ─────────────────────────────────── */
#stat-cards { width: 100%; display: flex; flex-flow: column; gap: 16px; }

.stat-card {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 24px 28px;
    display: flex;
    flex-flow: column;
    gap: 16px;
    min-width: 0;
}


.card-title { font-family: "Archimoto V01 Black", sans-serif; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin: 0; }

.card-kd-block { display: flex; flex-flow: column; gap: 4px; }
.card-kd       { font-family: "Abolition", sans-serif; font-size: 52px; color: white; line-height: 1; margin: 0; letter-spacing: 3px; }
.card-kd-label { font-family: "Archimoto V01", sans-serif; font-size: 13px; color: rgba(255,255,255,0.3); letter-spacing: 2px; margin: 0; }

.stat-row  { display: flex; flex-flow: row; gap: 20px 28px; flex-wrap: wrap; }
.stat-item { display: flex; flex-flow: column; gap: 4px; min-width: 60px; }
.stat-label { font-family: "Archimoto V01 Black", sans-serif; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); white-space: nowrap; }
.stat-value { font-family: "Archimoto V01", sans-serif; font-size: 15px; color: rgba(255,255,255,0.85); }
.stat-value.positive { color: rgba(120,255,120,0.8); }
.stat-value.negative { color: rgba(255,100,100,0.6); }

.divider     { width: 100%; height: 1px; background-color: rgba(255,255,255,0.06); flex-shrink: 0; }
.section-sub { font-family: "Archimoto V01 Black", sans-serif; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.2); margin: 0; }

/* ── Rank badges ─────────────────────────────────────── */
.rank-badges { display: flex; flex-flow: row; gap: 10px; flex-wrap: wrap; }

.rank-badge {
    display: flex;
    flex-flow: column;
    align-items: center;
    gap: 3px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    min-width: 80px;
}

.rank-badge .rank-num        { font-family: "Abolition", sans-serif; font-size: 28px; color: white; line-height: 1; letter-spacing: 3px; }
.rank-badge .rank-num.gold   { color: rgba(255,200,40,0.95); }
.rank-badge .rank-num.silver { color: rgba(190,200,215,0.95); }
.rank-badge .rank-num.bronze { color: rgba(200,130,70,0.95); }
.rank-badge .rank-label      { font-family: "Archimoto V01 Black", sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); white-space: nowrap; }
.rank-badge .rank-of         { font-family: "Archimoto V01", sans-serif; font-size: 11px; color: rgba(255,255,255,0.2); }

.kd-blocks { display: flex; flex-flow: row; align-items: flex-end; gap: 40px; flex-wrap: wrap; }

/* ── Responsive ──────────────────────────────────────── */
@media screen and (max-width: 1024px) {
    #profile-content { width: 95%; }
    #profile-header  { flex-flow: column; align-items: flex-start; gap: 16px; }
}

@media screen and (max-width: 768px) {
    #profile-content     { width: 100%; padding: 0 16px; box-sizing: border-box; padding-bottom: 80px; }
    #profile-header      { padding: 20px 0 16px; }
    .profile-player-name { font-size: 28px; letter-spacing: 2px; }
    .card-kd             { font-size: 36px; }
    .kd-blocks           { gap: 20px; }
    .stat-row            { gap: 14px 18px; }
    .rank-badges         { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
    .rank-badge          { min-width: 0; }
}

@media screen and (max-width: 480px) {
    .profile-player-name  { font-size: 22px; letter-spacing: 1px; }
    .card-kd              { font-size: 28px; letter-spacing: 1px; }
    .kd-blocks            { gap: 12px; }
    .stat-card            { padding: 14px 16px; }
    .rank-badge .rank-num { font-size: 22px; }
    #profile-content      { padding-bottom: 100px; }
}
