/* ─── Live Homepage Broadcast — Frontend Styles ──────────────────────────── */

/* ── Open-modal button ───────────────────────────────────────────────────── */
.lhb-open-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: 4px;
    background: #d63638;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.lhb-open-modal-btn:hover {
    background: #b32d2e;
}

/* ── Modal overlay ───────────────────────────────────────────────────────── */
.lhb-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lhb-modal-overlay.lhb-modal-open {
    display: flex;
}

.lhb-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 720px;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}

.lhb-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    width: 32px;
    height: 32px;
    line-height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    text-align: center;z-index:9999
}

.lhb-modal-close:hover {
    background: rgba(0, 0, 0, .85);
}

.lhb-player-wrap {
    position: relative;
    width: 100%;
}

/* ── Video container ──────────────────────────────────────────────────────── */
#lhb-video-container {
    width: 100%;
}

#lhb-video-container[style*="display: none"],
#lhb-video-container[style*="display:none"] {
    visibility: hidden !important;
    pointer-events: none !important;
}

#lhb-video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Embed code (YouTube/Vimeo iframes) fill the container */
#lhb-video-container iframe {
    width: 100%;
    display: block;
}

/* ── Live container ───────────────────────────────────────────────────────── */
#lhb-live-container {
    display: none;
    width: 100%;
    background: #0a0a0a;
    border-radius: 4px;
    overflow: hidden;
}

.lhb-live-visual {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #fff;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}

.lhb-live-icon {
    font-size: 48px;
    line-height: 1;
    animation: lhb-icon-pulse 2s ease-in-out infinite;
}

@keyframes lhb-icon-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.08); opacity: .85; }
}

.lhb-live-label {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lhb-live-sublabel {
    font-size: 13px;
    color: rgba(255,255,255,.6);
}

/* ── Live badge (top-right overlay) ──────────────────────────────────────── */
#lhb-live-badge {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    background: #d63638;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    animation: lhb-badge-pulse 1.4s ease-in-out infinite;
    z-index: 10;
}

@keyframes lhb-badge-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .6; }
}

/* ── Audio controls (shown during live) ──────────────────────────────────── */
.lhb-audio-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #111;
    flex-wrap: wrap;
}

#lhb-audience-mute {
    padding: 5px 14px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #222;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s;
}

#lhb-audience-mute:hover {
    background: #333;
}

#lhb-audience-volume {
    width: 90px;
    accent-color: #60a5fa;
    cursor: pointer;
}

.lhb-vol-label {
    font-size: 12px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 6px;
}

#lhb-live-status {
    font-size: 12px;
    color: #aaa;
    margin-left: auto;
}

#lhb-live-status.lhb-status-live {
    color: #4ade80;
}
