/* Estilos para o player de vídeo RTSP */
.rtsp-video-container {
    text-align: center;
    margin: 20px auto;
    background: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    width: 100%;
    padding: 0px !important;
}

.rtsp-video {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Status de novo vídeo */
.rtsp-status {
    margin: 10px 0;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.rtsp-status.awaiting {
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    color: #155724;
}

.rtsp-status.new-video {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.rtsp-new-video-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.rtsp-new-video-btn:hover {
    background: #218838;
}

/* Ocultar controles de volume */
.rtsp-video::-webkit-media-controls-volume-slider,
.rtsp-video::-webkit-media-controls-mute-button,
.rtsp-video::-webkit-media-controls-volume-control-container {
    display: none !important;
}

/* Adicionar botão de download na barra de controles */
.rtsp-video::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

/* Estilo para o botão de download */
.rtsp-video-container a[download] {
    background: #007cba;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.rtsp-video-container a[download]:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .rtsp-video-container {
        margin: 10px;
        padding: 0px !important;
    }
    
    .rtsp-video {
        max-width: 100%;
    }
    
    .rtsp-status {
        padding: 8px;
        font-size: 14px;
    }
    
    .rtsp-new-video-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .rtsp-video-container {
        margin: 5px;
        padding: 10px;
    }
    
    .rtsp-video {
        max-width: 100%;
    }
    
    .rtsp-status {
        padding: 6px;
        font-size: 12px;
    }
    
    .rtsp-new-video-btn {
        padding: 4px 8px;
        font-size: 11px;
        margin-left: 5px;
    }
}

/* Ocultar controles de volume em players nativos */
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-volume-control-container,
video::-webkit-media-controls-volume-control {
    display: none !important;
}

/* Para Firefox */
video::-moz-range-track {
    display: none !important;
}

/* Para outros navegadores */
video::-ms-fill-lower,
video::-ms-fill-upper,
video::-ms-thumb {
    display: none !important;
}

/* Adicionar botão de download customizado na barra de controles */
.rtsp-video-container {
    position: relative;
}

.rtsp-download-btn {
    position: absolute;
    bottom: 50px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 10;
}

.rtsp-download-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

.rtsp-download-btn::before {
    content: "⬇";
    font-size: 18px;
} 

.controls {
    display: none !important;
} 