:root {
    --primary-color: #ff7d00;
    --secondary-color: #1b1b1b;
    --background-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

#main-content {
    display: none;
}

.headerjg {
    background: linear-gradient(135deg, var(--primary-color), #aa5404);
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.headerjg h1 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-top: 10px;
    color: #fff;
}

/* Calendar Slider */
.calendar-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    padding: 10px 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.calendar-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 10px;
    flex-grow: 1;
}

.calendar-slider::-webkit-scrollbar {
    display: none;
}

.date-item {
    flex: 0 0 auto;
    width: 65px;
    height: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -webkit-border-radius:;
    -moz-border-radius:;
    -ms-border-radius:;
    -o-border-radius:;
}

.date-item.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 177, 64, 0.4);
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
}

.date-item .day-name {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.date-item .day-number {
    font-size: 1.2rem;
    font-weight: 700;
    color:#fff;
    padding-top: 5px;
}

.date-item.active .day-name,
.date-item.active .day-number {
    color: #fff;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 10px;
}

/* Match Container */
.match-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
}

.selected-date-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    color:#fff;
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Match Card */
.match-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-left: 5px solid var(--primary-color);
    transition: transform 0.2s ease, background 0.2s ease;
}

.match-card:hover {
    transform: translateY(-2px);
    background: #252525;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.team-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

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

.match-info {
    text-align: center;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.league-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-badge {
    background: #ff0000;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
    animation: pulse 2s infinite;
}

.live-badge span {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.score-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.score {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
}

.score-divider {
    color: var(--primary-color);
    font-weight: 800;
}

.match-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.match-elapsed {
    font-size: 0.8rem;
    font-weight: 700;
    color: #facc15;
    margin-bottom: 2px;
}

.match-stadium {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .match-card {
        padding: 15px;
    }

    .team-logo {
        width: 40px;
        height: 40px;
    }

    .team-name {
        font-size: 0.8rem;
    }

    .match-time {
        font-size: 1.1rem;
    }
}

.loading,
.no-matches {
    text-align: center;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 15px;
    color: var(--text-muted);
    font-style: italic;
}

.loading {
    border: 2px dashed var(--primary-color);
}