* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100vh;
    width: 100vw;
    background-color: #000;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.app-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.reels-container {
    height: 100%;
    width: 100%;
    max-width: 450px; /* Ancho ideal para móviles o vista centrada */
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none; /* Ocultar barra de scroll en Firefox */
}

/* Ocultar barra de scroll en Chrome/Safari */
.reels-container::-webkit-scrollbar {
    display: none; 
}

.reel {
    position: relative;
    height: 100%;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reel video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Interfaz superpuesta (UI) */
.reel-info {
    position: absolute;
    bottom: 80px;
    left: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.reel-actions {
    position: absolute;
    bottom: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reel-actions button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

/* modal comentarios */

/* Fondo oscuro translúcido */
.modal-contenedor {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    align-items: center;
    justify-content: center;
}

/* Contenido del Modal - Estilo Escritorio */
.modal-contenido {
    background-color: #fff;
    width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.modal-body {
    padding: 20px;
    min-height: 100px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    text-align: right;
}

.cerrar-modal {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #65676b;
}

/* Adaptabilidad para Móviles */
@media (max-width: 600px) {
    .modal-contenido {
        width: 100%;
        height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }
    
    .modal-contenedor {
        display: none;
        background-color: #c41414; /* Fondo blanco en móvil como Facebook */
    }

    .modal-body {
        flex-grow: 1;
    }
}

/* Animación simple */
@keyframes fadeIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

