/* cat-footer */

.cat-footer-wrapper {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding: 0 10px;
}

.cat-a {
    max-width: calc(50% - 10px);
    text-align: center;
}

.cat-a img {
    max-width: 100%;
    height: auto;
}

.cat-close-btn {
    position: absolute;
    top: -25px;
    left: 50%; /* Đặt nút ở giữa theo chiều ngang */
    transform: translateX(-50%); /* Căn giữa chính xác */
    background: #ff9601;
    color: white;
    font-size: 16px;
    width: 90px;
    height: 25px;
    line-height: 25px; /* Điều chỉnh line-height khớp với height */
    text-align: center;
    border-radius: 3px;
    cursor: pointer;
}

.cat-close-btn:hover {
    color: red;
    background: #e08500; /* Thêm hiệu ứng hover tối hơn (tùy chọn) */
}

@media (max-width: 991px) {
    .cat-footer-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .cat-ad {
        width: 100%;
    }
    .cat-a {
        max-width: calc(60% - 10px);
    }
}

@media (max-width: 768px) {
    .cat-a {
        max-width: calc(80% - 10px);
    }
}

/* cat header */
.cat-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
}

.cat-header {
    max-width: calc(30% - 10px);
    text-align: center;
}
@media (max-width: 768px) {
    .cat-header {
    max-width: calc(75% - 10px);
    }
}

.cat-header img {
    max-width: 100%;
    height: auto;
}

.cat-close-btn-header {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff9601;
    color: white;
    font-size: 14px;
    width: 90px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.cat-close-btn-header:hover {
    color: red;
}

/* banner */

.aam-banner-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    max-width: 100%;
    padding: 10px 0;
}
.aam-banner {
    max-width: calc(33% - 10px);
    text-align: center;
}
@media (max-width: 768px) {
    .aam-banner {
        max-width: 80%;
    }
}

/*player*/

@media (max-width: 768px) {
    .aam-player-banner {
        max-width: 100% !important;
    }
}

#page-info .aam-banner-wrapper {
    width: 670px!important;
}

#page-info .aam-banner {
    max-width: calc(45% - 10px) !important;
}
/* preload */

.popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.ad-popup {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-ad-btn {
    position: absolute;
    top: -5px;
    right: 25px;
    font-size: 15px;
    cursor: pointer;
    color: #f5e0e0;
    border: 1px solid #fff;
    padding: 0px 8px;
    background-color: #dfd4d43b;
    border-radius: 5px;
    width: fit-content;
    background-color: #ff9601;
    line-height: 22px;
    font-weight: bolder;
}

.close-ad-btn:hover {
    color: red;
}

.ad-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Hide Ads */

.disable-ads-icon {
    position: fixed;
    bottom: 120px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #ff9601;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99999999999;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 0;
}
.disable-ads-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.disable-ads-icon:hover {
    background: #e08500;
}