/* Container Geral */
.short-videos-section { width: 100%; max-width: 1100px; margin: 40px auto; font-family: 'Segoe UI', sans-serif; }
.sv-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-left: 5px solid #8B4513; padding-left: 10px; }
.btn-sv-cadastrar { background:linear-gradient(135deg, #d86202 0%, #833e05 100%); color: #fff; border: none; padding: 4px 10px; border-radius: 20px; cursor: pointer; font-weight: bold; box-shadow: 0 4px 15px rgba(152, 152, 152, 0.4); transition: transform 0.2s; }
.btn-sv-cadastrar:hover { transform: scale(1.05); }
/* Ícone de Informação (Interrogação) */
.sv-info-icon {
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, #f77810, #d35400);
    border-radius: 50%;
    padding: 3px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(247, 120, 16, 0.4);
    transition: transform 0.2s;
}
.sv-info-icon:hover {
    transform: scale(1.15);
}


/* Carrossel e Skeleton */
.sv-carousel-container { position: relative; width: 100%; height: 380px; display: flex; align-items: center; overflow: hidden; }
.sv-track-wrapper { flex: 1; overflow: hidden; height: 100%; }
.sv-track { display: flex; gap: 15px; height: 100%; transition: transform 0.4s ease-out; }

/* Item do Vídeo */
.sv-item { width: 200px; height: 100%; flex-shrink: 0; position: relative; border-radius: 15px; overflow: hidden; background: #111; box-shadow: 0 0 15px rgba(0,0,0,0.5), inset 0 0 0 2px var(--plat-color); transition: transform 0.3s, opacity 0.3s; opacity: 0.7; }
.sv-item.active-slide { opacity: 1; }
.sv-item:hover { transform: scale(1.03); opacity: 1; }
.sv-item.playing { width: 100%; max-width: 300px; z-index: 10; opacity: 1; transform: scale(1); border: 2px solid var(--plat-color); }

/* Thumbnails e Iframe Nativo */
.sv-native-iframe { position: absolute; top:0; left:0; width: 100%; height: 100%; z-index: 1; pointer-events: none; background: #000; transition: all 0.3s; }
.sv-native-iframe iframe { width: 100%; height: 100%; border: none; }
.sv-click-interceptor { position: absolute; top:0; left:0; width: 100%; height: 100%; z-index: 2; cursor: pointer; }

/* Comportamento de clique e expansão */
.playing .sv-click-interceptor { display: none; }
.playing .sv-native-iframe { pointer-events: auto; z-index: 5; }
.playing .sv-footer { opacity: 0; pointer-events: none; transition: opacity 0.3s; } /* Oculta as informações de curtida ao focar no vídeo para a tela ficar limpa */

.sv-plat-badge { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.5); z-index: 6; transition: opacity 0.3s; }
.sv-plat-badge .material-icons { font-size: 16px; }
.playing .sv-plat-badge { opacity: 0; pointer-events: none; }

/* Player Controls */
.sv-controls-top { position: absolute; top: 10px; right: 10px; z-index: 10; background: rgba(0,0,0,0.7); border-radius: 50%; width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; }

/* Footer info */
.sv-footer { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px 10px 10px 10px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); z-index: 3; display: flex; flex-direction: column; gap: 5px; }
.sv-user { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; font-weight: bold; text-shadow: 1px 1px 2px #000; }
.sv-user img { width: 25px; height: 25px; border-radius: 50%; border: 1px solid #fff; }
.sv-stats { display: flex; justify-content: space-between; color: #ddd; font-size: 11px; }
.sv-stat-btn { display: flex; align-items: center; gap: 3px; cursor: pointer; background: rgba(0,0,0,0.5); padding: 3px 8px; border-radius: 10px; }
.sv-stat-btn:hover { color: #f77810; }
.sv-stat-btn .material-icons { font-size: 14px; }

/* Setas */
.sv-arrow { background: rgba(0,0,0,0.6); color: #fff; border: 1px solid #444; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 5; margin: 0 5px; transition: background 0.3s; }
.sv-arrow:hover { background: #f77810; border-color: #f77810; }

/* Skeleton */
.sv-skeleton-card { width: 200px; height: 100%; border-radius: 15px; background: linear-gradient(90deg, #222 25%, #333 50%, #222 75%); background-size: 400% 100%; animation: sv-shimmer 1.5s infinite linear; flex-shrink: 0; margin-right: 15px; }
@keyframes sv-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* Modal Glassmorphism */
.sv-modal-glass { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); z-index: 99999; align-items: center; justify-content: center; }
.sv-modal-content { background: rgba(30, 30, 30, 0.85); border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 8px 32px rgba(0,0,0,0.5); border-radius: 20px; width: 90%; max-width: 450px; padding: 25px; position: relative; color: #fff; text-align: center; }
.sv-close-modal { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: #aaa; transition: color 0.2s; }
.sv-close-modal:hover { color: #f77810; }
.sv-input-group { display: flex; align-items: center; background: rgba(0,0,0,0.5); border-radius: 10px; border: 1px solid #555; padding: 5px 15px; margin: 20px 0; }
.sv-input-group input { flex: 1; background: transparent; border: none; color: #fff; padding: 10px 0; outline: none; }
.sv-btn-submit { background: #f77810; color: #fff; border: none; padding: 12px 0; width: 100%; border-radius: 10px; font-weight: bold; cursor: pointer; font-size: 16px; opacity: 0.5; transition: opacity 0.3s; }
.sv-btn-submit:not([disabled]) { opacity: 1; box-shadow: 0 4px 15px rgba(247, 120, 16, 0.5); }
.sv-msg-box { font-size: 13px; margin: 10px 0; height: 15px; font-weight: bold; }

/* === SISTEMA DE TELA CHEIA (FORA DO CARROSSEL) === */
.sv-fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999998 !important;
    background: rgba(0,0,0,0.98) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important; /* <--- Libera o toque (clique) no vídeo */
}
.sv-fullscreen-mode iframe {
    width: 100%;
    height: 100%;
    max-width: 450px; /* Limite elegante no computador */
}
.sv-fullscreen-controls {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
    background: rgba(0,0,0,0.7) !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
}

/* Garante ocupação de 100% da tela no celular */
@media(max-width: 768px) {
    .sv-fullscreen-mode iframe {
        max-width: 100%; 
    }
}

/* Mobile CSS */
/* Mobile CSS */
@media(max-width: 768px) {
    /* Ajuste para o botão aparecer e não ser espremido */
    .sv-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .btn-sv-cadastrar { width: 50%; text-align: center; padding: 4px 10px; }

    /* Ajuste da rolagem dos vídeos */
    .sv-track { gap: 10px; transform: none !important; } 
    
    /* === TRANSIÇÃO LIMPA E RÁPIDA === */
    .sv-item { 
        width: 100%; 
        scroll-snap-align: center;
        /* Transição super rápida focada apenas em opacidade */
        transition: opacity 0.2s ease;
        opacity: 0.3; 
    } 
    
    .sv-item.active-slide { 
        /* O vídeo ativo fica totalmente visível e sem deformações */
        opacity: 1; 
    }

    .sv-item.playing {
        opacity: 1;
        z-index: 10;
    }
    /* === FIM DA TRANSIÇÃO LIMPA === */

    .sv-arrow { display: none; }
    
    .sv-track-wrapper { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .sv-track-wrapper::-webkit-scrollbar { display: none; } 
    .sv-carousel-container { overflow: hidden; } 
}