body { margin: 0; padding: 0; background-color: #141414; color: #e5e5e5; font-family: 'Segoe UI', sans-serif; overflow: hidden; user-select: none; }
.hidden { display: none !important; }
.screen { width: 100vw; height: 100vh; display: flex; flex-direction: column; }

/* LOGIN */
#login-screen { justify-content: center; align-items: center; }
.logo-big { color: #e50914; font-size: 4rem; margin-bottom: 20px; }
.user-grid { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.user-card { background: #333; width: 100px; height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: 0.2s; position: relative; }
.user-card:hover { border-color: #e50914; background: #444; }
.user-icon { width: 60px; height: 60px; background: #e50914; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; margin-bottom: 10px; }
.forget-btn { position: absolute; top: 5px; right: 5px; color: #666; font-weight: bold; font-size: 18px; display: none; line-height: 10px; padding: 5px; }
.user-card:hover .forget-btn { display: block; } .forget-btn:hover { color: red; }

#login-form { display: flex; flex-direction: column; gap: 10px; width: 300px; }
.chk-container { display: flex; align-items: center; gap: 10px; color: #aaa; font-size: 14px; cursor: pointer; }
input { background: #333; border: 1px solid #444; padding: 10px; color: white; border-radius: 4px; }
button { background: #e50914; color: white; border: none; padding: 10px; border-radius: 4px; cursor: pointer; font-weight: bold; }
.btn-secondary { background: transparent; border: 1px solid #666; color: #aaa; }

/* HEADER */
header { display: flex; align-items: center; padding: 15px 30px; background: rgba(0,0,0,0.5); gap: 20px; }
.logo { color: #e50914; font-size: 24px; font-weight: bold; }
.search-bar { flex-grow: 1; } .search-bar input { width: 100%; max-width: 400px; }
.user-menu { cursor: pointer; position: relative; }
.dropdown-content { position: absolute; right: 0; top: 30px; background: #333; border: 1px solid #444; min-width: 120px; border-radius: 4px; z-index: 100; }
.dropdown-content a { display: block; padding: 10px; color: white; text-decoration: none; }
.dropdown-content a:hover { background: #444; }

/* TOOLBAR & CHIPS */
.toolbar { padding: 10px 30px; display: flex; gap: 15px; align-items: center; }
select { background: #222; color: white; border: 1px solid #444; padding: 5px; border-radius: 4px; }
.genre-chips { padding: 0 30px 10px 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #222; border: 1px solid #444; padding: 5px 12px; border-radius: 15px; cursor: pointer; font-size: 13px; color: #aaa; transition: 0.2s; }
.chip.active { background: #e50914; color: white; border-color: #e50914; font-weight: bold; }

/* HERO & CONTENT */
.hero { display: flex; background: #222; margin: 0 30px 20px 30px; border-radius: 10px; height: 280px; overflow: hidden; }
.hero-content { padding: 30px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { margin: 0 0 10px 0; font-size: 2.5rem; }
.hero-meta { color: #46d369; font-weight: bold; margin-bottom: 10px; }
.hero-img-container img { height: 100%; object-fit: cover; }
.content-area { padding: 0 30px 30px 30px; overflow-y: auto; flex: 1; }
.group-title { color: #e50914; border-bottom: 1px solid #444; margin: 20px 0 10px 0; font-size: 22px; font-weight: bold; }
.movie-grid { display: flex; flex-wrap: wrap; gap: 15px; }
.movie-card { width: 140px; cursor: pointer; transition: transform 0.2s; }
.movie-card:hover { transform: scale(1.05); }
.poster { width: 140px; height: 210px; background: #333; border-radius: 4px; object-fit: cover; }
.movie-title { font-size: 12px; text-align: center; color: #ddd; margin-top: 5px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* VIDEO PLAYER */
#video-player { background: black; position: relative; }
/* La clase cursor-hidden se aplica dinámicamente con JS */
#video-player.cursor-hidden { cursor: none; } 

video { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
#video-overlay { position: absolute; width: 100%; height: 100%; z-index: 10; } /* Captura clicks */

.video-controls { position: absolute; bottom: 0; width: 100%; background: linear-gradient(transparent, rgba(0,0,0,0.9)); padding: 20px; display: flex; gap: 10px; align-items: center; z-index: 20; transition: opacity 0.5s; opacity: 1; }
/* Cuando ocultamos controles, ponemos opacidad 0 */
.controls-hidden { opacity: 0 !important; }

#seek-bar { flex-grow: 1; }
#subs-layer { position: absolute; bottom: 80px; width: 100%; text-align: center; pointer-events: none; z-index: 15; }
.sub-text { display: inline-block; padding: 2px 8px; border-radius: 4px; text-shadow: 1px 1px 2px black; }
#subs-settings { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #222; padding: 20px; border-radius: 8px; border: 1px solid #444; display: flex; flex-direction: column; gap: 10px; z-index: 30; }

/* MENÚ CONTEXTUAL (Click Derecho) */
.context-menu { position: absolute; background: #333; border: 1px solid #555; border-radius: 4px; z-index: 100; min-width: 200px; box-shadow: 0 4px 8px rgba(0,0,0,0.5); }
.context-menu div { padding: 10px 15px; cursor: pointer; color: white; font-size: 14px; }
.context-menu div:hover { background: #e50914; }
.context-menu hr { border: 0; border-top: 1px solid #555; margin: 0; }

/* MODAL ADMIN */
.modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; z-index: 200; }
.modal-box { background: #222; padding: 20px; border-radius: 8px; width: 400px; display: flex; flex-direction: column; gap: 10px; }