/* ============================
   SoundFizz Fixed-Size Ad Styling
   Small floating AD badge
   Horizontal on PC, Vertical on Mobile
============================ */

/* Layout wrapper for multiple ads */
.ad-row {
    display: flex;
    flex-direction: row;
    gap: 10px;              /* smaller spacing */
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile: vertical stack */
@media (max-width: 700px) {
    .ad-row {
        flex-direction: column;
        align-items: center;
        gap: 14px;          /* smaller spacing on mobile */
    }
}

/* Wrapper that holds BOTH the badge and the ad card */
.ad-wrapper {
    width: 320px;
    margin: 18px auto;      /* reduced spacing above/below */
    position: relative;
}

/* Smaller AD badge ABOVE the card */
.ad-badge {
    position: absolute;
    top: -20px;             /* slightly closer */
    left: 4px;
    background: #ff6a00;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 50;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* Outer ad card */
.ad-card {
    width: 320px;
    height: 50px;
    border: 2px solid #ff6a00;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive container */
.ad-responsive {
    width: 320px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Force iframe to exact size */
.ad-responsive iframe {
    width: 320px !important;
    height: 50px !important;
    max-width: 320px !important;
    max-height: 50px !important;
    border: none;
    display: block;
}
