.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(240, 240, 240, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: clamp(30px, 5vw, 50px);
    height: clamp(30px, 5vw, 50px);
    border: clamp(2px, 0.3vw, 3px) solid rgba(128, 128, 128, 0.3);
    border-radius: 50%;
    border-top-color: #666;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: clamp(10px, 2vw, 15px);
}

.loading-text {
    color: #444;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(12px, 2vw, 16px);
    letter-spacing: 1px;
    text-align: center;
    padding: 0 20px;
}

/* Play Button Styles */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(50px, 8vw, 80px);
    height: clamp(50px, 8vw, 80px);
    background: rgba(240, 240, 240, 0.8);
    border: 2px solid #666;
    border-radius: 50%;
    color: #444;
    font-size: clamp(20px, 3vw, 30px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.video-play-button:hover {
    background: rgba(220, 220, 220, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Error Message Styles */
.error-message {
    color: #d32f2f;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(12px, 2vw, 16px);
    text-align: center;
    padding: 20px;
    background: rgba(240, 240, 240, 0.95);
    border-radius: 8px;
    max-width: 80%;
    border: 1px solid #d32f2f;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Tablet and smaller desktop devices */
@media (max-width: 1024px) {
    .video-placeholder {
        background-color: rgba(245, 245, 245, 0.95);
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .video-placeholder {
        background-color: rgba(250, 250, 250, 0.95);
    }
    
    .loading-spinner {
        width: 35px;
        height: 35px;
        border-width: 2px;
    }

    .loading-text {
        font-size: 14px;
    }

    .video-play-button {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .loading-spinner {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }

    .loading-text {
        font-size: 12px;
        padding: 0 15px;
    }

    .video-play-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Landscape mode for mobile devices */
@media (max-height: 480px) and (orientation: landscape) {
    .video-placeholder {
        flex-direction: row;
        gap: 15px;
    }

    .loading-spinner {
        margin-bottom: 0;
    }

    .video-play-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* High-DPI (Retina) displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .loading-spinner {
        border-width: 1.5px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .loading-spinner {
        animation: spin 2s linear infinite;
    }
    
    .video-placeholder {
        transition: opacity 0.5s ease;
    }

    .video-play-button {
        transition: none;
    }
} 