body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
    color: #c27209;
}

h1 i {
    margin-right: 10px;
    color: #4a90e2;
}

.subtitle {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #fff;
}

/* YouTube Embed Responsive */
.youtube-embed {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.youtube-embed iframe {
    width: 100%;
    height: 315px;
    border: none;
}

@media (max-width: 768px) {
    .youtube-embed iframe {
        height: 200px;
    }
}

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

/* Event Card Styles */
.event-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.event-card:hover {
    transform: translateY(-4px);
}

.event-card.upcoming {
    border-top: 4px solid #4a90e2;
}

.event-card.live {
    border-top: 4px solid #c4302b;
}

.event-card.ended {
    opacity: 0.7;
}

.event-info {
    padding: 20px;
    color: #333;
}

.event-info h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #1e3c72;
}

.event-info p {
    font-size: 0.9em;
    margin-bottom: 8px;
    line-height: 1.6;
}

.event-info i {
    color: #4a90e2;
    margin-right: 8px;
    font-size: 1em;
}

.event-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 20px 20px;
    margin-top: 15px;
}

.event-links .card {
    padding: 10px 20px;
    font-size: 0.85em;
    min-width: 140px;
}

.event-links .card i {
    font-size: 1em;
    margin-right: 5px;
}

.timer {
    padding: 0 20px 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.timer .time-block {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    padding: 12px 8px;
    border-radius: 10px;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: white;
    flex: 1;
}

.timer .number {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
}

.timer .label {
    display: block;
    font-size: 0.65em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 3px;
    font-weight: normal;
}

.ended {
    color: #666;
    font-style: italic;
    padding: 10px;
    text-align: center;
}

/* Links container (legacy - using event-links instead) */
.links {
    display: none;
}

.links a {
    text-decoration: none;
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    justify-content: center;
}

.links .facebook {
    background: linear-gradient(45deg, #3b5998, #4c669f);
}

.links .youtube {
    background: linear-gradient(45deg, #c4302b, #d32f2f);
}

.links .zoom {
    background: linear-gradient(45deg, #2d8cff, #1565c0);
}

.links .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.links .card i {
    font-size: 1.2em;
}

@media (max-width: 768px) {
    body {
        padding: 5px;
    }

    h1 {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1em;
    }

    .event-card {
        margin-bottom: 15px;
    }

    .event-links .card {
        flex-basis: 100%;
        max-width: 250px;
    }

    .timer {
        gap: 8px;
    }

    .timer .time-block {
        min-width: 40px;
        padding: 8px;
    }

    .timer .number {
        font-size: 1.2em;
    }

    .timer .label {
        font-size: 0.55em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }

    .timer .time-block {
        width: 80%;
        max-width: 120px;
        margin: 0 auto 5px auto;
    }

    .timer .number {
        font-size: 1.2em;
    }
}