.announcement-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.75);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2147483647 !important;
    /* Maximum possible z-index */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.announcement-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.announcement-popup-content {
    background: #fff;
    width: 95%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Open Sans', sans-serif;
}

.announcement-popup-overlay.show .announcement-popup-content {
    transform: translateY(0);
}

.announcement-popup-header {
    padding: 18px 25px;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-popup-header h3 {
    margin: 0;
    font-size: 22px;
    color: #101010;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.announcement-popup-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #bbb;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
    margin-left: 15px;
}

.announcement-popup-close:hover {
    color: #ff4d4d;
    transform: rotate(90deg);
}

.announcement-popup-body {
    padding: 25px;
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.announcement-popup-body img {
    max-width: 100%;
    height: auto;
}

/* YouTube iframe styles */
.announcement-popup-body iframe {
    max-width: 100%;
    border: none;
    border-radius: 8px;
}

.announcement-popup-body .youtube-lazy-iframe {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 315px;
    display: block;
    position: relative;
}

.announcement-popup-body .youtube-lazy-iframe:not([src])::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ff0000;
    border-radius: 50%;
    animation: youtube-spinner 1s linear infinite;
}

@keyframes youtube-spinner {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 576px) {
    .announcement-popup-content {
        width: 95%;
    }

    .announcement-popup-body .youtube-lazy-iframe {
        min-height: 200px;
    }
}