*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#08080d;color:#fff;font-family:Inter,Segoe UI,Arial,sans-serif}body{overflow-x:hidden}a{color:inherit}button,input,textarea,select{font:inherit}button{cursor:pointer}.topbar{position:fixed;z-index:50;top:0;left:0;right:0;height:62px;display:flex;align-items:center;justify-content:space-between;padding:10px 18px;background:linear-gradient(180deg,rgba(6,6,10,.82),rgba(6,6,10,.2));backdrop-filter:blur(12px);pointer-events:none}.topbar a,.topbar button{pointer-events:auto}.brand{display:flex;align-items:center;gap:10px;text-decoration:none}.brand img{width:38px;height:38px;border-radius:12px;box-shadow:0 0 26px color-mix(in srgb,var(--accent),transparent 45%)}.brand b{display:block;font-size:15px;letter-spacing:.2px}.brand small{display:block;color:#ddd;font-size:11px;max-width:280px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topnav{display:flex;gap:10px;align-items:center}.topnav a,.linkbtn{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);padding:9px 12px;border-radius:999px;text-decoration:none;color:#fff}.topnav a:hover,.linkbtn:hover{background:rgba(255,255,255,.16)}.bottomnav{position:fixed;z-index:60;left:50%;bottom:12px;transform:translateX(-50%);display:none;gap:8px;padding:8px;background:rgba(14,14,20,.82);border:1px solid rgba(255,255,255,.12);border-radius:999px;backdrop-filter:blur(14px)}.bottomnav a{text-decoration:none;padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.06)}.feed-shell{height:100dvh;overflow:hidden;background:radial-gradient(circle at 20% 10%,rgba(255,106,0,.22),transparent 30%),radial-gradient(circle at 80% 80%,rgba(255,0,93,.16),transparent 30%),#08080d}.feed{height:100%;overflow-y:auto;scroll-snap-type:y mandatory;scroll-behavior:smooth}.feed::-webkit-scrollbar{width:0}.video-card,.ad-card{position:relative;height:100dvh;min-height:620px;scroll-snap-align:start;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#050507}.video-bg{position:absolute;inset:0;background-size:cover;background-position:center;filter:blur(30px) brightness(.55);transform:scale(1.15);opacity:.38}.video-card video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}.video-gradient{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.2) 0%,transparent 30%,rgba(0,0,0,.72) 100%);pointer-events:none}.video-info{position:absolute;z-index:5;left:max(18px,env(safe-area-inset-left));right:90px;bottom:92px;text-shadow:0 2px 14px #000}.video-info h2{margin:0 0 8px;font-size:clamp(20px,4vw,34px);line-height:1.05}.video-info p{margin:0 0 10px;color:#eee;max-width:720px}.tags{display:flex;flex-wrap:wrap;gap:6px}.tags span{font-size:12px;padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.12)}.side-actions{position:absolute;z-index:6;right:max(12px,env(safe-area-inset-right));bottom:110px;display:flex;flex-direction:column;gap:12px;align-items:center}.action{width:58px;min-height:58px;border:0;border-radius:20px;color:#fff;background:rgba(20,20,28,.64);backdrop-filter:blur(12px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;box-shadow:0 8px 24px rgba(0,0,0,.25)}.action b{font-size:22px;line-height:1}.action small{font-size:11px}.action.active{background:linear-gradient(135deg,var(--accent),#ff005d)}.action.dislike.active{background:linear-gradient(135deg,#4b5cff,#111a78)}.tap-sound{position:absolute;z-index:8;top:82px;left:50%;transform:translateX(-50%);padding:10px 14px;border-radius:999px;background:rgba(0,0,0,.58);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(10px);display:none}.video-card.need-sound .tap-sound{display:block}.progress-wrap{position:absolute;z-index:7;left:18px;right:18px;bottom:68px;display:flex;align-items:center;gap:9px}.progress-wrap time{font-size:11px;color:#eee;min-width:42px;text-align:center}.seek{width:100%;accent-color:var(--accent);height:5px}.sharebox{position:absolute;z-index:20;left:18px;right:18px;bottom:22px;display:none;gap:8px;background:rgba(10,10,16,.9);border:1px solid rgba(255,255,255,.15);border-radius:18px;padding:10px;backdrop-filter:blur(12px)}.sharebox.open{display:flex}.sharebox input{flex:1;background:#11121a;color:#fff;border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:10px}.sharebox button,.primary,.ghost{border:0;border-radius:12px;padding:11px 15px;color:#fff;background:linear-gradient(135deg,var(--accent),#ff005d);font-weight:700}.ghost{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);font-weight:600}.danger{background:#631b2b}.feed-loader{position:fixed;z-index:20;left:50%;bottom:80px;transform:translateX(-50%);color:#ddd;background:rgba(0,0,0,.42);border-radius:999px;padding:8px 12px}.panel{width:min(1180px,calc(100% - 28px));margin:86px auto 90px}.narrow{width:min(520px,calc(100% - 28px))}.panel h1{font-size:clamp(28px,5vw,54px);margin:0 0 22px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.card,.successbox{border:1px solid rgba(255,255,255,.12);background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.045));border-radius:24px;padding:18px;box-shadow:0 18px 60px rgba(0,0,0,.24)}.form{display:flex;flex-direction:column;gap:13px}.form label{display:flex;flex-direction:column;gap:6px;color:#e8e8e8}.form input,.form textarea,.form select,.tablewrap input,.tablewrap select{width:100%;background:#101018;color:#fff;border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:12px;outline:none}.form input:focus,.form textarea:focus,.form select:focus{border-color:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent),transparent 80%)}.inline{display:flex;flex-direction:row;gap:8px;align-items:center;flex-wrap:wrap}.inline input,.inline select{width:auto;min-width:130px}.check{flex-direction:row!important;align-items:center}.check input{width:auto}.muted{color:#bdbdc8}.good{color:#6effb6}.bad{color:#ff899b}.flash,.notice{position:fixed;z-index:80;left:50%;top:72px;transform:translateX(-50%);padding:12px 16px;border-radius:999px;background:#151521;border:1px solid rgba(255,255,255,.14);box-shadow:0 16px 50px rgba(0,0,0,.3)}.flash.ok{border-color:rgba(100,255,180,.4)}.flash.err{border-color:rgba(255,100,130,.5)}.notice{top:126px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.tabs a{padding:10px 13px;border-radius:999px;background:rgba(255,255,255,.08);text-decoration:none;border:1px solid rgba(255,255,255,.12)}.stats .card b{display:block;font-size:34px}.stats .card span{color:#cfcfd9}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse}td,th{padding:10px;border-bottom:1px solid rgba(255,255,255,.1);text-align:left}code{background:#11121a;border:1px solid rgba(255,255,255,.12);border-radius:8px;padding:3px 6px}.recorder video,.livecard video{width:100%;max-height:360px;background:#000;border-radius:18px}.row{display:flex;gap:10px;flex-wrap:wrap}.comment-modal{position:fixed;z-index:100;inset:auto 0 0 0;max-height:75dvh;background:rgba(12,12,18,.98);border-top:1px solid rgba(255,255,255,.12);border-radius:24px 24px 0 0;padding:18px;box-shadow:0 -20px 70px rgba(0,0,0,.45);transform:translateY(105%);transition:.25s}.comment-modal.open{transform:translateY(0)}.comment-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.comment-list{max-height:42dvh;overflow:auto;display:flex;flex-direction:column;gap:10px;margin:12px 0}.comment{background:rgba(255,255,255,.07);border-radius:14px;padding:10px}.comment b{display:block}.ad-card{padding:22px}.ad-inner{width:min(540px,90%);border:1px solid rgba(255,255,255,.14);background:linear-gradient(135deg,rgba(255,106,0,.25),rgba(255,0,93,.16));border-radius:30px;padding:28px;text-align:center;box-shadow:0 28px 80px rgba(0,0,0,.36)}.ad-inner h2{font-size:38px;margin:0 0 12px}@media(max-width:780px){.topbar{height:58px;padding:9px 12px}.brand small{display:none}.topnav{display:none}.bottomnav{display:flex}.video-info{right:82px;bottom:106px}.side-actions{bottom:126px}.action{width:54px;min-height:54px;border-radius:18px}.progress-wrap{bottom:70px;left:12px;right:12px}.sharebox{bottom:76px}.panel{margin-top:78px}.video-card,.ad-card{min-height:100dvh}.flash{width:calc(100% - 28px);text-align:center}.inline input,.inline select{width:100%}}@media(min-width:1100px){.video-card video{width:min(520px,100%);border-radius:28px;box-shadow:0 0 0 1px rgba(255,255,255,.08),0 30px 120px rgba(0,0,0,.55)}.video-info{left:calc(50% - 250px);right:calc(50% + 70px);bottom:105px}.side-actions{right:calc(50% - 345px)}}
/* v3/v4: lepsze wysrodkowanie shortow na komputerze i czytelniejsze komentarze */
.comment-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.mini{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:#fff;border-radius:999px;padding:6px 10px;font-size:12px}.mini:hover{background:rgba(255,255,255,.16)}.reportitem{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);border-radius:16px;padding:12px;margin:10px 0}.reportitem blockquote{margin:8px 0;padding:10px;border-left:3px solid var(--accent);background:rgba(0,0,0,.22);border-radius:10px}.reportitem small{display:block;color:#bdbdc8;margin-top:6px}
@media(min-width:1100px){.feed{display:block}.video-card,.ad-card{width:100%;}.video-card video{left:50%;right:auto;transform:translateX(-50%);width:min(520px,calc(100vw - 360px));height:calc(100dvh - 28px);top:14px;bottom:14px;object-fit:contain;border-radius:30px}.video-gradient{left:50%;right:auto;transform:translateX(-50%);width:min(520px,calc(100vw - 360px));border-radius:30px;top:14px;bottom:14px;height:auto}.video-bg{opacity:.46}.video-info{left:calc(50% - min(260px,calc((100vw - 360px)/2)) + 22px);right:calc(50% - min(260px,calc((100vw - 360px)/2)) + 22px);bottom:110px;max-width:min(476px,calc(100vw - 400px))}.side-actions{right:calc(50% - min(260px,calc((100vw - 360px)/2)) - 82px);bottom:130px}.progress-wrap{left:calc(50% - min(260px,calc((100vw - 360px)/2)) + 18px);right:calc(50% - min(260px,calc((100vw - 360px)/2)) + 18px);bottom:76px}.sharebox{left:calc(50% - min(260px,calc((100vw - 360px)/2)) + 18px);right:calc(50% - min(260px,calc((100vw - 360px)/2)) + 18px);bottom:24px}.tap-sound{top:90px}}
@media(max-width:520px){.comment-modal{max-height:82dvh}.comment-list{max-height:48dvh}.comment{padding:12px}.video-info h2{font-size:22px}.video-info p{font-size:14px}}
/* v4: pauza/wznowienie, lepszy dzwiek, live PHP i multi-upload */
.tap-sound{display:block;opacity:.92}.video-card:not(.need-sound) .tap-sound{opacity:.18}.video-card:not(.need-sound) .tap-sound:hover{opacity:.95}.pause-indicator{position:absolute;z-index:9;left:50%;top:50%;transform:translate(-50%,-50%) scale(.92);width:92px;height:92px;border:0;border-radius:50%;background:rgba(0,0,0,.42);color:#fff;font-size:42px;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:auto;backdrop-filter:blur(10px);transition:.18s;box-shadow:0 20px 80px rgba(0,0,0,.4)}.pause-indicator.show,.video-card:hover .pause-indicator{opacity:1;transform:translate(-50%,-50%) scale(1)}.live-page video,.live-hls,#livePlayer,#livePreview{width:100%;max-height:68dvh;background:#000;border-radius:22px;box-shadow:0 20px 70px rgba(0,0,0,.28)}.live-studio,.live-viewer{display:flex;flex-direction:column;gap:12px}.livecard{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);border-radius:18px;padding:14px;margin:12px 0}.upload-panel input[type=file]{border-style:dashed;background:rgba(255,255,255,.075)}.successbox input{width:100%;margin-top:6px;background:#101018;color:#fff;border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:10px}@media(max-width:780px){.pause-indicator{width:76px;height:76px;font-size:34px}.tap-sound{top:64px;font-size:13px}.live-page video,#livePlayer,#livePreview{max-height:52dvh}}


/* v5 UX fixes */
.flash{animation:ancFlashAutoHide 3.8s ease forwards;pointer-events:none}.flash.err{animation-duration:6s}@keyframes ancFlashAutoHide{0%,75%{opacity:1;transform:translateX(-50%) translateY(0)}100%{opacity:0;transform:translateX(-50%) translateY(-12px);visibility:hidden}}
.pause-indicator{width:54px!important;height:54px!important;font-size:24px!important;background:rgba(0,0,0,.38)!important;pointer-events:none!important;box-shadow:0 10px 34px rgba(0,0,0,.28)!important}.video-card:hover .pause-indicator{opacity:0!important}.pause-indicator.show{opacity:.94!important;transform:translate(-50%,-50%) scale(1)!important}.video-card.paused .pause-indicator.show{opacity:.94!important}.tap-sound{display:none!important}.soundBtn{display:none!important}.video-card.sound-hint .soundBtn{display:flex!important;animation:ancSoundHint 4.5s ease forwards}@keyframes ancSoundHint{0%,70%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.92);pointer-events:none}}
.video-card video{cursor:pointer}.side-actions{gap:10px}.action{transition:transform .15s ease, opacity .2s ease}.action:active{transform:scale(.92)}
.liveStudioStatus,.liveStatus{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);padding:10px 12px;border-radius:14px}.live-page video,#livePlayer,#livePreview{width:100%;background:#000;border-radius:18px;max-height:68dvh}.tablewrap textarea{min-width:260px}.tablewrap input,.tablewrap textarea,.tablewrap select{width:100%}
@media(min-width:900px){.video-info{left:calc(50% - 260px);right:calc(50% - 230px)}.side-actions{right:calc(50% - 330px)}.progress-wrap{left:calc(50% - 260px);right:calc(50% - 260px)}.sharebox{left:calc(50% - 260px);right:calc(50% - 260px)}}
@media(max-width:780px){.pause-indicator{width:48px!important;height:48px!important;font-size:21px!important}.soundBtn small{font-size:10px}}

