 :root {
            --primary-color: #9b87f5;
            --secondary-color: #718096;
            --background-color: #0a0c10;
            --card-background: #1a1e24;
            --text-color: #e2e8f0;
            --secondary-text-color: #a0aec0;
        }

        body, html {
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
            background-color: var(--background-color);
            color: var(--text-color);
            font-size: 14px;
            line-height: 1.5;
        }

        .container {
            max-width: 600px;
            margin: 0 auto;
            padding: 16px;
        }

        h1, h2 {
            color: var(--text-color);
            font-weight: 600;
            text-align: left;
            margin-bottom: 16px;
            text-transform: none;
            letter-spacing: normal;
        }

        h1 {
            font-size: 24px;
        }

        h2 {
            font-size: 20px;
            margin-top: 24px;
        }

        .match-card, .no-matches {
            background-color: var(--card-background);
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
            margin-bottom: 12px;
            padding: 12px;
        }

        .match-card {
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .match-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
        }

        .no-matches {
            text-align: center;
            color: var(--secondary-text-color);
            font-style: italic;
        }

        .match-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .league-name {
            font-size: 12px;
            color: var(--secondary-text-color);
            font-weight: 400;
        }

        .match-time {
            font-size: 12px;
            font-weight: 400;
            color: var(--primary-color);
        }

        .match-teams {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .team {
            display: flex;
            align-items: center;
            flex: 1;
        }

        .team-logo {
            width: 24px;
            height: 24px;
            object-fit: contain;
        }

        .team-name {
            font-size: 14px;
            font-weight: 400;
            margin: 0 8px;
        }

        .score-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            min-width: 60px;
        }

        .score {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .team-score {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-color);
        }

        .score-divider {
            margin: 0 4px;
        }

        .match-status {
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            margin-top: 4px;
        }

        .finished {
            color: var(--secondary-color);
        }

        .upcoming {
            color: var(--primary-color);
        }

        .live {
            color: #e53e3e;
        }

        .home-team {
            text-align: right;
            justify-content: flex-end;
        }

        .away-team {
            text-align: left;
            justify-content: flex-start;
        }

        .match-date-time {
            font-size: 12px;
            color: var(--secondary-text-color);
            margin-bottom: 4px;
            text-align: center;
        }

        .vs {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-color);
        }

        @media (max-width: 480px) {
            .container {
                padding: 12px;
            }
            h1 {
                font-size: 20px;
            }
            .match-card {
                padding: 10px;
            }
        }
       /* Top Navigation Bar Styles */
        
.top-header {
            background-color: var(--card-background);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
        }

        .top-header .logo {
            font-size: 18px;
            font-weight: 600;
            color: var(--primary-color);
        }

        .top-header .nav-items {
            display: flex;
            align-items: center;
        }

        .top-header .nav-item {
            color: var(--secondary-text-color);
            text-decoration: none;
            margin-left: 16px;
            font-size: 14px;
            transition: color 0.2s ease;
        }

        .top-header .nav-item.active {
            color: var(--primary-color);
        }

        .sidebar-btn {
            display: none;
            cursor: pointer;
            background: none;
            border: none;
        }

        .sidebar-btn svg {
            width: 24px;
            height: 24px;
            fill: var(--secondary-text-color);
        }

        .sidebar {
            position: fixed;
            top: 0;
            left: -250px;
            width: 250px;
            height: 100%;
            background-color: var(--card-background);
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
            transition: left 0.3s ease;
            z-index: 1001;
        }

        .sidebar.open {
            left: 0;
        }

        .sidebar .nav-items {
            padding: 16px;
        }

        .sidebar .nav-item {
            display: block;
            color: var(--secondary-text-color);
            text-decoration: none;
            margin-bottom: 12px;
            font-size: 14px;
            transition: color 0.2s ease;
        }

        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: var(--card-background);
            display: none;
            justify-content: space-around;
            padding: 10px 0;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
            z-index: 1000;
        }

        /* Add these new styles for better iOS compatibility */
        @supports (-webkit-touch-callout: none) {
            .bottom-nav {
                padding-bottom: calc(10px + env(safe-area-inset-bottom));
            }
        }

        .bottom-nav .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: var(--secondary-text-color);
            text-decoration: none;
            font-size: 12px;
        }

        .bottom-nav .nav-item svg {
            width: 24px;
            height: 24px;
            margin-bottom: 4px;
        }

        .bottom-nav .nav-item.active {
            color: var(--primary-color);
        }

        .bottom-nav .nav-item.active svg {
            fill: var(--primary-color);
        }

        /* Main content container */
        .container {
            padding-top: 72px; /* Adjust based on your top header height */
            padding-left: 16px;
            padding-right: 16px;
            padding-bottom: 70px; /* Adjust based on your bottom nav height */
            max-width: 800px;
            margin: 0 auto;
        }

        @media (max-width: 768px) {
            .top-header .nav-items {
                display: none;
            }

            .sidebar-btn {
                display: block;
            }

            .sidebar {
                display: block;
            }

            .bottom-nav {
                display: flex;
            }
        }

            .container {
                padding-left: 16px;
                padding-right: 16px;
            }
        }

        @media (min-width: 769px) {
            .sidebar-btn,
            .sidebar,
            .bottom-nav {
                display: none;
            }
        }
        .match-timer {
            font-size: 14px;
            font-weight: bold;
            color: #50e61e;
            margin-top: 4px;
        }

/* Existing styles for larger screens */
h2 {
    position: relative;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 0;
    padding: 12px 16px;
    background-color: var(--primary-color);
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    line-height: 1.2;
}

h2::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 25%;
    background-color: var(--card-background);
    transform: skew(-15deg);
    transform-origin: top right;
}

h2 span {
    position: relative;
    z-index: 1;
}

/* Updated styles for mobile devices */
@media (max-width: 768px) {
    h2 {
        font-size: 14px;
        padding: 8px 12px;
        letter-spacing: 0.3px;
    }

    h2::after {
        width: 20%;
    }
}

/* Further optimized for very small screens */
@media (max-width: 480px) {
    h2 {
        font-size: 12px;
        padding: 6px 10px;
        letter-spacing: 0.2px;
    }

    h2::after {
        width: 15%;
    }
}

#live-matches-container,
#upcoming-matches-container,
#finished-matches-container {
    background-color: var(--card-background);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

#live-matches-list,
#upcoming-matches-list,
#finished-matches-list {
    padding: 12px;
}

.match-card {
    margin-bottom: 8px;
}

.match-card:last-child {
    margin-bottom: 10px;
}

.no-matches {
    margin: 8px 0;
}
