/* Ads on pulsedmc.net (tried out first on the /oldwebsite/adwebsite copy).
 *
 * On wide screens the whole site is drawn as a column in the middle and the ads
 * get the space either side of it: a 160px skyscraper on big monitors and a
 * 120px one on medium screens, kept slim so the site gets most of the width. Parts of the site run edge to edge (the hero, the Minecraft
 * scene, the footer), so ads floating over a full-width page would cover them;
 * narrowing the page keeps everything clear. Screens without the room get a
 * banner above the footer instead. The ads are samples for PulsedMC's own products,
 * standing in for whatever an ad network would serve.
 */

:root {
  --ads-top: 88px;           /* just under the 64px sticky nav, plus breathing room */
  --ads-gap: 16px;           /* space either side of an ad column */
  --ads-gutter: #06080c;     /* the area outside the page, behind the ads */
  --ads-bg: #10141d;
  --ads-line: rgba(255, 255, 255, .08);
  --ads-ink: #f3f5f9;
  --ads-ink-2: #aab2c0;
  --ads-ink-3: #6f7888;
  --ads-yellow: #f5c518;
}

/* ── side columns ───────────────────────────────────────────────────────── */
.ads-rail {
  display: none;
  position: fixed;
  top: var(--ads-top);
  z-index: 50;
  width: var(--ads-w);
  will-change: transform;
}
.ads-rail.is-left  { left: var(--ads-gap); }
.ads-rail.is-right { right: var(--ads-gap); }

/* The page becomes a column between the two ad spaces. It still has to fit the
   1160px content, so each size switches on only once there is room for it. */
@media (min-width: 1480px) {                 /* 120 × 600 skyscraper */
  :root { --ads-w: 120px; }
  .ads-rail { display: block; --ads-h: 600px; }
  html { background: var(--ads-gutter); }
  body {
    margin-inline: calc(var(--ads-w) + 2 * var(--ads-gap));
    min-height: 100vh;
    box-shadow: 0 0 0 1px var(--ads-line), 0 0 80px rgba(0, 0, 0, .7);
  }
}
@media (min-width: 1760px) {                 /* 160 × 600 skyscraper */
  :root { --ads-w: 160px; }
}
/* Anything the site sizes from the screen width has to follow the column now.
   The giant footer wordmark is 17% of the width; kept to 17% of the column. */
@media (min-width: 1480px) {
  .fx-wordmark { font-size: calc((100vw - 2 * (var(--ads-w) + 2 * var(--ads-gap))) * .17); white-space: nowrap; }
}
/* short windows: a 600px unit would run off the bottom */
@media (max-height: 740px) {
  .ads-rail { --ads-h: calc(100vh - var(--ads-top) - 24px); }
}

.ads-label {
  display: block;
  margin: 0 0 6px;
  font: 600 10px/1 'Inter', system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ads-ink-3);
  text-align: center;
}

.ads-unit {
  position: relative;
  width: var(--ads-w);
  height: var(--ads-h);
  overflow: hidden;
  border: 1px solid var(--ads-line);
  border-radius: 12px;
  background: var(--ads-bg);
}

/* ── one ad ─────────────────────────────────────────────────────────────── */
.ads-creative {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 18px 12px 16px;
  color: var(--ads-ink);
  text-decoration: none;
  background:
    radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--ad-accent) 26%, transparent), transparent 70%),
    linear-gradient(180deg, #121722, #0b0e15);
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.ads-creative.is-on { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.ads-creative:focus-visible { outline: 2px solid var(--ads-yellow); outline-offset: -4px; }

.ads-brand {
  display: flex; align-items: center; gap: 8px;
  font: 800 12px/1 'Archivo', 'Inter', system-ui, sans-serif; letter-spacing: -.01em;
}
.ads-brand img { width: 22px; height: 22px; object-fit: contain; }
.ads-brand b { color: var(--ads-yellow); }

.ads-art {
  flex: 1 1 auto;
  min-height: 0;
  display: grid; place-items: center;
}
.ads-art img {
  max-width: 78%; max-height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .55));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.ads-creative:hover .ads-art img { transform: translateY(-4px) scale(1.04); }

.ads-eyebrow {
  font: 700 10.5px/1.2 'Inter', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ad-accent);
}
.ads-title {
  margin: 0;
  font: 800 19px/1.08 'Archivo', 'Inter', system-ui, sans-serif; letter-spacing: -.02em;
  text-wrap: balance;
}
.ads-text {
  margin: 0;
  font: 500 12.5px/1.45 'Inter', system-ui, sans-serif;
  color: var(--ads-ink-2);
}
.ads-cta {
  align-self: stretch;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; border-radius: 9px;
  font: 700 12.5px/1 'Inter', system-ui, sans-serif;
  background: var(--ad-accent); color: #0b0e15;
  transition: filter .15s ease, transform .15s ease;
}
.ads-cta-short { display: none; }
.ads-creative:hover .ads-cta { filter: brightness(1.08); }
.ads-creative:active .ads-cta { transform: scale(.98); }

