/* cronometro_video.css */

/* Botão do Cronômetro */
.speed-btn {
    position: absolute;
    top: 15px;
    right: 65px; /* Fica ao lado esquerdo da engrenagem */
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.speed-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Menu de Velocidades Dropdown */
.speed-menu {
    position: absolute;
    top: 60px;
    right: 65px; /* Alinhado com o botão */
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    max-height: 160px; /* Limita a altura */
    overflow-y: auto;  /* Adiciona barra de rolagem se necessário */
}

/* Customizando a barra de rolagem do menu */
.speed-menu::-webkit-scrollbar { width: 6px; }
.speed-menu::-webkit-scrollbar-track { background: transparent; }
.speed-menu::-webkit-scrollbar-thumb { background: rgba(255, 215, 0, 0.3); border-radius: 4px; }
.speed-menu::-webkit-scrollbar-thumb:hover { background: rgba(255, 215, 0, 0.8); }

.speed-menu.show {
    display: flex;
}

.speed-menu button {
    background: transparent;
    border: none;
    color: #e0e0e0;
    padding: 8px 25px;
    text-align: center;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.speed-menu button:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

/* Destaca a velocidade atual selecionada */
.speed-menu button.active {
    color: #ffd700;
    font-weight: bold;
    background: rgba(255, 215, 0, 0.1);
}