*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --red: #C8102E;
    --red-dark: #9B0C24;
    --navy: #1B3A5C;
    --gold: #FFB800;
    --white: #FFFFFF;
    --gray-50: #F8F9FB;
    --gray-100: #EEF1F5;
    --gray-200: #DDE3EA;
    --gray-500: #6B7A8D;
    --gray-800: #2D3748;
    --live: #E53E3E;
    --win: #38A169;
    --shadow: 0 2px 12px rgba(27, 58, 92, 0.08);
    --shadow-lg: 0 8px 32px rgba(27, 58, 92, 0.12);
    --radius: 10px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans SC', system-ui, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Ticker */
.ticker-bar {
    background: var(--navy);
    color: var(--white);
    font-size: 0.82rem;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    animation: ticker 40s linear infinite;
    padding: 8px 0;
}

.ticker-item {
    padding: 0 28px;
    border-right: 1px solid rgba(255,255,255,0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ticker-item .live-badge {
    background: var(--live);
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 700;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Header */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--navy);
}

.brand img { width: 42px; height: 42px; }
.brand em { font-style: normal; color: var(--red); }

.main-nav { display: flex; gap: 4px; list-style: none; }

.main-nav a {
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-500);
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--red);
    background: rgba(200, 16, 46, 0.06);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}

.nav-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy);
}

/* Banner */
.banner {
    background: linear-gradient(135deg, var(--navy) 0%, #2E5A8A 50%, var(--red-dark) 100%);
    color: var(--white);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '⚽';
    position: absolute;
    right: -20px;
    top: -30px;
    font-size: 220px;
    opacity: 0.06;
}

.banner-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.banner-tag {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.banner h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 16px;
}

.banner p {
    font-size: 1.05rem;
    opacity: 0.88;
    margin-bottom: 28px;
    max-width: 480px;
}

.banner-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200,16,46,0.35); }

.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--gray-100); }

.banner-panel {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    padding: 24px;
}

.banner-panel h3 {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 16px;
    font-weight: 500;
}

.highlight-match {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hm-team { text-align: center; flex: 1; }
.hm-team .icon { font-size: 2rem; margin-bottom: 6px; }
.hm-team .name { font-weight: 700; font-size: 0.95rem; }
.hm-score { font-size: 2.4rem; font-weight: 900; color: var(--gold); letter-spacing: 3px; }
.hm-time { font-size: 0.8rem; opacity: 0.7; text-align: center; margin-top: 4px; }

/* Section */
.section { padding: 56px 0; }
.section-white { background: var(--white); }

.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.sec-head h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
}

.sec-head h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--red);
    border-radius: 2px;
    margin-right: 10px;
    vertical-align: middle;
}

.sec-head p { color: var(--gray-500); font-size: 0.9rem; margin-top: 4px; }

.link-more {
    color: var(--red);
    font-weight: 600;
    font-size: 0.9rem;
}

.link-more:hover { text-decoration: underline; }

/* League pills */
.league-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.pill {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
}

.pill.active, .pill:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

/* Score table */
.score-board {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.score-row {
    display: grid;
    grid-template-columns: 100px 1fr 90px 1fr 120px;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
    transition: background 0.15s;
}

.score-row:hover { background: var(--gray-50); }
.score-row:last-child { border-bottom: none; }

.sr-league { font-size: 0.78rem; color: var(--gray-500); }
.sr-league strong { display: block; color: var(--navy); font-size: 0.85rem; }
.sr-team { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sr-team.right { flex-direction: row-reverse; text-align: right; }
.sr-score { text-align: center; font-weight: 800; font-size: 1.15rem; color: var(--red); }
.sr-status { text-align: right; font-size: 0.78rem; }
.sr-status.live { color: var(--live); font-weight: 700; }

/* Cards grid */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.info-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.info-card .ic-icon { font-size: 2rem; margin-bottom: 12px; }
.info-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.info-card p { font-size: 0.88rem; color: var(--gray-500); }

/* News magazine */
.news-mag { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.news-big {
    grid-row: span 2;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.news-big .nb-cover {
    height: 240px;
    background: linear-gradient(135deg, var(--navy), var(--red));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.news-big .nb-body { padding: 22px; }
.news-big h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; line-height: 1.4; }
.news-big p { font-size: 0.9rem; color: var(--gray-500); }

.news-sm {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    display: flex;
    gap: 14px;
    transition: box-shadow 0.2s;
}

.news-sm:hover { box-shadow: var(--shadow-lg); }
.news-sm .ns-thumb {
    width: 80px; height: 80px;
    border-radius: 8px;
    background: var(--gray-100);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.news-sm h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; line-height: 1.35; }
.news-sm .ns-meta { font-size: 0.78rem; color: var(--gray-500); }

.tag {
    display: inline-block;
    background: rgba(200,16,46,0.08);
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
}

/* Rank table */
.rank-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.rank-table th, .rank-table td {
    padding: 11px 14px;
    text-align: center;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--gray-100);
}

.rank-table th {
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    font-size: 0.8rem;
}

.rank-table td:first-child, .rank-table th:first-child { text-align: center; width: 50px; }
.rank-table td:nth-child(2), .rank-table th:nth-child(2) { text-align: left; }
.rank-table tr:hover td { background: var(--gray-50); }

.pos { font-weight: 800; }
.pos-1 { color: var(--gold); }
.pos-2 { color: #A0AEC0; }
.pos-3 { color: #C08040; }

/* Page hero inner */
.page-hero {
    background: linear-gradient(135deg, var(--navy), #2E5A8A);
    color: var(--white);
    padding: 44px 0;
}

.page-hero h1 { font-size: 2rem; font-weight: 900; margin-bottom: 8px; }
.page-hero p { opacity: 0.85; }
.crumb { font-size: 0.82rem; opacity: 0.65; margin-bottom: 12px; }
.crumb a:hover { color: var(--gold); }

/* Two column layout */
.layout-2col {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    padding: 40px 0;
}

.sidebar-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-box h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--navy);
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--red);
}

.sb-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.88rem;
}

.sb-item:last-child { border-bottom: none; }
.sb-num { font-weight: 800; color: var(--red); min-width: 18px; }

/* Guide articles */
.guide-list { display: flex; flex-direction: column; gap: 20px; }

.guide-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
}

.guide-item h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.guide-item p { font-size: 0.92rem; color: var(--gray-500); margin-bottom: 8px; }
.guide-item ul { padding-left: 20px; color: var(--gray-500); font-size: 0.9rem; }
.guide-item li { margin-bottom: 4px; }

.guide-featured {
    background: linear-gradient(135deg, var(--navy), #2E5A8A);
    color: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
}

.guide-featured h2 { font-size: 1.4rem; margin-bottom: 12px; }
.guide-featured p { opacity: 0.88; font-size: 0.95rem; }

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.stat-box {
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}

.stat-box .num { font-size: 1.4rem; font-weight: 900; color: var(--gold); }
.stat-box .lbl { font-size: 0.75rem; opacity: 0.7; margin-top: 2px; }

/* Footer */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    padding: 48px 0 24px;
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

.footer-grid h4 { color: var(--gold); font-size: 0.92rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { font-size: 0.85rem; transition: color 0.2s; }
.footer-grid a:hover { color: var(--white); }

.footer-brand p { font-size: 0.85rem; margin-top: 12px; max-width: 260px; line-height: 1.6; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 960px) {
    .banner-grid { grid-template-columns: 1fr; }
    .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .news-mag { grid-template-columns: 1fr; }
    .news-big { grid-row: auto; }
    .layout-2col { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .score-row { grid-template-columns: 1fr; gap: 8px; text-align: center; }
    .sr-team.right { flex-direction: row; text-align: left; }
}

@media (max-width: 640px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 12px;
        box-shadow: var(--shadow-lg);
    }
    .main-nav.open { display: flex; }
    .nav-btn { display: block; }
    .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
