/**
 * vc/index1.php - Player controls, Give modal z-index, CTA icon buttons
 * Renamed from index1-neo-player.css for cache bust / fresh load
 */

/* 1. Prevent container from clipping the lower controls and CTA buttons */
.custom__vidoe .containerc.video-container,
.video-container:has(.neo-player) {
    overflow: visible !important;
    height: auto !important;
    min-height: 0;
}
.video-container .neo-player {
    overflow: visible;
}

/* 2. Neo-player controls visibility */
.video-container .neo-player .np-root .np-ctrl-overlay,
.video-container .neo-player .np-ctrl-overlay,
.video-container .np-ctrl-overlay {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: all !important;
    visibility: visible !important;
    z-index: 20 !important;
}
.video-container .np-ctrl-bar,
.video-container .np-prog,
.video-container .np-cbtn,
.video-container .np-vol-wrap,
.video-container .np-time,
.video-container input.np-vol {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.video-container .np-prog { display: block !important; }
.video-container input.np-vol { display: block !important; }
.video-container .np-actionbar,
.video-container .np-lang-btn,
.video-container .np-give-btn,
.video-container .np-abtn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.video-container .np-poster,
.video-container .np-tap-ring,
.video-container .np-spinner-wrap {
    z-index: 1 !important;
}

/* 3. Give modal - must be at the front */
.np-modal-bd,
.np-modal-bd.open {
    z-index: 2147483647 !important;
    position: fixed !important;
}

/* 4. Small icon-style CTA buttons - horizontal on all screens */
.vc-compact-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
}
.vc-compact-buttons .col-6,
.vc-compact-buttons .col-lg-auto {
    flex: 0 0 auto !important;
    max-width: none !important;
    width: auto !important;
}
.vc-compact-buttons .vc-compact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s ease;
    min-height: 40px;
}
.vc-compact-buttons .vc-compact-btn i {
    font-size: 18px;
    flex-shrink: 0;
}
.vc-compact-buttons .vc-btn-label {
    font-size: 12px;
    line-height: 1;
}
.vc-compact-buttons .vc-compact-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.vc-compact-buttons .btn-outline-light.vc-compact-btn {
    background: #4b5563;
    color: #fff !important;
    border-color: rgba(255,255,255,0.3);
}
.vc-compact-buttons .btn-outline-light.vc-compact-btn:hover {
    background: #6b7280;
}
.vc-compact-buttons .col-6,
.vc-compact-buttons .col-lg-auto {
    display: flex;
    justify-content: center;
}
.vc-compact-buttons .vc-compact-btn {
    width: auto;
    max-width: none;
    position: relative;
}
/* Tooltip on hover - show button name */
.vc-compact-buttons .vc-compact-btn[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    background: rgba(0,0,0,0.85);
    color: #fff;
    border-radius: 4px;
    pointer-events: none;
    z-index: 100;
}
.vc-compact-buttons .vc-compact-btn[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0,0,0,0.85);
    margin-bottom: -8px;
    pointer-events: none;
    z-index: 100;
}

@media (max-width: 576px) {
    .vc-compact-buttons .vc-compact-btn {
        padding: 8px 12px;
        font-size: 11px;
        min-height: 36px;
    }
    .vc-compact-buttons .vc-compact-btn i {
        font-size: 16px;
    }
    .vc-compact-buttons .vc-btn-label {
        font-size: 11px;
    }
}

/* 5. Chat box - modern compact messaging area */
.watching__chatbar {
    max-width: 100%;
    padding: 12px 14px !important;
    border-radius: 12px;
}
.watching__chatbar .d-flex.baseborder__bottomdadh {
    margin-bottom: 12px !important;
    padding-bottom: 10px;
}
.watching__chatbar h4 {
    font-size: 0.95rem !important;
}
.chating__running {
    max-height: 220px !important;
    min-height: 120px;
    height: auto;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-radius: 8px;
}
.chating__running .chating__runbox {
    max-height: none !important;
    min-height: 80px;
}
.watching__chatbar .saysometing {
    padding-top: 12px !important;
    margin-top: 12px !important;
}
.watching__chatbar .saysometing .devon__say {
    margin-bottom: 0 !important;
}
@media (max-width: 991px) {
    .chating__running {
        max-height: 180px !important;
    }
}

/* 6. Share button - icon only */
.vc-compact-buttons .copy-link-btn.vc-compact-btn .vc-btn-label {
    display: none !important;
}
.vc-compact-buttons .copy-link-btn.vc-compact-btn {
    padding: 10px !important;
    min-width: 40px;
}

/* 7. Share modal (backDropModal) - backdrop, content, close button */
.vc-share-modal-wrapper {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.vc-share-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}
.vc-share-modal-content {
    position: relative;
    z-index: 1;
    max-width: 380px;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
    border-radius: 30px;
    padding: 1.5rem;
    padding-top: 2.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.vc-share-modal-content.vc-share-modal-open {
    transform: scale(1);
}
.vc-share-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.vc-share-modal-close span {
    font-size: 1.5rem;
    font-weight: 300;
}
.vc-share-modal-close:hover {
    background: #cbd5e1;
    color: #0f172a;
}

/* 8. Hide CTAs, chat, and Recommended videos when Give modal is open */
.vc-action-buttons.give-modal-open,
.watching__chatbar.give-modal-open,
.playlist-section.give-modal-open {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}
