#mex-home-ad-shell {
  width: 100%;
  max-width: none;
  margin: 64px auto 2px;
  padding: 0 16px;
  box-sizing: border-box;
}
.mex-home-ad-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4.25 / 1;
  max-height: 180px;
  min-height: 72px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: #171717;
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
}
.mex-home-ad-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.mex-home-ad-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.mex-home-ad-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #171717;
}
.mex-home-ad-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 20px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 16% 20%, rgba(39,178,86,.55), transparent 34%),
    radial-gradient(circle at 83% 78%, rgba(0,174,239,.45), transparent 35%),
    linear-gradient(120deg, #082b19, #191919 47%, #472008);
}
.mex-home-ad-fallback strong {
  font-size: clamp(18px, 3vw, 34px);
  letter-spacing: .04em;
  color: #ff9f00;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.mex-home-ad-fallback span {
  font-size: clamp(12px, 1.4vw, 17px);
  color: rgba(255,255,255,.78);
}
.mex-home-ad-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 34px;
  height: 42px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: rgba(0,0,0,.38);
  cursor: pointer;
}
.mex-home-ad-arrow:hover { background: rgba(0,0,0,.62); }
.mex-home-ad-arrow.prev { left: 10px; }
.mex-home-ad-arrow.next { right: 10px; }
.mex-home-ad-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 8px;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}
.mex-home-ad-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.48);
}
.mex-home-ad-dot.is-active {
  width: 19px;
  background: #ff9f00;
}
#mex-site-footer {
  box-sizing: border-box;
  width: 100%;
  margin-top: 30px;
  padding: 15px 16px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.48);
  background: #121212;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
@media (max-width: 767px) {
  #mex-home-ad-shell {
    margin-top: 9px;
    padding: 0 12px;
  }
  .mex-home-ad-frame {
    border-radius: 8px;
    min-height: 68px;
  }
  .mex-home-ad-arrow { display: none; }
  .mex-home-ad-fallback {
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
  }
  .mex-home-ad-dots { bottom: 5px; }
  #mex-site-footer {
    margin-top: 22px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}
