/* 18494 · PLUS genre/search layout; search lives inside the genre tab.
   Keep home ranking, author, editor, reader and stored search/filter behavior untouched. */
@media (min-width: 621px) {
  /* The search field and its mode selector are one horizontal control group. */
  body[data-plus-view="genre"]
    .plus-discovery-head-tools {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-end;
    width: min(100%, 438px);
    gap: 10px;
  }
  body[data-plus-view="genre"]
    .plus-discovery-head-tools > .plus-search-shell {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }
  body[data-plus-view="genre"]
    .plus-discovery-head-tools > .plus-search-mode-tabs {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}
@media (min-width: 1041px) {
  /* The standalone genre view has no hero banner; close the gap under the
     sticky header. The title and controls now take one row, not two. */
  body[data-plus-view="genre"] .plus-platform { padding-top: 7px; }
  body[data-plus-view="genre"] .plus-discover { padding-top: 0; }
  body[data-plus-view="genre"] .plus-category-row { margin-top: 12px; }
}
@media (min-width: 621px) and (max-width: 1040px) {
  /* Tablet keeps its existing stacked heading but without the double-height
     control group. Mobile (<=620px) retains its own layout rules. */
  body[data-plus-view="genre"] .plus-discover { padding-top: 12px; }
  body[data-plus-view="genre"] .plus-discovery-head-tools { width: min(100%, 438px); }
}
