/* ========================================
   GLOBAL VIDEO PLAYER STYLES
   ======================================== */

/* Base video embed wrapper styling for all video types */
.video-embed-wrapper {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* Shaka Player specific styling */
.video-embed-wrapper.shaka-player-wrapper {
    aspect-ratio: var(--todaa-video-aspect-ratio, 16 / 9);
    width: 100%;
    background: #000;
}

.video-embed-wrapper .shaka-video-container,
.video-embed-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Standard iframe styling for other video platforms */
.video-embed-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive video wrapper */
.responsive-video-wrapper {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #000;
    position: relative;
    overflow: hidden;
}

.responsive-video-wrapper iframe,
.responsive-video-wrapper video {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
}

/* Video access overlay styling */
.video-access-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    z-index: 10;
    font-family: Arial, sans-serif;
}

.video-access-overlay .overlay-content {
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.video-access-overlay .overlay-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.video-access-overlay .overlay-title {
    font-weight: 600;
    letter-spacing: 1px;
}

.video-access-overlay .overlay-subtitle {
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.8;
}

/* Loading state for video players */
.video-embed-wrapper.loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-embed-wrapper.loading::before {
    content: "טוען...";
    color: white;
    font-size: 18px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .video-embed-wrapper,
    .responsive-video-wrapper {
        border-radius: 4px; /* Smaller border radius on mobile */
    }
    
    .video-access-overlay {
        font-size: 16px;
    }
    
    .video-access-overlay .overlay-content {
        padding: 20px;
    }
    
    .video-access-overlay .overlay-icon {
        font-size: 48px;
        margin-bottom: 10px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .video-embed-wrapper,
    .responsive-video-wrapper {
        border: 2px solid #fff;
    }
    
    .video-access-overlay .overlay-content {
        border: 3px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .video-embed-wrapper,
    .responsive-video-wrapper,
    .video-access-overlay {
        transition: none;
    }
}
