/* ADT HOUSE ADS — overlay styles. Fully namespaced (.adt-*) so the slot
   can drop into any of Joel's pages without colliding with site CSS
   (including the #siteIntro overlays the intro program uses). */
.adt-overlay {
  position: fixed; inset: 0; z-index: 2147483000;
  background: rgba(2, 2, 6, 0.92);
  display: flex; align-items: center; justify-content: center;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.adt-stage {
  position: relative; width: min(960px, 94vw);
  aspect-ratio: 16 / 9; max-height: 88vh;
  background: #000; border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
  cursor: pointer;
}
.adt-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; object-fit: contain; background: #000;
}
/* AD LABEL + SKIP LAW (Joel, Oct 30, 2026): the playing ad carries a
   big blinking "AD" badge in the CENTER of the stage and a BIG skip
   pill at bottom-center. The countdown runs on that same pill before
   it turns into the skip button. No corner label, no corner skip. */
.adt-adbadge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: rgba(0, 0, 0, 0.72);
  border: 2px solid #C9A227; border-radius: 12px;
  padding: 10px 28px 9px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.adt-adbadge-word {
  font-size: clamp(34px, 7vw, 64px); font-weight: 900;
  letter-spacing: 0.18em; line-height: 1; color: #E3BC3F;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
  animation: adtBlink 1s steps(1, end) infinite;
}
.adt-adbadge-sub {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fff; opacity: 0.92;
  max-width: 60vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@keyframes adtBlink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .adt-adbadge-word { animation: none; }
}
.adt-countdown {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 3; white-space: nowrap;
  background: rgba(0, 0, 0, 0.88); color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-size: 17px; font-weight: 700;
  padding: 14px 32px; border-radius: 999px; pointer-events: none;
}
.adt-skip {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 4; white-space: nowrap;
  background: #C9A227; color: #000; border: 0;
  font-size: 21px; font-weight: 900; letter-spacing: 0.03em;
  padding: 16px 40px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
}
.adt-skip:active { transform: translateX(-50%) scale(0.97); }
.adt-unmute {
  position: absolute; bottom: 12px; left: 12px; z-index: 4;
  background: rgba(0, 0, 0, 0.85); color: #fff; border: 1px solid rgba(255,255,255,0.4);
  font-size: 13px; font-weight: 600;
  padding: 8px 12px; border-radius: 6px; cursor: pointer;
}
.adt-tap {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 4;
  background: #fff; color: #000; border: 0;
  font-size: 16px; font-weight: 700;
  padding: 12px 22px; border-radius: 8px; cursor: pointer;
}
@media (max-aspect-ratio: 3/4) {
  /* Portrait phones: let vertical creatives use the height. */
  .adt-stage { aspect-ratio: auto; height: min(88vh, 177vw); }
}

/* ---- Arrival banner-slot mode (Joel's ruling, Oct 30, 2026) ----
   The arrival commercial runs IN the page's top banner spot: the
   banner element gets .adt-banner-off while the break runs, and the
   slot host (sized to the banner's own box by house-ads.js) holds an
   in-flow stage. No fixed overlay is involved on arrival. */
.adt-banner-off { display: none !important; }
.adt-slothost { display: block; }
.adt-slot { width: 100%; }
.adt-stage--slot {
  width: 100%; max-height: 88vh;
  border-radius: 0; box-shadow: none;
}
.adt-stage--slot.adt-stage--portrait {
  aspect-ratio: 9 / 16; width: min(100%, 46vh); margin: 0 auto;
  height: auto; max-height: 82vh;
}
@media (max-aspect-ratio: 3/4) {
  /* In slot mode the tall stage must follow the creative, not the
     overlay rule above: portrait creatives get the 9/16 stage;
     landscape creatives keep 16/9. */
  .adt-stage--slot { aspect-ratio: 16 / 9; height: auto; }
  .adt-stage--slot.adt-stage--portrait { aspect-ratio: 9 / 16; height: auto; }
}
