body, html {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    overflow: hidden; /* Remove barras de rolagem */
    font-family: 'Arial', sans-serif;
    cursor: none; /* Esconde o mouse igual TV */
}

body.mouse-active {
    cursor: default;
}

.tv-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

#tv-screen {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none; /* Evita que o vídeo engula eventos do teclado */
    object-fit: fill; /* Estica a imagem para tela cheia */
}

/* OSD (On-Screen Display) para mostrar canal */
#osd {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #0f0;
    font-size: 64px;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9);
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 1000;
}

#osd #channel-name {
    font-size: 28px;
    color: #fff;
    margin-top: 5px;
}

.osd-hidden {
    opacity: 0;
}
.osd-visible {
    opacity: 1;
}

/* =========================================
   TELA DE LOGIN PERSONALIZADA 
   ========================================= */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px 40px;
    width: 400px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    color: #fff;
    animation: fadeInDown 0.8s ease-out;
}

.login-logo {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(to right, #00f2fe, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.login-box h2 {
    margin: 10px 0 5px 0;
    font-size: 24px;
    font-weight: 600;
}

.login-box p {
    font-size: 14px;
    color: #b0c4de;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #4facfe;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.4);
    background: rgba(0, 0, 0, 0.4);
}

.input-group input::placeholder {
    color: #8fa3b0;
}

.login-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.5);
}

.login-btn:active {
    transform: translateY(1px);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lock-box {
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 25px 50px rgba(255, 0, 0, 0.2);
}

.lock-box .login-logo {
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
