/* Category pages (Movies, etc.). Do not edit site.css from here.
   Type-page typography, genre bar, sort, grid, and pager are copied from
   the live nws.css (read-only GET, 2026-11-12). */
.type-page {
  /* Match the header/nav inner edges: --max 72rem, 20px side pad,
     32px at 1200px+ (same as header.site > .hdr / .hdr-nav-inner). */
  --cat-pad-left: var(--page-px, 20px);
  --cat-pad-right: var(--page-px, 20px);
  box-sizing: border-box;
  width: 100%;
  max-width: var(--max, 72rem);
  margin: 0 auto;
  padding: 28px var(--cat-pad-right) 80px var(--cat-pad-left);
}
@media (width >= 1200px) {
  .type-page {
    --cat-pad-left: 32px;
    --cat-pad-right: 32px;
  }
}
@media (max-width: 767px) {
  /* Align with header.site > .hdr mobile padding in site.css */
  .type-page {
    --cat-pad-left: 16px;
    --cat-pad-right: 10px;
  }
}
.type-kicker {
  color: #595959;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
/* Live nws.css page title (h1, then h1.type-h1). Desktop @media (width>=640px). */
h1.type-h1 {
  margin: 8px 0 0;
  color: var(--red, #d51920);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: -.025em;
  line-height: 1.1;
  text-wrap: balance;
  text-transform: none;
}
@media (width >= 640px) {
  h1.type-h1 {
    font-size: 3rem;
    line-height: 1;
  }
}
h1.type-h1 .type-lead {
  align-items: center;
  gap: 12px;
  display: inline-flex;
}
h1.type-h1 .type-ico {
  object-fit: contain;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.type-lede {
  color: #595959;
  max-width: 42rem;
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.5;
}
.type-rec { margin: 12px 0 0; }
.type-rec a {
  color: var(--red, #d51920);
  font-size: 14px;
  font-weight: 500;
}
.type-rec a:hover { color: #111; }

.type-genre { margin-top: 18px; }
.type-genre .genre-bar { margin-top: 0; }
.genre-bar { margin-top: 24px; }
.genre-label {
  letter-spacing: .025em;
  text-transform: uppercase;
  color: var(--muted, #595959);
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
}
.genre-track-wrap {
  margin-left: calc(-1 * var(--cat-pad-left, var(--page-px, 20px)));
  margin-right: calc(-1 * var(--cat-pad-right, var(--page-px, 20px)));
  position: relative;
  overflow: hidden;
}
.genre-track-wrap:after {
  content: "";
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(270deg, #fff 0 28%, #ffffff8c 58%, #0000 100%);
  width: 96px;
  position: absolute;
  top: 0;
  bottom: 8px;
  right: 0;
}
.genre-track-wrap.at-end:after { opacity: 0; }
.genre-track {
  padding: 6px 4rem 12px var(--cat-pad-left, var(--page-px, 20px));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overflow-x: auto;
}
.genre-track::-webkit-scrollbar { display: none; }
.genre-track-list { gap: 8px; width: max-content; display: flex; }
.genre-track-list .chip {
  color: #111;
  background: #f7f7f7;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 999px;
  flex: none;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.genre-track-list .chip:hover { background: #ececec; }
.genre-track-list .chip.woke {
  border: 1px solid var(--red, #d51920);
  color: #111;
  background: #fff;
  font-weight: 500;
}
.genre-track-list .chip.woke:hover { background: var(--red, #d51920); color: #fff; }
.genre-track-list .chip.on {
  background: #111;
  color: #fff;
}
.genre-track-list .chip.woke.on {
  background: var(--red, #d51920);
  color: #fff;
  border-color: var(--red, #d51920);
}
.genre-nudge {
  z-index: 2;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  background: #111;
  border: 0;
  border-radius: 50%;
  place-items: center;
  width: 48px;
  height: 48px;
  transition: opacity .18s;
  display: grid;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 1px 3px #0000001a, 0 1px 2px -1px #0000001a;
}
.genre-nudge.left { left: 8px; }
.genre-nudge.right { right: 8px; }
.genre-track-wrap:hover .genre-nudge:not(.is-off),
.genre-track-wrap:focus-within .genre-nudge:not(.is-off) {
  opacity: 1;
  pointer-events: auto;
}
.genre-nudge:disabled,
.genre-nudge.is-off { cursor: default; }
.genre-track-wrap:hover .genre-nudge.is-off,
.genre-track-wrap:focus-within .genre-nudge.is-off {
  opacity: 0;
  pointer-events: none;
}

/* Mobile genre <select>: same chrome as .show-sort-dd / .theater-dd-btn.
   Hidden from 640px up, where the chip rail is shown (same breakpoint as the 3-col grid). */
.genre-select-wrap {
  display: none;
  width: min(100%, 28rem);
  margin: 0;
}
.genre-select {
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  color: #111;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23595959' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") right 14px center/18px no-repeat;
  border: 1px solid #dedfe1;
  border-radius: 999px;
  width: 100%;
  height: 56px;
  min-height: 56px;
  padding: 0 40px 0 18px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 0 0 1px #0000000a, 0 1px 2px -1px #0000000a, 0 4px 16px -4px #0000000f;
}
.genre-select:focus {
  border-color: #1111114d;
  outline: none;
  box-shadow: 0 0 0 2px #11111126;
}
@media (max-width: 639px) {
  .type-genre .genre-bar { display: none; }
  .genre-select-wrap { display: block; }
}

.theater-dd { position: relative; }
.show-sort-dd { width: min(100%, 28rem); margin: 16px 0 0; }
.theater-dd-btn {
  color: #111;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  cursor: pointer;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23595959' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") right 14px center/18px no-repeat;
  border: 1px solid #dedfe1;
  border-radius: 999px;
  width: 100%;
  height: 56px;
  min-height: 56px;
  padding: 0 40px 0 18px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 0 0 1px #0000000a, 0 1px 2px -1px #0000000a, 0 4px 16px -4px #0000000f;
}
.theater-dd.open .theater-dd-btn,
.theater-dd-btn:focus {
  border-color: #1111114d;
  outline: none;
  box-shadow: 0 0 0 2px #11111126;
}
.theater-dd-list {
  z-index: 40;
  background: #fff;
  border: 1px solid #dedfe1;
  border-radius: 16px;
  max-height: min(22rem, 70vh);
  margin: 0;
  padding: 6px;
  list-style: none;
  position: absolute;
  inset: calc(100% + 6px) 0 auto;
  overflow: auto;
  box-shadow: 0 8px 28px -8px #0000002e;
}
.theater-dd-item {
  cursor: pointer;
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  color: #111;
  text-decoration: none;
}
.theater-dd-item:hover,
.theater-dd-item:focus { background: #f7f7f7; }
.show-sort-dd .theater-dd-item.on { background: #f7f7f7; font-weight: 600; }

.type-shelf-grid { margin-top: 32px; min-width: 0; }
.type-poster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 14px;
  align-items: start;
}
.type-poster-grid > .poster-tile {
  width: auto;
  max-width: none;
  flex: none;
  min-width: 0;
}
@media (min-width: 640px) {
  .type-poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .type-poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .type-poster-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.type-poster-grid .poster-stage {
  width: 100%;
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.type-poster-grid .poster-tile.shelf-tall .poster-stage { aspect-ratio: 2 / 3; }
.type-poster-grid .poster-tile.shelf-sq .poster-stage { aspect-ratio: 1 / 1; }
.type-poster-grid .poster-tile.shelf-wide .poster-stage { aspect-ratio: 16 / 9; }
.type-poster-grid .poster-frame { width: 100%; height: 100%; }
.type-poster-grid .poster-art-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.type-poster-grid .poster-hit {
  display: block;
  color: #111;
  text-decoration: none;
  min-width: 0;
}
.type-poster-grid .poster-art { aspect-ratio: auto; }
.type-poster-grid .star-bit { color: #111; }

/* Badge sits on the poster, not at the rail's 168px math. */
.type-poster-grid .poster-tile .type-badge {
  position: absolute;
  right: 8px;
  top: auto;
  bottom: 8px;
  z-index: 3;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.type-poster-grid .type-badge .type-ico {
  width: 22px;
  height: 22px;
  display: block;
  background: var(--ico) center / contain no-repeat;
  filter: drop-shadow(0 0 1px #fff);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}
.pager .muted { color: var(--muted, #595959); font-size: 14px; margin-right: 8px; }
.pager-num {
  display: inline-flex;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, #e6e6e6);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  color: #111;
  background: #fff;
  text-decoration: none;
  font-weight: 500;
}
.pager-num.on,
.pager-num[aria-current="page"] {
  background: #111;
  color: #fff;
  border-color: #111;
}
.pager a.btn.ghost,
.pager .pager-next {
  border: 1px solid var(--line, #e6e6e6);
  color: #111;
  background: #fff;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  text-decoration: none;
}
.pager-ellipsis {
  display: inline-flex;
  min-width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  color: #595959;
  font-size: 14px;
  letter-spacing: .08em;
  user-select: none;
}
.pager-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
}
.pager-jump input {
  box-sizing: border-box;
  width: 4.75rem;
  height: 2.25rem;
  padding: 0 10px;
  border: 1px solid var(--line, #e6e6e6);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: #111;
  background: #fff;
}
.pager-jump input:focus {
  outline: 2px solid #111;
  outline-offset: 2px;
}
.pager-jump .pager-go {
  border: 1px solid var(--line, #e6e6e6);
  color: #111;
  background: #fff;
  border-radius: 999px;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pager-jump .pager-go:hover { border-color: #111; }
.pager-jump-hint {
  color: var(--red, #d51920);
  font-size: 13px;
  font-weight: 500;
}

/* Video Games platform filter: black knockout chips on desktop;
   a genre/sort-matched <select> below 640px. Games page only; js/category.js
   builds the options from data/games.json and filters the grid. */
.catalog-platforms[hidden] { display: none; }
.catalog-platforms { margin: 16px 0 0; }
.catalog-platforms .genre-label { margin-bottom: 8px; }
.platform-filters {
  border: 0;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
}
.platform-filters .type-filter {
  color: #fff;
  background: #111;
  border: 1px solid #111;
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
}
.platform-filters .type-filter .type-count { color: #ffffffb3; }
.platform-filters .type-filter:hover { background: #2a2a2a; border-color: #2a2a2a; }
.platform-filters .type-filter.on {
  background: #111;
  color: #fff;
  border-color: #111;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111;
}
.platform-filters .type-filter.on:hover { background: #2a2a2a; }
.platform-select-wrap {
  display: none;
  width: min(100%, 28rem);
  margin: 0;
}
@media (max-width: 639px) {
  .catalog-platforms .genre-label,
  .catalog-platforms .platform-filters { display: none; }
  .platform-select-wrap { display: block; }
}
