/* Video Protection Styles - Optimized */

.protected-video-container {
    position: relative;
    background: #1c2333;
    overflow: hidden;
    -webkit-context-menu: none;
    -moz-context-menu: none;
    context-menu: none;
}

.protected-iframe {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.video-interaction-blocker div {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    cursor: default;
    transition: background-color 0.2s ease;
}

.protected-video-container * {
    -webkit-context-menu: none;
    -moz-context-menu: none;
    context-menu: none;
}

.element-preview .card-body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
    overflow: hidden;
}

/* Fullscreen modal enhancements */
#fullscreenVideoModal .modal-content {
    background-color: #1c2333 !important;
}

#fullscreenVideoModal .modal-header {
    background-color: rgba(28, 35, 51, 0.8);
    border-bottom: 1px solid #495057;
}

.modal-fullscreen .protected-video-container {
    height: 100vh !important;
}

.modal-fullscreen .video-interaction-blocker {
    height: 100% !important;
}

/* Protection overlays */
.video-protection-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 2;
}

.ratio, .ratio iframe, .video-protection-overlay {
    -webkit-context-menu: none;
    -moz-context-menu: none;
    context-menu: none;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .video-interaction-blocker div {
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        touch-action: none !important;
    }
    
    .block-top {
        height: 30% !important;
    }
    
    .block-sides > div {
        width: 10% !important;
    }
    
    .video-protection-overlay {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
    }
}

/* Browser-specific optimizations */
@media screen {
    .ratio iframe {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
}