:root {
    --gold: #FFD700;
    --gold-glow: #ffcc00;
    --red-deep: #4a0404;
    --orange-sunset: #cc4400;
    --text-white: #f0f0f0;
    --font-serif: 'Prata', serif;
    --font-script: 'Allura', cursive;
    --font-sans: 'Oswald', sans-serif;
}

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

body {
    background-color: #000;
    color: var(--text-white);
    font-family: var(--font-serif);
    min-height: 100vh;
    min-height: 100dvh; /* Better mobile support */
    overflow-x: hidden; /* Allow vertical scroll if needed, prevent horizontal */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Abstract Pattern Background */
.pattern-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(204, 68, 0, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.15) 0%, transparent 40%),
        repeating-linear-gradient(45deg, rgba(74, 4, 4, 0.3) 0px, rgba(74, 4, 4, 0.3) 2px, transparent 2px, transparent 10px),
        linear-gradient(to bottom, #1a0505 0%, #000 100%);
    background-size: 100% 100%, 100% 100%, 20px 20px, 100% 100%;
    /* Animation for subtle movement */
    animation: bgPulse 20s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Film Grain Overlay */
.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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.12'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Equalizer Canvas */
#equalizer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%; /* Occupy bottom 30% */
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
}

.container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    text-align: center;
    /* Allow flexibility */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh; /* Fallback */
    min-height: 100dvh; 
}

.poster-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Typography */
.tagline {
    font-family: var(--font-serif);
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards 0.5s;
}

.main-title {
    font-family: var(--font-serif);
    font-size: 5rem;
    color: var(--gold);
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -2px;
    text-shadow: 
        0 0 15px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(204, 68, 0, 0.4);
    margin-bottom: -1rem; 
    opacity: 0;
    /* Chain animations: FadeIn first, then Pulse continuously */
    animation: fadeIn 2s ease-out forwards 1s, neonPulse 4s ease-in-out infinite alternate 3s;
}

@keyframes neonPulse {
    from {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.7),
            0 0 20px rgba(204, 68, 0, 0.4);
    }
    to {
        text-shadow: 
            0 0 20px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 100, 0, 0.5);
    }
}

.band-signature {
    font-family: var(--font-script);
    font-size: 4.5rem;
    color: rgba(255, 255, 255, 0.9);
    transform: rotate(-5deg);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    z-index: 3;
    line-height: 0.8;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards 1.5s;
}

.release-date {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: #000;
    color: var(--text-white);
    padding: 0.5rem 1rem;
    transform: skew(-10deg);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit span {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 300;
}

.time-unit .label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.2rem;
}

/* Audio Control Button (Discrete Icon) */
.audio-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    background: transparent;
    border: none;
    color: var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    padding: 10px;
    border-radius: 50%;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-btn:hover {
    color: #fff;
    opacity: 1;
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.audio-btn svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.audio-btn.muted .icon-volume-on { display: none; }
.audio-btn.muted .icon-volume-off { display: block; }
.audio-btn:not(.muted) .icon-volume-off { display: none; }
.audio-btn:not(.muted) .icon-volume-on { display: block; }

/* CTA */
.cta-button {
    margin-top: 2rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 1rem 3rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    letter-spacing: 4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0; 
    animation: fadeIn 2s ease-out forwards 2s;
}

.cta-button:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Social Links */
.social-links {
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards 2.5s;
}

.social-link {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.social-link:hover {
    color: var(--gold);
    border-color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    body {
        /* Fix Safari mobile height issue */
        height: -webkit-fill-available; 
    }

    .container {
        height: auto;
        min-height: 100dvh; 
        padding-top: max(2rem, env(safe-area-inset-top));
        padding-bottom: max(4rem, env(safe-area-inset-bottom)); /* More space at bottom for Safari UI */
        justify-content: center;
    }

    .poster-content {
        gap: 1rem;
    }

    .main-title { 
        font-size: 2.8rem; /* Slightly smaller to prevent wrapping/overflow */
        margin-bottom: -0.5rem;
        word-break: break-word;
    }
    
    .band-signature { 
        font-size: 2.5rem; 
        margin-bottom: 1.5rem;
    }
    
    .tagline { 
        font-size: 0.7rem; 
    }

    .release-date {
        font-size: 1.2rem;
    }

    .time-unit span {
        font-size: 1.4rem;
    }

    .audio-btn {
        top: max(1rem, env(safe-area-inset-top)); /* Respect notch */
        right: 1rem;
        padding: 8px;
    }
    
    .audio-btn svg {
        width: 24px;
        height: 24px;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .social-links {
        margin-top: 1rem;
    }
}
