/* One navigation line; type selection stays out of the way until requested. */
.masthead { padding-top: 18px; padding-bottom: 18px; }
.collection .intro { padding: 26px 0 16px; }
.collection .intro h1 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; margin: 0; letter-spacing: -.04em; }
.library-navigation { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.collection .view-nav { border: 0; gap: 28px; min-width: 0; }
.collection .view-nav a { padding: 12px 0; }
.library-tools { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.collection-count { margin: 0; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.type-menu { position: relative; }
.type-menu > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0 8px 8px; cursor: pointer; font-size: 13px; color: var(--muted); }
.type-menu > summary:hover, .type-menu[open] > summary, .type-menu > summary.filter-active { color: var(--ink); }
.type-menu > summary.filter-active { font-weight: 600; }
.type-menu > summary:focus-visible, .type-popover a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.type-menu > summary svg { flex-shrink: 0; }
.type-popover { position: absolute; z-index: 20; right: 0; top: calc(100% + 7px); width: 210px; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 10px 30px rgba(24,38,41,.10); }
.filter-caption { margin: 5px 10px 8px; color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.type-popover a { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 8px 10px; font-size: 13px; text-decoration: none; border-radius: 2px; }
.type-popover a:hover { background: rgba(24,38,41,.045); }
.type-popover a[aria-current] { font-weight: 600; }
.type-popover a span { font-size: 12px; }
.collection-status:empty { display: none; }
.collection .film-grid { gap: 32px 24px; }
.collection .film-card h2 { font-size: 23px; margin-bottom: 9px; }
@media (max-width: 600px) {
  .masthead { padding-top: 14px; padding-bottom: 14px; }
  .collection .intro { padding: 20px 0 12px; }
  .library-navigation { gap: 12px; margin-bottom: 20px; }
  .collection .view-nav { gap: 16px; }
  .collection .view-nav a { padding: 12px 0; font-size: 11px; }
  .library-tools { gap: 0; }
  .collection-count { display: none; }
  .type-menu > summary { padding-left: 0; gap: 5px; font-size: 11px; }
  .type-menu > summary svg { width: 15px; }
  .type-menu > summary span { max-width: 65px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .type-popover a { min-height: 44px; }
  .collection .film-grid { gap: 28px; }
}
