 /*Root Variables mappings mimicking elegant dark aesthetics safely */
:root {
    --wplsp-bg: #0b0e14;
    --wplsp-sidebar: rgba(21, 26, 35, 0.7);
    --wplsp-btn-hover: rgba(59, 130, 246, 0.15);
    --wplsp-btn-active: #3b82f6;
    --wplsp-text: #f8fafc;
    --wplsp-text-muted: #64748b;
    --wplsp-border: rgba(255, 255, 255, 0.05);
    --wplsp-radius: 12px;
}

.wplsp-main-container {
    display: flex;
    flex-direction: row;
    direction: rtl;
    background: var(--wplsp-bg);
    border-radius: var(--wplsp-radius);
    border: 1px solid var(--wplsp-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    color: var(--wplsp-text);
    min-height: 500px;
}

 /*Sidebar Wrapper Layout */
.wplsp-sidebar {
    width: 30%;
    min-width: 250px;
    background: var(--wplsp-sidebar);
    border-left: 1px solid var(--wplsp-border);
    padding: 16px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/*.wplsp-section-hdr {*/
/*    font-size: 0.9rem;*/
/*    color: var(--wplsp-text-muted);*/
/*    margin: 0 0 12px 0;*/
/*    text-transform: uppercase;*/
/*    letter-spacing: 0.5px;*/
/*    font-weight: 600;*/
/*}*/

 /*Buttons Array Styling */
.wplsp-link-btn {
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    padding: 12px;
    border-radius: 8px;
    color: var(--wplsp-text);
    cursor: pointer;
    text-align: right;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    position: relative;
}

.wplsp-link-btn:hover:not(.disabled-btn) {
    background: var(--wplsp-btn-hover);
    border-color: rgba(59, 130, 246, 0.3);
}

.wplsp-link-btn.active {
    background: var(--wplsp-btn-active);
    border-color: var(--wplsp-btn-active);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.wplsp-link-btn span.icon img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin-left: 12px;
    background: rgba(255,255,255,0.1);
    padding: 2px;
}

.wplsp-stream-title {
    font-weight: 500;
    font-size: 0.95rem;
    flex-grow: 1;
}

.wplsp-live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation: wplspPulse 2s infinite ease-in-out;
    margin-left: 10px;
}

.wplsp-link-btn.active .wplsp-live-dot {
    background: #fff;
    box-shadow: 0 0 8px #fff;
}

/* Disabled UI Modifiers */
.wplsp-link-btn.disabled-btn {
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--wplsp-border);
}
.opacity-half {
    opacity: 0.4;
}

 /*Primary Iframe / Player Content Wrappers */
.wplsp-content-area {
    width: 70%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #000; /* Strictly black wrapper preventing iframe bleeding */
}

.wplsp-iframe-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wplsp-video-header {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(180deg, rgba(20,20,20,1) 0%, rgba(0,0,0,0) 100%);
    position: absolute; /* Floating header on top of iframe layer slightly */
    width: calc(70%) !important;
    pointer-events: none;
    z-index: 10;
}

.wplsp-video-header img {
    width: 28px;
    height: 28px;
    margin-left: 12px;
    background: rgba(0,0,0,0.5);
    border-radius: 6px;
    padding: 4px;
}

.wplsp-video-header h3 {
    margin: 0;
    color: #fff;
    /*font-size: 1.2rem;*/
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.wplsp-iframe-container iframe {
    flex-grow: 1;
    border: none;
    background: #000;
}

.wplsp-msg-error {
    text-align: center;
    color: var(--wplsp-text-muted);
    /*font-size: 1.1rem;*/
    padding: 40px;
}

 /*Animations */
@keyframes wplspPulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

 /*Responsiveness mappings strictly locking stack gracefully on mobiles */
@media screen and (max-width: 800px) {
    .wplsp-main-container {
        flex-direction: column;
    }
    .wplsp-sidebar {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid var(--wplsp-border);
        max-height: 220px;
    }
    .wplsp-content-area {
        width: 100%;
        min-height: 300px;
    }
    .wplsp-video-header {
        width: 100% !important;
    }
}
