/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

:root {
    --primary-color: #0d1120;
    --secondary-color: #1a2035;
    --text-color: #d1d5db;
    --accent-color: #fca311;
    --rain-color: rgba(209, 213, 219, 0.5);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.background-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.stars-bg {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
                      radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px);
    background-size: 550px 550px, 350px 350px;
    background-position: 0 0, 40px 60px;
    animation: twinkle 15s infinite linear;
}

@keyframes twinkle {
    from { background-position: 0 0, 40px 60px; }
    to { background-position: -550px 0, -310px 60px; }
}

.rain-container {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
}

.raindrop {
    position: absolute; bottom: 100%;
    width: 2px; height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--rain-color));
    animation: fall 1s linear infinite;
    border-radius: 1px;
}

@keyframes fall {
    to { transform: translateY(120vh); }
}

.raindrop:nth-child(1) { left: 10%; animation-duration: 0.8s; animation-delay: 0.2s; }
.raindrop:nth-child(2) { left: 20%; animation-duration: 0.6s; animation-delay: 0.5s; }
.raindrop:nth-child(3) { left: 30%; animation-duration: 1s;   animation-delay: 0.1s; }
.raindrop:nth-child(4) { left: 40%; animation-duration: 0.7s; animation-delay: 0.8s; }
.raindrop:nth-child(5) { left: 50%; animation-duration: 0.8s; animation-delay: 0.3s; }
.raindrop:nth-child(6) { left: 60%; animation-duration: 0.9s; animation-delay: 0.4s; }
.raindrop:nth-child(7) { left: 70%; animation-duration: 0.6s; animation-delay: 0.1s; }
.raindrop:nth-child(8) { left: 80%; animation-duration: 1.1s; animation-delay: 0.6s; }
.raindrop:nth-child(9) { left: 90%; animation-duration: 0.7s; animation-delay: 0.3s; }
.raindrop:nth-child(10) { left: 5%; animation-duration: 0.8s; animation-delay: 0.9s; }
.raindrop:nth-child(11) { left: 25%; animation-duration: 0.9s; animation-delay: 0.7s; }
.raindrop:nth-child(12) { left: 45%; animation-duration: 0.6s; animation-delay: 0.2s; }
.raindrop:nth-child(13) { left: 65%; animation-duration: 1s; animation-delay: 0s; }
.raindrop:nth-child(14) { left: 85%; animation-duration: 0.8s; animation-delay: 0.4s; }
.raindrop:nth-child(15) { left: 95%; animation-duration: 0.7s; animation-delay: 0.6s; }

/* ===== ANIMASI LED GLOW BARU ===== */
@keyframes led-glow {
    0% {
        box-shadow: 0 0 8px rgba(252, 163, 17, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(252, 163, 17, 0.8), 0 0 5px var(--accent-color) inset;
    }
    100% {
        box-shadow: 0 0 8px rgba(252, 163, 17, 0.4);
    }
}

.container {
    background-color: rgba(13, 17, 32, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    border: 2px solid var(--accent-color); /* Border diubah menjadi kuning */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: led-glow 3s infinite linear; /* Animasi diterapkan di sini */
}

/* Sisa kode style lainnya tetap sama */
header h1 { color: white; font-weight: 600; margin-bottom: 5px; font-size: 2.2em; }
header p { font-weight: 300; font-size: 0.9em; margin-top: 0; }
#playlist h2 { font-size: 1.2em; color: var(--accent-color); border-bottom: 1px solid var(--accent-color); padding-bottom: 10px; margin-bottom: 15px; }
#track-list { list-style: none; padding: 0; max-height: 200px; overflow-y: auto; }
#track-list li { padding: 12px 15px; margin-bottom: 8px; background-color: var(--secondary-color); border-radius: 8px; cursor: pointer; transition: background-color 0.3s, transform 0.2s; text-align: left; }
#track-list li:hover { background-color: #2a314d; transform: scale(1.02); }
#track-list li.active { background-color: var(--accent-color); color: var(--primary-color); font-weight: 600; }
.player-controls { margin-top: 25px; }
#current-track-title { font-size: 1.1em; min-height: 30px; font-weight: 600; color: #FFFFFF; }
.buttons button { background: none; border: 2px solid var(--text-color); color: var(--text-color); border-radius: 50%; width: 50px; height: 50px; font-size: 1.2em; margin: 0 10px; cursor: pointer; transition: all 0.3s; }
.buttons button:hover { background-color: var(--accent-color); border-color: var(--accent-color); color: var(--primary-color); }
#play-pause-btn { width: 60px; height: 60px; font-size: 1.5em; border-color: var(--accent-color); color: var(--accent-color); }
.motivational-quote { margin-top: 30px; padding: 15px; border-top: 1px solid rgba(255, 255, 255, 0.1); min-height: 60px; display: flex; justify-content: center; align-items: center; }
#quote-text { font-size: 1.1em; font-style: italic; font-weight: 400; color: #FFFFFF; opacity: 1; transition: opacity 0.5s ease-in-out; }
.credit { margin-top: 20px; }
.credit p { font-size: 0.8em; color: var(--text-color); opacity: 0.7; }

@media (max-width: 600px) {
    body { padding: 10px; }
    .container { padding: 20px; }
    header h1 { font-size: 1.8em; }
    #track-list { max-height: 160px; }
    #current-track-title { font-size: 1em; }
    .buttons button { width: 45px; height: 45px; margin: 0 8px; }
    #play-pause-btn { width: 55px; height: 55px; }
    #quote-text { font-size: 1em; }
}