:root {
    --bg0: #0a0e17;
    --bg1: #121a2b;
    --bg2: #1a2740;
    --panel: #152033;
    --panel-2: #1c2d48;
    --line: rgba(255, 140, 66, 0.18);
    --accent: #ff6b35;
    --accent-2: #00d4aa;
    --accent-soft: rgba(255, 107, 53, 0.16);
    --live: #ff3d6e;
    --text: #eef3ff;
    --muted: #9aa8c2;
    --dim: #6f7f9c;
    --ink: #ffffff;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    --radius: 14px;
    --font: "Trebuchet MS", "DIN Alternate", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(800px 420px at 8% -8%, rgba(255, 107, 53, 0.22), transparent 55%),
        radial-gradient(700px 380px at 92% 0%, rgba(0, 212, 170, 0.16), transparent 50%),
        radial-gradient(500px 360px at 50% 110%, rgba(56, 120, 255, 0.12), transparent 55%),
        linear-gradient(160deg, var(--bg0), var(--bg1) 48%, var(--bg2));
    background-attachment: fixed;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; transition: color .2s var(--ease), transform .25s var(--ease), border-color .2s, background .2s; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--accent);
    color: #fff;
    padding: 6px 10px;
    z-index: 20;
    border-radius: 8px;
}
.skip:focus { top: 8px; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(10, 14, 23, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), var(--accent), transparent);
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}
.bar { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: 22px;
    color: var(--ink);
}
.brand:hover { transform: translateY(-1px); }
.brand img,
.brand-logo {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    background: var(--panel-2);
    padding: 2px;
    border: 1px solid rgba(255, 107, 53, 0.45);
    object-fit: contain;
    box-shadow: 0 0 18px rgba(255, 107, 53, 0.35);
    display: block;
    flex: 0 0 auto;
}
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a, .sub a {
    color: var(--muted);
    padding: 7px 12px;
    border-radius: 10px;
}
.main-nav a:hover, .sub a:hover {
    color: var(--ink);
    background: rgba(255, 107, 53, 0.12);
    transform: translateY(-1px);
}
.main-nav a.on {
    color: #0a0e17;
    background: linear-gradient(135deg, var(--accent), #ff8f5a);
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.35);
}
.sub {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 12px;
    scrollbar-width: none;
}
.sub::-webkit-scrollbar { display: none; }
.sub a {
    flex: 0 0 auto;
    font-size: 13px;
    border: 1px solid var(--line);
    background: rgba(21, 32, 51, 0.75);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.sub a img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex: 0 0 auto;
}
.nav-btn {
    display: none;
    margin-left: auto;
    background: var(--panel);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 6px 14px;
    cursor: pointer;
}

