/* CSS untuk index.php - Dikonsolidasikan */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow: hidden;
    height: 100%;
    width: 100%;
}

body {
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    background-color: var(--player-bg-color);
    color: var(--player-text-color);
}
/* === Css BADGE  === */
    .badge {
    background-color: var(--player-active-color);
    border-radius: 3px;
    color: #fff;
    margin-left: 4px;
    margin-right: 4px;
    padding: 3px 5px 3px 4px;
    font-weight: bold;
    text-transform: uppercase;
}




/* === GAYA UNTUK .notice (Player Notice Bar) DIPERBARUI === */
.notice {
    /* Warna teks tetap menggunakan variabel dari pengaturan */
    color: var(--player-notice-text-color-actual); 
    
    /* Latar belakang hitam solid */
    background-color: #000000; 
    
    /* Border kiri tetap menggunakan variabel dari pengaturan */
    border-left: 3px solid var(--player-active-color);
    
    /* Padding vertikal disesuaikan agar lebih pas dengan tinggi teks */
    /* Coba nilai yang lebih kecil, misal 6px atau 8px atas-bawah */
    padding: 8px 15px; 
    
    font-size: 0.9em;   
    line-height: 1.4; /* Jarak antar baris jika teks wrap, ini akan mempengaruhi tinggi per baris */
    text-align: left;    
    
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10; 
    box-sizing: border-box;

    word-wrap: break-word; 
    overflow-wrap: break-word; 
    /* Pastikan tidak ada min-height yang diset di sini atau di aturan lain yang menarget .notice */
}

/* Tombol Download (#downloadButton) akan tetap menggunakan gaya dari CSS Anda yang sudah ada, */
/* termasuk position:fixed. */
#downloadButton {
    position: fixed; 
    top: 75px;       
    left: 40px;      
    z-index: 1001;  
    background-color: var(--player-button-color); 
    color: var(--player-button-text-color); 
    border: none;
    padding: 10px 20px; 
    cursor: pointer;
    border-radius: 5px; 
    font-size: 1em;    
    font-weight: bold; 
    text-transform: uppercase; 
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    transform-origin: center; 
    border-left: 5px solid var(--player-active-color);
}

#downloadButton i {
    margin-right: 8px; 
    font-size: 1.1em; 
}

#downloadButton:hover {
    background-color: var(--player-active-color); 
    transform: translateY(-2px) scale(1.05); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); 
}

.effects-enabled.heartbeat-active #downloadButton {
    animation: heartbeat-effect-download 1.2s ease-in-out infinite;
}

.effects-enabled.shake-active #downloadButton {
    animation: shake-download 0.5s ease-in-out infinite;
}

.effects-enabled.bounce-active #downloadButton {
    animation: bounce-download 0.6s ease infinite;
}

.effects-enabled.rotate-active #downloadButton {
    animation: rotate-download 1s ease-in-out infinite;
}

.effects-enabled.flip-active #downloadButton {
    animation: flip-download 0.8s ease-in-out infinite;
}

.effects-enabled.zoom-active #downloadButton {
    animation: zoom-download 0.6s ease-in-out infinite;
}

.effects-enabled.fade-active #downloadButton {
    animation: fade-download 1s ease-in-out infinite;
}

#downloadButton:active {
    transform: translateY(0px) scale(1); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
/* === AKHIR PERUBAHAN BAGIAN NOTIFIKASI === */


.container {
    width: 100%;
    height: 100%; 
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* padding-top akan perlu disesuaikan dengan tinggi .notice yang baru */
    /* Jika .notice sekarang lebih pendek, padding-top bisa dikurangi */
    padding-top: 40px; /* CONTOH: Sesuaikan nilai ini! */
    box-sizing: border-box;
}

.video-container {
    position: relative;
    width: 100%;
    flex-grow: 1; 
    background-color: #000; 
    overflow: hidden;
    min-height: 300px;
    /* Kalkulasi height ini juga bergantung pada padding-top .container */
    height: calc(100% - 60px); 
}

/* ... (sisa CSS Anda dari .wallpaper hingga akhir @keyframes heartbeat-effect tetap sama) ... */
.wallpaper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block;
    pointer-events: none;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    transform-origin: center;
    pointer-events: auto; 
}

.play-button:hover {
    background-color: var(--player-active-color); 
    transform: translate(-50%, -50%) translateY(-2px) scale(1.05); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); 
}

.play-button i {
    font-size: 40px;
    color: var(--player-text-color);
}

.video-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: none;
    border: none;
    max-width: 100vw; 
    max-height: 100vh; 
    overflow: hidden;
}

.loading-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.2); 
    border-top-color: var(--player-active-color); 
    animation: spin 1s linear infinite;
    z-index: 3;
    display: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.server-buttons {
    display: none; 
    position: relative; 
    width: 100%;
    padding: 10px 40px; 
    overflow: hidden;
    height: 60px;
    text-align: center;
    background-color: var(--player-bg-color);
    box-sizing: border-box;
}

