
/* ── Overlay ── */
#bmi-bn-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
#bmi-bn-overlay.open { display: block; }

/* ── Drawer panel ── */
#bmi-bn-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 72vw;
    min-width: 580px;
    max-width: 100vw;
    background: #0b1225;
    border-left: 1px solid rgba(212,175,55,.2);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    box-shadow: -8px 0 40px rgba(0,0,0,.5);
}
#bmi-bn-panel.open { transform: translateX(0); }

/* ── Header ── */
#bmi-bn-panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 48px;
    border-bottom: 1px solid rgba(212,175,55,.15);
    flex-shrink: 0;
}
.bmi-bn-panel-live {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f3f4f6;
    flex: 1;
}
.bmi-bn-panel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dc2626;
    flex-shrink: 0;
    animation: bmi-bn-pulse 1.5s infinite;
}
@keyframes bmi-bn-pulse { 0%,100%{opacity:1} 50%{opacity:.2} }
#bmi-bn-panel-archive {
    font-size: 14px;
    font-weight: 700;
    color: #0b1225 !important;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    background: #D4AF37;
    padding: 8px 18px;
    border-radius: 7px;
    letter-spacing: .3px;
    transition: background .15s;
}
#bmi-bn-panel-archive:hover { background: #e8c84a; color: #0b1225 !important; }
#bmi-bn-panel-close {
    background: rgba(255,255,255,.08);
    border: none;
    color: #9ca3af;
    font-size: 18px;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
#bmi-bn-panel-close:hover { background: rgba(255,255,255,.15); color: #f3f4f6; }

/* ── Body / news list ── */
#bmi-bn-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(212,175,55,.3) transparent;
}
#bmi-bn-panel-body::-webkit-scrollbar { width: 4px; }
#bmi-bn-panel-body::-webkit-scrollbar-thumb { background: rgba(212,175,55,.3); border-radius: 2px; }

.bmi-bn-di-group-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #D4AF37;
    padding: 16px 28px 8px;
}
.bmi-bn-di-entry {
    display: flex;
    gap: 20px;
    padding: 44px 52px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: background .12s;
    align-items: flex-start;
    cursor: default;
}
.bmi-bn-di-entry:hover { background: rgba(255,255,255,.04); }
.bmi-bn-di-time {
    font-size: 17px;
    font-weight: 700;
    color: #D4AF37;
    white-space: nowrap;
    padding-top: 4px;
    min-width: 56px;
    flex-shrink: 0;
}
.bmi-bn-di-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #374151;
    flex-shrink: 0;
    margin-top: 10px;
}
.bmi-bn-di-content { flex: 1; min-width: 0; }
.bmi-bn-di-headline {
    font-size: 28px;
    font-weight: 700;
    color: #f3f4f6 !important;
    line-height: 1.4;
    margin-bottom: 14px;
}
.bmi-bn-di-summary {
    font-size: 19px;
    color: #b0b8c8 !important;
    line-height: 1.85;
    margin-bottom: 18px;
}
.bmi-bn-di-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bmi-bn-di-cat {
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 4px;
    color: #fff !important;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.bmi-bn-di-source { font-size: 15px; color: #6b7280 !important; }
.bmi-bn-di-bullets {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bmi-bn-di-bullets li {
    font-size: 19px;
    color: #b0b8c8 !important;
    line-height: 1.55;
    padding-left: 22px;
    position: relative;
}
.bmi-bn-di-bullets li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #D4AF37;
    font-size: 13px;
    top: 2px;
}
.bmi-bn-di-readmore {
    font-size: 14px;
    font-weight: 700;
    color: #D4AF37 !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .15s;
}
.bmi-bn-di-readmore:hover { color: #e8c84a !important; }
.bmi-bn-di-empty {
    text-align: center;
    color: #4b5563;
    font-size: 14px;
    padding: 60px 20px;
}
@media (max-width: 600px) {
    /* Drawer voll bildschirmfüllend — left+right:0 statt width:100vw
       (100vw kann durch Scrollbar/Viewport-Discrepancy einen grauen
       Spalt rechts hinterlassen). border-left raus, sonst 1px Versatz. */
    #bmi-bn-panel {
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        border-left: none !important;
        box-sizing: border-box !important;
    }
    /* Header kompakter */
    #bmi-bn-panel-header {
        padding: 14px 14px !important;
        gap: 10px !important;
    }
    .bmi-bn-panel-live { font-size: 13px !important; letter-spacing: 1.5px !important; }
    #bmi-bn-panel-archive { font-size: 12px !important; padding: 6px 12px !important; }
    #bmi-bn-panel-close { width: 30px !important; height: 30px !important; font-size: 16px !important; }
    /* News-Einträge: viel weniger Padding + kleinere Typo */
    .bmi-bn-di-group-label { padding: 12px 14px 6px !important; font-size: 10px !important; }
    .bmi-bn-di-entry {
        padding: 16px 14px !important;
        gap: 10px !important;
    }
    .bmi-bn-di-time { font-size: 13px !important; min-width: 42px !important; padding-top: 2px !important; }
    .bmi-bn-di-dot { width: 8px !important; height: 8px !important; margin-top: 6px !important; }
    .bmi-bn-di-headline { font-size: 16px !important; line-height: 1.35 !important; margin-bottom: 8px !important; }
    .bmi-bn-di-summary { font-size: 14px !important; line-height: 1.55 !important; margin-bottom: 10px !important; }
    .bmi-bn-di-bullets li { font-size: 14px !important; line-height: 1.45 !important; padding-left: 18px !important; }
    .bmi-bn-di-bullets { margin-bottom: 10px !important; gap: 6px !important; }
    .bmi-bn-di-cat { font-size: 11px !important; padding: 3px 9px !important; }
    .bmi-bn-di-source { font-size: 12px !important; }
    .bmi-bn-di-readmore { font-size: 13px !important; }
}

/* ── Make entire breaking bar clickable ── */
#bmi-breaking-bar { cursor: pointer; }
#bmi-breaking-badge { cursor: pointer !important; }
