/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar { 
    width: 12px; 
}

.custom-scrollbar::-webkit-scrollbar-track { 
    background: transparent; 
}

.custom-scrollbar::-webkit-scrollbar-thumb { 
    background-color: hsla(0,0%,100%,.3); 
    border-radius: 10px; 
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover { 
    background-color: hsla(0,0%,100%,.5); 
}

/* Progress Animation */
@keyframes progress { 
    0% { width: 0%; } 
    100% { width: 100%; } 
}

.animate-progress { 
    animation: progress 30s linear forwards; 
}

/* Base Styles */
body {
    background-color: black;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    overflow: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    inset: 0;
    background: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

.spotify-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #1db954;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

/* Error Container */
#global-error {
    display: none;
    position: fixed;
    inset: 0;
    padding: 40px;
    color: #ff5555;
    background: #110000;
    font-family: monospace;
    z-index: 10000;
    overflow: auto;
}

#global-error h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

#error-message {
    background: rgba(255,0,0,0.1);
    padding: 20px;
    border-radius: 8px;
    white-space: pre-wrap;
}
