/* Custom Fonts */
@font-face {
    font-family: 'CustomSans';
    src: url('fonts/sansserifflf.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'CustomSans';
    src: url('fonts/sansserifbldflf.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'CustomSans';
    src: url('fonts/sansserifbldflf-italic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Manic';
    src: url('fonts/MANIC.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ManicAlt1';
    src: url('fonts/MANIC-Alternates1.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ManicSketches';
    src: url('fonts/MANIC-Sketches.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'CustomSans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    overflow-x: hidden;
}

body {
    background-color: #ffffff; /* White background */
    color: #000000; /* Black text */
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    min-height: 100dvh; /* Accounts for iOS address bar */
    padding: 0; /* Removed padding so video can be flush */
    position: relative;
    z-index: 0; /* Creates a base stacking context */
    overflow-x: hidden; /* Prevent horizontal scroll from full width video */
}

/* Ticker Tape */
.ticker-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    padding: 0.5rem 0;
    display: flex;
    overflow: hidden;
    z-index: 10; /* Keeps it above the video */
}

.ticker {
    display: flex;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 700;
    letter-spacing: 2px;
    padding-right: 0.5rem; /* Gap between repeats */
    animation: ticker-rtl 25s linear infinite;
}

@keyframes ticker-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Container for Mobile-First max-width */
.container {
    width: 100%;
    max-width: 600px; /* Ensures desktop doesn't stretch buttons too wide */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem; /* Re-add padding for content, leaving top 0 */
    min-height: 100dvh;
}

/* Video Container */
#video-container {
    position: relative; /* Allows overlay for feathering */
    width: calc(100vw + 25px); /* Made slightly wider to ensure edge-to-edge fit */
    margin-left: calc(-1.5rem - 12.5px);
    margin-right: calc(-1.5rem - 12.5px);
    margin-top: 1rem; /* Move down to avoid being cut off by the ticker tape */
    margin-bottom: 0rem; /* Pulled up slightly */
    aspect-ratio: 4 / 3;
}

/* White feathered overlay */
#video-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Intense feathering at the bottom, extremely subtle on the sides */
    background:
        linear-gradient(to bottom, rgba(255,255,255,0) 90%, rgba(255,255,255,1) 100%),
        linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 3%),
        linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 3%);
    pointer-events: none; /* So the video underneath can still be interacted with if needed */
}

@media (min-width: 600px) {
    #video-container {
        width: 100%;
        max-width: 600px;
        margin-left: 0;
        margin-right: 0;
    }
}

#video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    outline: none;
    border: none;
}

/* --- Countdown Timer --- */
.releases-label {
    font-family: 'Manic', sans-serif;
    font-size: 1rem; /* Reduced slightly */
    margin-bottom: 0.25rem;
    /* Subtler smeared photocopy effect */
    text-shadow: 1px 0 0 rgba(0, 0, 0, 0.08), -1px 0 0 rgba(0, 0, 0, 0.05);
    margin-top: 0.125rem; /* Pulled down slightly */
    position: relative;
    z-index: 10; /* Keep on top of video */
}

/* Real-Time Countdown Row */
.countdown-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0;
    gap: 1rem; /* Space between button and timer */
}

.countdown-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the text and timer */
    cursor: pointer;
}

.presave-wrapper {
    display: inline-block;
    filter: drop-shadow(3px 3px 0px rgba(0, 0, 0, 0.3));
    transition: filter 0.2s ease;
}

.presave-wrapper:hover {
    filter: drop-shadow(5px 5px 0px rgba(0, 0, 0, 0.2));
}

.presave-wrapper:active {
    filter: drop-shadow(1px 1px 0px rgba(0, 0, 0, 0.5));
}

.presave-btn {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Manic', sans-serif;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    font-size: 1.4rem;
    border-radius: 0;
    clip-path: polygon(
        1% 2%, 25% 0%, 50% 3%, 75% 0%, 99% 1%,
        100% 25%, 98% 50%, 100% 75%, 99% 98%,
        75% 100%, 50% 97%, 25% 100%, 1% 99%,
        0% 75%, 2% 50%, 0% 25%
    );
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-shadow: 1px 0 0 rgba(255, 255, 255, 0.4), -1px 0 0 rgba(255, 255, 255, 0.2);
}

.presave-btn:hover {
    background-color: #2a2a2a;
    transform: rotate(-1deg) scale(1.02);
}

