:root{
  --bg:#050505;--panel:#090909;--panel2:#0d0d0d;--line:#202020;--line2:#2b2b2b;
  --text:#f4f4f4;--muted:#868686;--muted2:#575757;--white:#fff;--danger:#ff4a4a;
  --radius:18px;--top:72px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{overflow-x:hidden}
button,input,textarea{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}
.noise{position:fixed;inset:0;pointer-events:none;z-index:999;opacity:.035;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E")}
.topbar{height:var(--top);position:fixed;inset:0 0 auto 0;z-index:100;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid #151515;background:rgba(5,5,5,.88);backdrop-filter:blur(18px)}
.brand{display:flex;align-items:center;gap:8px;color:#fff;background:none;border:0;font-weight:900;letter-spacing:-1px;font-size:18px}
.brand-mark{border:1px solid #3a3a3a;border-radius:7px;padding:5px 7px;letter-spacing:-.7px}.brand-slash{color:#555}.brand-live{letter-spacing:.5px}
.top-actions{display:flex;align-items:center;gap:8px}
.link-btn,.auth-btn,.profile-pill{border:1px solid var(--line2);background:#0a0a0a;color:#d8d8d8;border-radius:10px;height:38px;padding:0 14px}
.link-btn:hover,.auth-btn:hover{background:#121212;color:white;border-color:#444}.auth-btn{background:#f5f5f5;color:#050505;border-color:#f5f5f5;font-weight:800}.auth-btn:hover{background:#ddd;color:#000}
.profile-pill{display:flex;align-items:center;gap:9px;padding:4px 10px 4px 5px}.profile-pill img{width:28px;height:28px;border-radius:8px;object-fit:cover}.profile-pill span{font-weight:700}
.demo-badge{font-size:10px;letter-spacing:1.4px;padding:7px 9px;border:1px solid #353535;border-radius:99px;color:#aaa}
.view{padding-top:var(--top);min-height:100vh}
.home-view{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;overflow:hidden}
.home-grid{position:absolute;inset:var(--top) 0 0;background-image:linear-gradient(#111 1px,transparent 1px),linear-gradient(90deg,#111 1px,transparent 1px);background-size:64px 64px;mask-image:radial-gradient(circle at 50% 50%,black 0%,transparent 72%);opacity:.68}
.hero{position:relative;z-index:2;width:min(760px,calc(100% - 40px));text-align:center;margin-top:-28px}
.eyebrow,.section-kicker{font-size:11px;font-weight:800;letter-spacing:2.1px;color:#818181}
.live-dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:#fff;margin-right:9px;box-shadow:0 0 13px #fff}
.hero h1{font-size:clamp(54px,8.4vw,110px);line-height:.88;margin:24px 0 23px;letter-spacing:-6.8px;font-weight:820}
.hero h1 em{font-style:normal;color:#696969}
.hero-copy{color:#8e8e8e;font-size:15px;max-width:440px;line-height:1.7;margin:0 auto 35px}
.code-box{width:min(590px,100%);margin:auto;background:#080808;border:1px solid #2e2e2e;border-radius:15px;text-align:left;padding:13px 14px 14px;box-shadow:0 25px 90px rgba(0,0,0,.55)}
.code-label{font-size:9px;letter-spacing:2px;color:#646464;font-weight:900;margin:0 0 7px 4px}.code-row{display:flex;gap:10px}
.code-row input{width:100%;height:58px;border:0;background:transparent;color:#fff;outline:0;font-size:26px;font-weight:850;letter-spacing:3px;text-transform:uppercase;padding:0 5px}
.code-row input::placeholder{color:#2e2e2e}
.code-row button{width:58px;min-width:58px;border:0;border-radius:10px;background:#f7f7f7;color:#050505;font-size:25px}.code-row button:hover{background:#d8d8d8}
.form-error{min-height:0;color:#ff6666;font-size:11px;padding:0 5px}.form-error:not(:empty){padding-top:8px}
.hero-meta{display:flex;justify-content:center;align-items:center;gap:15px;color:#4d4d4d;font-size:9px;letter-spacing:1.4px;font-weight:800;margin-top:20px}.hero-meta i{width:3px;height:3px;background:#3f3f3f;border-radius:50%}
.home-footer{position:absolute;left:28px;right:28px;bottom:22px;color:#3e3e3e;font-size:9px;letter-spacing:1.4px;font-weight:800;display:flex;justify-content:space-between}.status b{width:6px;height:6px;background:#5dff89;border-radius:50%;display:inline-block;margin-right:8px;box-shadow:0 0 12px rgba(93,255,137,.45)}
.watch-shell{display:grid;grid-template-columns:minmax(0,1fr) 350px;min-height:calc(100vh - var(--top))}
.watch-main{padding:20px;max-width:1500px;width:100%;margin:0 auto}
.player-wrap{position:relative;aspect-ratio:16/9;background:#020202;border:1px solid #1c1c1c;border-radius:16px;overflow:hidden}
#player{width:100%;height:100%;display:block;background:#000}
.player-state{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle at center,#111,#030303 65%);text-align:center}
.player-state strong{font-size:15px;letter-spacing:2px}.player-state p{font-size:12px;color:#5f5f5f}
.signal-icon{display:flex;gap:4px;height:28px;align-items:flex-end;margin-bottom:18px}.signal-icon span{width:4px;background:#4a4a4a;border-radius:2px}.signal-icon span:nth-child(1){height:8px}.signal-icon span:nth-child(2){height:16px}.signal-icon span:nth-child(3){height:25px}
.player-top{position:absolute;left:14px;top:14px;display:flex;gap:8px;pointer-events:none}.player-top>span{padding:7px 9px;background:rgba(0,0,0,.7);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:7px;font-size:9px;letter-spacing:1px;font-weight:900}
.live-badge:not(.offline){background:#fff;color:#000}.live-badge.offline{color:#777}
.stream-info{display:flex;align-items:center;justify-content:space-between;padding:22px 3px 13px}.stream-profile{display:flex;align-items:center;gap:13px}.avatar-xl{width:48px;height:48px;border:1px solid #2c2c2c;background:#111;border-radius:13px;object-fit:cover}.name-line{display:flex;align-items:center;gap:7px}.name-line h2{font-size:17px;margin:0}.verified{font-size:11px;color:#fff}.stream-profile p{margin:4px 0 0;color:#626262;font-size:11px}
.follow-btn,.ghost-btn,.primary-btn,.danger-outline{height:40px;padding:0 16px;border-radius:9px;font-size:10px;letter-spacing:1px;font-weight:900}
.follow-btn,.primary-btn{background:#f3f3f3;color:#050505;border:1px solid #f3f3f3}.follow-btn.following{background:#111;color:#999;border-color:#292929}.ghost-btn{background:#090909;color:#a3a3a3;border:1px solid #292929}.ghost-btn:hover{color:#fff;border-color:#444}.wide{width:100%}
.stream-copy{padding:14px 3px 22px;border-top:1px solid #161616;display:flex;align-items:flex-start;justify-content:space-between}.stream-copy h3{font-size:18px;margin:0 0 8px}.stream-copy p{margin:0;color:#636363;font-size:11px}.about-card{border:1px solid #1c1c1c;background:#080808;border-radius:13px;padding:18px}.about-card span,.card-head span{font-size:9px;color:#666;letter-spacing:1.7px;font-weight:900}.about-card p{color:#9a9a9a;font-size:13px;line-height:1.7;margin:12px 0 0}
.chat-panel{border-left:1px solid #191919;background:#070707;display:flex;flex-direction:column;height:calc(100vh - var(--top));position:sticky;top:var(--top)}
.chat-head{height:54px;border-bottom:1px solid #171717;display:flex;align-items:center;justify-content:space-between;padding:0 15px;font-size:10px;letter-spacing:1.4px;font-weight:900}.chat-head button{background:none;border:0;color:#777;font-size:16px}
.chat-messages{flex:1;overflow:auto;padding:11px 14px}.chat-msg{padding:8px 0;font-size:12px;line-height:1.45;word-break:break-word}.chat-msg .who{font-weight:850;margin-right:6px;color:#e5e5e5}.chat-msg .who small{font-size:8px;margin-left:4px}.chat-msg .time{font-size:9px;color:#3f3f3f;margin-left:5px}.chat-msg .text{color:#aaa}
.chat-login{padding:20px;border-top:1px solid #171717;text-align:center}.chat-login p{font-size:11px;color:#666}.chat-login button,.chat-form button{border:0;background:#fff;color:#050505;font-weight:900;font-size:10px;border-radius:8px;padding:10px 14px}
.chat-form{display:flex;gap:8px;padding:12px;border-top:1px solid #171717}.chat-form input{flex:1;background:#0d0d0d;border:1px solid #282828;border-radius:8px;color:#eee;padding:0 12px;outline:0;font-size:12px}.chat-form input:focus{border-color:#555}
.workspace{display:grid;grid-template-columns:230px 1fr;min-height:calc(100vh - var(--top))}
.side-nav{position:sticky;top:var(--top);height:calc(100vh - var(--top));border-right:1px solid #171717;padding:27px 14px 15px;display:flex;flex-direction:column;background:#070707}.side-title{font-size:10px;line-height:1.45;letter-spacing:1.8px;font-weight:900;color:#777;padding:0 11px 26px}.nav-item{border:0;background:none;color:#4e4e4e;text-align:left;padding:12px 11px;border-radius:8px;font-size:10px;font-weight:800;letter-spacing:1px}.nav-item span{font-size:12px;letter-spacing:0;margin-left:11px;color:#868686}.nav-item:hover,.nav-item.active{background:#101010;color:#aaa}.nav-item.active span{color:#fff}.side-spacer{flex:1}.nav-item.danger:hover span{color:#ff6c6c}
.workspace-content{padding:55px clamp(22px,5vw,78px);max-width:1450px;width:100%;margin:0 auto}.dash-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:17px 0 36px}.dash-heading h1{font-size:clamp(36px,5vw,68px);line-height:1;margin:0 0 10px;letter-spacing:-3.5px}.dash-heading p{margin:0;color:#6f6f6f;font-size:13px}
.status-chip,.root-chip{border:1px solid #2a2a2a;background:#0d0d0d;border-radius:99px;padding:9px 12px;font-size:9px;letter-spacing:1.3px;font-weight:900;color:#777}.status-chip.live{background:#fff;color:#000;border-color:#fff}.root-chip{color:#fff}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:10px}.stat-grid article,.panel-card{border:1px solid #1e1e1e;background:#090909;border-radius:13px;padding:18px}.stat-grid span{font-size:8px;letter-spacing:1.5px;color:#5f5f5f;font-weight:900}.stat-grid strong{display:block;font-size:25px;margin:13px 0 5px;letter-spacing:-1px}.stat-grid small{font-size:10px;color:#454545}
.control-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:10px}.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.card-head b{font-size:9px;letter-spacing:1px;color:#4e4e4e}.steps{list-style:none;padding:0;margin:0 0 20px}.steps li{display:flex;align-items:center;gap:14px;border-top:1px solid #171717;padding:12px 0;color:#838383;font-size:12px}.steps li b{font-size:9px;color:#454545}.steps li strong{color:#d7d7d7}.primary-btn{padding:0 18px}.mini-preview{height:168px;border:1px solid #1d1d1d;border-radius:10px;background:radial-gradient(circle at center,#161616,#050505 70%);display:flex;flex-direction:column;align-items:center;justify-content:center;margin-bottom:12px}.mini-preview span{font-size:9px;letter-spacing:1.5px;color:#4c4c4c}.mini-preview strong{font-size:25px;letter-spacing:3px;margin-top:8px}
.settings-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:10px}.span-2{grid-column:1/-1}
.copy-field{display:block;margin-bottom:15px}.copy-field>span,.profile-form label>span{display:block;font-size:8px;letter-spacing:1.5px;font-weight:900;color:#5c5c5c;margin-bottom:7px}.copy-field>div{display:flex}.copy-field input{flex:1;min-width:0;border:1px solid #252525;background:#050505;color:#bbb;height:46px;padding:0 12px;border-radius:9px 0 0 9px;outline:0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.copy-field button{border:1px solid #2c2c2c;border-left:0;background:#111;color:#8d8d8d;padding:0 12px;font-size:9px;font-weight:900}.copy-field button:last-child{border-radius:0 9px 9px 0}.secret-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:8px}.secret-actions small{color:#4d4d4d;font-size:9px}.danger-outline{background:transparent;border:1px solid #472323;color:#cb6969}.big-code{height:116px;border:1px dashed #363636;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:26px;letter-spacing:4px;font-weight:900;margin-bottom:12px}.spec-list{margin:0}.spec-list div{display:flex;justify-content:space-between;border-top:1px solid #191919;padding:11px 0;font-size:11px}.spec-list dt{color:#5e5e5e}.spec-list dd{margin:0;color:#aaa}
.profile-form{max-width:900px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.profile-form input,.profile-form textarea,.admin-search input{width:100%;border:1px solid #262626;background:#060606;color:#e5e5e5;border-radius:9px;padding:12px;outline:0}.profile-form textarea{resize:vertical}.profile-form input:focus,.profile-form textarea:focus,.admin-search input:focus{border-color:#555}.form-actions{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin-top:20px}.form-actions span{font-size:10px;color:#6b6b6b}
.admin-shell{padding:55px clamp(22px,6vw,90px);max-width:1500px;margin:auto}.admin-search{margin-bottom:12px}.admin-search input{height:48px}.admin-table-wrap{overflow:auto;border:1px solid #1e1e1e;border-radius:13px}.admin-table{width:100%;border-collapse:collapse;min-width:800px;background:#080808}.admin-table th{font-size:8px;letter-spacing:1.3px;color:#4d4d4d;text-align:left;padding:13px 15px;border-bottom:1px solid #1d1d1d}.admin-table td{font-size:11px;color:#838383;padding:14px 15px;border-bottom:1px solid #141414}.admin-user{display:flex;align-items:center;gap:9px;color:#ddd;font-weight:700}.admin-user img{width:30px;height:30px;border-radius:8px;object-fit:cover}.badge-yes{color:#fff}.admin-action{border:1px solid #2d2d2d;background:#111;color:#bbb;border-radius:7px;padding:7px 10px;font-size:9px;font-weight:900}
.toast{position:fixed;z-index:1000;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#f4f4f4;color:#050505;border-radius:9px;padding:10px 14px;font-size:10px;font-weight:850;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1050px){.watch-shell{grid-template-columns:1fr}.chat-panel{height:500px;position:relative;top:auto;border-left:0;border-top:1px solid #191919}.stat-grid{grid-template-columns:1fr 1fr}.control-grid,.settings-grid{grid-template-columns:1fr}.workspace{grid-template-columns:190px}.span-2{grid-column:auto}}
@media(max-width:720px){:root{--top:62px}.topbar{padding:0 14px}.link-btn{display:none}.brand{font-size:15px}.hero h1{letter-spacing:-4px}.hero-meta{display:none}.home-footer{left:15px;right:15px}.watch-main{padding:10px}.stream-info{padding-top:15px}.workspace{display:block}.side-nav{position:relative;top:auto;height:auto;flex-direction:row;overflow:auto;border-right:0;border-bottom:1px solid #171717;padding:9px}.side-title,.side-spacer,.side-nav .danger{display:none}.nav-item{white-space:nowrap}.workspace-content,.admin-shell{padding:30px 15px}.stat-grid{grid-template-columns:1fr 1fr}.dash-heading h1{font-size:42px}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.top-actions{gap:5px}.auth-btn{padding:0 10px;font-size:11px}}
@media(max-width:460px){.stat-grid{grid-template-columns:1fr}.hero h1{font-size:58px}.code-row input{font-size:20px}.stream-copy{gap:8px}.profile-pill span{display:none}}
