:root {
    --bg: #071018;
    --bg2: #0c1926;
    --card: #102233;
    --line: rgba(228, 192, 122, .28);
    --gold: #e4c07a;
    --gold-2: #8d6b34;
    --text: #f4f7fb;
    --muted: #93a4b8;
    --live: #ff5d6c;
    --ok: #3ddc97;
    --shadow: 0 18px 50px rgba(0, 0, 0, .28);
    --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    font-family: var(--font);
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(228, 192, 122, .16), transparent 55%),
        radial-gradient(900px 480px at -10% 20%, rgba(61, 220, 151, .08), transparent 50%),
        var(--bg);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.top {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(7, 16, 24, .86);
    border-bottom: 1px solid var(--line);
}
.top-row, .subnav, main, .foot { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: .04em; color: var(--gold); }
.nav, .subnav { display: flex; gap: 8px; overflow-x: auto; }
.nav a, .subnav a, .hot-row a {
    flex: none;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 14px;
}
.nav a.on, .nav a:hover, .subnav a:hover, .hot-row a:hover {
    color: var(--text);
    border-color: var(--line);
    background: rgba(228, 192, 122, .08);
}
.subnav { padding-bottom: 12px; }
.hero { padding: 54px 0 20px; }
.kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--gold); letter-spacing: .16em; font-size: 13px; }
.hero-title { margin: 0; font-size: clamp(46px, 7vw, 84px); line-height: 1.05; letter-spacing: .06em; }
.hero-sub { max-width: 720px; color: var(--muted); font-size: 18px; }
.chips, .hot-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    border: 1px solid var(--line);
    color: var(--gold);
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(228, 192, 122, .06);
}
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 160px)); gap: 12px; margin: 22px 0 0; }
.stats div { border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; background: rgba(16, 34, 51, .7); }
.stats dt { color: var(--muted); font-size: 13px; }
.stats dd { margin: 0; font-size: 28px; font-variant-numeric: tabular-nums; }
.block { margin: 28px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sec-head h2, .sheet h1, .day { margin: 0; font-weight: 650; }
.sec-head a { color: var(--gold); font-size: 14px; }
.topic-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.topic-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 180px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(228, 192, 122, .12), rgba(16, 34, 51, .4));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.topic-card strong { font-size: 18px; }
.topic-card span, .topic-card em { color: var(--muted); font-style: normal; font-size: 13px; }
.board { display: flex; flex-direction: column; gap: 8px; }
.match {
    display: grid;
    grid-template-columns: 72px 88px minmax(0, 1fr) 84px minmax(0, 1fr) 92px;
    grid-template-areas: "when league home score away state";
    gap: 8px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .04);
}
.match:hover { border-color: var(--line); transform: translateY(-1px); }
.when, .league, .side, .score, .state { min-width: 0; }
.when { grid-area: when; }
.league { grid-area: league; color: var(--gold); font-size: 13px; }
.side { grid-area: home; display: flex; align-items: center; gap: 8px; }
.side.away { grid-area: away; justify-content: flex-end; }
.score { grid-area: score; text-align: center; font-size: 20px; font-variant-numeric: tabular-nums; }
.state { grid-area: state; justify-self: end; font-size: 13px; color: var(--muted); }
.when b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.when small, .stamp, .fine, .half { color: var(--muted); }
.side em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side img, .side i, .scoreboard img, .scoreboard i {
    width: 36px; height: 36px; border-radius: 50%; object-fit: contain; background: #fff;
    display: grid; place-items: center; flex: none; color: #1b2836; font-style: normal; font-weight: 700;
}
.side i, .scoreboard i { background: #1b3348; color: var(--gold); }
.state.live { color: var(--live); }
.state.live::before {
    content: "";
    display: inline-block;
    width: 7px; height: 7px; margin-right: 6px; border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 0 0 rgba(255, 93, 108, .7);
    animation: pulse 1.6s infinite;
}
.state.finished { color: var(--ok); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.text-card, .sheet, .faq details {
    display: flex; flex-direction: column; gap: 4px;
    padding: 14px 16px; border-radius: 16px;
    background: var(--card); border: 1px solid rgba(255, 255, 255, .04);
}
.text-card small, .text-card span { color: var(--muted); }
.text-card span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sheet { padding: 28px; margin-top: 22px; }
.sheet h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.25; }
.prose { color: #d5deea; }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin: 18px 0; }
.scoreboard > div { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.scoreboard .mid b { font-size: 42px; font-variant-numeric: tabular-nums; }
.signals { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.signals a, .pager a, .pager span {
    border-radius: 999px; padding: 8px 14px; border: 1px solid var(--line); color: var(--gold);
}
.crumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); padding-top: 18px; font-size: 14px; }
.crumb a { color: var(--gold); }
.day { margin: 18px 0 8px; }
.faq details summary { cursor: pointer; font-weight: 650; }
.faq details p { color: var(--muted); }
.about p { color: #d5deea; }
.empty { color: var(--muted); padding: 18px; border: 1px dashed var(--line); border-radius: 16px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.foot { padding: 28px 0 40px; color: var(--muted); border-top: 1px solid rgba(255,255,255,.06); }
.friends { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.friends span { color: var(--text); }
@keyframes pulse {
    70% { box-shadow: 0 0 0 8px rgba(255, 93, 108, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 93, 108, 0); }
}
@media (max-width: 980px) {
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    .match {
        grid-template-columns: 64px 1fr auto;
        grid-template-areas:
            "when league state"
            "home score away";
    }
    .side.away { justify-content: flex-start; }
    .stats { grid-template-columns: repeat(3, 1fr); }
    .hero { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .match, .state.live::before { animation: none; transition: none; }
}
