/*
 * 英超直播首页
 * 仅在首页加载，用独立层覆盖历史首页样式，避免影响比赛、球队和内容页。
 */

body.sb-template-home {
    background: #f6f6f1;
}

.pl-home {
    --pl-ink: #20251f;
    --pl-muted: #667068;
    --pl-purple: #552064;
    --pl-purple-dark: #3d1649;
    --pl-purple-soft: #f5eff7;
    --pl-mint: #eaf4ed;
    --pl-green: #276548;
    --pl-gold: #c99530;
    --pl-line: #e2e5df;
    gap: 16px;
    color: var(--pl-ink);
}

.pl-home a:focus-visible {
    outline: 3px solid rgba(85, 32, 100, .22);
    outline-offset: 2px;
}

.pl-home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 28px;
    overflow: hidden;
    min-height: 132px;
    padding: 22px 26px;
    border: 1px solid #dedfe0;
    border-left: 5px solid var(--pl-purple);
    border-radius: 16px;
    background:
        radial-gradient(circle at 84% 18%, rgba(85, 32, 100, .1), transparent 28%),
        linear-gradient(120deg, #fff 0%, #fbfaf7 66%, #f7f0f8 100%);
    box-shadow: 0 12px 30px rgba(31, 39, 32, .07);
}

.pl-home-hero::after {
    position: absolute;
    right: 27%;
    bottom: -65px;
    width: 145px;
    height: 145px;
    border: 22px solid rgba(39, 101, 72, .045);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.pl-home-hero-copy,
.pl-home-status {
    position: relative;
    z-index: 1;
}

.pl-home .fl-kicker,
.pl-home .fl-panel-head > div > span,
.pl-section-heading > div > span {
    color: #9b6b18;
    letter-spacing: .08em;
}

.pl-home-hero h1 {
    margin: 0;
    color: var(--pl-ink) !important;
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.08;
    letter-spacing: -.04em !important;
}

.pl-home-hero-copy > p {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--pl-muted);
    font-size: 13px;
    line-height: 1.75;
}

.pl-home-hero-copy > nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.pl-home-hero-copy > nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 13px;
    color: #4f5650;
    border: 1px solid var(--pl-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    font-size: 11px;
    font-weight: 800;
    transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.pl-home-hero-copy > nav a:hover {
    color: var(--pl-purple);
    border-color: #d4c1da;
    background: #fff;
    transform: translateY(-1px);
}

.pl-home-hero-copy > nav a.is-primary {
    color: #fff;
    border-color: var(--pl-purple);
    background: var(--pl-purple);
    box-shadow: 0 6px 14px rgba(85, 32, 100, .16);
}

.pl-home-hero-copy > nav a.is-primary:hover {
    border-color: var(--pl-purple-dark);
    background: var(--pl-purple-dark);
}

.pl-home-status {
    padding-left: 24px;
    border-left: 1px solid var(--pl-line);
}

.pl-home-status > strong {
    display: block;
    margin-bottom: 12px;
    color: var(--pl-muted);
    font-size: 11px;
    font-weight: 800;
}

.pl-home-status dl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0;
}

.pl-home-status dl > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    text-align: center;
}

.pl-home-status dt {
    color: var(--pl-purple);
    font-size: 24px;
    font-weight: 950;
    line-height: 1;
}

.pl-home-status dd {
    margin: 0;
    color: var(--pl-muted);
    font-size: 10px;
    white-space: nowrap;
}

