body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow: hidden;
    background-color: #000;
    color: #fff;
}
.canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#particle-canvas {
    z-index: 1;
}
#visualizer-canvas {
    z-index: 2;
}
#content-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    z-index: 3;
}
#image-container {
    width: 40vmin;
    height: 40vmin;
    max-width: 350px;
    max-height: 350px;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(150, 200, 255, 0.3);
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out, opacity 1s ease-in-out;
    opacity: 0;
    border: 4px solid rgba(255, 255, 255, 0.1);
}

/* Aesthetic Media Player Card Styling (Reduced size) */
#media-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 4;
    padding: 0.5rem 1rem;
}

#media-player-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    max-width: 36rem;
    
    /* Enable smooth transitions for the full hide effect */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    transform: translateY(0); /* Default visible position */
}

/* State when the player is collapsed (inactive) */
#media-player-card.collapsed {
    opacity: 0;
    transform: translateY(1rem); /* Slide slightly off screen */
    pointer-events: none; /* Make it unclickable */
}

/* Progress Bar Enhancements */
.progress-bar-container {
    background-color: rgba(255, 255, 255, 0.3);
    height: 4px;
    cursor: pointer;
}
.progress-bar {
    background: linear-gradient(90deg, #6DD5FA, #FFFFFF);
    transition: width 0.1s linear;
}
#time-display {
    color: #C0C0C0;
    font-size: 0.8rem;
}

/* Playlist Container Adjustment (UPDATED BOTTOM POSITION) */
#playlist-container {
    position: fixed;
    bottom: 8rem; /* Increased from 6.5rem to 8rem to clear the player */
    left: 0;
    width: 100%;
    max-height: 50vh;
    /* Responsive width for desktop */
    @media (min-width: 768px) {
        width: 50%;
        left: 25%;
        border-radius: 0.5rem 0.5rem 0 0;
    }
    @media (min-width: 1024px) {
        width: 33.333%;
        left: 33.333%;
    }
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    padding: 1rem;
    z-index: 4;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform: translateY(100%); /* Start hidden off-screen */
    opacity: 0;
}

#playlist-container.open {
    transform: translateY(0);
    opacity: 1;
}

#playlist-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
#playlist-list li {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#playlist-list li.bg-white\/20 {
    box-shadow: 0 0 10px rgba(150, 200, 255, 0.3);
}

/* FIX: Visually center the play icon triangle */
#play-icon {
    transform: translateX(1px); 
}