/* GLASS-OVERRIDE v2 - Apple Music floating player */

/* 1. Remove whitespace: content area fills viewport when audio list present */
.photos-content-area:has(.audio-list-container) {
    overflow: hidden !important;
    padding-bottom: 0 !important;
}

/* 2. Audio list container fills all available space */
.audio-list-container {
    height: 100% !important;
    overflow: hidden !important;
    min-height: 0 !important;
}

/* 3. Scrollable rows with bottom padding for player clearance */
.audio-list-rows {
    flex: 1 !important;
    overflow-y: auto !important;
    min-height: 0 !important;
    padding-bottom: 100px !important;
}

/* 4. Floating glassmorphism player */
.glass-player {
    position: fixed !important;
    bottom: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(94vw, 900px) !important;
    height: 68px !important;
    z-index: 999 !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.65) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.8) !important;
}

/* 5. Responsive: tablet */
@media (max-width: 768px) {
    .glass-player {
        width: min(96vw, 900px) !important;
        height: 60px !important;
        bottom: 8px !important;
        border-radius: 18px !important;
    }
}

/* 6. Responsive: mobile */
@media (max-width: 480px) {
    .glass-player {
        height: 56px !important;
        bottom: 6px !important;
        border-radius: 14px !important;
    }
}