/* the 120px skyscraper: tighter still, the brand name gives way to the logo */
@media (max-width: 1759px) {
  .ads-creative { padding: 14px 9px 12px; gap: 9px; }
  .ads-brand span { display: none; }
  .ads-brand { justify-content: center; }
  .ads-eyebrow { font-size: 9px; letter-spacing: .08em; }
  .ads-title { font-size: 15.5px; }
  .ads-text { font-size: 11.5px; }
  .ads-cta { height: 34px; font-size: 11.5px; border-radius: 8px; white-space: nowrap; }
  .ads-rail .ads-cta-long { display: none; }
  .ads-rail .ads-cta-short { display: inline; }
}

/* dots showing which ad is up */
.ads-dots {
  display: flex; justify-content: center; gap: 5px; margin-top: 8px;
}
.ads-dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  transition: background .3s ease, width .3s ease;
}
.ads-dots i.is-on { width: 14px; border-radius: 3px; background: rgba(255, 255, 255, .45); }

/* ── banner for screens without room for side columns ──────────────────── */
.ads-banner {
  display: none;
  box-sizing: border-box;
  width: 100%;               /* pages whose body is a flex column would otherwise shrink it to its text */
  margin: 40px auto 8px;
  padding: 0 16px;
  max-width: calc(728px + 32px);
}
@media (max-width: 1479px) {
  .ads-banner { display: block; }
}
.ads-banner .ads-unit {
  width: 100%; height: 90px;
}
.ads-banner .ads-creative {
  flex-direction: row; align-items: center; gap: 16px;
  padding: 0 18px;
  background:
    radial-gradient(60% 140% at 0% 50%, color-mix(in srgb, var(--ad-accent) 24%, transparent), transparent 70%),
    linear-gradient(90deg, #121722, #0b0e15);
}
.ads-banner .ads-brand, .ads-banner .ads-eyebrow { display: none; }
.ads-banner .ads-art { flex: 0 0 58px; height: 58px; }
.ads-banner .ads-art img { max-width: 100%; }
.ads-banner .ads-copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ads-banner .ads-title { font-size: 19px; }
.ads-banner .ads-text { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ads-banner .ads-cta { flex: 0 0 auto; align-self: center; padding: 0 16px; height: 38px; }
/* phones: 320 × 50 mobile banner */
@media (max-width: 767px) {
  .ads-banner { max-width: calc(320px + 32px); margin-top: 28px; }
  .ads-banner .ads-unit { height: 50px; border-radius: 8px; }
  .ads-banner .ads-creative { gap: 8px; padding: 0 8px; }
  .ads-banner .ads-art { flex-basis: 30px; height: 30px; }
  .ads-banner .ads-title { font-size: 12.5px; line-height: 1.15; }
  .ads-banner .ads-text { display: none; }
  .ads-banner .ads-cta { padding: 0 9px; height: 28px; font-size: 11px; border-radius: 6px; }
}


/* ── "Your ad here" ─────────────────────────────────────────────────────── */
.ads-creative.ads-yours { background: #0e1219; gap: 12px; }
.ads-yours-frame {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 16px 10px; text-align: center;
  border: 1px dashed rgba(255, 255, 255, .16); border-radius: 10px;
  transition: border-color .2s ease, background-color .2s ease;
}
.ads-creative.ads-yours:hover .ads-yours-frame { border-color: rgba(245, 197, 24, .5); background: rgba(245, 197, 24, .03); }
.ads-yours-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  color: var(--ads-yellow); background: rgba(245, 197, 24, .1); box-shadow: inset 0 0 0 1px rgba(245, 197, 24, .25);
}
.ads-yours-icon svg { width: 26px; height: 26px; }
.ads-yours .ads-copy { display: flex; flex-direction: column; gap: 8px; }
.ads-yours .ads-title { font-size: 21px; }
.ads-yours .ads-text { color: var(--ads-ink-2); }
.ads-yours-size {
  font: 600 10.5px/1 "Inter", system-ui, sans-serif; letter-spacing: .08em; color: var(--ads-ink-3);
  padding: 5px 8px; border-radius: 999px; border: 1px solid var(--ads-line);
}
.ads-yours-size:empty { display: none; }
.ads-yours .ads-cta { background: var(--ads-yellow); }
@media (max-width: 1759px) {
  .ads-rail .ads-yours .ads-title { font-size: 17px; }
  .ads-rail .ads-yours-icon { width: 42px; height: 42px; }
  .ads-rail .ads-yours-icon svg { width: 21px; height: 21px; }
}

.ads-banner .ads-yours-frame {
  flex-direction: row; justify-content: flex-start; gap: 14px; padding: 0; text-align: left;
  border: 0; background: none;
}
.ads-banner .ads-creative.ads-yours:hover .ads-yours-frame { background: none; }
.ads-banner .ads-yours-icon { flex: 0 0 auto; width: 44px; height: 44px; }
.ads-banner .ads-yours-icon svg { width: 22px; height: 22px; }
.ads-banner .ads-yours .ads-copy { gap: 3px; }
.ads-banner .ads-yours .ads-title { font-size: 18px; }
.ads-banner .ads-yours-size { display: none; }
.ads-banner .ads-creative.ads-yours { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
@media (max-width: 767px) {
  .ads-banner .ads-yours-icon { width: 30px; height: 30px; }
  .ads-banner .ads-yours-icon svg { width: 16px; height: 16px; }
  .ads-banner .ads-yours .ads-title { font-size: 13px; }
  .ads-banner .ads-yours .ads-cta-long { display: none; }
  .ads-banner .ads-yours .ads-cta-short { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .ads-creative, .ads-creative.is-on, .ads-art img, .ads-dots i { transition: none; }
}

/* ══ Staff applications ═══════════════════════════════════════════════════
 * A gold card with a light running round its edge, a floating shield, a
 * Helper → Admin ladder that lights rung by rung, embers drifting up and a
 * shine across the button. Everything animates only while it is on show.
 */
@property --ads-spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.ads-creative.ads-staff {
  gap: 10px;
  background:
    radial-gradient(95% 42% at 50% 34%, rgba(245, 197, 24, .24), transparent 72%),
    radial-gradient(90% 30% at 50% 102%, rgba(255, 170, 30, .18), transparent 70%),
    linear-gradient(180deg, #17130a 0%, #0f0f10 42%, #0b0e15 100%);
}
/* the light running round the edge */
.ads-creative.ads-staff::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: 11px; padding: 1.5px;
  background: conic-gradient(from var(--ads-spin), transparent 0 58%, rgba(245, 197, 24, .15) 66%, #ffd84a 78%, rgba(245, 197, 24, .15) 88%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.ads-creative.ads-staff.is-on::before { animation: adsSpin 5s linear infinite; }
@keyframes adsSpin { to { --ads-spin: 360deg; } }
.ads-staff > * { position: relative; z-index: 1; }

.ads-staff-pill {
  align-self: center;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px; border-radius: 999px;
  font: 800 10px/1 'Inter', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: #0b0e15; background: linear-gradient(135deg, #ffe066, #f5c518);
}
.ads-staff-pill i { width: 6px; height: 6px; border-radius: 50%; background: #0b0e15; }
.ads-staff.is-on .ads-staff-pill { animation: adsPillPulse 2.4s ease-out infinite; }
.ads-staff.is-on .ads-staff-pill i { animation: adsBlink 1.2s steps(2, jump-none) infinite; }
@keyframes adsPillPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 197, 24, .6); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(245, 197, 24, 0); }
}
@keyframes adsBlink { 50% { opacity: .25; } }

.ads-staff-art {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.ads-staff-shield {
  position: relative;
  display: grid; place-items: center; flex: none;
  width: 66px; height: 66px; border-radius: 20px;
  color: #ffd84a;
  background: radial-gradient(circle at 50% 30%, rgba(255, 216, 74, .32), rgba(245, 197, 24, .06) 72%);
  box-shadow: inset 0 0 0 1px rgba(245, 197, 24, .4), 0 14px 34px -10px rgba(245, 197, 24, .55);
}
.ads-staff-shield::after {       /* soft halo */
  content: ''; position: absolute; inset: -14px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, .28), transparent 65%);
  z-index: -1;
}
.ads-staff-shield svg { width: 36px; height: 36px; filter: drop-shadow(0 0 9px rgba(245, 197, 24, .75)); }
.ads-staff.is-on .ads-staff-shield { animation: adsFloat 4.2s ease-in-out infinite; }
@keyframes adsFloat { 50% { transform: translateY(-6px) rotate(-4deg); } }

/* the ladder: a rail on the left, four rungs, a glow climbing it */
.ads-staff-ladder {
  list-style: none; margin: 0; padding: 0 0 0 19px;
  display: grid; gap: 7px; width: 100%; box-sizing: border-box; position: relative;
}
.ads-staff-ladder::before {
  content: ''; position: absolute; left: 6px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, .1);
}
.ads-staff-ladder::after {
  content: ''; position: absolute; left: 5px; bottom: 9px; width: 4px; height: 26px; border-radius: 4px;
  background: linear-gradient(to top, rgba(245, 197, 24, 0), #ffd84a);
  box-shadow: 0 0 12px #f5c518; opacity: 0;
}
.ads-staff.is-on .ads-staff-ladder::after { animation: adsClimb 3.2s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes adsClimb {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  72% { transform: translateY(-68px); opacity: 1; }
  100% { transform: translateY(-68px); opacity: 0; }
}
.ads-staff-ladder li {
  position: relative;
  display: flex; align-items: center;
  padding: 5px 8px; border-radius: 7px;
  font: 700 11.5px/1.1 'Inter', system-ui, sans-serif; color: var(--ads-ink-3);
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07);
}
.ads-staff-ladder li b {
  position: absolute; left: -17px; top: 50%; margin-top: -4px;
  width: 8px; height: 8px; border-radius: 50%; box-sizing: border-box;
  background: #1a1f2b; border: 2px solid rgba(255, 255, 255, .2);
}
.ads-staff.is-on .ads-staff-ladder li,
.ads-staff.is-on .ads-staff-ladder li b { animation: adsRung 3.2s ease infinite; animation-delay: calc(var(--k) * .55s); }
.ads-staff.is-on .ads-staff-ladder li b { animation-name: adsRungDot; }
@keyframes adsRung {
  0%, 100% { color: var(--ads-ink-3); background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .07); }
  14%, 56% { color: #fff; background: rgba(245, 197, 24, .13); border-color: rgba(245, 197, 24, .5); }
}
@keyframes adsRungDot {
  0%, 100% { background: #1a1f2b; border-color: rgba(255, 255, 255, .2); box-shadow: none; }
  14%, 56% { background: #ffd84a; border-color: #ffd84a; box-shadow: 0 0 9px #f5c518; }
}

/* embers drifting up */
.ads-sparks { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; --ads-rise: -560px; }
.ads-sparks i {
  position: absolute; bottom: -8px; width: 3px; height: 3px; border-radius: 50%;
  background: #ffd84a; box-shadow: 0 0 7px #f5c518; opacity: 0;
}
.ads-staff.is-on .ads-sparks i { animation: adsEmber 7s linear infinite; }
.ads-sparks i:nth-child(1) { left: 10%; animation-delay: 0s !important; }
.ads-sparks i:nth-child(2) { left: 27%; animation-delay: 2.1s !important; animation-duration: 8.5s !important; }
.ads-sparks i:nth-child(3) { left: 44%; animation-delay: 4.3s !important; width: 2px; height: 2px; }
.ads-sparks i:nth-child(4) { left: 58%; animation-delay: 1.2s !important; animation-duration: 6s !important; }
.ads-sparks i:nth-child(5) { left: 71%; animation-delay: 3.4s !important; width: 2px; height: 2px; }
.ads-sparks i:nth-child(6) { left: 84%; animation-delay: 5.2s !important; animation-duration: 9s !important; }
.ads-sparks i:nth-child(7) { left: 93%; animation-delay: 0.6s !important; width: 2px; height: 2px; }
@keyframes adsEmber {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: .95; }
  60% { transform: translate(8px, calc(var(--ads-rise) * .6)); }
  100% { transform: translate(-4px, var(--ads-rise)); opacity: 0; }
}

.ads-staff .ads-title {
  font-size: 20px;
  background: linear-gradient(180deg, #fff 30%, #ffe28a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ads-staff .ads-eyebrow { color: #ffd84a; }
.ads-staff .ads-cta {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #ffe066, #f5c518 55%, #e4ab00);
  box-shadow: 0 8px 20px -8px rgba(245, 197, 24, .8), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.ads-staff .ads-cta::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 38%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  transform: skewX(-18deg);
}
.ads-staff.is-on .ads-cta::after { animation: adsShine 3.4s ease-in-out infinite; }
@keyframes adsShine { 0%, 62% { left: -60%; } 100% { left: 135%; } }
.ads-staff:hover .ads-staff-shield { box-shadow: inset 0 0 0 1px rgba(245, 197, 24, .7), 0 16px 40px -8px rgba(245, 197, 24, .8); }

/* ══ YouTube video ════════════════════════════════════════════════════════ */
.ads-creative.ads-video {
  gap: 10px;
  background:
    radial-gradient(110% 46% at 50% 40%, rgba(255, 46, 77, .24), transparent 72%),
    linear-gradient(180deg, #160b10 0%, #0e0d12 45%, #0b0e15 100%);
}
.ads-video-top { display: flex; justify-content: center; }
.ads-video-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px; border-radius: 999px;
  font: 800 10px/1 'Inter', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: rgba(255, 46, 77, .16); border: 1px solid rgba(255, 46, 77, .5);
}
.ads-video-pill i { width: 7px; height: 7px; border-radius: 50%; background: #ff2e4d; }
.ads-video.is-on .ads-video-pill i { animation: adsRec 1.5s ease-out infinite; }
@keyframes adsRec {
  0% { box-shadow: 0 0 0 0 rgba(255, 46, 77, .8); }
  80%, 100% { box-shadow: 0 0 0 7px rgba(255, 46, 77, 0); }
}

.ads-video-art {
  flex: 1 1 auto; min-height: 0; position: relative; overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 36px -14px rgba(0, 0, 0, .9), 0 0 46px -12px rgba(255, 46, 77, .55);
}
.ads-video-art img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 20%;   /* a portrait crop: eyes in the top third */
  transform-origin: 50% 30%;
  transform: scale(1.04);
}
.ads-video.is-on .ads-video-art img { animation: adsPush 16s ease-in-out infinite alternate; }
@keyframes adsPush {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.16) translate(-2%, -2%); }
}
.ads-video-art::after {        /* darken the bottom for the episode tag */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11, 14, 21, .05) 35%, rgba(11, 14, 21, .85) 100%),
              radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55));
}
.ads-video-scan {              /* CRT lines and a slow scan bar: SCP surveillance feel */
  position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
}
.ads-video-scan::after {
  content: ''; position: absolute; left: 0; right: 0; top: -35%; height: 35%;
  background: linear-gradient(transparent, rgba(150, 255, 225, .09), transparent);
}
.ads-video.is-on .ads-video-scan::after { animation: adsScan 4.5s linear infinite; }
@keyframes adsScan { to { top: 100%; } }

