/* Dynamic Glassmorphism System */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #0f172a; /* Dark baseline */
    overflow-x: hidden;
}

/* Background Blur Magic */
.glass-bg-container {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(80px) brightness(0.6) saturate(1.5);
    z-index: -2;
    transform: scale(1.1);
    transition: background-image 0.5s ease-in-out;
}

/* Overlay gradient to ensure text readability globally */
.glass-bg-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: -1;
}

/* Navbar overrides */
.glass-navbar {
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    color: white;
}

.song-detail-container {
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

/* Premium Glass Card */
.song-glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 48px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Glowing Artwork */
.song-artwork-wrapper {
    position: relative;
    width: 240px;
    height: 240px;
    margin-bottom: 32px;
}

.song-detail-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

.song-glass-card:hover .song-detail-cover {
    transform: scale(1.02) translateY(-4px);
}

.artwork-glow {
    position: absolute;
    inset: -10px;
    background-size: cover;
    background-position: center;
    filter: blur(30px);
    opacity: 0.6;
    z-index: 1;
    border-radius: 32px;
    transition: opacity 0.3s ease;
}

/* Typography */
.song-meta {
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
}

.song-title-large {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.song-artist-large {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Stats bubbles */
.song-stats-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.stat-bubble {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-bubble i {
    color: var(--primary, #38bdf8);
}

/* Audio Player */
.custom-audio-player {
    width: 100%;
    margin-bottom: 32px;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 8px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: #ffffff;
    border-radius: 6px;
    width: 0%;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.progress-head {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    transition: transform 0.2s;
}

.progress-container:hover .progress-head {
    transform: translateY(-50%) scale(1);
}

.time-indicators {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

/* Controls */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctrl-btn.minor {
    font-size: 32px;
    opacity: 0.7;
}

.ctrl-btn.minor:hover {
    opacity: 1;
    transform: scale(1.1);
}

.massive-play {
    font-size: 72px;
    color: #ffffff;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.massive-play:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
}

.massive-play:active {
    transform: scale(0.95);
}

/* Premium Download Button */
.premium-download-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 16px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.premium-download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.premium-download-btn i {
    font-size: 20px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .song-glass-card {
        padding: 32px 24px;
        border-radius: 20px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    }
    .song-artwork-wrapper {
        width: 200px;
        height: 200px;
    }
    .song-title-large {
        font-size: 24px;
    }
}