.pl-league-tabs a.is-focus {
    background: linear-gradient(135deg, #f7f0f8, #fff);
    box-shadow: inset 0 -3px 0 var(--pl-purple);
}

.pl-league-tabs a.is-focus span,
.pl-league-tabs a.is-focus small {
    color: var(--pl-purple);
}

.pl-home .fl-match-ticker > strong {
    color: #fff;
    background: var(--pl-purple);
}

.pl-home .fl-match-ticker time {
    color: var(--pl-purple);
}

.pl-match-layout {
    grid-template-columns: minmax(0, 1fr) 306px;
    gap: 16px;
}

.pl-home .fl-panel,
.pl-news-section {
    border-color: var(--pl-line);
    background: #fff;
    box-shadow: 0 10px 26px rgba(31, 39, 32, .055);
}

.pl-home .fl-match-board .fl-panel-head {
    align-items: center;
    padding: 20px 20px 17px;
}

.pl-home .fl-match-board .fl-panel-head nav {
    max-width: 430px;
    border-color: var(--pl-line);
    background: #f5f6f3;
}

.pl-home .fl-match-board .fl-panel-head nav a.is-active {
    color: var(--pl-purple);
    background: var(--pl-purple-soft);
    box-shadow: inset 0 0 0 1px #e5d6ea;
}

.pl-home .fl-match-table-head {
    border-color: var(--pl-line);
    background: #f7f7f3;
}

.pl-home .fl-match-row {
    border-color: var(--pl-line);
    background: #fff;
}

.pl-home .fl-match-row:hover {
    background: #fbfafc;
}

.pl-home .fl-match-row.state-live {
    background: linear-gradient(90deg, rgba(85, 32, 100, .055), #fff 38%);
}

.pl-home .fl-match-data > time strong,
.pl-home .fl-match-score {
    color: var(--pl-purple);
}

.pl-home .fl-match-row > .px-live-button,
body.sb-redesign .pl-home .fl-match-row > .px-live-button {
    color: var(--pl-purple) !important;
    border-color: #d9c6df !important;
    background: #fbf8fc !important;
}

.pl-home .fl-match-row > .px-live-button:hover,
body.sb-redesign .pl-home .fl-match-row > .px-live-button:hover,
.pl-home .fl-match-row.state-live > .px-live-button,
body.sb-redesign .pl-home .fl-match-row.state-live > .px-live-button {
    color: #fff !important;
    border-color: var(--pl-purple) !important;
    background: var(--pl-purple) !important;
}

.pl-home-side {
    gap: 16px;
}

.pl-quick-list {
    display: grid;
    padding: 6px 13px 13px;
}

.pl-quick-list > a {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 9px;
    min-height: 57px;
    color: var(--pl-ink);
    border-bottom: 1px dashed var(--pl-line);
}

.pl-quick-list > a:last-child {
    border-bottom: 0;
}

.pl-quick-list > a > i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--pl-green);
    border-radius: 10px;
    background: var(--pl-mint);
}

.pl-quick-list > a.is-featured > i {
    color: var(--pl-purple);
    background: var(--pl-purple-soft);
}

.pl-quick-list > a > span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.pl-quick-list strong {
    color: var(--pl-ink);
    font-size: 12px;
}

.pl-quick-list small {
    overflow: hidden;
    color: var(--pl-muted);
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 9px;
}

.pl-quick-list > a > b {
    color: #a0a7a1;
    font-size: 18px;
}

.pl-quick-list > a:hover strong,
.pl-quick-list > a:hover > b {
    color: var(--pl-purple);
}

.pl-home .fl-standings-card .fl-empty {
    min-height: 132px;
}

.pl-news-section {
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--pl-line);
    border-radius: 16px;
}

.pl-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 1px 2px 16px;
}

.pl-section-heading h2 {
    margin: 0;
    color: var(--pl-ink);
    font-size: 23px;
    line-height: 1.25;
}

.pl-section-heading p {
    margin: 5px 0 0;
    color: var(--pl-muted);
    font-size: 12px;
}

.pl-section-heading > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    color: var(--pl-purple);
    border: 1px solid #dfd0e3;
    border-radius: 999px;
    background: var(--pl-purple-soft);
    font-size: 11px;
    font-weight: 800;
}

.pl-news-section .fl-lead-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    min-height: 345px;
}

.pl-news-section .fl-story-grid {
    background: #25192a;
}

.pl-news-section .fl-story {
    background: #34203b;
}

.pl-news-section .fl-story > span {
    color: #fff;
    background: rgba(85, 32, 100, .9);
}

.pl-news-section .fl-briefs {
    box-shadow: none;
}

