﻿/* ===================================================== */
/* RESET */
/* ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===================================================== */
/* BODY */
/* ===================================================== */

body {

    background-color: #000;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 100vh;

    overflow: hidden;
}

/* ===================================================== */
/* PAINEL PRINCIPAL */
/* ===================================================== */

.painel-principal {

    position: relative;

    width: 60vh;
    height: 100vh;

    background: url("conversor_hz3.svg") no-repeat center center;

    background-size: contain;

    margin: 0 auto;

    z-index: 1;
}

/* ===================================================== */
/* CONTADOR SUPERIOR - BLINDADO CONTRA ESTOURO          */
/* ===================================================== */
#container-contador {
    position: absolute !important;
    top: 21% !important;
    left: 51% !important;
    transform: translateX(-50%) !important;

    width: 85% !important;
    /* MUDANÇA MASTER: Impede que o bloco estoure para fora em telas esmagadas */
    max-width: 305px !important; 
    
    /* Mantém o bloco perfeitamente centralizado no eixo */
    margin: 0 auto !important; 

    z-index: 200 !important;
}

/* NÚMEROS */

#numeros-contador {
    position: absolute !important;
    top: 48% !important;
    
    /* MUDANÇA ENGENHARIA: Trava a ancoragem na direita interna da faixa */
    right: 8px !important; 
    transform: translateY(-50%) !important;

    color: #81ba55 !important;
    font-family: monospace !important;

    /* MUDANÇA MASTER: Trocamos vh por uma escala de largura estável */
    font-size: 24px !important; 
    font-weight: bold !important;
    
    /* Espaçamento estável em pixels */
    letter-spacing: 2px !important; 
    
    white-space: nowrap !important; 
}
/* OSCILOSCÓPIO / CONTAINER DA ONDA (TRAVA DE METAL FIXA) */
#container-onda {
    position: absolute !important;
    top: 222px !important; /* Sua calibragem padrão do PC */
    
    /* FORÇAR A ONDA A FICAR NA FRENTE */
    z-index: 500 !important; 
}
    
/* MEDIDAS FLEXÍVEIS LIMITADAS: Acaba com o vazamento lateral */
    width: 90% !important;        /* Ocupa a largura da moldura cinza em telas normais */
    max-width: 275px !important;  /* BARREIRA DE METAL: Impede de crescer além da moldura em telas largas */
    height: 110px !important;
    
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;

#osciloscopio {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Força o gráfico verde a preencher todo o espaço dos 100px de altura */
}
/* ===================================================== */
/* BLINDAGEM MESTRE - ALTERNÂNCIA E TAMANHO DO BOTÃO CENTRAL */
/* ===================================================== */

/* 1. Força o Stop a sumir por padrão usando o caminho completo do container */
html body div.main-footer div#player-rodape div.controles-player button#btn-pause-small,
html body div.main-footer div#player-rodape div.controles-player button#btn-pause-small img {
    display: none !important;
}

/* 2. Quando o sistema estiver ativo (tocando), força o Play a sumir */
html body .playing div.main-footer div#player-rodape div.controles-player button#btn-play-small,
html body .playing div.main-footer div#player-rodape div.controles-player button#btn-play-small img {
    display: none !important;
}

/* 3. Quando o sistema estiver ativo (tocando), força o Stop a aparecer */
html body .playing div.main-footer div#player-rodape div.controles-player button#btn-pause-small {
    display: flex !important;
}
html body .playing div.main-footer div#player-rodape div.controles-player button#btn-pause-small img {
    display: block !important;
}

/* 4. Ganho de escala imponente para destacar o botão central das setas */
html body div.main-footer div#player-rodape div.controles-player button#btn-play-small,
html body div.main-footer div#player-rodape div.controles-player button#btn-pause-small {
    width: 54px !important;
    height: 54px !important;
}

html body div.main-footer div#player-rodape div.controles-player button#btn-play-small img,
html body div.main-footer div#player-rodape div.controles-player button#btn-pause-small img {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
}


/* ===================================================== */
/* ISOLAMENTO EXCLUSIVO DO DIAMANTE (PRODUÇÃO)          */
/* ===================================================== */


