#gsport-ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
}

#gsport-ad-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    #gsport-ad-popup {
        padding: 40px 20px 20px;
        width: 95vw !important; /* Force width on mobile */
        height: auto !important;
        max-height: 80vh;
    }
}

#gsport-ad-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px; /* Bigger for touch */
    cursor: pointer;
    color: #333;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gsport-ad-close:hover {
    color: #000;
}

#gsport-ad-content {
    line-height: 1.6;
    word-break: break-word;
}

#gsport-ad-content img, 
#gsport-ad-content video, 
#gsport-ad-content iframe {
    max-width: 100%;
    height: auto;
}

/* Animations */

.fade-in {
    animation: gsportFadeIn 0.5s ease forwards;
}

.slide-up {
    animation: gsportSlideUp 0.5s ease forwards;
}

.zoom-in {
    animation: gsportZoomIn 0.5s ease forwards;
}

@keyframes gsportFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gsportSlideUp {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes gsportZoomIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
