/* Catalog pages: /browse/, /movies/, /tv/, /cartoons/.
   They share one shape (sheet header, a search + sort + maybe genre bar —
   the .finder console — a poster
   grid, a pager), so one stylesheet adapts all four. Every
   rule is scoped by body.page-catalog so it can't reach another page. The
   shared cards, grid and controls are theoria.css's; this only retunes them
   where these four pages' toolbar and pager need it. */

/* --- Small screens ---------------------------------------------------------
   The sheet header leaves a --space-9 gap before the toolbar, which on a phone
   is a fifth of the first screen spent on nothing. Tighten it so the search
   field is visible without scrolling. The toolbar's own phone layout is
   theoria.css's, shared with People and Studios. */
@media (max-width: 720px) {
  .page-catalog .sheet-head + .sheet-section {
    margin-top: var(--space-6);
  }
}

@media (pointer: coarse) {
  .page-catalog .pagination a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* --- TV ----------------------------------------------------------------------
   The toolbar is the remote's way into the page, so it is sized as targets
   rather than as a laptop toolbar: taller pills, bigger labels, and a lime
   frame on the focused segment. Only html.is-tv keys this; a TV's media
   queries still see the whole screen. */
html.is-tv .page-catalog .sheet-head + .sheet-section {
  margin-top: var(--space-7);
}

/* The filter console sizes itself for TV in theoria.css. The pager is the
   other way down the catalog, so it gets target-sized links. */
html.is-tv .page-catalog .pagination {
  gap: var(--space-5);
}

html.is-tv .page-catalog .pagination a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding-inline: var(--space-6);
  font-size: var(--text-sm);
}

html.is-tv .page-catalog .empty {
  font-size: var(--text-md);
  padding: var(--space-8) var(--space-6);
}