/* v7 profile, avatars and public video resources */
.profile-bubble{width:62px;min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-decoration:none;color:#fff;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:22px;padding:6px;box-shadow:0 12px 34px rgba(0,0,0,.26);backdrop-filter:blur(12px)}
.profile-bubble img{width:46px;height:46px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.82);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent),transparent 55%)}
.profile-bubble small{font-size:10px;color:#eee}.ghost-avatar{opacity:.76}.author-link{color:#fff;text-decoration:none;font-weight:800}.author-link span{font-size:11px;color:#cfcfd9;font-weight:600;margin-left:6px}.author-link:hover span{text-decoration:underline}.verified{display:inline-flex;align-items:center;justify-content:center;margin-left:5px;padding:2px 6px;border-radius:999px;background:linear-gradient(135deg,var(--accent),#ff005d);color:#fff;font-size:11px;font-weight:800}
.comment-author{display:flex;align-items:center;gap:9px;color:#fff;text-decoration:none}.comment-author img{width:38px;height:38px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.65)}.comment-author span{display:flex;flex-direction:column;line-height:1.15}.comment-author small{color:#bdbdc8}.comment-body{display:block;margin-top:8px;white-space:pre-wrap}.profile-page{max-width:1180px}.profile-hero{display:flex;gap:20px;align-items:center;margin-bottom:18px}.profile-avatar{width:136px;height:136px;border-radius:50%;object-fit:cover;border:4px solid rgba(255,255,255,.82);box-shadow:0 0 0 6px color-mix(in srgb,var(--accent),transparent 65%),0 20px 80px rgba(0,0,0,.35)}.profile-stats{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.profile-stats span{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:8px 12px}.share-profile-label{display:flex;flex-direction:column;gap:6px;color:#cfcfd9;max-width:640px}.share-profile-label input{background:#101018;color:#fff;border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:11px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.profile-video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px}.profile-video{display:flex;flex-direction:column;gap:7px;text-decoration:none;color:#fff;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:10px;min-height:260px}.profile-video video{width:100%;aspect-ratio:9/16;object-fit:cover;border-radius:14px;background:#000}.profile-video span{font-weight:800}.profile-video small{color:#bdbdc8}@media(max-width:780px){.profile-bubble{width:54px;min-height:64px;border-radius:19px}.profile-bubble img{width:40px;height:40px}.profile-hero{align-items:flex-start}.profile-avatar{width:96px;height:96px}.profile-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-video{min-height:220px}}

/* v9 - konto uzytkownika: zmiana e-maila i hasla */
.account-card .notice.soft {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 170, 0, .12);
  border: 1px solid rgba(255, 170, 0, .28);
}
.account-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.account-form button {
  width: fit-content;
}
@media (max-width: 760px) {
  .account-form button { width: 100%; }
}

/* v10 - dopracowany tryb live: share link, plynniejsze segmenty, widzowie i wyrzucanie */
.live-grid { grid-template-columns: minmax(0, 1.35fr) minmax(310px, .85fr); align-items: start; }
.live-share { display:flex; gap:8px; align-items:center; margin:12px 0 16px; }
.live-share input { flex:1; min-width:0; background:#101018; color:#fff; border:1px solid rgba(255,255,255,.14); border-radius:14px; padding:12px; }
.live-share.small { margin:10px 0 0; }
.live-share.small input { padding:9px 10px; font-size:12px; }
.live-viewer, .live-studio { gap:14px; }
.live-viewer video, .live-studio video, #livePlayer, #livePreview { width:100%; min-height:260px; max-height:70dvh; background:#000; border-radius:22px; box-shadow:0 20px 70px rgba(0,0,0,.30); }
.liveStatus, .liveStudioStatus { border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.065); padding:11px 13px; border-radius:16px; line-height:1.45; }
.live-admin { margin-top:18px; }
.liveViewers { display:flex; flex-direction:column; gap:10px; margin:12px 0; }
.viewer-row { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:11px 12px; border:1px solid rgba(255,255,255,.11); border-radius:16px; background:rgba(255,255,255,.055); }
.viewer-row span { display:flex; flex-direction:column; gap:3px; min-width:0; }
.viewer-row small { color:#bfc0cc; word-break:break-word; }
.viewer-row button { white-space:nowrap; }
@media(max-width:900px){
  .live-grid { grid-template-columns:1fr; }
  .live-share { flex-direction:column; align-items:stretch; }
  .live-viewer video, .live-studio video, #livePlayer, #livePreview { min-height:220px; max-height:56dvh; border-radius:18px; }
  .viewer-row { align-items:flex-start; flex-direction:column; }
  .viewer-row button { width:100%; }
}


/* v11 - archiwum live, chat live, akceptacje i replay z live */
.live-player-wrap { position:relative; overflow:hidden; border-radius:22px; background:#000; }
.live-player-wrap video { display:block; }
.live-floating-chat { position:absolute; left:14px; right:76px; bottom:18px; display:flex; flex-direction:column; gap:8px; pointer-events:none; z-index:5; }
.live-float-msg { width:max-content; max-width:100%; padding:8px 11px; border-radius:999px; color:#fff; background:rgba(0,0,0,.42); backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,.16); box-shadow:0 10px 30px rgba(0,0,0,.25); animation:floatIn .22s ease-out; transition:opacity .35s, transform .35s; }
.live-float-msg.hide { opacity:0; transform:translateY(-16px); }
.live-float-msg b { color:#fff; margin-right:6px; }
@keyframes floatIn { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.live-chat { margin-top:14px; padding:14px; border:1px solid rgba(255,255,255,.10); border-radius:18px; background:rgba(255,255,255,.045); }
.liveChatList { max-height:260px; overflow:auto; display:flex; flex-direction:column; gap:10px; padding-right:4px; }
.chat-row { display:flex; gap:10px; align-items:flex-start; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.08); }
.chat-row img { width:34px; height:34px; border-radius:50%; object-fit:cover; background:#222; }
.chat-row span { min-width:0; flex:1; }
.chat-row b { display:block; color:#fff; }
.chat-row em { display:block; font-style:normal; color:#a7a8b5; font-size:11px; }
.chat-row p { margin:3px 0 0; color:#ececf3; line-height:1.35; word-break:break-word; }
.liveChatForm { display:flex; gap:8px; margin-top:12px; }
.liveChatForm input { flex:1; min-width:0; }
.live-end-form { margin-top:16px; border-top:1px solid rgba(255,255,255,.10); padding-top:14px; }
.liveRequests { display:flex; flex-direction:column; gap:10px; margin:12px 0; }
.viewer-row.request { border-color:rgba(255,170,0,.25); background:rgba(255,170,0,.075); }
.notice.soft { background:rgba(255,170,0,.10); border:1px solid rgba(255,170,0,.24); border-radius:16px; padding:12px 14px; }
.live-replay-card .video-info h2:before { content:'LIVE '; display:inline-block; margin-right:6px; padding:2px 7px; border-radius:999px; background:rgba(255,0,80,.86); color:#fff; font-size:12px; vertical-align:middle; }
@media(max-width:900px){
  .liveChatForm { flex-direction:column; }
  .live-floating-chat { right:16px; bottom:16px; }
  .live-float-msg { font-size:13px; }
}


/* v11.1 - live TikTok-like: overlay, emoji, gifts, coins */
.live-player-wrap { position:relative; overflow:hidden; background:#000; }
.live-sticky-overlay { position:absolute; z-index:7; max-width:min(82%, 520px); padding:9px 13px; border-radius:999px; background:rgba(0,0,0,.42); color:#fff; font-weight:800; letter-spacing:.01em; text-shadow:0 2px 10px rgba(0,0,0,.75); box-shadow:0 10px 26px rgba(0,0,0,.28); pointer-events:none; backdrop-filter:blur(6px); }
.live-sticky-overlay:empty { display:none; }
.live-sticky-overlay.pos-top { top:16px; left:50%; transform:translateX(-50%); }
.live-sticky-overlay.pos-bottom { bottom:18px; left:50%; transform:translateX(-50%); }
.live-sticky-overlay.pos-center { top:50%; left:50%; transform:translate(-50%,-50%); }
.live-sticky-overlay.pos-left { top:50%; left:12px; transform:translateY(-50%) rotate(-90deg); transform-origin:left center; }
.live-sticky-overlay.pos-right { top:50%; right:12px; transform:translateY(-50%) rotate(90deg); transform-origin:right center; }
.live-sticky-overlay.pos-top_left { top:16px; left:14px; }
.live-sticky-overlay.pos-top_right { top:16px; right:14px; }
.live-sticky-overlay.pos-bottom_left { bottom:18px; left:14px; }
.live-sticky-overlay.pos-bottom_right { bottom:18px; right:14px; }
.liveQuickEmoji { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.liveQuickEmoji button { width:42px; height:42px; border-radius:50%; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.08); font-size:22px; cursor:pointer; transition:transform .15s ease, background .15s ease; }
.liveQuickEmoji button:hover, .giftBtn:hover { transform:translateY(-2px) scale(1.04); background:rgba(255,255,255,.13); }
.liveGifts { margin-top:12px; padding-top:12px; border-top:1px solid rgba(255,255,255,.10); }
.gift-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.giftBtn { border:1px solid rgba(255,255,255,.12); border-radius:16px; background:rgba(255,255,255,.065); color:#fff; padding:10px 8px; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:3px; min-height:82px; }
.giftBtn span { font-size:26px; }
.giftBtn b { font-size:13px; }
.giftBtn small { color:#b8bac8; font-size:11px; }
.live-gift-fx { position:absolute; right:18px; bottom:95px; z-index:8; pointer-events:none; display:flex; flex-direction:column; gap:8px; align-items:flex-end; }
.gift-pop { min-width:150px; max-width:250px; border-radius:24px; padding:10px 14px; background:linear-gradient(135deg, rgba(255,106,0,.92), rgba(255,0,93,.88)); box-shadow:0 18px 42px rgba(255,0,93,.25); color:#fff; transform:translateY(20px) scale(.88); opacity:0; animation:giftIn .55s ease forwards, giftPulse 1.5s ease-in-out infinite; }
.gift-pop span { font-size:34px; display:inline-block; margin-right:6px; vertical-align:middle; filter:drop-shadow(0 4px 8px rgba(0,0,0,.3)); }
.gift-pop b { display:block; font-size:14px; }
.gift-pop small { display:block; opacity:.92; }
.gift-pop.hide { animation:giftOut .45s ease forwards; }
@keyframes giftIn { to { transform:translateY(0) scale(1); opacity:1; } }
@keyframes giftPulse { 50% { transform:translateY(-4px) scale(1.04); } }
@keyframes giftOut { to { transform:translateY(-28px) scale(.85); opacity:0; } }
.chat-row.gift, .chat-row.super_emoji, .chat-row.highlight, .chat-row.thanks { background:rgba(255,106,0,.10); border-radius:14px; padding:8px; margin:4px 0; border-bottom:0; }
.live-float-msg.emoji, .live-float-msg.super_emoji { align-self:flex-start; font-size:28px; background:rgba(0,0,0,.18); padding:6px 10px; }
.live-float-msg.gift, .live-float-msg.highlight, .live-float-msg.thanks { background:linear-gradient(135deg, rgba(255,106,0,.74), rgba(255,0,93,.66)); border:1px solid rgba(255,255,255,.18); }
.liveTopSupporters { margin-bottom:12px; }
.supporters { display:flex; gap:8px; flex-wrap:wrap; }
.supporters span { display:inline-flex; gap:6px; align-items:center; padding:7px 10px; border-radius:999px; background:rgba(255,255,255,.07); color:#fff; }
.supporters b { color:#ffd36a; }
.supporters em { color:#bfc0cb; font-style:normal; font-size:12px; }
.liveOverlayForm { margin-top:14px; border-top:1px solid rgba(255,255,255,.10); padding-top:14px; }
.grid.mini { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
@media (max-width:720px) {
  .gift-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .live-gift-fx { right:10px; bottom:74px; }
  .gift-pop { min-width:126px; max-width:190px; padding:8px 11px; }
  .live-sticky-overlay { font-size:13px; max-width:78%; }
  .grid.mini { grid-template-columns:1fr; }
}


/* v12 - portfel monet */
.coin-pill{display:inline-flex;align-items:center;gap:.35rem;border:1px solid rgba(255,255,255,.14);background:linear-gradient(135deg,rgba(255,186,60,.18),rgba(255,106,0,.12));border-radius:999px;padding:.38rem .7rem;color:#fff;text-decoration:none;font-weight:800;box-shadow:0 10px 28px rgba(255,106,0,.08)}
.coin-pill.inline{padding:.18rem .5rem;font-size:.92em}.wallet-page .wallet-stats .card b{font-size:1.8rem}.wallet-stats .card{min-height:112px}.good{color:#5dff95}.bad{color:#ff637d}.wallet-page table b.good,.wallet-page table b.bad{white-space:nowrap}.liveGifts .muted a{color:#fff;text-decoration:underline}.giftBtn small{opacity:.78}.topbar .coin-pill{margin-left:.25rem}.bottomnav a[href*="wallet"]{font-weight:900;color:#ffd36b}
@media (max-width:720px){.topbar .coin-pill{padding:.32rem .52rem}.wallet-page .wallet-stats{grid-template-columns:1fr 1fr}.wallet-page .tablewrap{font-size:.86rem}}


/* v14 - statystyki, rankingi i reklamy monetyzacyjne */
.rank-list{display:flex;flex-direction:column;gap:10px;margin:0;padding-left:22px}.rank-list li{padding:10px 12px;border:1px solid rgba(255,255,255,.10);border-radius:16px;background:rgba(255,255,255,.045)}.rank-list li b{display:block}.rank-list li small{display:block;color:#bfc0cc;margin-top:4px}.mini-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;margin-right:8px;vertical-align:middle}.rich-ad .ad-inner{max-width:520px;margin:auto;text-align:center}.ad-media{width:min(100%,420px);max-height:46dvh;object-fit:cover;border-radius:20px;margin:8px auto 12px;display:block;box-shadow:0 16px 40px rgba(0,0,0,.24)}.ad-actions{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap}.ad-phone{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.18);color:#fff;text-decoration:none;background:rgba(255,255,255,.08)}.live-ad-overlay{position:absolute;left:14px;right:78px;top:14px;z-index:9;max-width:460px;padding:10px 12px;border-radius:18px;background:linear-gradient(135deg,rgba(10,10,16,.76),rgba(255,106,0,.30));border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(8px);color:#fff;box-shadow:0 14px 38px rgba(0,0,0,.28);transition:opacity .45s,transform .45s;pointer-events:auto}.live-ad-overlay.hide{opacity:0;transform:translateY(-16px)}.live-ad-overlay small{display:block;color:#ffd36a;font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:10px}.live-ad-overlay b{display:block;font-size:16px;margin-top:2px}.live-ad-overlay span{display:block;font-size:13px;color:#f4f4f7;margin:3px 0 8px}.live-ad-overlay div{display:flex;gap:8px;flex-wrap:wrap}.live-ad-overlay a{display:inline-flex;border-radius:999px;padding:7px 10px;background:rgba(255,255,255,.12);color:#fff;text-decoration:none;font-weight:800}.stats .card b{font-size:1.7rem}.tablewrap input[readonly]{min-width:260px;font-size:12px}
@media(max-width:760px){.live-ad-overlay{left:10px;right:58px;top:10px;max-width:none;padding:8px 10px}.live-ad-overlay b{font-size:14px}.live-ad-overlay span{font-size:12px}.ad-media{max-height:38dvh}.rank-list{padding-left:18px}}




/* v16 - bezpieczny feed startowy i tryb ogladania.
   Nawigacja jest widoczna na pustym feedzie i dla niezalogowanych.
   Pasek znika dopiero po faktycznym wejściu w ogladanie filmu/reklamy: body.is-watching. */
body.feed-mode{background:#08080d;overflow:hidden;}
body.feed-mode .topbar{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:none!important;}
body.feed-mode .topbar a,body.feed-mode .topbar button{pointer-events:auto!important;}
body.feed-mode .feed-shell{height:100dvh;min-height:100dvh;overflow:hidden;background:radial-gradient(circle at 20% 10%,rgba(255,106,0,.22),transparent 30%),radial-gradient(circle at 80% 80%,rgba(255,0,93,.16),transparent 30%),#08080d;}
body.feed-mode .feed{height:100%;min-height:100%;overflow-y:auto;scroll-snap-type:y mandatory;background:transparent;}
body.feed-mode.is-watching{background:#000;}
body.feed-mode.is-watching .topbar,body.feed-mode.is-watching .notice{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
body.feed-mode.is-watching .bottomnav{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
body.feed-mode.is-watching .feed-shell{background:#000!important;}
body.feed-mode.is-watching .video-card,body.feed-mode.is-watching .ad-card{height:100dvh;min-height:100dvh;max-height:100dvh;background:#000;}
.feed-empty{position:fixed;z-index:35;left:50%;top:calc(50% + 18px);transform:translate(-50%,-50%);width:min(620px,calc(100% - 32px));max-height:calc(100dvh - 154px);overflow:auto;padding:24px;border:1px solid rgba(255,255,255,.14);border-radius:26px;background:linear-gradient(180deg,rgba(18,18,28,.94),rgba(8,8,13,.92));box-shadow:0 28px 90px rgba(0,0,0,.52);text-align:center;color:#fff;backdrop-filter:blur(16px)}
.feed-empty[hidden]{display:none!important}.feed-empty h1{margin:0 0 10px;font-size:clamp(28px,6vw,48px)}.feed-empty p{color:#d9d9e3;margin:0 0 16px;line-height:1.5}.feed-empty small{display:block;color:#a9a9b7;margin-top:14px}.row.center{justify-content:center}.feed-error{color:#ffb4c2}.feed-start-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:16px 0}.feed-start-actions .primary,.feed-start-actions .linkbtn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.feed-loader{z-index:34}.feed-loader:empty{display:none}body.feed-mode:not(.is-watching) .feed-loader{bottom:32px;background:rgba(0,0,0,.48)}
@media(max-width:780px){
  body.feed-mode .topbar{height:58px;padding:9px 12px;background:linear-gradient(180deg,rgba(6,6,10,.92),rgba(6,6,10,.55));backdrop-filter:blur(12px)}
  body.feed-mode .brand small{display:none}
  body.feed-mode .bottomnav{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;max-width:calc(100% - 18px);overflow-x:auto;white-space:nowrap;justify-content:flex-start}
  body.feed-mode:not(.is-watching) .feed-shell{padding-bottom:82px}
  body.feed-mode.is-watching .video-card video{position:absolute!important;inset:0!important;width:100%!important;height:100dvh!important;max-height:100dvh!important;object-fit:contain!important;border-radius:0!important;box-shadow:none!important;background:#000!important}
  body.feed-mode.is-watching .video-gradient{inset:0!important;height:100dvh!important;border-radius:0!important;background:linear-gradient(180deg,rgba(0,0,0,.06) 0%,transparent 38%,rgba(0,0,0,.62) 100%)!important}
  body.feed-mode.is-watching .video-info{left:max(12px,env(safe-area-inset-left))!important;right:82px!important;bottom:max(72px,calc(env(safe-area-inset-bottom) + 58px))!important}
  body.feed-mode.is-watching .side-actions{right:max(8px,env(safe-area-inset-right))!important;bottom:max(100px,calc(env(safe-area-inset-bottom) + 86px))!important;gap:8px!important}
  body.feed-mode.is-watching .action{width:50px!important;min-height:50px!important;border-radius:17px!important;background:rgba(10,10,14,.46)!important;backdrop-filter:blur(8px)!important}
  body.feed-mode.is-watching .progress-wrap{left:10px!important;right:10px!important;bottom:max(18px,calc(env(safe-area-inset-bottom) + 10px))!important}
  body.feed-mode.is-watching .sharebox{left:10px!important;right:10px!important;bottom:max(44px,calc(env(safe-area-inset-bottom) + 36px))!important}
  .feed-empty{top:calc(50% + 16px);max-height:calc(100dvh - 152px);padding:20px 16px}
  .feed-start-actions{gap:8px}.feed-start-actions a{flex:1 1 42%;min-width:128px}
}
@media(min-width:781px){body.feed-mode.is-watching .video-card video{top:0!important;bottom:0!important;height:100dvh!important;max-height:100dvh!important}}


/* v17 - poprawki feedu, portfela i live na telefonie */
body.app-mode .topbar{pointer-events:auto;}
body.app-mode .panel{padding-top:2px;}
.wallet-page h1{line-height:1.05;word-break:normal;}
.wallet-page .notice.soft{display:none!important;}
.live-player-wrap{isolation:isolate;}
.live-gift-fx{max-width:min(260px,42%);}
.gift-pop{max-width:240px;overflow:hidden;}
.gift-pop b,.gift-pop small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.live-float-msg.super_emoji,.live-float-msg.emoji{max-width:min(360px,72vw);line-height:1.15;}
@media(max-width:760px){
  .live-page .panel,.live-page{overflow-x:hidden;}
  .live-player-wrap{border-radius:18px;}
  .live-floating-chat{left:10px;right:10px;bottom:92px;gap:6px;}
  .live-float-msg{max-width:calc(100vw - 44px);font-size:12px;padding:7px 9px;}
  .live-float-msg.emoji,.live-float-msg.super_emoji{font-size:20px;max-width:58vw;padding:6px 9px;}
  .live-gift-fx{top:12px;right:10px;bottom:auto;max-width:46vw;gap:6px;align-items:flex-end;}
  .gift-pop{min-width:0;max-width:46vw;padding:7px 9px;border-radius:16px;}
  .gift-pop span{font-size:24px;line-height:1;}
  .gift-pop b{font-size:12px;}
  .gift-pop small{font-size:10px;}
  .gift-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .giftBtn{min-height:74px;padding:8px 6px;}
  .giftBtn span{font-size:24px;}
  .giftBtn b{font-size:12px;}
  .liveTopSupporters .supporters span{font-size:12px;padding:6px 8px;}
  .live-share input{font-size:13px;}
}

/* v18 - dolny pasek zawsze widoczny podczas ogladania feedu.
   Gorny pasek nadal znika podczas realnego ogladania filmu, ale dolne menu
   Start / Dodaj / Live / Monety / Profil zostaje dostepne na telefonie i desktopie. */
body.feed-mode.is-watching .bottomnav{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  z-index:92!important;
  bottom:max(10px,calc(env(safe-area-inset-bottom) + 8px))!important;
  max-width:calc(100% - 18px);
  overflow-x:auto;
  white-space:nowrap;
  justify-content:flex-start;
  background:rgba(14,14,20,.74);
  border-color:rgba(255,255,255,.18);
  box-shadow:0 12px 36px rgba(0,0,0,.42);
}
body.feed-mode.is-watching .bottomnav::-webkit-scrollbar{display:none}
body.feed-mode.is-watching .bottomnav a{flex:0 0 auto}
body.feed-mode.is-watching .progress-wrap{bottom:max(76px,calc(env(safe-area-inset-bottom) + 70px))!important}
body.feed-mode.is-watching .sharebox{bottom:max(122px,calc(env(safe-area-inset-bottom) + 112px))!important;z-index:94!important}
body.feed-mode.is-watching .feed-loader{bottom:max(86px,calc(env(safe-area-inset-bottom) + 78px))!important}
body.feed-mode.is-watching .video-info{bottom:max(130px,calc(env(safe-area-inset-bottom) + 122px))!important}
body.feed-mode.is-watching .side-actions{bottom:max(156px,calc(env(safe-area-inset-bottom) + 148px))!important}
@media(max-width:780px){
  body.feed-mode.is-watching .bottomnav{
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%)!important;
    padding:7px!important;
    gap:7px!important;
    border-radius:999px!important;
  }
  body.feed-mode.is-watching .bottomnav a{padding:9px 12px!important;font-size:14px!important}
  body.feed-mode.is-watching .progress-wrap{left:10px!important;right:10px!important;bottom:max(78px,calc(env(safe-area-inset-bottom) + 70px))!important}
  body.feed-mode.is-watching .sharebox{left:10px!important;right:10px!important;bottom:max(124px,calc(env(safe-area-inset-bottom) + 114px))!important}
  body.feed-mode.is-watching .video-info{left:max(12px,env(safe-area-inset-left))!important;right:82px!important;bottom:max(132px,calc(env(safe-area-inset-bottom) + 124px))!important}
  body.feed-mode.is-watching .side-actions{right:max(8px,env(safe-area-inset-right))!important;bottom:max(158px,calc(env(safe-area-inset-bottom) + 150px))!important}
}
@media(max-width:380px){
  body.feed-mode.is-watching .bottomnav a{padding:8px 10px!important;font-size:13px!important}
  body.feed-mode.is-watching .video-info h2{font-size:20px!important}
}

/* v19 - live mobilny jak Short/TikTok, stabilniejszy podglad i intuicyjne zgody kamery */
.live-watch-mode .panel.live-page{margin-top:72px;margin-bottom:96px;}
.live-player-wrap{aspect-ratio:9/16;max-height:calc(100dvh - 170px);min-height:360px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.10);}
.live-player-wrap #livePlayer{position:relative;z-index:2;width:100%;height:100%;min-height:0!important;max-height:none!important;object-fit:contain;background:#000;border-radius:inherit;box-shadow:none!important;}
.live-snapshot{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000;z-index:1;opacity:0;transition:opacity .25s ease;}
.live-snapshot.show{opacity:.78;}
.live-snapshot.priority{z-index:3;opacity:1;}
.live-waiting-badge{position:absolute;z-index:4;left:50%;top:50%;transform:translate(-50%,-50%);max-width:82%;text-align:center;padding:12px 16px;border-radius:18px;background:rgba(0,0,0,.58);border:1px solid rgba(255,255,255,.16);color:#fff;font-weight:800;box-shadow:0 14px 40px rgba(0,0,0,.35);}
.live-mobile-toolbar{display:flex;gap:8px;align-items:center;overflow-x:auto;padding:8px 2px 2px;margin:6px 0 4px;}
.live-mobile-toolbar::-webkit-scrollbar{display:none;}
.live-mobile-toolbar button{flex:0 0 auto;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.09);color:#fff;border-radius:999px;padding:10px 12px;font-weight:800;box-shadow:0 8px 22px rgba(0,0,0,.20);}
.live-main-controls{margin-top:8px;}
.live-permission-card{display:flex;flex-direction:column;gap:4px;margin-bottom:10px;padding:12px 14px;border-radius:18px;background:linear-gradient(135deg,rgba(255,106,0,.16),rgba(255,0,93,.10));border:1px solid rgba(255,255,255,.12);}
.live-permission-card b{font-size:18px;}
.live-permission-card span{color:#d8d8e5;line-height:1.35;}
.live-chat.open,.liveGifts.open{display:block!important;}
@media(max-width:780px){
  body.live-watch-mode{overflow-x:hidden;background:#08080d;}
  .live-watch-mode .topbar{height:58px;padding:8px 12px;background:rgba(10,10,14,.78);}
  .live-watch-mode .brand small{display:none;}
  .live-watch-mode .panel.live-page{width:100%;margin:58px 0 94px;padding:0 10px;}
  .live-watch-mode .panel.live-page>p:first-child{display:none;}
  .live-watch-mode .live-grid{display:block;}
  .live-watch-mode .live-grid>.card{padding:10px;border-radius:0;border-left:0;border-right:0;background:rgba(255,255,255,.035);box-shadow:none;}
  .live-watch-mode .live-grid>.card:first-child h1{position:absolute;left:16px;bottom:122px;z-index:9;margin:0;font-size:24px;text-shadow:0 2px 14px #000;max-width:62%;}
  .live-watch-mode .live-grid>.card:first-child>p.muted{font-size:12px;margin:4px 0;color:#cfcfda;}
  .live-watch-mode .live-share{display:grid;grid-template-columns:1fr;gap:8px;margin:8px 0;}
  .live-watch-mode .live-share input{font-size:13px;padding:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .live-watch-mode .live-share button{width:100%;}
  .live-watch-mode .live-player-wrap{width:100%;height:min(70dvh,calc(100dvh - 210px));min-height:420px;max-height:none;border-radius:24px;margin:8px auto 0;background:#000;}
  .live-watch-mode .liveStatus{font-size:12px;padding:8px 10px;margin:8px 0 0;}
  .live-watch-mode .live-floating-chat{left:12px;right:72px;bottom:82px;z-index:7;}
  .live-watch-mode .live-float-msg{font-size:12px;max-width:100%;background:rgba(0,0,0,.46);}
  .live-watch-mode .live-gift-fx{right:10px;top:12px;bottom:auto;z-index:8;max-width:42vw;}
  .live-watch-mode .gift-pop{max-width:42vw;min-width:0;}
  .live-watch-mode .live-mobile-toolbar{position:sticky;bottom:70px;z-index:40;background:rgba(8,8,13,.78);border:1px solid rgba(255,255,255,.10);border-radius:999px;padding:7px;margin:8px auto 0;backdrop-filter:blur(14px);box-shadow:0 12px 36px rgba(0,0,0,.38);}
  .live-watch-mode .live-main-controls .ghost{flex:1 1 auto;}
  .live-watch-mode .live-chat{display:none;position:fixed;left:8px;right:8px;bottom:76px;z-index:96;max-height:58dvh;overflow:auto;background:rgba(15,15,22,.96);backdrop-filter:blur(16px);box-shadow:0 -18px 60px rgba(0,0,0,.48);}
  .live-watch-mode .liveChatList{max-height:34dvh;}
  .live-watch-mode .liveGifts{display:none;position:fixed;left:8px;right:8px;bottom:76px;z-index:97;max-height:56dvh;overflow:auto;background:rgba(15,15,22,.98);border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:12px;box-shadow:0 -18px 60px rgba(0,0,0,.52);}
  .live-watch-mode .liveGifts .gift-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .live-watch-mode .giftBtn{min-height:72px;}
  .live-watch-mode .giftBtn span{font-size:23px;}
  .live-watch-mode .giftBtn b{font-size:11px;}
  .live-watch-mode .giftBtn small{font-size:10px;}
  .live-watch-mode .live-studio{margin-top:14px;}
  .live-watch-mode #livePreview{max-height:46dvh!important;min-height:240px!important;border-radius:20px;}
  .live-watch-mode .live-admin{padding-bottom:80px;}
  .live-watch-mode .bottomnav{display:flex!important;z-index:99;}
}
@media(max-width:380px){
  .live-watch-mode .live-player-wrap{min-height:360px;height:min(66dvh,calc(100dvh - 200px));}
  .live-watch-mode .live-mobile-toolbar button{padding:8px 10px;font-size:13px;}
  .live-watch-mode .liveGifts .gift-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

/* v20 - szybkie nagrywanie, subskrypcje i live od obserwowanych */
.bottomnav{align-items:center;gap:10px;}
.bottomnav .nav-record{width:64px;height:64px;min-width:64px;padding:0!important;border-radius:999px!important;background:linear-gradient(135deg,#ff6a00,#ff005d)!important;border:3px solid rgba(255,255,255,.24)!important;box-shadow:0 12px 34px rgba(255,0,93,.35)!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;transform:translateY(-10px);font-weight:900!important;}
.bottomnav .nav-record span{font-size:24px;line-height:1;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.35)}
.bottomnav .nav-record small{font-size:10px;line-height:1;color:#fff;opacity:.9;margin-top:2px}
.bottomnav .coin-only{min-width:52px;text-align:center;font-size:22px!important;color:#ffd35c!important;font-weight:900!important;}
.record-page{max-width:840px;margin-left:auto;margin-right:auto;}
.record-hero{overflow:hidden;position:relative;}
.record-hero:before{content:"";position:absolute;inset:-30%;background:radial-gradient(circle at 50% 0%,rgba(255,0,93,.22),transparent 36%),radial-gradient(circle at 0% 70%,rgba(255,106,0,.18),transparent 30%);pointer-events:none;}
.quick-record-form{position:relative;z-index:1;}
.quick-recorder{display:grid;gap:14px;justify-items:center;padding:14px;border-radius:24px;background:rgba(0,0,0,.24);border:1px solid rgba(255,255,255,.10)}
.quick-recorder video{width:min(100%,430px);aspect-ratio:9/16;max-height:62dvh;object-fit:cover;border-radius:28px;background:#050508;border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 60px rgba(0,0,0,.35)}
.record-timer{font-size:28px;font-weight:900;letter-spacing:.04em;color:#fff;text-shadow:0 2px 16px rgba(0,0,0,.55)}
.record-actions{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap}
.record-circle{width:84px;height:84px;border-radius:999px;border:5px solid rgba(255,255,255,.34);background:linear-gradient(135deg,#ff2d2d,#ff005d);box-shadow:0 18px 50px rgba(255,0,93,.42);display:grid;place-items:center;cursor:pointer;}
.record-circle span{width:38px;height:38px;border-radius:999px;background:#fff;display:block;transition:.18s ease;}
.record-circle.recording span{border-radius:10px;width:32px;height:32px;background:#fff;}
.publish-record{font-size:18px;padding:15px 22px;border-radius:18px;}
.record-file-fallback input{margin-top:8px}
.followed-live-dock{position:fixed;left:50%;top:76px;transform:translateX(-50%);z-index:88;display:flex;align-items:center;gap:10px;max-width:min(920px,calc(100vw - 24px));padding:9px 12px;border-radius:999px;background:rgba(13,13,20,.82);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(16px);box-shadow:0 12px 38px rgba(0,0,0,.32);overflow-x:auto;white-space:nowrap;}
.followed-live-dock[hidden]{display:none!important}
.followed-live-dock b{color:#fff;font-size:13px;}
.followed-live-dock a{display:inline-flex;align-items:center;gap:6px;color:#fff;text-decoration:none;background:rgba(255,255,255,.08);border-radius:999px;padding:5px 9px;}
.followed-live-dock img{width:26px;height:26px;border-radius:50%;object-fit:cover;border:1px solid rgba(255,255,255,.25)}
.live-feed-card{height:100dvh;min-height:560px;position:relative;scroll-snap-align:start;display:flex;align-items:center;justify-content:center;background:#050508;overflow:hidden;border-bottom:1px solid rgba(255,255,255,.08)}
.live-feed-media{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 30%,rgba(255,0,93,.18),transparent 36%),#050508;}
.live-feed-media img{width:100%;height:100%;object-fit:cover;filter:brightness(.78);}
.live-feed-placeholder{width:min(78vw,360px);aspect-ratio:9/16;border-radius:32px;background:linear-gradient(135deg,rgba(255,106,0,.22),rgba(255,0,93,.18));display:grid;place-items:center;color:#fff;font-size:42px;font-weight:900;border:1px solid rgba(255,255,255,.16)}
.live-badge{position:absolute;left:18px;top:18px;background:#ff005d;color:#fff;border-radius:999px;padding:8px 12px;font-weight:900;letter-spacing:.04em;box-shadow:0 8px 24px rgba(255,0,93,.35)}
.live-feed-open{position:absolute;left:50%;bottom:max(92px,calc(env(safe-area-inset-bottom) + 88px));transform:translateX(-50%);z-index:8;background:linear-gradient(135deg,#ff6a00,#ff005d);color:#fff;text-decoration:none;border-radius:999px;padding:13px 22px;font-weight:900;box-shadow:0 12px 36px rgba(255,0,93,.34)}
.live-info{bottom:max(150px,calc(env(safe-area-inset-bottom) + 142px))!important;}
.profile-subscribe-form{margin:14px 0;display:flex;gap:10px;flex-wrap:wrap}
.profile-live-alert{display:inline-flex;align-items:center;gap:8px;padding:10px 13px;border-radius:999px;background:rgba(255,0,93,.13);border:1px solid rgba(255,0,93,.26);font-weight:800;}
.profile-live-alert a{color:#fff;text-decoration:none;}
.subscriptions-page .sub-row,.subscriptions-page .live-mini{display:flex;align-items:center;gap:12px;padding:12px;border-radius:18px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);margin:8px 0;}
.subscriptions-page img,.sub-row img,.live-mini img{width:48px;height:48px;border-radius:50%;object-fit:cover;}
.sub-row span,.live-mini span{flex:1;min-width:0}.sub-row small,.live-mini small{display:block;color:#aaa;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sub-row form{margin:0}
.author-live-chip{display:inline-flex;align-items:center;gap:4px;margin-left:6px;padding:3px 7px;border-radius:999px;background:rgba(255,0,93,.20);color:#fff;text-decoration:none;font-size:12px;font-weight:900;}
@media(max-width:780px){
  .bottomnav{gap:7px;padding:7px!important;max-width:calc(100vw - 12px)}
  .bottomnav a{font-size:14px!important;padding:10px 12px!important;}
  .bottomnav .nav-record{width:58px;height:58px;min-width:58px;transform:translateY(-9px)}
  .bottomnav .nav-record span{font-size:22px}.bottomnav .nav-record small{font-size:9px}
  .bottomnav .coin-only{font-size:20px!important;min-width:48px}
  .followed-live-dock{top:64px;max-width:calc(100vw - 16px);padding:7px 9px;}
  .followed-live-dock b{display:none}
  .quick-recorder video{max-height:58dvh;border-radius:22px;}
  .record-circle{width:76px;height:76px}.record-circle span{width:34px;height:34px}
  .live-feed-card{min-height:100dvh}.live-feed-open{bottom:max(92px,calc(env(safe-area-inset-bottom) + 86px))}.live-info{right:84px!important}
}

/* v21 - mniejszy dolny pasek w trybie ogladania i naprawione sterowanie dzwiekiem */
.bottomnav{
  align-items:center!important;
  gap:5px!important;
  padding:5px!important;
  bottom:max(5px,calc(env(safe-area-inset-bottom) + 5px))!important;
  max-width:calc(100vw - 10px)!important;
  min-height:0!important;
}
.bottomnav a{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:34px!important;
  padding:7px 9px!important;
  font-size:12.5px!important;
  line-height:1!important;
}
.bottomnav .nav-record{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  padding:0!important;
  transform:translateY(-4px)!important;
  border-width:2px!important;
  box-shadow:0 8px 20px rgba(255,0,93,.28)!important;
}
.bottomnav .nav-record span{font-size:17px!important;line-height:1!important}
.bottomnav .nav-record small{font-size:7.5px!important;margin-top:1px!important;line-height:1!important}
.bottomnav .coin-only{min-width:36px!important;font-size:18px!important;padding-left:8px!important;padding-right:8px!important}
body.feed-mode.is-watching .bottomnav{
  bottom:max(5px,calc(env(safe-area-inset-bottom) + 5px))!important;
  padding:5px!important;
  gap:5px!important;
  background:rgba(14,14,20,.66)!important;
  box-shadow:0 8px 26px rgba(0,0,0,.36)!important;
}
body.feed-mode.is-watching .bottomnav a{padding:7px 9px!important;font-size:12.5px!important;min-height:34px!important}
body.feed-mode.is-watching .bottomnav .nav-record{width:46px!important;height:46px!important;min-width:46px!important;transform:translateY(-4px)!important}
body.feed-mode.is-watching .progress-wrap{bottom:max(62px,calc(env(safe-area-inset-bottom) + 58px))!important;z-index:93!important}
body.feed-mode.is-watching .sharebox{bottom:max(108px,calc(env(safe-area-inset-bottom) + 100px))!important}
body.feed-mode.is-watching .video-info{bottom:max(112px,calc(env(safe-area-inset-bottom) + 104px))!important}
body.feed-mode.is-watching .side-actions{bottom:max(134px,calc(env(safe-area-inset-bottom) + 126px))!important}
.soundBtn{display:flex!important;opacity:.92!important;pointer-events:auto!important}
.soundBtn.active{background:rgba(20,20,28,.64)!important}
.video-card.need-sound .soundBtn,
.video-card.sound-hint .soundBtn{
  display:flex!important;
  opacity:1!important;
  pointer-events:auto!important;
  background:linear-gradient(135deg,#ff6a00,#ff005d)!important;
  animation:ancSoundPulse 1.2s ease-in-out infinite alternate!important;
}
@keyframes ancSoundPulse{from{transform:scale(1)}to{transform:scale(1.06)}}
@media(max-width:780px){
  .bottomnav{gap:4px!important;padding:4px!important;max-width:calc(100vw - 8px)!important}
  .bottomnav a{font-size:12px!important;padding:7px 8px!important;min-height:32px!important}
  .bottomnav .nav-record{width:43px!important;height:43px!important;min-width:43px!important;transform:translateY(-3px)!important}
  .bottomnav .nav-record span{font-size:16px!important}
  .bottomnav .nav-record small{font-size:7px!important}
  .bottomnav .coin-only{min-width:34px!important;font-size:17px!important}
  body.feed-mode.is-watching .progress-wrap{left:10px!important;right:10px!important;bottom:max(58px,calc(env(safe-area-inset-bottom) + 54px))!important}
  body.feed-mode.is-watching .video-info{right:74px!important;bottom:max(104px,calc(env(safe-area-inset-bottom) + 96px))!important}
  body.feed-mode.is-watching .side-actions{bottom:max(126px,calc(env(safe-area-inset-bottom) + 118px))!important}
  .action{width:50px!important;min-height:50px!important;border-radius:17px!important}
}
@media(max-width:380px){
  .bottomnav a{font-size:11px!important;padding:6px 7px!important}
  .bottomnav .nav-record{width:40px!important;height:40px!important;min-width:40px!important}
  body.feed-mode.is-watching .progress-wrap{bottom:max(54px,calc(env(safe-area-inset-bottom) + 50px))!important}
}

/* v21 final - pasek przewijania zawsze nad dolnym menu */
body.feed-mode.is-watching .progress-wrap{bottom:max(72px,calc(env(safe-area-inset-bottom) + 68px))!important}
body.feed-mode.is-watching .sharebox{bottom:max(116px,calc(env(safe-area-inset-bottom) + 108px))!important}
@media(max-width:780px){
  body.feed-mode.is-watching .progress-wrap{bottom:max(70px,calc(env(safe-area-inset-bottom) + 66px))!important}
  body.feed-mode.is-watching .sharebox{bottom:max(112px,calc(env(safe-area-inset-bottom) + 104px))!important}
}

/* v22 - kamera/live mobile: bardziej intuicyjne zgody, live jak Short i spokojniejsze emotki */
.camera-help{margin:10px 0;padding:11px 13px;border-radius:16px;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.12);color:#f5f5ff;line-height:1.35}
.camera-help.ok{background:rgba(30,210,120,.13);border-color:rgba(30,210,120,.28)}
.camera-help.err{background:rgba(255,70,70,.13);border-color:rgba(255,70,70,.28)}
.record-gallery-btn{width:100%;margin-top:-4px}
.live-tap-to-play{position:absolute;z-index:9;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:10px;max-width:84%;padding:12px 16px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(0,0,0,.56);color:#fff;font-weight:900;box-shadow:0 16px 44px rgba(0,0,0,.35);backdrop-filter:blur(14px);transition:opacity .25s ease, transform .25s ease}
.live-tap-to-play b{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#ff6a00,#ff005d)}
.live-tap-to-play.soft{opacity:.35;transform:translate(-50%,-50%) scale(.92)}
.live-player-wrap{position:relative;overflow:hidden;background:#000!important;touch-action:manipulation}
.live-player-wrap #livePlayer{object-fit:contain!important;background:#000!important}
.live-snapshot.priority{filter:none!important}
.live-watch-mode .live-main-controls{display:flex;gap:8px;flex-wrap:wrap}
.live-watch-mode .live-main-controls button{min-height:38px}
.live-float-msg.compact{opacity:.74;font-size:11px!important;transform:translateY(4px) scale(.94)}
.gift-pop.compact{opacity:.7;transform:scale(.82)}
.chat-row em{font-style:normal;color:#aeb0c5;font-size:11px;margin-left:6px}
@media(max-width:780px){
  .live-watch-mode .topbar{position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:70!important;background:linear-gradient(180deg,rgba(8,8,13,.88),rgba(8,8,13,.54))!important;backdrop-filter:blur(12px)!important}
  .live-watch-mode .panel.live-page{margin-top:58px!important;margin-bottom:82px!important;padding:0!important}
  .live-watch-mode .live-grid>.card:first-child{padding:0!important;border:0!important;background:#000!important}
  .live-watch-mode .live-grid>.card:first-child h1{left:14px!important;bottom:122px!important;font-size:18px!important;max-width:64%!important;z-index:12!important}
  .live-watch-mode .live-grid>.card:first-child>p.muted{display:none!important}
  .live-watch-mode .live-share{display:none!important}
  .live-watch-mode .live-player-wrap{height:calc(100dvh - 138px)!important;min-height:0!important;margin:0!important;border-radius:0!important;border:0!important;width:100%!important;max-height:none!important}
  .live-watch-mode .liveStatus{display:none!important}
  .live-watch-mode .live-main-controls{position:absolute;right:10px;bottom:142px;z-index:18;display:flex;flex-direction:column;width:62px;margin:0!important}
  .live-watch-mode .live-main-controls button{width:62px;min-height:44px;padding:7px 5px!important;border-radius:17px!important;font-size:10px!important;line-height:1.05!important;background:rgba(20,20,28,.70)!important;backdrop-filter:blur(12px)}
  .live-watch-mode .live-main-controls #liveUnmute{background:linear-gradient(135deg,rgba(255,106,0,.86),rgba(255,0,93,.82))!important}
  .live-watch-mode .live-mobile-toolbar{position:fixed!important;left:50%;bottom:max(48px,calc(env(safe-area-inset-bottom) + 44px))!important;transform:translateX(-50%);z-index:98!important;max-width:calc(100vw - 18px);margin:0!important;padding:5px!important;gap:5px!important;background:rgba(10,10,16,.78)!important;border-radius:999px!important;backdrop-filter:blur(16px)!important}
  .live-watch-mode .live-mobile-toolbar button{padding:8px 10px!important;font-size:12px!important;min-height:34px!important}
  .live-watch-mode .bottomnav{z-index:99!important}
  .live-watch-mode .live-floating-chat{left:10px!important;right:86px!important;bottom:max(96px,calc(env(safe-area-inset-bottom) + 92px))!important;max-height:28dvh!important;overflow:hidden!important;pointer-events:none!important}
  .live-watch-mode .live-float-msg{font-size:11px!important;padding:6px 9px!important;border-radius:14px!important;max-width:100%!important;background:rgba(0,0,0,.42)!important}
  .live-watch-mode .live-gift-fx{right:8px!important;top:78px!important;bottom:auto!important;max-width:34vw!important;pointer-events:none!important}
  .live-watch-mode .gift-pop{padding:7px!important;border-radius:16px!important;max-width:34vw!important;min-width:0!important}
  .live-watch-mode .gift-pop span{font-size:28px!important}.live-watch-mode .gift-pop b{font-size:11px!important}.live-watch-mode .gift-pop small{font-size:9px!important}
  .live-watch-mode .live-chat{bottom:max(88px,calc(env(safe-area-inset-bottom) + 82px))!important;left:8px!important;right:8px!important;border-radius:22px 22px 10px 10px!important;max-height:60dvh!important;padding:12px!important;z-index:120!important}
  .live-watch-mode .liveGifts{bottom:max(88px,calc(env(safe-area-inset-bottom) + 82px))!important;left:8px!important;right:8px!important;border-radius:22px 22px 10px 10px!important;z-index:121!important}
  .live-watch-mode .liveGifts .gift-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
  .live-watch-mode .giftBtn{min-height:62px!important;padding:7px!important}
  .live-watch-mode .giftBtn span{font-size:21px!important}.live-watch-mode .giftBtn b{font-size:10px!important}.live-watch-mode .giftBtn small{font-size:9px!important}
  .live-tap-to-play{font-size:13px;padding:10px 12px;max-width:78%}.live-tap-to-play b{width:30px;height:30px}
  .live-watch-mode .live-studio{margin:12px!important;padding:12px!important;border-radius:22px!important;background:rgba(255,255,255,.045)!important}
  .live-watch-mode #livePreview{width:100%!important;max-height:48dvh!important;object-fit:cover!important;border-radius:22px!important;background:#000!important}
  .live-permission-card{font-size:13px!important;padding:10px 12px!important;border-radius:16px!important}
}
@media(max-width:380px){
  .live-watch-mode .live-mobile-toolbar button{padding:7px 8px!important;font-size:11px!important}
  .live-watch-mode .live-main-controls{width:56px;right:7px}.live-watch-mode .live-main-controls button{width:56px;font-size:9.5px!important}
  .live-watch-mode .liveGifts .gift-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* v24 - wyszukiwarka użytkowników, subskrypcja z filmu, panel reklam */
.user-search-overlay{position:fixed;inset:0;z-index:9998;background:rgba(0,0,0,.38);backdrop-filter:blur(8px);display:none;align-items:flex-start;justify-content:center;padding:calc(env(safe-area-inset-top,0px) + 72px) 14px 14px}
.user-search-overlay.open{display:flex}
.user-search-panel{width:min(560px,100%);background:rgba(18,18,25,.86);border:1px solid rgba(255,255,255,.14);box-shadow:0 20px 80px rgba(0,0,0,.45);border-radius:26px;padding:16px;position:relative;color:#fff}
.user-search-close{position:absolute;right:12px;top:10px;border:0;background:rgba(255,255,255,.1);color:#fff;border-radius:999px;width:36px;height:36px;font-size:24px;line-height:1;cursor:pointer}
.user-search-head{display:flex;flex-direction:column;gap:2px;margin:4px 46px 12px 2px}.user-search-head b{font-size:20px}.user-search-head small{color:rgba(255,255,255,.66)}
.user-search-input{width:100%;border-radius:18px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff;padding:14px 16px;font-size:17px;outline:none}.user-search-input:focus{border-color:rgba(255,180,80,.8);box-shadow:0 0 0 3px rgba(255,140,0,.12)}
.user-search-results{margin-top:12px;display:flex;flex-direction:column;gap:8px;max-height:min(55vh,520px);overflow:auto}.user-search-row{display:flex;align-items:center;gap:12px;text-decoration:none;color:#fff;padding:10px;border-radius:18px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}.user-search-row:hover{background:rgba(255,255,255,.12)}.user-search-row img{width:46px;height:46px;border-radius:50%;object-fit:cover}.user-search-row span{display:flex;flex-direction:column}.user-search-row small{color:rgba(255,255,255,.66)}.user-search-row em{margin-left:auto;background:#f01852;color:#fff;border-radius:999px;padding:4px 8px;font-size:12px;font-style:normal;font-weight:900}
.videoSubBtn.active{background:linear-gradient(135deg,#ffda55,#ff7b00);color:#141414}.videoSubBtn.active small,.videoSubBtn.active b{color:#141414}.author-live-tip{display:inline-flex;margin-top:6px;padding:7px 10px;border-radius:999px;background:rgba(255,0,64,.2);border:1px solid rgba(255,80,120,.35);color:#fff;text-decoration:none;font-weight:800;font-size:13px;backdrop-filter:blur(10px);animation:fadeLiveTip 6.5s ease forwards}@keyframes fadeLiveTip{0%,70%{opacity:1;transform:translateY(0)}100%{opacity:.18;transform:translateY(8px)}}
.ad-source-box{margin:12px 0;padding:14px;border-radius:22px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}.ad-source-box h3{margin-top:0}.ad-source-box small{display:block;margin-top:6px;color:rgba(255,255,255,.62)}
@media(max-width:720px){.user-search-overlay{padding-top:calc(env(safe-area-inset-top,0px) + 56px)}.user-search-panel{border-radius:22px;padding:14px}.video-card .side-actions .action.userSearchBtn,.video-card .side-actions .action.videoSubBtn{min-height:54px}.author-live-tip{font-size:12px;padding:6px 9px}}

/* v24 - wyszukiwarka, trendy/tagi i czytelniejsze reakcje */
.tags .tagBtn{font-size:12px;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.13);color:#fff;cursor:pointer;line-height:1.1}
.tags .tagBtn:hover{background:linear-gradient(135deg,rgba(255,106,0,.42),rgba(255,0,93,.28));transform:translateY(-1px)}
.search-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:6px 0 10px}.search-tabs button{border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.07);color:#fff;border-radius:999px;padding:8px 10px;font-weight:700}.search-tabs button.active{background:linear-gradient(135deg,var(--accent),#ff005d);border-color:transparent}.search-panel-wide{width:min(680px,100%)}.user-search-results h3{margin:10px 4px 2px;font-size:14px;color:#ffd36a;text-transform:uppercase;letter-spacing:.06em}.user-search-row.video-result img{border-radius:12px;width:52px;height:70px}.user-search-row.tag-result .tag-big{width:46px;height:46px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--accent),#ff005d);font-size:28px;font-weight:900;flex:0 0 auto}.trend-head{position:fixed;z-index:35;left:50%;top:76px;transform:translateX(-50%);width:min(720px,calc(100% - 24px));display:flex;align-items:center;gap:12px;padding:12px;border-radius:22px;background:rgba(12,12,18,.72);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(12px);box-shadow:0 16px 52px rgba(0,0,0,.34)}.trend-head h1{margin:0;font-size:24px}.trend-head p{margin:2px 0 0;color:#ddd;font-size:13px}.trend-shell .feed{padding-top:0}.mini-label{display:flex!important;flex-direction:column;gap:5px;font-size:12px;color:#cfd0dc;margin-top:7px}.mini-label input{font-size:12px;padding:8px!important}.videoSubBtn b{filter:drop-shadow(0 2px 8px rgba(255,0,93,.4))}.likeBtn.active{background:linear-gradient(135deg,#ffb13b,#ff005d)!important}.dislikeBtn.active{background:linear-gradient(135deg,#4153ff,#0b1160)!important}
@media(max-width:780px){.trend-head{top:62px;align-items:flex-start}.trend-head .primary,.trend-head .linkbtn{padding:8px 10px;font-size:12px}.trend-head h1{font-size:20px}.trend-head p{display:none}.search-tabs button{padding:7px 9px;font-size:12px}.user-search-row.video-result img{width:44px;height:58px}.user-search-results{max-height:62vh}}

/* v25 - tytul z nazwy pliku, skracanie nazwy i panel szczegolow jak w aplikacjach short-video */
.video-title-btn{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:min(100%,720px);
  margin:0 0 8px;
  padding:0;
  border:0;
  background:transparent;
  color:#fff;
  font-weight:900;
  text-align:left;
  font-size:clamp(20px,4vw,34px);
  line-height:1.06;
  text-shadow:0 2px 14px #000;
  cursor:pointer;
}
.video-title-btn:after{content:'  ⌄';font-size:.7em;opacity:.75;font-weight:700}
.video-title-btn:hover{color:#fff3df}
.video-details-sheet{position:fixed;inset:0;z-index:10000;display:none;align-items:flex-end;justify-content:center;color:#fff}
.video-details-sheet.open{display:flex}
.video-details-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.36);backdrop-filter:blur(4px)}
.video-details-panel{position:relative;width:min(720px,100%);max-height:min(62dvh,620px);overflow:auto;border-radius:28px 28px 0 0;background:linear-gradient(180deg,rgba(22,22,30,.98),rgba(12,12,18,.98));border:1px solid rgba(255,255,255,.14);box-shadow:0 -28px 90px rgba(0,0,0,.55);padding:14px 18px calc(20px + env(safe-area-inset-bottom,0px))}
.sheet-handle{width:48px;height:5px;border-radius:999px;background:rgba(255,255,255,.26);margin:0 auto 12px}
.video-details-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.video-details-head h2{margin:0;font-size:clamp(22px,4.2vw,34px);line-height:1.12;word-break:break-word}.video-details-head .ghost{white-space:nowrap;padding:8px 11px}.video-full-desc{line-height:1.5;color:#f4f4f8;white-space:pre-wrap}.video-full-tags{color:#ffd36a;font-weight:800;word-break:break-word}.video-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0}.video-stats-grid span{display:flex;flex-direction:column;gap:3px;padding:10px;border-radius:16px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.09);font-size:12px;color:#c9cad4}.video-stats-grid b{font-size:20px;color:#fff}.videoTitleEditForm{margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.10)}
.profile-video-card{display:flex;flex-direction:column;gap:8px}.profile-video-card .profile-video span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.profile-video-edit{display:flex;gap:6px}.profile-video-edit input{min-width:0;flex:1;background:#101018;color:#fff;border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:9px}.profile-video-edit button{padding:8px 10px;border-radius:12px;font-size:12px;white-space:nowrap}
@media(max-width:780px){
  .video-title-btn{font-size:21px;max-width:100%;-webkit-line-clamp:2}.video-info>p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.video-details-panel{max-height:58dvh;border-radius:24px 24px 0 0;padding:12px 14px calc(18px + env(safe-area-inset-bottom,0px))}.video-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-video-edit{flex-direction:column}.profile-video-edit button{width:100%}
}

/* v26 - kompaktowy prawy pasek jak w TikToku, bez zbednych podpisow i stabilna responsywnosc */
.flash{max-width:min(560px,calc(100vw - 28px));white-space:normal;line-height:1.35;overflow-wrap:anywhere}
.flash.err{max-height:32dvh;overflow:auto;border-radius:20px;text-align:left}

.compact-actions .profile-bubble small,
.compact-actions .action.no-label small{display:none!important}
.compact-actions .action.counter-action small,
.compact-actions .videoSubBtn small.subCounter{display:block!important;font-weight:900;line-height:1;font-size:10.5px;color:#fff;text-shadow:0 1px 8px #000}
.compact-actions .profile-bubble{width:50px!important;min-height:50px!important;height:50px!important;padding:4px!important;border-radius:18px!important;display:flex!important;align-items:center!important;justify-content:center!important;background:rgba(20,20,28,.58)!important;border:1px solid rgba(255,255,255,.14)!important;box-shadow:0 8px 22px rgba(0,0,0,.25)!important}
.compact-actions .profile-bubble img{width:38px!important;height:38px!important;border-radius:50%!important;object-fit:cover!important}
.compact-actions .action{width:50px!important;min-height:50px!important;height:50px!important;border-radius:18px!important;padding:4px!important;gap:1px!important;background:rgba(20,20,28,.56)!important;box-shadow:0 8px 22px rgba(0,0,0,.25)!important}
.compact-actions .action b{font-size:20px!important;line-height:1!important;display:block!important}
.compact-actions .videoSubBtn b{font-size:23px!important;color:#fff!important;filter:drop-shadow(0 2px 8px rgba(255,0,93,.42))}
.compact-actions .videoSubBtn.active{background:linear-gradient(135deg,#ff3b7f,#ff005d)!important;color:#fff!important}
.compact-actions .likeBtn.active{background:linear-gradient(135deg,#ffb13b,#ff005d)!important}
.compact-actions .dislikeBtn.active{background:linear-gradient(135deg,#4153ff,#0b1160)!important}

body.feed-mode.is-watching .side-actions.compact-actions{right:max(6px,env(safe-area-inset-right))!important;bottom:max(118px,calc(env(safe-area-inset-bottom) + 110px))!important;gap:6px!important;z-index:8!important}
body.feed-mode.is-watching .video-info{right:64px!important;bottom:max(102px,calc(env(safe-area-inset-bottom) + 94px))!important}
body.feed-mode.is-watching .progress-wrap{bottom:max(58px,calc(env(safe-area-inset-bottom) + 54px))!important}
body.feed-mode.is-watching .sharebox{bottom:max(100px,calc(env(safe-area-inset-bottom) + 92px))!important}

@media(max-width:780px){
  body.feed-mode.is-watching .side-actions.compact-actions{right:max(5px,env(safe-area-inset-right))!important;bottom:max(112px,calc(env(safe-area-inset-bottom) + 104px))!important;gap:5px!important}
  .compact-actions .profile-bubble{width:44px!important;height:44px!important;min-height:44px!important;border-radius:16px!important;padding:3px!important}
  .compact-actions .profile-bubble img{width:34px!important;height:34px!important}
  .compact-actions .action{width:44px!important;height:44px!important;min-height:44px!important;border-radius:16px!important;padding:3px!important}
  .compact-actions .action b{font-size:18px!important}
  .compact-actions .videoSubBtn b{font-size:21px!important}
  .compact-actions .action.counter-action small,.compact-actions .videoSubBtn small.subCounter{font-size:9.5px!important;margin-top:1px!important}
  body.feed-mode.is-watching .video-info{right:58px!important;bottom:max(98px,calc(env(safe-area-inset-bottom) + 90px))!important}
  body.feed-mode.is-watching .video-title-btn{font-size:18px!important;line-height:1.08!important;-webkit-line-clamp:2!important}
  body.feed-mode.is-watching .video-info>p{font-size:13px!important;margin-bottom:5px!important;-webkit-line-clamp:1!important}
  body.feed-mode.is-watching .tags{gap:4px!important;max-height:28px!important;overflow:hidden!important}
  body.feed-mode.is-watching .tags .tagBtn{font-size:10px!important;padding:4px 7px!important}
}
@media(max-width:390px){
  body.feed-mode.is-watching .side-actions.compact-actions{gap:4px!important;bottom:max(104px,calc(env(safe-area-inset-bottom) + 98px))!important}
  .compact-actions .profile-bubble{width:39px!important;height:39px!important;min-height:39px!important;border-radius:14px!important}
  .compact-actions .profile-bubble img{width:30px!important;height:30px!important}
  .compact-actions .action{width:39px!important;height:39px!important;min-height:39px!important;border-radius:14px!important}
  .compact-actions .action b{font-size:16px!important}
  .compact-actions .videoSubBtn b{font-size:19px!important}
  .compact-actions .action.counter-action small,.compact-actions .videoSubBtn small.subCounter{font-size:8.5px!important}
  body.feed-mode.is-watching .video-info{right:51px!important;bottom:max(90px,calc(env(safe-area-inset-bottom) + 84px))!important}
  body.feed-mode.is-watching .video-title-btn{font-size:17px!important}
  body.feed-mode.is-watching .progress-wrap{bottom:max(54px,calc(env(safe-area-inset-bottom) + 50px))!important}
}
@media(max-height:680px) and (max-width:780px){
  body.feed-mode.is-watching .side-actions.compact-actions{bottom:max(96px,calc(env(safe-area-inset-bottom) + 90px))!important;gap:3px!important}
  .compact-actions .profile-bubble,.compact-actions .action{width:37px!important;height:37px!important;min-height:37px!important;border-radius:13px!important}
  .compact-actions .profile-bubble img{width:28px!important;height:28px!important}
  .compact-actions .action b{font-size:15px!important}.compact-actions .videoSubBtn b{font-size:18px!important}
  .compact-actions .action.counter-action small,.compact-actions .videoSubBtn small.subCounter{font-size:8px!important}
}

@media(max-width:720px){
  .profile-page{width:calc(100% - 14px)!important;margin:72px auto 86px!important;overflow:hidden!important}
  .profile-hero{display:grid!important;grid-template-columns:1fr!important;justify-items:center!important;text-align:center!important;gap:12px!important;padding:16px 12px!important;overflow:hidden!important}
  .profile-hero>div{width:100%!important;min-width:0!important;overflow:hidden!important}
  .profile-hero h1{font-size:clamp(24px,8vw,36px)!important;line-height:1.05!important;overflow-wrap:anywhere!important;margin:0 0 6px!important}
  .profile-avatar{width:88px!important;height:88px!important;border-width:3px!important}
  .profile-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important}
  .profile-stats span{border-radius:16px!important;padding:8px 7px!important;font-size:12px!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .profile-stats b{display:block!important;font-size:18px!important;line-height:1.1!important}
  .profile-subscribe-form{justify-content:center!important;width:100%!important}.profile-subscribe-form button{width:100%!important;max-width:340px!important}
  .share-profile-label{max-width:100%!important;width:100%!important}.share-profile-label input{font-size:12px!important;min-width:0!important}
  .section-head{align-items:flex-start!important}.section-head h2{font-size:22px!important;margin:0!important}
  .profile-video-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .profile-video{padding:7px!important;border-radius:16px!important;min-height:0!important}.profile-video video{border-radius:12px!important}.profile-video span{font-size:12px!important;line-height:1.2!important}.profile-video small{font-size:11px!important}
}

/* v27 - poprawka stalego napisu ladowania i bezpieczne odsuniecie paska przewijania od dolnego menu */
.feed-loader,
body.feed-mode .feed-loader,
body.feed-mode.is-watching .feed-loader,
body.feed-mode:not(.is-watching) .feed-loader{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}

body.feed-mode.is-watching .progress-wrap{
  left:12px!important;
  right:12px!important;
  bottom:max(90px,calc(env(safe-area-inset-bottom,0px) + 84px))!important;
  z-index:93!important;
  padding:0 2px!important;
}
body.feed-mode.is-watching .seek{height:4px!important}
body.feed-mode.is-watching .progress-wrap time{
  font-size:11px!important;
  min-width:36px!important;
  padding:2px 0!important;
  text-shadow:0 2px 8px #000!important;
}
body.feed-mode.is-watching .bottomnav{
  bottom:max(10px,calc(env(safe-area-inset-bottom,0px) + 6px))!important;
}
body.feed-mode.is-watching .video-info{
  bottom:max(132px,calc(env(safe-area-inset-bottom,0px) + 126px))!important;
}
body.feed-mode.is-watching .side-actions.compact-actions,
body.feed-mode.is-watching .side-actions{
  bottom:max(144px,calc(env(safe-area-inset-bottom,0px) + 136px))!important;
}
body.feed-mode.is-watching .sharebox{
  bottom:max(128px,calc(env(safe-area-inset-bottom,0px) + 120px))!important;
}

@media(max-width:780px){
  body.feed-mode.is-watching .progress-wrap{
    left:10px!important;
    right:10px!important;
    bottom:max(88px,calc(env(safe-area-inset-bottom,0px) + 82px))!important;
  }
  body.feed-mode.is-watching .video-info{
    right:56px!important;
    bottom:max(128px,calc(env(safe-area-inset-bottom,0px) + 122px))!important;
  }
  body.feed-mode.is-watching .side-actions.compact-actions,
  body.feed-mode.is-watching .side-actions{
    bottom:max(142px,calc(env(safe-area-inset-bottom,0px) + 134px))!important;
  }
}
@media(max-width:390px){
  body.feed-mode.is-watching .progress-wrap{
    bottom:max(84px,calc(env(safe-area-inset-bottom,0px) + 78px))!important;
  }
  body.feed-mode.is-watching .video-info{
    right:50px!important;
    bottom:max(120px,calc(env(safe-area-inset-bottom,0px) + 114px))!important;
  }
  body.feed-mode.is-watching .side-actions.compact-actions,
  body.feed-mode.is-watching .side-actions{
    bottom:max(132px,calc(env(safe-area-inset-bottom,0px) + 126px))!important;
  }
}
@media(max-height:680px) and (max-width:780px){
  body.feed-mode.is-watching .progress-wrap{
    bottom:max(78px,calc(env(safe-area-inset-bottom,0px) + 72px))!important;
  }
  body.feed-mode.is-watching .video-info{
    bottom:max(112px,calc(env(safe-area-inset-bottom,0px) + 106px))!important;
  }
  body.feed-mode.is-watching .side-actions.compact-actions,
  body.feed-mode.is-watching .side-actions{
    bottom:max(124px,calc(env(safe-area-inset-bottom,0px) + 118px))!important;
  }
}
