/* Trippost Reels — TikTok üslubu */
:root{--tpr-accent:#ff5757;--tpr-bg:#0b0b0d;--tpr-font:GlacialIndifference,"Trippost",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
html.tpr-lock,html.tpr-lock body{overflow:hidden!important;height:100%}

.tpr-app,.tpr-app *,.tpr-sheet,.tpr-sheet *,.tpr-toast{box-sizing:border-box;font-family:var(--tpr-font)}
.tpr-app button,.tpr-sheet button{cursor:pointer;border:0;background:none;color:inherit;padding:0;margin:0;line-height:1}
.tpr-app a{text-decoration:none;color:inherit}
.tpr-app svg{width:100%;height:100%;fill:currentColor;display:block}

/* ---- qabıq ---- */
.tpr-app{position:relative;background:var(--tpr-bg);color:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}
.tpr-fullscreen{position:fixed;inset:0;z-index:999990;height:100vh;height:100dvh}
.tpr-inline{width:100%;border-radius:18px}
.tpr-stage{position:relative;width:100%;height:100%;background:#000;overflow:hidden}

@media (min-width:700px){
  .tpr-app{background:radial-gradient(1200px 600px at 50% -10%,#2a1416 0%,#0b0b0d 60%)}
  .tpr-stage{width:min(100%,calc(100% * 9 / 16 + 40px));max-width:460px;border-radius:20px;box-shadow:0 20px 70px rgba(0,0,0,.6)}
  .tpr-fullscreen .tpr-stage{height:min(100%,920px)}
}

/* ---- yuxarı panel ---- */
.tpr-topbar{position:absolute;z-index:6;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:calc(env(safe-area-inset-top,0px) + 12px) 14px 30px;background:linear-gradient(#000a,#0000);pointer-events:none}
.tpr-topbar>*{pointer-events:auto}
.tpr-feed-filters{position:absolute;z-index:6;top:calc(env(safe-area-inset-top,0px) + 58px);left:12px;right:12px;display:flex;gap:7px;align-items:center;overflow-x:auto;padding:2px 0 6px;scrollbar-width:none;pointer-events:auto}
.tpr-feed-filters::-webkit-scrollbar{display:none}
.tpr-feed-filters button{flex:0 0 auto;min-height:30px;padding:6px 12px;border:1px solid #ffffff35;border-radius:999px;background:#0005;color:#fff;font-size:12px;white-space:nowrap;backdrop-filter:blur(8px);cursor:pointer}
.tpr-feed-filters button.is-on{border-color:var(--tpr-accent);background:var(--tpr-accent);color:#fff;font-weight:700}
.tpr-filter-types{display:flex;gap:7px;flex:0 0 auto}
.tpr-brand{font-weight:700;font-size:19px;letter-spacing:.2px;margin:0 auto;padding-left:0}
.tpr-brand.chip{background:#ffffff26;backdrop-filter:blur(8px);padding:7px 14px;border-radius:99px;font-size:14px;cursor:pointer}
.tpr-iconbtn{width:38px;height:38px;border-radius:50%;background:#ffffff1f;backdrop-filter:blur(8px);padding:9px!important;display:flex;align-items:center;justify-content:center;color:#fff}
.tpr-iconbtn:hover{background:#ffffff38}
.tpr-inline .tpr-brand{margin:0 auto 0 0}

/* ---- lent ---- */
.tpr-feed{position:absolute;inset:0;overflow-y:scroll;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;outline:0}
.tpr-feed::-webkit-scrollbar{display:none}
.tpr-reel{position:relative;height:100%;width:100%;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden;background:#000}
.tpr-media{position:absolute;inset:0;background:#000}
.tpr-media video,.tpr-slides img{width:100%;height:100%;object-fit:cover;display:block;background:#111}
.tpr-slides{display:flex;height:100%;overflow-x:scroll;scroll-snap-type:x mandatory;scrollbar-width:none}
.tpr-slides::-webkit-scrollbar{display:none}
.tpr-slides img{flex:0 0 100%;scroll-snap-align:center}
.tpr-shade{position:absolute;left:0;right:0;bottom:0;height:46%;background:linear-gradient(#0000,#000c);pointer-events:none}
.tpr-dots{position:absolute;z-index:3;left:0;right:0;bottom:calc(env(safe-area-inset-bottom,0px) + 68px);display:flex;justify-content:center;align-items:center;gap:6px;pointer-events:none}
.tpr-dots i{display:block;width:6px;height:6px;border-radius:50%;background:#ffffff80;transition:transform .2s ease,background-color .2s ease}
.tpr-dots i.on{background:var(--tpr-accent);transform:scale(1.35)}

.tpr-pp{position:absolute;left:50%;top:50%;width:76px;height:76px;margin:-38px;padding:20px;border-radius:50%;background:#0006;backdrop-filter:blur(6px);opacity:0;transform:scale(.7);transition:.2s;pointer-events:none;color:#fff}
.tpr-reel.paused .tpr-pp{opacity:1;transform:scale(1)}

.tpr-heart{position:absolute;width:96px;height:96px;margin:-48px;pointer-events:none;opacity:0;background:var(--tpr-accent);
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 2.7 5 6 5c2 0 3.3 1.1 4 2.2h4C14.7 6.1 16 5 18 5c3.3 0 5.1 3.4 3.6 6.8C19.5 16.4 12 21 12 21z'/></svg>") center/contain no-repeat;
  mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21s-7.5-4.6-9.6-9.2C.9 8.4 2.7 5 6 5c2 0 3.3 1.1 4 2.2h4C14.7 6.1 16 5 18 5c3.3 0 5.1 3.4 3.6 6.8C19.5 16.4 12 21 12 21z'/></svg>") center/contain no-repeat}
.tpr-heart.go{animation:tprHeart .8s ease-out}
@keyframes tprHeart{0%{opacity:0;transform:scale(.4) rotate(-8deg)}20%{opacity:1;transform:scale(1.15) rotate(4deg)}60%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.4) translateY(-30px)}}

/* ---- sağ düymələr ---- */
.tpr-rail{position:absolute;z-index:4;right:10px;bottom:calc(env(safe-area-inset-bottom,0px) + 22px);display:flex;flex-direction:column;align-items:center;gap:16px}
.tpr-avatar{width:48px;height:48px;border-radius:50%;border:2px solid #fff;overflow:hidden;background:#333;margin-bottom:4px;display:block}
.tpr-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.tpr-avatar-initial{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:21px;font-weight:800;text-transform:uppercase;background:linear-gradient(135deg,var(--tpr-accent),#7c3aed)}
.tpr-rbtn{display:flex;flex-direction:column;align-items:center;gap:5px;color:#fff;filter:drop-shadow(0 1px 3px #0008)}
.tpr-rbtn svg{width:34px;height:34px}
.tpr-rbtn .n{font-size:12px;font-weight:600}
.tpr-like.on svg{fill:var(--tpr-accent);animation:tprPop .35s}
.tpr-soundbtn svg{width:28px;height:28px}
@keyframes tprPop{50%{transform:scale(1.3)}}

/* ---- aşağı məlumat ---- */
.tpr-info{position:absolute;z-index:3;left:14px;right:78px;bottom:calc(env(safe-area-inset-bottom,0px) + 22px);text-shadow:0 1px 4px #0009}
.tpr-by{font-weight:700;font-size:16px}
.tpr-time{opacity:.7;font-size:13px}
.tpr-cap{margin:8px 0 0;font-size:14.5px;line-height:1.4;color:#fff;text-shadow:0 1px 4px #0009;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer;word-break:break-word}
.tpr-cap.has-more:not(.open)::after{content:'Davamını oxu';color:var(--tpr-accent);font-size:12px;font-weight:700;margin-left:5px}
.tpr-cap.has-more.open::after{content:'Gizlət';display:block;color:var(--tpr-accent);font-size:12px;font-weight:700;margin-top:4px}
.tpr-cap.open{-webkit-line-clamp:unset;max-height:34vh;overflow:auto;display:block}
.tpr-tag{font-weight:700;color:#fff}
.tpr-tag:hover{text-decoration:underline}
.tpr-cta{margin-top:12px;display:inline-flex;align-items:center;gap:6px;max-width:100%;background:var(--tpr-accent);color:#fff!important;font-weight:700;font-size:14px;padding:9px 16px 9px 12px;border-radius:99px;text-shadow:none;box-shadow:0 6px 18px #0005;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tpr-cta svg{width:18px;height:18px;flex:none}

/* ---- yüklənmə / boş ---- */
.tpr-loader{position:absolute;left:0;right:0;bottom:6px;display:none;justify-content:center;z-index:7;pointer-events:none}
.tpr-loader.on{display:flex}
.tpr-loader span{width:26px;height:26px;border-radius:50%;border:3px solid #ffffff40;border-top-color:var(--tpr-accent);animation:tprSpin .8s linear infinite}
.tpr-feed:empty~.tpr-loader.on{top:50%;bottom:auto}
@keyframes tprSpin{to{transform:rotate(360deg)}}
.tpr-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#ffffffa6;font-size:16px;text-align:center;padding:30px}
.tpr-empty[hidden]{display:none}

/* ---- masaüstü oxlar ---- */
.tpr-nav{display:none}
@media (min-width:700px){
  .tpr-nav{display:flex;flex-direction:column;gap:12px;position:absolute;right:max(24px,calc(50% - 300px));top:50%;transform:translateY(-50%)}
  .tpr-nav button{width:48px;height:48px;border-radius:50%;background:#ffffff1f;color:#fff;padding:12px;transition:.15s}
  .tpr-nav button:hover{background:#ffffff40}
  .tpr-inline .tpr-nav{right:12px}
}

/* ---- aşağıdan açılan panellər ---- */
.tpr-sheet{position:fixed;inset:0;z-index:1000000;display:flex;align-items:flex-end;justify-content:center}
.tpr-sheet[hidden]{display:none}
.tpr-sheet-bg{position:absolute;inset:0;background:#0009;backdrop-filter:blur(3px)}
.tpr-sheet-box{position:relative;width:100%;max-width:520px;max-height:86vh;max-height:86dvh;background:#fff;color:#16161a;border-radius:22px 22px 0 0;display:flex;flex-direction:column;animation:tprUp .28s ease-out;overflow:hidden}
@media (min-width:700px){.tpr-sheet{align-items:center}.tpr-sheet-box{border-radius:22px}}
@keyframes tprUp{from{transform:translateY(40px);opacity:0}}
.tpr-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #eee;font-size:17px}
.tpr-x{font-size:30px!important;color:#777;width:34px;height:34px;line-height:30px!important}
.tpr-c-list{flex:1;overflow:auto;padding:8px 18px;min-height:160px}
.tpr-c-empty{text-align:center;color:#888;padding:34px 10px;font-size:14px}
.tpr-c-row{display:flex;gap:10px;padding:10px 0}
.tpr-c-row[data-parent]{margin-left:44px;padding-top:7px;border-left:2px solid #ececf0;padding-left:10px}
.tpr-c-av{width:36px;height:36px;border-radius:50%;background:#ddd;overflow:hidden;flex:none}
.tpr-c-av img{width:100%;height:100%;object-fit:cover}
.tpr-c-name{font-weight:700;font-size:13.5px}
.tpr-c-name small{color:#999;font-weight:400}
.tpr-c-text{font-size:14.5px;line-height:1.4;margin-top:2px;word-break:break-word}
.tpr-c-actions{display:flex;gap:12px;margin-top:6px}
.tpr-c-actions button{font-size:12px;color:#7a7a82!important;font-weight:600}
.tpr-c-actions button:hover{color:var(--tpr-accent)!important}
.tpr-c-form{display:flex;gap:8px;padding:12px 14px calc(env(safe-area-inset-bottom,0px) + 12px);border-top:1px solid #eee}
.tpr-c-input{flex:1;border:1px solid #e3e3e6;background:#f6f6f8;border-radius:99px;padding:11px 16px;font-size:15px;outline:0;color:#16161a}
.tpr-c-input:focus{border-color:var(--tpr-accent)}
.tpr-c-send{background:var(--tpr-accent)!important;color:#fff!important;font-weight:700;border-radius:99px!important;padding:0 18px!important}
.tpr-report-box{max-width:460px;border-radius:22px!important}
.tpr-report-body{padding:18px}
.tpr-report-body p{margin:0 0 12px;color:#70717a;font-size:13px}
.tpr-report-input{width:100%;min-height:120px;resize:vertical;border:1px solid #e1e2e6;border-radius:14px;background:#f7f7f8;padding:12px 14px;font:inherit;font-size:14px;outline:0;color:#16161a}
.tpr-report-input:focus{border-color:var(--tpr-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--tpr-accent) 16%,transparent)}
.tpr-report-error{margin-top:8px;color:#dc2626;font-size:12px}
.tpr-report-send{width:100%;margin-top:12px!important;min-height:44px;padding:11px 16px!important;border-radius:12px!important;background:var(--tpr-accent)!important;color:#fff!important;font-weight:700}
.tpr-report-send:disabled{opacity:.6;cursor:wait}
@media (min-width:700px){
  .tpr-comments-sheet{align-items:stretch;justify-content:flex-end}
  .tpr-comments-sheet .tpr-sheet-box{height:100%;max-height:none;max-width:420px;border-radius:22px 0 0 22px;animation:tprSide .28s ease-out}
}
@keyframes tprSide{from{transform:translateX(40px);opacity:0}}

/* ---- yükləmə formu ---- */
.tpr-up-box{overflow:auto}
.tpr-tabs{display:flex;gap:6px;padding:12px 18px 0}
.tpr-tabs button{flex:1;padding:10px;border-radius:12px;font-weight:700;font-size:14px;background:#f2f2f4;color:#666}
.tpr-tabs button.is-on{background:#16161a;color:#fff}
.tpr-pane{padding:16px 18px 22px;display:flex;flex-direction:column;gap:12px}
.tpr-pane[hidden]{display:none}
.tpr-kind{display:flex;gap:8px}
.tpr-kind button{flex:1;padding:11px;border-radius:99px;border:1.5px solid #e2e2e6!important;font-weight:700;font-size:14px;color:#555}
.tpr-kind button.is-on{border-color:var(--tpr-accent)!important;color:var(--tpr-accent);background:#fff1f1}
.tpr-drop{display:flex;align-items:center;justify-content:center;border:2px dashed #d6d6dc;border-radius:16px;padding:26px 12px;cursor:pointer;color:#666;font-size:14.5px;text-align:center;transition:.15s}
.tpr-drop:hover{border-color:var(--tpr-accent);color:var(--tpr-accent)}
.tpr-drop input{display:none}
.tpr-previews{display:flex;gap:8px;flex-wrap:wrap}
.tpr-previews:empty{display:none}
.tpr-previews video{width:100%;max-height:300px;border-radius:14px;background:#000}
.tpr-pv{position:relative;width:78px;height:108px;border-radius:12px;overflow:hidden;background:#eee}
.tpr-pv img{width:100%;height:100%;object-fit:cover}
.tpr-pv button{position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:50%;background:#000a!important;color:#fff!important;font-size:15px!important;line-height:22px!important;text-align:center}
.tpr-caption,.tpr-listing{width:100%;border:1px solid #e3e3e6;background:#f6f6f8;border-radius:14px;padding:12px 14px;font-size:15px;outline:0;color:#16161a;resize:none;font-family:var(--tpr-font)}
.tpr-caption:focus,.tpr-listing:focus{border-color:var(--tpr-accent)}
.tpr-submit,.tpr-btn{background:var(--tpr-accent)!important;color:#fff!important;font-weight:700;font-size:16px;padding:14px 22px!important;border-radius:99px!important;cursor:pointer;border:0;font-family:var(--tpr-font)}
.tpr-submit:disabled{opacity:.55;cursor:default}
.tpr-progress{height:6px;border-radius:6px;background:#eee;overflow:hidden}
.tpr-progress[hidden]{display:none}
.tpr-progress i{display:block;height:100%;width:0;background:var(--tpr-accent);transition:width .15s}
.tpr-msg{padding:11px 14px;border-radius:12px;background:#fff0f0;color:#b42318;font-size:14px;line-height:1.35}
.tpr-msg.ok{background:#ecfdf3;color:#067647}
.tpr-msg[hidden]{display:none}

.tpr-m-row{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #f0f0f2}
.tpr-m-th{width:48px;height:74px;border-radius:10px;overflow:hidden;background:#222;flex:none}
.tpr-m-th img{width:100%;height:100%;object-fit:cover}
.tpr-m-mid{flex:1;min-width:0}
.tpr-m-cap{font-size:14px;font-weight:600;margin-bottom:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tpr-badge{display:inline-block;padding:3px 10px;border-radius:99px;font-size:12px;font-weight:700;color:#fff;background:#999}
.tpr-badge.ok{background:#16a34a}.tpr-badge.wait{background:#d97706}.tpr-badge.no{background:#dc2626}
.tpr-m-mid small{color:#888}
.tpr-m-del{color:#dc2626!important;font-weight:700;font-size:13px;padding:8px!important}

.tpr-toast{position:fixed;left:50%;bottom:90px;transform:translate(-50%,20px);z-index:1000002;background:#16161ae6;color:#fff;padding:11px 20px;border-radius:99px;font-size:14px;opacity:0;pointer-events:none;transition:.25s;max-width:90vw;text-align:center}
.tpr-toast.on{opacity:1;transform:translate(-50%,0)}

/* ---- hesab səhifəsi ---- */
.tpr-account{--tpr-accent:#ff5757}
.tpr-account .tpr-btn{display:inline-block;margin-right:14px}
.tpr-account .tpr-link{font-weight:700;color:var(--tpr-accent)}
.tpr-account .tpr-mine{margin-top:18px;max-width:640px;color:#16161a}
