body {
    background: var(--bg-page, #f3f6fb);
    color: var(--text-main, #1f2937);
}

.sp-ls-style,
.sp-ls-style *,
.site-container {
    box-sizing: border-box;
}

.sp-home-shell {
    padding: 12px 0 34px;
}

.sp-score-strip,
.sp-live-marquee,
.sp-fixture-board,
.sp-side-card,
.sp-ls-section,
.sp-seo-copy,
.sp-hero-news {
    border: 1px solid var(--border-light, #dde4ee);
    background: #fff;
    border-radius: 10px;
}

.sp-score-strip {
    display: flex;
    align-items: center;
    min-height: 42px;
    margin-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sp-score-strip::-webkit-scrollbar { display: none; }

.sp-score-strip a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-right: 1px solid #eff2f7;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.sp-score-strip a:hover,
.sp-score-strip a:first-child {
    color: #fff;
    background: var(--theme-primary, #e11d48);
}

.sp-home-shell.sp-variant-beta .sp-score-strip a:hover,
.sp-home-shell.sp-variant-beta .sp-score-strip a:first-child {
    background: var(--theme-primary, #e11d48);
}

.sp-home-shell.sp-variant-gamma .sp-score-strip a:hover,
.sp-home-shell.sp-variant-gamma .sp-score-strip a:first-child {
    background: var(--theme-primary, #e11d48);
}

.sp-ls-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 12px;
}

.sp-hero-main-wrap {
    min-width: 0;
}

.sp-hero-media {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) repeat(2, minmax(130px, .75fr));
    grid-template-rows: repeat(2, 178px);
    gap: 4px;
    min-width: 0;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    overflow: hidden;
    background: #101828;
}

.sp-hero-media a {
    position: relative;
    display: block;
    color: #fff;
    overflow: hidden;
}

.sp-hero-main { grid-row: 1 / span 2; }

.sp-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease, opacity .25s ease;
}

.sp-hero-media a:hover img {
    transform: scale(1.04);
    opacity: .75;
}

.sp-hero-media a::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 65%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .88));
}

.sp-hero-media span,
.sp-hero-media strong {
    position: absolute;
    z-index: 2;
    left: 12px;
    right: 12px;
}

.sp-hero-media span {
    bottom: 46px;
    width: max-content;
    max-width: calc(100% - 24px);
    padding: 3px 8px;
    border-radius: 999px;
    background: #e6002d;
    font-size: 11px;
    font-weight: 800;
}

.sp-hero-media strong {
    bottom: 10px;
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sp-hero-main strong {
    font-size: 20px;
    bottom: 14px;
}

.sp-hero-main span { bottom: 70px; }

.sp-hero-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.sp-side-card,
.sp-hero-news {
    padding: 14px;
}

.sp-hero-news header,
.sp-side-card header,
.sp-ls-section-head,
.sp-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sp-hero-news h2,
.sp-side-card h2,
.sp-ls-section-head h2,
.sp-board-head h2 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
}

.sp-hero-news h2::before,
.sp-side-card h2::before,
.sp-ls-section-head h2::before,
.sp-board-head h2::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 16px;
    margin-right: 8px;
    background: #e6002d;
    vertical-align: -2px;
}