/* USANDO APENAS O ID COMPLETO PARA NÃO BUGAR O PLAYER */
#controle-diamante {
    -webkit-appearance: none !important;
    appearance: none !important;
    
    /* MANDATÓRIO: Força o diamante a ignorar a caixinha roxa do rodapé */
    position: fixed !important;       
    /* CALIBRAGEM VERTICAL: 54% joga ele exatamente em cima da régua verde */
    top: -89.7% !important;            
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    
    /* CURSO LATERAL INDUSTRIAL */
    width: 300px !important;
    max-width: 440px !important;
    
    background: transparent !important;
    border: none !important;
    z-index: 999999 !important;
    cursor: pointer !important;
}

/* Desenha o diamante no Chrome, Edge e Safari */
#controle-diamante::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 38px !important;           /* Tamanho do diamante */
    height: 25px !important;
    background: url("diamante-volume.svg") no-repeat center !important; /* Espaço correto */
    background-size: contain !important;
    border: none !important;
    box-shadow: none !important;
}

/* Desenha o diamante no Firefox */
#controle-diamante::-moz-range-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 38px !important;
    height: 25px !important;
    background: url("diamante-volume.svg") no-repeat center !important;
    background-size: contain !important;
    border: none !important;
    box-shadow: none !important;
}

.zona-botoes {

    position: absolute;

    bottom: 20%;
    left: 50%;

    transform: translateX(-50%);

    display: flex;

    justify-content: center;
    align-items: center;

    gap: 50px;

    width: 100%;

    z-index: 100;
}

/* IMAGENS DOS BOTÕES */

.zona-botoes img {

    width: 100px;

    height: auto;

    cursor: pointer;

    transition: transform 0.1s;
}

/* ===================================================== */
/* REDIMENSIONAMENTO DO BOTÃO MESTRE CENTRAL (PLAY/STOP) */
/* ===================================================== */


/* Aumenta a caixinha de clique dos botões centrais */
#btn-play-small, 
#btn-pause-small {
    width: 54px !important;
    height: 54px !important;
}

/* Aumenta os ícones internos (SVGs) do Play e Stop para se destacarem */
#btn-play-small img, 
#btn-pause-small img {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
}

/* Aumenta os ícones internos (SVGs) do Play e Stop para se destacarem */
#btn-play-small img, 
#btn-pause-small img {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
}

#player-rodape .controles-player button,
#player-rodape .controles-player button img,
#player-rodape .controles-player button svg,
#player-rodape .controles-player button * {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    outline-offset: 0 !important;
    outline-style: none !important;
    outline-width: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

#player-rodape .controles-player button:focus,
#player-rodape .controles-player button:focus-visible,
#player-rodape .controles-player button:focus-within,
#player-rodape .controles-player button:active,
#player-rodape .controles-player button:-moz-focusring,
#player-rodape .controles-player button *:focus,
#player-rodape .controles-player button *:focus-visible,
#player-rodape .controles-player button *:active,
#player-rodape .controles-player button *:focus-within,
#player-rodape .controles-player button *::-moz-focus-inner,
#player-rodape .controles-player button::-moz-focus-inner,
#player-rodape .controles-player button::-webkit-focus-ring-color {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    outline-offset: 0 !important;
    outline-style: none !important;
    outline-width: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

#player-rodape .controles-player button::-moz-focus-inner {
    border: none !important;
    box-shadow: none !important;
}

/* ===================================================== */
/* LETREIRO DE STATUS - ECCOSSISTEMA BEEPSONIC           */
/* ===================================================== */

/* 1. O Bloco Container (Controla a área física na tela) */
#rodape-tecnico {
    position: absolute !important;
    bottom: 15% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    
    width: 90% !important;
    /* BLINDAGEM: Trava o container para não vazar a moldura escura */
    max-width: 290px !important; 
    margin: 0 auto !important;
    
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: transparent !important;
    z-index: 110 !important;
    overflow: visible !important;
}

/* 2. O Texto Interno Real (Trata a frase longa para caber) */
#msg-tecnica {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-family: "Eras Demi ITC", "Eras Bold ITC", sans-serif !important;
    font-size: 0.97rem !important;
    font-weight: bold !important;
   color: #0bba4b; /* Deixe o seu verde oficial aqui, sem o !important */
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    
    /* DINÂMICA: Permite que frases longas quebrem linha se a tela for esmagada */
    white-space: normal !important;
    word-wrap: break-word !important;
    width: 100% !important;
}
/* ===================================================== */
/* PAINEL INFERIOR UNIFICADO - ECOSSISTEMA BEEPSONIC     */
/* ===================================================== */

