:root{--bg-main:#0d1117;--bg-card:#161b22;--bg-card-hover:#1f242c;--bg-input:#0b0e14;--border-color:#30363d;--primary:#f03;--primary-hover:#cc0029;--accent:#58a6ff;--text-main:#f0f6fc;--text-muted:#8b949e;--success:#3fb950;--warning:#d29922;--danger:#f85149;--radius:10px}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}body{background-color:var(--bg-main);color:var(--text-main);min-height:100vh;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);flex-direction:column;display:flex}.navbar{background-color:var(--bg-card);border-bottom:1px solid var(--border-color);z-index:100;justify-content:space-between;align-items:center;padding:.75rem 1.25rem;display:flex;position:relative}.brand{color:var(--text-main);align-items:center;gap:.5rem;font-size:1.2rem;font-weight:700;text-decoration:none;display:flex}.brand-badge{background-color:var(--primary);color:#fff;letter-spacing:.5px;border-radius:6px;padding:.2rem .5rem;font-size:.8rem;font-weight:800}.btn{border-radius:var(--radius);cursor:pointer;border:1px solid #0000;justify-content:center;align-items:center;gap:.4rem;min-height:42px;padding:.55rem 1rem;font-size:.9rem;font-weight:600;transition:all .15s;display:inline-flex}.btn-primary{background-color:var(--primary);color:#fff}.btn-primary:hover{background-color:var(--primary-hover)}.btn-secondary{background-color:var(--bg-card-hover);color:var(--text-main);border-color:var(--border-color)}.btn-secondary:hover{background-color:#2b313a}.btn-accent{color:#fff;background-color:#1f6feb}.btn-accent:hover{background-color:#388bfd}.btn-sm{min-height:36px;padding:.35rem .65rem;font-size:.82rem}.container{flex:1;width:100%;max-width:1200px;margin:0 auto;padding:1.5rem 1rem}.card{background-color:var(--bg-card);border:1px solid var(--border-color);border-radius:var(--radius);margin-bottom:1.5rem;padding:1.25rem}.input-group{gap:.5rem;width:100%;display:flex}.input{background-color:var(--bg-input);border:1px solid var(--border-color);color:var(--text-main);border-radius:var(--radius);outline:none;width:100%;padding:.65rem .9rem;font-size:.95rem;transition:border-color .15s}.input:focus{border-color:var(--accent)}.modal-overlay{z-index:999;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background-color:#000000bf;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.modal{background-color:var(--bg-card);border:1px solid var(--border-color);border-radius:var(--radius);width:100%;max-width:400px;padding:1.5rem;position:relative}.modal-header{justify-content:space-between;align-items:center;margin-bottom:1.25rem;display:flex}.tabs{border-bottom:1px solid var(--border-color);margin-bottom:1rem;display:flex}.tab-btn{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;flex:1;padding:.6rem;font-size:.95rem;font-weight:600;transition:all .15s}.tab-btn.active{color:var(--text-main);border-bottom-color:var(--primary)}.room-layout{grid-template-columns:1fr 340px;gap:1.25rem;height:calc(100vh - 75px);padding:1rem;display:grid}:-webkit-any(.room-layout:fullscreen,.room-layout:-webkit-full-screen,.room-layout.fullscreen-active){background-color:var(--bg-main);box-sizing:border-box;z-index:9999;grid-template-columns:1fr 340px;gap:1rem;width:100vw;height:100vh;max-height:100vh;padding:.75rem 1rem;display:grid;position:fixed;inset:0;overflow:hidden}:is(.room-layout:fullscreen,.room-layout:fullscreen,.room-layout.fullscreen-active){background-color:var(--bg-main);box-sizing:border-box;z-index:9999;grid-template-columns:1fr 340px;gap:1rem;width:100vw;height:100vh;max-height:100vh;padding:.75rem 1rem;display:grid;position:fixed;inset:0;overflow:hidden}:-webkit-any(.room-layout:fullscreen .room-main,.room-layout:-webkit-full-screen .room-main,.room-layout.fullscreen-active .room-main){flex-direction:column;justify-content:space-between;gap:.5rem;height:100%;display:flex;overflow:hidden}:is(.room-layout:fullscreen .room-main,.room-layout:fullscreen .room-main,.room-layout.fullscreen-active .room-main){flex-direction:column;justify-content:space-between;gap:.5rem;height:100%;display:flex;overflow:hidden}:-webkit-any(.room-layout:fullscreen .video-input-card,.room-layout:-webkit-full-screen .video-input-card,.room-layout.fullscreen-active .video-input-card,.room-layout:fullscreen .player-controls,.room-layout:-webkit-full-screen .player-controls,.room-layout.fullscreen-active .player-controls){display:none!important}:is(.room-layout:fullscreen .video-input-card,.room-layout:fullscreen .video-input-card,.room-layout.fullscreen-active .video-input-card,.room-layout:fullscreen .player-controls,.room-layout:fullscreen .player-controls,.room-layout.fullscreen-active .player-controls){display:none!important}:-webkit-any(.room-layout:fullscreen .video-wrapper,.room-layout:-webkit-full-screen .video-wrapper,.room-layout.fullscreen-active .video-wrapper){aspect-ratio:16/9;border-radius:var(--radius);background-color:#000;flex:1;width:100%;max-width:calc(177.778vh - 2.66667rem);max-height:calc(100vh - 1.5rem);margin:auto;padding-bottom:0;position:relative;overflow:hidden}:is(.room-layout:fullscreen .video-wrapper,.room-layout:fullscreen .video-wrapper,.room-layout.fullscreen-active .video-wrapper){aspect-ratio:16/9;border-radius:var(--radius);background-color:#000;flex:1;width:100%;max-width:calc(177.778vh - 2.66667rem);max-height:calc(100vh - 1.5rem);margin:auto;padding-bottom:0;position:relative;overflow:hidden}.room-layout:fullscreen .video-wrapper iframe,.room-layout:fullscreen .video-wrapper #yt-player-target,.room-layout.fullscreen-active .video-wrapper iframe,.room-layout.fullscreen-active .video-wrapper #yt-player-target{width:100%;height:100%;position:absolute;top:0;left:0}.room-layout:-webkit-full-screen .video-wrapper iframe{width:100%;height:100%;position:absolute;top:0;left:0}.room-layout:-webkit-full-screen .video-wrapper #yt-player-target{width:100%;height:100%;position:absolute;top:0;left:0}:-webkit-any(.room-layout:fullscreen .room-sidebar,.room-layout:-webkit-full-screen .room-sidebar,.room-layout.fullscreen-active .room-sidebar){height:100%;max-height:calc(100vh - 1.5rem)}:is(.room-layout:fullscreen .room-sidebar,.room-layout:fullscreen .room-sidebar,.room-layout.fullscreen-active .room-sidebar){height:100%;max-height:calc(100vh - 1.5rem)}.room-main{flex-direction:column;gap:.75rem;display:flex;overflow-y:auto}.video-wrapper{border-radius:var(--radius);background-color:#000;width:100%;padding-bottom:56.25%;position:relative;overflow:hidden;box-shadow:0 4px 20px #00000080}.video-wrapper iframe,.video-wrapper #player{border:none;width:100%;height:100%;position:absolute;top:0;left:0}.video-fs-btn{z-index:25;color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0d1117bf;border:1px solid #fff3;border-radius:6px;justify-content:center;align-items:center;width:34px;height:34px;font-size:1.1rem;transition:all .15s;display:flex;position:absolute;top:12px;right:12px}.video-fs-btn:hover{border-color:var(--accent);background:#000000e6;transform:scale(1.05)}.player-controls{background-color:var(--bg-card);border-radius:var(--radius);border:1px solid var(--border-color);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem;padding:.75rem 1rem;display:flex}.control-btn-group{gap:.4rem;display:flex}.sync-status{color:var(--text-muted);align-items:center;gap:.4rem;font-size:.85rem;display:flex}.status-dot{background-color:var(--success);border-radius:50%;width:9px;height:9px;display:inline-block}.status-dot.syncing{background-color:var(--warning);animation:1s infinite pulse}@keyframes pulse{0%{opacity:.4}50%{opacity:1}to{opacity:.4}}.room-sidebar{background-color:var(--bg-card);border:1px solid var(--border-color);border-radius:var(--radius);flex-direction:column;display:flex;overflow:hidden}.sidebar-tabs{background-color:var(--bg-input);border-bottom:1px solid var(--border-color);display:flex}.chat-box{flex-direction:column;flex:1;display:flex;overflow:hidden}.chat-messages{flex-direction:column;flex:1;gap:.6rem;padding:.8rem;display:flex;overflow-y:auto}.chat-msg{word-break:break-word;font-size:.88rem;line-height:1.4}.chat-msg-user{color:var(--accent);font-weight:700}.chat-msg-time{color:var(--text-muted);margin-left:.3rem;font-size:.7rem}.chat-input-bar{border-top:1px solid var(--border-color);background-color:var(--bg-card);gap:.4rem;padding:.6rem;display:flex}.users-list{flex-direction:column;gap:.5rem;padding:.8rem;display:flex;overflow-y:auto}.user-item{background-color:var(--bg-card-hover);border-radius:6px;align-items:center;gap:.5rem;padding:.4rem .6rem;font-size:.9rem;display:flex}.toast{color:var(--text-main);border-radius:var(--radius);border:1px solid var(--border-color);z-index:1000;background-color:#21262d;padding:.75rem 1.25rem;font-size:.9rem;position:fixed;bottom:1.5rem;right:1.5rem;box-shadow:0 4px 15px #0006}@media (max-width:900px){.room-layout:not(:fullscreen):not(.fullscreen-active){grid-template-columns:1fr;height:auto;padding:.6rem}.room-layout:not(:fullscreen):not(.fullscreen-active) .room-sidebar{height:380px}}@media (max-height:550px){:-webkit-any(.room-layout:fullscreen,.room-layout:-webkit-full-screen,.room-layout.fullscreen-active){gap:.5rem;padding:.35rem .5rem;grid-template-columns:1fr min(280px,34vw)!important}:is(.room-layout:fullscreen,.room-layout:fullscreen,.room-layout.fullscreen-active){gap:.5rem;padding:.35rem .5rem;grid-template-columns:1fr min(280px,34vw)!important}:-webkit-any(.room-layout:fullscreen .room-main,.room-layout:-webkit-full-screen .room-main,.room-layout.fullscreen-active .room-main){gap:.3rem}:is(.room-layout:fullscreen .room-main,.room-layout:fullscreen .room-main,.room-layout.fullscreen-active .room-main){gap:.3rem}:-webkit-any(.room-layout:fullscreen .player-controls,.room-layout:-webkit-full-screen .player-controls,.room-layout.fullscreen-active .player-controls){padding:.35rem .6rem}:is(.room-layout:fullscreen .player-controls,.room-layout:fullscreen .player-controls,.room-layout.fullscreen-active .player-controls){padding:.35rem .6rem}:-webkit-any(.room-layout:fullscreen .video-wrapper,.room-layout:-webkit-full-screen .video-wrapper,.room-layout.fullscreen-active .video-wrapper){max-width:calc(177.778vh - 1.24444rem);max-height:calc(100vh - .7rem)}:is(.room-layout:fullscreen .video-wrapper,.room-layout:fullscreen .video-wrapper,.room-layout.fullscreen-active .video-wrapper){max-width:calc(177.778vh - 1.24444rem);max-height:calc(100vh - .7rem)}:-webkit-any(.room-layout:fullscreen .btn-sm,.room-layout:-webkit-full-screen .btn-sm,.room-layout.fullscreen-active .btn-sm){min-height:30px;padding:.2rem .5rem;font-size:.75rem}:is(.room-layout:fullscreen .btn-sm,.room-layout:fullscreen .btn-sm,.room-layout.fullscreen-active .btn-sm){min-height:30px;padding:.2rem .5rem;font-size:.75rem}:-webkit-any(.room-layout:fullscreen .chat-input-bar,.room-layout:-webkit-full-screen .chat-input-bar,.room-layout.fullscreen-active .chat-input-bar){padding:.35rem}:is(.room-layout:fullscreen .chat-input-bar,.room-layout:fullscreen .chat-input-bar,.room-layout.fullscreen-active .chat-input-bar){padding:.35rem}}@media (orientation:portrait) and (max-width:600px){:-webkit-any(.room-layout:fullscreen,.room-layout:-webkit-full-screen,.room-layout.fullscreen-active){overflow-y:auto;grid-template-columns:1fr!important}:is(.room-layout:fullscreen,.room-layout:fullscreen,.room-layout.fullscreen-active){overflow-y:auto;grid-template-columns:1fr!important}:-webkit-any(.room-layout:fullscreen .room-sidebar,.room-layout:-webkit-full-screen .room-sidebar,.room-layout.fullscreen-active .room-sidebar){height:400px}:is(.room-layout:fullscreen .room-sidebar,.room-layout:fullscreen .room-sidebar,.room-layout.fullscreen-active .room-sidebar){height:400px}}
