:root {
    /* Brand Theme Colors */
    --bg-color: #f5f5f5;
    --surface-color: #fff;
    --text-primary: #333;
    --text-secondary: #666;
    --border-color: #e0e0e0;
    --accent-primary: #e77917;
    /* Main orange */
    --live-color: #d32f2f;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(231, 121, 23, 0.2);
    --glass-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 0;
    background: var(--glass-bg);
    border-bottom: 2px solid var(--accent-primary);
    box-shadow: var(--glass-shadow);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    transition: color 0.2s ease;
    padding: 5px 0;
    text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-primary);
}

/* Layout */
.main-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

/* Main Content Area */
.main-content {
    width: 100%;
}

.live-scores-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 10px;
}

.live-scores-header h2 {
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-primary);
    text-transform: uppercase;
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: var(--live-color);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(211, 47, 47, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

.filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: var(--surface-color);
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.widget img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Scores Board */
.scores-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.league-group {
    margin-bottom: 10px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.league-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-color);
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 15px;
    color: var(--accent-primary);
    text-transform: uppercase;
}

.league-header img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.match-card {
    display: grid;
    grid-template-columns: 60px 1fr 80px 1fr 40px;
    align-items: center;
    padding: 12px 15px;
    border-top: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.match-card:first-child {
    border-top: none;
}

.match-card:hover {
    background: #fafafa;
}

.match-time {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.match-time.live {
    color: var(--live-color);
}

.team {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}

.team.home {
    justify-content: flex-end;
    text-align: right;
}

.team.away {
    justify-content: flex-start;
}

.team img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.score {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-primary);
}

.match-status {
    text-align: right;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Loader */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 20px 0;
    background-color: var(--text-primary);
    color: var(--surface-color);
    font-size: 14px;
}

.site-footer .disclaimer {
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 992px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .match-card {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
        padding: 15px;
    }

    .team {
        justify-content: center !important;
    }

    .team.home {
        flex-direction: row-reverse;
    }

    .score {
        font-size: 22px;
    }

    .match-status,
    .match-time {
        text-align: center;
    }

    .main-nav {
        display: none;
    }
}