.sp-team-page {
    --team-primary: #e6002d;
    --team-primary-hover: #bf0025;
    --team-ink: #132033;
    --team-muted: #64748b;
    --team-line: #e5e9f0;
    --team-soft: #f3f6fa;
    background: #f2f5f8;
    color: var(--team-ink);
    padding-bottom: 40px;
}

.sp-team-page,
.sp-team-page *,
.sp-team-container {
    box-sizing: border-box;
}

.sp-team-container {
    width: min(1200px, calc(100% - 28px));
    margin: 0 auto;
    max-width: 100%;
}

.sp-team-empty {
    margin: 36px 0;
    padding: 34px;
    border: 1px solid var(--team-line);
    border-radius: 10px;
    background: #fff;
    text-align: center;
    color: var(--team-muted);
}

.sp-team-hero {
    position: relative;
    padding: 22px 0 24px;
    background: #111a2a;
    overflow: hidden;
}

.sp-team-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(230, 0, 45, .2), transparent 44%),
        radial-gradient(circle at 82% 20%, rgba(29, 78, 216, .22), transparent 32%);
    pointer-events: none;
}

.sp-team-page.sp-team-basket .sp-team-hero::before {
    background:
        linear-gradient(120deg, rgba(230, 0, 45, .2), transparent 44%),
        radial-gradient(circle at 82% 20%, rgba(15, 118, 110, .25), transparent 32%);
}

.sp-team-crumb {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #b8c3d2;
    font-size: 12px;
    white-space: nowrap;
    overflow-x: auto;
}

.sp-team-crumb a,
.sp-team-crumb span {
    color: #b8c3d2;
}

.sp-team-crumb span::before {
    content: "/";
    margin-right: 8px;
    color: #6c7a8f;
}

.sp-team-board {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.sp-team-profile,
.sp-team-summary {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .18);
}

.sp-team-profile {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
}

.sp-team-avatar {
    width: 92px;
    height: 92px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.sp-team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sp-team-meta {
    min-width: 0;
}

.sp-team-meta h1 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 950;
}

.sp-team-meta p {
    margin: 6px 0 12px;
    color: #d2dbe6;
    font-size: 14px;
}

.sp-team-rankline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-team-rankline strong,
.sp-team-rankline span {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .22);
    color: #eef4fb;
    font-size: 12px;
    font-weight: 800;
}

.sp-team-summary {
    padding: 18px 20px;
    color: #d5dfeb;
    font-size: 14px;
    line-height: 1.85;
}

.sp-team-card {
    margin-bottom: 14px;
    border: 1px solid var(--team-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .035);
    overflow: hidden;
}

.sp-team-head {
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid #edf1f6;
}

.sp-team-head h2 {
    position: relative;
    margin: 0;
    padding-left: 10px;
    color: #182234;
    font-size: 16px;
    font-weight: 950;
}

.sp-team-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 3px;
    height: 18px;
    background: var(--team-primary);
}

.sp-team-match-list,
.sp-team-result-list {
    padding: 6px 14px 10px;
}

.sp-team-match-list a,
.sp-team-result-list a {
    display: grid;
    align-items: center;
    min-height: 46px;
    border-bottom: 1px dashed #e8edf3;
    color: #334155;
    font-size: 13px;
    gap: 8px;
}

.sp-team-match-list a {
    grid-template-columns: 80px minmax(0, 1fr) 24px 26px 24px minmax(0, 1fr);
}

.sp-team-result-list a {
    grid-template-columns: 28px 52px minmax(0, 1fr) 56px minmax(0, 1fr);
}

.sp-team-match-list a:last-child,
.sp-team-result-list a:last-child {
    border-bottom: 0;
}

.sp-team-match-list time,
.sp-team-result-list time {
    color: #7b8797;
    font-size: 12px;
}

.sp-team-match-list span.team,
.sp-team-result-list span.team {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-team-match-list span.home { text-align: right; }
.sp-team-match-list span.away { text-align: left; }

.sp-team-match-list img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.sp-team-match-list b {
    text-align: center;
    color: #a3acb8;
    font-size: 11px;
}

.sp-team-result-list .badge {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.sp-team-result-list .badge.is-win { background: #0f9f7a; }
.sp-team-result-list .badge.is-draw { background: #94a3b8; }
.sp-team-result-list .badge.is-lose { background: #ef4444; }

.sp-team-result-list b {
    color: #172033;
    text-align: center;
    font-size: 14px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.sp-team-empty-row {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7b8797;
    font-size: 13px;
}

.sp-player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 14px;
    padding: 16px;
}

.sp-player-grid a {
    min-width: 0;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    background: #fbfcfe;
    padding: 10px 8px;
    text-align: center;
}

.sp-player-grid a:hover {
    border-color: var(--team-primary);
    background: #fff5f7;
}

.sp-player-grid .avatar {
    width: 68px;
    height: 68px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e8edf3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sp-player-grid .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-player-grid strong {
    display: block;
    color: #1f2937;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-player-grid em {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    font-style: normal;
}

.sp-team-article {
    padding: 18px;
    color: #3f4b5d;
    font-size: 15px;
    line-height: 1.9;
}

.sp-team-article p {
    margin: 0 0 12px;
}

.sp-team-article p:last-child {
    margin-bottom: 0;
}

.sp-team-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
}

.sp-team-topics a {
    max-width: 100%;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid #e4eaf0;
    border-radius: 999px;
    background: #f8fafc;
    color: #445163;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-team-topics a:hover {
    border-color: var(--team-primary);
    background: #fff1f3;
    color: var(--team-primary-hover);
}

@media (max-width: 992px) {
    .sp-team-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .sp-team-container {
        width: calc(100% - 20px);
    }

    .sp-team-hero {
        padding: 10px 0 12px;
    }

    .sp-team-profile {
        flex-direction: column;
        text-align: center;
        padding: 14px 12px;
    }

    .sp-team-avatar {
        width: 72px;
        height: 72px;
        padding: 10px;
    }

    .sp-team-meta h1 {
        font-size: 22px;
    }

    .sp-team-rankline {
        justify-content: center;
    }

    .sp-team-summary {
        padding: 14px 12px;
        font-size: 13px;
    }

    .sp-team-card {
        margin-bottom: 10px;
        border-radius: 8px;
    }

    .sp-team-head {
        min-height: 44px;
        padding: 0 12px;
    }

    .sp-team-head h2 {
        font-size: 15px;
    }

    .sp-team-match-list,
    .sp-team-result-list {
        padding: 4px 10px 8px;
    }

    .sp-team-match-list a {
        grid-template-columns: 64px minmax(0, 1fr) 20px 18px 20px minmax(0, 1fr);
        font-size: 12px;
    }

    .sp-team-result-list a {
        grid-template-columns: 24px 44px minmax(0, 1fr) 48px minmax(0, 1fr);
        font-size: 12px;
    }

    .sp-team-match-list img {
        width: 20px;
        height: 20px;
    }

    .sp-player-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 12px;
    }

    .sp-player-grid .avatar {
        width: 56px;
        height: 56px;
    }

    .sp-player-grid strong {
        font-size: 12px;
    }

    .sp-team-article,
    .sp-team-topics {
        padding: 14px 12px;
    }
}

@media (max-width: 420px) {
    .sp-team-container {
        width: calc(100% - 16px);
    }
    .sp-player-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
