/* Ads: the right rail, fixed-size slots, the house ads, and the rewarded-ad player. */

/* ---- Page body: the page and (on wide desktop screens) the right rail ---- */
.bz-body { flex: 1; display: flex; align-items: flex-start; min-width: 0; }
.bz-body > #main { flex: 1; min-width: 0; }
bz-ad-rail { display: none; }
@media (min-width: 1240px) {
  bz-ad-rail:not([hidden]) { display: block; flex: none; width: 300px; margin: 28px 24px 56px 0; }
}
.bz-rail { display: flex; flex-direction: column; gap: 18px; }
bz-boost { display: block; }
bz-boost[variant="inline"] { display: flex; }

/* ---- Fixed-size slots are exactly their size; the label sits above the box ---- */
.bz-ad[data-fixed] { padding: 0; border: 0; background: transparent; width: fit-content; max-width: 100%; height: auto; gap: 4px; }
.bz-ad[data-fixed] .bz-ad__box { padding: 0; background: transparent; display: block; overflow: hidden; border-radius: 16px; min-height: 0; }
.bz-ad[data-size="tile"] { border-style: solid; padding: 0; overflow: hidden; }
.bz-ad[data-size="tile"] .bz-ad__label { padding: 10px 12px 0; }
.bz-ad[data-size="tile"] .bz-ad__box { padding: 0; background: transparent; display: block; border-radius: 0; }
.bz-ad[data-size="320x50"] .bz-ad__box { border-radius: 12px; }

/* ---- House ads ---- */
.hz {
  --hz-bg: linear-gradient(145deg, #2C3160 0%, #1A1D3A 100%);
  --hz-ink: #FFFFFF; --hz-sub: #D7DAEA; --hz-hi: #FFC93C;
  box-sizing: border-box; width: 100%; height: 100%; color: var(--hz-ink); background: var(--hz-bg);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px;
  padding: 18px; text-align: left; font-size: 14px; line-height: 1.35; position: relative; overflow: hidden;
}
.hz--signup { --hz-bg: linear-gradient(145deg, #2D63E8 0%, #1A3C9C 100%); --hz-hi: #FFFFFF; }
.hz--signup .hz__badge, .hz--signup .hz__cta, .hz--signup .hz__cta:hover { color: #1A3C9C; }
.hz--academy { --hz-bg: linear-gradient(145deg, #0A8F8F 0%, #0A5F5F 100%); --hz-hi: #FFFFFF; }
.hz::after { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.hz__badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 14px; background: var(--hz-hi); color: #1A1D3A; flex: none; }
.hz__badge .bz-icon { width: 22px; height: 22px; }
.hz--academy .hz__badge { color: #0A5F5F; }
.hz__badge--big { width: 64px; height: 64px; border-radius: 20px; }
.hz__badge--big .bz-icon { width: 34px; height: 34px; }
.hz__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--hz-hi); }
.hz__title { font-family: var(--font-head); font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--hz-ink); }
.hz__text { margin: 0; color: var(--hz-sub); font-size: 14px; }
.hz__points { list-style: none; margin: 6px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hz__points li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.hz__points .bz-icon { color: var(--hz-hi); flex: none; }
.hz__cta { display: inline-block; margin-top: 4px; padding: 10px 18px; border-radius: 14px; background: var(--hz-hi); color: #1A1D3A; font-weight: 600; text-decoration: none; box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.hz__cta:hover { color: #1A1D3A; filter: brightness(1.05); }
.hz--academy .hz__cta { color: #0A5F5F; }
.hz--academy .hz__cta:hover { color: #0A5F5F; }
.hz__cta--small { padding: 6px 12px; font-size: 13px; border-radius: 10px; margin: 0; white-space: nowrap; }

.hz--tall { padding: 28px 24px; justify-content: flex-start; gap: 12px; }
.hz--tall .hz__title { font-size: 30px; }
.hz--tall .hz__badge { margin-top: 12px; }
.hz--tall .hz__cta { margin-top: auto; align-self: stretch; text-align: center; padding: 14px; font-size: 16px; }
.hz--tall .hz__points { margin-bottom: 18px; }
.hz--tall::after { width: 220px; height: 220px; }

.hz--box { justify-content: center; }
.hz--box .hz__title { font-size: 22px; }
.bz-ad[data-size="tile"] .hz--box { min-height: 220px; padding: 20px; }
.bz-ad[data-size="tile"] .hz--box .hz__title { font-size: 26px; }

.hz--banner { flex-direction: row; align-items: center; gap: 10px; padding: 5px 10px; height: 50px; }
.hz--banner::after { display: none; }
.hz--banner .hz__badge { width: 32px; height: 32px; border-radius: 10px; }
.hz--banner .hz__badge .bz-icon { width: 18px; height: 18px; }
.hz__short { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 12px; line-height: 1.2; color: var(--hz-sub); }
.hz__short strong { color: var(--hz-ink); font-size: 13px; }

/* The video-like version: three scenes, a progress bar, and the same call to action */
.hz--video { width: 100%; height: auto; padding: 0; gap: 0; align-items: stretch; border-radius: 18px; }
.hz--video::after { display: none; }
.hz__stage { position: relative; min-height: 220px; display: flex; align-items: center; justify-content: center; padding: 20px; }
.hz__scene { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 20px; opacity: 0; transform: scale(.94); transition: opacity .5s ease, transform .5s ease; }
.hz__scene[data-on="true"] { opacity: 1; transform: none; }
.hz__scene[data-on="true"] .hz__badge { animation: hz-bob 2.4s ease-in-out infinite; }
.hz__scene .hz__title { font-size: 28px; }
.hz__paused { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12px; color: var(--hz-sub); opacity: 0; transition: opacity .2s; }
.hz--video.is-paused .hz__paused { opacity: 1; }
.hz__bar { height: 6px; background: rgba(255, 255, 255, .2); }
.hz__bar > span { display: block; height: 100%; width: 0; background: var(--hz-hi); }
.hz__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; flex-wrap: wrap; background: rgba(0, 0, 0, .18); }
@keyframes hz-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) {
  .hz__scene { transition: none; }
  .hz__scene[data-on="true"] .hz__badge { animation: none; }
}

/* ---- The rewarded-ad player dialog ---- */
.bz-dialog:has(.adp) { max-width: min(560px, calc(100vw - 32px)); }
.adp__host { border-radius: 18px; overflow: hidden; min-height: 120px; background: var(--soft); }
.adp__status { font-weight: 600; color: var(--muted); }
.adp__tick { width: 52px; height: 52px; border-radius: 16px; background: var(--teal-soft); color: var(--teal-ink); display: inline-flex; align-items: center; justify-content: center; }
.adp__tick .bz-icon { width: 28px; height: 28px; }

/* ---- The download ad on the play page ---- */
.bzp__prerollhost { border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 2px #2E3360; }
.bzp__preroll { width: min(560px, 100%); }
