﻿:root {
    --bg: #e9eef3;
    --card: #ffffff;
    --text: #152234;
    --sub: #667587;
    --muted: #8a96a5;
    --border: #dfe6ee;
    --navy: #0b1f33;
    --navy-2: #15395a;
    --red: #d7193f;
    --red-dark: #ad1130;
    --teal: #0f8c7a;
    --teal-soft: #e8f6f3;
    --gold: #d9a441;
    --gold-soft: #fff5dc;
    --green: #2fa66a;
    --shadow: 0 12px 30px rgba(15, 35, 58, .08);
    --shadow-soft: 0 6px 18px rgba(15, 35, 58, .06);
    --radius: 4px;
    --shell-accent: #d7193f;
    --shell-accent-soft: #fff0f3;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(180deg, #f7fafc 0, #e9eef3 260px, #e9eef3 100%);
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-app-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    width: 100%;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(223, 230, 238, .92);
    box-shadow: 0 8px 22px rgba(15, 35, 58, .07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-app-header-inner {
    max-width: 760px;
    min-height: 62px;
    margin: 0 auto;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-app-logo {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.site-app-logo-box {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 999px;
    overflow: hidden;
    background: #eff6ff;
    border: 1px solid #dbeafe;
}

.site-app-logo-box img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.site-app-logo-text {
    min-width: 0;
    display: block;
}

.site-app-logo-text strong,
.site-app-logo-text small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-app-logo-text strong {
    color: var(--text);
    font-size: 16px;
    line-height: 1.1;
    font-weight: 900;
}

.site-app-logo-text small {
    margin-top: 3px;
    color: var(--sub);
    font-size: 11px;
    line-height: 1.35;
}

.site-app-header-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-app-header-action {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: var(--radius);
    border: 1px solid rgba(215, 25, 63, .18);
    background: #fff7f8;
    color: var(--red-dark);
    font-size: 13px;
    font-weight: 800;
}

.wrap {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 14px 12px 18px;
}

.worldcup-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(11, 31, 51, .98) 0%, rgba(21, 57, 90, .96) 52%, rgba(15, 140, 122, .94) 100%);
    color: #fff;
    box-shadow: var(--shadow);
}

.worldcup-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: .22;
    pointer-events: none;
}

.worldcup-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--red) 0 33%, #fff 33% 42%, var(--gold) 42% 66%, #fff 66% 74%, var(--teal) 74% 100%);
}

