/* Mengatur background GIF */
body {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    background: url('https://img12.pixhost.to/images/1036/577758802_rizzhosting.jpg') no-repeat center center fixed;
    background-size: cover;
    backdrop-filter: blur(3.5px); /* Blur pada background */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Kontainer utama dengan efek glassmorphism */
.container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    width: 350px;
    color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Pemutar musik */
.player {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Tombol Play/Pause & Stop */
button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: rgba(255, 255, 255, 0.5);
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* Progress bar */
.progress-container {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    margin: 0 10px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #1db954;
    border-radius: 3px;
    transition: width 0.1s;
}

/* Daftar lagu */
ul {
    list-style: none;
    padding: 0;
}

li {
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

li:hover {
    background: rgba(255, 255, 255, 0.4);
}


.visualizer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    height: 50px;
    margin-top: 20px;
}

.visualizer span {
    width: 6px;
    height: 30px;
    background: #ff5722;
    display: inline-block;
    animation: bounce 1.5s infinite ease-in-out alternate;
}

.visualizer span:nth-child(1) { animation-delay: 0s; }
.visualizer span:nth-child(2) { animation-delay: 0.2s; }
.visualizer span:nth-child(3) { animation-delay: 0.4s; }
.visualizer span:nth-child(4) { animation-delay: 0.6s; }
.visualizer span:nth-child(5) { animation-delay: 0.8s; }

@keyframes bounce {
    0% { height: 10px; }
    100% { height: 40px; }
}


.fade-in {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

/* Animasi fade-out saat berpindah halaman */
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}


#playlist {
    max-height: 100px; /* Sesuaikan tinggi daftar lagu */
    overflow-y: auto; /* Menambahkan scrollbar jika lagu terlalu banyak */
    border: 1px solid #ccc; /* Opsional: biar tampilan lebih jelas */
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.5); /* Warna latar belakang transparan */
    list-style: none;
}



/* Gaya Tombol Req Lagu */
#reqLaguBtn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#reqLaguBtn:hover {
    background: #e65c00;
}

/* Gaya Pop-up */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 300px;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000; /* Pastikan popup ada di lapisan paling atas */
}

/* Overlay untuk membuat latar belakang gelap */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Efek gelap transparan */
    z-index: 999; /* Lebih rendah dari popup */
}

/* Saat pop-up muncul */
.popup.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Saat overlay muncul */
.popup-overlay.show {
    display: block;
}

/* Gaya Tombol Tutup */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: white;
}

.close-btn:hover {
    color: red;
}

/* Gaya Form */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, textarea {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
}

button[type="submit"] {
    background: #00cc66;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

button[type="submit"]:hover {
    background: #00994d;
}


/* Pastikan hanya tombol request lagu yang berwarna oranye */
.request-lagu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: orange !important; /* Pakai !important untuk mencegah override */
    color: black !important;
    padding: 10px 18px;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(255, 165, 0, 0.3);
    z-index: 10;
}

/* Efek hover */
.request-lagu-btn:hover {
    background: #ff9800 !important;
    transform: scale(1.05);
}

/* Perbaiki warna elemen lain yang ikut berubah */
button, .playlist-item {
    background: #444 !important; /* Kembalikan warna default */
    color: white !important;
}

/* Responsif */
@media (max-width: 600px) {
    .request-lagu-btn {
        top: 15px;
        right: 15px;
        font-size: 12px;
        padding: 8px 14px;
    }
}


/* Style untuk judul website */
.site-title {
    font-family: 'Audiowide', cursive;
    font-size: 3rem;
    text-align: center;
    color: #ff8c00;
    text-shadow: 3px 3px 10px rgba(255, 140, 0, 0.8);
    margin-bottom: 10px;
    animation: glow 1.5s infinite alternate;
}

/* Animasi berkilau */
@keyframes glow {
    from {
        text-shadow: 3px 3px 10px rgba(255, 140, 0, 0.8);
    }
    to {
        text-shadow: 3px 3px 20px rgba(255, 140, 0, 1);
    }
}


.request-button {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.request-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}


footer {
    background: rgba(0, 0, 0, 0.3); /* Transparan dengan warna hitam 30% */
    color: white; /* Warna teks */
    text-align: center; /* Pusatkan teks */
    padding: 15px 0; /* Ruang atas & bawah */
    font-size: 14px;
    position: fixed; /* Selalu di bawah */
    bottom: 0;
    width: 100%;
    backdrop-filter: blur(5px); /* Efek blur agar lebih estetik */
}

.creator-info {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    font-family: 'Winky Sans', sans-serif;
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 10px;
}

.creator-name {
    font-weight: bold;
    color: #ff9800; /* Warna oranye untuk menonjolkan nama */
}

.custom-label {
    background-color: red;
    color: white;
    font-size: 12px;
    padding: 2px 5px;
    margin-left: 10px;
    border-radius: 5px;
    font-weight: bold;
}
