:root { --bg: #202124; --panel: #2f3136; --primary: #5865F2; --text: #fff; }
body { margin: 0; font-family: 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); height: 100vh; overflow: hidden; }

.join-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; }
input { padding: 12px; border-radius: 5px; border: none; margin-bottom: 10px; width: 200px; }
.btn-primary { background: var(--primary); color: white; border: none; padding: 12px 25px; border-radius: 5px; cursor: pointer; font-size: 16px; transition: 0.3s; }
.btn-primary:hover { opacity: 0.9; }

.video-grid { display: grid; grid-template-columns: 1fr 350px; height: 100vh; }
.video-wrapper { position: relative; background: black; display: flex; align-items: center; justify-content: center; }
#remoteVideo { width: 100%; height: 100%; object-fit: cover; }
#localVideo { position: absolute; bottom: 20px; right: 20px; width: 180px; border: 2px solid var(--panel); border-radius: 10px; background: #000; }

.controls { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.controls button { background: rgba(0,0,0,0.6); color: white; border: none; padding: 10px 15px; border-radius: 20px; cursor: pointer; }

.chat-wrapper { background: var(--panel); display: flex; flex-direction: column; border-left: 1px solid #444; }
.room-info { padding: 15px; border-bottom: 1px solid #444; background: rgba(0,0,0,0.2); }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-input { padding: 20px; display: flex; gap: 5px; background: rgba(0,0,0,0.2); }
.chat-input input { width: 100%; margin: 0; }

.message { background: #40444b; padding: 10px; border-radius: 8px; max-width: 80%; align-self: flex-start; word-wrap: break-word; line-height: 1.4; }
.message.own { background: var(--primary); align-self: flex-end; }
.message em { color: #aaa; font-size: 0.9em; font-style: italic; }

@media (max-width: 768px) {
    .video-grid { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
    #localVideo { width: 100px; top: 10px; right: 10px; bottom: auto; }
}

/* KITT Voicebox Container */
#kitt-visualizer {
    display: none; /* Standaard verborgen */
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: black;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 10; /* Bovenop de video */
}

/* De rode kolommen */
.kitt-bar {
    width: 40px;
    height: 100px; /* Start hoogte */
    background: linear-gradient(to top, #500 0%, #f00 100%);
    box-shadow: 0 0 20px #f00;
    border-radius: 4px;
    transition: height 0.05s ease; /* Heel snelle beweging voor audio effect */
    
    /* Maak het rooster effect (de streepjes in de balk) */
    background-image: linear-gradient(black 2px, transparent 2px);
    background-size: 100% 10px;
}

/* De linker en rechter balk zijn vaak iets lager in de serie */
.kitt-bar:nth-child(1), .kitt-bar:nth-child(3) {
    opacity: 0.8;
}
