/* assets/css/style.css */

:root {
    --bg-base: #121212;
    --bg-surface: #181818;
    --bg-elevated: #282828;
    --text-main: #FFFFFF;
    --text-muted: #B3B3B3;
    --accent-color: #00f2fe;
    --spotify-green: #1DB954; /* Warna Premium */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    padding-bottom: 90px; 
    overflow-x: hidden;
}

.header {
    padding: 20px;
    background: linear-gradient(to bottom, #1f4068, var(--bg-base));
    border-bottom: 1px solid var(--bg-surface);
}

.song-container { padding: 20px; }
.song-list { list-style: none; width: 100%; }

.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.3s ease;
}
.song-item:hover { background-color: var(--bg-elevated); }

.song-info { display: flex; flex-direction: column; overflow: hidden; }
.song-title { font-size: 16px; font-weight: 600; color: var(--text-main); white-space: nowrap; text-overflow: ellipsis; }
.song-artist { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.play-btn {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: bold;
    cursor: pointer;
}

/* Pemutar Bawah (Mini Player) */
.bottom-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: var(--bg-surface);
    border-top: 1px solid #282828;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}
.now-playing-info { flex: 1; overflow: hidden; }

/* ========================================= */
/* FULL SCREEN PLAYER (Pop-Up)               */
/* ========================================= */
.full-player {
    position: fixed;
    bottom: -100%; 
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, var(--bg-elevated), var(--bg-base));
    z-index: 2000; 
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1); 
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.full-player.active { bottom: 0; }

.fp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; color: var(--text-muted); font-weight: bold;}
.fp-btn { background: none; border: none; color: var(--text-main); font-size: 20px; cursor: pointer; }

.fp-cover { flex: 1; display: flex; justify-content: center; align-items: center; margin-bottom: 30px; }
.fp-cover img { width: 85%; max-width: 320px; aspect-ratio: 1/1; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.7); object-fit: cover; }

.fp-info { text-align: center; margin-bottom: 40px; }
.fp-title { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.fp-artist { color: var(--text-muted); font-size: 16px; }

.fp-controls { display: flex; justify-content: center; align-items: center; gap: 30px; margin-bottom: 40px; }
.fp-ctrl-btn { background: none; border: none; color: var(--text-main); font-size: 30px; cursor: pointer; transition: 0.2s; }

/* Warna Tombol Aktif (Premium Mode) */
.fp-ctrl-btn.active { color: var(--spotify-green); }

.fp-play-btn {
    font-size: 30px;
    background-color: var(--text-main);
    color: #000;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Progress Bar */
.fp-progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

#fp-progress-bar {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

#fp-progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--text-main);
    border-radius: 50%;
}

/* --- TOAST NOTIFICATION STYLING --- */
#toast-premium {
    visibility: hidden;
    min-width: 200px;
    background-color: var(--spotify-green);
    color: white;
    text-align: center;
    border-radius: 50px;
    padding: 12px 24px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 110px;
    transform: translateX(-50%);
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#toast-premium.show {
    visibility: visible;
    animation: fadeScale 0.4s;
}

@keyframes fadeScale {
    from { bottom: 80px; opacity: 0; transform: translateX(-50%) scale(0.8); }
    to { bottom: 110px; opacity: 1; transform: translateX(-50%) scale(1); }
}