/* 1. RESTAURAÇÃO DOS BOTÕES ORIGINAIS DO PAINEL (PLAY/MUDAR) */
.zona-botoes {
    position: absolute !important;
    bottom: 20% !important;        /* Posição original intocada do seu design */
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 50px !important;
    width: 100% !important;
    z-index: 100 !important;
}

.zona-botoes img {
    width: 100px !important;       /* Mantém o tamanho grande imponente do painel */
    height: auto !important;
}

/* 2. ENQUADRAMENTO DA BARRA VERMELHA DE PROGRESSO (SUBIU PARA DAR ESPAÇO) */
input[type="range"]:not(#controle-diamante) {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: absolute !important;
    bottom: 13% !important;        /* Posição elevada para não esmagar os botões */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 85% !important;         /* Curso horizontal simétrico */
    height: 4px !important;
    background: #ff7d49 !important; /* Vermelho operacional BEEPSONIC */
    border-radius: 3px !important;
    outline: none !important;
    z-index: 500 !important;       /* Força a frente de qualquer SVG de fundo */
}

/* Bolinha branca indicadora de progresso */
input[type="range"]:not(#controle-diamante)::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width: 12px !important;
    height: 12px !important;
    background: #16ff06 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 0 4px rgba(0,0,0,0.5) !important;
}

/* 3. ATIVAÇÃO, REDIMENSIONAMENTO E EXIBIÇÃO DOS SVGs DA PASTA */

.audio-interface {
    position: absolute !important;
    bottom: 2% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 62% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    z-index: 600 !important;
}

/* ===================================================== */
/* REPOSICIONAMENTO DA BARRA DE PROGRESSO (ACIMA)        */
/* ===================================================== */

#player-rodape {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important; /* Retorna ao padrão estável horizontal */
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    height: 95px !important;           /* Altura fixa para criar o esquadro perfeito */
    padding: 0 8px !important;
    background: transparent !important;
    border: none !important;
    z-index: 600 !important;
}

/* ===================================================== */
/* ENQUADRAMENTO DOS TEMPOS NAS EXTREMIDADES DA BARRA   */
/* ===================================================== */

.timeline-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;

    /* 🚀 COMANDO DE ALTURA: Ajuste esse valor em pixels para empurrar 
       a linha do tempo e tudo que vem abaixo dela para o chão */
    margin-top: 35px !important; 
}

/* ===================================================== */
/* COMPACTAÇÃO INDUSTRIAL E ATIVAÇÃO DO MOTOR FLEX     */
/* ===================================================== */
.controles-player {
    margin-top: 22px !important;
    width: 100% !important;
    max-width: 260px !important; /* Trava a largura mecânica estável */
    margin: 0 auto !important;   /* Centraliza o bloco no rodapé */
    transform: translateY(3px) !important;
    display: flex !important;    /* OBRIGATÓRIO: Liga o motor que faz o 'order' funcionar */
    flex-direction: row !important;
    justify-content: space-between !important; 
    align-items: center !important;
    padding: 0 !important;
}

/* Zera interferências de margens nos botões */
.controles-player button {
    margin: 0 !important;
    padding: 0 !important;
}

.audio-interface {
    position: absolute !important;
    bottom: 1% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 85% !important;
    max-width: 420px !important;
    z-index: 600 !important;
}

div[class*="player"] button, 
div[class*="control"] button, 
.controls button,
div[class*="player"] .btn,
div[class*="control"] .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    visibility: visible !important;
    opacity: 1 !important;
}

div[class*="player"] button img, 
div[class*="player"] button svg, 
.controls button img, 
.controls button svg,
div[class*="control"] button img {
    display: block !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    visibility: visible !important;
    opacity: 1 !important;
    filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.7)) !important;
}

.volume-container {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
}

