/*
 * Match Experience V3
 * Integrated home-vs-away stage and high-visibility live actions.
 */

:root {
    --mx3-ink: #151a31;
    --mx3-muted: #697086;
    --mx3-navy: #171d3f;
    --mx3-blue: #3249a5;
    --mx3-coral: #ff5d4a;
    --mx3-line: #e5e8f1;
}

/* --------------------------------------------------------------------------
 * Homepage schedule: every row has a real first-source live button.
 * ----------------------------------------------------------------------- */

body.sb-template-home .fl-match-row {
    grid-template-columns: minmax(0, 1fr) 112px !important;
    align-items: center;
    padding: 0 !important;
    overflow: hidden;
}

body.sb-template-home .fl-match-data {
    min-width: 0;
}

body.sb-template-home .fl-match-action {
    position: static !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    justify-self: center;
    gap: 6px;
    width: 92px !important;
    min-width: 92px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 11px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #ff6a49, #f33f64) !important;
    box-shadow: 0 7px 16px rgba(240, 63, 92, .2) !important;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    transform: none !important;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

body.sb-template-home .fl-match-action::before,
body.sb-template-home .fl-match-action::after {
    display: none !important;
}

body.sb-template-home .fl-match-action i {
    display: inline-flex !important;
    color: #fff !important;
    font-size: 12px;
}

body.sb-template-home .fl-match-action span,
body.sb-template-home .fl-match-action .x-mask-txt {
    position: static !important;
    display: inline !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    color: #fff !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
}

body.sb-template-home .fl-match-action:hover {
    color: #fff !important;
    filter: saturate(1.08);
    box-shadow: 0 10px 22px rgba(240, 63, 92, .28) !important;
    transform: translateY(-1px) !important;
}

/* --------------------------------------------------------------------------
 * Match header: one unified matchup stage.
 * ----------------------------------------------------------------------- */

body.sb-template-match .sp-match-hero {
    padding: 20px 0 28px !important;
    background:
        radial-gradient(circle at 14% 18%, rgba(71, 95, 191, .12), transparent 30%),
        radial-gradient(circle at 86% 12%, rgba(255, 93, 74, .1), transparent 28%),
        #f4f6fb !important;
}

body.sb-template-match .sp-match-hero::before {
    opacity: .3 !important;
    background-image:
        linear-gradient(rgba(44, 62, 139, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(44, 62, 139, .045) 1px, transparent 1px) !important;
    background-size: 52px 52px !important;
}

body.sb-template-match .sp-match-crumb {
    display: flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    margin: 0 0 12px !important;
    padding: 7px 12px;
    overflow: hidden;
    border: 1px solid #e1e5ef;
    border-radius: 999px;
    color: #6f778c !important;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 6px 16px rgba(25, 36, 83, .05);
}

body.sb-template-match .sp-match-crumb > * {
    color: inherit !important;
}

body.sb-template-match .sp-match-crumb > * + *::before {
    content: "•";
    margin: 0 8px;
    color: #a9afbf;
}

body.sb-template-match .sp-scoreboard {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(270px, .82fr) minmax(0, 1fr) !important;
    gap: 0 !important;
    min-height: 292px;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 12% 20%, rgba(73, 108, 224, .42), transparent 28%),
        radial-gradient(circle at 88% 20%, rgba(255, 93, 74, .24), transparent 27%),
        linear-gradient(130deg, #121831 0%, #1d2758 52%, #151a36 100%) !important;
    box-shadow: 0 24px 52px rgba(20, 29, 70, .2) !important;
}

body.sb-template-match .sp-scoreboard::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 49.9%, rgba(255, 255, 255, .07) 50%, transparent 50.1%),
        radial-gradient(ellipse at 50% 112%, transparent 0 31%, rgba(255, 255, 255, .055) 31.3% 31.8%, transparent 32.1%);
    pointer-events: none;
}

body.sb-template-match .sp-scoreboard::after {
    content: "";
    position: absolute;
    top: -90px;
    left: 50%;
    width: 480px;
    height: 260px;
    border-radius: 50%;
    background: rgba(88, 111, 222, .14);
    filter: blur(54px);
    transform: translateX(-50%);
    pointer-events: none;
}

body.sb-template-match .sp-team-panel,
body.sb-template-match .sp-score-core {
    z-index: 1;
    min-height: 292px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.sb-template-match .sp-team-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 34px 24px 26px !important;
    text-align: center;
}

body.sb-template-match .sp-team-panel:first-child {
    border-right: 1px solid rgba(255, 255, 255, .08) !important;
}

body.sb-template-match .sp-team-panel:last-child {
    border-left: 1px solid rgba(255, 255, 255, .08) !important;
}

body.sb-template-match .sp-team-panel::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(#6d5cf2, #4569d8);
}

body.sb-template-match .sp-team-panel:last-child::after {
    right: auto;
    left: 0;
    background: linear-gradient(#ff765f, #f23f68);
}

body.sb-template-match .sp-team-role {
    position: absolute;
    top: 18px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .07);
    font-size: 10px;
    font-weight: 800;
}

