/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Oswald', sans-serif;
    background-color: #000;
    color: #FFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
}

/* Header */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Video Wrapper - Responsive 16:9 aspect ratio */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
    overflow: hidden;
}

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

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    flex-shrink: 0;
}

.footer__logo-link {
    display: block;
    transition: opacity 0.3s ease;
}

.footer__logo-link:hover {
    opacity: 0.8;
}

.footer__logo {
    display: block;
    width: 100px;
    height: auto;
}

@media (max-width: 768px) {
    .footer__logo {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0;
    }

    .footer__logo {
        width: 60px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        gap: 1.5rem;
    }

    .logo {
        max-width: 200px;
    }

    .video-wrapper {
        /* No additional styles needed */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
        gap: 1rem;
    }

    .logo {
        max-width: 150px;
    }
}

/* Loading state for iframe */
.video-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(235, 68, 57, 0.3);
    border-top-color: #EB4439;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

.video-wrapper iframe {
    z-index: 2;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