.sp-hero-news header a,
.sp-side-card header a,
.sp-ls-section-head a,
.sp-ls-section-head nav a {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.sp-hero-news > a {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 32px;
    border-bottom: 1px dashed #e8edf4;
    color: #374151;
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-hero-news > a:last-child { border-bottom: 0; }

.sp-hero-news > a span {
    color: #e6002d;
    font-size: 11px;
    font-weight: 900;
}

.hero-live .sp-live-counts { margin-top: 10px; }

.sp-live-counts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.sp-live-counts div {
    min-height: 62px;
    padding: 8px 4px;
    border-radius: 8px;
    background: #f7f9fc;
    text-align: center;
}

.sp-live-counts strong {
    display: block;
    color: #e6002d;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

.sp-live-counts span {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
}

.sp-live-marquee {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    min-height: 42px;
    margin-top: 12px;
    overflow: hidden;
}

.sp-live-marquee > strong {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    color: #fff;
    background: #e6002d;
    font-size: 13px;
    font-weight: 800;
}

.sp-live-marquee > div {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 0 12px;
    scrollbar-width: none;
}

.sp-live-marquee > div::-webkit-scrollbar { display: none; }

.sp-live-marquee a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #334155;
    font-size: 13px;
    white-space: nowrap;
}

.sp-live-marquee em {
    padding: 2px 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
}

.sp-live-marquee em.live,
.sp-live-marquee em.next {
    background: #fff1f3;
    color: #e6002d;
}

.sp-live-marquee span { color: #64748b; }

.sp-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 12px;
    align-items: start;
    margin-top: 12px;
}

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

.sp-ls-side { display: grid; gap: 12px; }

.sp-board-head {
    gap: 12px;
    min-height: 62px;
    padding: 0 14px;
    border-bottom: 1px solid #e9eef5;
}

.sp-board-head p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12px;
}

.sp-board-head nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.sp-board-head button {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #dbe3ee;
    border-radius: 7px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.sp-board-head button.active,
.sp-board-head button:hover {
    border-color: var(--theme-primary, #e11d48);
    background: var(--theme-primary, #e11d48);
    color: #fff;
}

.sp-home-shell.sp-variant-beta .sp-board-head button.active,
.sp-home-shell.sp-variant-beta .sp-board-head button:hover {
    border-color: var(--theme-primary, #e11d48);
    background: var(--theme-primary, #e11d48);
}

.sp-home-shell.sp-variant-gamma .sp-board-head button.active,
.sp-home-shell.sp-variant-gamma .sp-board-head button:hover {
    border-color: var(--theme-primary, #e11d48);
    background: var(--theme-primary, #e11d48);
}

.sp-fixture-head,
.sp-fixture-row {
    display: grid;
    grid-template-columns: 62px 74px 68px minmax(0, 1fr) 74px minmax(0, 1fr) 96px;
    gap: 8px;
    align-items: center;
}

.sp-fixture-head {
    min-height: 36px;
    padding: 0 12px;
    background: #fafbfd;
    border-bottom: 1px solid #edf2f7;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
}

.sp-fixture-list {
    max-height: 1420px;
    overflow-y: auto;
}

.sp-fixture-row {
    min-height: 46px;
    padding: 8px 12px;
    border-bottom: 1px solid #edf2f7;
    background: #fff;
}

.sp-fixture-row:hover { background: #fff8fa; }

.sp-fixture-row time {
    display: flex;
    flex-direction: column;
    color: #e6002d;
    line-height: 1.15;
}

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

.sp-fixture-row time span { color: #94a3b8; font-size: 11px; }

.sp-league {
    color: #374151;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-status {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef2f7;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.sp-status.live { color: #fff; background: #e6002d; }
.sp-status.next { color: #e6002d; background: #fff1f3; }
.sp-status.done { color: #64748b; background: #eef2f7; }
.sp-status.delay { color: #92400e; background: #fff7df; }

.sp-team {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
}

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

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

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

.sp-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #e6002d;
    font-size: 12px;
    font-weight: 900;
}

.sp-score {
    color: #111827;
    text-align: center;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.sp-score.live { color: #e6002d; }
.sp-live-action { text-align: right; }

.sp-schedule-live-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 76px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #e6002d;
    border-radius: 999px;
    color: #e6002d;
    background: #fff;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.sp-schedule-live-btn:hover { color: #fff; background: #e6002d; }

.sp-core-list,
.sp-topic-cloud,
.sp-resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-core-list a,
.sp-topic-cloud a,
.sp-resource-links a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    max-width: 100%;
    padding: 0 10px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fafbfd;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-core-list a:hover,
.sp-topic-cloud a:hover,
.sp-resource-links a:hover {
    color: #e6002d;
    border-color: #e6002d;
    background: #fff1f3;
}

.sp-rank-list a {
    display: grid;
    grid-template-columns: 22px 24px minmax(0, 1fr) 44px;
    gap: 7px;
    align-items: center;
    min-height: 36px;
    border-bottom: 1px dashed #e9eef5;
}

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

.sp-rank-list b {
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
}

.sp-rank-list a:nth-child(-n+3) b {
    color: #e6002d;
    font-weight: 900;
}

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

.sp-rank-list em {
    color: #e6002d;
    font-style: normal;
    text-align: right;
}

.sp-ls-section,
.sp-seo-copy {
    margin-top: 12px;
    padding: 0 14px 14px;
}

.sp-ls-section-head {
    min-height: 50px;
    border-bottom: 1px solid #e9eef5;
}

.sp-ls-section-head nav { display: flex; gap: 18px; }

.sp-video-grid,
.sp-league-grid {
    display: grid;
    gap: 10px;
    padding-top: 14px;
}

.sp-video-grid { grid-template-columns: repeat(4, 1fr); }

.sp-video-card {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.sp-video-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.sp-video-card i {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #e6002d;
    font-size: 20px;
}

.sp-video-card strong {
    display: block;
    padding: 9px;
    color: #1f2937;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-league-grid { grid-template-columns: repeat(8, 1fr); }

.sp-league-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.sp-league-grid a:hover {
    border-color: #e6002d;
    background: #fff7f9;
}

.sp-league-grid img,
.sp-league-grid .sp-league-fallback {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    object-fit: contain;
}

.sp-league-grid .sp-league-fallback { display: none; }
.sp-league-grid strong { color: #1f2937; font-size: 13px; font-weight: 800; }
.sp-league-grid em { margin-top: 3px; color: #64748b; font-size: 11px; font-style: normal; }

.sp-topic-section .sp-topic-cloud { padding-top: 14px; }

.sp-seo-copy {
    color: #5b6678;
    font-size: 13px;
    line-height: 1.9;
}

.sp-seo-copy p { margin: 0 0 8px; }
.sp-empty { padding: 26px; color: #64748b; text-align: center; }

@media (max-width: 1180px) {
    .sp-ls-hero {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
    .sp-content-grid { grid-template-columns: minmax(0, 1fr) 300px; }
    .sp-league-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 992px) {
    .sp-ls-hero,
    .sp-content-grid {
        grid-template-columns: 1fr;
    }
    .sp-hero-media {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 240px 144px 144px;
    }
    .sp-hero-main {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .sp-fixture-head { display: none; }
    .sp-fixture-list { max-height: none; padding: 10px; background: #f6f8fb; }
    .sp-fixture-row {
        grid-template-columns: 58px minmax(0, 1fr) 62px;
        gap: 8px;
        margin-bottom: 9px;
        padding: 10px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #fff;
    }
    .sp-fixture-row time,
    .sp-league,
    .sp-status { grid-row: 1; }
    .sp-league { text-align: center; }
    .sp-team.home {
        grid-column: 1;
        justify-content: center;
        text-align: center;
        flex-direction: column-reverse;
    }
    .sp-score { grid-column: 2; }
    .sp-team.away {
        grid-column: 3;
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    .sp-live-action { grid-column: 1 / -1; text-align: center; }
    .sp-schedule-live-btn { width: 100%; }
    .sp-ls-side { grid-template-columns: repeat(2, 1fr); }
    .sp-video-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-league-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    .site-container {
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
    }
    .sp-home-shell { padding-top: 8px; }
    .sp-ls-hero,
    .sp-live-marquee {
        display: none;
    }
    .sp-content-grid {
        margin-top: 0;
    }
    .sp-score-strip { width: calc(100% - 16px); min-height: 38px; }
    .sp-score-strip a { min-height: 38px; padding: 0 12px; font-size: 12px; }
    .sp-hero-media { grid-template-rows: 212px 128px 128px; }
    .sp-hero-main strong { font-size: 17px; }
    .sp-hero-media strong { font-size: 12px; }
    .sp-live-marquee {
        grid-template-columns: 78px minmax(0, 1fr);
        width: calc(100% - 16px);
    }
    .sp-live-marquee > strong { font-size: 12px; }
    .sp-board-head { display: block; padding: 12px; }
    .sp-board-head nav {
        justify-content: flex-start;
        margin-top: 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .sp-board-head button { flex: 0 0 auto; }
    .sp-fixture-row { grid-template-columns: 54px minmax(0, 1fr) 58px; }
    .sp-team span {
        max-width: 86px;
        font-size: 12px;
        text-align: center;
    }
    .sp-team img,
    .sp-logo-fallback {
        width: 24px;
        height: 24px;
    }
    .sp-score { font-size: 15px; }
    .sp-ls-side { grid-template-columns: 1fr; }
    .sp-live-counts strong { font-size: 20px; }
    .sp-ls-section-head {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 8px 0;
    }
    .sp-ls-section-head nav {
        gap: 12px;
        overflow-x: auto;
        max-width: 100%;
    }
    .sp-league-grid { grid-template-columns: repeat(3, 1fr); }
    .sp-league-grid a { min-height: 80px; }
}

@media (max-width: 460px) {
    .sp-hero-media {
        grid-template-columns: 1fr;
        grid-template-rows: 198px repeat(4, 110px);
    }
    .sp-hero-main { grid-column: auto; }
    .sp-fixture-row {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
        padding: 9px 8px;
    }
    .sp-status { font-size: 11px; }
    .sp-league { font-size: 11px; }
    .sp-team span { max-width: 68px; }
    .sp-video-grid { grid-template-columns: 1fr; }
    .sp-league-grid { grid-template-columns: repeat(2, 1fr); }
}
