/* ===== PROFILE VIDEO POSTER - SMALL & CENTERED ===== */

/* Video Wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    background: #000;
    aspect-ratio: 16 / 9; /* Proporsi video standar */
}

/* Profile Video */
.profile-video {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #1a1a2e;
    object-fit: cover; /* Video memenuhi frame */
}

/* Custom Poster Styling - Small & Centered */
.profile-video[poster] {
    background-color: #1a1a2e;
    background-image: url('images/logo bkn.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50px auto; /* Logo SANGAT KECIL */
}

/* Play Button - Centered */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.6);
}

.video-play-btn i {
    font-size: 32px;
    color: #1a1a1a;
    margin-left: 4px; /* Adjust icon position */
}

.video-play-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* When video is playing, hide play button */
.profile-video:not([poster]) + .video-play-btn {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .video-wrapper {
        display: block !important; /* Pastikan video wrapper tampil */
        visibility: visible !important;
    }
    
    .profile-video {
        display: block !important; /* Pastikan video tampil */
        visibility: visible !important;
    }
    
    .profile-video[poster] {
        background-size: 40px auto; /* Logo SANGAT KECIL di mobile */
    }
    
    .video-play-btn {
        width: 60px;
        height: 60px;
    }
    
    .video-play-btn i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .video-wrapper {
        display: block !important; /* Pastikan video wrapper tampil */
        visibility: visible !important;
    }
    
    .profile-video {
        display: block !important; /* Pastikan video tampil */
        visibility: visible !important;
    }
    
    .profile-video[poster] {
        background-size: 35px auto; /* Logo MINI */
    }
    
    .video-play-btn {
        width: 50px;
        height: 50px;
    }
    
    .video-play-btn i {
        font-size: 20px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .profile-video[poster] {
        background-size: 45px auto; /* Logo SANGAT KECIL di tablet */
    }
}

/* Desktop Large */
@media (min-width: 1025px) {
    .profile-video[poster] {
        background-size: 50px auto; /* Logo SANGAT KECIL di desktop */
    }
    
    .video-play-btn {
        width: 90px;
        height: 90px;
    }
    
    .video-play-btn i {
        font-size: 36px;
    }
}

/* Add subtle animation to logo */
@keyframes logoPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.profile-video[poster]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}

/* Ensure video controls are visible */
.profile-video::-webkit-media-controls-panel {
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
}

/* Ensure video fills the wrapper properly */
.video-wrapper video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Video memenuhi frame tanpa distorsi */
}
