/* planenews Live — floating white panel, visually aligned with hamburger menu. */
.libu-live-overlay-container {
    position: fixed;
    inset: 0;
    z-index: 100005;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
    font-family: Arial, Helvetica, sans-serif;
}
.libu-live-overlay-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.libu-live-overlay-container > .libu-live-floating-panel {
    position: relative;
    width: min(800px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    color: #252525;
    border-radius: 8px;
    box-shadow: 0 12px 36px rgba(0,0,0,.24);
    transform: translateY(-7px);
    transition: transform .18s ease;
}
.libu-live-overlay-container.active > .libu-live-floating-panel {
    transform: translateY(0);
}
.libu-live-floating-header {
    min-height: 42px;
    padding: 8px 12px 7px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.libu-live-logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #222;
    font: 700 14px/1.3 Arial, Helvetica, sans-serif;
}
.live-dot-indicator {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    background: #e00000;
    border-radius: 50%;
    animation: blinkLive 1s infinite;
}
@keyframes blinkLive { 0%,100%{opacity:1} 50%{opacity:.25} }
.libu-live-close-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    color: #555;
    cursor: pointer;
}
.libu-live-close-btn:hover { background: #e5e5e5; }
.libu-live-close-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}
.libu-live-content-scroll {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.libu-live-iframe-wrap {
    width: 100%;
    max-width: 760px;
    aspect-ratio: 16 / 9;
    background: #123B66;
    border-radius: 5px;
    overflow: hidden;
    margin: 0 auto 13px;
}
.libu-live-iframe-wrap iframe { display:block; width:100%; height:100%; border:0; }
.libu-yt-info-box { width:100%; max-width:760px; text-align:left; margin:0; }
.libu-yt-info-title {
    margin:0 0 9px;
    color:#222;
    font:700 16px/1.4 Arial,Helvetica,sans-serif;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.libu-yt-info-meta {
    display:flex;
    align-items:center;
    gap:9px;
    color:#666;
    font:500 12px/1.4 Arial,Helvetica,sans-serif;
}
.libu-yt-info-avatar {
    width:28px;
    height:28px;
    flex:0 0 28px;
    display:grid;
    place-items:center;
    background:#e00000;
    color:#fff;
    border-radius:50%;
}
.libu-yt-info-avatar svg { width:12px;height:12px;fill:currentColor; }
body.libu-live-is-open { overflow:hidden; }

body.custom-dark .libu-live-overlay-container > .libu-live-floating-panel { background:#fff; color:#252525; }
body.custom-dark .libu-live-floating-header { background:#fff; border-bottom-color:#eee; }
body.custom-dark .libu-live-logo-text,
body.custom-dark .libu-yt-info-title { color:#222; }
body.custom-dark .libu-yt-info-meta { color:#666; }

@media (max-width:600px) {
    .libu-live-overlay-container {
        align-items:flex-start;
        justify-content:center;
        padding:calc(env(safe-area-inset-top, 0px) + 8px) 10px 10px;
    }
    .libu-live-overlay-container > .libu-live-floating-panel {
        width:100%;
        max-height:calc(100vh - 20px);
        max-height:calc(100dvh - 20px);
        border-radius:7px;
    }
    .libu-live-floating-header { min-height:38px; padding:6px 10px 6px 14px; }
    .libu-live-content-scroll { padding:12px 12px 16px; }
    .libu-live-iframe-wrap { border-radius:4px; margin-bottom:11px; }
    .libu-yt-info-title { font-size:14px; }
}
@media (prefers-reduced-motion:reduce) {
    .libu-live-overlay-container,
    .libu-live-overlay-container > .libu-live-floating-panel { transition:none; }
    .live-dot-indicator { animation:none; }
}
