/* MMO Glassmorphism Interstitial Popup Styling */

.haivideo-mmo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.haivideo-mmo-popup-overlay:not(.haivideo-mmo-hidden) {
    opacity: 1;
}

.haivideo-mmo-hidden {
    display: none !important;
}

.haivideo-mmo-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.haivideo-mmo-modal-box {
    position: relative;
    z-index: 10;
    background: #ffffff;
    width: 100%;
    max-width: 350px;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.haivideo-mmo-popup-overlay:not(.haivideo-mmo-hidden) .haivideo-mmo-modal-box {
    transform: scale(1) translateY(0);
}

/* Media Frame */
.haivideo-mmo-media-frame {
    position: relative;
    width: 100%;
    height: 180px;
    background-color: #f1f5f9;
    overflow: hidden;
}

.haivideo-mmo-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.haivideo-mmo-modal-box:hover .haivideo-mmo-media-frame img {
    transform: scale(1.04);
}

.haivideo-mmo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 86, 145, 0.9);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-transform: uppercase;
}

/* Modal Body */
.haivideo-mmo-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    color: #1e293b;
}

.haivideo-mmo-body h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.haivideo-mmo-body p {
    margin: 0 0 16px 0;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Info Box */
.haivideo-mmo-notice-box {
    display: flex;
    gap: 8px;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    color: #1e40af;
    font-size: 11px;
    line-height: 1.5;
    align-items: flex-start;
}

.haivideo-mmo-notice-box span {
    font-weight: 600;
}

/* Button Actions */
.haivideo-mmo-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.haivideo-mmo-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #005691, #004270);
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 20px;
    border-radius: 50px;
    transition: all 0.25s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 86, 145, 0.3);
    cursor: pointer;
    text-align: center;
}

.haivideo-mmo-btn-primary:hover {
    background: linear-gradient(135deg, #006eb8, #005691);
    box-shadow: 0 6px 14px rgba(0, 86, 145, 0.4);
    transform: translateY(-1px);
}

.haivideo-mmo-btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 86, 145, 0.3);
}

.haivideo-mmo-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    color: #475569 !important;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 20px;
    border-radius: 50px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.haivideo-mmo-btn-secondary:hover {
    background-color: #e2e8f0;
    color: #1e293b !important;
}

/* Dark mode compatibility in themes */
body.dark-mode .haivideo-mmo-modal-box {
    background: #1e293b;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.dark-mode .haivideo-mmo-body {
    color: #cbd5e1;
}

body.dark-mode .haivideo-mmo-body h4 {
    color: #ffffff;
}

body.dark-mode .haivideo-mmo-body p {
    color: #94a3b8;
}

body.dark-mode .haivideo-mmo-media-frame {
    background-color: #0f172a;
}

body.dark-mode .haivideo-mmo-btn-secondary {
    background-color: rgba(255, 255, 255, 0.06);
    color: #94a3b8 !important;
}

body.dark-mode .haivideo-mmo-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
}

body.dark-mode .haivideo-mmo-notice-box {
    background-color: rgba(30, 64, 175, 0.2);
    border-color: rgba(30, 64, 175, 0.4);
    color: #60a5fa;
}
