.ad-slot { margin: 1rem 0; position: relative; overflow: hidden; }
.ad-slot--banner { border-radius: 12px; border: 1px dashed #e2e8f0; background: #fafafa; }
.ad-slot--stack {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ad-slot--stack .ad-item {
    display: block;
    margin: 0;
}
.ad-slot--banner.ad-slot--stack {
    padding: 16px;
}
.ad-slot--stack .ad-item .ad-link,
.ad-slot--stack .ad-item .ad-text,
.ad-slot--stack .ad-item .ad-html,
.ad-slot--stack .ad-item .ad-video {
    border-radius: 10px;
    overflow: hidden;
}
.ad-image { max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 8px; }
.ad-video { max-width: 100%; border-radius: 8px; }
.ad-text { padding: 1rem; text-align: center; }
.ad-text strong { display: block; font-size: 1.1rem; }
.ad-html { overflow: hidden; }
.ad-link { display: block; text-decoration: none; color: inherit; }
.ad-close { position: absolute; top: 4px; right: 8px; z-index: 5; border: none; background: rgba(0,0,0,.5); color: #fff; width: 28px; height: 28px; border-radius: 999px; cursor: pointer; font-size: 18px; line-height: 1; }
.ad-slot--float { position: fixed; z-index: 40; max-width: 120px; }
.ad-slot--float.ad-slot--stack {
    gap: 3px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}
.ad-slot--float-left { left: 8px; bottom: 120px; }
.ad-slot--float-right { right: 8px; bottom: 120px; }
.ad-slot--popup { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); padding: 1rem; }
.ad-slot__popup-panel {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 420px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
}
.ad-slot--popup .ad-item {
    position: relative;
    background: #fff;
    border-radius: 12px;
}
.ad-slot.hidden { display: none !important; }
@media (max-width: 768px) {
    .ad-slot--float { max-width: 88px; }
    .ad-slot--stack { gap: 3px; }
    .ad-slot--banner.ad-slot--stack { padding: 12px; }
}