/* ========================================
   AD SLOT CONTAINERS
   Pre-reserve dimensions to prevent CLS.
   ======================================== */
.ac-ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ac-ad-slot--mid {
  min-height: 250px;
  margin: var(--space-8) 0;
}

.ac-ad-slot--bottom {
  min-height: 250px;
  margin: var(--space-8) 0;
}

.ac-ad-slot--homepage {
  max-width: 728px;
  margin: var(--space-10) auto;
  min-height: 90px;
}

.ac-ad-slot--sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
}

.ac-ad-slot--sticky__close {
  position: absolute;
  right: var(--space-2);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Invisible 44px touch target area */
.ac-ad-slot--sticky__close::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
}

@media (max-width: 767px) {
  .ac-ad-slot--sticky {
    display: flex;
  }
}
