:root {
    --bg: #0c1016;
    --bg-2: #151b24;
    --card: #1c2430;
    --line: #314054;
    --text: #f5f7fb;
    --muted: #b7c2d0;
    --lime: #c6f135;
    --lime-ink: #142000;
    --orange: #ff7a32;
    --blue: #79d0ff;
    --done: #8b97a8;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
img { border: 0; vertical-align: middle; }
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }
button, summary { font: inherit; }
.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--lime);
    color: var(--lime-ink);
    padding: 6px 10px;
    z-index: 20;
}
.skip:focus { top: 8px; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.site-header {
    background: #10151d;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 72px;
}
.logo { max-width: 58%; }
.logo img { height: 46px; width: auto; max-width: 100%; display: block; object-fit: contain; object-position: left center; }
.site-nav { display: flex; gap: 8px; margin-left: auto; }
.site-nav a {
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
}
.site-nav a.active,
.site-nav a:hover { background: var(--lime); color: var(--lime-ink); text-decoration: none; }
.site-nav a.active img,
.site-nav a:hover img { filter: brightness(0); }
.nav-toggle {
    display: none;
    margin-left: auto;
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    align-items: center;
    gap: 6px;
}
.league-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 12px;
}
.league-strip a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 10px 4px 4px;
    text-decoration: none;
    font-size: 14px;
}
.league-strip img { width: 28px; height: 28px; border-radius: 50%; background: #fff; object-fit: cover; }

.home-hero { padding: 28px 0 8px; }
.home-hero h1, .page-hero h1, .news-card strong, .video-card strong { overflow-wrap: anywhere; }
.home-hero h1 { font-size: 40px; line-height: 1.2; margin: 0 0 10px; letter-spacing: 0.5px; }
.lead { color: var(--muted); margin: 0; }

.feature {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 16px;
    padding: 18px 0 8px;
}
.feature-main, .feature-side a {
    display: block;
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--line);
}
.feature-main img, .feature-side img { width: 100%; height: 280px; object-fit: cover; background: #0a0d12; display: block; }
.feature-side img { height: 86px; }
.feature-main p, .feature-side p { margin: 0; padding: 12px 14px 14px; background: #1c2430; color: var(--text); }
.feature-side { display: grid; gap: 10px; }

.panel { padding: 22px 0; }
.panel h2, .about-block h2, .faq-block h2 { font-size: 26px; margin: 0 0 14px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; }
.tabs button {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: var(--bg-2);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
}
.tabs button.on { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.tab-panel { display: none; }
.tab-panel.on { display: block; }

.score-list { display: grid; gap: 10px; }
.score-row {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
}
.score-main {
    display: grid;
    grid-template-columns: 72px 168px 72px minmax(0, 1fr) 72px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    color: var(--text);
    text-decoration: none;
}
.score-main:hover { text-decoration: none; }
.status {
    font-size: 12px;
    text-align: center;
    border-radius: 999px;
    padding: 3px 0;
    background: #2a3342;
    color: var(--text);
}
.status.live { background: var(--orange); color: #1a0c04; font-weight: 700; }
.status.wait { background: var(--lime); color: var(--lime-ink); font-weight: 700; }
.status.done { color: var(--done); }
.score-main time, .cate { color: var(--muted); font-size: 13px; }
.team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team.away { flex-direction: row-reverse; text-align: right; }
.team img { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 50%; flex: 0 0 auto; }
.team em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score { text-align: center; font-weight: 800; font-size: 20px; letter-spacing: 1px; }
.score i { font-style: normal; color: var(--muted); margin: 0 4px; }
.score.vs { color: var(--blue); }
.lines { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.lines span { color: var(--muted); font-size: 13px; }
.lines a {
    background: #10161f;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 13px;
    text-decoration: none;
}
.lines a:hover { border-color: var(--lime); color: var(--lime); }

.news-grid, .video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.news-card, .video-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    color: var(--text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.news-card:hover, .video-card:hover { text-decoration: none; border-color: var(--lime); }
.news-card img { width: 100%; height: 150px; object-fit: cover; background: #0a0d12; }
.news-card div, .video-card div { padding: 12px 14px 14px; }
.news-card strong, .video-card strong { display: block; line-height: 1.45; }
.meta { color: var(--muted); font-size: 13px; margin-top: 6px; }

.page-hero { padding: 26px 0 6px; }
.page-hero h1 { margin: 0 0 8px; font-size: 34px; line-height: 1.25; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.sep { margin: 0 6px; }

.detail-card, .article, .about-block, .faq-block, .table-wrap {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
}
.detail-head {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    text-align: center;
}
.detail-head .club img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 50%; }
.detail-head h2 { font-size: 18px; margin: 8px 0 0; }
.big-score { font-size: 36px; font-weight: 800; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 14px; padding: 0; margin: 0 0 12px; list-style: none; }
.article-body { font-size: 17px; }
.article-body p { margin: 0 0 12px; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.byline { background: #121820; border-radius: 10px; padding: 10px 12px; }
.pager, .neighbors { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0; }
.pager a, .neighbors a, .back-link {
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 12px;
    text-decoration: none;
}
.neighbors a { max-width: 48%; }
.table-wrap { overflow-x: auto; margin: 12px 0 18px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
td.team-cell { text-align: left; }
td.team-cell img { width: 24px; height: 24px; object-fit: contain; background: #fff; border-radius: 50%; margin-right: 6px; }
.faq-list details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq-list summary { cursor: pointer; font-weight: 700; }
.faq-list p { margin: 8px 0 0; color: var(--muted); }
.about-block h3 { margin: 16px 0 6px; }
.about-block ul { margin: 0; padding-left: 18px; }
.note { color: var(--muted); }
.empty { color: var(--muted); background: var(--card); border-radius: 12px; padding: 16px; }
.play-box { max-width: 640px; margin: 28px auto; text-align: center; }
.play-box button {
    background: var(--lime);
    color: var(--lime-ink);
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
}
.video-source { margin-top: 8px; color: var(--text); }
.site-footer { border-top: 1px solid var(--line); margin-top: 28px; padding: 22px 0 32px; background: #10151d; }
.footer-desc, .friends, .copy, .beian { color: var(--muted); margin: 0 0 8px; }
.beian a { color: var(--muted); }
.friends a { color: var(--muted); }
.dot { margin: 0 6px; }

@media (max-width: 900px) {
    .feature, .news-grid, .video-grid { grid-template-columns: 1fr 1fr; }
    .feature-main img { height: 200px; }
    .score-main { grid-template-columns: auto 1fr auto; grid-template-areas: "status time cate" "home score away"; }
    .status { grid-area: status; }
    .score-main time { grid-area: time; }
    .cate { grid-area: cate; justify-self: end; }
    .team.home { grid-area: home; }
    .score { grid-area: score; }
    .team.away { grid-area: away; }
}

@media (max-width: 720px) {
    .nav-toggle { display: inline-flex; min-height: 44px; }
    .logo img { height: 40px; }
    .score-main {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-areas:
            "time time time"
            "status cate cate"
            "home score away";
    }
    .score-main time { white-space: normal; }
    .lines a { min-height: 36px; display: inline-flex; align-items: center; }
    .site-nav a { min-height: 44px; }
    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        background: #10151d;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        padding: 8px 16px 14px;
        margin: 0;
    }
    .site-nav.open { display: flex; }
    .home-hero h1, .page-hero h1 { font-size: 28px; }
    .feature, .news-grid, .video-grid { grid-template-columns: 1fr; }
    .feature-side { grid-template-columns: 1fr; }
    .team em { white-space: normal; }
    .detail-head .club img { width: 56px; height: 56px; }
    .big-score { font-size: 28px; }
    .neighbors { flex-direction: column; }
    .neighbors a { max-width: none; }
}
