/* No inventory means no visible gap; preserve width for responsive SDK negotiation. */
.shared-ad-frame { min-width:0; height:0; overflow:hidden; margin:0; visibility:hidden; }
.shared-ad-frame--filled { height:auto; margin:24px 0; visibility:visible; }
.shared-ad-slot { min-width:0; max-width:100%; }
@media (prefers-reduced-motion:reduce) { .shared-ad-frame { transition:none; } }
/* Mobile: one slot per page. A completed chart owns the reading-end slot,
   including when another reading tab is selected (zero ads rather than a duplicate footer).
   The app adds/removes has-chart for render/reset; display:none also gives the
   existing SDK zero available width, stopping its hidden slot refresh/rotation. */
@media (max-width:767px) {
 body.has-chart [data-house-ad-slot="ziwei-home-footer"],
 body:not(.has-chart) [data-house-ad-slot="ziwei-reading-end"] { display:none !important; }
}
