.team-autocomplete{position:relative;display:inline-block;max-width:100%;text-align:left}
.team-suggestions{position:absolute;top:100%;left:0;z-index:1000;width:360px;max-width:calc(100vw - 32px);max-height:390px;overflow:auto;background:#101b2b;color:#f4f7fb;border:1px solid #506176;border-radius:10px;box-shadow:0 12px 32px #0008;margin-top:6px}
.team-suggestions[hidden]{display:none}
.team-suggestions a{display:flex;align-items:center;gap:12px;padding:10px 12px;color:inherit;text-decoration:none}
.team-suggestions a:hover,.team-suggestions a[aria-selected=true]{background:#283e56}
.team-suggestions img,.team-shirt-placeholder{width:40px;height:40px;object-fit:contain;flex-shrink:0}
.team-shirt-placeholder{display:grid;place-items:center;border-radius:8px;background:#33465b;color:#d8e4f1;font-size:24px}
.team-suggestions strong,.team-suggestions small{display:block;white-space:normal}
.team-suggestions small{color:#bdcad9;margin-top:3px}
.team-suggestions p{padding:12px;margin:0}
.team-search-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

.search-player-shirt{display:inline-block;width:44px;height:48px;vertical-align:middle;margin-right:8px}.search-player-shirt img,.search-player-shirt svg{max-width:100%;max-height:100%}

/* The JS wrapper must fill the visible search field, including after injection. */
.global-search > .team-autocomplete{flex:1 1 0%;width:100%;min-width:0}
.global-search > .team-autocomplete input{box-sizing:border-box;width:100%;min-width:0}
