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

:root {
    --primary: #0B3D2E;
    --primary-light: #145A43;
    --accent: #D4AF37;
    --accent-hover: #E8C547;
    --bg-dark: #071F17;
    --bg-card: #0F2E23;
    --bg-light: #F4F7F5;
    --text-white: #FFFFFF;
    --text-muted: #A8BFB4;
    --text-dark: #1A2E26;
    --border: rgba(212, 175, 55, 0.2);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    --radius: 12px;
    --live-red: #FF4757;
    --win-green: #2ED573;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 31, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-brand img {
    width: 40px;
    height: 40px;
}

.nav-brand span {
    background: linear-gradient(135deg, var(--accent), #F5E6A3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    background: rgba(212, 175, 55, 0.1);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #B8960C);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Hero */
.hero {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(11, 61, 46, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-dark) 0%, var(--primary) 100%);
    z-index: 0;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--live-red);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    margin-right: 6px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Sections */
.section {
    padding: 70px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.section-title span {
    color: var(--accent);
}

.section-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 6px;
}

/* Match Cards */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(212, 175, 55, 0.4);
}

.match-league {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.league-tag {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.match-status {
    font-size: 0.8rem;
}

.match-status.live {
    color: var(--live-red);
    font-weight: 600;
}

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

.team {
    flex: 1;
    text-align: center;
}

.team-flag {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 8px;
}

.team-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.match-score {
    text-align: center;
    min-width: 80px;
}

.score-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 4px;
}

.match-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.match-odds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.odd-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.odd-label {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.odd-value {
    font-weight: 700;
    color: var(--accent);
    margin-top: 2px;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.35);
}

.news-img {
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.news-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 31, 23, 0.6), transparent);
}

.news-body {
    padding: 20px;
}

.news-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.news-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Standings Table */
.standings-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.standings-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.tab-btn {
    padding: 14px 24px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th,
.standings-table td {
    padding: 12px 16px;
    text-align: center;
    font-size: 0.9rem;
}

.standings-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8rem;
}

.standings-table td:first-child,
.standings-table th:first-child {
    text-align: left;
}

.standings-table tr:hover td {
    background: rgba(212, 175, 55, 0.05);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.rank-1 { background: #FFD700; color: #000; }
.rank-2 { background: #C0C0C0; color: #000; }
.rank-3 { background: #CD7F32; color: #000; }
.rank-other { background: rgba(255,255,255,0.08); }

.team-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Page Header */
.page-header {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--bg-dark) 100%);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.breadcrumb a:hover {
    color: var(--accent);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* Match List Page */
.match-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.match-row {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    align-items: center;
    transition: all 0.2s;
}

.match-row:hover {
    border-color: rgba(212, 175, 55, 0.35);
}

.match-row-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.match-row-teams {
    display: flex;
    align-items: center;
    gap: 20px;
}

.match-row-team {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.match-row-team.away {
    flex-direction: row-reverse;
    text-align: right;
}

.match-row-score {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    min-width: 70px;
    text-align: center;
}

.match-row-odds {
    display: flex;
    gap: 8px;
}

/* News Page */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.news-featured {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
}

.news-featured-img {
    height: 300px;
    background: linear-gradient(135deg, var(--primary-light), var(--bg-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.news-featured-body {
    padding: 28px;
}

.news-featured-body h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.news-list-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.news-list-thumb {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.news-list-content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    line-height: 1.4;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--accent);
}

.hot-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
}

.hot-rank {
    font-weight: 800;
    color: var(--accent);
    min-width: 20px;
}

.analysis-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.analysis-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.analysis-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.analysis-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.analysis-stat {
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.analysis-stat .val {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.analysis-stat .lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 40px;
}

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 14px;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: var(--accent);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-disclaimer {
    font-size: 0.78rem;
    color: rgba(168, 191, 180, 0.6);
    max-width: 600px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .news-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }

    .match-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .match-row { grid-template-columns: 1fr; }
    .match-row-odds { justify-content: center; }
    .hero-stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
