#facebookLivePanel[hidden], #facebookLivePanel [hidden] { display:none !important; }
#facebookLiveVideo { width:100%; max-width:1100px; margin:0 auto; aspect-ratio:16/9; background:#10151d; border-radius:12px; overflow:hidden; }
/* El SDK necesita un contenedor medible, pero no debe verse hasta reproducir. */
#facebookLivePanel { position:relative; }
#facebookLiveVideo.facebook-live-pending { position:absolute; top:0; left:0; opacity:0; pointer-events:none; overflow:hidden; margin:0!important; }
#facebookLiveVideo iframe { width:100%; height:100%; display:block; border:0; }
#facebookLiveBadge.facebook-live-active { color:#fff!important; background:#c91f38; padding:6px 12px; border-radius:999px; font-weight:700; animation:oxigeno-live-pulse 2s infinite; }
.facebook-live-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:18px 0 0; }
#facebookLiveGrid.cards-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
#facebookLiveGrid .social-panel { min-width:0; }
#facebookLiveGrid .facebook-embed { background:transparent; }
#facebookLiveGrid .facebook-embed iframe { border-radius:10px; }
#facebookLiveGrid .instagram-embed iframe { max-width:100%; }
.facebook-live-grid-active #facebookLivePanel { grid-column:1/-1; order:-1; min-width:0; }
.facebook-live-grid-active #facebookLivePanel .panel-heading h2 { font-size:clamp(22px,3vw,34px); }
.facebook-live-grid-active #facebookLivePanel .panel-heading { max-width:1100px; margin:0 auto 18px; }
@media(max-width:900px) { #facebookLiveGrid.cards-grid { grid-template-columns:minmax(0,1fr); } }
.facebook-live-notice { display:flex; align-items:center; gap:16px; width:100%; max-width:1100px; margin:0 auto; padding:22px; border:1px solid rgba(255,81,45,.55); border-radius:12px; background:linear-gradient(125deg,#261339,#241820 70%,#141722); color:#fff; box-sizing:border-box; }
.facebook-live-notice-icon { display:grid; place-items:center; flex:0 0 48px; width:48px; height:48px; border-radius:50%; background:linear-gradient(135deg,#ff9016,#ff482b); font-size:22px; }
.facebook-live-notice strong { display:block; font-size:clamp(18px,4.6vw,24px); line-height:1.2; }
.facebook-live-notice p { margin:8px 0 0; font-size:14px; line-height:1.45; color:#ddd9e4; }
.facebook-live-notice:not([hidden]) + #facebookLiveVideo:not([hidden]) { margin-top:12px; }
#facebookLiveVideo .fb-video { display:block; margin:0 auto; }
#facebookLivePlay:disabled { opacity:.55; cursor:wait; }
@media(max-width:480px) { .facebook-live-notice { padding:15px; gap:12px; } .facebook-live-actions .btn { text-align:center; width:100%; } }
@keyframes oxigeno-live-pulse { 50% { opacity:.65; } }
@media(prefers-reduced-motion:reduce) { #facebookLiveBadge.facebook-live-active { animation:none; } }