.time-label {
    font-family: monospace !important;
    font-size: 1rem !important;
    color: #d6fec7 !important;         /* Verde operacional BEEPSONIC */
    min-width: 45px !important;
    text-align: center !important;
    line-height: 1 !important;         /* Remove folgas verticais na fonte */
    display: block !important;
}

/* ⏱️ TRAVA DO CONTAINER (PRENDE OS NÚMEROS NAS PONTAS DA BARRA) */
.timeline-container {
    width: 100% !important;
    max-width: 290px !important;       /* Alinha com o bloco de botões superior */
    margin: 2.5 vh auto 10px auto !important; /* Centraliza no painel e dá respiro para baixo */
    display: flex !important;
    justify-content: space-between !important; /* Força um número para cada ponta */
    align-items: center !important;
}

/* Força a barra de progresso a ocupar todo o espaço restante entre os números */
#barra-progresso,
input[type="range"]#barra-progresso {
    flex-grow: 1 !important;
    width: 100% !important;
    max-width: 190px !important;  /* BARREIRA DE METAL: Mesma largura do bloco .controles-player */
    margin: 0 auto !important;    /* Centraliza perfeitamente no vão inferior */
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
}

.btn-controle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn-controle img {
    display: block !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    visibility: visible !important;
    opacity: 1 !important;
    filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.7)) !important;
}
/* 🔍 Posicionamento Livre da Lupa de Busca */
#gatilho-lupa-busca {
    position: absolute;
    
    /* 🎛️ CONTROLES DE POSIÇÃO: Mude estes valores para mover para onde quiser! */
    right: 29px;       /* Distância da borda direita. Aumente para mover para a esquerda */
    top: 147px;         /* Distância do topo da tela. Aumente para descer, diminua para subir */
    
    width: 95px;       /* Largura da lupa */
    height: auto;
    cursor: pointer;
    z-index: 9999;     /* Garante que fica por cima de tudo */
    transition: opacity 0.2s, filter 0.2s;
}

#gatilho-lupa-busca.inativo {
    opacity: 0.35;
    cursor: not-allowed;
    filter: grayscale(100%) brightness(0.85);
    pointer-events: none;
}

#status-lupa {
    position: absolute;
    top: 175px;
    right: 82px;
    font-family: monospace;
    font-size: 15px;
    color: #0bba4b;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    white-space: nowrap;
}

/* 🎛️ POSICIONAMENTO EXATO DO MIOLO DE MÚSICAS (BEEPSONIC) */
#conteudo-abas {
    width: 98% !important;          /* ⬅️ ERA 100%: Agora encolheu e veio para as laterais */
    max-width: 125% !important;    /* Trava de segurança para não estourar nas bordas */
    height: 220px !important;       /* Altura precisa do miolo industrial */
    background-color: #000000 !important; /* Bloqueia 100% qualquer vazamento traseiro */
    overflow-y: auto;               /* Mantém a rolagem interna das suas 20+ músicas */
    padding: 4px;
    box-sizing: border-box;
    
    /* 🛠️ OS EMPURRADORES PARA O MIOLO CENTRAL */
    position: relative;
    margin-top: 50px !important;    /* ⬅️ ERA 108px: Diminuímos para subir a caixa preta */
    margin-left: -2% !important;    /* ⬅️ Diminuir  para ir para esquerda  */
    margin-right: auto !important;  /* ⬅️ Centraliza perfeitamente na horizontal */
    margin-bottom: 20px;            /* Separa do player rodapé */
    z-index: 999 !important;        /* Mantém a prioridade máxima de toque */
}
/* 2. O Compactador Industrial de Faixas (Onde a mágica acontece) */
 .linha-musica {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 6px 5px !important;
}

    /* 3. A Amplitude do texto (Nome da música) */
 .nome-musica-texto {
    /* O SEGREDO: flex: 1 permite crescer, min-width: 0 permite encolher sem quebrar o pai */
flex: 0 1 auto !important; 
    
    /* Definimos que ele pode crescer, mas deve parar 25px antes do botão (8mm é aprox 20-25px em tela) */
    max-width: calc(100% - 60px) !important; 
    
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    
    /* Aqui criamos o seu respiro industrial de 8mm */
    margin-right: 25px !important; 
}

/* 🎛️ CUSTOMIZAÇÃO INDUSTRIAL DA BARRA DE ROLAGEM (BEEPSONIC CORE) */

