/* Parallax Containers */
.glass-parallax-container {
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8);
}

.video-spacer {
    height: 250vh;
    width: 100%;
}

/* Horizontal Scroll Adjustments */
.horizontal-scroll-container {
    will-change: transform;
}

/* Cinematic Rockstar Panels */
.cinematic-panel {
    will-change: transform, clip-path;
    opacity: 0;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cinematic-main-title {
    text-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 40px rgba(255, 82, 217, 0.5);
}

@media (max-width: 768px) {
    .cinematic-panel {
        width: 80% !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin-bottom: 2rem;
    }
    .cinematic-panels-container {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 15svh;
        overflow-y: auto;
    }
    #cinematic-chapter {
        height: auto !important;
        padding: 5rem 0;
    }
    #cinematic-chapter .sticky-container {
        position: relative !important;
        height: auto !important;
    }
    .cinematic-main-title {
        font-size: 4rem !important;
    }
}

.horizontal-card {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s;
    user-select: none;
    -webkit-user-drag: none;
}

.horizontal-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 30px 60px -10px rgba(0,0,0,0.5), 0 10px 30px -5px rgba(255, 82, 217, 0.2);
}

/* Showcase BG Img */
#showcase-bg-img {
    transition: opacity 1s ease, filter 1s ease;
}

/* Horizontal Inner Scaling */
@media (max-width: 1024px) {
    .horizontal-inner {
        padding-left: 20px;
        gap: 20px;
    }
    .horizontal-card {
        width: 85vw !important;
    }
}

/* Vertical Timeline & Cinematic Scaling for Mobile */
@media (max-width: 768px) {
    /* Handle modern mobile address bar issues */
    .h-screen {
        height: 100svh !important;
    }

    /* Scale down the 17+ huge headers */
    [class*="-text"] {
        font-size: 2.2rem !important; /* Scaled for mobile readability */
        letter-spacing: -0.02em;
        line-height: 1.1;
    }
    [class*="-sub"] {
        font-size: 0.75rem !important;
        letter-spacing: 0.2em !important;
    }

    .hero-title {
        font-size: 3.5rem !important;
        line-height: 0.9;
        margin-bottom: 2rem !important;
    }
    .hero-desc {
        font-size: 1rem !important;
        padding: 0 1.5rem;
        line-height: 1.6;
    }
    .hero-sub {
        font-size: 0.75rem !important;
        letter-spacing: 0.4em !important;
    }
    
    .hero-cta a {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 1rem !important;
        font-size: 1.25rem !important;
    }

    .horizontal-inner {
        padding-left: 5vw;
        gap: 1.5rem;
    }
    
    .horizontal-card {
        aspect-ratio: 4/3 !important;
    }
    
    /* Reduce video scroll spacer on mobile */
    .video-spacer {
        height: 120vh;
    }
    
    /* Album Grid on Mobile */
    .album-item h4 {
        font-size: 1rem !important;
        letter-spacing: 0.1em !important;
    }
    
    #legacy h3 {
        font-size: 3.5rem !important; /* Legend title scaling */
        letter-spacing: -0.02em;
    }
    #legacy h2 {
        font-size: 0.85rem !important;
        letter-spacing: 0.4em !important;
    }
    
    /* Player Mobile Fixes - Rockstar Style */
    #audio-player {
        width: calc(100% - 1.5rem) !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
        bottom: 0.75rem !important;
        padding: 0.5rem 1rem !important;
        border-radius: 12px !important;
        background: rgba(10, 10, 15, 0.98);
        border: 1px solid rgba(255, 82, 217, 0.3);
        backdrop-filter: blur(20px);
        transform: translateY(0) !important; /* Force visible if active */
    }
    
    #mobile-menu-btn {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
        backdrop-filter: blur(10px);
    }
    
    .nav-logo-mobile {
        font-size: 1.5rem !important;
    }
    #audio-player .player-disc {
        width: 50px !important;
        height: 50px !important;
    }
    #player-title {
        font-size: 1rem !important;
        max-width: 150px;
    }
    #player-album {
        font-size: 0.7rem !important;
    }
    #lyric-text {
        font-size: 0.8rem !important;
        opacity: 0.8;
    }
}

/* Rockstar Games - Asymmetric Grid elements */
.final-bg-parallax {
    filter: saturate(1.2) contrast(1.1);
}

.album-item {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-item:nth-child(even) {
    margin-top: 40px;
}

.album-item:hover {
    transform: scale(1.02) !important;
}
