/* Mobile H5 search is a separate page. Native App and desktop search are unchanged. */
#md-mobile-search-page[hidden]{display:none!important}
#md-mobile-search-page [hidden]{display:none!important}
@media(max-width:767px){
 body.md-mobile-search-active{overflow:hidden!important;background:#f7f7f8!important}
 body.md-mobile-search-active :is(#app,#md-nav,#md-desktop-bar){display:none!important}
 body.md-mobile-search-active:not(.md-mobile-search-watching) #md-shell{display:none!important}
 #md-mobile-search-page{position:fixed;inset:0;z-index:27000;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;background:#f7f7f8;color:#202124;font:15px/1.5 system-ui,sans-serif;-webkit-overflow-scrolling:touch}
 #md-mobile-search-page *{box-sizing:border-box}
 #md-mobile-search-page button{font:inherit;cursor:pointer;border:0;color:inherit;touch-action:manipulation}
 #md-mobile-search-page button:focus-visible,#md-mobile-search-page input:focus-visible{outline:2px solid #fe2c55;outline-offset:2px}
 #md-mobile-search-page>.md-ms-header{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:8px;padding:calc(10px + env(safe-area-inset-top)) 12px 12px 4px;background:#f7f7f8;border-bottom:1px solid #eee}
 #md-mobile-search-page .md-ms-back{display:grid;place-items:center;flex:0 0 36px;width:36px;height:44px;padding:0;background:transparent}
 #md-mobile-search-page .md-ms-back svg{width:24px;height:24px}
 #md-mobile-search-page .md-ms-form{display:flex;align-items:center;flex:1;min-width:0;height:44px;margin:0;padding:0 4px 0 12px;background:#fff;border:1px solid #ededee;border-radius:10px;box-shadow:0 3px 12px #17192205}
 #md-mobile-search-page .md-ms-form input{flex:1;min-width:0;width:100%;height:42px;border:0;outline:none;background:transparent;color:#1d1d24;font:15px/42px system-ui,sans-serif;appearance:none}
 #md-mobile-search-page .md-ms-form input::placeholder{color:#aaaab0}
 #md-mobile-search-page .md-ms-form button{flex:0 0 56px;min-height:36px;padding:0 8px;border-left:1px solid #eee;background:transparent;font-weight:600}
 #md-mobile-search-page .md-ms-keyword-section{padding:14px 14px 12px;background:#fff}
 #md-mobile-search-page .md-ms-keyword-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}
 #md-mobile-search-page h2{margin:0;font-size:13px;font-weight:500;color:#8c8d94}
 #md-mobile-search-page .md-ms-history-clear{padding:4px 0;background:transparent;color:#8c8d94;font-size:12px}
 #md-mobile-search-page .md-ms-keywords{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
 #md-mobile-search-page .md-ms-keywords button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-height:36px;padding:6px 0;background:transparent;text-align:left;font-size:15px}
 #md-mobile-search-page .md-ms-keywords button:nth-child(-n+2){color:#fe4268}
 #md-mobile-search-page .md-ms-history{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
 #md-mobile-search-page .md-ms-history button{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:4px 9px;background:#f4f4f6;border-radius:6px;font-size:12px}
 #md-mobile-search-page .md-ms-tabs{position:sticky;top:calc(67px + env(safe-area-inset-top));z-index:4;display:flex;align-items:center;gap:24px;min-height:48px;overflow-x:auto;padding:0 14px;background:#fff;scrollbar-width:none;border-top:1px solid #f4f4f4}
 #md-mobile-search-page .md-ms-tabs button{position:relative;flex:none;min-height:48px;padding:0;background:transparent;color:#888a90;white-space:nowrap;font-size:15px}
 #md-mobile-search-page .md-ms-tabs button[aria-selected=true]{color:#1d1d24;font-weight:650}
 #md-mobile-search-page .md-ms-tabs button[aria-selected=true]::after{content:'';position:absolute;bottom:5px;left:25%;right:25%;height:2px;background:#fe2c55;border-radius:2px}
 #md-mobile-search-page .md-ms-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:8px 6px;padding:0 6px 12px}
 #md-mobile-search-page .md-ms-card{display:block;min-width:0;width:100%;overflow:hidden;padding:0;background:#fff;border-radius:7px;text-align:left}
 #md-mobile-search-page .md-ms-cover{position:relative;display:block;width:100%;aspect-ratio:3 / 4;overflow:hidden;background:#eaeaec}
 #md-mobile-search-page .md-ms-cover>img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
 #md-mobile-search-page .md-ms-play{position:absolute;right:8px;top:8px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#0004;color:#fff}
 #md-mobile-search-page .md-ms-play svg{width:12px;height:12px}
 #md-mobile-search-page .md-ms-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:20px;max-height:40px;margin:8px 9px 6px;font-size:14px;line-height:20px;font-weight:500;overflow-wrap:anywhere}
 #md-mobile-search-page .md-ms-meta{display:flex;align-items:center;gap:5px;min-height:24px;margin:0 9px 8px;color:#909097;font-size:11px;line-height:20px}
 #md-mobile-search-page .md-ms-meta img{width:18px;height:18px;object-fit:cover;border-radius:50%;flex:none}
 #md-mobile-search-page .md-ms-author{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #md-mobile-search-page .md-ms-count{flex:none;white-space:nowrap}
 #md-mobile-search-page .md-ms-user{display:flex;align-items:center;gap:9px;padding:14px 10px}
 #md-mobile-search-page .md-ms-user>img{width:38px;height:38px;object-fit:cover;border-radius:50%;flex:none}
 #md-mobile-search-page .md-ms-user strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
 #md-mobile-search-page .md-ms-status{text-align:center;margin:12px 16px 18px;padding-bottom:env(safe-area-inset-bottom);color:#92939b;font-size:13px}
 #md-mobile-search-page .md-ms-status button{padding:7px 15px;margin-left:8px;border-radius:7px;background:#fff;color:#d93557}
 #md-mobile-search-page .md-ms-sentinel{height:1px}
 body.md-mobile-search-watching #md-shell{display:block!important;position:fixed!important;inset:0!important;z-index:20000!important;margin:0!important;width:100%!important;height:100dvh!important;overflow:hidden!important}
 body.md-mobile-search-watching #md-shell>.md-feature-heading{display:none!important}
 body.md-mobile-search-watching #md-shell .md-feed-workspace{height:100dvh!important;max-height:100dvh!important}
}
@media(min-width:768px){#md-mobile-search-page{display:none!important}}
