/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #051610 0%, #080c10 100%);
    color: #f3f4f6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header & Navigation */
.header {
    background-color: rgba(6, 26, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 193, 88, 0.1);
    padding: 16px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: #e5c158; /* Trophy Gold */
}

/* Countdown Clock */
.countdown-container {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 30px;
}

.countdown-label {
    font-size: 11px;
    font-weight: 700;
    color: #a5b4fc;
    letter-spacing: 0.5px;
}

.timer {
    display: flex;
    gap: 12px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.time-block span {
    font-size: 18px;
    font-weight: 800;
    color: #e5c158;
}

.time-block label {
    font-size: 9px;
    color: #9ca3af;
    text-transform: uppercase;
    margin-top: -2px;
}

/* Nav links & Button */
.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav a {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}

.nav a:hover, .nav a.active {
    color: #e5c158;
}

.btn-nonton-top {
    background: linear-gradient(135deg, #e61e43 0%, #b0102b 100%);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 30, 67, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-nonton-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 30, 67, 0.5);
}

/* Marquee / Running Flags Bar */
.teams-marquee-wrapper {
    background-color: #072218;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee-scroll 45s linear infinite;
    gap: 40px;
}

.team-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #e5e7eb;
    white-space: nowrap;
}

.team-item img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Container */
.container {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 4%;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-bottom: 10px;
}

.section-header p {
    color: #9ca3af;
    font-size: 16px;
}

.section-header p span {
    color: #e61e43;
    font-weight: 600;
}

/* Match Grid & Cards */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.loading-matches-indicator {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 16px;
    color: #9ca3af;
    padding: 40px;
}

.match-card {
    background: linear-gradient(135deg, rgba(16, 38, 30, 0.8) 0%, rgba(9, 17, 26, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.match-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 193, 88, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(229, 193, 88, 0.05);
}

/* Card details depending on status */
.match-card.live {
    border-left: 4px solid #ef4444;
}

.match-status {
    font-size: 11px;
    font-weight: 800;
    color: #ef4444;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.match-status-upcoming {
    font-size: 11px;
    font-weight: 800;
    color: #e5c158;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* Glowing green/red dot for live */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: live-pulse 1s infinite alternate;
}

@keyframes live-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    100% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.match-info {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 20px;
}

/* Versus Layout */
.match-versus {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 18px 10px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.team-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.team-flag-img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.team-name {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #e5e7eb;
    text-align: center;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-score {
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    margin-top: 4px;
    background-color: rgba(229, 193, 88, 0.15);
    border: 1px solid rgba(229, 193, 88, 0.3);
    padding: 2px 10px;
    border-radius: 8px;
}

.vs-badge {
    font-size: 12px;
    font-weight: 900;
    color: #e5c158;
    background: rgba(229, 193, 88, 0.1);
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(229, 193, 88, 0.15);
    margin: 0 8px;
}

/* Nonton Button Inside Card */
.btn-nonton-match {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #e61e43 0%, #b0102b 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(230, 30, 67, 0.25);
}

.btn-nonton-match:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 30, 67, 0.45);
}

.upcoming-btn {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    color: #d1d5db;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.upcoming-btn:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.live-text {
    animation: blink-animation 1s infinite alternate;
}

@keyframes blink-animation {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Loading Ad Overlay style */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.loading-box {
    background: linear-gradient(135deg, #091712 0%, #060a0f 100%);
    border: 1px solid rgba(229, 193, 88, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 24px;
    max-width: 480px;
    width: 90%;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(229, 193, 88, 0.1);
    border-top: 5px solid #e5c158;
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: spin 1s linear infinite;
}

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

.loading-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.loading-box p {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.6;
}

/* Footer style */
.footer {
    background-color: #040d0a;
    border-top: 1px solid rgba(229, 193, 88, 0.1);
    padding: 32px 6%;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 6px;
}

.footer .disclaimer {
    font-size: 12px;
    color: #4b5563;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 16px;
        padding: 16px 4%;
    }
    .countdown-container {
        width: 100%;
        justify-content: center;
    }
    .nav {
        width: 100%;
        justify-content: space-between;
    }
    .section-header h2 {
        font-size: 26px;
    }
    .matches-grid {
        grid-template-columns: 1fr;
    }
}
