/* src/css/livestream.css */

/* --- 1. WRAPPER UTAMA --- */
.livestream {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4rem 1.5rem;
    margin-bottom: 2rem;
    background-color: #0f172a !important;
    text-align: center;
    overflow: hidden;
}

.livestream h2 {
    font-family: var(--sacramento);
    font-size: 2.8rem;
    color: var(--heading-text-color);
    margin-bottom: 0.5rem;
}

.livestream p {
    color: var(--main-text-color);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* --- 2. WRAPPER VIDEO --- */
.cinema-frame-wrapper {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    border: 1px solid var(--accent-color);
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    background: #000;
    z-index: 5;
    
    /* Agar rasio cover pas */
    display: flex;
    flex-direction: column;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    background-color: #000;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 10;
}

/* --- 3. CUSTOM COVER & PLAY BUTTON (SOLUSI TOMBOL TENGAH) --- */
.video-cover {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    
    /* Background Cover: Gradasi Gelap Elegan */
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20; /* Di atas iframe */
    cursor: pointer;
    transition: opacity 0.5s ease;
}

/* Class untuk menyembunyikan cover saat video diputar */
.video-cover.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* Lingkaran Tombol Play */
.custom-play-btn {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--accent-color); /* Warna Emas */
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    position: relative;
}

/* Icon Segitiga Play */
.custom-play-btn i {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-left: 5px; /* Adjust optical center */
}

/* Efek Hover/Pulse */
.video-cover:hover .custom-play-btn {
    transform: scale(1.1);
    background-color: rgba(212, 175, 55, 0.1);
}

.custom-play-btn::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.3);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* --- 4. ORNAMEN & BADGE --- */
.live-badge {
    position: absolute;
    top: -15px; 
    right: 15px; 
    z-index: 30; 
    pointer-events: none; 
    
    background-color: #A92D39; 
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 8px; height: 8px;
    background-color: #fff;
    border-radius: 50%;
    animation: blink-live 1.5s infinite;
}

@keyframes blink-live { 0% {opacity:1} 50% {opacity:0.5} 100% {opacity:1} }

.ornamen-live {
    position: absolute;
    width: 150px;
    z-index: 1;
    opacity: 0.7;
    pointer-events: none;
}
.live-orn-top-left { top: -20px; left: -20px; transform: rotate(180deg); }
.live-orn-bot-right { bottom: -20px; right: -20px; }

.livestream-actions { margin-top: 2rem; }