@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .scrollbar-hide {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .scrollbar-hide::-webkit-scrollbar {
        display: none;
    }
    .text-shadow {
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .hover-scale {
        transition: transform 0.3s ease;
    }
    .hover-scale:hover {
        transform: scale(1.05);
    }
    .animate-fade-in {
        animation: fadeIn 0.5s ease-in-out;
    }
    .animate-slide-up {
        animation: slideUp 0.5s ease-out;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

body {
    background: linear-gradient(to bottom right, #1e1e2e, #121212);
    color: #f5f5f7;
    font-family: 'Inter', sans-serif;
}

.volume-container, .progress-container {
    position: relative;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(128, 128, 128, 0.3);
    cursor: pointer;
}

.volume-bar, .progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.volume-handle, .progress-handle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s, left 0.1s linear;
}

.volume-container:hover .volume-handle,
.progress-container:hover .progress-handle {
    opacity: 1;
}

.song-item {
    transition: all 0.2s ease;
}

.song-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.player-controls button {
    transition: all 0.2s ease;
}

.player-controls button:hover {
    transform: scale(1.1);
}

.album-art {
    animation: rotate 20s linear infinite;
    animation-play-state: paused;
}

.album-art.playing {
    animation-play-state: running;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .player {
        flex-direction: column;
    }
    
    .song-list, .player-controls {
        width: 100%;
    }
}
    