/* ============================================================
   MCPOTAR Video Ads — Front-end Overlay Styles
   ============================================================ */

/* ---- Ad Overlay Container ---- */
#mvpad-overlay {
    position: absolute;
    inset: 0;
    z-index: 9000;
    background: #0D0B08;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#mvpad-overlay.mvpad-hidden {
    display: none;
}

#mvpad-overlay.mvpad-fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* ---- Video element (self-hosted) ---- */
#mvpad-video-el {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0D0B08;
}

/* ---- Iframe (YouTube / Vimeo / GDrive) ---- */
#mvpad-iframe-el {
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.78vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    pointer-events: none;
}

/* ---- Ad label badge ---- */
#mvpad-label {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #C8860A;
    color: #0D0B08;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
    z-index: 10;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Skip button ---- */
#mvpad-skip-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(13,11,8,0.82);
    border: 2px solid #C8860A;
    color: #E8DCC8;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 20;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    user-select: none;
}

#mvpad-skip-btn:hover {
    background: #C8860A;
    color: #0D0B08;
}

#mvpad-skip-btn.mvpad-hidden {
    display: none;
}

/* ---- Countdown circle ---- */
#mvpad-skip-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #C8860A;
    font-size: 0.7rem;
    font-weight: 700;
    color: #C8860A;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

#mvpad-skip-btn:hover #mvpad-skip-countdown {
    border-color: #0D0B08;
    color: #0D0B08;
}

/* ---- Ad info bar (bottom left) ---- */
#mvpad-info {
    position: absolute;
    bottom: 20px;
    left: 14px;
    color: rgba(232,220,200,0.55);
    font-size: 0.72rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    z-index: 10;
    pointer-events: none;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    #mvpad-skip-btn {
        font-size: 0.72rem;
        padding: 7px 12px;
        bottom: 12px;
        right: 10px;
    }
    #mvpad-label {
        font-size: 0.65rem;
        top: 8px;
        left: 8px;
    }
}

/* ============================================================
   Admin styles (loaded only on admin pages)
   ============================================================ */
.mvpad-admin-wrap h1 { margin-bottom: 6px; }
.mvpad-layout { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.mvpad-form-col { flex: 0 0 420px; min-width: 320px; background: #fff; padding: 20px; border: 1px solid #ddd; border-radius: 6px; }
.mvpad-list-col { flex: 1; min-width: 300px; }
.mvpad-form-table th { width: 180px; }
.mvpad-badge { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 0.78rem; font-weight: 700; }
.mvpad-badge-preroll { background: #1e73be; color: #fff; }
.mvpad-badge-midroll { background: #7b5e2a; color: #fff; }
.mvpad-status-on  { color: #46b450; font-size: 1.1rem; }
.mvpad-status-off { color: #dc3232; font-size: 1.1rem; }
.mvpad-count { font-size: 0.85rem; color: #888; font-weight: 400; }
.mvpad-delete-btn { color: #a00 !important; border-color: #a00 !important; }
.mvpad-delete-btn:hover { background: #a00 !important; color: #fff !important; }
.mvpad-cat-checkboxes { max-height: 160px; overflow-y: auto; padding: 6px; border: 1px solid #ddd; border-radius: 4px; background: #fafafa; }
