/* Somente peças ativas nos cinco contêineres existentes; sem mover sidebar/clima. */
[data-ad-slot][data-ad-active]{position:relative;display:flex;flex-direction:column;padding:0!important;overflow:hidden;background:#052630!important}
[data-ad-active] .ad-live-label{flex:0 0 auto;font:700 8px/12px Arial,sans-serif;letter-spacing:1px;color:#e4bf78;text-align:center;background:#05202b;position:relative;z-index:1}
[data-ad-active] .ad-live-frame{flex:1;min-height:0;width:100%;overflow:hidden;position:relative}
[data-ad-active] .ad-live-slide{height:100%;width:100%}
[data-ad-active] .ad-live-slide[hidden]{display:none!important}
[data-ad-active] .ad-live-slide :is(a,picture){display:block;height:100%;width:100%}
[data-ad-active] .ad-live-slide img{display:block;height:100%;width:100%;object-fit:contain;object-position:center;background:#052630}
[data-ad-active] .ad-live-controls{position:absolute;right:3px;bottom:2px;display:flex;gap:3px;z-index:2}
[data-ad-active] .ad-live-controls button{font:700 10px/1.1 Arial,sans-serif;border:1px solid #b89555;background:#052630ef;color:#f5d88e;border-radius:3px;padding:3px 6px;cursor:pointer}
[data-ad-active] .ad-live-controls button:focus-visible{outline:2px solid #78dce2;outline-offset:2px}

[data-ad-slot="central-top"][data-ad-active]{height:68px}[data-ad-slot="central-01"][data-ad-active],[data-ad-slot="central-02"][data-ad-active]{height:99px}[data-ad-slot^="lateral-"][data-ad-active]{height:104px;min-height:104px}

/* Horizontal 02: arte inteira, largura total e altura proporcional. */
[data-ad-slot="central-01"][data-ad-active]{height:auto;min-height:0;align-self:start}
[data-ad-slot="central-01"][data-ad-active] .ad-live-frame{flex:none}
[data-ad-slot="central-01"][data-ad-active] .ad-live-slide,
[data-ad-slot="central-01"][data-ad-active] .ad-live-slide :is(a,picture,img){height:auto;width:100%;max-height:none}
/* O anúncio vizinho mantém sua altura própria quando a faixa 02 cresce. */
.bottom-ads:has(>[data-ad-slot="central-01"][data-ad-active])>[data-ad-slot="central-02"]{align-self:start}

/* Formatos oficiais H01/H02/H03/L01/L02: largura total, proporção real e arte inteira. */
[data-ad-slot][data-ad-active]{height:auto!important;min-height:0!important;aspect-ratio:auto!important;align-self:start}
[data-ad-active] .ad-live-frame{flex:none}
[data-ad-active] .ad-live-slide,
[data-ad-active] .ad-live-slide :is(a,picture,img){height:auto;width:100%;max-height:none}
[data-ad-slot="central-top"]:not([data-ad-active]){height:auto!important;min-height:0!important;aspect-ratio:6/1}
[data-ad-slot^="lateral-"]:not([data-ad-active]){height:auto;min-height:0;aspect-ratio:8/3;padding:12px}
.ad-bar>.institutional{height:auto!important;min-height:0;aspect-ratio:7/5}

/* I01 institucional: independente da publicidade comercial, arte 1120 × 800 integral. */
.ad-bar>.institutional[data-institutional-active]{padding:0;overflow:hidden;background:transparent}
.ad-bar>.institutional[data-institutional-active]>img{display:block;width:100%;height:auto;aspect-ratio:7/5;object-fit:contain;border-radius:8px}
