body {
    margin: 0;
    background-color: #000;
    color: #fff;
    font-family: 'Segoe UI', sans-serif
}

.site-header {
    background: #111;
    padding: 20px 20px;
    color: #fff;
    position: sticky;
    top: 0;
    border-bottom: 1px solid #222;
    z-index: 1000
}

.header-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between
}

.site-name {
    font-size: 26px;
    font-weight: bold;
    color: #22c55e
}

.nav-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 0
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background .3s ease, color .3s ease;
    font-weight: 500
}

.nav-links a:hover {
    background: #333;
    color: #fff;
    border: 1px solid #444;
}

.main-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: #111;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid #222
}

#matches-wrapper {
    flex: 1 1 auto
}

.row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: nowrap
}

.match-card {
    background: #222;
    color: #fff;
    border-radius: 10px;
    padding: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 1px solid #333
}

.match-card .team {
    display: flex;
    align-items: center;
    margin-bottom: 10px
}

.match-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 10px
}

.match-card .countdown {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
    background: #444;
    border: 1px solid #555
}

.match-card .league {
    font-size: 13px;
    background: #444;
    color: #fff;
    padding: 4px 8px;
    border-radius: 20px;
    margin-top: 10px;
    display: inline-block;
    border: 1px solid #555;
    font-weight: bold;
    width: 8%;
    text-align: center
}

.sidebar-box {
    flex-basis: 150px;
    padding: 20px;
    color: #fff;
    border-radius: 8px;
    height: fit-content;
    font-size: 14px
}

.sidebar-box h2 {
    margin-top: 0;
    color: #007bff;
    font-size: 20px
}

@media(max-width:768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
        margin-top: 10px
    }

    .nav-links a {
        font-size: 14px;
        padding: 6px 10px
    }

    .main-wrapper {
        flex-direction: column;
        padding: 20px 16px;
        gap: 16px;
        max-width: 100%
    }

    #matches-wrapper {
        width: 89%;
        flex: none;
        min-width: auto
    }

    .sidebar-box {
        width: 100%;
        flex-basis: auto;
        padding: 15px 10px;
        font-size: 13px;
        margin-top: 20px
    }

    .row {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 16px
    }

    .match-card {
        width: 100%
    }

    .match-card .league {
        width: auto;
        text-align: start;
        width: 16%;
        padding: 4px 8px
    }

    .site-name {
        font-size: 22px
    }
}

@media(max-width:480px) {
    .nav-links a {
        font-size: 13px;
        padding: 5px 8px
    }

    .match-card img {
        width: 30px;
        height: 30px
    }

    .match-card .countdown {
        font-size: 12px;
        padding: 3px 8px
    }

    .sidebar-box h2 {
        font-size: 18px
    }
}