.hero {
    padding: 40px 0 14px;
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 28px;
    align-items: center;
}
.hero-kicker, .kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-2);
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 8px;
}
.hero h1 {
    font-size: clamp(40px, 5.2vw, 64px);
    line-height: 1.08;
    margin: 0 0 12px;
    letter-spacing: 0.03em;
    font-weight: 800;
    background: linear-gradient(120deg, #fff 20%, #ffb088 55%, var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-lead {
    max-width: 36em;
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}
.hero-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(160deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.hero-stat {
    padding: 18px 16px 16px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background .25s var(--ease), transform .25s var(--ease);
}
.hero-stat:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: scale(1.02);
}
.hero-stat:nth-child(2n) { border-right: 0; }
.hero-stat:nth-child(n+3) { border-bottom: 0; }
.hero-stat b {
    display: block;
    font-size: 30px;
    line-height: 1.1;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.hero-stat span { color: var(--dim); font-size: 13px; }

.section { padding: 26px 0 6px; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.section-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.03em;
}
.section-head h2 img { width: 22px; height: 22px; }
.ornament {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--accent), #ff8f5a);
    display: inline-grid;
    place-items: center;
    box-shadow: 0 0 16px rgba(255, 107, 53, 0.4);
}
.ornament img { width: 15px; height: 15px; filter: brightness(10); }
.more { color: var(--accent-2); font-size: 14px; font-weight: 600; }
.more:hover { color: #7ff5d6; transform: translateX(2px); }

.hot-row, .match-grid { display: grid; gap: 0; }
.hot-row {
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 1fr);
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
}
.match-grid {
    background: linear-gradient(180deg, var(--panel), rgba(21, 32, 51, 0.92));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.league-block .match-grid {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.match-card, .news-card, .video-card, .board, .about, .faq, .league-block, .prose, .signals {
    background: linear-gradient(160deg, var(--panel), var(--panel-2));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.match-card {
    padding: 11px 14px 12px;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 140, 66, 0.12);
    box-shadow: none;
    background: transparent;
    transition: background .2s var(--ease), transform .25s var(--ease);
}
.match-grid > .match-card:last-child { border-bottom: 0; }
.match-card:hover {
    background: rgba(255, 107, 53, 0.08);
    transform: translateX(3px);
}
.hot-row .match-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--panel), var(--panel-2));
    box-shadow: var(--shadow);
}
.hot-row .match-card:hover {
    border-color: rgba(255, 107, 53, 0.55);
    transform: translateY(-4px) scale(1.01);
}
.match-top {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dim);
    font-size: 12px;
    flex-wrap: wrap;
}
.match-top .league { color: var(--accent); font-weight: 700; }
.match-top time { margin-right: auto; }
.badge {
    border-radius: 8px;
    padding: 2px 10px;
    background: var(--accent-soft);
    color: #ffc4a8;
    font-weight: 600;
}
.badge.live {
    color: #fff;
    background: linear-gradient(135deg, var(--live), #ff6b35);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 61, 110, 0.45); }
    50% { box-shadow: 0 0 0 8px rgba(255, 61, 110, 0); }
}
.badge.end { color: var(--dim); background: rgba(255, 255, 255, 0.06); font-weight: 500; }
.badge.wait { color: var(--accent-2); }
.teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}
.side {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.side.away { flex-direction: row-reverse; text-align: right; }
.side .name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 650;
}
.team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px;
    flex: 0 0 auto;
    transition: transform .25s var(--ease);
}
.match-card:hover .team-logo { transform: scale(1.08) rotate(-3deg); }
.score {
    display: flex;
    align-items: center;
    gap: 6px;
    font-variant-numeric: tabular-nums;
    min-width: 72px;
    justify-content: center;
}
.score b { font-size: 22px; color: var(--ink); }
.score i { font-style: normal; color: var(--dim); }

