/* Search uses the player palette; suggestions never cover the persistent player. */
.search-field-shell{position:relative;z-index:8;width:min(100%,660px);margin:0 auto 38px}
.search-field-shell .search{display:flex;width:100%;max-width:none;height:44px;margin:0;gap:10px;padding:0 13px;border:1px solid var(--line);border-radius:24px;background:#18181c;transition:border-color .18s,box-shadow .18s}
.search-field-shell .search:focus-within{border-color:var(--brand-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand-primary) 25%,transparent)}
.search-field-shell .search>svg{width:17px;height:17px;color:var(--muted)}
.search-field-shell input{width:100%;min-width:0;height:100%;font-size:14px;outline:none!important;box-shadow:none!important;background:transparent;color:inherit;border:0;padding:0}
.search-field-shell input::-webkit-search-cancel-button{display:none}
.search-field-shell input::placeholder{color:var(--muted);opacity:1}
.search-field-shell [data-search-clear]{display:grid;place-items:center;padding:4px;color:var(--muted);border-radius:50%;flex:0 0 26px;height:26px}
.search-field-shell [data-search-clear] svg{width:15px;height:15px}
.search-field-shell input:placeholder-shown+[data-search-clear]{visibility:hidden}
#search-suggestions{position:absolute;top:calc(100% + 8px);left:0;width:min(100%,430px);max-height:min(62vh,600px);overflow:auto;overscroll-behavior:contain;border:1px solid #ffffff19;border-radius:12px;padding:6px;background:#222226f5;color:#f5f5f7;backdrop-filter:blur(24px);box-shadow:0 16px 45px #0006;scrollbar-width:thin}
#search-suggestions[hidden]{display:none}
#search-suggestions [role=option]{display:flex;align-items:center;width:100%;gap:12px;padding:10px 9px;text-align:left;border-radius:7px;min-height:64px;transition:background .15s;color:inherit}
#search-suggestions [role=option]+[role=option]{border-top:1px solid #ffffff09}
#search-suggestions [data-search-submit]{min-height:42px;font-size:13px;color:var(--muted)}
#search-suggestions [data-search-submit]>svg{width:17px;height:17px;margin:0 3px}
#search-suggestions img,.search-recent-grid img{width:46px;height:46px;object-fit:cover;border-radius:5px;flex-shrink:0}
#search-suggestions img.round,.search-recent-grid img.round{border-radius:50%}
#search-suggestions [role=option]>span,.search-recent-grid button>span{display:flex;flex-direction:column;gap:4px;min-width:0}
#search-suggestions strong,.search-recent-grid strong{font-size:14px;line-height:1.3;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#search-suggestions small,.search-recent-grid small{font-size:12px;line-height:1.3;color:#b7b7bf;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#search-suggestions [role=option]:hover,#search-suggestions [aria-selected=true]{background:#ffffff10}
.search-suggestion-empty{padding:14px 9px;font-size:13px;color:var(--muted)}
.search-browse .page-heading{font-size:22px;line-height:1.3;letter-spacing:-.45px;font-weight:650;margin:0 0 18px}
.search-category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}
.search-category{position:relative;isolation:isolate;aspect-ratio:1.65;border-radius:10px;overflow:hidden;background:var(--category-color,#344459);color:white}
.search-category img{width:100%;height:100%;object-fit:cover;object-position:center 30%;filter:saturate(.75);transition:transform .3s ease}
.search-category::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0000 20%,#0003 50%,#000b);z-index:1}
.search-category span{position:absolute;left:15px;right:15px;bottom:14px;font-size:17px;font-weight:650;line-height:1.2;z-index:2;color:#fff;text-shadow:0 1px 8px #0005}
@media(hover:hover){.search-category:hover img{transform:scale(1.025)}}
.search-recent{margin-bottom:38px}.search-recent .section-head{margin-bottom:15px}.search-recent h2{font-size:21px;font-weight:650;letter-spacing:-.35px}.search-recent [data-search-clear-recent]{color:var(--brand-primary);font-size:13px;padding:8px}
.search-recent-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.search-recent-grid>button{display:flex;align-items:center;gap:12px;min-width:0;padding:13px 15px;border-radius:9px;background:#ffffff08;border:1px solid var(--line);text-align:left;color:inherit}
.search-recent-grid>button>svg{width:28px;height:28px;margin:9px;color:var(--muted)}
:root[data-theme=light] .search-field-shell .search{background:#f5f5f7;color:#242426}
:root[data-theme=light] #search-suggestions{background:#fffffff5;color:#242426;border-color:#0002;box-shadow:0 14px 38px #0002}
:root[data-theme=light] #search-suggestions small,:root[data-theme=light] .search-recent-grid small{color:#68686e}
:root[data-theme=light] #search-suggestions [role=option]+[role=option]{border-top-color:#0000000c}
:root[data-theme=light] #search-suggestions [role=option]:hover,:root[data-theme=light] #search-suggestions [aria-selected=true]{background:#00000008}
:root[data-theme=light] .search-recent-grid>button{background:#f6f6f8}
@media(max-width:1400px){.search-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.search-recent-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.search-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.search-recent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.search-field-shell{margin-bottom:28px}.search-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.search-category{aspect-ratio:1.35}.search-category span{font-size:15px;left:12px;right:12px;bottom:12px}.search-browse .page-heading{font-size:21px}#search-suggestions{width:100%;max-height:min(56dvh,440px)}.search-recent-grid{gap:10px}.search-recent-grid>button{padding:10px;gap:9px}.search-recent-grid img{width:36px;height:36px}.search-recent-grid strong{font-size:13px}}
@media(prefers-reduced-motion:reduce){.search-category img,.search-field-shell .search,#search-suggestions [role=option]{transition:none}}
#search-suggestions:not([hidden]){animation:search-suggest-in .14s ease-out}
#search-results>.page-heading{font-size:25px;line-height:1.3;letter-spacing:-.5px}
@keyframes search-suggest-in{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#search-suggestions:not([hidden]){animation:none}}
