/* ===================================
   CONTROLES CUSTOMIZADOS DE VÍDEO
   =================================== */

/* Esconder TODOS os controles nativos */
video::-webkit-media-controls {
    display: none !important;
    -webkit-appearance: none !important;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}

video::-webkit-media-controls-panel {
    display: none !important;
}

video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* Container dos controles customizados */
.custom-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

/* Desktop: mostrar apenas no hover quando estiver tocando */
@media (min-width: 769px) {
    /* Pausado: sempre visível */
    .video-item:not(.playing) .custom-video-controls {
        opacity: 1;
    }
    
    /* Tocando: apenas no hover */
    .video-item.playing .custom-video-controls {
        opacity: 0;
    }
    
    .video-item.playing.show-controls .custom-video-controls {
        opacity: 1;
    }
}

/* Botões */
.custom-play-btn,
.custom-fullscreen-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-play-btn:hover,
.custom-fullscreen-btn:hover {
    transform: scale(1.1);
}

.custom-play-btn:active,
.custom-fullscreen-btn:active {
    transform: scale(0.95);
}

/* Timeline (barra de progresso) */
.custom-timeline {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.custom-timeline:hover {
    height: 6px;
}

.custom-progress {
    height: 100%;
    background: #0ea5e9;
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 2px;
}

/* Mobile - Esconder controles customizados completamente */
@media (max-width: 768px) {
    .custom-video-controls {
        display: none !important;
    }
}

/* Desktop - Fullscreen */
@media (min-width: 769px) {
    .custom-fullscreen-btn {
        font-size: 1.25rem;
    }
}
