* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: rgb(222, 211, 205);
    --text-secondary: #888888;
    --accent-color: #204f8a;
    --accent-glow: rgba(32, 79, 138, 0.4);
    --pattern-text: #1a1a1a;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Repeating pattern background using stay.png and safe.png */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 80px,
            rgba(0, 0, 0, 0.02) 80px,
            rgba(0, 0, 0, 0.02) 160px
        );
    background-size: 100% 160px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

/* Pattern with actual logo images */
.pattern-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.pattern-row {
    display: flex;
    white-space: nowrap;
    margin-bottom: -5px;
}

.pattern-row img {
    height: 60px;
    width: auto;
    opacity: 0.03;
    margin: 0 -2px;
    filter: brightness(1.2);
    transition: all 0.3s ease;
}

.pattern-row img:hover {
    opacity: 0.15;
    filter: brightness(1.5) drop-shadow(0 0 8px rgba(32, 79, 138, 0.6));
    transform: scale(1.05);
}

/* Dark overlay to enhance readability */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Film grain effect */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Header */
header {
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

.logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(1.2) contrast(1.3) drop-shadow(0 0 30px rgba(32, 79, 138, 0.3));
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
    filter: brightness(1.3) contrast(1.4) drop-shadow(0 0 50px rgba(32, 79, 138, 0.5));
}

/* Main content */
main {
    text-align: center;
    width: 100%;
}

.tagline {
    margin-bottom: 3rem;
    animation: fadeIn 1.5s ease-out 0.3s backwards;
}

.tagline p {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(32, 79, 138, 0.4), 0 2px 10px rgba(0, 0, 0, 0.8);
    font-style: italic;
}

/* Countdown */
.countdown-container {
    margin-bottom: 4rem;
    animation: fadeIn 1.5s ease-out 0.6s backwards;
}

.countdown-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(32, 79, 138, 0.5), 0 2px 8px rgba(0, 0, 0, 0.9);
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(10, 10, 10, 0.6);
    padding: 1.5rem 2rem;
    border-radius: 4px;
    border: 1px solid rgba(32, 79, 138, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    min-width: 110px;
    backdrop-filter: blur(5px);
}

.time-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.8);
    border-color: rgba(32, 79, 138, 0.25);
    background: rgba(15, 15, 15, 0.7);
}

.time-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-glow), 0 2px 6px rgba(0, 0, 0, 0.8);
    line-height: 1;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.time-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.time-separator {
    font-size: 2.5rem;
    color: rgba(32, 79, 138, 0.5);
    font-weight: 300;
    align-self: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px var(--accent-glow);
}

.premiere-date {
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    font-weight: 400;
    text-shadow: 0 0 10px rgba(32, 79, 138, 0.3), 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* YouTube section */
.youtube-section {
    margin-bottom: 4rem;
    animation: fadeIn 1s ease-out;
    position: relative;
    z-index: 100;
}

.watch-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(32, 79, 138, 0.5), 0 2px 10px rgba(0, 0, 0, 0.9);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.9), 0 0 20px rgba(32, 79, 138, 0.1);
    border: 1px solid rgba(32, 79, 138, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Footer */
footer {
    margin-top: auto;
    padding-top: 3rem;
    animation: fadeIn 2s ease-out 0.9s backwards;
}

footer p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .pattern-row img {
        height: 45px;
        margin: 0 -1px;
        opacity: 0.025;
    }

    .container {
        padding: 1.5rem;
    }

    .logo {
        max-width: 320px;
    }

    .tagline p {
        font-size: 1rem;
        letter-spacing: 0.15em;
    }

    .countdown {
        gap: 0.5rem;
    }

    .time-block {
        padding: 1rem 1.25rem;
        min-width: 70px;
    }

    .time-value {
        font-size: 2rem;
    }

    .time-label {
        font-size: 0.65rem;
    }

    .time-separator {
        font-size: 1.5rem;
        margin: 0 0.25rem;
        margin-bottom: 1rem;
    }

    .countdown-title {
        font-size: 1rem;
    }

    .premiere-date {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .pattern-row img {
        height: 35px;
        margin: 0 -1px;
        opacity: 0.02;
    }

    .logo {
        max-width: 240px;
    }

    .tagline p {
        font-size: 0.85rem;
    }

    .time-block {
        padding: 0.75rem 1rem;
        min-width: 60px;
    }

    .time-value {
        font-size: 1.5rem;
    }

    .time-label {
        font-size: 0.6rem;
    }

    .time-separator {
        display: none;
    }

    .countdown {
        gap: 0.4rem;
    }

    footer p {
        font-size: 0.75rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .time-block {
        border: 2px solid var(--text-primary);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .grain-overlay {
        animation: none;
    }
    
    .logo:hover,
    .time-block:hover {
        transform: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
