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

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.75), rgba(44, 44, 44, 0.75)), url('https://pub-f0605a66566b4505b6382299d4ae8e02.r2.dev/background2.jpg') center/cover no-repeat fixed;
    color: #C5C5D0; /* Softer gray */
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(90deg, rgba(26, 42, 68, 0.75), rgba(44, 26, 58, 0.75)), url('https://pub-f0605a66566b4505b6382299d4ae8e02.r2.dev/background5.jpg') center/cover no-repeat;
    color: #C5C5D0;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

header h1 {
    font-family: 'Special Elite', cursive;
    font-size: 4.5rem; /* Increased from 3.5rem */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px #0A0A0A, 0 0 5px #4A90E2; /* Softer blue glow */
    background: linear-gradient(90deg, #A9A9B0, #6B4EAA); /* Silver to muted purple */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

main {
    flex: 1;
    padding: 3rem 1rem;
}

.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.video-card {
    background-color: #1E2F5C; /* Slightly lighter deep blue */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Softer shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.video-card:hover {
    transform: translateY(-4px); /* Softer hover effect */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.video-card h2 {
    font-family: 'Special Elite', cursive;
    font-size: 1.4rem;
    font-weight: 400;
    padding: 1rem;
    color: #6B4EAA; /* Muted purple */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px #0A0A0A, 0 0 3px #4A90E2; /* Softer blue glow */
}

.video-thumbnail {
    width: 100%;
    max-width: 320px;
    height: 180px;
    object-fit: cover;
    background-color: #000;
    border-bottom: 2px solid #4A90E2; /* Softer blue border */
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.03); /* Softer scale effect */
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    padding-top: 56.25%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50vh;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #C5C5D0; /* Softer gray */
    border-top: 4px solid #6B4EAA; /* Muted purple */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.error-message {
    text-align: center;
    color: #FF6F61; /* Subtle orange */
    font-size: 1.2rem;
    padding: 2rem;
}

footer {
    background-color: #1E2F5C; /* Slightly lighter deep blue */
    color: #C5C5D0;
    text-align: center;
    padding: 1.5rem 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
}

footer p {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 3rem; /* Adjusted for smaller screens */
    }

    .video-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .video-card h2 {
        font-size: 1.2rem;
    }

    .video-thumbnail {
        height: 180px;
    }
}