:root {
    --bg: #071018;
    --panel: #101b2b;
    --line: #24384c;
    --gold: #d7b15a;
    --gold-2: #f2d48a;
    --text: #e7eef6;
    --muted: #8ea0b5;
    --live: #ff6a45;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(900px 380px at 8% -10%, rgba(215, 177, 90, .16), transparent 55%),
        linear-gradient(180deg, #0c1826 0%, var(--bg) 320px);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.3; font-weight: 650; }
h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: .2rem 0 .6rem; }
h2 { font-size: 1.25rem; margin: 1.6rem 0 .8rem; }
h2 img { display: inline-block; vertical-align: -4px; margin-right: .35rem; }
.skip {
    position: absolute;
    left: -999px;
    top: 0;
}
.skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 30;
    background: var(--gold);
    color: #1a1408;
    padding: .4rem .8rem;
}
.top {
    position: sticky;
    top: 0;
    z-index: 20;
    border-top: 3px solid var(--gold);
    background: rgba(8, 17, 28, .92);
    backdrop-filter: blur(16px);
}
.top-in, .strip-in, main, .foot-in {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}
.top-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
}
.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .04em;
}
.nav { display: flex; gap: .2rem; flex-wrap: wrap; }
.nav a, .strip a {
    text-decoration: none;
    color: var(--muted);
    padding: .35rem .7rem;
    border-radius: 999px;
}
.nav a[aria-current="page"], .strip a[aria-current="page"] {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
}
.strip {
    border-top: 1px solid rgba(255, 255, 255, .05);
    padding: .45rem 0 .7rem;
}
.strip-in { display: flex; gap: .4rem; overflow: auto; }
.strip a { border: 1px solid var(--line); white-space: nowrap; }
.strip a.is-focus { border-color: var(--gold); color: var(--gold-2); }
main { padding: 1.4rem 0 3rem; }
.hero {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 1.2rem;
    align-items: end;
    margin-bottom: 1rem;
}
.eyebrow {
    margin: 0;
    color: var(--gold);
    letter-spacing: .16em;
    font-size: .78rem;
}
.lede { color: var(--muted); max-width: 42rem; }
.gold-btn {
    display: inline-block;
    background: var(--gold);
    color: #1a1408;
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
    padding: .65rem 1.1rem;
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    margin: 0;
}
.stats div {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: .8rem .9rem;
}
.stats dt { color: var(--muted); font-size: .82rem; }
.stats dd {
    margin: .15rem 0 0;
    font-size: 1.7rem;
    font-variant-numeric: tabular-nums;
}
.fresh { color: var(--muted); font-size: .88rem; }
.sec-h {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}
.sec-h a { color: var(--gold-2); }
.board {
    background: rgba(16, 27, 43, .86);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}
.board-h, .match {
    display: grid;
    grid-template-columns: 4.2rem 4.6rem minmax(0, 1fr) 4.6rem minmax(0, 1fr) 4.4rem;
    gap: .45rem;
    align-items: center;
}
.board-h {
    padding: .55rem 1rem;
    color: var(--muted);
    font-size: .78rem;
    letter-spacing: .08em;
}
.match {
    padding: .8rem 1rem;
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, .05);
}
.match:hover { background: rgba(215, 177, 90, .06); }
.m-time, .m-score { font-variant-numeric: tabular-nums; }
.m-score { text-align: center; font-weight: 700; color: var(--gold-2); }
.m-league, .m-state { color: var(--muted); font-size: .86rem; }
.m-team { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.m-home { justify-content: flex-end; }
.m-team em {
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-team img,
.sides img {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    max-width: none;
    object-fit: contain;
    object-position: center;
    background: transparent;
}
.is-live .m-state { color: var(--live); }
.is-live .m-state::before {
    content: "";
    display: inline-block;
    width: .45rem;
    height: .45rem;
    margin-right: .3rem;
    border-radius: 50%;
    background: var(--live);
}
.empty, .fine { color: var(--muted); }
.more { margin-top: .8rem; }
.dates { display: flex; gap: .45rem; overflow: auto; margin: 1rem 0; }
.dates a {
    flex: 0 0 auto;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: .4rem .7rem;
    text-align: center;
    min-width: 4.2rem;
}
.dates a b { display: block; font-weight: 650; }
.dates a small { color: var(--muted); }
.dates a.is-on { border-color: var(--gold); color: var(--gold-2); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.cards a {
    display: block;
    text-decoration: none;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: .85rem 1rem;
}
.cards b { display: block; }
.cards small { color: var(--muted); }
.crumb { color: var(--muted); font-size: .9rem; }
.crumb a { color: var(--gold-2); margin-right: .35rem; }
.crumb span { margin-left: .35rem; }
.prose { max-width: 46rem; }
.prose p { margin: .8rem 0; }
.prose a { color: var(--gold-2); }
.fact {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem .8rem;
}
.fact li {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .55rem .75rem;
}
.fact span { display: block; color: var(--muted); font-size: .78rem; }
.big-score {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--gold-2);
    font-variant-numeric: tabular-nums;
}
.sides { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }
.sides div { display: flex; align-items: center; gap: .6rem; }
.sides img { width: 72px; height: 72px; }
.signals { display: flex; gap: .7rem; flex-wrap: wrap; }
.signals a {
    background: var(--gold);
    color: #1a1408;
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
    padding: .7rem 1.15rem;
}
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: .9rem 0; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); }
.faq[open] summary::after { content: "–"; }
.turn {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
    margin-top: 1.5rem;
}
.turn a, .turn span {
    display: block;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: .8rem;
    background: var(--panel);
}
.turn small { display: block; color: var(--muted); }
.pager { display: flex; gap: .8rem; align-items: center; margin-top: 1rem; }
.pager a { color: var(--gold-2); }
.foot {
    border-top: 1px solid var(--line);
    padding: 1.4rem 0 2rem;
    color: var(--muted);
}
.friends { display: flex; flex-wrap: wrap; gap: .35rem .8rem; }
.friends a { color: var(--text); }
.miss { padding: 12vh 0; }
@media (max-width: 800px) {
    .hero, .fact, .turn { grid-template-columns: 1fr; }
    .top-in { align-items: flex-start; flex-direction: column; padding: .7rem 0; }
    .board-h { display: none; }
    .match {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "time league state"
            "home score away";
    }
    .m-time { grid-area: time; }
    .m-league { grid-area: league; }
    .m-state { grid-area: state; justify-self: end; }
    .m-home { grid-area: home; }
    .m-score { grid-area: score; }
    .m-away { grid-area: away; }
    .m-team em { max-width: 6.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; animation: none !important; }
}
