* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

#app {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

#video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
}

/* Menú flotante lateral */
#channel-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 100%;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(8px);
    padding: 20px;
    z-index: 10;
}

#channel-list {
    list-style: none;
    margin-top: 15px;
    max-height: calc(100% - 60px);
    overflow-y: auto;
}

.channel-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #242424;
    border-radius: 6px;
    font-size: 16px;
    border: 2px solid transparent;
}

/* El elemento con foco (control remoto) */
.channel-item.focused {
    background: #0070f3;
    border-color: #ffffff;
    transform: scale(1.02);
}
/* Estilos del Login */
#login-screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.login-box {
    background: #242424;
    padding: 40px;
    border-radius: 10px;
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.login-box input, .login-box button {
    padding: 15px;
    font-size: 18px;
    border: 2px solid transparent;
    border-radius: 5px;
    background: #333;
    color: #fff;
    outline: none;
}

/* Efecto al seleccionar con el control remoto */
.login-box .focusable:focus, .login-box .focusable.focused {
    border-color: #0070f3;
    background: #444;
}

.login-box button {
    background: #0070f3;
    cursor: pointer;
    font-weight: bold;
}
/* Estilos para el nuevo menú superior y layout */
#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

#top-bar {
    height: 60px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 15px;
    z-index: 20;
}

#top-bar button {
    padding: 10px 20px;
    background: #0070f3;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    outline: none;
}

#top-bar button:focus {
    border: 2px solid white;
    background: #005bb5;
}

#main-content {
    display: flex;
    flex: 1;
    position: relative;
}

#channel-sidebar {
    top: 0; 
}