/* =========================================================
   CORE RESET & LAYOUT LOCK
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    height: 100svh;
    overflow: hidden; /* Strict single-page layout without scrolling */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #000000;
}


/* =========================================================
   ANIMATED RESPONSIVE BACKGROUNDS
========================================================= */

.bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

    /* Desktop Background */
    background-image: url('desktop.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    /* Continuous slow background motion */
    animation: bgPanZoom 20s ease-in-out infinite alternate;
}

/* Background Motion Keyframes */
@keyframes bgPanZoom {
    0% {
        transform: scale(1) translateY(0);
    }
    100% {
        transform: scale(1.06) translateY(-10px);
    }
}

/* Mobile Background Swap */
@media (max-width: 768px) {
    .bg-image {
        background-image: url('mobile.png');
        background-position: center top;
        background-size: cover;
    }
}


/* =========================================================
   SINGLE-PAGE CONTAINER
========================================================= */

.page-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    height: 100svh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    padding: 
        max(20px, env(safe-area-inset-top))
        20px 
        max(20px, env(safe-area-inset-bottom));
}


/* =========================================================
   DESKTOP / DEFAULT UI COMPONENTS (WITH ENTRY ANIMATIONS)
========================================================= */

.eyebrow {
    font-size: clamp(10px, 1.1vw, 13px);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #2d2825;
    background: #ffffff;
    padding: 8px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    /* Entry Animation */
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

/* Standard Full-Size Desktop Embed Player */
.player {
    width: min(100%, 560px);
    height: auto;
    padding: 6px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

    /* Entry Animation */
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.player iframe {
    display: block;
    width: 100%;
    aspect-ratio: 560 / 202;
    border: 0;
    border-radius: 10px;
}

/* Bottom Section Grouping */
.bottom-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Enhanced Animated Share Button */
.share-btn {
    order: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #1a1817;
    
    background: linear-gradient(135deg, #ffffff 0%, #f4f0ea 100%);
    border: 1px solid rgba(226, 218, 203, 0.9);
    border-radius: 30px;
    padding: 14px 40px;
    
    cursor: pointer;
    box-shadow: 
        0 8px 20px rgba(45, 40, 37, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.04);
    
    /* Entry & Pulse Animations */
    animation: 
        fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s backwards,
        pulseGlow 3s ease-in-out infinite 1.5s;

    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Share Button Hover & Active States */
.share-btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #ffffff 0%, #ebe5dc 100%);
    border-color: #d1c5b4;
    box-shadow: 
        0 12px 28px rgba(45, 40, 37, 0.14),
        0 4px 8px rgba(0, 0, 0, 0.06);
}

.share-btn:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 4px 12px rgba(45, 40, 37, 0.1);
}

.share-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.share-btn:hover svg {
    transform: rotate(-12deg) scale(1.1);
}

/* Quote Card */
.quote {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    max-width: 580px;
    text-align: center;
    background: #ffffff;
    padding: 12px 24px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);

    /* Entry Animation */
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s backwards;
}

.quote-mark {
    font-family: Georgia, serif;
    font-size: clamp(20px, 2.5vw, 30px);
    color: #38312d;
    line-height: 1;
}

.quote-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(13px, 1.5vw, 19px);
    font-style: italic;
    color: #2d2825;
}


/* =========================================================
   KEYFRAME ANIMATIONS
========================================================= */

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 
            0 8px 20px rgba(45, 40, 37, 0.08),
            0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        box-shadow: 
            0 10px 24px rgba(45, 40, 37, 0.12),
            0 0 0 8px rgba(255, 255, 255, 0);
    }
}


/* =========================================================
   MOBILE POSITIONING & SCALING
========================================================= */

@media (max-width: 768px) {

    .page-container {
        justify-content: flex-start;
        padding-top: 43svh;
        padding-bottom: 18svh;
        gap: 12px;
    }

    /* Eyebrow Tag */
    .eyebrow {
        font-size: 9px;
        letter-spacing: 2px;
        padding: 4px 12px;
        background: #ffffff;
        border: 1px solid #e2dacb;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    /* BandLab Compact Embed Player for Mobile */
    .player {
        width: 86%;
        max-width: 350px;
        height: 140px;
        padding: 0;
        background: #ffffff;
        border: 1px solid #e8e0d0;
        box-shadow: 0 6px 18px rgba(60, 50, 40, 0.1);
        border-radius: 14px;
        overflow: hidden;
    }

    .player iframe {
        height: 100%;
        aspect-ratio: auto;
        border-radius: 14px;
    }

    /* Mobile Order: Quote First, Share Button Underneath */
    .quote {
        order: 1;
        width: 84%;
        max-width: 300px;
        margin-top: 10px;
        padding: 8px 14px;
        background: #ffffff;
        border: 1px solid #e8e0d0;
        box-shadow: 0 4px 12px rgba(60, 50, 40, 0.08);
    }

    .quote-text {
        font-size: 11px;
        line-height: 1.25;
    }

    .quote-mark {
        font-size: 16px;
    }

    .share-btn {
        order: 2;
        font-size: 11px;
        padding: 10px 24px;
        letter-spacing: 0.5px;
    }
}