.sp-subsite-shell {
    --sub-primary: #e6002d;
    --sub-primary-dark: #bf0025;
    --sub-ink: #172033;
    --sub-muted: #6b7787;
    --sub-line: #e3e8ef;
    --sub-soft: #f4f6f9;
    background: #f2f4f7;
    color: var(--sub-ink);
    padding-bottom: 36px;
}

.sp-subsite-shell,
.sp-subsite-shell * {
    box-sizing: border-box;
}

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

.sp-sub-hero {
    margin-top: -15px;
    padding: 22px 0 16px;
    background: #101826;
    color: #fff;
}

.sp-sub-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
    align-items: center;
}

.sp-sub-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    background: rgba(230, 0, 45, .95);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.sp-sub-hero h1 {
    margin: 10px 0 8px;
    color: #fff;
    font-size: 32px;
    line-height: 1.18;
    font-weight: 950;
}

.sp-sub-hero p {
    margin: 0;
    max-width: 720px;
    color: #c7d0de;
    font-size: 14px;
    line-height: 1.7;
}

.sp-sub-hero-meta {
    display: grid;
    gap: 5px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
}

.sp-sub-hero-meta strong {
    color: #fff;
    font-size: 24px;
    line-height: 1;
    font-weight: 950;
}

.sp-sub-hero-meta span {
    color: #b9c4d2;
    font-size: 12px;
}

.sp-sub-tabs {
    display: flex;
    gap: 0;
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    overflow-x: auto;
    scrollbar-width: none;
}

.sp-sub-tabs::-webkit-scrollbar {
    display: none;
}

.sp-sub-tabs a {
    flex: 0 0 auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border-right: 1px solid rgba(255, 255, 255, .1);
    color: #dbe4ee;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.sp-sub-tabs a:hover,
.sp-sub-tabs a:first-child {
    background: var(--sub-primary);
    color: #fff;
}

.sp-sub-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #aeb9c8;
    font-size: 12px;
}

.sp-sub-crumb a,
.sp-sub-crumb span {
    color: #aeb9c8;
}

.sp-sub-crumb span::before {
    content: "/";
    margin-right: 8px;
    color: #667489;
}

.sp-sub-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
    padding-top: 16px;
}

.sp-sub-main,
.sp-sub-side {
    min-width: 0;
}

.sp-sub-side {
    display: grid;
    gap: 14px;
}

.sp-sub-card {
    margin-top: 16px;
    border: 1px solid var(--sub-line);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .035);
    overflow: hidden;
}

.sp-sub-dashboard .sp-sub-card {
    margin-top: 0;
}

.sp-sub-card-head {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 15px;
    border-bottom: 1px solid #edf1f5;
}

.sp-sub-card-head.is-large {
    min-height: 66px;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

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

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

.sp-sub-card-head p {
    margin: 5px 0 0;
    color: var(--sub-muted);
    font-size: 12px;
}

.sp-sub-card-head a {
    flex: 0 0 auto;
    color: var(--sub-muted);
    font-size: 12px;
    font-weight: 900;
}

.sp-sub-counts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid #edf1f5;
}

.sp-sub-counts div {
    min-height: 68px;
    display: grid;
    align-content: center;
    justify-items: center;
    border-right: 1px solid #edf1f5;
}

.sp-sub-counts div:last-child {
    border-right: 0;
}

.sp-sub-counts strong {
    color: var(--sub-primary);
    font-size: 28px;
    line-height: 1;
    font-weight: 950;
}

.sp-sub-counts span {
    margin-top: 6px;
    color: var(--sub-muted);
    font-size: 12px;
    font-weight: 800;
}

.sp-sub-match-list {
    padding: 8px 14px 12px;
}

.sp-sub-match-list.is-page {
    padding-top: 12px;
}

.sp-sub-match-row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 72px minmax(0, 1fr) 64px 88px;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    border-bottom: 1px dashed #e6ebf1;
}

.sp-sub-match-row:last-child {
    border-bottom: 0;
}

.sp-sub-match-row time {
    color: var(--sub-muted);
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
}

