/* ============================================================
   آیوین — اکسپلور + معرفی دوستان
   ============================================================ */

/* نوار پایین با ۸ تب: کمی فشرده‌تر، و اگه جا نشد قابل اسکرول */
.bottom-nav{overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none}
.bottom-nav::-webkit-scrollbar{display:none}
.bn-item{min-width:44px}

/* ---------- اکسپلور ---------- */
#homeSectionExplore{position:relative;background:#000}
.explore-feed{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;background:#000}
.explore-feed::-webkit-scrollbar{display:none}

.ex-slide{position:relative;width:100%;height:var(--exh,100%);min-height:var(--exh,100%);scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden;background:#05080f;color:#fff;display:flex;align-items:center;justify-content:center;user-select:none;-webkit-user-select:none}

.ex-bg{position:absolute;inset:-20px;width:calc(100% + 40px);height:calc(100% + 40px);object-fit:cover;filter:blur(28px) brightness(.45);transform:scale(1.1);pointer-events:none}
.ex-media{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:transparent;-webkit-tap-highlight-color:transparent}
.ex-video{background:#000}

.ex-textonly .ex-textbox{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:28px 78px 150px 28px;text-align:center}
.ex-textonly .ex-bigtext{font-size:22px;font-weight:800;line-height:2;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere;max-height:100%;overflow:hidden;text-shadow:0 2px 14px #0006}

.ex-shade{position:absolute;left:0;right:0;bottom:0;height:46%;background:linear-gradient(to top,#000000d9,#00000080 45%,transparent);pointer-events:none}

/* اطلاعات نویسنده و متن */
.ex-info{position:absolute;right:14px;left:78px;bottom:18px;text-align:right;z-index:3}
.ex-author{display:flex;align-items:center;gap:9px;margin-bottom:8px;cursor:pointer;width:max-content;max-width:100%}
.ex-author .avatar{width:40px;height:40px;font-size:15px;border:2px solid #ffffffb3}
.ex-author-name{font-size:14px;font-weight:800;line-height:1.3;text-shadow:0 1px 6px #000a}
.ex-author-sub{font-size:11px;color:#ffffffb8;direction:ltr;text-align:right}
.ex-caption{font-size:13.5px;line-height:1.85;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 1px 6px #000a;cursor:pointer}
.ex-caption.open{-webkit-line-clamp:unset;display:block;max-height:34vh;overflow-y:auto}
.ex-date{font-size:11px;color:#ffffffa6;margin-top:6px}

/* دکمه‌های کنار */
.ex-actions{position:absolute;left:10px;bottom:18px;display:flex;flex-direction:column;align-items:center;gap:16px;z-index:4}
.ex-act{display:flex;flex-direction:column;align-items:center;gap:3px;background:none;border:none;color:#fff;font-family:inherit;cursor:pointer;padding:0;-webkit-tap-highlight-color:transparent}
.ex-act .ex-ico{width:46px;height:46px;border-radius:50%;background:#0000008c;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);border:1px solid #ffffff22;display:flex;align-items:center;justify-content:center;font-size:21px;line-height:1;transition:transform .15s}
.ex-act:active .ex-ico{transform:scale(.88)}
.ex-act .ex-n{font-size:11.5px;font-weight:700;text-shadow:0 1px 5px #000c;min-width:20px;text-align:center}
.ex-act.liked .ex-ico{background:#ff2d5544;border-color:#ff2d5588}
.ex-view{display:flex;flex-direction:column;align-items:center;gap:3px;color:#fff}
.ex-view .ex-ico{width:46px;height:46px;border-radius:50%;background:#0000008c;border:1px solid #ffffff22;display:flex;align-items:center;justify-content:center;font-size:19px}
.ex-view .ex-n{font-size:11.5px;font-weight:700;text-shadow:0 1px 5px #000c}
.ex-sound .ex-off{display:none}
.explore-feed.ex-muted .ex-sound .ex-on{display:none}
.explore-feed.ex-muted .ex-sound .ex-off{display:inline}

/* آیکن مکث / قلب دابل‌تپ */
.ex-pause{position:absolute;top:50%;left:50%;width:74px;height:74px;margin:-37px 0 0 -37px;border-radius:50%;background:#0000008c;display:flex;align-items:center;justify-content:center;font-size:32px;opacity:0;pointer-events:none;z-index:2;transition:opacity .2s}
.ex-slide.ex-paused .ex-pause{opacity:1}
.ex-heart{position:absolute;top:50%;left:50%;font-size:88px;margin:-44px 0 0 -44px;opacity:0;pointer-events:none;z-index:5}
.ex-heart.go{animation:exHeart .8s ease-out}
@keyframes exHeart{0%{opacity:0;transform:scale(.3)}25%{opacity:1;transform:scale(1.15)}70%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.25)}}

/* وضعیت‌های خالی / خطا / بارگذاری */
.ex-state{height:var(--exh,100%);min-height:var(--exh,100%);scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:30px;text-align:center;color:#c8d0e0;font-size:14px;line-height:1.9;background:linear-gradient(160deg,#0a1120,#101a2c)}
.ex-state .ex-state-ico{font-size:46px}
.ex-state button{padding:11px 22px;border:none;border-radius:14px;background:linear-gradient(135deg,var(--accent),#1f6feb);color:#fff;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer}
.ex-spin{width:34px;height:34px;border-radius:50%;border:3px solid #ffffff2a;border-top-color:var(--accent);animation:exSpin .8s linear infinite}
@keyframes exSpin{to{transform:rotate(360deg)}}

.ex-refresh{position:absolute;top:10px;left:10px;z-index:6;width:38px;height:38px;border-radius:50%;border:1px solid #ffffff26;background:#0000008c;color:#fff;font-size:17px;cursor:pointer;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.ex-refresh:active{transform:scale(.9)}

/* ---------- شیت کامنت‌ها ---------- */
.ex-sheet-bg{display:none;position:fixed;inset:0;background:#0009;z-index:10002;align-items:flex-end;justify-content:center}
.ex-sheet-bg.open{display:flex}
.ex-sheet{width:100%;max-width:520px;height:72vh;height:72dvh;background:var(--card);border-radius:22px 22px 0 0;border:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;box-shadow:0 -14px 50px #0000008c;animation:exUp .22s ease-out;padding-bottom:var(--safe-b)}
@keyframes exUp{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
.ex-sheet-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 10px;border-bottom:1px solid rgba(255,255,255,.07);flex-shrink:0}
.ex-sheet-title{font-size:15px;font-weight:800}
.ex-sheet-x{border:none;background:var(--card2);color:var(--text);width:32px;height:32px;border-radius:50%;font-size:15px;cursor:pointer;font-family:inherit}
.ex-clist{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:8px 14px;overscroll-behavior:contain}
.ex-cempty{text-align:center;color:var(--muted);font-size:13px;padding:36px 10px;line-height:1.9}
.ex-c{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.04);text-align:right}
.ex-c .avatar{width:34px;height:34px;font-size:13px;cursor:pointer}
.ex-cbody{flex:1;min-width:0}
.ex-cname{font-size:12.5px;font-weight:800;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.ex-ctime{font-size:10.5px;color:var(--muted);font-weight:400}
.ex-ctext{font-size:13.5px;line-height:1.8;margin-top:2px;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere}
.ex-cdel{border:none;background:none;color:#ff8080;font-size:11.5px;cursor:pointer;font-family:inherit;padding:2px 0;margin-top:2px}
.ex-compose{display:flex;gap:8px;padding:10px 12px;border-top:1px solid rgba(255,255,255,.07);flex-shrink:0}
.ex-compose input{flex:1;min-width:0;padding:12px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.09);background:var(--card2);color:var(--text);font-size:16px;outline:none;font-family:inherit;margin:0}
.ex-compose input:focus{border-color:var(--accent)}
.ex-compose button{padding:0 18px;border:none;border-radius:14px;background:linear-gradient(135deg,var(--accent),#1f6feb);color:#fff;font-weight:700;font-size:14px;cursor:pointer;font-family:inherit}
.ex-compose button:disabled{opacity:.55}

/* ---------- معرفی دوستان ---------- */
.settings-item .si-tag{font-size:10px;font-weight:800;color:#fff;background:linear-gradient(135deg,#3b93ff,#1f6feb);padding:3px 8px;border-radius:999px;white-space:nowrap}

.inv-hero{display:flex;align-items:center;gap:10px;background:linear-gradient(135deg,#3b93ff26,#1f6feb14);border:1px solid #3b93ff55;border-radius:16px;padding:13px 14px;font-size:13.5px;line-height:1.9;margin-bottom:14px}
.inv-hero .inv-tick{width:34px;height:34px;flex-shrink:0;border-radius:50%;background:linear-gradient(135deg,#3b93ff,#1f6feb);display:flex;align-items:center;justify-content:center;font-size:17px;color:#fff;font-weight:800}
.inv-h{font-size:16px;font-weight:800;margin:4px 0 4px;text-align:center}
.inv-sub{font-size:12.5px;color:var(--muted);text-align:center;line-height:1.9;margin-bottom:12px}
.inv-code{direction:ltr;text-align:center;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:26px;font-weight:800;letter-spacing:5px;padding:14px 10px;border-radius:16px;background:var(--card2);border:1.5px dashed #3b93ff88;margin-bottom:10px;user-select:all;-webkit-user-select:all}
.inv-btns{display:flex;gap:8px;margin-bottom:14px}
.inv-btns button{flex:1;margin:0!important}
.inv-prog-top{display:flex;justify-content:space-between;font-size:12.5px;margin-bottom:6px}
.inv-bar{height:10px;border-radius:999px;background:var(--card2);overflow:hidden}
.inv-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#3b93ff,#22c55e);transition:width .5s}
.inv-note{font-size:11.5px;color:var(--muted);line-height:1.9;margin-top:12px;text-align:right}
.inv-done{text-align:center;color:#7cb8ff;font-weight:800;font-size:14px;margin-top:12px}
.inv-err{color:#ff6b6b;font-size:12.5px;text-align:center;padding:14px 4px;line-height:1.9}

#inviteCodeInput{direction:ltr;text-align:center;letter-spacing:3px;text-transform:uppercase}
#inviteCodeInput::placeholder{letter-spacing:0;text-transform:none;direction:rtl}
