.portal-player-wrap,
.portal-player-wrap * {
    box-sizing: border-box;
}

.portal-player-wrap {
    --player-primary: #0f766e;
    --player-ink: #132033;
    --player-muted: #64748b;
    --player-line: #e3e8ee;
    --player-soft: #f2f6f8;
    width: 100%;
    min-height: 520px;
    padding: 18px 0 42px;
    background: #eef5f4;
    color: var(--player-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

.portal-player-wrap a {
    text-decoration: none;
}

.sp-player-page .sp-team-container,
.portal-player-wrap .jzt-portal-inner {
    width: min(1200px, calc(100% - 28px));
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.sp-player-page .sp-team-crumb {
    margin-bottom: 14px;
    color: #5f6f80;
}

.sp-player-page .sp-team-crumb a,
.sp-player-page .sp-team-crumb span {
    color: #38556d;
}

.sp-player-hero,
.portal-player-wrap .player-hero {
    position: relative;
    margin-bottom: 16px;
    padding: 26px;
    border-radius: 10px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .94), rgba(13, 28, 42, .98)),
        #0d1c2a;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
}

.sp-player-hero::before,
.portal-player-wrap .player-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .08), transparent 48%),
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .15), transparent 26%);
    pointer-events: none;
}

.sp-player-profile,
.portal-player-wrap .hero-flex {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.sp-player-avatar,
.portal-player-wrap .avatar-box {
    width: 118px;
    height: 118px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
    overflow: hidden;
}

.sp-player-avatar img,
.portal-player-wrap .avatar-box img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.sp-player-meta,
.portal-player-wrap .info-box {
    min-width: 0;
    color: #fff;
}

.sp-player-meta h1,
.portal-player-wrap .info-box h1 {
    margin: 0;
    color: #fff;
    font-size: 34px;
    line-height: 1.18;
    font-weight: 950;
}

.sp-player-meta p,
.portal-player-wrap .info-box p {
    margin: 8px 0 14px;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
}

.sp-player-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-player-tags a,
.sp-player-tags span,
.portal-player-wrap .team-link,
.portal-player-wrap .position-badge {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.sp-player-layout,
.portal-player-wrap .portal-layout {
    margin-top: 16px;
}

.portal-player-wrap .sp-team-card {
    margin-bottom: 14px;
}

.portal-player-wrap .sp-team-article {
    padding: 18px 20px 20px;
    color: #263548;
    font-size: 15px;
    line-height: 1.95;
    word-break: break-word;
}

.portal-player-wrap .sp-team-article p {
    margin: 0;
}

.portal-player-wrap .sp-team-match-list a {
    grid-template-columns: 92px minmax(0, 1fr) 36px;
}

.portal-player-wrap .sp-team-match-list b {
    color: var(--player-primary);
    text-align: right;
}

.portal-player-wrap .sp-team-empty-row {
    padding: 34px 18px;
    color: var(--player-muted);
    text-align: center;
}

.portal-player-wrap .sp-entity-side {
    align-self: start;
}

@media (max-width: 900px) {
    .sp-player-page .sp-team-container,
    .portal-player-wrap .jzt-portal-inner {
        width: min(100% - 20px, 720px);
    }

    .sp-player-layout,
    .portal-player-wrap .portal-layout {
        display: block;
    }

    .portal-player-wrap .sp-entity-side {
        margin-top: 14px;
    }
}

@media (max-width: 640px) {
    .portal-player-wrap {
        padding-top: 12px;
        padding-bottom: 28px;
    }

    .sp-player-page .sp-team-container,
    .portal-player-wrap .jzt-portal-inner {
        width: calc(100% - 16px);
    }

    .sp-player-hero,
    .portal-player-wrap .player-hero {
        padding: 20px 16px;
        border-radius: 8px;
    }

    .sp-player-profile,
    .portal-player-wrap .hero-flex {
        gap: 14px;
        align-items: center;
    }

    .sp-player-avatar,
    .portal-player-wrap .avatar-box {
        width: 82px;
        height: 82px;
    }

    .sp-player-meta h1,
    .portal-player-wrap .info-box h1 {
        font-size: 25px;
    }

    .sp-player-meta p,
    .portal-player-wrap .info-box p {
        margin: 5px 0 10px;
        font-size: 13px;
    }

    .sp-player-tags a,
    .sp-player-tags span,
    .portal-player-wrap .team-link,
    .portal-player-wrap .position-badge {
        min-height: 26px;
        padding: 0 9px;
        font-size: 12px;
    }

    .portal-player-wrap .sp-team-article {
        padding: 14px;
        font-size: 14px;
        line-height: 1.85;
    }

    .portal-player-wrap .sp-team-match-list a {
        grid-template-columns: 74px minmax(0, 1fr) 30px;
    }
}
