/* === Formulário de upload === */
.memorial-video-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.memorial-video-form label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}

.memorial-video-form input[type="text"],
.memorial-video-form textarea,
.memorial-video-form input[type="file"] {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.memorial-video-form button.memorial-video-submit {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background-color: #28a745;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.memorial-video-form button.memorial-video-submit:hover {
    background-color: #218838;
}

/* === Barra de progresso === */
#memorial-video-progress {
    width: 100%;
    background: #f1f1f1;
    border-radius: 6px;
    margin-top: 10px;
    height: 12px;
    display: none;
}

#memorial-video-progress-bar {
    height: 12px;
    width: 0%;
    background-color: #28a745;
    border-radius: 6px;
}

/* === Listagem de vídeos === */
.memorial-video-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.memorial-video-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

.memorial-video-item video {
    width: 100%;
    max-height: 180px;
    object-fit: contain; /* mantém proporção */
    border-radius: 6px;
    background: #000;
}

.memorial-video-title {
    margin: 8px 0 4px;
    font-weight: 700;
}

.memorial-video-desc {
    margin: 0 0 6px;
    color: #555;
    font-size: 0.95em;
}

/* botão excluir */
.memorial-video-item button.delete-video {
    margin-top: 8px;
    padding: 6px 12px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.memorial-video-item button.delete-video:hover {
    background: #c82333;
}

/* === Responsividade Mobile === */
@media (max-width: 480px) {
    .memorial-video-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    .memorial-video-item video {
        max-height: 120px;
    }
}
