/* Homepage discovery stays compact; only the visual area yields space. */
.home-search{flex:0 0 auto;min-width:0;margin:0;display:flex;flex-direction:column;gap:5px}
.home-search-row{display:flex;align-items:stretch;gap:8px;min-width:0;padding:4px;background:#111;border:1px solid #404040;border-radius:15px;box-shadow:0 3px 18px #0003}
.home-search-row:focus-within{border-color:#bbb;box-shadow:0 0 0 2px #ffffff12}
#homeSearch{flex:1;width:0;min-width:0;height:40px;padding:0 10px;color:#f5f5f5;background:transparent;border:0;border-radius:10px;font-size:16px;line-height:1.5;outline-offset:0;scroll-margin-top:12px}
#homeSearch::placeholder{color:#a5a5a5;font-size:12px;opacity:1}
.home-search-row button{flex:0 0 auto;min-width:62px;min-height:42px;padding:0 15px;border:0;border-radius:11px;background:#f1f1f1;color:#111;font-size:14px;font-weight:700}
.home-search-row button:hover{background:#fff}
.home-search-row button:focus-visible{outline-offset:2px}
#homeSearchHint{padding:0 4px;color:#8e8e8e;font-size:10px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* The shell was already height-bound. Make the flexible visual stage absorb
   the added search row instead of shrinking the controls or clipping them. */
.app{min-height:0}
.app>.player{min-height:140px}
.app>.player .visual-stage{min-height:24px;overflow:hidden}
.app>.player .visual-stage .art{width:min(190px,20dvh)!important}
@media(max-width:360px){
  .app{padding-left:12px;padding-right:12px}
  .home-search-row{gap:4px}
  #homeSearch{padding-left:7px;padding-right:7px}
  #homeSearch::placeholder{font-size:11px}
  .home-search-row button{min-width:54px;padding:0 11px}
}
@media(max-height:650px){
  .home-search{gap:0}
  #homeSearchHint{display:none}
  .home-search-row{padding:3px;border-radius:13px}
  #homeSearch{height:36px}
  .home-search-row button{min-height:38px}
  .app>.player .visual-stage .art{width:min(95px,16dvh)!important}
  .app>.player{gap:4px;min-height:140px}
}
@media(max-height:480px){
  /* Short landscape and an open keyboard can be shorter than the controls.
     Allow document scrolling in that case, keeping every control reachable. */
  .app{height:auto;min-height:100dvh;max-height:none}
  .app>.player{flex:0 0 auto;min-height:140px}
  .app>.player .visual-stage{height:40px!important;flex:0 0 40px}
  .app>.player .visual-stage .art{width:55px!important}
}