.sp-sub-match-row time b {
    display: block;
    color: #273243;
    font-size: 15px;
    font-weight: 950;
}

.sp-sub-team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #253142;
    font-size: 13px;
    font-weight: 850;
}

.sp-sub-team.is-home {
    justify-content: flex-end;
    text-align: right;
}

.sp-sub-team span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-sub-team img,
.sp-sub-logo-fallback {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    object-fit: contain;
}

.sp-sub-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f4f8;
    color: var(--sub-primary);
    font-size: 12px;
    font-weight: 950;
}

.sp-sub-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 4px;
    background: #f3f5f8;
    color: #1f2937;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.sp-sub-score.is-live {
    background: var(--sub-primary);
    color: #fff;
}

.sp-sub-status {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef2f6;
    color: #647286;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.sp-sub-status.is-live {
    background: #fff1f3;
    color: var(--sub-primary);
}

.sp-sub-status.is-done {
    background: #eef2f6;
    color: #334155;
}

.sp-sub-live-btn {
    width: 100%;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--sub-primary);
    border-radius: 999px;
    background: #fff;
    color: var(--sub-primary);
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.sp-sub-live-btn:hover {
    background: var(--sub-primary);
    color: #fff;
}

.sp-sub-compact-list,
.sp-sub-rank-list {
    padding: 8px 14px 12px;
}

.sp-sub-compact-list a {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 58px;
    gap: 8px;
    align-items: center;
    min-height: 38px;
    border-bottom: 1px dashed #e6ebf1;
    color: #273243;
    font-size: 13px;
}

.sp-sub-compact-list a:last-child {
    border-bottom: 0;
}

.sp-sub-compact-list time,
.sp-sub-compact-list em {
    color: var(--sub-muted);
    font-size: 11px;
    font-style: normal;
}

.sp-sub-compact-list span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-sub-rank-list a {
    display: grid;
    grid-template-columns: 24px 26px minmax(0, 1fr) 44px;
    gap: 8px;
    align-items: center;
    min-height: 38px;
    border-bottom: 1px dashed #e6ebf1;
}

.sp-sub-rank-list a:last-child {
    border-bottom: 0;
}

.sp-sub-rank-list b {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #fff1f3;
    color: var(--sub-primary);
    font-size: 12px;
}

.sp-sub-rank-list span,
.sp-sub-rank-list em {
    min-width: 0;
    color: #263142;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-sub-rank-list em {
    color: var(--sub-primary);
    font-style: normal;
    text-align: right;
}

.sp-sub-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 14px;
}

.sp-sub-team-grid a {
    min-width: 0;
    min-height: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #e7edf3;
    border-radius: 5px;
    background: #f8fafc;
}

.sp-sub-team-grid strong {
    max-width: 100%;
    color: #263142;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-sub-player-list {
    display: grid;
    gap: 0;
    padding: 8px 14px 12px;
}

.sp-sub-player-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border-bottom: 1px dashed #e6ebf1;
    color: #263142;
    font-size: 12px;
    font-weight: 850;
}

.sp-sub-player-list a:last-child {
    border-bottom: 0;
}

.sp-sub-player-list img {
    border-radius: 50%;
    object-fit: cover;
}

.sp-sub-topic-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 14px;
}

.sp-sub-topic-cloud a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid #e6ebf1;
    border-radius: 999px;
    background: #f8fafc;
    color: #354154;
    font-size: 12px;
    font-weight: 850;
}

.sp-sub-topic-cloud a:hover {
    border-color: var(--sub-primary);
    color: var(--sub-primary);
    background: #fff;
}

.sp-sub-topic-cloud.is-side {
    display: grid;
    grid-template-columns: 1fr;
}

.sp-sub-date-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.sp-sub-date-nav a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid #e1e7ee;
    border-radius: 999px;
    background: #fff;
    color: #596679;
}

.sp-sub-date-nav a.active,
.sp-sub-date-nav a:hover {
    border-color: var(--sub-primary);
    background: var(--sub-primary);
    color: #fff;
}

