.search-backdrop{position:fixed;inset:0;z-index:9998;background:#00000059;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:backdropFadeIn .3s ease-out}.dark .search-backdrop{background:#00000080}.search-sheet{position:fixed;left:0;right:0;bottom:0;z-index:9999;height:90vh;max-height:90vh;display:flex;flex-direction:column;background:#fffffff2;backdrop-filter:blur(40px);-webkit-backdrop-filter:blur(40px);border-radius:20px 20px 0 0;box-shadow:0 -8px 32px #0000001f;animation:sheetSlideUp .4s cubic-bezier(.32,.72,0,1);padding-bottom:env(safe-area-inset-bottom);overscroll-behavior:contain}.dark .search-sheet{background:#0f172af2;box-shadow:0 -8px 32px #0006}.sheet-handle-area{display:flex;justify-content:center;padding:12px 0 8px;cursor:grab;touch-action:none}.sheet-handle{width:36px;height:4px;background:#0003;border-radius:2px}.dark .sheet-handle{background:#ffffff4d}.sheet-header{position:sticky;top:0;z-index:10;padding:0 16px 12px;background:inherit;border-bottom:1px solid rgba(0,0,0,.08)}.dark .sheet-header{border-bottom-color:#ffffff14}.search-field-wrapper{display:flex;align-items:center;gap:12px}.search-field{flex:1;display:flex;align-items:center;gap:8px;background:#0000000f;border:1.5px solid rgba(0,0,0,.1);border-radius:12px;padding:0 14px;height:48px;transition:all .2s ease}.search-field:focus-within{background:#00000014;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.dark .search-field{background:#ffffff14;border-color:#ffffff1f}.dark .search-field:focus-within{background:#ffffff1f;border-color:#60a5fa;box-shadow:0 0 0 3px #60a5fa26}.search-field-icon{width:20px;height:20px;color:#64748b;flex-shrink:0}.dark .search-field-icon{color:#94a3b8}.search-field-input{flex:1;border:none;background:transparent;outline:none;font-size:16px;line-height:1.5;color:#0f172a;font-weight:400;font-size:max(16px,1em)}.search-field-input::-moz-placeholder{color:#94a3b8}.search-field-input::placeholder{color:#94a3b8}.dark .search-field-input{color:#f1f5f9}.dark .search-field-input::-moz-placeholder{color:#64748b}.dark .search-field-input::placeholder{color:#64748b}.search-field-input::-webkit-search-cancel-button,.search-field-input::-webkit-search-decoration{-webkit-appearance:none;appearance:none}.search-field-clear{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;background:transparent;cursor:pointer;color:#64748b;flex-shrink:0;transition:all .2s ease;padding:4px;border-radius:50%}.search-field-clear:hover{color:#0f172a;background:#0000000f}.search-field-clear:active{background:#0000001a}.dark .search-field-clear{color:#94a3b8}.dark .search-field-clear:hover{color:#f1f5f9;background:#ffffff1a}.cancel-text-btn{padding:0;border:none;background:transparent;color:#3b82f6;font-size:16px;font-weight:600;cursor:pointer;transition:opacity .2s ease;min-height:44px;min-width:44px;display:flex;align-items:center;justify-content:center}.cancel-text-btn:hover{opacity:.7}.cancel-text-btn:active{opacity:.5}.dark .cancel-text-btn{color:#60a5fa}.search-results-hint{margin-top:8px;font-size:13px;color:#64748b;padding-left:2px}.search-results-hint strong{color:#3b82f6;font-weight:600}.dark .search-results-hint{color:#94a3b8}.dark .search-results-hint strong{color:#60a5fa}.sheet-content{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:16px}.empty-content{display:flex;flex-direction:column;gap:28px}.content-section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.content-section-title{font-size:13px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.5px;margin:0}.dark .content-section-title{color:#94a3b8}.clear-link{padding:4px 8px;border:none;background:transparent;color:#3b82f6;font-size:13px;font-weight:600;cursor:pointer;transition:opacity .2s ease;border-radius:6px}.clear-link:hover{opacity:.7}.clear-link:active{background:#3b82f614}.dark .clear-link{color:#60a5fa}.dark .clear-link:active{background:#60a5fa1f}.recent-items{display:flex;flex-direction:column;gap:2px}.recent-item-row{display:flex;align-items:center;gap:4px}.recent-item-btn{flex:1;display:flex;align-items:center;gap:12px;padding:10px 12px;border:none;background:transparent;border-radius:10px;cursor:pointer;transition:background .15s ease;text-align:left;min-height:44px}.recent-item-btn:hover{background:#0000000a}.recent-item-btn:active{background:#00000014}.dark .recent-item-btn:hover{background:#ffffff0f}.dark .recent-item-btn:active{background:#ffffff1a}.recent-item-icon{width:18px;height:18px;color:#94a3b8;flex-shrink:0}.dark .recent-item-icon{color:#64748b}.recent-item-text{flex:1;font-size:15px;line-height:1.4;color:#0f172a;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dark .recent-item-text{color:#f1f5f9}.recent-item-remove{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:transparent;cursor:pointer;color:#cbd5e1;border-radius:8px;flex-shrink:0;transition:all .15s ease;padding:0}.recent-item-remove:hover{color:#64748b;background:#0000000d}.recent-item-remove:active{color:#ef4444;background:#ef444414}.dark .recent-item-remove{color:#475569}.dark .recent-item-remove:hover{color:#94a3b8;background:#ffffff14}.dark .recent-item-remove:active{color:#f87171;background:#f871711f}.trending-chips-list{display:flex;flex-wrap:wrap;gap:8px}.trending-chip-btn{display:inline-flex;align-items:center;gap:6px;padding:10px 16px;border:1.5px solid rgba(0,0,0,.1);background:#00000005;border-radius:20px;font-size:14px;font-weight:500;color:#0f172a;cursor:pointer;transition:all .15s ease}.trending-chip-btn:hover{background:#0000000d;border-color:#00000029}.trending-chip-btn:active{background:#00000014;transform:scale(.97)}.dark .trending-chip-btn{border-color:#ffffff26;background:#ffffff0d;color:#f1f5f9}.dark .trending-chip-btn:hover{background:#ffffff1a;border-color:#ffffff3d}.dark .trending-chip-btn:active{background:#ffffff24}.trending-chip-icon{width:14px;height:14px;color:#f97316;flex-shrink:0}.results-container{display:flex;flex-direction:column;border-radius:14px;overflow:hidden;border:1px solid rgba(0,0,0,.06)}.dark .results-container{border-color:#ffffff14}.results-container .suggestion-item+.suggestion-item{border-top:1px solid rgba(0,0,0,.06)}.dark .results-container .suggestion-item+.suggestion-item{border-top-color:#ffffff0f}.result-skeleton{display:flex;gap:12px;padding:12px 14px;background:#fff;animation:pulse 1.5s ease-in-out infinite}.result-skeleton+.result-skeleton{border-top:1px solid rgba(0,0,0,.06)}.dark .result-skeleton{background:#0f172a}.dark .result-skeleton+.result-skeleton{border-top-color:#ffffff0f}.result-skeleton-cover{width:56px;height:80px;background:#00000014;border-radius:6px;flex-shrink:0}.dark .result-skeleton-cover{background:#ffffff1a}.result-skeleton-content{flex:1;display:flex;flex-direction:column;gap:8px;justify-content:center}.result-skeleton-title{height:18px;width:85%;background:#00000014;border-radius:4px}.dark .result-skeleton-title{background:#ffffff1a}.result-skeleton-author{height:14px;width:50%;background:#0000000f;border-radius:4px}.dark .result-skeleton-author{background:#ffffff14}.result-skeleton-meta{height:12px;width:40%;background:#0000000f;border-radius:4px}.dark .result-skeleton-meta{background:#ffffff14}.error-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 20px;text-align:center}.error-icon{width:48px;height:48px;color:#cbd5e1;margin-bottom:16px}.dark .error-icon{color:#475569}.error-title{font-size:17px;font-weight:600;color:#0f172a;margin:0 0 6px;line-height:1.4}.dark .error-title{color:#f1f5f9}.error-message{font-size:14px;color:#64748b;line-height:1.5;margin:0 0 20px}.dark .error-message{color:#94a3b8}.retry-btn{padding:10px 24px;border:1.5px solid rgba(59,130,246,.3);background:#3b82f614;color:#3b82f6;font-size:14px;font-weight:600;border-radius:10px;cursor:pointer;transition:all .15s ease}.retry-btn:hover{background:#3b82f624;border-color:#3b82f666}.retry-btn:active{transform:scale(.97)}.dark .retry-btn{border-color:#60a5fa4d;background:#60a5fa1a;color:#60a5fa}.dark .retry-btn:hover{background:#60a5fa2e}.empty-results-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:48px 20px;text-align:center}.empty-results-icon-wrapper{width:64px;height:64px;border-radius:50%;background:#0000000a;display:flex;align-items:center;justify-content:center;margin-bottom:16px}.dark .empty-results-icon-wrapper{background:#ffffff0f}.empty-results-icon{width:28px;height:28px;color:#94a3b8}.dark .empty-results-icon{color:#64748b}.empty-results-title{font-size:16px;font-weight:600;color:#0f172a;margin:0 0 6px;line-height:1.4}.dark .empty-results-title{color:#f1f5f9}.empty-results-message{font-size:14px;color:#64748b;line-height:1.5;margin:0;max-width:280px}.dark .empty-results-message{color:#94a3b8}.typing-hint{display:flex;align-items:center;justify-content:center;gap:8px;padding:40px 20px;font-size:14px;color:#94a3b8;text-align:center}.typing-hint-icon{width:18px;height:18px;flex-shrink:0}.dark .typing-hint{color:#64748b}.sheet-footer{position:sticky;bottom:0;padding:12px 16px;padding-bottom:calc(12px + env(safe-area-inset-bottom));background:inherit;border-top:1px solid rgba(0,0,0,.08)}.dark .sheet-footer{border-top-color:#ffffff14}.primary-cta-btn{width:100%;padding:14px 24px;border:none;background:#3b82f6;color:#fff;font-size:16px;font-weight:600;border-radius:12px;cursor:pointer;transition:all .15s ease;display:flex;flex-direction:column;align-items:center;gap:2px;min-height:52px;box-shadow:0 2px 8px #3b82f640}.primary-cta-btn:active{transform:scale(.98);box-shadow:0 1px 4px #3b82f633}.dark .primary-cta-btn{background:#60a5fa;box-shadow:0 2px 8px #60a5fa40}.cta-main-text{font-size:15px;font-weight:600;line-height:1.3}.cta-sub-text{font-size:12px;opacity:.8;font-weight:400;line-height:1.3}@keyframes backdropFadeIn{0%{opacity:0}to{opacity:1}}@keyframes sheetSlideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@media(min-width:1024px){.search-backdrop,.search-sheet{display:none}}@media(prefers-reduced-motion:reduce){.search-backdrop,.search-sheet,.search-backdrop *,.search-sheet *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
