/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden;
}

/* Main container with glassmorphism */
.app-container {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 25px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.app-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

/* Title */
h1 {
    font-size: 1.6rem;
    color: #93c5fd;
    margin-bottom: 20px;
    /* Reduced slightly to balance spacing */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(147, 197, 253, 0.5);
}

/* Control buttons - cleaner, more modern */
.controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    /* Adjusted for better spacing with the new button */
    margin-bottom: 20px;
}

.control-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #93c5fd;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
    transform: scale(1.1);
}

.play-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
    color: #f87171;
}

.play-btn:hover {
    background: rgba(248, 113, 113, 0.2);
    color: #fecaca;
}

.download-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #34d399;
    /* Soft green for the download button */
}

.download-btn:hover {
    background: rgba(52, 211, 153, 0.2);
    color: #6ee7b7;
}

/* Player box */
.player-box {
    background: rgba(55, 65, 81, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Song info */
.song-info {
    margin-bottom: 20px;
}

#currentSong {
    font-size: 1.2rem;
    color: #bfdbfe;
    font-weight: 500;
    margin-bottom: 8px;
    padding: 10px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Playlist */
.playlist {
    max-height: 160px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(31, 41, 55, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-item {
    /* Updated to match the JS class */
    padding: 12px;
    margin: 5px 0;
    background: rgba(75, 85, 99, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #d1d5db;
}

.playlist-item:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateX(5px);
}

.playlist-item.active {
    background: rgba(59, 130, 246, 0.3);
    color: #bfdbfe;
    font-weight: 500;
}

/* Custom scrollbar */
.playlist::-webkit-scrollbar {
    width: 8px;
}

.playlist::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
}

.playlist::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.7);
}