.yardie-ads-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    min-height: 260px;
}

.yardie-ad {
    display: block;
    text-align: center;
    width: 100%;
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
    pointer-events: none;
    position: absolute;
    inset: 0;
}

.yardie-ad[data-target-url]:not([data-target-url=""]) {
    cursor: pointer;
}

.yardie-ad.is-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.yardie-ad.is-next {
    opacity: 0.35;
    transform: translateY(0) scale(1.02);
    filter: blur(0.2px);
    z-index: 1;
}

.yardie-ad.is-leaving {
    opacity: 0;
    transform: translateY(-8px) scale(0.975);
}

.yardie-ad video,
.yardie-ad audio,
.yardie-ad img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    object-fit: contain;
    background: #111;
}

.yardie-ad__media {
    position: relative;
}

.yardie-ad__content {
    padding-top: 0.75rem;
}

.yardie-ad video {
    aspect-ratio: 16 / 9;
}

.yardie-ad audio {
    width: 100%;
    max-width: 100%;
}

.yardie-ad p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.yardie-ad__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.yardie-ad__link:hover,
.yardie-ad__link:focus {
    text-decoration: none;
}

.yardie-ad__image-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.yardie-ad__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.7rem;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #d42e12, #f3bf36);
    color: #111;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(212, 46, 18, 0.2);
}

.yardie-ad__cta:hover,
.yardie-ad__cta:focus {
    color: #111;
    text-decoration: none;
    transform: translateY(-1px);
}