.presave-btn:active {
    transform: rotate(1deg) scale(0.98);
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    z-index: 10; /* Keep on top of video */
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #000000;
    width: auto;
    position: relative;
    /* Subtler smeared photocopy effect */
    text-shadow: 1px 0 0 rgba(0, 0, 0, 0.08), -1px 0 0 rgba(0, 0, 0, 0.05);
}

/* Separator between numbers */
.countdown-box:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 15%;
    height: 70%;
    width: 2px;
    background-color: #000000;
    transform: rotate(3deg);
    border-radius: 2px 4px 1px 3px;
}

.countdown-number {
    font-family: 'Manic', sans-serif;
    font-size: 2rem; /* Reduced slightly */
    font-weight: normal;
    line-height: 1;
    margin-bottom: 0.1rem;
}

.countdown-label {
    font-family: 'Manic', sans-serif;
    font-size: 0.75rem; /* Reduced slightly */
    font-weight: normal;
    letter-spacing: 1px;
}

/* Links Section */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; /* Tighter gap */
    margin-bottom: 1rem; /* Much less bottom padding */
}

.link-btn {
    display: inline-block;
    padding: 0.15rem 1rem; /* Extremely tight vertical padding */
    background-color: transparent;
    color: #000000;
    text-decoration: none;
    font-family: 'Manic', sans-serif;
    font-weight: normal;
    font-size: 1.3rem; /* Reduced slightly */
    position: relative;
    transition: all 0.1s ease;
    /* Subtler smeared photocopy effect */
    text-shadow: 1px 0 0 rgba(0, 0, 0, 0.08), -1px 0 0 rgba(0, 0, 0, 0.05);
}

/* Alternate Font Underlines */
.link-btn::after {
    font-family: 'ManicSketches', sans-serif;
    position: absolute;
    bottom: -28px; /* Pulled down slightly lower */
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem; /* Scale to span text width */
    color: #000000;
    z-index: -1;
    transition: all 0.1s ease;
    pointer-events: none; /* Ensure it doesn't block clicks */
}

/* Specific characters for each link underline */
.link-btn:nth-child(1)::after { content: 'O'; } /* Spotify */
.link-btn:nth-child(2)::after { content: 'P'; } /* Apple Music */
.link-btn:nth-child(3)::after { content: 'N'; } /* Bandcamp */
.link-btn:nth-child(4)::after { content: 'M'; } /* YouTube */

.link-btn:active {
    transform: translate(2px, 2px);
}

.link-btn:active::after {
    transform: translateX(-50%) rotate(2deg) scale(0.95);
}

/* Desktop Hover Effect */
@media (hover: hover) {
    .link-btn:hover {
        text-shadow: 3px 1px 0 rgba(0, 0, 0, 0.2), -3px -1px 0 rgba(0, 0, 0, 0.15);
    }
    .link-btn:hover::after {
        color: #333333; /* Slight change on hover */
    }
}

/* Footer & Contact */
.site-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    margin-bottom: 1rem;
}

.contact-wrapper {
    font-family: 'Manic', sans-serif;
    font-size: 0.9rem;
    color: #666666;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.contact-link {
    font-family: 'Manic', sans-serif;
    font-size: 0.9rem;
    color: #666666;
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
    border-bottom: 1px solid #666666;
    padding-bottom: 2px;
}

.contact-link:hover {
    color: #000000;
    border-bottom-color: #000000;
}

.copyright {
    font-family: 'Manic', sans-serif;
    font-size: 0.7rem;
    color: #999999;
    letter-spacing: 1px;
    text-transform: lowercase;
}

/* --- Entrance Animations --- */
@keyframes cinematicBlur {
    0% {
        opacity: 0;
        filter: blur(8px);
        transform: scale(1.05) translateZ(0);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1) translateZ(0);
    }
}

.countdown-row,
.link-btn,
.site-footer {
    animation: cinematicBlur 0.8s ease-out backwards;
    will-change: filter, transform, opacity;
}

.countdown-row {
    animation-delay: 0.2s;
}

.link-btn:nth-child(1) { animation-delay: 0.3s; }
.link-btn:nth-child(2) { animation-delay: 0.4s; }
.link-btn:nth-child(3) { animation-delay: 0.5s; }
.link-btn:nth-child(4) { animation-delay: 0.6s; }

.site-footer {
    animation-delay: 0.7s;
}
