:root{--bg-primary:#000;--bg-secondary:#121212;--bg-card:#181818;--bg-hover:#262626;--border-color:#2e2e2e;--text-primary:#f5f5f5;--text-secondary:#a8a8a8;--accent-color:#0095f6;--accent-hover:#1877f2;--story-gradient:linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);--radius-sm:6px;--radius-md:10px;--radius-lg:16px}*{box-sizing:border-box;margin:0;padding:0}body{background-color:var(--bg-primary);color:var(--text-primary);-webkit-tap-highlight-color:transparent;min-height:100dvh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.5;overflow-x:hidden}.app-root{flex-direction:column;width:100%;min-height:100dvh;display:flex;overflow-x:hidden}.navbar{z-index:50;-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--border-color);padding-top:env(safe-area-inset-top,0px);background-color:#121212eb;position:sticky;top:0}.navbar-container{justify-content:space-between;align-items:center;gap:16px;max-width:960px;margin:0 auto;padding:12px 16px;display:flex}.navbar-brand{letter-spacing:-.5px;cursor:pointer;align-items:center;gap:8px;font-size:1.15rem;font-weight:700;display:flex}.brand-icon{width:26px;height:26px;color:var(--text-primary)}.brand-badge{background:var(--bg-hover);color:var(--text-secondary);border-radius:4px;padding:2px 6px;font-size:.7rem;font-weight:500}.search-form{flex:1;align-items:center;gap:8px;max-width:440px;display:flex}.search-input-wrapper{flex:1;position:relative}.search-icon{width:16px;height:16px;color:var(--text-secondary);position:absolute;top:50%;left:10px;transform:translateY(-50%)}.search-input{background-color:var(--bg-hover);border:1px solid var(--border-color);border-radius:var(--radius-sm);width:100%;color:var(--text-primary);outline:none;padding:8px 12px 8px 34px;font-size:.9rem;transition:border-color .15s}.search-input:focus{border-color:var(--accent-color)}.search-button{background-color:var(--accent-color);color:#fff;border-radius:var(--radius-sm);cursor:pointer;white-space:nowrap;border:none;padding:8px 16px;font-size:.85rem;font-weight:600;transition:background-color .15s}.search-button:hover:not(:disabled){background-color:var(--accent-hover)}.search-button:disabled{opacity:.6;cursor:not-allowed}.app-container{max-width:960px;margin:0 auto;padding:24px 16px 60px}.initial-state-card{text-align:center;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:var(--radius-lg);margin-top:20px;padding:48px 24px}.initial-icon{width:54px;height:54px;color:var(--text-secondary);margin-bottom:16px}.initial-title{margin-bottom:8px;font-size:1.35rem;font-weight:700}.initial-desc{color:var(--text-secondary);max-width:480px;margin:0 auto 24px;font-size:.95rem}.suggestions-header{justify-content:center;align-items:center;gap:12px;margin-bottom:12px;display:flex}.suggestions-title{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;font-size:.85rem}.clear-recents-btn{color:var(--text-muted);cursor:pointer;border-radius:var(--radius-sm);background:0 0;border:none;padding:2px 6px;font-size:.75rem;text-decoration:underline;transition:color .15s}.clear-recents-btn:hover{color:#ff858d}.suggestions-tags{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.tag-btn{background:var(--bg-hover);border:1px solid var(--border-color);color:var(--text-primary);cursor:pointer;border-radius:20px;padding:6px 14px;font-size:.85rem;transition:all .15s}.tag-btn:hover{border-color:var(--accent-color);background:#1f2c3a}.tag-chip{background:var(--bg-hover);border:1px solid var(--border-color);border-radius:20px;align-items:center;transition:all .15s;display:inline-flex;overflow:hidden}.tag-chip:hover{border-color:var(--accent-color);background:#1f2c3a}.tag-chip-label{color:var(--text-primary);cursor:pointer;background:0 0;border:none;padding:6px 8px 6px 14px;font-size:.85rem}.tag-chip-remove{color:var(--text-muted);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:6px 10px 6px 2px;font-size:1rem;line-height:1;transition:color .15s;display:flex}.tag-chip-remove:hover{color:#ff858d}.error-card{color:#ff858d;border-radius:var(--radius-md);background-color:#2b1214;border:1px solid #752227;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px;padding:14px 18px;display:flex}.error-card-content{flex:1;align-items:center;gap:10px;display:flex}.error-retry-btn{color:#ff858d;border-radius:var(--radius-sm);cursor:pointer;white-space:nowrap;background:0 0;border:1px solid #ff858d;padding:5px 12px;font-size:.8rem;font-weight:600;transition:all .15s}.error-retry-btn:hover{color:#2b1214;background:#ff858d}.profile-header{border-bottom:1px solid var(--border-color);align-items:flex-start;gap:36px;margin-bottom:28px;padding-bottom:28px;display:flex}.profile-avatar-container{cursor:default;flex-shrink:0;position:relative}.profile-avatar-container.has-stories{cursor:pointer}.avatar-ring{background:0 0;border-radius:50%;justify-content:center;align-items:center;width:130px;height:130px;padding:3px;display:flex}.has-stories .avatar-ring{background:var(--story-gradient);animation:3s infinite pulse-ring}@keyframes pulse-ring{0%{transform:scale(1)}50%{transform:scale(1.03)}to{transform:scale(1)}}.profile-avatar{object-fit:cover;border:3px solid var(--bg-primary);background:var(--bg-hover);border-radius:50%;width:100%;height:100%}.profile-info{flex:1}.profile-title-row{align-items:center;gap:10px;margin-bottom:16px;display:flex}.profile-username{font-size:1.5rem;font-weight:600}.verified-icon{width:20px;height:20px}.private-tag{color:#aaa;background:#333;border-radius:4px;padding:2px 8px;font-size:.75rem}.profile-stats{gap:24px;margin-bottom:16px;font-size:.95rem;display:flex}.stat-item{align-items:baseline;gap:4px;display:flex}.stat-label{color:var(--text-secondary)}.profile-stats strong{color:#fff;font-weight:700}.profile-meta{flex-direction:column;display:flex}.profile-fullname{margin-bottom:4px;font-size:.95rem;font-weight:600}.profile-bio{color:var(--text-secondary);white-space:pre-line;font-size:.9rem}.stories-tray-section{margin-bottom:32px}.section-title{color:var(--text-primary);margin-bottom:14px;font-size:1rem;font-weight:600}.stories-tray{scrollbar-width:thin;gap:16px;padding:8px 4px 12px;display:flex;overflow-x:auto}.story-bubble-btn{cursor:pointer;color:var(--text-primary);background:0 0;border:none;outline:none;flex-direction:column;flex-shrink:0;align-items:center;gap:8px;display:flex}.story-bubble-ring{background:var(--story-gradient);border-radius:50%;justify-content:center;align-items:center;width:72px;height:72px;padding:2.5px;transition:transform .15s;display:flex;position:relative}.story-bubble-btn:hover .story-bubble-ring{transform:scale(1.06)}.story-bubble-img{object-fit:cover;border:2px solid var(--bg-primary);border-radius:50%;width:100%;height:100%}.video-indicator{color:#fff;background:#000000bf;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;display:flex;position:absolute;bottom:0;right:0}.video-indicator svg{width:10px;height:10px}.story-bubble-label{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;max-width:76px;font-size:.75rem;overflow:hidden}.empty-stories-notice{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:var(--radius-md);color:var(--text-secondary);align-items:center;gap:12px;margin-bottom:32px;padding:18px 24px;font-size:.9rem;display:flex}.empty-icon{flex-shrink:0;width:20px;height:20px}.feed-grid{grid-template-columns:repeat(3,1fr);gap:16px;display:grid}.feed-grid-item{aspect-ratio:1;background:var(--bg-hover);border-radius:var(--radius-sm);cursor:pointer;position:relative;overflow:hidden}.feed-grid-img{object-fit:cover;width:100%;height:100%;transition:transform .25s;display:block}.feed-grid-item:hover .feed-grid-img{transform:scale(1.03)}.feed-video-badge{color:#fff;filter:drop-shadow(0 2px 4px #0009);width:24px;height:24px;position:absolute;top:8px;right:8px}.feed-video-badge svg{width:100%;height:100%}.feed-item-overlay{color:#fff;opacity:0;background:#0006;justify-content:center;align-items:center;font-size:.85rem;font-weight:600;transition:opacity .2s;display:flex;position:absolute;inset:0}.feed-grid-item:hover .feed-item-overlay{opacity:1}.story-modal-backdrop{z-index:100;background:#000000eb;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.story-modal-card{border-radius:var(--radius-lg);background:#111;flex-direction:column;width:100%;max-width:420px;height:90vh;max-height:820px;display:flex;position:relative;overflow:hidden;box-shadow:0 10px 40px #000c}.story-progress-container{z-index:20;gap:4px;display:flex;position:absolute;top:10px;left:10px;right:10px}.story-progress-bar-bg{background:#ffffff59;border-radius:2px;flex:1;height:3px;overflow:hidden}.story-progress-bar-fill{background:#fff;height:100%;transition:width 50ms linear}.story-modal-header{z-index:20;justify-content:space-between;align-items:center;display:flex;position:absolute;top:20px;left:12px;right:12px}.story-modal-user{align-items:center;gap:8px;display:flex}.story-modal-avatar{object-fit:cover;border:1px solid #fff6;border-radius:50%;width:32px;height:32px}.story-modal-name{color:#fff;text-shadow:0 1px 3px #000c;font-size:.85rem;font-weight:600}.story-modal-counter{color:#ffffffb3;font-size:.75rem}.story-modal-actions{align-items:center;gap:8px;display:flex}.icon-btn{color:#fff;cursor:pointer;background:#00000080;border:none;border-radius:50%;justify-content:center;align-items:center;width:34px;height:34px;transition:background .15s;display:flex}.icon-btn:hover{background:#000c}.icon-btn svg{width:18px;height:18px}.story-media-wrapper{background:#000;flex:1;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:relative}.story-media-element{object-fit:contain;max-width:100%;max-height:100%}.story-tap-area{z-index:10;cursor:pointer;width:40%;position:absolute;top:60px;bottom:0}.story-tap-left{left:0}.story-tap-right{right:0}.post-modal-backdrop{z-index:100;background:#000000d9;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.post-modal-container{background:var(--bg-card);border:1px solid var(--border-color);border-radius:var(--radius-lg);flex-direction:column;width:100%;max-width:700px;max-height:90vh;display:flex;overflow:hidden}.post-modal-header{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;padding:12px 16px;display:flex}.post-modal-user{align-items:center;gap:10px;display:flex}.post-modal-avatar{object-fit:cover;border-radius:50%;width:32px;height:32px}.post-modal-name{font-size:.9rem;font-weight:600}.post-modal-actions{align-items:center;gap:8px;display:flex}.post-media-area{background:#000;flex:1;justify-content:center;align-items:center;display:flex;overflow:hidden}.post-media-element{object-fit:contain;max-width:100%;max-height:75vh;display:block}@media (width<=640px){.navbar-container{flex-direction:column;align-items:stretch;gap:10px;padding:10px 14px}.navbar-brand{justify-content:space-between;width:100%}.search-form{width:100%;max-width:none}.search-input{height:42px;padding:8px 12px 8px 36px;font-size:16px}.search-button{flex-shrink:0;height:42px;padding:0 16px;font-size:.9rem}.app-container{padding:14px 12px calc(36px + env(safe-area-inset-bottom,0px))}.initial-state-card{border-radius:var(--radius-md);margin-top:10px;padding:28px 14px}.initial-icon{width:44px;height:44px;margin-bottom:12px}.initial-title{font-size:1.15rem}.initial-desc{margin-bottom:18px;font-size:.88rem}.suggestions-header{justify-content:space-between;width:100%;max-width:360px;margin:0 auto 10px;display:flex}.tag-chip,.tag-btn{min-height:38px}.tag-chip-label{padding:8px 10px 8px 14px;font-size:.85rem}.tag-chip-remove{min-width:36px;min-height:36px;padding:0 8px;font-size:1.2rem}.error-card{flex-direction:column;align-items:stretch;gap:10px;padding:12px 14px}.error-retry-btn{justify-content:center;align-items:center;width:100%;height:38px;font-size:.85rem;display:flex}.profile-header{grid-template-columns:84px 1fr;grid-template-areas:"avatar title""avatar stats""meta meta";align-items:center;gap:10px 16px;margin-bottom:18px;padding-bottom:18px;display:grid}.profile-avatar-container{grid-area:avatar;align-self:start}.avatar-ring{width:84px;height:84px;padding:2.5px}.profile-info{display:contents}.profile-title-row{flex-wrap:wrap;grid-area:title;gap:6px;margin-bottom:0}.profile-username{word-break:break-word;font-size:1.25rem}.profile-stats{grid-area:stats;justify-content:space-between;gap:6px;width:100%;margin-bottom:0;display:flex}.stat-item{text-align:center;flex-direction:column;flex:1;align-items:center;line-height:1.2;display:flex}.stat-item strong{color:#fff;font-size:.95rem}.stat-label{color:var(--text-secondary);margin-top:2px;font-size:.72rem}.profile-meta{grid-area:meta;width:100%;margin-top:6px}.profile-fullname{font-size:.9rem;font-weight:600}.profile-bio{color:var(--text-secondary);margin-top:3px;font-size:.85rem;line-height:1.4}.stories-tray-section{margin-bottom:22px}.section-title{margin-bottom:10px;font-size:.92rem}.stories-tray{-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none;gap:12px;padding:4px 2px 10px}.stories-tray::-webkit-scrollbar{display:none}.story-bubble-ring{width:66px;height:66px}.story-bubble-label{max-width:68px;font-size:.72rem}.story-bubble-btn:active .story-bubble-ring{transform:scale(.95)}.feed-grid{gap:3px}.feed-grid-item{border-radius:2px}.feed-grid-item:active{opacity:.85}.feed-video-badge{width:18px;height:18px;top:6px;right:6px}.story-modal-backdrop{background:#000;padding:0}.story-modal-card{width:100%;max-width:none;height:100vh;max-height:none;box-shadow:none;border-radius:0}.story-progress-container{top:calc(8px + env(safe-area-inset-top,0px));left:8px;right:8px}.story-modal-header{top:calc(20px + env(safe-area-inset-top,0px));left:10px;right:10px}.story-tap-area{top:calc(64px + env(safe-area-inset-top,0px))}.story-media-wrapper{padding-bottom:env(safe-area-inset-bottom,0px)}.icon-btn{width:40px;min-width:40px;height:40px;min-height:40px}.post-modal-backdrop{background:#000000f2;padding:0}.post-modal-container{border:none;border-radius:0;width:100%;max-width:none;height:100vh;max-height:none}.post-modal-header{padding:calc(10px + env(safe-area-inset-top,0px)) 12px 10px}.post-media-area{min-height:0;padding-bottom:env(safe-area-inset-bottom,0px);flex:1}.post-media-element{width:100%;max-height:100%}}@media (width<=360px){.profile-header{grid-template-columns:72px 1fr;column-gap:12px}.avatar-ring{width:72px;height:72px}.profile-username{font-size:1.1rem}.stat-item strong{font-size:.88rem}.stat-label{font-size:.68rem}.story-bubble-ring{width:60px;height:60px}}
