/* =========================================
   RESET & DASAR
   ========================================= */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
}

body {
    height: 100vh; 
    width: 100vw;
    display: flex; 
    justify-content: center; 
    align-items: center;
    background: #000; 
    overflow: hidden; 
    color: white;
}

/* LATAR BELAKANG BLUR */
.background {
    position: fixed; 
    inset: 0;
    background-size: cover; 
    background-position: center;
    filter: brightness(25%) blur(40px); 
    z-index: -1;
    transition: background-image 1s ease-in-out;
}

/* =========================================
   1. LANDING PAGE
   ========================================= */
.landing-page {
    position: fixed; 
    inset: 0; 
    z-index: 999;
    display: flex; 
    justify-content: center; 
    align-items: center;
    background: #000;
}

.landing-content {
    position: relative; 
    width: 85%; 
    max-width: 350px;
    border-radius: 30px; 
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    text-align: center;
}

.cover-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
}

#landing-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
    position: relative;
    z-index: 1;
}

/* Overlay & Tombol Play (Solusi agar tidak tertutup) */
.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none; /* Klik menembus overlay */
}

.start-btn {
    width: 80px; 
    height: 80px; 
    border-radius: 50%;
    background: #fff; 
    color: #000; 
    border: none;
    font-size: 2.2rem; 
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto; /* Tombol tetap bisa diklik */
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.start-btn:hover { transform: scale(1.1); }

.landing-info {
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0;
    padding: 40px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    z-index: 5;
}

.landing-info h1 { font-size: 1.6rem; margin-bottom: 5px; }
.landing-info p { opacity: 0.7; font-size: 0.9rem; }

/* =========================================
   2. MAIN PLAYER CONTAINER
   ========================================= */
.container {
    width: 90%; 
    max-width: 400px; 
    height: 100vh;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    padding: 20px 15px;
    z-index: 10;
}

.top-nav { 
    display: flex; 
    justify-content: space-between; 
    padding: 10px 0;
}

.icon-btn, .action-btn { 
    background: none; 
    border: none; 
    color: #fff; 
    font-size: 1.3rem; 
    cursor: pointer; 
    opacity: 0.6; 
    transition: 0.3s; 
}

.icon-btn:hover, .action-btn:hover { opacity: 1; }

/* ALBUM ART AREA */
.album-art-container { 
    text-align: center; 
    margin-top: 10px;
}

.album-cover { 
    width: 220px; 
    height: 220px; 
    border-radius: 20px; 
    object-fit: cover; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.6); 
    margin-bottom: 15px;
}

.song-info h1 { font-size: 1.4rem; font-weight: 600; }
.song-info p { opacity: 0.6; font-size: 0.9rem; }

/* =========================================
   3. LYRICS SYSTEM
   ========================================= */
#lyrics-container { 
    /* Menggunakan height tetap, bukan flex-grow agar konsisten di HP */
    height: 180px; 
    overflow-y: auto;
    margin: 10px 0;
    /* Padding atas/bawah dikurangi agar lirik tidak terlalu jauh dari tengah */
    padding: 60px 0; 
    text-align: center;
    /* Masking disesuaikan agar area transparan lebih sempit */
    mask-image: linear-gradient(transparent, #fff 40%, #fff 60%, transparent);
    -webkit-mask-image: linear-gradient(transparent, #fff 40%, #fff 60%, transparent);
}

#lyrics-container::-webkit-scrollbar { 
    display: none; 
}

.lyric-line { 
    font-size: 1rem; /* Sedikit diperkecil untuk layar HP */
    line-height: 1.4; 
    margin: 15px 0; /* Jarak antar baris dipersempit agar muat 3-4 baris */
    opacity: 0.25; 
    transition: all 0.6s ease;
    transform: scale(0.9);
}

.lyric-line.active { 
    opacity: 1; 
    transform: scale(1.05); /* Skala diperkecil sedikit agar tidak memakan tempat */
    color: #1DB954;
    font-weight: 600;
}

/* =========================================
   4. CONTROLS AREA
   ========================================= */
.player-controls { 
    width: 100%; 
    margin-top: auto; 
    margin-bottom: 60px; /* Ubah angka ini untuk mengatur ketinggiannya */
}

.progress-container { 
    width: 100%; 
    height: 5px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 10px; 
    cursor: pointer; 
    margin-bottom: 25px;
    position: relative;
}

.progress-bar { 
    width: 0%; 
    height: 100%; 
    background: #fff; 
    border-radius: 10px; 
}

.control-buttons { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 5px;
}

.play-btn { 
    width: 65px; 
    height: 65px; 
    border-radius: 50%; 
    background: #fff; 
    color: #000; 
    border: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.play-btn:active { transform: scale(0.9); }

/* =========================================
   5. OVERLAYS (PLAYLIST & SHARE)
   ========================================= */
.overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.85); 
    z-index: 1000; 
    display: none; 
    justify-content: center; 
    align-items: center; 
    backdrop-filter: blur(15px); 
}

.overlay-content { 
    background: #181818; 
    width: 90%; 
    max-width: 400px; 
    max-height: 80vh; 
    padding: 25px; 
    border-radius: 25px; 
    display: flex; 
    flex-direction: column; 
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#playlist-list { 
    overflow-y: auto; 
    list-style: none;
}

.playlist-item { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    padding: 10px; 
    margin-bottom: 10px; 
    border-radius: 12px; 
    cursor: pointer; 
    background: rgba(255,255,255,0.03); 
    transition: 0.3s; 
}

.playlist-item:hover { background: rgba(255,255,255,0.08); }
.playlist-item.active { background: rgba(29, 185, 84, 0.15); border: 1px solid #1DB954; }

.playlist-item img { width: 45px; height: 45px; border-radius: 8px; object-fit: cover; }

.playlist-info { flex-grow: 1; overflow: hidden; }
.song-title { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playing-now { color: #1DB954; font-size: 0.7rem; font-weight: bold; }

.share-options { display: flex; flex-direction: column; gap: 15px; }
.share-item { 
    padding: 15px; 
    border-radius: 15px; 
    background: #333; 
    border: none; 
    color: #fff; 
    cursor: pointer; 
    text-align: left; 
    font-size: 1rem;
}

/* RESPONSIVE */
@media (max-width: 480px) { 
    .album-cover { width: 180px; height: 180px; } 
    .container { padding: 15px; }
    .lyric-line { font-size: 1rem; }
}
```[cite: 4]