/* 16 Nov cohesion pass. Loaded last. Laptop-height screens (most laptops are 720–900 px tall) showed one song above
   the player: the genre grid and the list toolbar took the room. Here the chips are one stable, scrollable row and the
   toolbar is one line, so the first screen holds the music. Phones (max-width 760px) are untouched. */
@media (min-width: 761px) and (max-height: 900px) {
  #shell .index2 > .genre-row > .gchips {
    grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: minmax(132px, 1fr);
    height: 28px !important; overflow-x: auto !important; overflow-y: hidden !important; scrollbar-width: none;
  }
  #shell .index2 > .genre-row > .gchips::-webkit-scrollbar { display: none; }
  #shell .index2 .genre-tail { margin-top: 6px !important; }
  #shell .view-main .listpanel > .tabsbar { min-height: 0 !important; padding-bottom: 6px !important; position: relative; }
  #shell .view-main .listpanel > .tabsbar > .count { position: absolute; right: 12px; bottom: -14px; }
}
/* A person's page is where the loop starts ("lurk someone"), and on a laptop it showed none of their likes until you
   scrolled: a 112 px banner, a 112 px avatar and a 42 px LIKES / BLEND switch came first. Same pieces, shorter. */
@media (min-width: 761px) and (max-height: 900px) {
  #shell #person-head { grid-template-rows: 60px auto auto auto !important; }
  #shell #person-head .ph-banner { height: 60px !important; }
  #shell #person-head .p-avatar { width: 84px !important; height: 84px !important; margin-top: -34px !important; }
  #shell #person-head .p-avatar img { width: 100% !important; height: 100% !important; }
  #shell #person-head .ph-info { padding-top: 6px !important; }
  #shell #person-head .ph-stats { padding-top: 6px !important; }
  #shell #person-modes { margin: 6px 0 !important; }
  #shell #person-modes > button { height: 32px !important; padding-top: 6px !important; padding-bottom: 6px !important; }
}

/* THE DECK's keys on the page (deck-core.js, deck.js): CTRL K in the search box, CALENDAR on the year rail,
   VIEWS beside RESET FILTERS. Phones get the same three as chips in the filter row. */
.search .search-jump { flex: 0 0 auto; background: none; border: 1px solid currentColor; color: inherit; opacity: .6; padding: 4px 5px 3px; border-radius: 0; }
.search .search-jump:hover, .search .search-jump:focus-visible { opacity: 1; color: var(--o); outline: 0; }
.search:focus-within .search-jump { display: none; }
#shell .year-rail .rail-cal { display: block; width: calc(100% - 12px); margin: 0 6px 8px; padding: 6px 2px 5px; font: 700 8px/1 var(--pixel); letter-spacing: .04em; background: var(--ink); color: var(--paper); border: 0; border-radius: 0; cursor: pointer; text-align: center;
  clip-path: polygon(2px 0, calc(100% - 2px) 0, calc(100% - 2px) 2px, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 2px calc(100% - 2px), 0 calc(100% - 2px), 0 2px, 2px 2px); }
#shell .year-rail .rail-cal:hover, #shell .year-rail .rail-cal:focus-visible { background: var(--o); color: var(--ink); outline: 0; }
#shell .tabsbar .deck-views-btn { display: inline-flex; align-items: center; gap: 4px; }
#shell .tabsbar .deck-views-btn .ic { width: 10px; height: 10px; }
.mobile-filterbar .m-deck { display: none; }
@media (max-width: 760px) {
  .search .search-jump, #shell .tabsbar .deck-views-btn { display: none !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .m-deck { order: 6; display: inline-flex !important; }
  html { --deck-bottom: 120px; }
}
#more-modal .m-deck, #more-modal [data-deck-views], #more-modal [data-deck-cal] { display: none !important; }
