body { padding-bottom: 110px; }
.bgsi-ad-label { display: none; font: 10px/18px "Lexend",sans-serif; color: #999; text-transform: uppercase; letter-spacing: .08em; }
.bgsi-ad-slot { max-width: 100%; margin: auto; position: relative; overflow: hidden; }
.bgsi-ad-side { position: fixed; box-sizing: border-box; z-index: 20; text-align: center; }
.bgsi-ad-side[hidden] { display: none !important; }
@media print { .bgsi-ad-side { display: none !important; } }

.bgsi-ad-slot > .report-link { top: auto !important; bottom: 0; }

body #IO.na-anchor-bottom{z-index:40!important}
body:has(dialog:modal) #IO.na-anchor-bottom,body.mobile-keyboard-open #IO.na-anchor-bottom{visibility:hidden!important;pointer-events:none!important}
@media(max-width:760px){
  .mobile-app-ready body #IO.na-anchor-bottom{bottom:var(--mobile-hud-height,76px)!important}
  .mobile-app-ready body{padding-bottom:calc(110px + var(--mobile-hud-height,76px))!important}
}

body.home-refined.home-view{height:auto}
body.home-refined.home-view main.home{flex:0 0 auto;min-height:auto;max-height:none}

body [id="floating player"].nitro-floating-bottom{bottom:var(--bgsi-video-bottom,0px)!important}
@media(max-width:760px){
  .mobile-app-ready body [id="floating player"].nitro-floating-bottom{bottom:max(var(--bgsi-video-bottom,0px),calc(var(--mobile-hud-height,76px) + 12px))!important}
}

/* Keep the SDK canvas at its native size and shrink the complete player together. */
@media(max-width:760px){
  body [id="floating player"].nitro-floating-container{
    transform:scale(.6)!important;
    transform-origin:bottom right;
  }
  body [id="floating player"] .nitro-floating-closer{
    transform:scale(1.666667);
    transform-origin:top left;
  }
  body [id="floating player"] .nitro-standalone-control{
    transform:scale(1.666667);
    transform-origin:bottom left;
  }
}

.bgsi-ad-inline{box-sizing:border-box;max-width:100%;min-height:280px;margin:24px auto;padding:6px 0;text-align:center;clear:both}.bgsi-ad-inline[hidden]{display:none!important}.bgsi-ad-inline>.bgsi-ad-label{display:block;margin-bottom:6px}.bgsi-ad-inline>.bgsi-ad-slot{max-width:100%;min-height:250px}.bgsi-page-guide{margin:18px 0;padding:16px 18px;border:1px solid var(--paint-line-a15,#ffffff20);border-radius:12px;color:var(--paint-text-muted,#aaa);font:12px/1.7 "Lexend",sans-serif}.bgsi-page-guide h2,.bgsi-page-guide summary{margin:0 0 6px;font-size:13px;font-weight:600;color:var(--paint-text,#eee)}.bgsi-page-guide p{margin:0}.bgsi-page-guide summary{cursor:pointer}.bgsi-page-guide details p{margin-top:8px}.leaderboard-panel-header .bgsi-leaderboard-intro{margin:10px 0 0;max-width:680px;font-size:12px;line-height:1.7;color:var(--paint-text-muted,#aaa)}@media(max-width:760px){.bgsi-ad-inline{margin:20px auto}.bgsi-page-guide{padding:12px 14px}}

/* Reserve every in-flow ad before the SDK arrives; no-fill and refresh keep this space. */
.bgsi-ad-inline-reserve{box-sizing:border-box;height:334px;min-height:334px;max-height:334px;max-width:100%;display:flex;align-items:center;justify-content:center;overflow-anchor:none;grid-column:1/-1}
.bgsi-ad-inline-reserve>.bgsi-ad-inline{margin:0;padding:0;height:294px;min-height:294px;max-height:294px;flex:none;overflow-anchor:none}
.bgsi-ad-inline-reserve .bgsi-ad-slot{overflow-anchor:none}
[id="IO"],[id="floating player"],.bgsi-ad-side{overflow-anchor:none}
@media(max-width:760px){html[data-ad-layout-cohort="video"] .bgsi-ad-inline-reserve{display:none}.bgsi-ad-inline-reserve>.bgsi-ad-inline{margin:0}}
@media(max-width:339px){.bgsi-ad-inline-reserve{display:none}}

/* og.bgsi.io: no in-content ads, so no reserved space in the middle of pages. */
.bgsi-ad-inline-reserve,[data-bgsi-inline-reserve]{display:none!important}
