:root{--bg:#080e1a;--p:#111b2b;--p2:#182439;--line:#304057;--ink:#f6f8fc;--muted:#9daec6;--accent:#ffb50f;--green:#37d5ab;--shadow:0 18px 40px rgba(0,0,0,.24)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:radial-gradient(circle at 46% -10%,#25364f,transparent 40%),var(--bg);font-family:Inter,Manrope,system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}h1,h2,p{margin:0}.hidden{display:none!important}.skip{position:absolute;left:-9999px}.skip:focus{left:20px;top:12px;z-index:99;background:#fff;color:#000;padding:12px}.app-header{height:78px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px clamp(14px,2vw,40px);background:rgba(7,13,24,.96);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50;backdrop-filter:blur(15px)}.brand{display:flex;align-items:center;gap:13px;min-width:0}.brand img{width:100px;height:52px;object-fit:contain;background:white;border-radius:10px}.brand span{display:flex;flex-direction:column;gap:2px}.brand strong{font-size:22px;letter-spacing:-.04em}.brand small{font-size:9px;letter-spacing:.09em;color:var(--muted)}.header-controls{display:flex;align-items:center;gap:12px}.lang{display:flex;padding:4px;border:1px solid var(--line);border-radius:24px}.lang button{background:transparent;border:0;color:var(--muted);font-weight:800;font-size:12px;border-radius:19px;padding:8px 11px}.lang button.is-active{color:#0b1020;background:var(--accent)}.auth-btn{border:1px solid var(--line);border-radius:12px;color:var(--ink);padding:11px 16px;background:var(--p2);font-size:13px;font-weight:800}.header-home{padding:11px 16px;border-radius:12px;background:#ffb50f;color:#080e1a;font-weight:800;font-size:13px}.site-layout{display:grid;grid-template-columns:minmax(220px,275px) minmax(390px,1fr) minmax(305px,390px);gap:16px;max-width:1880px;min-height:calc(100vh - 78px);margin:0 auto;padding:16px}.panel{min-width:0;background:linear-gradient(160deg,rgba(21,32,50,.98),rgba(12,20,33,.95));border:1px solid #29394e;border-radius:24px;box-shadow:var(--shadow)}.pages-panel,.reels-panel{height:calc(100vh - 110px);position:sticky;top:94px;display:flex;flex-direction:column;overflow:hidden}.panel-title,.reels-title{display:flex;justify-content:space-between;align-items:center;padding:23px 20px 15px}.panel-title h2,.reels-title h2{font-size:20px;letter-spacing:-.035em}.panel-title>span{font-size:12px;color:var(--accent);border:1px solid rgba(255,181,15,.24);border-radius:20px;padding:6px 10px}.eyebrow{font-size:10px;letter-spacing:.18em;color:var(--accent);font-weight:800;margin-bottom:7px}.small-muted{color:var(--muted);font-size:12px;padding:10px}.search-wrap{margin:0 15px 15px;display:flex;align-items:center;gap:10px;background:#0c1422;border:1px solid #34435a;padding:0 13px;border-radius:13px;color:var(--muted)}.search-wrap input{border:none;outline:none;background:none;width:100%;padding:12px 0;color:#fff;min-width:0}.pages-scroll{overflow-y:auto;flex:1;padding:0 10px 14px;scrollbar-color:#36465a transparent;scrollbar-width:thin}.page-group{margin:12px 0}.page-group strong{display:block;padding:7px 11px;color:#8e9db4;font-size:10px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.page-group a{display:flex;align-items:center;gap:8px;padding:9px 11px;color:#d2dae7;font-size:12px;line-height:1.3;border-radius:10px;overflow-wrap:anywhere}.page-group a:hover,.page-group a[aria-current=page]{background:#27364a;color:var(--accent)}.page-group a::before{content:'↗';color:#65809f;font-weight:800}.pages-back{padding:16px 22px;border-top:1px solid var(--line);font-size:12px;color:var(--accent)}.central{padding:30px clamp(16px,2.4vw,34px);min-height:calc(100vh - 110px)}.central-head h1{margin-top:12px;font-size:clamp(28px,3vw,45px);line-height:1.1;letter-spacing:-.065em;max-width:720px}.central-head p{color:#c3cedc;font-size:15px;line-height:1.75;margin:15px 0 17px;max-width:800px}.system-note{border:1px solid rgba(255,181,15,.32);padding:12px 13px;background:#42300e55;border-radius:13px;color:#ffd77f;font-size:12px;line-height:1.5}.system-note.is-online{background:#0d322b;border-color:#317f6c;color:#a2ffdf}.tabbar{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-top:30px;margin-bottom:24px;padding-bottom:12px;overflow:auto}.tabbar button{border:1px solid transparent;border-radius:12px;padding:12px 14px;white-space:nowrap;background:transparent;color:#aab9cd;font-weight:800;font-size:13px}.tabbar button.active{color:#111827;background:var(--accent)}.section-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 15px}.section-top h2{font-size:19px}.section-top small{font-size:12px;color:var(--muted)}.tiny-tag{font-size:10px;font-weight:800;letter-spacing:.04em;border:1px solid #3a4557;border-radius:15px;padding:5px 9px;color:#a5b3c9}.categories{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:32px}.categories button{padding:9px 13px;background:#1d2d42;border:1px solid #36475e;border-radius:999px;color:#d2e0f1;font-size:12px;font-weight:750}.categories button.active,.categories button:hover{background:#f6bb36;border-color:#f6bb36;color:#142033}.video-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:14px}.video-card{border:1px solid #2e4156;background:#1b293d;border-radius:17px;overflow:hidden;cursor:pointer;text-align:left;color:#fff;padding:0;transition:transform .2s}.video-card:hover{transform:translateY(-3px)}.video-card img{width:100%;height:160px;object-fit:cover;display:block}.video-card .videoinfo{padding:12px}.video-card strong{font-size:13px;display:block;line-height:1.4}.video-card small{display:block;margin-top:7px;color:var(--muted);font-size:11px}.videothumb{position:relative}.videothumb span{position:absolute;right:8px;bottom:9px;background:#070b16d6;border-radius:6px;padding:5px 7px;font-size:10px}.note-box{background:#111d2d;border:1px dashed #3d516a;border-radius:14px;padding:18px;margin-top:25px}.note-box strong{font-size:14px}.note-box p{font-size:12px;color:#aebed0;line-height:1.7;margin-top:10px}.note-box button{margin-top:13px}.reels-panel{background:#050a12}.reels-title{padding-bottom:13px}.live-badge{font-size:11px;background:#ffb50f;color:#0b1222;border-radius:20px;padding:6px 11px;font-weight:900}.reel-scroll{margin:0 14px 10px;border-radius:18px;background:black;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none;flex:1;min-height:0}.reel-scroll::-webkit-scrollbar{display:none}.reel-card{min-height:100%;height:100%;position:relative;scroll-snap-align:start;scroll-snap-stop:always;background:#0e1626;overflow:hidden}.reel-card video{height:100%;width:100%;object-fit:cover;display:block;background:#0b111a}.reel-card .gradient{position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#030712e8 0%,transparent 40%)}.reel-caption{position:absolute;left:15px;bottom:32px;right:55px;text-shadow:0 3px 12px black}.reel-caption strong{font-size:17px;line-height:1.35;display:block}.reel-caption small{display:block;color:#e2e8f0;margin-top:10px;font-size:12px}.reel-caption .demo-label{color:#111827;display:inline-block;padding:5px 9px;background:#ffc54a;border-radius:7px;font-weight:900;margin-bottom:9px;font-size:10px}.reel-actions{position:absolute;bottom:42px;right:13px;display:flex;flex-direction:column;gap:12px}.reel-actions button{background:#081326b6;color:#fff;border:1px solid #a7b4c155;border-radius:50%;height:43px;width:43px;font-size:19px}.reel-actions button.liked{color:#fb7185}.reels-help{display:flex;justify-content:space-between;align-items:center;margin:0 19px 10px;color:#a6b8ce;font-size:11px}.reels-help button{border:1px solid var(--line);background:#1a283b;color:white;border-radius:10px;padding:6px 9px}.chat-layout{display:grid;grid-template-columns:145px minmax(0,1fr);border:1px solid var(--line);border-radius:18px;overflow:hidden;min-height:430px}.rooms{background:#0f1a2a;border-right:1px solid var(--line);padding:8px;display:flex;flex-direction:column;gap:5px}.rooms button{display:flex;text-align:left;align-items:center;gap:8px;padding:12px 10px;border:0;color:#c3d1e2;background:transparent;border-radius:12px;font-size:12px;font-weight:700}.rooms button.active{background:#273951;color:#fff}.rooms button i{font-style:normal;font-size:19px}.chat-area{display:flex;flex-direction:column;min-width:0;background:#162339}.chat-top{padding:13px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #334155}.chat-top strong{font-size:13px}.chat-top small{display:block;margin-top:3px;color:var(--muted);font-size:10px}.online-point{width:9px;height:9px;background:var(--green);border-radius:50%}.messages{padding:15px;flex:1;min-height:250px;max-height:380px;overflow-y:auto;display:flex;flex-direction:column;gap:11px;background:radial-gradient(circle at 60% 20%,#253755,#162339)}.bubble{max-width:90%;padding:10px 13px;border-radius:14px;background:#26374e;align-self:flex-start;overflow-wrap:anywhere}.bubble.mine{align-self:flex-end;background:#3b3e22}.bubble .name{color:#ffce72;font-size:10px;margin-bottom:5px}.bubble .body{font-size:12px;line-height:1.5;white-space:pre-wrap}.bubble time{display:block;color:#c2cdd9;font-size:9px;text-align:right;margin-top:5px}.empty-chat{font-size:12px;color:var(--muted);line-height:1.6;text-align:center;align-self:center;margin:auto 0}.composer{display:flex;gap:9px;padding:11px;border-top:1px solid #334155}.composer input{flex:1;min-width:0;background:#0f1a2a;color:white;border:1px solid #45576c;border-radius:12px;padding:12px;outline:none}.composer button{width:42px;border:0;background:var(--accent);border-radius:10px;font-weight:900}.chat-notice{border-top:1px solid #2d4055;padding:8px 12px;color:#abbad0;font-size:10px;line-height:1.5}.upload-form{display:flex;flex-direction:column;gap:18px}.upload-form label:not(.checkbox){display:flex;flex-direction:column;gap:9px;color:#d6e2f0;font-size:13px;font-weight:700}.upload-form input:not([type=file]):not([type=checkbox]),.upload-form select{width:100%;border:1px solid #415268;border-radius:12px;background:#101c2c;color:white;padding:13px;outline:none}.filedrop{border:2px dashed #62758d;border-radius:20px;min-height:150px;align-items:center;justify-content:center;text-align:center;background:#15243a;padding:22px;cursor:pointer}.filedrop small{color:var(--muted);font-weight:500}.filedrop input{display:block;max-width:260px;font-size:11px;margin-top:10px}.filedrop.dragging{border-color:var(--accent)}.upload-preview{width:100%;max-height:300px;object-fit:contain;border-radius:14px;background:#000}.checkbox{display:flex;gap:10px;font-size:12px;color:#d4e0ef;line-height:1.5}.checkbox input{accent-color:var(--accent);width:18px;flex-shrink:0}.primary,.secondary{padding:13px 18px;border:1px solid #edac15;border-radius:12px;background:var(--accent);font-weight:850;color:#131b29}.secondary{background:#15243a;color:#fbd77d}.upload-status{font-size:12px;color:#fdd36f;min-height:15px}.mobile-nav{display:none}
@media(max-width:1330px){.site-layout{grid-template-columns:210px minmax(340px,1fr) minmax(270px,350px);gap:10px;padding:10px}.central{padding:20px}.page-group a{font-size:11px}}
@media(max-width:1040px){.site-layout{grid-template-columns:205px 1fr}.reels-panel{grid-column:2;position:static;max-width:440px;height:680px;width:100%;margin:0 auto}.central{grid-column:2;grid-row:1}.pages-panel{grid-row:1 / span 2}}
@media(max-width:760px){body{padding-bottom:68px}.app-header{height:63px;padding:6px 10px;gap:8px}.brand{gap:6px}.brand img{width:73px;height:43px}.brand strong{font-size:13px}.brand small{display:none}.header-controls{gap:5px}.lang{padding:2px}.lang button{padding:5px 6px;font-size:10px}.header-home{display:none}.auth-btn{padding:8px;font-size:10px}.site-layout{display:block;margin:0;padding:0;min-height:calc(100dvh - 140px)}.panel{border-radius:0;border:0;box-shadow:none}.pages-panel,.central,.reels-panel{display:none;position:static;width:100%;height:auto;min-height:calc(100dvh - 130px)}.site-layout.mobile-pages .pages-panel,.site-layout.mobile-library .central,.site-layout.mobile-chats .central,.site-layout.mobile-reels .reels-panel{display:flex}.pages-panel{height:calc(100dvh - 133px);min-height:0;overflow:hidden}.central{padding:20px 16px 45px;flex-direction:column}.site-layout.mobile-chats .central-head,.site-layout.mobile-chats #librarySection,.site-layout.mobile-chats #uploadSection{display:none}.site-layout.mobile-chats .tabbar{margin:0 0 13px}.site-layout.mobile-reels .reels-panel{height:calc(100dvh - 130px);min-height:0;padding-top:0;display:flex}.reels-title{padding:10px 15px 7px}.reel-scroll{margin:0 0 5px;flex:1;border-radius:0}.reels-help{margin:4px 14px}.central-head h1{font-size:29px}.central-head p{font-size:13px}.chat-layout{grid-template-columns:1fr;min-height:calc(100dvh - 310px)}.rooms{flex-direction:row;overflow-x:auto;border:0;border-bottom:1px solid var(--line)}.rooms button{white-space:nowrap}.messages{max-height:none;min-height:calc(100dvh - 480px)}.mobile-nav{position:fixed;z-index:90;bottom:0;left:0;right:0;height:calc(64px + env(safe-area-inset-bottom));padding:4px 5px env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#070d18;border-top:1px solid #314159}.mobile-nav button{border:0;background:transparent;color:#a4b3c7;font-weight:800;font-size:11px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px}.mobile-nav button.is-active{color:var(--accent)}.video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.video-card img{height:128px}.tabbar{gap:5px}.tabbar button{font-size:11px;padding:10px 8px}.system-note{font-size:11px}}
@media(max-width:370px){.brand img{width:55px}.brand strong{font-size:12px}.lang button{padding:5px}.video-grid{grid-template-columns:1fr 1fr}}

.auth-btn:disabled{opacity:.68;cursor:not-allowed}

/* MLP COMMUNITY v20: карта магазинів, тільки рекламні відео */
.shops-map-shortcut{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(120deg,#e5a823,#ffd269);color:#172235;border-radius:13px;padding:13px 12px;margin:14px 0 16px;font-weight:900;font-size:13px}
.shops-map-shortcut:hover{filter:brightness(1.08)}
#storesSection .section-top{flex-wrap:wrap;gap:9px}
.open-map-full{background:#ffc04a;border-radius:9px;color:#172134;font-weight:900;font-size:12px;padding:10px 12px}
.map-explainer{color:#b8c8dd;font-size:12px;line-height:1.65;margin-bottom:12px}
#mapFrame{display:block;border:1px solid #41546a;border-radius:15px;overflow:hidden;width:100%;height:745px;background:#101927}
.reel-target{display:inline-flex;border-radius:12px;padding:10px 13px;background:#ffc144;color:#182236;font-size:12px;font-weight:900;margin-top:12px;text-shadow:none}
.reel-target:hover{background:#ffda86}
@media(max-width:760px){.site-layout.mobile-stores .central{display:flex}.site-layout.mobile-stores .central-head,.site-layout.mobile-stores #librarySection,.site-layout.mobile-stores #chatsSection{display:none}.site-layout.mobile-stores .tabbar{margin:0 0 13px}.site-layout.mobile-stores .tabbar button[data-tab="stores"]{color:#ffc44c}.site-layout.mobile-stores #storesSection{display:block}.mobile-nav{justify-content:space-around}.mobile-nav button{min-width:0;padding:8px 2px!important;font-size:10px!important}#mapFrame{height:920px}}
