/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to right, #5a189a, #240046);
}

/* HEADER */
header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #222, #111); /* Warna lebih harmonis */
    color: #ffcc00; /* Warna emas agar lebih kontras */
    padding: 15px 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 120px;
}

.logo img {
    width: 40px;
    height: auto;
}

/* MENU NAVIGASI */
.nav-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding-right: 120px;
}

.nav-menu li a {
    text-decoration: none;
    color: #ffcc00; /* Warna emas */
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-menu li a:hover {
    background: rgba(255, 204, 0, 0.2);
}

/* RESPONSIF MENU HEADER */
@media (max-width: 768px) {
    header {
        padding: 10px 30px;
    }

    .logo {
        margin-left: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding-right: 15px;
    }
}

/* LIVE MEDIA PLAYER */
.video-player {
    position: relative;
    width: 80%;
    max-width: 860px;
    height: 480px;
    background: url("images/thumb.png") no-repeat center center;
    background-size: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* INDIKATOR LIVE & LOGO DI SAMPING */
.live-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    color: red;
}

.red-dot {
    width: 15px;
    height: 15px;
    background: red;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.logo-live {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-live img {
    width: 50px;
    height: auto;
}

/* RESPONSIF UNTUK MOBILE */
@media (max-width: 768px) {
    .video-player {
        width: 95%;
        height: 400px;
    }

    .live-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 5px 10px;
    }

    .logo-live img {
        width: 40px;
    }
}

/* TOMBOL PLAY */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.play-button img {
    width: 80px;
    height: auto;
}

/* MENU KONTROL */
.controls {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 20px;
    flex-direction: row;
}

/* RESPONSIF MENU KONTROL */
@media (max-width: 768px) {
    .controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .control-btn img {
        width: 40px;
    }
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.control-btn img {
    width: 30px;
    height: 30px;
    transition: transform 0.2s ease;
}

.control-btn:hover img {
    transform: scale(1.1);
}

/* PROGRESS BAR */
.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    position: relative;
    margin-top: auto;
}

.progress {
    width: 70%;
    height: 100%;
    background: red;
    border-radius: 5px;
}

.progress-thumb {
    position: absolute;
    top: -5px;
    left: 70%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: red;
}

/* FOOTER */
footer {
    margin-top: 50px;
    width: 100%;
    text-align: center;
    background: black;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
}

/* RESPONSIF FOOTER */
@media (max-width: 768px) {
    footer {
        padding: 15px;
        font-size: 14px;
    }
}
/* POPUP CONTAINER */
.popup {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 16 / 9; /* Mengikuti proporsi layar */
    width: 60%;
    background: url("/images/pop.png") no-repeat center center;
    background-size: cover;
    padding: 30px;
    text-align: center;
    z-index: 1000;
    border: none;
    box-shadow: none;
}

/* TEKS DI DALAM POPUP */
.popup p {
    font-size: 14px;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* Efek bayangan teks */
    font-weight: bold; /* Membuat teks lebih menonjol */
    margin-bottom: 20px; /* Memberikan jarak antara teks dan tombol */
}

/* TOMBOL LOGIN & REGISTER */
.popup-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px; /* Memberikan jarak antara tombol */
    margin-top: 20px;
}

.popup-buttons button {
    width: 20%;
    background: red;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
}

/* Efek saat tombol diklik */
.popup-buttons button:hover {
    background: darkred;
    transform: scale(1.05);
}


.popup-buttons button:hover {
    background: darkred;
    transform: scale(1.05);
}

/* RESPONSIF UNTUK MOBILE */
@media (max-width: 768px) {
    .popup {
        width: 90%;
        padding: 20px;
    }

    .popup-buttons button {
        font-size: 14px;
        padding: 10px;
    }
}