.pl-premier-guide .fl-panel-head {
    border-bottom: 1px solid var(--pl-line);
}

.pl-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pl-guide-grid > a {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 112px;
    padding: 18px;
    color: var(--pl-ink);
    border-right: 1px solid var(--pl-line);
    background: #fff;
}

.pl-guide-grid > a:last-child {
    border-right: 0;
}

.pl-guide-grid > a:hover {
    background: #fbfafc;
}

.pl-guide-grid > a > i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--pl-green);
    border-radius: 13px;
    background: var(--pl-mint);
    font-size: 18px;
}

.pl-guide-grid > a.is-primary > i {
    color: var(--pl-purple);
    background: var(--pl-purple-soft);
}

.pl-guide-grid > a > span {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.pl-guide-grid strong {
    color: var(--pl-ink);
    font-size: 14px;
}

.pl-guide-grid small {
    color: var(--pl-muted);
    font-size: 10px;
    line-height: 1.55;
}

.pl-guide-grid > a > b {
    position: absolute;
    top: 10px;
    right: 12px;
    color: #d7d9d5;
    font-size: 10px;
}

.pl-support-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 16px;
}

.pl-support-grid .fl-search-card.is-wide {
    grid-column: 1 / -1;
}

.pl-support-grid .fl-search-list {
    grid-template-columns: 1fr;
}

.pl-support-grid .fl-search-list a:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--pl-line);
}

.pl-support-grid .fl-search-list a:last-child {
    border-bottom: 0;
}

.pl-home .fl-empty > a {
    justify-self: center;
    margin-top: 12px;
    padding: 8px 12px;
    color: var(--pl-purple);
    border: 1px solid #dfd0e3;
    border-radius: 999px;
    background: var(--pl-purple-soft);
    font-size: 11px;
    font-weight: 800;
}

.pl-home-note {
    padding: 18px 20px;
    border: 1px solid var(--pl-line);
    border-radius: 14px;
    background: #fff;
}

.pl-home-note h2 {
    font-size: 19px;
}

.pl-home-note p {
    color: #626c64;
    font-size: 12px;
    line-height: 1.95;
}

.pl-home-note nav a:first-child,
.pl-home-note nav a:nth-child(2),
.pl-home-note nav a:nth-child(3) {
    color: var(--pl-purple);
    border-color: #dfd0e3;
    background: var(--pl-purple-soft);
}

