/* Mandokin广告弹窗组件 */
.mk-ad-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.mk-ad-overlay.show {
    display: flex;
}

.mk-ad-overlay.position-top {
    align-items: flex-start;
    padding-top: 50px;
}

.mk-ad-overlay.position-bottom {
    align-items: flex-end;
    padding-bottom: 50px;
}

.mk-ad-modal {
    background: #1a0a2e;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 90vw;
    max-height: 90vh;
}

.mk-ad-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mk-ad-close:hover {
    background: #ef4444;
    transform: rotate(90deg);
}

.mk-ad-close:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.mk-ad-content {
    position: relative;
}

.mk-ad-content img,
.mk-ad-content video {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.mk-ad-text-content {
    padding: 30px;
    min-width: 300px;
    max-width: 500px;
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.6;
}

.mk-ad-countdown {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 20px 20px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
}

.mk-ad-countdown-text {
    color: #fff;
    font-size: 14px;
}

.mk-ad-countdown-num {
    color: #d4af37;
    font-size: 24px;
    font-weight: bold;
    margin: 0 5px;
}

.mk-ad-skip-btn {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: none;
}

.mk-ad-skip-btn.show {
    display: block;
}

.mk-ad-skip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.mk-ad-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #8b5cf6;
    z-index: 6;
    transition: width 1s linear;
}

.mk-ad-ad-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #999;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 10;
}

@media (max-width: 768px) {
    .mk-ad-modal {
        max-width: 95vw;
    }
    .mk-ad-content img,
    .mk-ad-content video {
        max-height: 50vh;
    }
    .mk-ad-text-content {
        padding: 20px;
        min-width: 250px;
    }
}