/* 1. Define a largura da barra (Estreitando para ficar fina e discreta) */
#conteudo-abas::-webkit-scrollbar {
    width: 8px !important; /* ↔️ Reduzido para ficar bem estreita e elegante */
}

/* 2. O trilho/fundo da barra (Garante que ela fique alinhada e sem vazar para cima) */
#conteudo-abas::-webkit-scrollbar-track {
    background: #000000 !important; /* Fundo preto para sumir com o bloco traseiro */
    margin-top: 2px !important;     /* ⬇️ Empurra o início da barra para baixo (Ajuste milimétrico) */
    margin-bottom: 5px !important;  /* ⬆️ Evita que ela esbarre no rodapé da caixa */
    border-radius: 10px;
}

/* 3. O "Cursor" que se move (Onde você altera a cor da barrinha) */
#conteudo-abas::-webkit-scrollbar-thumb {
    background: #f97320 !important; /* 🟠 COR PRINCIPAL: Laranja Beepsonic (Mude para #0bba4b se preferir Verde) */
    border-radius: 10px;            /* Deixa as pontas arredondadas */
}

/* 4. Cor do cursor quando o mouse passa por cima (Efeito Hover) */
#conteudo-abas::-webkit-scrollbar-thumb:hover {
    background: #0bba4b !important; /* 🟢 Muda para Verde quando passa o mouse/toca */
}
/* 3. O "Cursor" que se move (Onde você altera a cor da barrinha) */
#conteudo-abas::-webkit-scrollbar-thumb {
    background: #f97320 !important; /* 🟠 COR PRINCIPAL: Laranja Beepsonic (Mude para #0bba4b se preferir Verde) */
    border-radius: 10px;            /* Deixa as pontas arredondadas */
}
/* Remove o botão de favorito globalmente */
.btn-favorito {
    display: none !important;
}

/* ==========================================================================
   BLINDAGEM MOBILE DEFINITIVA UNIFICADA - ECOSSISTEMA BEEPSONIC
   ========================================================================== */
@media screen and (max-width: 480px) {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        overflow: hidden !important; /* Trava rolagens fantasmas na tela */
        background-color: #272525 !important;
    }

   /* CALIBRAGEM CIRÚRGICA PARA EXPANDIR, CENTRALIZAR E DAR AMPLITUDE ÀS ONDAS */
    .imagem-fundo-frequencia, .onda-bloco, #painel-canvas, .canvas-frequencia,
    #osciloscópio, #container-onda, canvas {
        position: absolute !important;
        top: 33.4% !important;         /* Diminuir para subir */
        left: 50% !important;          /* Move o início do elemento para o centro morto da tela */
        transform: translateX(-50%) scaleY(1.2) !important; /* CENTRALIZA E AMPLIFICA: Aumenta a altura da onda em 35% */
        width: 91vw !important;       /* Garante a largura total de ponta a ponta */
        height: 128px !important;      /* Aumentamos um pouco para dar espaço para a amplitude crescer */
        object-fit: fill !important;   
        background: transparent !important;
        box-sizing: border-box !important;
        pointer-events: none !important; 
        z-index: 1 !important; /* Baixa a prioridade dele */
    }    /* 1. RESTAURAÇÃO DO PAINEL PRINCIPAL */
    .painel-principal {
        position: relative !important;
        width: 100% !important;
        max-width: 480px !important;
        height: 100vh !important;
        margin-top: -30px !important;
        margin: 0 auto !important;
        background: url("conversor_hz3.svg") no-repeat !important;
        background-position: center -1px !important;
        background-size: contain !important;
        display: block !important;
    }

/* 1.1 AJUSTE DOS BOTÕES RETANGULARES (PLAY E MUDAR) */
    .zona-botoes {
        position: absolute !important;
        top: 74% !important;          /* Controla a altura. Diminue para subir, aumente para descer */
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 95% !important;
        display: flex !important;
        justify-content: center !important;
        
        /* DISTÂNCIA ENTRE ELES: Aumentado de 15px para 35px para dar mais respiro */
        gap: 47px !important;           
        z-index: 145 !important;
    }

    .zona-botoes img {
        /* TAMANHO VISUAL: Subiu de max-height 50px para 56px para encorpar no layout */
        max-height: 40px !important; 
        width: auto !important;
        object-fit: contain !important;
    }

