/* Ads Container Styling - POLOS TANPA BORDER */
.ad-container {
    position: relative;
    margin: 8px 0;
    display: inline-block;
    width: 100%;
    line-height: 0;
}

/* Logo Watermark HaiLovers - ATAS KIRI NEMPEL */
.ad-logo {
    position: absolute;
    top: 0;
    left: 0;
    background: #000;
    padding: 5px 10px;
    border-radius: 0 0 12px 0;
    z-index: 1000;
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #fff;
    pointer-events: none;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.ad-logo img {
    flex-shrink: 0;
}

.ad-logo span {
    flex-shrink: 0;
    white-space: nowrap;
}

.ad-logo img {
    width: 14px;
    height: 14px;
}

/* AdSense Responsive */
.ad-adsense {
    min-height: 90px;
    text-align: center;
    line-height: 0;
}

/* Banner Ads Responsive */
.ad-banner {
    text-align: center;
    line-height: 0;
}

.ad-banner img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

.ad-banner a {
    display: block;
    text-decoration: none;
    line-height: 0;
}

/* Script Ads */
.ad-script {
    min-height: 90px;
    text-align: center;
    line-height: 0;
}

/* Responsive Ads - Mobile */
@media (max-width: 768px) {
    .ad-container {
        margin: 15px 0;
    }
    
    .ad-banner img {
        max-width: 100%;
        height: auto;
    }
}

/* Responsive Ads - Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .ad-banner img {
        max-width: 100%;
    }
}

/* Responsive Ads - Desktop */
@media (min-width: 1025px) {
    .ad-banner img {
        max-width: 100%;
    }
}

/* Rightbar Ads - Specific Styling */
.right .ad-container {
    margin: 0;
}

.right .widget .ad-container {
    margin: 0;
}

/* View Page Ads - Specific Styling */
.content .ad-container {
    max-width: 100%;
}

/* No Ads Available */
.ad-container.empty {
    display: none;
}