.server-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    gap: 10px;
    padding: 5px 0; 
    height: 100%; 
    align-items: center;
    justify-content: flex-start;
}

.server-scroll::-webkit-scrollbar {
    display: none; 
}

.server-button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s, transform 0.2s;
    flex-shrink: 0;
    font-size: 15px;
    min-width: 80px;
    text-transform: uppercase;
    font-weight: bold;
    background-color: var(--player-button-color);
    color: var(--player-button-text-color);
}

.server-button:hover {
    background-color: var(--player-active-color);
    transform: scale(1.05);
}

.server-button.active {
    background-color: var(--player-active-color);
    position: relative;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3), 0 0 25px var(--player-active-color);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    z-index: 5;
}



.server-button.active:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--player-active-color), rgba(255, 255, 255, 0.3), var(--player-active-color));
    border-radius: 6px;
    z-index: -1;
    animation: glow-border 2s ease-in-out infinite;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.7); 
    border: none;
    border-radius: 50%;
    display: flex; 
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 3;
    color: var(--player-text-color);
    opacity: 0.8; 
}

.scroll-left {
    left: 5px;
}

.scroll-right {
    right: 5px;
}

.error-message {
    color: var(--player-text-color);
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; 
    width: 100%;
    position: absolute; 
    top: 0;
    left: 0;
    z-index: 2; 
}

@media (max-width: 768px) {
    .notice {
        padding: 6px 12px; 
        font-size: 0.85em;  
        line-height: 1.4; 
        text-align: center; 
    }

    .container {
        padding-top: 35px; /* Sesuaikan dengan tinggi .notice mobile yang baru (lebih pendek) */
        padding-bottom: 50px; 
    }
    .video-container {
        height: calc(100vh - 35px - 50px); 
    }
    /* ... sisa media query Anda untuk tombol dan elemen lain ... */
    .play-button {
        width: 60px;
        height: 60px;
    }
    .play-button i {
        font-size: 30px;
    }
    .server-buttons {
        padding: 8px 35px; 
        height: 50px;
        position: fixed; 
        bottom: 0;
        left: 0;
        z-index: 10;
        border-top: 1px solid var(--player-button-color); 
        background-color: var(--player-bg-color); 
    }
    .server-button {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 60px;
        margin: 0 3px; 
    }
    .server-button.active { 
        background-color: var(--player-active-color);
        box-shadow: 0 0 5px var(--player-active-color);
        color: var(--player-button-text-color);
        border: 1px solid var(--player-button-color); 
        transform: scale(1.05);
        z-index: 5; 
    }
    .scroll-arrow {
        width: 25px;
        height: 25px;
        display: flex !important; 
        z-index: 20; 
    }
    .scroll-left { left: 5px; }
    .scroll-right { right: 5px; }
    #downloadButton { 
        padding: 6px 8px;
        font-size: 0.8em;
        top: 90px;
        left: 30px; 
    }
    #downloadButton i { 
        font-size: 1.2em; 
        margin-right: 8px; 
    }
}

@media (max-width: 480px) {
    .notice {
        font-size: 0.8em;
        padding: 5px 10px;
    }
    .container {
        padding-top: 30px; 
    }
     .video-container {
        min-height: 200px; 
        height: calc(100vh - 30px - 50px); 
    }
}

/* ... (sisa CSS Anda, termasuk body.embedded-page, dll.) ... */
body.embedded-page {
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.small-embed .container {
    padding-top: 30px !important; /* Sesuaikan jika .notice di embed lebih pendek */
}
body.small-embed .video-container { 
    height: calc(100% - 30px - 40px) !important; 
    min-height: 150px !important; 
}
body.small-embed .server-buttons {
    height: 40px !important;
    padding: 5px 30px !important; 
}
body.small-embed .server-button {
    padding: 4px 8px !important;
    font-size: 11px !important;
    min-width: 50px !important;
}
body.small-embed .notice {
    padding: 5px 8px !important; 
    font-size: 0.75em !important; 
    line-height: 1.3; 
}
body.small-embed #downloadButton {
    top: 90px; /* Sesuaikan agar tidak tertutup notice jika notice lebih pendek */
    left: 10px;
    font-size: 9px !important; 
    padding: 2px 4px !important;
}

@keyframes heartbeat-effect {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.07); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes heartbeat-effect-server {
    0% { transform: scale(1); }
    50% { transform: scale(1.07); }
    100% { transform: scale(1); }
}

@keyframes heartbeat-effect-download {
    0% { transform: translateY(-2px) scale(1.05); }
    50% { transform: translateY(-2px) scale(1.12); }
    100% { transform: translateY(-2px) scale(1.05); }
}

@keyframes shake-download {
    0%, 100% { transform: translateY(-2px) scale(1.05) translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateY(-2px) scale(1.05) translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateY(-2px) scale(1.05) translateX(3px); }
}