@media (max-width: 1100px) {
    .pl-home-hero {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .pl-match-layout,
    .pl-news-section .fl-lead-layout {
        grid-template-columns: minmax(0, 1fr) 270px;
    }

    .pl-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pl-guide-grid > a:nth-child(2) {
        border-right: 0;
    }

    .pl-guide-grid > a:nth-child(n+3) {
        border-top: 1px solid var(--pl-line);
    }
}

@media (max-width: 900px) {
    .pl-home-hero {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .pl-home-status {
        padding: 15px 0 0;
        border-top: 1px solid var(--pl-line);
        border-left: 0;
    }

    .pl-home-status > strong {
        display: none;
    }

    .pl-match-layout,
    .pl-news-section .fl-lead-layout,
    .pl-support-grid {
        grid-template-columns: 1fr;
    }

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

    .pl-support-grid .fl-search-card,
    .pl-support-grid .fl-search-card.is-wide {
        grid-column: auto;
    }
}

@media (max-width: 767px) {
    .pl-home {
        gap: 11px;
    }

    .pl-home-hero {
        padding: 18px 16px;
        border-left-width: 4px;
        border-radius: 13px;
    }

    .pl-home-hero h1 {
        font-size: 31px;
    }

    .pl-home-hero-copy > p {
        font-size: 12px;
        line-height: 1.7;
    }

    .pl-home-hero-copy > nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .pl-home-hero-copy > nav a {
        min-width: 0;
        min-height: 39px;
        padding: 0 7px;
        font-size: 10px;
        white-space: nowrap;
    }

    .pl-home-status dl {
        gap: 4px;
    }

    .pl-home-status dt {
        font-size: 20px;
    }

    .pl-league-tabs a {
        flex-basis: 106px;
    }

    .pl-home .fl-match-ticker {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .pl-home .fl-match-ticker > strong {
        padding: 0 11px;
        font-size: 11px;
    }

    .pl-home .fl-match-board .fl-panel-head {
        display: grid;
        align-items: start;
        padding: 17px 14px 13px;
    }

    .pl-home .fl-match-board .fl-panel-head nav {
        width: 100%;
        max-width: none;
        overflow-x: auto;
    }

    .pl-home .fl-match-row {
        display: grid;
        grid-template-columns: 1fr;
        min-width: 0;
        padding: 0;
        background: #fff;
    }

    .pl-home .fl-match-row + .fl-match-row {
        border-top: 7px solid #f5f5f1;
    }

    .pl-home .fl-match-data {
        grid-template-columns: 48px minmax(0, 1fr) 36px minmax(0, 1fr);
        gap: 6px;
        width: 100%;
        min-width: 0;
        padding: 13px 12px 10px;
    }

    .pl-home .fl-match-team b {
        font-size: 11px;
    }

    .pl-home .fl-match-row > .px-live-button,
    body.sb-redesign .pl-home .fl-match-row > .px-live-button {
        width: auto !important;
        min-width: 0;
        min-height: 38px;
        margin: 0 12px 12px !important;
        border-radius: 10px !important;
        font-size: 11px;
    }

    .pl-home-side {
        grid-template-columns: 1fr;
    }

    .pl-quick-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 12px;
    }

    .pl-quick-list > a {
        grid-template-columns: 33px minmax(0, 1fr);
    }

    .pl-quick-list > a > b,
    .pl-quick-list small {
        display: none;
    }

    .pl-news-section {
        padding: 14px;
        border-radius: 13px;
    }

    .pl-section-heading {
        align-items: flex-start;
        padding-bottom: 13px;
    }

    .pl-section-heading h2 {
        font-size: 20px;
    }

    .pl-section-heading p {
        font-size: 11px;
        line-height: 1.6;
    }

    .pl-section-heading > a {
        min-height: 32px;
        padding: 0 9px;
        font-size: 10px;
    }

    .pl-news-section .fl-story-grid {
        grid-template-rows: 220px repeat(2, 118px);
    }

    .pl-guide-grid {
        grid-template-columns: 1fr;
    }

    .pl-guide-grid > a {
        min-height: 86px;
        padding: 14px;
        border-top: 1px solid var(--pl-line) !important;
        border-right: 0;
    }

    .pl-guide-grid > a:first-child {
        border-top: 0 !important;
    }

    .pl-support-grid .fl-video-card > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pl-support-grid .fl-search-list {
        grid-template-columns: 1fr;
        padding-right: 15px;
        padding-left: 15px;
    }

    .pl-home-note {
        padding: 16px;
    }
}

@media (max-width: 430px) {
    .pl-home-hero-copy > nav {
        grid-template-columns: 1fr 1fr;
    }

    .pl-home-hero-copy > nav a.is-primary {
        grid-column: 1 / -1;
    }

    .pl-home .fl-match-data {
        grid-template-columns: 43px minmax(0, 1fr) 32px minmax(0, 1fr);
        padding-right: 9px;
        padding-left: 9px;
    }

    .pl-home .fl-match-team img,
    .pl-home .fl-match-team .px-team-fallback {
        display: block;
        flex-basis: 22px;
        width: 22px;
        height: 22px;
    }

    .pl-home .fl-match-team b {
        font-size: 10px;
    }

    .pl-home .fl-match-row > .px-live-button,
    body.sb-redesign .pl-home .fl-match-row > .px-live-button {
        margin-right: 9px !important;
        margin-left: 9px !important;
    }

    .pl-section-heading {
        display: grid;
        gap: 10px;
    }

    .pl-section-heading > a {
        justify-self: start;
    }

    .pl-quick-list {
        grid-template-columns: 1fr;
    }

    .pl-quick-list > a {
        min-height: 52px;
    }

    .pl-support-grid .fl-video-card > div {
        gap: 9px;
    }
}
