.chigua-ad-zone {
    --chigua-ad-gap: 12px;
    box-sizing: border-box;
    clear: both;
    margin: 22px auto;
    max-width: 1180px;
    width: 100%;
}
.chigua-ad-zone *, .chigua-ad-zone *::before, .chigua-ad-zone *::after { box-sizing: border-box; }
.cg-grid > .chigua-ad-zone[data-chigua-zone="feed_repeat"] {
    grid-column: 1 / -1;
    max-width: none;
}
.chigua-ad-zone__track {
    display: grid;
    gap: var(--chigua-ad-gap);
    grid-template-columns: repeat(var(--chigua-ad-columns, 1), minmax(0, 1fr));
}
.chigua-ad-slot {
    align-items: center;
    aspect-ratio: var(--chigua-ad-ratio, 16 / 5);
    background: #343232;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    color: #f7f4f4;
    display: flex;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    position: relative;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.chigua-ad-slot:focus-within {
    background: #403c3c;
    border-color: rgba(255, 111, 160, .44);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}
.chigua-ad-slot__label {
    background: rgba(20,20,20,.72);
    border-radius: 3px;
    color: rgba(255,255,255,.8);
    font-size: 11px;
    left: 7px;
    line-height: 1;
    padding: 4px 5px;
    position: absolute;
    top: 7px;
    z-index: 2;
}
.chigua-ad-slot__fallback { align-items: center; color: #d8d0d0; display: flex; flex-direction: column; gap: 5px; justify-content: center; padding: 18px; text-align: center; }
.chigua-ad-slot__fallback strong { color: #fff; font-size: 15px; }
.chigua-ad-slot__fallback span { font-size: 12px; }
.chigua-ad-slot.is-loading .chigua-ad-slot__fallback { animation: chigua-ad-pulse 1.5s ease-in-out infinite; }
.chigua-ad-slot__content, .chigua-ad-slot__link, .chigua-ad-slot__link picture, .chigua-ad-slot__frame { display: block; height: 100%; width: 100%; }
.chigua-ad-slot__link { color: #fff; position: relative; text-decoration: none; }
.chigua-ad-slot__link:focus-visible { outline: 3px solid #ff8bb3; outline-offset: -3px; }
.chigua-ad-slot__link img { display: block; height: 100%; object-fit: cover; object-position: center center; transition: filter 180ms ease, transform 180ms ease; width: 100%; }
.chigua-ad-slot:focus-within .chigua-ad-slot__link img { filter: saturate(1.08) contrast(1.03); }
.chigua-ad-slot__caption { background: linear-gradient(transparent, rgba(0,0,0,.78)); bottom: 0; color: #fff; left: 0; padding: 28px 12px 10px; position: absolute; right: 0; }
.chigua-ad-slot__text { align-items: center; display: flex; font-size: clamp(15px, 2vw, 22px); font-weight: 700; height: 100%; justify-content: center; padding: 22px; text-align: center; }
.chigua-ad-slot__frame { background: transparent; border: 0; }
.chigua-ad-zone__close { align-items: center; background: #fff; border: 0; border-radius: 50%; color: #262626; cursor: pointer; display: flex; font-size: 24px; height: 36px; justify-content: center; line-height: 1; padding: 0; position: absolute; right: 8px; top: 8px; width: 36px; z-index: 5; }
.chigua-ad-zone--sticky, .chigua-ad-zone--interstitial, .chigua-ad-zone--popunder { display: none; }
.chigua-ad-zone--sticky.is-active { bottom: max(8px, env(safe-area-inset-bottom)); display: block; left: 50%; margin: 0; max-width: min(680px, calc(100% - 20px)); position: fixed; transform: translateX(-50%); z-index: 9998; }
.chigua-ad-zone--interstitial.is-active { align-items: center; background: rgba(20,20,20,.78); display: flex; inset: 0; justify-content: center; margin: 0; max-width: none; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); position: fixed; width: 100%; z-index: 9999; }
.chigua-ad-zone--interstitial .chigua-ad-zone__track { max-height: calc(100dvh - 32px); max-width: min(520px, 92vw); width: 100%; }
@media (hover:hover) and (pointer:fine) {
    .chigua-ad-slot:hover {
        background: #403c3c;
        border-color: rgba(255, 111, 160, .44);
        box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
        transform: translateY(-4px);
    }
    .chigua-ad-slot:hover .chigua-ad-slot__link img {
        filter: saturate(1.08) contrast(1.03);
        transform: scale(1.045);
    }
}
@media (max-width: 767px) {
    .chigua-ad-zone { margin-block: 18px; overflow: hidden; }
    .chigua-ad-zone__track { display: grid; gap: 10px; grid-template-columns: 1fr; overflow: visible; padding: 0; }
    .chigua-ad-slot { flex: none; width: 100%; }
    .chigua-ad-zone--sticky .chigua-ad-zone__track, .chigua-ad-zone--interstitial .chigua-ad-zone__track { overflow: visible; padding: 0; }
    .chigua-ad-zone--sticky .chigua-ad-slot, .chigua-ad-zone--interstitial .chigua-ad-slot { flex-basis: 100%; }
    .chigua-ad-zone[data-chigua-zone="feed_repeat"] .chigua-ad-slot { aspect-ratio: var(--chigua-ad-mobile-ratio, 16 / 5); flex: none; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .chigua-ad-slot, .chigua-ad-slot__link img, .chigua-ad-slot.is-loading .chigua-ad-slot__fallback { animation: none; transition: none; } }
@keyframes chigua-ad-pulse { 50% { opacity: .58; } }
