/**
 * Estilos para Video Loader
 * Indicadores de loading e mensagens de erro
 */

/* Container de vídeo com loading */
video[data-loading="true"] {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

/* Spinner de loading */
video[data-loading="true"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: video-spinner 0.8s linear infinite;
}

@keyframes video-spinner {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Overlay de erro */
.video-error-overlay {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    padding: 2rem;
    margin: 1rem 0;
    text-align: center;
}

.video-error-content {
    max-width: 500px;
    margin: 0 auto;
}

.video-error-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.video-error-message {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.video-error-detail {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.video-error-retry {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.video-error-retry:hover {
    background: #45a049;
}

/* Estilos base para vídeos */
video[data-gcs-path] {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    background: #000;
}