/* 2. ALVO REAL DO MIOLO DO CONVERSOR (ABA) */
    #aba-conversor, .aba-conversor {
        height: auto !important;
        max-height: 350px !important; 
        margin-top: 15px !important; 
    }

   /* CALIBRAGEM CIRÚRGICA PARA EXPANDIR E BAIXAR AS ONDAS */
    .imagem-fundo-frequencia, .onda-bloco, #painel-canvas, .canvas-frequencia {
        position: absolute !important;
        top: 50% !important;           /* Valor do rebaixamento. Mude para achar o encaixe do SVG */
        left: 0 !important;            /* Gruda na parede esquerda da tela */
        right: 0 !important;           /* Gruda na parede direita da tela */
        width: 110vw !important;       /* Força a onda a ter a largura total da janela */
        max-height: 110px !important;  /* Achata para dar o design industrial */
        object-fit: fill !important;   /* Força o desenho a esticar horizontalmente */
        z-index: 100 !important;
    }

    /* 3. CONTADOR SUPERIOR (VISOR INTEGRADO E BLINDADO) */
    #container-contador #img-faixa {
        display: none !important; /* Apaga a faixa amarela solta de forma definitiva */
        width: 0 !important;
        height: 0 !important;
    }

    #container-contador {
        position: absolute !important;
        top: 130px !important; /* Diminua para subir, aumente para descer */
        left: 57.5% !important;  /* Sua calibragem perfeita */
        transform: translateX(-50%) !important;
        width: 100% !important;
        max-width: 460px !important;
        height: 40px !important;
        background: transparent !important;
        display: block !important;
        z-index: 9999 !important;
    }

    #container-contador #numeros-contador {
        position: absolute !important;
        right: 48px !important; /* Encaixe cirúrgico no box preto */
        top: 44% !important;  /* Diminua para subir, aumente para descer */
        transform: translateY(-50%) !important;
        font-family: monospace !important;
        font-size: 24px !important;
        font-weight: bold !important;
        letter-spacing: 3px !important;
        color: #0bba4b !important; /* Verde padrão BEEPSONIC */
        z-index: 10000 !important;
    }

/* 4. CONTROLE DO DIAMANTE SLIDER - POSICIONADO NO LOCAL CORRETO */
    #controle-diamante {
        -webkit-appearance: none;
        appearance: none;
        background: transparent; 
        height: 35px !important; 
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 105% !important;
        top: -142% !important; /* Aumentar para subir */
        z-index: 140 !important;
    }
    /* 🚫 ELIMINA O FANTASMA AZUL E A SELEÇÃO AO ARRASTAR O DIAMANTE */
.barra-progresso, .timeline-input, #controle-diamante {
    -webkit-user-select: none !important;  /* Safari/Chrome Celular */
    -moz-user-select: none !important;     /* Firefox */
    -ms-user-select: none !important;      /* IE/Edge */
    user-select: none !important;          /* Padrão Técnico Universal */
    -webkit-tap-highlight-color: transparent !important; /* Remove o flash azul de clique nativo */
}
    /* =================================================== */
    /* 7. PLAY, REVERSE, PAUSE E LINHA DO TEMPO (MOBILE)   */
    /* =================================================== */
    
   /* ⏱️ TRAVA DO CONTAINER (PRENDE OS NÚMEROS NAS PONTAS DA BARRA) */
.timeline-container {
    width: 150% !important;
    max-width: 320px !important;       /* Alinha com o bloco de botões superior */
    margin: 0 vh auto 10px auto !important; /* Centraliza no painel e dá respiro para baixo */
    display: flex !important;
    justify-content: space-between !important; /* Força um número para cada ponta */
    align-items: center !important;
}

    /* Ajuste dos textos de tempo (0:29 e 2:28) */
    .tempo-atual, .tempo-total, .duracao {
        font-family: monospace !important; /* Mantém o padrão técnico industrial */
        font-size: 13px !important;
        font-weight: bold !important;
        color: #0bba4b !important;        /* Deixa os números em Verde BEEPSONIC */
    }