.feed { display: grid; gap: 10px; }
.news-card, .video-card { padding: 14px 16px; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.news-card:hover, .video-card:hover {
    border-color: rgba(0, 212, 170, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}
.news-card h3, .video-card h3 {
    margin: 4px 0 6px;
    font-size: 16px;
    line-height: 1.45;
}
.news-card p, .video-card p { margin: 0; color: var(--muted); font-size: 13px; }
.meta { color: var(--dim); font-size: 12px; margin: 0; }
.article-meta { margin-top: 8px !important; }

.page-title { padding: 24px 0 8px; }
.page-title h1 { margin: 0 0 8px; font-size: 28px; }
.page-title p { margin: 0; color: var(--muted); max-width: 46em; }
.crumb {
    padding: 14px 0 0;
    color: var(--dim);
    font-size: 13px;
}
.crumb a { color: var(--accent-2); }
.crumb .sep { margin: 0 6px; opacity: 0.5; }
.dates, .tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0 16px;
}
.dates a, .tabs a {
    flex: 0 0 auto;
    padding: 6px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
}
.dates a.on, .tabs a.on {
    color: #0a0e17;
    background: linear-gradient(135deg, var(--accent), #ff8f5a);
    border-color: transparent;
    font-weight: 700;
}
.dates a:hover, .tabs a:hover { color: var(--ink); border-color: var(--accent); }
.count { color: var(--dim); font-size: 13px; margin: 0 0 10px; }
.league-block { padding: 14px; margin-bottom: 14px; }
.league-block h2 {
    margin: 0 0 10px;
    font-size: 17px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.league-block h2 a { color: var(--accent); }
.league-block h2 span:last-child { color: var(--dim); font-weight: 500; font-size: 13px; }

.about, .faq { padding: 20px 22px; margin: 22px auto; }
.about h2, .faq h2 { margin: 0 0 12px; font-size: 22px; }
.about h3 { margin: 16px 0 8px; font-size: 16px; color: #ffc4a8; }
.about p, .faq p { color: var(--muted); margin: 0 0 10px; }
.about a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.faq-item {
    padding: 12px 0;
    border-top: 1px solid var(--line);
    transition: padding-left .25s var(--ease);
}
.faq-item:hover { padding-left: 6px; }
.faq-item:first-of-type { border-top: 0; }
.faq-item h3 { margin: 0 0 6px; font-size: 16px; }

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 20px 0 8px;
}
.pager a, .pager span {
    min-width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel);
}
.pager a:hover { border-color: var(--accent); color: var(--ink); }
.pager .on {
    background: linear-gradient(135deg, var(--accent), #ff8f5a);
    color: #0a0e17;
    border-color: transparent;
    font-weight: 700;
}

.prose { padding: 20px 22px; margin: 16px auto 24px; color: var(--muted); }
.prose p { margin: 0 0 12px; }
.prose h2, .prose h3 { color: var(--ink); }
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 8px auto 24px;
    flex-wrap: wrap;
}
.article-nav a {
    color: var(--accent-2);
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    max-width: 48%;
}
.article-nav a:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.article-nav .muted { color: var(--dim); padding: 10px 0; }

.signals { padding: 16px; margin: 16px auto; }
.signals h2 { margin: 0 0 12px; font-size: 18px; }
.signal-row, .signal-list { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.signal, .signal-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 700;
}
.signal:hover, .signal-list a:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 24px rgba(255, 107, 53, 0.25);
}

.board { padding: 20px; margin: 16px auto; text-align: center; }
.board-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin: 16px 0;
}
.board-teams > div { display: grid; justify-items: center; gap: 8px; }
.board-teams strong { font-size: 18px; }
.board-score .nums {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
}
.board-score em {
    display: block;
    margin-top: 6px;
    font-style: normal;
    font-size: 13px;
    color: var(--accent-2);
}
.board-score em.live { color: var(--live); }
.half { color: var(--dim); font-size: 13px; }
.play-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.play-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel);
}
.play-list a:hover {
    border-color: var(--accent-2);
    transform: translateX(4px);
}

.empty {
    color: var(--dim);
    padding: 24px;
    text-align: center;
    margin: 0;
}

.site-foot {
    margin-top: 36px;
    padding: 28px 0 36px;
    border-top: 1px solid var(--line);
    background: rgba(10, 14, 23, 0.7);
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}
.site-foot .foot-name {
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
}
.site-foot p { margin: 6px 0; }
.friend-links a { color: var(--accent-2); margin: 0 2px; }
.friend-links a:hover { color: #7ff5d6; }

body.nav-open .main-nav { display: flex; }

@media (max-width: 900px) {
    .hero, .cols { grid-template-columns: 1fr; }
    .nav-btn { display: inline-flex; }
    .main-nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        flex-direction: column;
        padding: 10px;
        background: rgba(10, 14, 23, 0.96);
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: var(--shadow);
    }
    body.nav-open .main-nav { display: flex; }
    .hero h1 { font-size: 36px; }
    .hot-row { grid-auto-columns: minmax(260px, 80%); }
    .side .name { font-size: 13px; }
    .team-logo { width: 32px; height: 32px; }
    .score b { font-size: 18px; }
    .about, .faq, .prose { padding: 16px; }
    .article-nav { flex-direction: column; }
    .article-nav a { max-width: 100%; }
    .signal-row, .signal-list { grid-template-columns: 1fr; }
    .board-teams { gap: 8px; }
    .board-score .nums { font-size: 28px; }
}

@media (max-width: 480px) {
    .wrap { width: min(1120px, calc(100% - 20px)); }
    .brand { font-size: 18px; letter-spacing: 0.04em; }
    .hero { padding-top: 24px; }
    .hero-stat b { font-size: 24px; }
}
