body.tiliv-story-open{overflow:hidden}.stories-container{scrollbar-width:none;padding-block:8px}.stories-container::-webkit-scrollbar{display:none}.story-item{min-width:78px}.story-avatar{border:0;cursor:pointer;background:transparent;padding:3px}.story-avatar img{display:block;width:64px;height:64px;object-fit:cover;border-radius:50%;background:#eceef4}.story-avatar.unviewed{border-radius:50%;background:linear-gradient(135deg,#6c5ce7,#dd3f78,#ff8a34)}.story-avatar.viewed{border-radius:50%;background:#c7ccd8}.story-avatar.add-story{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#f1efff,#e9e6ff);color:#5b5ce2}.story-modal,.upload-modal,.stats-modal,.share-modal{backdrop-filter:blur(8px);background:rgba(9,12,20,.7);z-index:11000}.story-modal.show,.upload-modal.show,.stats-modal.show,.share-modal.show{display:flex!important}.story-content{width:min(430px,calc(100vw - 24px));height:min(780px,calc(100vh - 24px));border-radius:24px;overflow:hidden;background:#11141c;box-shadow:0 35px 90px rgba(0,0,0,.48);position:relative}.story-header{z-index:8;padding:15px}.story-progress-container{position:absolute;top:8px;inset-inline:12px;display:flex;gap:4px}.story-progress{height:3px;flex:1;background:rgba(255,255,255,.25);border-radius:999px;overflow:hidden}.story-progress-bar{height:100%;background:#fff;width:0}.story-user-info{margin-top:8px}.story-user-avatar img{width:38px;height:38px;object-fit:cover;border-radius:12px}.story-media{position:absolute;inset:0;display:grid;place-items:center;background:#090b10}.story-media>img,.story-media>video{width:100%;height:100%;object-fit:contain}.tiliv-story-text-fix102{width:100%;height:100%;padding:70px 34px 110px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;line-height:1.75;overflow-wrap:anywhere}.tiliv-story-text-fix102 .mention{color:#fff;text-decoration:underline;text-underline-offset:4px}.story-controls{z-index:9;position:absolute;inset-inline:14px;bottom:14px;padding:10px;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:rgba(10,12,18,.46);backdrop-filter:blur(14px);display:flex;align-items:center;gap:7px}.story-input{min-width:0;flex:1;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.11);color:#fff;border-radius:13px;padding:10px 12px}.story-input::placeholder{color:rgba(255,255,255,.72)}.story-btn{width:38px;height:38px;border-radius:12px;border:0;background:rgba(255,255,255,.13);color:#fff;display:grid;place-items:center;cursor:pointer}.story-btn.liked{background:rgba(233,55,91,.22);color:#ff5678}.story-nav{z-index:10;width:42px;height:58px;border-radius:13px;background:rgba(8,10,14,.42);backdrop-filter:blur(10px);color:#fff;border:1px solid rgba(255,255,255,.15)}.repost-indicator{z-index:8;top:72px;border-radius:999px;background:rgba(10,12,18,.48);backdrop-filter:blur(10px)}.upload-content,.stats-content,.share-content{width:min(560px,calc(100vw - 24px));max-height:min(800px,calc(100vh - 24px));overflow:auto;border-radius:22px;background:var(--header-bg,#fff);box-shadow:0 30px 90px rgba(0,0,0,.35)}.file-upload-area{border:1.5px dashed rgba(91,92,226,.38);border-radius:18px;background:rgba(91,92,226,.05);padding:24px}.tiliv-story-file-preview-fix102{display:grid;gap:8px;margin-bottom:14px}.tiliv-story-file-preview-fix102 img,.tiliv-story-file-preview-fix102 video{width:100%;max-height:360px;object-fit:contain;border-radius:15px;background:#111}.tiliv-story-file-preview-fix102 span{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tiliv-story-toast-fix102{position:fixed;left:22px;bottom:22px;z-index:14000;max-width:min(360px,calc(100vw - 44px));padding:12px 15px;border-radius:13px;background:#087a59;color:#fff;font:600 12px/1.7 IRANSansX,IRANSans,sans-serif;box-shadow:0 18px 55px rgba(0,0,0,.3);opacity:0;transform:translateY(14px);transition:.22s;pointer-events:none}.tiliv-story-toast-fix102.error{background:#a12c39}.tiliv-story-toast-fix102.show{opacity:1;transform:none}.tiliv-story-empty-fix102{text-align:center;color:#7c8495;padding:28px 12px}@media(max-width:520px){.story-content{width:100vw;height:100vh;max-width:none;max-height:none;border-radius:0}.story-controls{inset-inline:8px;bottom:8px}.story-input{padding:9px}.story-btn{width:35px;height:35px}.story-user-name{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

/* Tiliv Stories FIX103 — unified public/channel experience */
:root{
  --story-103-brand:#6d5dfc;
  --story-103-brand-2:#8b5cf6;
  --story-103-danger:#ff3158;
  --story-103-surface:#fff;
  --story-103-surface-soft:#f6f7fb;
  --story-103-text:#171928;
  --story-103-muted:#74788d;
  --story-103-border:rgba(31,35,52,.10);
  --story-103-shadow:0 20px 60px rgba(20,22,37,.16);
}
body.dark,body.darkmode,body[class*="dark"]{
  --story-103-surface:#171923;
  --story-103-surface-soft:#20232f;
  --story-103-text:#f7f8ff;
  --story-103-muted:#a8adc0;
  --story-103-border:rgba(255,255,255,.10);
  --story-103-shadow:0 24px 72px rgba(0,0,0,.42);
}
body.tiliv-story-open{overflow:hidden!important;touch-action:none}

.channel-avatar-shell-fix103{position:relative;display:inline-grid;place-items:center;width:72px;height:72px;margin:0;isolation:isolate}
.channel-avatar-button-fix103{position:relative;z-index:2;display:grid;place-items:center;width:66px;height:66px;padding:0;border:3px solid var(--story-103-surface);border-radius:50%;background:var(--story-103-surface);cursor:pointer;box-shadow:0 5px 18px rgba(23,25,40,.12)}
.channel-avatar-button-fix103:disabled{cursor:default}
.channel-avatar-button-fix103 img{display:block;width:60px!important;height:60px!important;object-fit:cover;border-radius:50%;position:static!important}
.channel-avatar-shell-fix103 .story-ring{position:absolute!important;inset:0!important;display:block;border-radius:50%;z-index:1;pointer-events:none;background:conic-gradient(from 40deg,#ff3c72,#ff8534,#7b61ff,#ff3c72);padding:3px}
.channel-avatar-shell-fix103 .story-ring::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--story-103-surface)}
.channel-avatar-shell-fix103 .story-ring.viewed{background:#b7bbc8}
.channel-story-count-fix103{position:absolute;left:-4px;bottom:-3px;z-index:4;min-width:23px;height:23px;padding:0 6px;display:grid;place-items:center;border:2px solid var(--story-103-surface);border-radius:999px;background:var(--story-103-brand);color:#fff;font:700 10px/1 IRANSansX,Tahoma,sans-serif}
.channel-avatar-live-fix103{position:absolute;right:50%;bottom:-7px;z-index:5;transform:translateX(50%);height:22px;padding:0 8px;display:flex;align-items:center;border:2px solid var(--story-103-surface);border-radius:7px;background:var(--story-103-danger);color:#fff;font:800 9px/1 IRANSansX,Tahoma,sans-serif;box-shadow:0 5px 15px rgba(255,49,88,.32)}

.channel-social-highlights-fix103{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(250px,.8fr);gap:12px;margin:4px 0 22px;padding:0}
.channel-live-banner-fix103,.channel-story-card-fix103{min-height:106px;border:1px solid var(--story-103-border);border-radius:20px;background:var(--story-103-surface);box-shadow:0 7px 26px rgba(29,32,52,.07);overflow:hidden;color:var(--story-103-text);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.channel-live-banner-fix103:hover,.channel-story-card-fix103:hover{transform:translateY(-2px);box-shadow:0 14px 35px rgba(29,32,52,.12);border-color:rgba(109,93,252,.28)}
.channel-live-banner-fix103{display:grid;grid-template-columns:178px minmax(0,1fr) auto;align-items:center;text-decoration:none!important;padding:10px;gap:16px;background:linear-gradient(115deg,var(--story-103-surface) 55%,rgba(109,93,252,.08))}
.channel-live-visual-fix103{position:relative;display:grid;place-items:center;height:86px;border-radius:14px;background:linear-gradient(135deg,#2f3141,#161823);background-size:cover;background-position:center;overflow:hidden}
.channel-live-visual-fix103::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.52))}
.channel-live-visual-fix103>i{position:relative;z-index:2;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.94);color:var(--story-103-danger);font-size:13px;box-shadow:0 7px 24px rgba(0,0,0,.22)}
.channel-live-visual-fix103>em{position:absolute;right:9px;bottom:8px;z-index:2;display:flex;align-items:center;gap:5px;height:23px;padding:0 8px;border-radius:7px;background:var(--story-103-danger);color:#fff;font:800 9px/1 IRANSansX,Tahoma,sans-serif;font-style:normal}
.channel-live-visual-fix103>em b{width:6px;height:6px;border-radius:50%;background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.18);animation:story-live-pulse-103 1.45s infinite}
.channel-live-copy-fix103{display:flex;min-width:0;flex-direction:column;gap:5px}
.channel-live-copy-fix103 small{color:var(--story-103-danger);font-size:10px;font-weight:800}
.channel-live-copy-fix103 strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--story-103-text);font-size:14px;line-height:1.9}
.channel-live-copy-fix103 span{color:var(--story-103-muted);font-size:10px}
.channel-live-action-fix103{display:flex;align-items:center;gap:8px;margin-left:8px;padding:10px 13px;border-radius:12px;background:var(--story-103-danger);color:#fff;font-size:10px;font-weight:800;white-space:nowrap}
.channel-story-card-fix103{appearance:none;display:grid;grid-template-columns:58px minmax(0,1fr) 18px;align-items:center;gap:12px;width:100%;padding:15px;text-align:right;cursor:pointer}
.channel-story-card-avatar-fix103{display:grid;place-items:center;width:56px;height:56px;padding:3px;border-radius:50%;background:conic-gradient(#ff3c72,#ff8534,#7b61ff,#ff3c72)}
.channel-story-card-avatar-fix103.viewed{background:#b7bbc8}
.channel-story-card-avatar-fix103 img{width:50px;height:50px;object-fit:cover;border:3px solid var(--story-103-surface);border-radius:50%}
.channel-story-card-copy-fix103{display:flex;min-width:0;flex-direction:column;gap:3px}
.channel-story-card-copy-fix103 small{color:var(--story-103-muted);font-size:9px}
.channel-story-card-copy-fix103 strong{color:var(--story-103-text);font-size:12px}
.channel-story-card-copy-fix103 span{color:var(--story-103-brand);font-size:9px;font-weight:700}
.channel-story-card-fix103>i{color:var(--story-103-muted);font-size:11px}
@keyframes story-live-pulse-103{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.78)}}

.story-modal,.upload-modal,.share-modal,.stats-modal{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.story-modal.show,.upload-modal.show,.share-modal.show,.stats-modal.show{display:flex!important;opacity:1;visibility:visible}
.story-modal{background:rgba(7,8,13,.86)!important;padding:18px!important}
.story-modal .story-content{position:relative!important;width:min(430px,calc(100vw - 24px))!important;height:min(780px,calc(100dvh - 30px))!important;max-height:none!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:24px!important;background:#090a0f!important;box-shadow:0 26px 90px rgba(0,0,0,.55)!important;overflow:hidden!important}
.story-modal .story-header{position:absolute!important;inset:0 0 auto 0!important;z-index:20!important;display:grid!important;grid-template-columns:auto 1fr auto!important;align-items:center!important;gap:10px!important;padding:16px 14px 12px!important;background:linear-gradient(180deg,rgba(0,0,0,.72),transparent)!important}
.story-progress-container{position:absolute!important;top:8px!important;right:10px!important;left:10px!important;display:flex!important;gap:4px!important;height:3px!important}
.story-progress{flex:1;height:3px;border-radius:99px;background:rgba(255,255,255,.28);overflow:hidden}
.story-progress-bar{display:block;height:100%;width:0;border-radius:inherit;background:#fff;transition:width .06s linear}
.story-user-info{margin-top:5px!important;min-width:0}
.story-user-avatar img{width:34px!important;height:34px!important;border:2px solid rgba(255,255,255,.75)!important;border-radius:50%!important;object-fit:cover}
.story-user-name{color:#fff!important;font-size:11px!important;font-weight:800!important;text-shadow:0 1px 8px rgba(0,0,0,.45)}
.close-story{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;margin-top:5px!important;border:0!important;border-radius:50%!important;background:rgba(0,0,0,.28)!important;color:#fff!important;cursor:pointer}
.story-media{position:absolute!important;inset:0!important;display:grid!important;place-items:center!important;background:#090a0f!important;overflow:hidden!important}
.story-media>img,.story-media>video{width:100%!important;height:100%!important;object-fit:contain!important;background:#090a0f}
.tiliv-story-text-fix103{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:72px 30px 100px;color:#fff;line-height:2;overflow-wrap:anywhere;text-shadow:0 2px 14px rgba(0,0,0,.22)}
.tiliv-story-text-fix103 .mention{color:#fff;text-decoration:underline;text-underline-offset:4px;font-weight:800}
.repost-indicator{position:absolute!important;z-index:18!important;top:68px!important;right:14px!important;max-width:calc(100% - 28px);padding:7px 10px!important;border-radius:9px!important;background:rgba(0,0,0,.38)!important;color:#fff!important;font-size:9px!important;backdrop-filter:blur(7px)}
.repost-indicator a{color:#fff!important;font-weight:800}
.story-controls{position:absolute!important;right:12px!important;bottom:12px!important;left:12px!important;z-index:20!important;display:flex!important;align-items:center!important;gap:7px!important;padding:8px!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:18px!important;background:rgba(12,13,18,.62)!important;backdrop-filter:blur(16px)!important;box-shadow:0 12px 30px rgba(0,0,0,.28)}
.story-input{min-width:0!important;flex:1!important;height:42px!important;padding:0 14px!important;border:1px solid rgba(255,255,255,.13)!important;border-radius:13px!important;background:rgba(255,255,255,.09)!important;color:#fff!important;font-size:10px!important;outline:none!important}
.story-input::placeholder{color:rgba(255,255,255,.66)!important}
.story-input:focus{border-color:rgba(139,92,246,.75)!important;background:rgba(255,255,255,.13)!important}
.story-btn{display:grid!important;place-items:center!important;flex:0 0 38px!important;width:38px!important;height:38px!important;padding:0!important;border:0!important;border-radius:12px!important;background:rgba(255,255,255,.10)!important;color:#fff!important;cursor:pointer!important;transition:.2s ease!important}
.story-btn:hover{background:rgba(255,255,255,.20)!important;transform:translateY(-1px)}
.story-btn.liked{background:rgba(255,49,88,.18)!important;color:#ff4d6d!important}
.story-nav{z-index:19!important;display:grid!important;place-items:center!important;width:38px!important;height:50px!important;border:0!important;border-radius:12px!important;background:rgba(0,0,0,.28)!important;color:#fff!important;backdrop-filter:blur(8px);cursor:pointer}
.story-nav.prev{right:12px!important}.story-nav.next{left:12px!important}

.upload-modal,.share-modal,.stats-modal{z-index:10030!important;background:rgba(12,14,23,.55)!important;padding:18px!important}
.upload-content,.share-content,.stats-content{width:min(520px,calc(100vw - 28px))!important;max-height:min(760px,calc(100dvh - 30px))!important;border:1px solid var(--story-103-border)!important;border-radius:24px!important;background:var(--story-103-surface)!important;color:var(--story-103-text)!important;box-shadow:var(--story-103-shadow)!important;overflow:auto!important}
.upload-header,.share-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:19px 20px!important;border-bottom:1px solid var(--story-103-border)!important}
.upload-header h3,.share-header h3{margin:0!important;color:var(--story-103-text)!important;font-size:14px!important}
.share-header p{margin:4px 0 0;color:var(--story-103-muted);font-size:9px}
.upload-header button,.share-header button{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:10px;background:var(--story-103-surface-soft);color:var(--story-103-text);cursor:pointer}
.upload-tabs,.stats-tabs,.story-stats-tabs-fix103{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;margin:16px!important;padding:5px!important;border-radius:14px!important;background:var(--story-103-surface-soft)!important}
.upload-tab,.stats-tab,.story-stats-tabs-fix103 button{height:38px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:var(--story-103-muted)!important;font:700 10px/1 IRANSansX,Tahoma,sans-serif!important;cursor:pointer!important}
.upload-tab.active,.stats-tab.active,.story-stats-tabs-fix103 button.active{background:var(--story-103-surface)!important;color:var(--story-103-brand)!important;box-shadow:0 5px 14px rgba(25,28,46,.09)!important}
#storyForm{padding:0 16px 18px!important}
.file-upload-area{position:relative!important;display:flex!important;min-height:250px!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:12px!important;padding:20px!important;border:1.5px dashed rgba(109,93,252,.38)!important;border-radius:18px!important;background:linear-gradient(145deg,rgba(109,93,252,.06),rgba(139,92,246,.02))!important;transition:.2s ease!important}
.file-upload-area.dragging{border-color:var(--story-103-brand)!important;background:rgba(109,93,252,.11)!important;transform:scale(.995)}
.file-upload-area>p{margin:0!important;color:var(--story-103-muted)!important;font-size:10px!important}
.file-upload-area>button{height:40px;padding:0 15px;border:0;border-radius:11px;background:var(--story-103-brand);color:#fff;font:800 10px/1 IRANSansX,Tahoma,sans-serif;cursor:pointer}
.tiliv-story-file-preview-fix103{position:absolute;inset:8px;z-index:3;display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden;border-radius:14px;background:#0d0f17;box-shadow:0 12px 30px rgba(0,0,0,.18)}
.tiliv-story-file-preview-fix103 img,.tiliv-story-file-preview-fix103 video{width:100%;height:100%;min-height:0;object-fit:contain;background:#0d0f17}
.tiliv-story-file-preview-fix103>span{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:rgba(15,17,26,.94);color:#fff;font-size:9px}
.tiliv-story-file-preview-fix103>span b{max-width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tiliv-story-file-preview-fix103>span small{opacity:.7}
.tiliv-story-preview-remove-fix103{position:absolute;top:9px;left:9px;display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:10px;background:rgba(0,0,0,.58);color:#fff;cursor:pointer}
.text-story-area{display:none!important;padding:0!important}.text-story-area.active{display:block!important}
.story-text-input{width:100%!important;min-height:210px!important;padding:18px!important;border:1px solid var(--story-103-border)!important;border-radius:16px!important;background:var(--story-103-surface-soft)!important;color:var(--story-103-text)!important;line-height:2!important;resize:vertical!important;outline:none!important}
.color-picker{display:flex!important;flex-wrap:wrap!important;gap:9px!important;margin:14px 0!important}.color-option{width:32px!important;height:32px!important;border:3px solid transparent!important;border-radius:10px!important;cursor:pointer!important}.color-option.selected{border-color:var(--story-103-surface)!important;box-shadow:0 0 0 2px var(--story-103-brand)!important}
.upload-btn{width:100%!important;height:46px!important;margin-top:14px!important;border:0!important;border-radius:13px!important;background:linear-gradient(135deg,var(--story-103-brand),var(--story-103-brand-2))!important;color:#fff!important;font:800 11px/1 IRANSansX,Tahoma,sans-serif!important;cursor:pointer!important;box-shadow:0 10px 24px rgba(109,93,252,.24)!important}.upload-btn:disabled{opacity:.65;cursor:wait}
.search-container{padding:14px 16px!important}.search-container input{width:100%!important;height:44px!important;padding:0 14px!important;border:1px solid var(--story-103-border)!important;border-radius:13px!important;background:var(--story-103-surface-soft)!important;color:var(--story-103-text)!important;outline:none!important}
.contacts-list,.stats-list,.story-stats-panel-fix103{display:flex;flex-direction:column;gap:7px;padding:0 16px 18px;max-height:430px;overflow:auto}
.story-contact-row-fix103,.story-stat-user-fix103{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px;border:1px solid var(--story-103-border);border-radius:13px;background:var(--story-103-surface-soft)}
.story-contact-row-fix103 img,.story-stat-user-fix103 img{width:42px;height:42px;border-radius:50%;object-fit:cover}
.story-contact-row-fix103 span,.story-stat-user-fix103 span{display:flex;min-width:0;flex-direction:column;gap:2px}.story-contact-row-fix103 b,.story-stat-user-fix103 b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--story-103-text);font-size:10px}.story-contact-row-fix103 small,.story-stat-user-fix103 small{color:var(--story-103-muted);font-size:8px}
.story-contact-row-fix103 button,.story-stat-user-fix103 a{height:33px;padding:0 11px;border:0;border-radius:9px;background:var(--story-103-brand);color:#fff;text-decoration:none;display:flex;align-items:center;font:800 9px/1 IRANSansX,Tahoma,sans-serif;cursor:pointer}
.story-stats-panel-fix103{display:none}.story-stats-panel-fix103.active{display:flex}.story-stats-content-fix103{overflow:hidden!important}
.tiliv-story-empty-fix103,.tiliv-story-list-loading-fix103{margin:0;padding:30px 14px;text-align:center;color:var(--story-103-muted);font-size:10px}
.tiliv-story-toast-fix103{position:fixed;right:50%;bottom:28px;z-index:11000;max-width:min(440px,calc(100vw - 24px));transform:translate(50%,18px);padding:11px 15px;border-radius:12px;background:#1e2130;color:#fff;font:700 10px/1.8 IRANSansX,Tahoma,sans-serif;box-shadow:0 12px 34px rgba(0,0,0,.28);opacity:0;transition:.22s ease}.tiliv-story-toast-fix103.show{transform:translate(50%,0);opacity:1}.tiliv-story-toast-fix103.error{background:#b82042}

@media(max-width:860px){
  .channel-social-highlights-fix103{grid-template-columns:1fr}
  .channel-live-banner-fix103{grid-template-columns:132px minmax(0,1fr)}
  .channel-live-action-fix103{display:none}
}
@media(max-width:560px){
  .channel-social-highlights-fix103{margin-bottom:14px}
  .channel-live-banner-fix103{grid-template-columns:105px minmax(0,1fr);gap:10px;min-height:94px;padding:8px;border-radius:16px}
  .channel-live-visual-fix103{height:78px}.channel-live-copy-fix103 strong{font-size:11px}.channel-live-copy-fix103 span{font-size:8px}
  .channel-story-card-fix103{min-height:88px;padding:12px;border-radius:16px}
  .story-modal{padding:0!important}.story-modal .story-content{width:100vw!important;height:100dvh!important;border:0!important;border-radius:0!important}
  .story-controls{right:8px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;left:8px!important;gap:5px!important;padding:6px!important;border-radius:16px!important}
  .story-btn{flex-basis:36px!important;width:36px!important;height:36px!important}.story-input{height:38px!important;padding:0 11px!important}
  .upload-modal,.share-modal,.stats-modal{align-items:flex-end!important;padding:0!important}.upload-content,.share-content,.stats-content{width:100%!important;max-height:92dvh!important;border-radius:24px 24px 0 0!important}
}
@media(prefers-reduced-motion:reduce){.channel-live-banner-fix103,.channel-story-card-fix103,.tiliv-story-toast-fix103{transition:none!important}.channel-live-visual-fix103>em b{animation:none!important}}

/* FIX106: clickable Tiliv post/video attachment inside story. */
.tiliv-story-attachment-fix106{position:absolute;left:50%;bottom:92px;z-index:8;transform:translateX(-50%);display:flex;align-items:center;gap:10px;width:min(88%,360px);padding:10px;border-radius:18px;background:rgba(15,17,26,.72);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(14px);color:#fff;text-decoration:none;box-shadow:0 16px 44px rgba(0,0,0,.32);direction:rtl}
.tiliv-story-attachment-fix106:hover{color:#fff;transform:translateX(-50%) translateY(-1px)}
.tiliv-story-attachment-fix106 img,.tiliv-story-attachment-thumb-fix106{width:54px;height:54px;border-radius:14px;object-fit:cover;flex:0 0 54px;background:linear-gradient(135deg,rgba(236,72,153,.28),rgba(59,130,246,.28));display:grid;place-items:center}
.tiliv-story-attachment-body-fix106{min-width:0;display:flex;flex-direction:column;gap:2px;text-align:right}
.tiliv-story-attachment-body-fix106 b{font-size:13px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tiliv-story-attachment-body-fix106 small{font-size:11px;opacity:.78;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tiliv-story-attachment-cta-fix106{margin-inline-start:auto;font-size:11px;font-weight:900;border-radius:999px;padding:7px 10px;background:rgba(255,255,255,.16);white-space:nowrap}
@media(max-width:520px){.tiliv-story-attachment-fix106{bottom:82px;width:calc(100vw - 28px)}}


/* FIX108 — restore top story strip and align public story UI with Tiliv Studio palette. */
:root{
  --story-103-brand:#5657dc;
  --story-103-brand-2:#7c55dd;
  --story-103-brand-3:#28347a;
  --story-103-surface:#ffffff;
  --story-103-surface-soft:#f5f7fb;
  --story-103-text:#171a24;
  --story-103-muted:#727b91;
  --story-103-border:rgba(103,116,142,.18);
  --story-103-shadow:0 15px 44px rgba(35,42,63,.075);
}
body.dark,body.darkmode,body[class*="dark"],html[data-theme="dark"]{
  --story-103-surface:#171923;
  --story-103-surface-soft:#20232f;
  --story-103-text:#f7f8ff;
  --story-103-muted:#a8adc0;
  --story-103-border:rgba(255,255,255,.10);
  --story-103-shadow:0 24px 72px rgba(0,0,0,.38);
}
.stories-container:not([hidden]){
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-start!important;
  gap:14px!important;
  width:100%!important;
  min-height:106px!important;
  margin:0 0 22px!important;
  padding:13px 4px 12px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  direction:rtl!important;
  scroll-snap-type:x proximity!important;
}
.stories-container[hidden]{display:none!important}.stories-container::-webkit-scrollbar{display:none!important}
.story-item{
  flex:0 0 78px!important;
  width:78px!important;
  min-width:78px!important;
  display:grid!important;
  justify-items:center!important;
  align-content:start!important;
  gap:7px!important;
  text-align:center!important;
  scroll-snap-align:start!important;
}
.story-avatar{
  position:relative!important;
  width:72px!important;
  height:72px!important;
  min-width:72px!important;
  min-height:72px!important;
  border:0!important;
  border-radius:999px!important;
  display:grid!important;
  place-items:center!important;
  padding:3px!important;
  background:var(--story-103-surface-soft)!important;
  color:var(--story-103-brand)!important;
  box-shadow:0 10px 26px rgba(32,40,78,.08)!important;
}
.story-avatar img{
  width:64px!important;
  height:64px!important;
  border:3px solid var(--story-103-surface)!important;
  border-radius:999px!important;
  background:#eceef4!important;
}
.story-avatar.unviewed{background:conic-gradient(from 210deg,#5657dc,#7c55dd,#20c7e5,#5657dc)!important}
.story-avatar.viewed{background:#cfd5e3!important}.story-avatar.viewed img{filter:saturate(.82)!important}
.story-avatar.add-story{
  background:linear-gradient(145deg,rgba(86,87,220,.12),rgba(124,85,221,.08))!important;
  border:1px solid rgba(86,87,220,.18)!important;
  box-shadow:0 12px 30px rgba(86,87,220,.13)!important;
}
.story-avatar.add-story::after{
  content:'';
  position:absolute;
  right:3px;
  bottom:3px;
  width:22px;
  height:22px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--story-103-brand),var(--story-103-brand-2));
  border:3px solid var(--story-103-surface);
  box-shadow:0 5px 14px rgba(86,87,220,.25);
}
.story-avatar.add-story .add-icon,.story-avatar.add-story .add-icon-fallback-fix108{
  position:relative;
  z-index:2;
  font-size:24px!important;
  line-height:1!important;
  font-weight:900!important;
  color:var(--story-103-brand-3)!important;
}
.story-avatar.add-story .add-icon:not(:empty)+.add-icon-fallback-fix108{display:none!important}
.story-username{
  width:100%!important;
  min-height:28px!important;
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  color:var(--story-103-text)!important;
  font:800 10px/1.55 IRANSansX,Tahoma,sans-serif!important;
}
.story-item-add-fix108 .story-username{color:var(--story-103-brand-3)!important}
.upload-tab.active,.stats-tab.active,.story-stats-tabs-fix103 button.active{color:var(--story-103-brand-3)!important}
.upload-btn,.file-upload-area>button,.story-contact-row-fix103 button,.story-stat-user-fix103 a{background:linear-gradient(135deg,var(--story-103-brand),var(--story-103-brand-2))!important}
.file-upload-area{border-color:rgba(86,87,220,.34)!important;background:linear-gradient(145deg,rgba(86,87,220,.055),rgba(124,85,221,.025))!important}
.file-upload-area.dragging{border-color:var(--story-103-brand)!important;background:rgba(86,87,220,.11)!important}
@media(max-width:560px){.stories-container:not([hidden]){gap:10px!important;min-height:98px!important;margin-bottom:14px!important;padding-inline:2px!important}.story-item{flex-basis:70px!important;width:70px!important;min-width:70px!important}.story-avatar{width:66px!important;height:66px!important;min-width:66px!important;min-height:66px!important}.story-avatar img{width:58px!important;height:58px!important}.story-username{font-size:9px!important}}

/* Tiliv Stories FIX109 — studio-blue composer and collision-proof add card */
:root{
  --story-109-blue:#2f5597;
  --story-109-blue-2:#49a6d7;
  --story-109-blue-3:#1f3f82;
  --story-109-sky:#dff4ff;
  --story-109-line:rgba(47,85,151,.16);
  --story-109-soft:rgba(47,85,151,.075);
}
.stories-container .story-item.story-item-add-fix108,
.stories-container .story-item:has(.story-avatar.add-story){
  width:78px!important;min-width:78px!important;max-width:78px!important;height:auto!important;
  display:grid!important;justify-items:center!important;align-items:start!important;gap:7px!important;
  overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;
}
.stories-container .story-avatar.add-story{
  box-sizing:border-box!important;position:relative!important;isolation:isolate!important;
  width:72px!important;height:72px!important;min-width:72px!important;min-height:72px!important;max-width:72px!important;max-height:72px!important;
  display:grid!important;place-items:center!important;padding:0!important;overflow:visible!important;
  border:1px solid rgba(73,166,215,.22)!important;border-radius:999px!important;
  background:linear-gradient(145deg,#f4fbff,#e5f5ff 45%,#dff1ff)!important;
  color:var(--story-109-blue-3)!important;box-shadow:0 12px 28px rgba(47,85,151,.12)!important;
}
.stories-container .story-avatar.add-story::before{
  content:''!important;position:absolute!important;inset:7px!important;border-radius:999px!important;
  background:linear-gradient(160deg,rgba(73,166,215,.22),rgba(47,85,151,.10))!important;
  z-index:0!important;
}
.stories-container .story-avatar.add-story::after{
  content:'+'!important;position:absolute!important;right:2px!important;bottom:2px!important;z-index:3!important;
  width:24px!important;height:24px!important;display:grid!important;place-items:center!important;
  border-radius:999px!important;border:3px solid var(--story-103-surface,#fff)!important;
  background:linear-gradient(135deg,var(--story-109-blue),var(--story-109-blue-2))!important;
  color:#fff!important;font:900 18px/1 Tahoma,Arial,sans-serif!important;box-shadow:0 7px 16px rgba(47,85,151,.26)!important;
}
.stories-container .story-avatar.add-story .add-icon,
.stories-container .story-avatar.add-story .add-icon-fallback-fix108{
  position:relative!important;z-index:2!important;display:grid!important;place-items:center!important;
  width:30px!important;height:30px!important;margin:0!important;border-radius:999px!important;
  color:var(--story-109-blue-3)!important;font-size:25px!important;line-height:1!important;text-shadow:none!important;
}
.stories-container .story-avatar.add-story .add-icon-fallback-fix108{display:none!important}
.stories-container .story-avatar.add-story .add-icon::before{display:block!important}
.upload-modal{background:rgba(11,21,39,.52)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;align-items:center!important;justify-content:center!important;}
.upload-content{
  width:min(560px,calc(100vw - 28px))!important;border:1px solid rgba(47,85,151,.14)!important;border-radius:28px!important;
  background:linear-gradient(180deg,#fff,#f8fbff)!important;color:#172033!important;box-shadow:0 30px 90px rgba(16,34,67,.28)!important;overflow:hidden!important;
}
.upload-header{padding:18px 20px!important;border-bottom:1px solid rgba(47,85,151,.10)!important;background:linear-gradient(135deg,var(--story-109-blue),var(--story-109-blue-2))!important;color:#fff!important;}
.upload-header h3{color:#fff!important;font-size:15px!important;font-weight:900!important}.upload-header h3::after{content:'؛ عکس، ویدیو یا متن را سریع منتشر کن';display:block;margin-top:5px;font-size:10px;font-weight:600;opacity:.82}
.upload-header button{background:rgba(255,255,255,.18)!important;color:#fff!important;border:1px solid rgba(255,255,255,.24)!important}
.upload-tabs{margin:16px 16px 10px!important;padding:5px!important;border-radius:16px!important;background:#eef7ff!important;border:1px solid rgba(47,85,151,.08)!important;}
.upload-tab{height:42px!important;border-radius:12px!important;color:#5f6b82!important;font-size:11px!important}.upload-tab.active{background:#fff!important;color:var(--story-109-blue)!important;box-shadow:0 8px 18px rgba(47,85,151,.13)!important}
#storyForm{padding:0 16px 18px!important}.file-upload-area{min-height:260px!important;border:1.5px dashed rgba(47,85,151,.28)!important;border-radius:20px!important;background:linear-gradient(145deg,rgba(73,166,215,.09),rgba(47,85,151,.035))!important;}
.file-upload-area::before{content:'+';display:grid;place-items:center;width:62px;height:62px;margin-bottom:2px;border-radius:22px;background:linear-gradient(135deg,var(--story-109-blue),var(--story-109-blue-2));color:#fff;font:900 34px/1 Tahoma,Arial,sans-serif;box-shadow:0 14px 34px rgba(47,85,151,.24)}
.file-upload-area.file-selected::before{display:none}.file-upload-area>p{max-width:310px;text-align:center;color:#60718d!important;font-size:11px!important;line-height:1.9!important}.file-upload-area>button{background:linear-gradient(135deg,var(--story-109-blue),var(--story-109-blue-2))!important;border-radius:14px!important;height:42px!important;box-shadow:0 12px 26px rgba(47,85,151,.20)!important}
.story-text-input{min-height:225px!important;border-color:rgba(47,85,151,.12)!important;background:linear-gradient(145deg,#f5fbff,#eef7ff)!important;color:#172033!important;font-weight:700!important}.story-text-input:focus{border-color:rgba(73,166,215,.55)!important;box-shadow:0 0 0 4px rgba(73,166,215,.12)!important}.color-picker{gap:10px!important}.color-option{width:34px!important;height:34px!important;border-radius:13px!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.36),0 8px 18px rgba(47,85,151,.10)!important}.color-option.selected{border-color:#fff!important;box-shadow:0 0 0 3px var(--story-109-blue-2)!important}.story-color-black{background:linear-gradient(135deg,#2f5597,#49a6d7)!important}.story-color-red{background:linear-gradient(135deg,#1f3f82,#2f5597)!important}.story-color-green{background:linear-gradient(135deg,#0369a1,#49a6d7)!important}.story-color-blue{background:linear-gradient(135deg,#3147a6,#55b3e6)!important}.story-color-yellow{background:linear-gradient(135deg,#0f766e,#49a6d7)!important}.story-color-magenta{background:linear-gradient(135deg,#4f46e5,#49a6d7)!important}.story-color-gradient-one{background:linear-gradient(135deg,#2f5597,#49a6d7)!important}.story-color-gradient-two{background:linear-gradient(135deg,#1f3f82,#6ab9df)!important}.upload-btn{height:48px!important;border-radius:15px!important;background:linear-gradient(135deg,var(--story-109-blue),var(--story-109-blue-2))!important;box-shadow:0 14px 30px rgba(47,85,151,.25)!important;font-size:12px!important}.tiliv-story-text-fix103[data-story-blue],.tiliv-story-text-fix102[data-story-blue]{background:linear-gradient(145deg,#2f5597,#49a6d7)!important}
body.dark .upload-content,body.darkmode .upload-content,body[class*="dark"] .upload-content{background:linear-gradient(180deg,#161f33,#101828)!important;color:#eef6ff!important;border-color:rgba(255,255,255,.10)!important}.story-modal .story-media .tiliv-story-text-fix103{background-color:#2f5597}
@media(max-width:520px){.upload-modal{align-items:flex-end!important}.upload-content{border-radius:26px 26px 0 0!important;width:100%!important}.file-upload-area{min-height:225px!important}.upload-header{padding:17px 18px!important}}

/* Tiliv Stories FIX110 — home strip studio-blue container + spacing from header */
#storiesContainer.stories-container:not([hidden]){
  margin:14px 18px 22px!important;
  padding:15px 16px 13px!important;
  min-height:112px!important;
  border:1px solid rgba(255,255,255,.18)!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,#2f5597 0%,#49a6d7 100%)!important;
  box-shadow:0 16px 38px rgba(47,85,151,.20)!important;
}
#storiesContainer.stories-container:not([hidden]) .story-username{
  color:#fff!important;
  text-shadow:0 1px 8px rgba(20,41,78,.22)!important;
}
#storiesContainer.stories-container:not([hidden]) .story-avatar{
  box-shadow:0 10px 22px rgba(14,35,68,.18)!important;
}
#storiesContainer.stories-container:not([hidden]) .story-avatar.unviewed{
  background:conic-gradient(from 210deg,#ffffff,#c9f1ff,#2f5597,#ffffff)!important;
}
#storiesContainer.stories-container:not([hidden]) .story-avatar.viewed{
  background:rgba(255,255,255,.38)!important;
}
#storiesContainer.stories-container:not([hidden]) .story-avatar img{
  border-color:rgba(255,255,255,.92)!important;
}
#storiesContainer.stories-container:not([hidden]) .story-avatar.add-story{
  border-color:rgba(255,255,255,.40)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(229,246,255,.92))!important;
  color:#2f5597!important;
  box-shadow:0 12px 28px rgba(14,35,68,.18)!important;
}
#storiesContainer.stories-container:not([hidden]) .story-avatar.add-story::before{
  background:linear-gradient(160deg,rgba(73,166,215,.20),rgba(47,85,151,.10))!important;
}
#storiesContainer.stories-container:not([hidden]) .story-avatar.add-story::after{
  border-color:#fff!important;
  background:linear-gradient(135deg,#2f5597,#49a6d7)!important;
  color:#fff!important;
}
#storiesContainer.stories-container:not([hidden]) .story-avatar.add-story .add-icon,
#storiesContainer.stories-container:not([hidden]) .story-avatar.add-story .add-icon-fallback-fix108{
  color:#2f5597!important;
  transform:none!important;
}
@media(max-width:768px){
  #storiesContainer.stories-container:not([hidden]){
    margin:10px 10px 18px!important;
    padding:13px 12px 12px!important;
    border-radius:19px!important;
  }
}
