:root {
    --accent-red: #ff3b30;
    --glass: rgba(0, 0, 0, 0.75);
}

body, html {
    margin: 0; padding: 0;
    width: 100%; height: 100%;
    background: #000; overflow: hidden;
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* CONTAINER PRINCIPAL */
.tp-app-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* VÍDEO (FIX) */
#webcam {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: scaleX(-1);
}

/* JANELA DE TEXTO (CENTRALIZADA E NO TOPO) */
.tp-text-window {
    position: absolute;
    top: 10%; /* Fica perto da câmera */
    width: 80%;
    left: 10%;
    height: 45%;
    z-index: 5;
    overflow: hidden;
    text-align: center; /* Centraliza para o olhar não desviar */
    pointer-events: none;
}

#tp-scroll-area {
    color: #fff;
    font-size: 2.2rem; /* Tamanho inicial impactante */
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0px 4px 15px rgba(0,0,0,1);
}

/* BARRA SUPERIOR */
.tp-top-bar {
    position: absolute;
    top: 0; width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    z-index: 100;
}

/* BARRA INFERIOR (Onde estava o erro no print) */
.tp-bottom-controls {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 100;
    padding: 30px 0 50px;
    border-radius: 40px 40px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* SLIDERS E LABELS */
.settings-row {
    width: 80%;
    max-width: 400px;
    margin-bottom: 25px;
}

.control-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-group input {
    width: 70%;
    cursor: pointer;
}

/* BOTÕES DE AÇÃO */
.action-row {
    display: flex;
    width: 80%;
    max-width: 400px;
    justify-content: space-between;
    align-items: center;
}

.record-btn-idle {
    width: 80px; height: 80px;
    background: #fff;
    border-radius: 50%;
    border: none;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

.record-btn-idle::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 65px; height: 65px;
    background: var(--accent-red);
    border-radius: 50%;
}

.timer { 
    color: #fff; 
    font-weight: bold; 
    font-family: 'Courier New', Courier, monospace;
}

.icon-btn {
    background: none; border: none; color: #fff; font-size: 1.8rem; cursor: pointer;
}