.sp-sub-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.sp-sub-rank-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.sp-sub-rank-table th,
.sp-sub-rank-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #edf1f5;
    color: #253142;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
}

.sp-sub-rank-table th {
    background: #f8fafc;
    color: #718096;
    font-size: 12px;
    font-weight: 900;
}

.sp-sub-rank-table td:nth-child(2),
.sp-sub-rank-table th:nth-child(2) {
    text-align: left;
}

.sp-sub-rank-table td a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #253142;
    font-weight: 900;
}

.sp-sub-rank-table td b,
.sp-sub-rank-table td strong {
    color: var(--sub-primary);
}

.sp-sub-directory-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.sp-sub-directory-grid a {
    min-width: 0;
    min-height: 116px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #e7edf3;
    border-radius: 6px;
    background: #f8fafc;
}

.sp-sub-directory-grid img,
.sp-sub-directory-grid .sp-sub-logo-fallback {
    width: 42px;
    height: 42px;
}

.sp-sub-directory-grid.is-players img {
    border-radius: 50%;
    object-fit: cover;
}

.sp-sub-directory-grid strong,
.sp-sub-directory-grid span {
    max-width: calc(100% - 16px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-sub-directory-grid strong {
    color: #253142;
    font-size: 13px;
}

.sp-sub-directory-grid span {
    color: var(--sub-muted);
    font-size: 11px;
}

.sp-sub-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.sp-sub-news-grid a {
    min-width: 0;
    min-height: 88px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e7edf3;
    border-radius: 6px;
    background: #f8fafc;
}

.sp-sub-news-grid strong {
    display: -webkit-box;
    color: #253142;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 900;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sp-sub-news-grid span {
    color: var(--sub-muted);
    font-size: 12px;
}

.sp-sub-entity .sp-sub-article {
    padding: 18px;
    color: #273243;
    font-size: 15px;
    line-height: 1.85;
}

.sp-sub-article p {
    margin: 0 0 14px;
}

.sp-sub-article img {
    max-width: 100%;
    height: auto;
}

.sp-sub-empty {
    margin: 16px;
    padding: 28px 18px;
    border: 1px dashed #dce4ed;
    border-radius: 6px;
    background: #f8fafc;
    color: var(--sub-muted);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .sp-sub-hero-grid,
    .sp-sub-dashboard {
        grid-template-columns: 1fr;
    }

    .sp-sub-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sp-sub-directory-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sp-sub-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .sp-sub-container {
        width: min(100% - 20px, 1200px);
    }

    .sp-sub-hero {
        margin-top: -15px;
        padding-top: 18px;
    }

    .sp-sub-hero h1 {
        font-size: 24px;
    }

    .sp-sub-hero-meta {
        display: none;
    }

    .sp-sub-tabs a {
        min-height: 36px;
        padding: 0 14px;
    }

    .sp-sub-side {
        grid-template-columns: 1fr;
    }

    .sp-sub-card-head.is-large {
        align-items: flex-start;
        flex-direction: column;
    }

    .sp-sub-match-row {
        grid-template-columns: 48px minmax(0, 1fr) 54px minmax(0, 1fr);
        gap: 7px;
        min-height: 62px;
    }

    .sp-sub-match-row time b {
        font-size: 13px;
    }

    .sp-sub-team {
        font-size: 12px;
    }

    .sp-sub-team img,
    .sp-sub-logo-fallback {
        width: 22px;
        height: 22px;
    }

    .sp-sub-status {
        grid-column: 2 / 3;
        justify-self: end;
        min-height: 22px;
        font-size: 10px;
    }

    .sp-sub-action {
        grid-column: 3 / 5;
    }

    .sp-sub-score {
        min-height: 28px;
        font-size: 13px;
    }

    .sp-sub-live-btn {
        min-height: 28px;
        font-size: 11px;
    }

    .sp-sub-counts strong {
        font-size: 23px;
    }

    .sp-sub-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px;
    }

    .sp-sub-directory-grid a {
        min-height: 104px;
    }

    .sp-sub-news-grid {
        grid-template-columns: 1fr;
        padding: 12px;
    }
}
