/**
 * Referensi Aktual YouTube Live Stream Styles
 * Mendukung Tampilan Portrait (9:16), Landscape (16:9), & Layar Penuh (Fullscreen)
 */

/* WIDGET CONTAINER */
.widget-ra-live-box {
    background: #0F172A !important;
    border: 2px solid #8B0000 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(139, 0, 0, 0.3) !important;
    margin-bottom: 25px !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

.widget-ra-live-box:hover {
    box-shadow: 0 10px 30px rgba(166, 25, 46, 0.45) !important;
    border-color: #A6192E !important;
}

/* HEADER BAR */
.ra-live-header {
    background: linear-gradient(90deg, #8B0000 0%, #A6192E 100%);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.ra-live-badge-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ra-live-pulsing-dot {
    width: 10px;
    height: 10px;
    background-color: #FFFFFF;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #FFFFFF;
    animation: raDotGlow 1.2s infinite ease-in-out;
}

@keyframes raDotGlow {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.ra-live-badge-text {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ra-live-expand-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.ra-live-expand-btn:hover {
    background: #FFFFFF;
    color: #8B0000;
    transform: scale(1.08);
}

/* TITLE & SUBTITLE */
.ra-live-title-box {
    padding: 12px 14px 10px;
    background: #141E33;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ra-live-main-title {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #F8FAFC;
    margin: 0 0 3px;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.ra-live-subtitle {
    font-size: 11.5px;
    color: #D4AF37;
    font-weight: 600;
    display: block;
    line-height: 1.3;
}

/* VIDEO CONTAINER (PORTRAIT VS LANDSCAPE) */
.ra-live-video-container {
    position: relative;
    width: 100%;
    background: #000000;
    overflow: hidden;
}

/* Aspect Ratio Portrait (9:16) */
.ra-live-video-container.aspect-portrait {
    aspect-ratio: 9 / 16;
    max-height: 520px;
}

/* Aspect Ratio Landscape (16:9) */
.ra-live-video-container.aspect-landscape {
    aspect-ratio: 16 / 9;
}

.ra-live-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* UNMUTE / SOUND HELPER */
.ra-live-sound-helper {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.85);
    color: #F8FAFC;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 2;
    white-space: nowrap;
    opacity: 0.9;
}

/* INFO BAR (STREAM TITLE) */
.ra-live-info-bar {
    padding: 10px 14px;
    background: #0F172A;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ra-live-stream-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #CBD5E1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.ra-live-stream-name i {
    color: #DC2626;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ACTIONS BAR */
.ra-live-actions-bar {
    padding: 10px 14px 14px;
    background: #0F172A;
    display: flex;
    gap: 8px;
}

.ra-live-btn-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ra-live-btn-action.ra-btn-fs {
    background: linear-gradient(135deg, #8B0000 0%, #A6192E 100%);
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(139, 0, 0, 0.4);
}

.ra-live-btn-action.ra-btn-fs:hover {
    background: linear-gradient(135deg, #A6192E 0%, #8B0000 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(166, 25, 46, 0.6);
}

.ra-live-btn-action.ra-btn-yt {
    background: #1E293B;
    color: #E2E8F0 !important;
    border: 1px solid #334155;
}

.ra-live-btn-action.ra-btn-yt:hover {
    background: #DC2626;
    color: #FFFFFF !important;
    border-color: #DC2626;
    transform: translateY(-1px);
}

/* =======================================================
   FULLSCREEN THEATER MODAL OVERLAY
   ======================================================= */
.ra-live-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

.ra-live-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.ra-live-modal-window {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    background: #0F172A;
    border: 2px solid #8B0000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 0, 0, 0.4);
    animation: raModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Special Portrait sizing for Modal */
.ra-live-modal-window.mode-portrait {
    max-width: 500px;
}

@keyframes raModalPop {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.ra-live-modal-topbar {
    background: #090E17;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.ra-live-modal-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #F8FAFC;
    font-size: 13px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

.ra-live-modal-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #F8FAFC;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ra-live-modal-close-btn:hover {
    background: #DC2626;
    border-color: #DC2626;
    color: #FFFFFF;
}

.ra-live-modal-video-wrap {
    position: relative;
    width: 100%;
    background: #000;
}

.ra-live-modal-video-wrap.aspect-portrait {
    aspect-ratio: 9 / 16;
    max-height: 80vh;
}

.ra-live-modal-video-wrap.aspect-landscape {
    aspect-ratio: 16 / 9;
}

.ra-live-modal-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* RESPONSIVE OPTIMIZATION */
@media (max-width: 768px) {
    .ra-live-video-container.aspect-portrait {
        max-height: 480px;
    }
    .ra-live-modal-window.mode-portrait {
        max-width: 100%;
    }
    .ra-live-actions-bar {
        flex-direction: column;
    }
}
