.profile-page {
    min-height: 100vh;
    background: #05101d;
}

.profile-main {
    overflow: hidden;
}

.profile-hero {
    position: relative;
    min-height: 570px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 60px;
    padding: 75px clamp(28px, 7vw, 120px) 150px;
    background: radial-gradient(circle at 78% 28%, rgba(112, 245, 196, .13), transparent 28%), linear-gradient(145deg, #061321, #081c30);
}

.athlete-profile-hero {
    background: radial-gradient(circle at 80% 28%, rgba(255, 112, 64, .12), transparent 28%), linear-gradient(145deg, #061321, #081c30);
}

.profile-court-lines {
    position: absolute;
    inset: 0;
    opacity: .28;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 82px 82px;
    mask-image: linear-gradient(90deg, #000, transparent 85%);
}

.profile-hero-copy,
.profile-emblem,
.athlete-number,
.profile-metrics {
    position: relative;
    z-index: 2;
}

.profile-back {
    display: inline-flex;
    margin-bottom: 50px;
    color: #7d93a6;
    font-size: .64rem;
    font-weight: 750;
}

.profile-back:hover {
    color: #70f5c4;
}

.profile-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8196aa;
    font-size: .57rem;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.profile-kicker span {
    padding: 7px 10px;
    border: 1px solid rgba(112, 245, 196, .3);
    border-radius: 5px;
    color: #70f5c4;
}

.athlete-profile-hero .profile-kicker span {
    border-color: rgba(255, 112, 64, .36);
    color: #ff7040;
}

.profile-hero h1 {
    max-width: 850px;
    margin: 23px 0 20px;
    font-size: clamp(4rem, 7vw, 7.5rem);
    line-height: .84;
    letter-spacing: -.065em;
}

.profile-hero-copy > p {
    color: #92a7b9;
    font-size: .77rem;
}

.profile-hero-copy > p a {
    color: #f4f8fa;
    font-weight: 800;
}

.profile-emblem {
    width: min(310px, 25vw);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    justify-self: end;
    border: 1px solid rgba(112, 245, 196, .21);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(112, 245, 196, .025), 0 0 0 80px rgba(112, 245, 196, .018);
}

.profile-emblem span {
    color: #70f5c4;
    font: 400 6.7rem/1 Impact, 'Arial Narrow', sans-serif;
    letter-spacing: -.05em;
}

.profile-emblem i {
    position: absolute;
    width: 12px;
    height: 12px;
    right: 20px;
    border-radius: 50%;
    background: #70f5c4;
    box-shadow: 0 0 18px #70f5c4;
}

.athlete-number {
    min-height: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: end;
    width: min(300px, 25vw);
    border: 1px solid rgba(255, 112, 64, .22);
    border-radius: 22px;
    background: rgba(255, 112, 64, .035);
    transform: rotate(3deg);
}

.athlete-number small,
.athlete-number span {
    color: #71879a;
    font-size: .53rem;
    font-weight: 900;
    letter-spacing: .16em;
}

.athlete-number strong {
    color: #ff7040;
    font: 400 9rem/.9 Impact, 'Arial Narrow', sans-serif;
}

.profile-metrics {
    position: absolute;
    left: clamp(28px, 7vw, 120px);
    right: clamp(28px, 7vw, 120px);
    bottom: -55px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid rgba(207, 237, 231, .13);
    border-radius: 15px;
    background: #0a1d31;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .3);
}

.profile-metrics article {
    min-height: 112px;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 22px 28px;
    border-right: 1px solid rgba(207, 237, 231, .13);
}

.profile-metrics article:last-child {
    border: 0;
}

.profile-metrics small {
    color: #71879b;
    font-size: .49rem;
    font-weight: 900;
    letter-spacing: .14em;
}

.profile-metrics strong {
    font: 400 2.5rem/1 Impact, 'Arial Narrow', sans-serif;
}

.profile-metrics span {
    color: #7e94a6;
    font-size: .56rem;
}

.athlete-metrics strong {
    color: #ff7040;
}

.profile-section {
    max-width: 1500px;
    margin: auto;
    padding: 145px 30px 0;
    scroll-margin-top: 70px;
}

.profile-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.profile-section-head span {
    color: #70f5c4;
    font-size: .55rem;
    font-weight: 900;
    letter-spacing: .16em;
}

.athlete-profile-page .profile-section-head span {
    color: #ff7040;
}

.profile-section-head h2 {
    margin: 10px 0 0;
    font-size: clamp(2.3rem, 4.4vw, 4.5rem);
    letter-spacing: -.058em;
}

.profile-section-head > p {
    color: #71879a;
    font-size: .68rem;
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.athlete-card {
    position: relative;
    min-height: 270px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(207, 237, 231, .13);
    border-radius: 14px;
    background: linear-gradient(145deg, #0b2037, #081827);
    transition: transform .2s, border-color .2s;
}

.athlete-card::after {
    content: '';
    position: absolute;
    right: -50px;
    top: 50px;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(112, 245, 196, .07);
    border-radius: 50%;
    color: transparent;
}

.athlete-card:hover {
    transform: translateY(-4px);
    border-color: rgba(112, 245, 196, .35);
}

.athlete-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #688095;
    font: 400 .76rem Impact, 'Arial Narrow', sans-serif;
}

.athlete-card-top b {
    color: #70f5c4;
    font: 900 .47rem var(--body);
    letter-spacing: .13em;
}

.athlete-card > strong {
    margin-top: 25px;
    color: #70f5c4;
    font: 400 4.1rem/.9 Impact, 'Arial Narrow', sans-serif;
}

.athlete-card h3 {
    margin: 14px 0 4px;
    font-size: 1rem;
}

.athlete-card > p {
    margin: 0;
    color: #748a9e;
    font-size: .58rem;
}

.athlete-card footer {
    display: flex;
    align-items: end;
    gap: 20px;
    margin-top: auto;
    color: #71879a;
    font-size: .48rem;
}

.athlete-card footer b {
    color: #f4f8fa;
    font: 400 .95rem Impact, 'Arial Narrow', sans-serif;
}

.athlete-card footer i {
    margin-left: auto;
    color: #70f5c4;
    font-style: normal;
}

.performance-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 14px;
}

.total-score-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 35px;
    border: 1px solid rgba(112, 245, 196, .25);
    border-radius: 16px;
    background: radial-gradient(circle at 100% 0, rgba(112, 245, 196, .14), transparent 40%), #0a1e33;
}

.total-score-card small {
    color: #70f5c4;
    font-size: .55rem;
    font-weight: 900;
    letter-spacing: .15em;
}

.total-score-card strong {
    margin-top: 40px;
    color: #70f5c4;
    font: 400 7rem/.8 Impact, 'Arial Narrow', sans-serif;
}

.total-score-card > span {
    margin-top: 10px;
    color: #7a91a4;
    font-size: .53rem;
    font-weight: 900;
    letter-spacing: .14em;
}

.total-score-card p {
    margin-top: auto;
    color: #748a9e;
    font-size: .64rem;
    line-height: 1.55;
}

.stat-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-breakdown article,
.athlete-performance-grid article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border: 1px solid rgba(207, 237, 231, .13);
    border-radius: 12px;
    background: #081a2d;
}

.stat-breakdown small,
.athlete-performance-grid small {
    color: #a9bac8;
    font-size: .52rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.stat-breakdown p,
.athlete-performance-grid p {
    margin: 6px 0 0;
    color: #6c8396;
    font-size: .57rem;
}

.stat-breakdown strong,
.athlete-performance-grid strong {
    color: #70f5c4;
    font: 400 2.2rem/1 Impact, 'Arial Narrow', sans-serif;
}

.athlete-performance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.athlete-performance-grid article {
    min-height: 130px;
}

.athlete-performance-grid article > span {
    align-self: flex-start;
    color: #60788c;
    font: 400 .78rem Impact, 'Arial Narrow', sans-serif;
}

.athlete-performance-grid strong {
    color: #ff7040;
}

.matches-section {
    padding-bottom: 110px;
}

.profile-match-list {
    display: grid;
    gap: 9px;
}

.profile-match-list > article {
    min-height: 104px;
    display: grid;
    grid-template-columns: 125px 1fr 150px 220px;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    border: 1px solid rgba(207, 237, 231, .13);
    border-radius: 12px;
    background: #081a2d;
}

.profile-match-status,
.profile-opponent,
.profile-match-score,
.profile-match-meta {
    display: grid;
    gap: 6px;
}

.profile-match-status > span {
    width: max-content;
    padding: 5px 8px;
    border-radius: 99px;
    background: rgba(112, 245, 196, .1);
    color: #70f5c4;
    font-size: .5rem;
    font-weight: 900;
}

.profile-match-status > span.L,
.profile-match-status > span.paused {
    background: rgba(255, 112, 64, .1);
    color: #ff7040;
}

.profile-match-status small,
.profile-opponent small,
.profile-opponent span,
.profile-match-score span,
.profile-match-meta span {
    color: #71879a;
    font-size: .53rem;
}

.profile-opponent a {
    font-size: .85rem;
    font-weight: 800;
}

.profile-opponent i {
    color: #70f5c4;
    font-style: normal;
}

.profile-match-score {
    text-align: center;
}

.profile-match-score strong {
    font: 400 2rem/1 Impact, 'Arial Narrow', sans-serif;
}

.profile-match-score i {
    padding: 0 8px;
    color: #5e7588;
    font-style: normal;
}

.profile-match-meta {
    padding-left: 20px;
    border-left: 1px solid rgba(207, 237, 231, .13);
}

.profile-match-meta b {
    font-size: .67rem;
}

.athlete-match-table {
    overflow: auto;
    border: 1px solid rgba(207, 237, 231, .13);
    border-radius: 15px;
    background: #081a2d;
}

.athlete-match-table table {
    min-width: 920px;
}

.athlete-match-table td:first-child {
    text-align: left;
}

.athlete-match-table td:first-child b,
.athlete-match-table td:first-child small {
    display: block;
}

.athlete-match-table td:first-child small {
    margin-top: 4px;
    color: #71879a;
    font-size: .48rem;
}

.athlete-match-table td:nth-child(2) a {
    color: #70f5c4;
    font-weight: 800;
}

.athlete-match-table td strong {
    color: #ff7040;
}

.roster-status {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 99px;
    background: rgba(112, 245, 196, .08);
    color: #70f5c4;
    font-size: .48rem;
    font-weight: 900;
}

.roster-status.out {
    background: rgba(255, 112, 64, .08);
    color: #ff7040;
}

.profile-empty,
.profile-table-empty {
    padding: 55px;
    color: #71879a;
    text-align: center;
}

.profile-footer {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 25px clamp(28px, 7vw, 120px);
    border-top: 1px solid rgba(207, 237, 231, .13);
    color: #71879a;
    font-size: .62rem;
}

.profile-footer a {
    color: #70f5c4;
}

@media (max-width: 1050px) {
    .profile-hero {
        grid-template-columns: 1fr 240px;
    }

    .profile-emblem,
    .athlete-number {
        width: 220px;
    }

    .profile-emblem span {
        font-size: 4.8rem;
    }

    .roster-grid,
    .athlete-performance-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-match-list > article {
        grid-template-columns: 110px 1fr 120px;
    }

    .profile-match-meta {
        grid-column: 1 / -1;
        display: flex;
        gap: 15px;
        padding: 10px 0 0;
        border: 0;
        border-top: 1px solid rgba(207, 237, 231, .13);
    }
}

@media (max-width: 720px) {
    .profile-topbar nav,
    .profile-topbar .stats-brand small {
        display: none;
    }

    .profile-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 55px 22px 225px;
    }

    .profile-back {
        margin-bottom: 38px;
    }

    .profile-hero h1 {
        font-size: 3.8rem;
    }

    .profile-emblem,
    .athlete-number {
        position: absolute;
        right: 25px;
        bottom: 125px;
        width: 115px;
        min-height: 115px;
    }

    .profile-emblem span {
        font-size: 2.5rem;
    }

    .profile-emblem i {
        right: 4px;
        width: 8px;
        height: 8px;
    }

    .athlete-number strong {
        font-size: 4rem;
    }

    .profile-metrics {
        left: 14px;
        right: 14px;
        bottom: -115px;
        grid-template-columns: 1fr 1fr;
    }

    .profile-metrics article {
        min-height: 105px;
        padding: 18px;
        border-bottom: 1px solid rgba(207, 237, 231, .13);
    }

    .profile-metrics article:nth-child(2n) {
        border-right: 0;
    }

    .profile-metrics article:nth-child(n+3) {
        border-bottom: 0;
    }

    .profile-metrics strong {
        font-size: 2rem;
    }

    .profile-section {
        padding: 195px 14px 0;
    }

    .profile-section + .profile-section {
        padding-top: 85px;
    }

    .profile-section-head {
        display: block;
    }

    .profile-section-head > p {
        margin-top: 15px;
    }

    .roster-grid,
    .athlete-performance-grid,
    .stat-breakdown {
        grid-template-columns: 1fr;
    }

    .athlete-card {
        min-height: 240px;
    }

    .performance-layout {
        grid-template-columns: 1fr;
    }

    .total-score-card {
        min-height: 280px;
    }

    .profile-match-list > article {
        grid-template-columns: 1fr 100px;
        padding: 18px;
    }

    .profile-match-status,
    .profile-opponent {
        grid-column: 1;
    }

    .profile-match-score {
        grid-column: 2;
        grid-row: 1 / 3;
    }

    .matches-section {
        padding-bottom: 70px !important;
    }

    .profile-footer {
        display: grid;
        padding: 28px 22px;
    }
}