body.sb-template-match .sp-team-link {
    flex-direction: column;
    justify-content: center !important;
    gap: 13px !important;
    width: 100%;
}

body.sb-template-match .sp-team-logo {
    position: static !important;
    width: 82px !important;
    height: 82px !important;
    padding: 13px !important;
    border: 1px solid rgba(255, 255, 255, .5) !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 14px 30px rgba(2, 7, 28, .32) !important;
    transform: none !important;
}

body.sb-template-match .sp-team-link strong {
    max-width: 100%;
    color: #fff !important;
    font-size: clamp(20px, 2vw, 27px) !important;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .25) !important;
}

body.sb-template-match .sp-team-panel p {
    margin: 10px 0 0 !important;
    color: rgba(255, 255, 255, .62) !important;
    font-size: 12px;
}

body.sb-template-match .sp-score-core {
    order: 0 !important;
    grid-column: auto !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px !important;
}

body.sb-template-match .sp-score-core::after {
    display: none !important;
}

body.sb-template-match .sp-score-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

body.sb-template-match .sp-match-stage {
    color: rgba(255, 255, 255, .48);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
}

body.sb-template-match .sp-match-league,
body.sb-template-match .sp-score-core .sp-match-league {
    margin: 0 !important;
    padding: 5px 10px !important;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: rgba(255, 255, 255, .09) !important;
    font-size: 11px !important;
}

body.sb-template-match .sp-score-core h1 {
    max-width: 300px;
    margin: 13px 0 0 !important;
    padding: 0 !important;
    color: rgba(255, 255, 255, .78) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: center;
    text-shadow: none !important;
}

body.sb-template-match .sp-score-row {
    margin: 13px 0 10px !important;
}