@keyframes bounce-download {
    0%, 20%, 60%, 100% {
        transform: translateY(-2px) scale(1.05);
    }
    40% {
        transform: translateY(-12px) scale(1.05);
    }
    80% {
        transform: translateY(-7px) scale(1.05);
    }
}



@keyframes glow-border {
    0% { 
        opacity: 0.5;
        background: linear-gradient(45deg, var(--player-active-color), rgba(255, 255, 255, 0.2), var(--player-active-color));
    }
    50% { 
        opacity: 0.8;
        background: linear-gradient(45deg, rgba(255, 255, 255, 0.4), var(--player-active-color), rgba(255, 255, 255, 0.4));
    }
    100% { 
        opacity: 0.5;
        background: linear-gradient(45deg, var(--player-active-color), rgba(255, 255, 255, 0.2), var(--player-active-color));
    }
}



/* Button Effect Classes */
.effects-enabled .server-button.active {
    animation: none;
    box-shadow: none;
    border: none;
    transform: scale(1);
}

.effects-enabled .server-button.active:before {
    display: none;
}

.effects-enabled.heartbeat-active .server-button.active {
    animation: heartbeat-effect-server 1.2s ease-in-out infinite;
}

.effects-enabled.heartbeat-active .play-button {
    animation: heartbeat-effect 1.2s ease-in-out infinite;
}

.effects-enabled.rotate-active .server-button:hover {
    animation: rotate-server 1s ease-in-out;
}

.effects-enabled.rotate-active .play-button {
    animation: rotate 1s ease-in-out infinite;
}

.effects-enabled.flip-active .server-button:hover {
    animation: flip-server 0.8s ease-in-out;
}

.effects-enabled.flip-active .play-button {
    animation: flip 0.8s ease-in-out infinite;
}

.effects-enabled.zoom-active .server-button:hover {
    animation: zoom-server 0.6s ease-in-out;
}

.effects-enabled.zoom-active .play-button {
    animation: zoom 0.6s ease-in-out infinite;
}

.effects-enabled.fade-active .server-button:hover {
    animation: fade-server 1s ease-in-out;
}

.effects-enabled.fade-active .play-button {
    animation: fade 1s ease-in-out infinite;
}

.effects-enabled.glow-active .server-button.active,
.effects-enabled.glow-active .play-button,
.effects-enabled.glow-active #downloadButton {
    box-shadow: 0 0 20px var(--player-active-color), 0 0 40px var(--player-active-color), 0 0 60px var(--player-active-color);
    animation: glow-pulse 2s ease-in-out infinite;
}

.effects-enabled.shake-active .server-button:hover {
    animation: shake-server 0.5s ease-in-out;
}

.effects-enabled.shake-active .play-button {
    animation: shake 0.5s ease-in-out infinite;
}

.effects-enabled.bounce-active .play-button {
    animation: bounce 0.6s ease infinite;
}



/* Additional Effect Keyframes */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px var(--player-active-color);
    }
    50% {
        box-shadow: 0 0 30px var(--player-active-color), 0 0 50px var(--player-active-color);
    }
}

@keyframes shake {
    0%, 100% { transform: translate(-50%, -50%) translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translate(-50%, -50%) translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translate(-50%, -50%) translateX(3px); }
}

@keyframes shake-server {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    40% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
    80% {
        transform: translate(-50%, -50%) translateY(-5px);
    }
}

@keyframes bounce-server {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

/* Rotate effect */
@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-server {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Flip effect */
@keyframes flip {
    0% {
        transform: translate(-50%, -50%) rotateY(0deg);
    }
    50% {
        transform: translate(-50%, -50%) rotateY(90deg);
    }
    100% {
        transform: translate(-50%, -50%) rotateY(0deg);
    }
}

@keyframes flip-server {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(90deg);
    }
    100% {
        transform: rotateY(0deg);
    }
}

/* Zoom effect */
@keyframes zoom {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes zoom-server {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Fade effect */
@keyframes fade {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fade-server {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Download button specific keyframes */
@keyframes rotate-download {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes flip-download {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(90deg);
    }
    100% {
        transform: rotateY(0deg);
    }
}

@keyframes zoom-download {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fade-download {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}




/* Effect Types Panel Disabled State */
.effect-types.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.effect-types.disabled .effect-option {
    opacity: 0.3;
}

/* Enhanced Button Hover States */
.effects-enabled .server-button:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.effects-enabled .play-button:hover {
    transform: translate(-50%, -50%) translateY(-2px);
    transition: all 0.3s ease;
}

.effects-enabled #downloadButton:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Default hover effects when effects are disabled */
body:not(.effects-enabled) .server-button:hover {
    opacity: 0.8;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

body:not(.effects-enabled) .play-button:hover {
    opacity: 0.8;
    transform: translate(-50%, -50%) translateY(-1px);
    transition: all 0.2s ease;
}

body:not(.effects-enabled) #downloadButton:hover {
    opacity: 0.8;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Responsive styles for mobile devices */
}