.root { display:flex; flex-direction:column; height:100dvh; width:100%; background:#0b0d14; color:#e2e8f0; font-family:'Inter',system-ui,sans-serif; overflow:hidden; position:relative; }

/* TOP BAR */
.topBar { display:flex; align-items:center; justify-content:space-between; padding:0 20px; height:52px; background:rgba(15,17,26,0.92); backdrop-filter:blur(16px); border-bottom:1px solid rgba(255,255,255,0.06); z-index:50; flex-shrink:0; }
.topLeft { display:flex; align-items:center; gap:12px; }
.logo { width:32px; height:32px; border-radius:8px; background:linear-gradient(135deg,#3b82f6,#8b5cf6); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:14px; color:#fff; }
.roomTitle { font-size:14px; font-weight:600; color:#fff; }
.roomSub { color:#94a3b8; font-weight:400; }
.topCenter { display:flex; align-items:center; gap:16px; }
.timer { font-family:'JetBrains Mono',monospace; font-size:13px; color:#94a3b8; letter-spacing:1px; }
.recDot { display:flex; align-items:center; gap:6px; font-size:11px; color:#ef4444; font-weight:600; text-transform:uppercase; letter-spacing:1px; }
.recDot::before { content:''; width:8px; height:8px; border-radius:50%; background:#ef4444; animation:pulse 1.5s infinite; }
.topRight { display:flex; align-items:center; gap:8px; }
.badge { padding:4px 10px; border-radius:6px; font-size:11px; font-weight:600; background:rgba(59,130,246,0.1); color:#60a5fa; border:1px solid rgba(59,130,246,0.2); }
.participantCount { display:flex; align-items:center; gap:5px; font-size:12px; color:#94a3b8; cursor:pointer; padding:5px 10px; border-radius:6px; transition:background .2s; }
.participantCount:hover { background:rgba(255,255,255,0.06); }

/* MAIN AREA */
.mainArea { flex:1; display:flex; overflow:hidden; position:relative; }

/* VIDEO STAGE */
.videoStage { flex:1; padding:16px; display:flex; align-items:center; justify-content:center; transition:all .3s; }
.videoGrid { width:100%; height:100%; display:grid; gap:12px; }
.grid1 { grid-template-columns:1fr; }
.grid2 { grid-template-columns:repeat(2,1fr); }
.grid4 { grid-template-columns:repeat(2,1fr); grid-template-rows:repeat(2,1fr); }
.grid6 { grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(2,1fr); }
.speakerLayout { grid-template-columns:1fr; grid-template-rows:1fr auto; }
.speakerMain { grid-column:1/-1; }
.speakerStrip { display:flex; gap:8px; height:120px; overflow-x:auto; padding:4px; }
.speakerStrip>div { min-width:160px; flex-shrink:0; }

/* VIDEO TILE */
.tile { position:relative; width:100%; height:100%; border-radius:16px; overflow:hidden; background:rgba(15,17,26,0.6); border:1px solid rgba(255,255,255,0.06); display:flex; align-items:center; justify-content:center; transition:box-shadow .5s,border-color .3s; }
.tile:hover { border-color:rgba(255,255,255,0.12); }
.tileActive { border-color:rgba(59,130,246,0.5)!important; box-shadow:0 0 30px rgba(59,130,246,0.2); }
.tileVideo { width:100%; height:100%; object-fit:cover; }
.tileMirror { transform:scaleX(-1); }
.tileCanvas { width:100%; height:100%; object-fit:cover; }
.tileLabel { position:absolute; bottom:10px; left:10px; padding:4px 12px; background:rgba(0,0,0,0.65); backdrop-filter:blur(8px); border-radius:8px; font-size:12px; font-weight:500; display:flex; align-items:center; gap:8px; }
.tileAvatar { width:80px; height:80px; border-radius:50%; background:linear-gradient(135deg,#1e293b,#334155); display:flex; align-items:center; justify-content:center; font-size:28px; font-weight:700; color:#60a5fa; }
.audioBar { display:flex; align-items:flex-end; gap:2px; height:14px; }
.audioBar span { width:3px; border-radius:1px; background:#22c55e; transition:height .08s; }
.handIcon { position:absolute; top:10px; right:10px; font-size:24px; animation:bounce .6s infinite alternate; }

/* SIDE PANEL */
.sidePanel { width:320px; border-left:1px solid rgba(255,255,255,0.06); background:rgba(15,17,26,0.95); backdrop-filter:blur(16px); display:flex; flex-direction:column; flex-shrink:0; animation:slideIn .25s ease-out; z-index:40; }
.panelHeader { padding:16px 20px; border-bottom:1px solid rgba(255,255,255,0.06); display:flex; align-items:center; justify-content:space-between; }
.panelTitle { font-size:14px; font-weight:600; }
.panelClose { background:none; border:none; color:#94a3b8; cursor:pointer; font-size:18px; padding:4px 8px; border-radius:6px; }
.panelClose:hover { background:rgba(255,255,255,0.06); color:#fff; }
.panelBody { flex:1; overflow-y:auto; padding:8px 12px; }
.participantRow { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:10px; transition:background .15s; }
.participantRow:hover { background:rgba(255,255,255,0.04); }
.pAvatar { width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,#1e40af,#7c3aed); display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:#fff; flex-shrink:0; }
.pName { font-size:13px; font-weight:500; flex:1; }
.pBadge { font-size:10px; color:#94a3b8; background:rgba(255,255,255,0.05); padding:2px 6px; border-radius:4px; }
.pIcons { display:flex; gap:6px; color:#64748b; font-size:14px; }

/* BOTTOM TOOLBAR */
.toolbar { display:flex; align-items:center; justify-content:center; gap:6px; padding:10px 20px; background:rgba(15,17,26,0.95); backdrop-filter:blur(16px); border-top:1px solid rgba(255,255,255,0.06); z-index:50; flex-shrink:0; }
.toolBtn { width:44px; height:44px; border-radius:12px; border:none; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:18px; transition:all .2s; background:rgba(255,255,255,0.06); color:#e2e8f0; position:relative; }
.toolBtn:hover { background:rgba(255,255,255,0.12); transform:translateY(-2px); }
.toolBtnOff { background:#ef4444; color:#fff; }
.toolBtnOff:hover { background:#dc2626; }
.toolBtnOn { background:rgba(59,130,246,0.15); color:#60a5fa; border:1px solid rgba(59,130,246,0.3); }
.toolSep { width:1px; height:28px; background:rgba(255,255,255,0.08); margin:0 6px; }
.leaveBtn { padding:10px 28px; border-radius:12px; border:none; cursor:pointer; font-size:13px; font-weight:700; background:#ef4444; color:#fff; transition:all .2s; }
.leaveBtn:hover { background:#dc2626; box-shadow:0 0 20px rgba(239,68,68,0.4); }
.toolTip { position:absolute; bottom:52px; left:50%; transform:translateX(-50%); background:#1e293b; color:#e2e8f0; padding:4px 10px; border-radius:6px; font-size:11px; white-space:nowrap; pointer-events:none; opacity:0; transition:opacity .15s; border:1px solid rgba(255,255,255,0.08); }
.toolBtn:hover .toolTip { opacity:1; }

/* REACTIONS OVERLAY */
.reactionsOverlay { position:absolute; bottom:80px; left:0; right:0; pointer-events:none; z-index:60; height:200px; overflow:hidden; }
.reactionFloat { position:absolute; bottom:0; font-size:32px; animation:floatUp 3s ease-out forwards; }

/* REACTION PICKER */
.reactionPicker { position:absolute; bottom:56px; left:50%; transform:translateX(-50%); background:rgba(30,41,59,0.95); backdrop-filter:blur(12px); border:1px solid rgba(255,255,255,0.1); border-radius:12px; padding:6px 10px; display:flex; gap:4px; animation:fadeIn .15s; z-index:70; }
.reactionPicker button { background:none; border:none; font-size:22px; cursor:pointer; padding:4px 6px; border-radius:8px; transition:all .15s; }
.reactionPicker button:hover { background:rgba(255,255,255,0.1); transform:scale(1.2); }

/* CONNECTING STATE */
.connectingBox { display:flex; flex-direction:column; align-items:center; gap:16px; padding:40px; background:rgba(15,17,26,0.6); border-radius:24px; backdrop-filter:blur(20px); border:1px solid rgba(255,255,255,0.06); }
.spinner { width:40px; height:40px; border:3px solid rgba(255,255,255,0.08); border-top-color:#3b82f6; border-radius:50%; animation:spin 1s linear infinite; }
.connectText { font-size:13px; color:#94a3b8; }

/* ANIMATIONS */
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }
@keyframes bounce { from { transform:translateY(0); } to { transform:translateY(-6px); } }
@keyframes floatUp { 0% { opacity:1; transform:translateY(0) scale(1); } 100% { opacity:0; transform:translateY(-180px) scale(1.5); } }
@keyframes slideIn { from { transform:translateX(100%); } to { transform:translateX(0); } }
@keyframes fadeIn { from { opacity:0; transform:translateX(-50%) translateY(8px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }
