/* Container chung cho tất cả banner */
.nd-ad-banner {
    position: relative;
    overflow: hidden;
    z-index: 999;
}

.nd-ad-banner a {
    display: block;
    line-height: 0; 
}

.nd-ad-banner img.nd-ad-img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
}

/* Nút đóng chung */
.nd-ad-close {
    position: absolute;
    cursor: pointer;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.nd-ad-close:hover {
    background: red;
}

/* === Vị trí CỐ ĐỊNH === */

/* Left Fixed */
.nd-ad-left-fixed {
    position: fixed;
    bottom: 50px;
    left: 10px;
    z-index: 9999;
    max-width: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.nd-ad-left-fixed .nd-ad-close {
    top: -10px;
    right: -10px;
}

/* Right Fixed */
.nd-ad-right-fixed {
    position: fixed;
    bottom: 50px;
    right: 10px;
    z-index: 9999;
    max-width: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.nd-ad-right-fixed .nd-ad-close {
    top: -10px;
    right: -10px;
}

/* Bottom Fixed (Footer Bar) */
.nd-ad-bottom-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    text-align: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
}
.nd-ad-bottom-fixed .nd-ad-img {
    max-height: 90px;
    width: auto;
    display: inline-block;
}
.nd-ad-bottom-fixed .nd-ad-close {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

/* === Vị trí NỘI DUNG (Random) === */
.nd-ad-content-random {
    clear: both;
    margin: 20px auto;
    max-width: 728px;
}

/* --- LƯU Ý: CSS Pop-up Center đã được chuyển sang Inline Style --- */