#player-rodape {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important; /* Retorna ao padrão estável horizontal */
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    height: 95px !important;           /* Altura fixa para criar o esquadro perfeito */
    padding: 0 5px !important;
    background: transparent !important;
    border: none !important;
    z-index: 600 !important;
}

    /* O Bloco de botões de controle (Ícones inferiores) */
    .controles-player, .botoes-player-container {
        display: flex !important;
        justify-content: center !important; /* Centraliza o grupo na tela */
        align-items: center !important;     /* Alinha todos na mesma linha horizontal */
        gap: 37px !important;               /* Distância cirúrgica para o clique do dedo */
        margin-top: 2px !important;        /* Puxa o bloco um pouco para cima */
        margin-bottom: 2px !important;     /* Respiro de segurança da barra do Android */
    }

    /* Tamanho dos ícones menores (Reverse, Forward, Loop, Shuffle) */
    .controles-player button img, .botoes-player-container img {
        width: 22px !important; 
        height: 22px !important;
        object-fit: contain !important;
    }

    /* Destaque do Botão Central Verde de PLAY/PAUSE Redondo */
    #btn-play-central img, .botao-play-verde img, #play-pause-mobile img {
        width: 44px !important;  /* Peso visual maior para o comando principal */
        height: 44px !important;
        object-fit: contain !important;
    }
    /* 🔍 Posicionamento Livre da Lupa de Busca */
#gatilho-lupa-busca {
    position: absolute;
    
    /* 🎛️ CONTROLES DE POSIÇÃO: Mude estes valores para mover para onde quiser! */
    right: 16px;       /* Aumente para mover para a esquerda */
    top: 175px;         /* Distância do topo da tela. Aumente para descer, diminua para subir */
    
    width: 110px;       /* Largura da lupa */
    height: auto;
    cursor: pointer;
    z-index: 9999;     /* Garante que fica por cima de tudo */
    transition: opacity 0.2s, filter 0.2s;
}

#gatilho-lupa-busca.inativo {
    opacity: 0.35;
    cursor: not-allowed;
    filter: grayscale(100%) brightness(0.85);
    pointer-events: none;
}

#status-lupa {
    position: absolute;
    top: 175px;
    right: 82px;
    font-family: monospace;
    font-size: 15px;
    color: #0bba4b;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    white-space: nowrap;
}
/* 🎛️ POSICIONAMENTO EXATO DO MIOLO DE MÚSICAS (BEEPSONIC) */
#conteudo-abas {
    width: 91% !important;          /* ⬅️ ERA 100%: Agora encolheu e veio para as laterais */
    max-width: 132% !important;    /* Trava de segurança para não estourar nas bordas */
    height: 217px !important;       /* Altura precisa do miolo industrial */
    background-color: #000000 !important; /* Bloqueia 100% qualquer vazamento traseiro */
    overflow-y: auto;               /* Mantém a rolagem interna das suas 20+ músicas */
    padding: 10px;
    box-sizing: border-box;
    
    /* 🛠️ OS EMPURRADORES PARA O MIOLO CENTRAL */
    position: relative;
    margin-top: 95px !important;    /* ⬅️ ERA 108px: Diminuímos para subir a caixa preta */
    margin-left: -3% !important;    /* ⬅️ Diminuir  para ir para esquerda  */
    margin-right: auto !important;  /* ⬅️ Centraliza perfeitamente na horizontal */
    margin-bottom: 20px;            /* Separa do player rodapé */
    z-index: 999 !important;        /* Mantém a prioridade máxima de toque */
}
/* 2. O Compactador Industrial de Faixas (Onde a mágica acontece) */
 .linha-musica {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 8px 5px !important;
}

    /* 3. A Amplitude do texto (Nome da música) */
 .nome-musica-texto {
    /* O SEGREDO: flex: 1 permite crescer, min-width: 0 permite encolher sem quebrar o pai */
flex: 0 1 auto !important; 
    
    /* Definimos que ele pode crescer, mas deve parar 25px antes do botão (8mm é aprox 20-25px em tela) */
    max-width: calc(100% - 60px) !important; 
    
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    
    /* Aqui criamos o seu respiro industrial de 8mm */
    margin-right: 25px !important; 
}

.container-botoes {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
}


