body {
    margin: 0; padding: 0;
    background-color: #0a0a0a;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: white;
    overflow: hidden;
}

.hidden { display: none !important; }

/* Contentores de Ecrã Inteiro */
.screen-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilo Login */
.login-box {
    background: #141414; padding: 40px; border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8); width: 350px; text-align: center;
}
.input-group input {
    width: 100%; padding: 12px; margin: 10px 0;
    background: #222; border: 1px solid #333; color: white; border-radius: 5px; box-sizing: border-box;
}
#btn-login {
    width: 100%; padding: 12px; background: #e50914; border: none;
    color: white; font-weight: bold; cursor: pointer; border-radius: 5px; margin-top: 10px;
}
#btn-login:hover { background: #ff1a25; }
.error-msg { color: #ff3333; font-size: 0.85rem; margin-top: 10px; }

/* Estilo do Hub de Escolha */
.hub-container { text-align: center; max-width: 900px; width: 90%; }
.hub-container h2 { font-size: 2.5rem; margin-bottom: 40px; font-weight: 400; letter-spacing: 1px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 25px; }

.hub-card {
    background: #181818; padding: 30px 20px; border-radius: 8px; cursor: pointer;
    transition: transform 0.3s, background-color 0.3s; border: 2px solid transparent;
}
.hub-card:hover { transform: scale(1.08); background: #232323; border-color: #e50914; }
.hub-icon { font-size: 3.5rem; margin-bottom: 15px; }
.hub-card h3 { margin: 0; font-size: 1.2rem; font-weight: 500; }

.back-btn {
    margin-top: 40px; background: none; border: 1px solid #444; color: #aaa;
    padding: 10px 20px; border-radius: 4px; cursor: pointer;
}
.back-btn:hover { background: #222; color: white; }

/* Estilo do Layout do Player */
.main-player-layout { display: flex; width: 100vw; height: 100vh; background-color: #111; }
.sidebar { width: 320px; background: #161616; display: flex; flex-direction: column; border-right: 1px solid #222; }
.sidebar-header { padding: 15px; background: #1f1f1f; }
.nav-back-btn { background: #333; border: none; color: white; padding: 6px 12px; border-radius: 4px; cursor: pointer; margin-bottom: 10px; font-size: 0.85rem; width: 100%; text-align: left;}
.nav-back-btn:hover { background: #444; }
#search-bar { width: 100%; padding: 8px; background: #333; border: none; color: white; border-radius: 4px; box-sizing: border-box; margin-top: 10px; }

.content-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.content-item { padding: 12px 15px; border-bottom: 1px solid #222; cursor: pointer; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content-item:hover { background: #222; }
.content-item.active { background: #e50914; color: white; }

.player-container { flex: 1; position: relative; background: #000; display: flex; align-items: center; justify-content: center; }
video { width: 100%; height: 100%; object-fit: contain; }
.custom-controls { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.9)); padding: 20px; opacity: 0; transition: opacity 0.3s; }
.player-container:hover .custom-controls { opacity: 1; }
.control-buttons { display: flex; justify-content: space-between; align-items: center; }
.left-controls { display: flex; align-items: center; gap: 15px; }
.control-btn { background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer; }
#volume { width: 80px; accent-color: #e50914; }