body.sb-template-match .sp-score-row.is-pending span,
body.sb-template-match .sp-score-row span,
body.sb-template-match .sp-score-row b {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    color: #fff !important;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, .2), transparent 30%),
        linear-gradient(145deg, #ff755f, #ef405f) !important;
    box-shadow: 0 12px 26px rgba(239, 64, 95, .3);
    font-size: 23px !important;
    font-weight: 900;
    line-height: 1 !important;
    text-shadow: none !important;
}

body.sb-template-match .sp-score-row:not(.is-pending) {
    display: flex;
    gap: 8px;
}

body.sb-template-match .sp-score-row:not(.is-pending) span {
    width: auto;
    border: 0;
    background: transparent !important;
    box-shadow: none;
}

body.sb-template-match .sp-status-line {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px !important;
    color: rgba(255, 255, 255, .66) !important;
}

body.sb-template-match .sp-status-line time {
    color: rgba(255, 255, 255, .7) !important;
    font-size: 11px;
}

body.sb-template-match .sp-status-pill,
body.sb-template-match .sp-status-pill.is-next {
    padding: 5px 9px !important;
    border: 1px solid rgba(255, 255, 255, .15) !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: rgba(255, 255, 255, .09) !important;
    font-size: 10px !important;
}

body.sb-template-match .sp-hero-actions {
    margin: 13px 0 0 !important;
}

body.sb-template-match .sp-hero-actions a.jzt-live-btn {
    min-width: 138px;
    min-height: 40px;
    border: 0 !important;
    border-radius: 12px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #ff704f, #f23f65) !important;
    box-shadow: 0 10px 24px rgba(239, 64, 95, .28) !important;
}

body.sb-template-match .sp-hero-actions a.jzt-live-btn:hover,
body.sb-template-match .sp-hero-actions a.jzt-live-btn:focus-visible,
body.sb-template-match .sp-hero-actions a.jzt-live-btn:active {
    color: #fff !important;
    border-color: transparent !important;
    background: linear-gradient(135deg, #f65d43, #e92f5a) !important;
    box-shadow: 0 13px 28px rgba(226, 48, 84, .34) !important;
    filter: brightness(1.06);
    transform: translateY(-2px);
}

body.sb-template-match .sp-hero-actions a.jzt-live-btn:hover *,
body.sb-template-match .sp-hero-actions a.jzt-live-btn:focus-visible * {
    color: #fff !important;
}

/* --------------------------------------------------------------------------
 * Live sources: strong launch cards with clear calls to action.
 * ----------------------------------------------------------------------- */

body.sb-template-match .sp-match-layout {
    margin-top: 18px !important;
}

body.sb-template-match .sp-live-card {
    overflow: hidden;
    border: 1px solid #e1e5ef !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 14px 34px rgba(27, 38, 83, .08) !important;
}

body.sb-template-match .sp-live-card .sp-section-head {
    min-height: 62px;
    padding: 14px 20px !important;
    border-bottom: 1px solid #e6e9f1 !important;
    background: linear-gradient(90deg, #f3f5fb, #fff 76%) !important;
}

body.sb-template-match .sp-live-card .sp-section-head h2 {
    color: var(--mx3-ink) !important;
}

body.sb-template-match .sp-live-card .sp-section-head h2::before {
    background: #344ca8 !important;
}

body.sb-template-match .sp-live-card .sp-section-head > span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #344ca8 !important;
    background: #eaf0ff;
}

body.sb-template-match .sp-live-body {
    padding: 18px 20px 20px !important;
}

body.sb-template-match .sp-live-intro {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 0 0 15px;
}

body.sb-template-match .sp-live-kicker {
    padding: 7px 9px;
    border-radius: 8px;
    color: #3349a2;
    background: #eaf0ff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .11em;
}

body.sb-template-match .sp-live-intro p {
    margin: 0 !important;
    color: var(--mx3-muted) !important;
    line-height: 1.65;
}

body.sb-template-match .sp-live-lines {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px !important;
}

body.sb-template-match.sb-redesign .sp-match-page .sp-live-lines a.jzt-live-btn {
    position: relative;
    box-sizing: border-box;
    display: flex !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    min-width: 0;
    min-height: 72px !important;
    padding: 12px 102px 12px 14px !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 16px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #5b49dc, #8368f4) !important;
    box-shadow: 0 12px 24px rgba(91, 73, 220, .2) !important;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

body.sb-template-match.sb-redesign .sp-match-page .sp-live-lines a.jzt-live-btn:nth-child(2) {
    background: linear-gradient(135deg, #ff6e4d, #f23f68) !important;
    box-shadow: 0 12px 24px rgba(242, 63, 104, .2) !important;
}

body.sb-template-match.sb-redesign .sp-match-page .sp-live-lines a.jzt-live-btn:nth-child(3) {
    background: linear-gradient(135deg, #029db7, #08c2ad) !important;
    box-shadow: 0 12px 24px rgba(2, 157, 183, .2) !important;
}

body.sb-template-match.sb-redesign .sp-match-page .sp-live-lines a.jzt-live-btn:nth-child(4) {
    color: #4d3300 !important;
    background: linear-gradient(135deg, #f4a821, #ffd24c) !important;
    box-shadow: 0 12px 24px rgba(244, 168, 33, .23) !important;
}

body.sb-template-match.sb-redesign .sp-match-page .sp-live-lines a.jzt-live-btn i {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    border-radius: 13px !important;
    color: #fff !important;
    background: rgba(255, 255, 255, .16) !important;
    font-size: 18px !important;
}

body.sb-template-match.sb-redesign .sp-match-page .sp-live-lines a.jzt-live-btn i::before {
    content: "▶" !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-style: normal;
    line-height: 1;
}

body.sb-template-match.sb-redesign .sp-match-page .sp-live-lines a.jzt-live-btn:nth-child(4) i {
    border-color: rgba(77, 51, 0, .12) !important;
    color: #4d3300 !important;
    background: rgba(255, 255, 255, .35) !important;
}

body.sb-template-match.sb-redesign .sp-match-page .sp-live-lines a.jzt-live-btn .x-mask-txt {
    min-width: 0;
    overflow: hidden;
    color: inherit !important;
    font-size: 14px;
    font-weight: 900 !important;
    text-overflow: ellipsis;
    text-shadow: none !important;
    white-space: nowrap;
}

body.sb-template-match.sb-redesign .sp-match-page .sp-live-lines a.jzt-live-btn::before {
    display: none !important;
}

body.sb-template-match.sb-redesign .sp-match-page .sp-live-lines a.jzt-live-btn::after {
    content: "立即观看" !important;
    position: absolute;
    top: 50%;
    right: 14px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: 30px !important;
    padding: 0 11px !important;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: 999px !important;
    color: inherit !important;
    background: rgba(255, 255, 255, .16) !important;
    font-size: 10px !important;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%) !important;
}

body.sb-template-match.sb-redesign .sp-match-page .sp-live-lines a.jzt-live-btn:nth-child(4)::after {
    border-color: rgba(77, 51, 0, .1) !important;
    background: rgba(255, 255, 255, .35) !important;
}

body.sb-template-match.sb-redesign .sp-match-page .sp-live-lines a.jzt-live-btn:hover {
    filter: saturate(1.1) brightness(1.04);
    transform: translateY(-3px);
}

body.sb-template-match .sp-smart-sidebar-wrap > section,
body.sb-template-match .sp-smart-sidebar-wrap .sp-sidebar-card {
    border-color: #e1e5ef !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 28px rgba(27, 38, 83, .065) !important;
}

body.sb-template-match .sp-smart-sidebar-wrap h2::before {
    background: var(--mx3-coral) !important;
}

@media (max-width: 1023px) {
    body.sb-template-match .sp-scoreboard {
        grid-template-columns: minmax(0, 1fr) minmax(220px, .76fr) minmax(0, 1fr) !important;
    }

    body.sb-template-match .sp-team-panel {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }
}

@media (max-width: 767px) {
    body.sb-template-home .fl-match-row {
        grid-template-columns: minmax(0, 1fr) !important;
        padding: 0 0 8px !important;
    }

    body.sb-template-home .fl-match-action {
        justify-self: stretch;
        width: auto !important;
        min-width: 0 !important;
        height: 34px !important;
        min-height: 34px !important;
        margin: 0 8px !important;
        border-radius: 10px !important;
    }

    body.sb-template-match .sp-match-hero {
        padding: 12px 0 18px !important;
    }

    body.sb-template-match .sp-match-crumb {
        width: 100%;
        margin-bottom: 9px !important;
        padding: 6px 9px;
        overflow-x: auto;
        border-radius: 10px;
        font-size: 10px;
        white-space: nowrap;
        scrollbar-width: none;
    }

    body.sb-template-match .sp-scoreboard {
        grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr) !important;
        min-height: 232px;
        border-radius: 17px !important;
    }

    body.sb-template-match .sp-team-panel,
    body.sb-template-match .sp-score-core {
        min-height: 232px !important;
    }

    body.sb-template-match .sp-team-panel {
        padding: 34px 5px 14px !important;
    }

    body.sb-template-match .sp-team-role {
        top: 10px;
        padding: 3px 6px;
        font-size: 8px;
    }

    body.sb-template-match .sp-team-link {
        gap: 8px !important;
    }

    body.sb-template-match .sp-team-logo {
        width: 48px !important;
        height: 48px !important;
        padding: 8px !important;
    }

    body.sb-template-match .sp-team-link strong {
        max-width: 100%;
        overflow: hidden;
        font-size: 13px !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.sb-template-match .sp-team-panel p {
        display: none;
    }

    body.sb-template-match .sp-score-core {
        padding: 17px 5px !important;
    }

    body.sb-template-match .sp-match-stage {
        display: none;
    }

    body.sb-template-match .sp-match-league,
    body.sb-template-match .sp-score-core .sp-match-league {
        padding: 4px 7px !important;
        font-size: 9px !important;
    }

    body.sb-template-match .sp-score-core h1 {
        display: none;
    }

    body.sb-template-match .sp-score-row {
        margin: 10px 0 8px !important;
    }

    body.sb-template-match .sp-score-row.is-pending span,
    body.sb-template-match .sp-score-row span,
    body.sb-template-match .sp-score-row b {
        width: 48px;
        height: 48px;
        font-size: 16px !important;
    }

    body.sb-template-match .sp-status-line {
        flex-direction: column;
        gap: 3px !important;
    }

    body.sb-template-match .sp-status-pill,
    body.sb-template-match .sp-status-pill.is-next {
        padding: 3px 6px !important;
        font-size: 8px !important;
    }

    body.sb-template-match .sp-status-line time {
        font-size: 8px;
    }

    body.sb-template-match .sp-hero-actions {
        margin-top: 8px !important;
    }

    body.sb-template-match .sp-hero-actions a.jzt-live-btn {
        min-width: 94px;
        min-height: 34px;
        padding: 0 8px !important;
        font-size: 10px;
    }

    body.sb-template-match .sp-live-card {
        border-radius: 15px !important;
    }

    body.sb-template-match .sp-live-card .sp-section-head {
        min-height: 54px;
        padding: 11px 13px !important;
    }

    body.sb-template-match .sp-live-card .sp-section-head h2 {
        font-size: 15px !important;
    }

    body.sb-template-match .sp-live-body {
        padding: 13px !important;
    }

    body.sb-template-match .sp-live-intro {
        display: block;
        margin-bottom: 12px;
    }

    body.sb-template-match .sp-live-kicker {
        display: inline-flex;
        margin-bottom: 7px;
    }

    body.sb-template-match .sp-live-intro p {
        font-size: 12px;
    }

    body.sb-template-match .sp-live-lines {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 9px !important;
    }

    body.sb-template-match.sb-redesign .sp-match-page .sp-live-lines a.jzt-live-btn {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 60px !important;
        margin: 0 !important;
        padding: 9px 94px 9px 10px !important;
        border-radius: 13px !important;
    }

    body.sb-template-match.sb-redesign .sp-match-page .sp-live-lines a.jzt-live-btn i {
        flex-basis: 38px !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 11px !important;
    }

    body.sb-template-match.sb-redesign .sp-match-page .sp-live-lines a.jzt-live-btn::after {
        right: 10px;
        height: 27px !important;
        padding: 0 9px !important;
        font-size: 9px !important;
    }
}

@media (max-width: 360px) {
    body.sb-template-match .sp-scoreboard {
        grid-template-columns: minmax(0, 1fr) 102px minmax(0, 1fr) !important;
    }

    body.sb-template-match .sp-team-logo {
        width: 44px !important;
        height: 44px !important;
    }

    body.sb-template-match .sp-team-link strong {
        font-size: 12px !important;
    }

    body.sb-template-match .sp-hero-actions a.jzt-live-btn {
        min-width: 88px;
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.sb-template-home .fl-match-action,
    body.sb-template-match .sp-hero-actions a.jzt-live-btn,
    body.sb-template-match .sp-live-lines a.jzt-live-btn {
        transition: none !important;
    }
}

/* 首页紧凑 SEO 信息条：保留 H1 与说明，同时把首屏空间交还给资讯和赛程。 */
body.sb-template-home .fl-season-intro {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    min-height: 0;
    padding: 15px 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 15px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .025), transparent 58%),
        linear-gradient(125deg, #11392c, #08271f);
    box-shadow: 0 10px 26px rgba(17, 47, 37, .12);
}

body.sb-template-home .fl-season-intro::after {
    display: none;
}

body.sb-template-home .fl-season-intro > div,
body.sb-template-home .fl-season-intro > dl {
    position: relative;
    z-index: 1;
}

body.sb-template-home .fl-season-intro .fl-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    margin-bottom: 2px;
    padding: 0 8px;
    border: 1px solid rgba(238, 194, 82, .24);
    border-radius: 999px;
    color: #f2cf72;
    background: rgba(238, 194, 82, .08);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
}

body.sb-template-home .fl-season-intro h1 {
    margin: 2px 0 3px;
    font-size: clamp(23px, 2.1vw, 29px);
    line-height: 1.2;
    letter-spacing: -.03em;
}

body.sb-template-home .fl-season-intro p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    line-height: 1.55;
}

body.sb-template-home .fl-season-intro dl {
    gap: 0;
    min-width: 240px;
    padding: 0 0 0 18px;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, .12);
}

body.sb-template-home .fl-season-intro dl > div {
    min-width: 72px;
    padding: 2px 10px;
}

body.sb-template-home .fl-season-intro dt {
    font-size: 20px;
}

body.sb-template-home .fl-season-intro dd {
    margin-top: 5px;
    font-size: 10px;
}

@media (max-width: 767px) {
    body.sb-template-home .fl-season-intro {
        display: block;
        padding: 12px 14px 13px;
        border-radius: 13px;
    }

    body.sb-template-home .fl-season-intro .fl-kicker {
        min-height: 18px;
        padding: 0 7px;
        font-size: 8px;
    }

    body.sb-template-home .fl-season-intro h1 {
        margin: 3px 0;
        font-size: 21px;
    }

    body.sb-template-home .fl-season-intro p {
        display: -webkit-box;
        overflow: hidden;
        font-size: 11px;
        line-height: 1.55;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    body.sb-template-home .fl-season-intro dl {
        display: none;
    }

    /* 移动端赛程改为独立比赛卡：赛事与状态在上、对阵居中、直播按钮独立。 */
    body.sb-template-home .fl-match-list {
        display: grid;
        gap: 9px;
        padding: 10px;
        border-top: 1px solid #e8ece9;
        background: #f5f8f6;
    }

    body.sb-template-home .fl-match-row {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 76px !important;
        align-items: stretch;
        min-width: 0;
        min-height: 82px;
        padding: 0 !important;
        overflow: hidden;
        border: 1px solid #e2e8e4;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 5px 14px rgba(22, 55, 43, .055);
    }

    body.sb-template-home .fl-match-row::before {
        position: absolute;
        top: 13px;
        bottom: 13px;
        left: 0;
        width: 3px;
        border-radius: 0 4px 4px 0;
        background: #d7a72d;
        content: "";
    }

    body.sb-template-home .fl-match-row.state-live::before {
        background: #ee5366;
        box-shadow: 0 0 0 3px rgba(238, 83, 102, .08);
    }

    body.sb-template-home .fl-match-data {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 22px minmax(0, 1fr);
        grid-template-rows: 22px minmax(38px, auto);
        gap: 3px 5px;
        min-width: 0;
        padding: 9px 8px 9px 12px;
    }

    body.sb-template-home .fl-match-data > time {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: center;
        padding-right: 7px;
        border-right: 1px solid #edf0ee;
    }

    body.sb-template-home .fl-match-data > time strong {
        color: #7b5710;
        font-size: 13px;
        line-height: 1.1;
    }

    body.sb-template-home .fl-match-data > time small {
        margin-top: 4px;
        color: #8d958f;
        font-size: 8px;
    }

    body.sb-template-home .fl-match-league {
        grid-column: 2 / 4;
        grid-row: 1;
        display: block;
        align-self: center;
        min-width: 0;
        overflow: hidden;
        color: #65716a;
        font-size: 9px;
        font-weight: 750;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.sb-template-home .fl-match-data > em {
        grid-column: 4;
        grid-row: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        justify-self: end;
        min-height: 19px;
        padding: 0 6px;
        border-radius: 999px;
        color: #68746d;
        background: #f0f3f1;
        font-size: 8px;
        font-style: normal;
        font-weight: 800;
        white-space: nowrap;
    }

    body.sb-template-home .fl-match-row.state-live .fl-match-data > em {
        color: #d83e55;
        background: #fff0f2;
    }

    body.sb-template-home .fl-match-team {
        align-self: center;
        min-width: 0;
        gap: 4px;
    }

    body.sb-template-home .fl-match-team.is-home {
        grid-column: 2;
        grid-row: 2;
        justify-content: flex-end;
        text-align: right;
    }

    body.sb-template-home .fl-match-team.is-away {
        grid-column: 4;
        grid-row: 2;
        justify-content: flex-start;
        text-align: left;
    }

    body.sb-template-home .fl-match-team b {
        min-width: 0;
        overflow: hidden;
        color: #17231e;
        font-size: 10px;
        font-weight: 850;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.sb-template-home .fl-match-team img,
    body.sb-template-home .fl-match-team .px-team-fallback {
        flex: 0 0 22px;
        width: 22px;
        height: 22px;
        border: 1px solid #eef1ef;
        background: #fff;
    }

    body.sb-template-home .fl-match-score {
        grid-column: 3;
        grid-row: 2;
        align-self: center;
        color: #21382f;
        font-size: 10px;
        font-weight: 950;
    }

    body.sb-template-home .fl-match-action {
        align-self: center;
        justify-self: center;
        flex-direction: column;
        gap: 3px;
        width: 62px !important;
        min-width: 62px !important;
        height: 54px !important;
        min-height: 54px !important;
        margin: 0 !important;
        padding: 0 5px !important;
        border: 1px solid rgba(238, 75, 99, .16) !important;
        border-radius: 13px !important;
        color: #d93b58 !important;
        background: linear-gradient(145deg, #fff5f6, #ffe9ed) !important;
        box-shadow: none !important;
    }

    body.sb-template-home .fl-match-action i {
        display: grid !important;
        width: 23px;
        height: 23px;
        place-items: center;
        border-radius: 50%;
        color: #fff !important;
        background: linear-gradient(135deg, #ff6558, #ed3e64);
        box-shadow: 0 4px 9px rgba(237, 62, 100, .2);
        font-size: 10px;
    }

    body.sb-template-home .fl-match-action i::before {
        display: block !important;
        color: #fff;
        content: "▶" !important;
        font-family: inherit !important;
        font-size: 8px;
        line-height: 1;
        transform: translateX(1px);
    }

    body.sb-template-home .fl-match-action span,
    body.sb-template-home .fl-match-action .x-mask-txt {
        color: #d93b58 !important;
        font-size: 9px !important;
        font-weight: 900 !important;
    }

    body.sb-template-home .fl-match-row.state-done .fl-match-action {
        border-color: #dce4df !important;
        color: #526158 !important;
        background: #f5f8f6 !important;
    }

    body.sb-template-home .fl-match-row.state-done .fl-match-action i {
        background: #66766e;
        box-shadow: none;
    }

    body.sb-template-home .fl-match-row.state-done .fl-match-action span,
    body.sb-template-home .fl-match-row.state-done .fl-match-action .x-mask-txt {
        color: #526158 !important;
    }
}

@media (max-width: 360px) {
    body.sb-template-home .fl-match-list {
        gap: 7px;
        padding: 8px 7px;
    }

    body.sb-template-home .fl-match-row {
        grid-template-columns: minmax(0, 1fr) 68px !important;
    }

    body.sb-template-home .fl-match-data {
        grid-template-columns: 40px minmax(0, 1fr) 19px minmax(0, 1fr);
        gap: 3px;
        padding-right: 5px;
        padding-left: 9px;
    }

    body.sb-template-home .fl-match-team img,
    body.sb-template-home .fl-match-team .px-team-fallback {
        flex-basis: 19px;
        width: 19px;
        height: 19px;
    }

    body.sb-template-home .fl-match-action {
        width: 56px !important;
        min-width: 56px !important;
    }
}

/* 首页资讯：主视觉与右侧快讯使用不同文章，文章较少时主动重排而不是留下空格。 */
body.sb-template-home .fl-story-grid.story-count-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 300px;
}

body.sb-template-home .fl-story-grid.story-count-1 .fl-story.is-lead {
    grid-row: auto;
}

body.sb-template-home .fl-story-grid.story-count-2 {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
    grid-template-rows: 330px;
}

body.sb-template-home .fl-story-grid.story-count-2 .fl-story.is-lead,
body.sb-template-home .fl-story-grid.story-count-2 .fl-story:not(.is-lead) {
    grid-row: auto;
}

body.sb-template-home .fl-story-grid.story-count-3,
body.sb-template-home .fl-story-grid.story-count-4 {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr);
}

body.sb-template-home .fl-story-grid.story-count-3 .fl-story.is-lead {
    grid-row: 1 / 3;
}

body.sb-template-home .fl-story-grid.story-count-4 {
    grid-template-rows: repeat(3, minmax(0, 1fr));
}

body.sb-template-home .fl-story-grid.story-count-4 .fl-story.is-lead {
    grid-row: 1 / 4;
}

body.sb-template-home .fl-briefs > div:has(.fl-brief-empty) {
    height: calc(100% - 32px);
}

body.sb-template-home .fl-briefs > div:has(.fl-brief-nav) {
    padding: 6px 12px 10px;
}

body.sb-template-home .fl-brief-nav {
    display: grid;
    gap: 2px;
}

body.sb-template-home .fl-brief-nav > a {
    display: flex;
    min-width: 0;
    min-height: 48px;
    padding: 7px 8px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 10px;
    color: #26352e;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

body.sb-template-home .fl-brief-nav > a:hover,
body.sb-template-home .fl-brief-nav > a:focus-visible {
    color: #0f6547;
    background: #f0f7f3;
    transform: translateX(2px);
}

body.sb-template-home .fl-brief-nav span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

body.sb-template-home .fl-brief-nav strong {
    overflow: hidden;
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.sb-template-home .fl-brief-nav small {
    overflow: hidden;
    color: #7a867f;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.sb-template-home .fl-brief-nav i {
    color: #b7861d;
    font-size: 20px;
    font-style: normal;
    line-height: 1;
}

body.sb-template-home .fl-brief-empty {
    display: grid;
    align-content: center;
    min-height: 150px;
    padding: 24px 12px;
    color: #77827b;
    text-align: center;
}

body.sb-template-home .fl-brief-empty::before {
    display: grid;
    width: 38px;
    height: 38px;
    margin: 0 auto 12px;
    place-items: center;
    border-radius: 50%;
    color: #1f6b4f;
    background: #edf6f1;
    content: "✓";
    font-size: 16px;
    font-weight: 900;
}

body.sb-template-home .fl-brief-empty strong {
    color: #26352e;
    font-size: 13px;
}

body.sb-template-home .fl-brief-empty span {
    max-width: 210px;
    margin: 6px auto 0;
    font-size: 10px;
    line-height: 1.7;
}

/* 新赛季路线：核心联赛是主入口，其余联赛是轻量切换项。 */
body.sb-template-home .fl-season-route .fl-panel-head {
    align-items: center;
    border-bottom: 1px solid #e5e8e3;
}

body.sb-template-home .fl-route-grid {
    display: grid;
    grid-template-columns: 1.32fr repeat(4, minmax(0, 1fr));
    background: #f5f7f4;
}

body.sb-template-home .fl-route-card {
    position: relative;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    min-width: 0;
    min-height: 176px;
    padding: 17px 16px 15px;
    overflow: hidden;
    color: #1b2922;
    border-right: 1px solid #e2e7e3;
    background: #fff;
    transition: background .2s ease, transform .2s ease;
}

body.sb-template-home .fl-route-card:last-child {
    border-right: 0;
}

body.sb-template-home .fl-route-card::after {
    position: absolute;
    right: -16px;
    bottom: -26px;
    width: 82px;
    height: 82px;
    border: 16px solid color-mix(in srgb, var(--league-color) 9%, transparent);
    border-radius: 50%;
    content: "";
}

body.sb-template-home .fl-route-card:hover {
    z-index: 1;
    background: #fbfcfa;
    transform: translateY(-2px);
}

body.sb-template-home .fl-route-card.is-featured {
    color: #fff;
    background:
        radial-gradient(circle at 100% 110%, rgba(185, 217, 61, .2), transparent 48%),
        linear-gradient(135deg, #123d2e, #0b2d23);
}

body.sb-template-home .fl-route-order {
    position: absolute;
    top: 12px;
    right: 13px;
    color: color-mix(in srgb, var(--league-color) 58%, #7a837e);
    font-size: 10px;
    font-weight: 950;
}

body.sb-template-home .fl-route-card.is-featured .fl-route-order {
    color: rgba(255, 255, 255, .52);
}

body.sb-template-home .fl-route-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-right: 25px;
}

body.sb-template-home .fl-route-meta span {
    color: var(--league-color);
    font-size: 9px;
    font-weight: 900;
}

body.sb-template-home .fl-route-meta time {
    color: #89928c;
    font-size: 8px;
}

body.sb-template-home .fl-route-card.is-featured .fl-route-meta span {
    color: #d9ef80;
}

body.sb-template-home .fl-route-card.is-featured .fl-route-meta time {
    color: rgba(255, 255, 255, .6);
}

body.sb-template-home .fl-route-card h3 {
    margin: 17px 0 5px;
    color: inherit;
    font-size: 22px;
    line-height: 1;
}

body.sb-template-home .fl-route-card.is-featured h3 {
    color: #fff !important;
    font-size: 27px;
}

body.sb-template-home .fl-route-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 3px 0 13px;
    color: #747f78;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 10px;
    line-height: 1.65;
}

body.sb-template-home .fl-route-card.is-featured p {
    color: rgba(255, 255, 255, .7);
}

body.sb-template-home .fl-route-card footer {
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid #edf0ed;
}

body.sb-template-home .fl-route-card.is-featured footer {
    border-top-color: rgba(255, 255, 255, .12);
}

body.sb-template-home .fl-route-card footer span {
    color: #8a938e;
    font-size: 8px;
}

body.sb-template-home .fl-route-card.is-featured footer span {
    color: rgba(255, 255, 255, .55);
}

body.sb-template-home .fl-route-card footer b {
    color: inherit;
    font-size: 9px;
}

body.sb-template-home .fl-route-card footer b i::before {
    content: "↗" !important;
    font-family: inherit !important;
}

/* 实用工具只承担操作入口，与上方联赛路线、右侧问题搜索职责分离。 */
body.sb-template-home .fl-content-grid {
    grid-template-columns: 1fr 1fr;
}

body.sb-template-home .fl-tool-card .fl-panel-head,
body.sb-template-home .fl-search-card .fl-panel-head {
    padding-bottom: 12px;
}

body.sb-template-home .fl-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 0 20px 20px;
}

body.sb-template-home .fl-tool-grid > a {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 66px;
    padding: 9px 11px;
    color: #1d2b24;
    border: 1px solid #e3e8e4;
    border-radius: 12px;
    background: #fbfcfa;
}

body.sb-template-home .fl-tool-grid > a.is-featured {
    border-color: #cfe5d8;
    background: linear-gradient(135deg, #eef8f2, #f8fbf9);
}

body.sb-template-home .fl-tool-grid > a > i {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #1f6b4f;
    border-radius: 11px;
    background: #eaf4ef;
    font-size: 15px;
    font-style: normal;
}

body.sb-template-home .fl-tool-grid > a > i::before {
    font-family: inherit !important;
    font-size: 11px;
    font-weight: 900;
}

body.sb-template-home .fl-tool-grid > a:nth-child(1) > i::before { content: "直播" !important; }
body.sb-template-home .fl-tool-grid > a:nth-child(2) > i::before { content: "日程" !important; }
body.sb-template-home .fl-tool-grid > a:nth-child(3) > i::before { content: "比分" !important; }
body.sb-template-home .fl-tool-grid > a:nth-child(4) > i::before { content: "积分" !important; }
body.sb-template-home .fl-tool-grid > a:nth-child(5) > i::before { content: "球队" !important; }
body.sb-template-home .fl-tool-grid > a:nth-child(6) > i::before { content: "回放" !important; }

body.sb-template-home .fl-tool-grid > a.is-featured > i {
    color: #fff;
    background: #1f6b4f;
}

body.sb-template-home .fl-tool-grid > a > span {
    display: grid;
    min-width: 0;
    gap: 3px;
}

body.sb-template-home .fl-tool-grid strong {
    font-size: 11px;
}

body.sb-template-home .fl-tool-grid small {
    overflow: hidden;
    color: #78827c;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.sb-template-home .fl-tool-grid b {
    color: #a67416;
    font-size: 9px;
}

@media (max-width: 900px) {
    body.sb-template-home .fl-content-grid {
        grid-template-columns: 1fr;
    }

    body.sb-template-home .fl-route-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    body.sb-template-home .fl-route-grid::-webkit-scrollbar {
        display: none;
    }

    body.sb-template-home .fl-route-card {
        flex: 0 0 210px;
        scroll-snap-align: start;
    }

    body.sb-template-home .fl-route-card.is-featured {
        flex-basis: 245px;
    }
}

@media (max-width: 767px) {
    body.sb-template-home .fl-story-grid.story-count-1,
    body.sb-template-home .fl-story-grid.story-count-2,
    body.sb-template-home .fl-story-grid.story-count-3,
    body.sb-template-home .fl-story-grid.story-count-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 230px auto;
    }

    body.sb-template-home .fl-story-grid.story-count-1 .fl-story.is-lead,
    body.sb-template-home .fl-story-grid.story-count-2 .fl-story.is-lead,
    body.sb-template-home .fl-story-grid.story-count-3 .fl-story.is-lead,
    body.sb-template-home .fl-story-grid.story-count-4 .fl-story.is-lead {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    body.sb-template-home .fl-story-grid.story-count-2 .fl-story:not(.is-lead) {
        grid-column: 1 / 3;
        min-height: 125px;
    }

    body.sb-template-home .fl-story-grid.story-count-3 .fl-story:not(.is-lead),
    body.sb-template-home .fl-story-grid.story-count-4 .fl-story:not(.is-lead) {
        min-height: 125px;
    }

    body.sb-template-home .fl-story-grid.story-count-4 .fl-story:last-child {
        grid-column: 1 / 3;
    }

    body.sb-template-home .fl-route-card,
    body.sb-template-home .fl-route-card.is-featured {
        flex-basis: min(82vw, 270px);
        min-height: 166px;
    }

    body.sb-template-home .fl-tool-grid {
        grid-template-columns: 1fr;
        padding-right: 15px;
        padding-left: 15px;
    }
}