.ads-play {
  position: absolute; left: 50%; top: 72%; z-index: 3;   /* below the face */
  width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; background: #ff2e4d;
  box-shadow: 0 10px 24px -6px rgba(255, 46, 77, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.ads-play svg { width: 22px; height: 22px; margin-left: 3px; }
.ads-play::before, .ads-play::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid rgba(255, 46, 77, .8); opacity: 0;
}
.ads-video.is-on .ads-play::before { animation: adsRing 2.2s ease-out infinite; }
.ads-video.is-on .ads-play::after { animation: adsRing 2.2s ease-out 1.1s infinite; }
@keyframes adsRing { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.ads-video:hover .ads-play { transform: scale(1.12); }

.ads-video-ep {
  position: absolute; left: 8px; bottom: 8px; z-index: 3;
  padding: 4px 7px; border-radius: 6px;
  font: 800 11px/1 'Archivo', 'Inter', system-ui, sans-serif; letter-spacing: .08em; color: #fff;
  background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .22);
}
.ads-video .ads-eyebrow { color: #ff7086; }
.ads-video .ads-title { font-size: 20px; }
.ads-video .ads-cta {
  color: #fff; background: linear-gradient(135deg, #ff4d66, #ff2e4d 55%, #d91c3a);
  box-shadow: 0 8px 20px -8px rgba(255, 46, 77, .85), inset 0 1px 0 rgba(255, 255, 255, .3);
}

/* ── the 120px skyscraper ─────────────────────────────────────────────── */
@media (max-width: 1759px) {
  .ads-rail .ads-staff-pill, .ads-rail .ads-video-pill { font-size: 8.5px; letter-spacing: .06em; padding: 4px 6px; gap: 4px; }
  .ads-rail .ads-staff-shield { width: 52px; height: 52px; border-radius: 16px; }
  .ads-rail .ads-staff-shield svg { width: 28px; height: 28px; }
  .ads-rail .ads-staff-art { gap: 12px; }
  .ads-rail .ads-staff-ladder { padding-left: 15px; gap: 6px; }
  .ads-rail .ads-staff-ladder::before { left: 4px; }
  .ads-rail .ads-staff-ladder::after { left: 3px; }
  .ads-rail .ads-staff-ladder li { font-size: 10px; padding: 4px 5px; }
  .ads-rail .ads-staff-ladder li b { left: -14px; }
  .ads-rail .ads-staff .ads-title, .ads-rail .ads-video .ads-title { font-size: 16px; }
  .ads-rail .ads-play { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
  .ads-rail .ads-play svg { width: 18px; height: 18px; }
}
/* short windows: the ladder is the star, the shield steps aside */
@media (max-height: 740px) {
  .ads-rail .ads-staff-shield { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ads-staff *, .ads-staff::before, .ads-staff *::before, .ads-staff *::after,
  .ads-video *, .ads-video *::before, .ads-video *::after { animation: none !important; }
  .ads-sparks { display: none; }
}

/* staff-apps ad in the 728 × 90 / 320 × 50 banner: shield, copy, a mini
   ladder, the button. Embers only rise the height of the banner. */
.ads-banner .ads-creative.ads-staff {
  background:
    radial-gradient(40% 160% at 6% 50%, rgba(245, 197, 24, .26), transparent 70%),
    radial-gradient(30% 120% at 80% 50%, rgba(255, 170, 30, .1), transparent 70%),
    linear-gradient(90deg, #17130a, #0b0e15 70%);
}
.ads-banner .ads-sparks { --ads-rise: -110px; }
.ads-banner .ads-staff .ads-brand, .ads-banner .ads-staff-pill { display: none; }
.ads-banner .ads-staff-art { display: contents; }   /* shield and ladder join the row directly */
.ads-banner .ads-staff-shield { order: 0; flex: none; }
.ads-banner .ads-staff-shield { width: 56px; height: 56px; border-radius: 16px; }
.ads-banner .ads-staff-shield svg { width: 30px; height: 30px; }
.ads-banner .ads-staff-shield::after { inset: -8px; }
.ads-banner .ads-staff .ads-copy { order: 1; }
.ads-banner .ads-staff .ads-title { font-size: 20px; }
.ads-banner .ads-staff-ladder {
  order: 2; display: flex; flex-direction: row-reverse; gap: 5px; width: auto;
  padding: 0; margin-left: 14px;
}
.ads-banner .ads-staff-ladder::before, .ads-banner .ads-staff-ladder::after, .ads-banner .ads-staff-ladder li b { display: none; }
.ads-banner .ads-staff-ladder li { font-size: 10.5px; padding: 5px 7px; white-space: nowrap; }
.ads-banner .ads-staff .ads-cta { order: 3; }
@media (max-width: 1100px) { .ads-banner .ads-staff-ladder { display: none; } }
@media (max-width: 767px) {
  .ads-banner .ads-staff-shield { width: 32px; height: 32px; border-radius: 9px; }
  .ads-banner .ads-staff-shield svg { width: 18px; height: 18px; }
  .ads-banner .ads-staff .ads-title { font-size: 13px; }
  .ads-banner .ads-staff .ads-cta-long { display: none; }
  .ads-banner .ads-staff .ads-cta-short { display: inline; }
  .ads-banner .ads-sparks { --ads-rise: -60px; }
}
