/* GDrive Video Pro — Public Player Styles */

.gvp-player-wrap {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: visible;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 12px;
}

/* ── Video title ── */
.gvp-video-title {
    background: #111;
    color: #fff;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px 10px 0 0;
}

/* ── iFrame container ── */
.gvp-iframe-container {
    background: #000;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}
.gvp-iframe-container iframe {
    display: block;
}

/* ── Player meta bar ── */
.gvp-player-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    flex-wrap: wrap;
    gap: 8px;
}
.gvp-views-count {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}
.gvp-embed-actions { display: flex; gap: 8px; }

.gvp-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; border: none; border-radius: 6px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    text-decoration: none; transition: all 0.2s;
}
.gvp-btn-sm { padding: 5px 10px; font-size: 12px; }
.gvp-btn-primary { background: #6366f1; color: #fff; }
.gvp-btn-primary:hover { background: #4f46e5; }
.gvp-btn-secondary { background: #f1f1f1; color: #333; }
.gvp-btn-secondary:hover { background: #e1e1e1; }

/* ── Logo watermark ── */
.gvp-logo {
    position: absolute; z-index: 10; pointer-events: none;
}
.gvp-logo img { height: 36px; opacity: 0.85; border-radius: 4px; }
.gvp-logo-top-right    { top: 50px; right: 12px; }
.gvp-logo-top-left     { top: 50px; left: 12px; }
.gvp-logo-bottom-right { bottom: 56px; right: 12px; }
.gvp-logo-bottom-left  { bottom: 56px; left: 12px; }

/* ══════════════════════════════════════
   AD OVERLAYS
══════════════════════════════════════ */

/* Pre-roll / Mid-roll overlay */
.gvp-ad-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 10px 10px;
}
.gvp-ad-inner {
    width: 90%; max-width: 600px;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.gvp-ad-content {
    width: 100%; text-align: center;
}
.gvp-ad-content img  { max-width: 100%; max-height: 300px; border-radius: 8px; }
.gvp-ad-content video { width: 100%; max-height: 300px; border-radius: 8px; }

.gvp-ad-footer {
    display: flex; align-items: center; gap: 12px; width: 100%;
    justify-content: flex-end;
}
.gvp-ad-countdown {
    background: rgba(0,0,0,0.7); color: #fff;
    padding: 4px 12px; border-radius: 20px; font-size: 13px;
}
.gvp-ad-skip {
    background: rgba(255,255,255,0.9); color: #000;
    border: none; padding: 8px 18px; border-radius: 6px;
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: background 0.2s;
}
.gvp-ad-skip:hover { background: #fff; }
.gvp-ad-link {
    background: #6366f1; color: #fff;
    padding: 8px 16px; border-radius: 6px;
    font-size: 13px; font-weight: 600;
    text-decoration: none;
}
.gvp-ad-link:hover { background: #4f46e5; color: #fff; }

/* Banner overlay (bottom strip) */
.gvp-banner-ad {
    position: absolute;
    bottom: 48px; left: 0; right: 0;
    background: rgba(0,0,0,0.85);
    padding: 10px 16px;
    display: flex; align-items: center; justify-content: space-between;
    z-index: 50;
}
.gvp-banner-content { flex: 1; color: #fff; font-size: 14px; }
.gvp-banner-content img { max-height: 60px; }
.gvp-banner-close {
    background: rgba(255,255,255,0.15); border: none; color: #fff;
    width: 26px; height: 26px; border-radius: 50%;
    font-size: 14px; cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.gvp-banner-close:hover { background: rgba(255,255,255,0.3); }

/* Popup ad */
.gvp-popup-ad {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    z-index: 999980;
    animation: gvpPopupIn 0.3s ease;
}
@keyframes gvpPopupIn {
    from { opacity: 0; transform: translate(-50%,-50%) scale(0.85); }
    to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.gvp-popup-inner {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    min-width: 300px; max-width: 500px;
    overflow: hidden; position: relative;
}
.gvp-popup-close {
    position: absolute; top: 8px; right: 10px;
    background: rgba(0,0,0,0.5); color: #fff; border: none;
    width: 28px; height: 28px; border-radius: 50%;
    font-size: 16px; cursor: pointer; z-index: 1;
    display: flex; align-items: center; justify-content: center;
}
.gvp-popup-content { padding: 0; }
.gvp-popup-content img  { width: 100%; display: block; }

/* Login message */
.gvp-login-msg {
    background: #f1f1f1; border: 1px solid #ddd;
    border-radius: 8px; padding: 20px;
    text-align: center; color: #555;
}

/* ── Hide Google Drive UI elements via overlay ── */
.gvp-iframe-container {
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Top bar blocker - hides Google Drive profile icon & expand button */
.gvp-drive-ui-blocker-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 46px;
    background: #000;
    z-index: 10;
    pointer-events: none;
}

/* Bottom bar blocker - hides Google Drive bottom controls bar */  
.gvp-drive-ui-blocker-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 0px;
    background: #000;
    z-index: 10;
    pointer-events: none;
}

/* Make iframe slightly taller to push Google's top UI off-screen */
.gvp-iframe-container iframe {
    position: absolute;
    top: -46px;
    left: 0;
    width: 100%;
    height: calc(100% + 46px);
    border: 0;
    display: block;
    background: #000;
}

/* Expand button blocker (top-right corner) */
.gvp-drive-ui-blocker-corner {
    position: absolute;
    top: 0; right: 0;
    width: 60px;
    height: 60px;
    background: #000;
    z-index: 11;
    pointer-events: none;
}

/* ── Ad overlay fix — must cover full player including title bar ── */
.gvp-player-wrap { position: relative; }

.gvp-ad-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.93);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.gvp-ad-inner {
    width: 92%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.gvp-ad-content { width: 100%; text-align: center; }

.gvp-ad-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
}

.gvp-ad-countdown {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-right: auto;
}

.gvp-ad-skip {
    background: #fff;
    color: #000;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.gvp-ad-skip:hover { background: #eee; }

.gvp-ad-link {
    background: #6366f1;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.gvp-ad-link:hover { background: #4f46e5; }

/* Popup: fixed center of screen */
.gvp-popup-ad {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    min-width: 300px;
    max-width: 480px;
    width: 90vw;
}
.gvp-popup-inner {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    overflow: hidden;
    position: relative;
}
.gvp-popup-close {
    position: absolute; top: 8px; right: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff; border: none;
    width: 28px; height: 28px;
    border-radius: 50%; font-size: 16px;
    cursor: pointer; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.gvp-popup-close:hover { background: rgba(0,0,0,0.8); }
