:root {
    --red: #d10a1b;
    --ink: #172033;
    --muted: #5c677a;
    --line: #e7ebf2;
    --bg: #f4f6f9;
    --card: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 28px)); margin: 0 auto; }
.site-head {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 3px solid var(--red);
}
.head-bar { display: flex; align-items: center; gap: 18px; min-height: 72px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.brand strong { display: block; font-size: 18px; letter-spacing: .04em; }
.brand small { color: var(--muted); font-size: 12px; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 650; }
.nav a.on, .nav a:hover { background: #fff1f2; color: var(--red); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-btn i { display: block; width: 16px; height: 2px; background: var(--ink); }
main.wrap { padding: 22px 0 56px; }
.hero {
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 22px;
    padding: 34px;
    border-radius: 18px;
    color: #fff;
    background:
        radial-gradient(520px 180px at 100% 0%, rgba(209,10,27,.45), transparent 60%),
        linear-gradient(135deg, #141b2d 0%, #243044 72%);
}
.kicker { margin: 0 0 8px; color: #e4c27a; letter-spacing: .14em; font-size: 12px; font-weight: 700; }
.hero h1 { margin: 0 0 10px; font-size: 52px; line-height: 1; letter-spacing: .04em; }
.hero p { margin: 0; color: rgba(255,255,255,.86); font-size: 16px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 14px; }
.stat b { display: block; font-size: 28px; font-variant-numeric: tabular-nums; }
.stat span { color: rgba(255,255,255,.72); font-size: 13px; }
h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.25; }
.lead { margin: 0 0 16px; color: var(--muted); }
.chips, .day-row { display: flex; gap: 8px; overflow: auto; padding: 16px 0; }
.chips a, .day-row a, .pager a, .pager span {
    flex: 0 0 auto;
    text-decoration: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 14px;
}
.chips a.on, .day-row a.on, .pager span { background: var(--red); color: #fff; border-color: var(--red); }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 12px; }
.sec-head h2, .about h2, .faq-block h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 22px; }
.sec-head h2:before, .about h2:before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: var(--red); display: none; }
.sec-head a { color: var(--red); text-decoration: none; font-weight: 700; }
.subdate, .count { margin: -4px 0 10px; color: var(--muted); font-size: 13px; }
.match-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.match-row {
    display: grid;
    grid-template-columns: 108px minmax(0,1fr) 84px minmax(0,1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 12px 14px;
    text-decoration: none;
    border-top: 1px solid #f0f3f8;
}
.match-row:first-child { border-top: 0; }
.match-row:hover { background: #fff7f7; }
.m-meta { display: flex; flex-direction: column; gap: 2px; }
.tag { color: var(--red); font-style: normal; font-weight: 750; font-size: 13px; }
.m-meta time { color: var(--muted); font-size: 12px; }
.m-home, .m-away { display: flex; align-items: center; gap: 8px; min-width: 0; }
.m-away { justify-content: flex-end; }
.m-home em, .m-away em { font-style: normal; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-row img { width: 28px; height: 28px; object-fit: contain; }
.m-score { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.m-score i { margin: 0 4px; color: #98a2b3; font-style: normal; }
.m-score .vs { color: #98a2b3; font-size: 13px; letter-spacing: .08em; }
.m-state { justify-self: end; }
.st { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 26px; padding: 0 8px; border-radius: 999px; background: #f3f5f8; color: #526074; font-size: 12px; }
.st.live { background: #ffecee; color: var(--red); }
.st.finished { background: #eef8f1; color: #1d7a3a; }
.st.live:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 6px; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; min-height: 100%; }
.news-card:hover { border-color: #f3b8be; }
.thumb { position: relative; display: block; aspect-ratio: 16/9; background: linear-gradient(135deg, #1b2436, #8d2430); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-mark { position: absolute; left: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.55); }
.play-mark:before { content: ""; position: absolute; left: 14px; top: 10px; border-style: solid; border-width: 8px 0 8px 12px; border-color: transparent transparent transparent #fff; }
.nt { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; }
.nt strong { font-size: 16px; line-height: 1.45; }
.nt em, .nt i { color: var(--muted); font-style: normal; font-size: 13px; }
.about, .faq-block { margin-top: 28px; }
.about { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.about p, .faq details p, .article p { color: #334155; line-height: 1.9; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 750; }
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 22px; color: var(--muted); }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.crumb a { color: var(--red); text-decoration: none; }
.board {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 16px;
    margin: 12px 0;
}
.board .team { text-align: center; }
.board .team img { width: 72px; height: 72px; object-fit: contain; }
.board .team strong { display: block; margin-top: 8px; }
.board .mid { text-align: center; }
.board .mid em { color: var(--muted); font-style: normal; font-size: 13px; }
.m-score.big { font-size: 36px; margin: 6px 0; }
.signals, .lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 22px; }
.signals a, .lines a {
    display: flex; align-items: center; justify-content: center;
    min-height: 52px; border-radius: 12px; background: #172033; color: #fff;
    text-decoration: none; font-weight: 750;
}
.signals a:hover, .lines a:hover { background: var(--red); }
.cover img, .player { width: 100%; border-radius: 14px; background: #111; }
.player { max-height: 480px; margin: 8px 0 18px; }
.more-league a { color: var(--red); font-weight: 750; }
.detail { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 22px; align-items: start; }
.article { font-size: 17px; }
.article img { display: block; margin: 12px auto; border-radius: 12px; }
.byline { color: var(--muted); margin-top: 0; }
.site-foot { background: #141b2d; color: rgba(255,255,255,.78); padding: 28px 0 32px; }
.site-foot img { border-radius: 10px; }
.site-foot p { margin: 8px 0 0; }
@media (max-width: 860px) {
    .nav-btn { display: flex; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 14px 14px; }
    .nav-toggle:checked ~ .nav { display: block; }
    .nav ul { flex-direction: column; }
    .hero, .detail, .card-grid { grid-template-columns: 1fr; }
    .hero { padding: 22px; }
    .hero h1 { font-size: 40px; }
    .signals, .lines { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .match-row {
        grid-template-columns: 1fr auto;
        grid-template-areas: "meta state" "home score" "away score";
    }
    .m-meta { grid-area: meta; }
    .m-state { grid-area: state; }
    .m-home { grid-area: home; }
    .m-away { grid-area: away; justify-content: flex-start; }
    .m-score { grid-area: score; align-self: center; }
    .board .team img { width: 52px; height: 52px; }
    .m-score.big { font-size: 26px; }
    h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .st.live:before { animation: none; }
}