.hero-top {
    position: relative;
    z-index: 1;
    padding: 20px 18px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.hero-copy {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 12px;
    align-items: center;
}

.worldcup-mark {
    grid-row: 1 / span 2;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffe5a6;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
}

.worldcup-mark svg {
    width: 34px;
    height: 34px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-copy h1 {
    margin: 0;
    font-size: 27px;
    line-height: 1.12;
    letter-spacing: 0;
    font-weight: 950;
}

.hero-copy p {
    max-width: 560px;
    margin: 7px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 13px;
    line-height: 1.55;
}

.hero-meta {
    flex: 0 0 auto;
    margin-top: 2px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #fff8df;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.20);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.hero-side {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-rank-link {
    min-width: 68px;
    min-height: 30px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    border: 1px solid rgba(175,205,245,.34);
    border-radius: var(--radius);
    background: rgba(255,255,255,.08);
    color: #edf5ff;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    transition: transform .14s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.hero-rank-link:hover {
    border-color: rgba(175,205,245,.58);
    background: rgba(255,255,255,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 5px 14px rgba(3,13,34,.18);
}
.hero-rank-link:active { transform: translateY(1px); }
.hero-rank-link:focus-visible { outline: 2px solid #9fc7ff; outline-offset: 2px; }
.hero-rank-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: #f2c96d;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cup-stats {
    position: relative;
    z-index: 1;
    margin: 0 18px 20px;
    padding: 10px 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.18);
}

.stat-card {
    position: relative;
    min-width: 0;
    padding: 2px 12px 0;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.stat-card + .stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 2px;
    width: 1px;
    background: rgba(255,255,255,.16);
}

.stat-label {
    display: block;
    color: rgba(255,255,255,.58);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
}

.stat-card strong {
    display: block;
    min-width: 0;
    margin-top: 5px;
    color: #fff;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 900;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.list-filter-bar {
    margin: 12px 0 0;
    padding: 10px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.88);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 9px;
}

.filter-row {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    width: 34px;
    flex: 0 0 auto;
    color: #34495f;
    font-size: 12px;
    font-weight: 900;
}

.segmented-filter {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.segmented-filter::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    flex: 0 0 auto;
    height: 31px;
    padding: 0 12px;
    border: 1px solid #d8e1ea;
    border-right: 0;
    background: #fff;
    color: #52616f;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.filter-btn:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.filter-btn:last-child {
    border-right: 1px solid #d8e1ea;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.filter-btn.active {
    border-color: var(--navy-2);
    background: var(--navy-2);
    color: #fff;
}

.list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.date-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.date-heading {
    position: sticky;
    top: 63px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 30px;
    padding: 2px 2px 4px;
    border-radius: 0;
    background: rgba(233, 238, 243, .86);
    border: 0;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.date-title {
    min-width: 0;
    color: #52616f;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.date-stage {
    flex: 0 0 auto;
    color: #7a8795;
    background: transparent;
    border: 1px solid rgba(122, 135, 149, .18);
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.match {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
}

.match.good {
    border-color: rgba(215, 25, 63, .55);
    box-shadow: 0 10px 24px rgba(215,25,63,.10);
}

.match.confidence-strong {
    border-left: 4px solid rgba(215, 25, 63, .82);
}

.match.confidence-steady {
    border-left: 4px solid rgba(15, 140, 122, .72);
}

.match.confidence-watch {
    border-left: 4px solid rgba(217, 164, 65, .82);
}

.match:active {
    transform: scale(.996);
}

.match-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 10px;
}

.left {
    min-width: 0;
    flex: 1;
}

.topline {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.jid,
.date {
    color: var(--sub);
    font-size: 12px;
    font-weight: 650;
}

.league {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
    font-size: 12.5px;
    font-weight: 750;
}

.l-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(15,140,122,.08);
    flex: 0 0 auto;
}

.teams {
    margin-top: 11px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.45;
}

.teams .vs {
    min-width: 58px;
    padding: 5px 8px;
    border-radius: var(--radius);
    background: #f3f6f9;
    color: var(--navy-2);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    flex: 0 0 auto;
}

.teams .t {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.teams .t.away {
    justify-content: flex-end;
    text-align: right;
}

.teams .team-logo {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    border-radius: 999px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid rgba(223, 230, 238, .95);
}

.teams .team-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-state,
.confidence-pill {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.match-state.future {
    background: var(--teal-soft);
    color: #087467;
}

.match-state.live {
    background: #fff1f4;
    color: var(--red-dark);
}

.match-state.waitReview {
    background: var(--gold-soft);
    color: #966614;
}

.confidence-pill.strong {
    background: #fff1f4;
    color: var(--red-dark);
}

.confidence-pill.steady {
    background: var(--teal-soft);
    color: #087467;
}

.confidence-pill.watch {
    background: var(--gold-soft);
    color: #966614;
}

.status {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-left: auto;
}

.badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--sub);
    white-space: nowrap;
    font-weight: 750;
}

.badge.hit {
    border-color: #f2b8c1;
    background: #fff1f4;
    color: var(--red-dark);
}

.badge.miss {
    border-color: #e5e7eb;
    background: #f7f8fa;
    color: #6b7280;
}

.badge.pending {
    border-color: #f1d796;
    background: var(--gold-soft);
    color: #966614;
}

.recommend {
    margin: 0 12px 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(180deg, #fbfcfd 0%, #f5f8fb 100%);
    border-radius: var(--radius);
    border: 1px solid #edf1f5;
}

.recommend-main {
    flex: 1;
    min-width: 0;
}

.recommend-line {
    flex: 1;
    font-size: 11px;
    color: var(--text);
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.reason-line {
    margin-top: 5px;
    color: #5f6b76;
    font-size: 12px;
    line-height: 1.55;
}

.forecast {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 24px;
    padding: 0 5px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e5ebf1;
    font-size: 11px;
    font-weight: 750;
    color: var(--text);
}

.forecast-focus {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    fill: var(--red);
}

.shoted {
    color: var(--red-dark) !important;
    border-color: #f2b8c1 !important;
    background: #fff1f4 !important;
}

.analysis-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border: none;
    background: transparent;
    color: #087467;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}

.analysis-link-icon {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transform: translateY(0.5px);
}

.analysis-link:hover {
    color: #075d52;
    text-decoration: underline;
}

.fullscore {
    display: block;
    font-weight: 900;
    color: var(--navy);
}

.halfscore {
    display: block;
    margin-top: 1px;
    color: var(--sub);
    font-size: 11px;
    font-weight: 700;
}

.empty {
    text-align: center;
    color: var(--sub);
    font-size: 13px;
    padding: 18px 12px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,.74);
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 118px;
    margin: 4px 0;
    padding: 20px 16px;
    text-align: left;
    border: 1px solid rgba(223, 230, 238, .95);
    background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(232, 246, 243, .86) 64%);
    box-shadow: var(--shadow-soft);
}

.empty-mark {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 140, 122, .18);
    box-shadow: 0 8px 18px rgba(15, 140, 122, .10);
}

.empty-mark svg {
    width: 34px;
    height: 34px;
}

.empty-ball {
    fill: #f8fffd;
    stroke: var(--teal);
    stroke-width: 2;
}

.empty-line {
    fill: none;
    stroke: var(--navy-2);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.empty-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.empty-copy strong {
    font-size: 15px;
    line-height: 1.25;
    color: var(--text);
    font-weight: 950;
}

.empty-copy span {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--sub);
}

.site-footer {
    margin-top: 22px;
    padding: 16px 10px 20px;
    text-align: center;
    font-size: 12px;
    color: var(--sub);
}

.law-note {
    margin-bottom: 10px;
    color: var(--red);
    font-weight: 800;
}

.footer-inner {
    max-width: 760px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.8;
}

.footer-links a {
    color: var(--sub);
    padding: 2px 4px;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-links .sep {
    color: #c4c7cc;
}

.footer-meta {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.6;
}

.footer-meta .slogan {
    margin-top: 2px;
    color: var(--muted);
}

.simple-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.loading-circle {
    width: 46px;
    height: 46px;
    border: 3px solid rgba(215,25,63,.18);
    border-top: 3px solid var(--red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#backToTop {
    position: fixed;
    right: 18px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    background: #fff;
    border: 1px solid rgba(215,25,63,.20);
    color: var(--red);
    box-shadow: 0 8px 20px rgba(20,24,32,.10);
    font-size: 18px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

#backToTop.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (min-width: 721px) {
    .wrap {
        padding: 16px 16px 22px;
    }
}

@media (max-width: 700px) {
    .hero-top {
        flex-direction: column;
        padding: 18px 14px 14px;
    }

    .hero-meta {
        margin-top: 0;
    }

    .hero-side {
        width: 100%;
        justify-content: flex-start;
    }

    .cup-stats {
        margin: 0 14px 18px;
        padding: 10px 0 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body {
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .site-app-header-inner {
        min-height: 56px;
        padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 8px;
    }

    .site-app-logo-box {
        width: 38px;
        height: 38px;
    }

    .site-app-header-actions {
        gap: 6px;
    }

    .site-app-header-action {
        min-height: 32px;
        padding: 0 9px;
        font-size: 12px;
    }

    .wrap {
        padding: 10px 10px 16px;
    }

    .worldcup-mark {
        width: 46px;
        height: 46px;
    }

    .hero-copy {
        gap: 0 10px;
    }

    .hero-copy h1 {
        font-size: 23px;
    }

    .hero-copy p {
        font-size: 12px;
    }

    .stat-card {
        padding: 3px 10px 8px;
    }

    .stat-card strong {
        font-size: 18px;
    }

    .match-header {
        gap: 10px;
    }

    .teams {
        gap: 6px;
        font-size: 13px;
    }

    .teams .team-logo {
        width: 20px;
        height: 20px;
    }

    .teams .vs {
        min-width: 52px;
        padding: 5px 6px;
    }

    .recommend {
        align-items: flex-start;
    }

    .footer-inner {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .law-note {
        margin-bottom: 6px;
        font-size: 11px;
        line-height: 1.25;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .footer-links {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 4px;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        line-height: 1.4;
        padding-bottom: 1px;
    }

    .footer-links a,
    .footer-links .sep {
        flex: 0 0 auto;
    }

    .footer-links a {
        padding: 1px 2px;
        font-size: 11px;
    }

    .footer-meta {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        width: 100%;
        margin-top: 0;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        line-height: 1.3;
        font-size: 11px;
    }

    .footer-meta > div {
        flex: 0 0 auto;
    }

    .footer-meta .slogan {
        margin-top: 0;
        font-size: 10px;
    }

    #backToTop {
        right: 12px;
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    }

}

@media (max-width: 420px) {
    .site-app-logo-text small {
        max-width: 150px;
    }

    .cup-stats {
        gap: 0;
    }

    .filter-row {
        align-items: flex-start;
    }

    .filter-label {
        padding-top: 8px;
    }
}

/* 五大联赛共享专题骨架与主题 */
body.league-season-page {
    --league-primary: #263b80;
    --league-secondary: #31d7df;
    --league-soft: #eef3ff;
    --league-ink: #142044;
}

.league-season-page .worldcup-hero {
    border-radius: var(--radius);
    isolation: isolate;
}

.league-season-page .hero-copy {
    grid-template-columns: auto minmax(0, 1fr);
}

.league-season-page .worldcup-mark {
    border-radius: var(--radius);
    color: #fff;
}

.league-season-page .worldcup-mark svg {
    width: 36px;
    height: 36px;
}

.league-season-page .season-kicker {
    margin: 0 0 4px;
    color: rgba(255,255,255,.68);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.league-season-page .hero-copy h1 {
    font-size: clamp(12.5px, 2.5vw, 17px);
}

.league-season-page .hero-copy p {
    grid-column: 2;
}

.league-season-page .filter-btn.active {
    border-color: var(--league-primary);
    background: var(--league-primary);
}

.league-season-page .match.confidence-strong {
    border-left-color: var(--league-primary);
}

.league-season-page .match.confidence-steady {
    border-left-color: var(--league-secondary);
}

.league-season-page .analysis-link {
    color: var(--league-primary);
}

.league-season-page .analysis-link:hover {
    color: var(--league-ink);
}

.league-season-page .league-nav-link {
    border-color: color-mix(in srgb, var(--league-primary) 20%, transparent);
    background: color-mix(in srgb, var(--league-soft) 88%, white);
    color: var(--league-primary);
}

/* 英超：夜场霓虹与锐利切角 */
body[data-league-key="premier-league"] {
    --league-primary: #39206f;
    --league-secondary: #20d8d2;
    --league-soft: #f2effb;
    --league-ink: #18072e;
    background: linear-gradient(180deg, #f8f5ff 0, #ebe8f3 330px, #eef1f5 100%);
}

body[data-league-key="premier-league"] .worldcup-hero {
    border-radius: var(--radius);
    background: linear-gradient(125deg, #160526 0%, #351064 47%, #087b83 100%);
}

body[data-league-key="premier-league"] .worldcup-hero::before {
    background:
        radial-gradient(circle at 83% 18%, rgba(37,255,244,.24), transparent 23%),
        linear-gradient(120deg, transparent 0 62%, rgba(255,255,255,.08) 62% 64%, transparent 64%);
    opacity: 1;
}

body[data-league-key="premier-league"] .worldcup-hero::after {
    height: 5px;
    background: linear-gradient(90deg, #20d8d2, #8b5cf6 50%, #ff4fd8);
}

body[data-league-key="premier-league"] .match {
    border-radius: var(--radius);
}

/* 西甲：地中海日光、暖红与金砂 */
body[data-league-key="la-liga"] {
    --league-primary: #a51d32;
    --league-secondary: #d8a526;
    --league-soft: #fff7e8;
    --league-ink: #521019;
    background: linear-gradient(180deg, #fffaf0 0, #f6ecdc 330px, #f1eee9 100%);
}

body[data-league-key="la-liga"] .worldcup-hero {
    background:
        radial-gradient(circle at 86% 18%, rgba(255,219,104,.82) 0 7%, rgba(255,219,104,.18) 8% 20%, transparent 21%),
        linear-gradient(135deg, #771324 0%, #b72d35 57%, #d69e2e 100%);
}

body[data-league-key="la-liga"] .worldcup-hero::before {
    background:
        repeating-radial-gradient(circle at 86% 18%, transparent 0 18px, rgba(255,255,255,.11) 19px 20px);
    opacity: .7;
}

body[data-league-key="la-liga"] .worldcup-hero::after {
    background: linear-gradient(90deg, #f6c94c 0 24%, #a71930 24% 76%, #f6c94c 76%);
}

body[data-league-key="la-liga"] .match {
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(120,58,21,.08);
}

/* 德甲：工业红黑、速度斜线 */
body[data-league-key="bundesliga"] {
    --league-primary: #d20a18;
    --league-secondary: #171717;
    --league-soft: #fff0f0;
    --league-ink: #161616;
    background: linear-gradient(180deg, #f8f8f8 0, #ececec 330px, #efefef 100%);
}

body[data-league-key="bundesliga"] .worldcup-hero {
    border-radius: 4px;
    background: linear-gradient(112deg, #0c0c0d 0 42%, #b80612 42% 76%, #e51b27 76%);
}

body[data-league-key="bundesliga"] .worldcup-hero::before {
    background: repeating-linear-gradient(116deg, transparent 0 32px, rgba(255,255,255,.10) 33px 36px);
    opacity: .8;
}

body[data-league-key="bundesliga"] .worldcup-hero::after {
    height: 7px;
    background: linear-gradient(90deg, #111 0 33%, #fff 33% 66%, #d20a18 66%);
}

body[data-league-key="bundesliga"] .worldcup-mark,
body[data-league-key="bundesliga"] .match,
body[data-league-key="bundesliga"] .list-filter-bar {
    border-radius: 4px;
}

/* 意甲：蓝色编辑部风格与清晰细线 */
body[data-league-key="serie-a"] {
    --league-primary: #1458b8;
    --league-secondary: #58c5f1;
    --league-soft: #edf7ff;
    --league-ink: #0b2d61;
    background: linear-gradient(180deg, #f4fbff 0, #e8f2fa 330px, #edf1f5 100%);
}

body[data-league-key="serie-a"] .worldcup-hero {
    border-radius: var(--radius);
    background: linear-gradient(145deg, #071e48 0%, #135ab7 56%, #56bde7 100%);
}

body[data-league-key="serie-a"] .worldcup-hero::before {
    background:
        linear-gradient(90deg, transparent 0 72%, rgba(255,255,255,.11) 72% 73%, transparent 73%),
        linear-gradient(0deg, transparent 0 72%, rgba(255,255,255,.10) 72% 73%, transparent 73%);
    background-size: 52px 52px;
    opacity: .8;
}

body[data-league-key="serie-a"] .worldcup-hero::after {
    background: linear-gradient(90deg, #5ec8f2, #fff 50%, #1458b8);
}

body[data-league-key="serie-a"] .match {
    border-radius: var(--radius);
    border-color: #d5e4f1;
}

/* 法甲：午夜球场与荧光几何 */
body[data-league-key="ligue-1"] {
    --league-primary: #132652;
    --league-secondary: #c8ff22;
    --league-soft: #f4f9e6;
    --league-ink: #08142f;
    background: linear-gradient(180deg, #f4f8ec 0, #e7ecdf 330px, #edf0ed 100%);
}

body[data-league-key="ligue-1"] .worldcup-hero {
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, #071329 0%, #132652 58%, #31542e 100%);
}

body[data-league-key="ligue-1"] .worldcup-hero::before {
    background:
        linear-gradient(30deg, transparent 40%, rgba(204,255,34,.12) 41% 43%, transparent 44%),
        linear-gradient(-30deg, transparent 40%, rgba(204,255,34,.10) 41% 43%, transparent 44%);
    background-size: 66px 38px;
    opacity: .9;
}

body[data-league-key="ligue-1"] .worldcup-hero::after {
    height: 6px;
    background: #c8ff22;
}

body[data-league-key="ligue-1"] .worldcup-mark {
    color: #d9ff6b;
    border-color: rgba(200,255,34,.42);
}

body[data-league-key="ligue-1"] .filter-btn.active {
    color: #dfff7b;
}

body[data-league-key="ligue-1"] .match {
    border-radius: var(--radius);
}

.league-season-page .hero-expert {
    max-width: 100%;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: var(--radius);
    background: rgba(255,255,255,.10);
    color: rgba(255,255,255,.72);
    font-size: 11px;
    line-height: 1.2;
}

.league-season-page .hero-expert strong {
    max-width: 190px;
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 620px) {
    .league-season-page .hero-copy p {
        grid-column: 1 / -1;
    }

    .league-season-page .hero-meta {
        align-self: flex-start;
    }
}