body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Mengatur item dari atas ke bawah */
    min-height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    margin-bottom: 30px;
    color: #333;
}

.music-box {
    position: relative;
    width: 70vw; /* 70% dari lebar viewport */
    max-width: 300px; /* Batasi ukuran maksimal untuk layar lebih besar */
    height: 70vw; /* Buat kotak persegi */
    max-height: 300px; /* Batasi ukuran maksimal */
    border: 2px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    text-align: center;
}

.music-box img {
    width: 100%; /* Gambar akan mengisi 100% lebar kotaknya */
    height: 100%; /* Gambar akan mengisi 100% tinggi kotaknya */
    object-fit: cover; /* Pastikan gambar mengisi kotak tanpa terdistorsi */
    display: block;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25%; /* Ukuran ikon relatif terhadap kotak */
    height: 25%;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.music-box.playing .play-icon {
    opacity: 0;
}

.play-icon::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 15px solid transparent; /* Ukuran segitiga disesuaikan */
    border-bottom: 15px solid transparent;
    border-left: 25px solid #fff;
    margin-left: 5px;
}

.lyrics-container {
    width: 90%; /* Lebar kontainer lirik */
    max-width: 600px; /* Batas lebar maksimum */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: none; /* Hidden by default */
    /* Menggunakan Flexbox untuk menengahkan konten */
    display: flex; /* Default ke flex, akan diubah oleh JS */
    flex-direction: column;
    align-items: center; /* Pusat horizontal untuk konten */
    justify-content: center; /* Pusat vertikal untuk konten (jika ada ruang) */
    text-align: center; /* Teks di tengah */
    font-size: 1em; /* Ukuran font disesuaikan untuk HP */
    min-height: 150px; /* Tinggi minimum agar terlihat rapi */
}

.lyrics-container h2 {
    margin-top: 0;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.lyrics-content {
    white-space: pre-wrap; /* Mempertahankan baris baru dari HTML */
    font-size: 1em; /* Ukuran font lirik */
    color: #555;
    line-height: 0;
    max-height: 250px; /* Batasi tinggi untuk scroll jika lirik terlalu panjang */
    overflow-y: auto; /* Aktifkan scroll vertikal jika konten melebihi max-height */
    width: 100%; /* Agar teks lirik mengisi lebar kontainer */
    box-sizing: border-box; /* Pastikan padding tidak menambah lebar */
    padding: 0 10px; /* Padding horizontal untuk teks agar tidak menempel ke tepi */
}

/* Media Queries untuk penyesuaian lebih lanjut pada layar yang lebih besar */
@media (min-width: 768px) {
    .music-box {
        width: 250px;
        height: 250px;
    }

    .play-icon {
        width: 80px;
        height: 80px;
    }

    .play-icon::before {
        border-top: 20px solid transparent;
        border-bottom: 20px solid transparent;
        border-left: 30px solid #fff;
        margin-left: 8px;
    }

    .lyrics-container {
        width: 80%;
        font-size: 1.1em;
    }

    .lyrics-container h2 {
        font-size: 1.5em;
    }
}