.category-genres { align-items: center; }
.category-genres a[aria-current="page"], .filters a[aria-current="true"] {
  background: var(--green);
  color: var(--green-ink);
}
.category-genres a { white-space: nowrap; }
.category-empty { color: var(--muted); padding-block: 32px; }
.portrait-catalog .poster-link { aspect-ratio: 9 / 16; }
.portrait-detail .detail-poster { aspect-ratio: 9 / 16; }
.portrait-player-content { max-width: 1120px; margin-inline: auto; }
.player-layout--portrait {
  --portrait-height: min(720px, max(390px, calc(100svh - 150px)));
  display: grid;
  grid-template-columns: minmax(0, calc(var(--portrait-height) * 9 / 16)) minmax(260px, 1fr);
  align-items: start;
  gap: 18px;
  background: transparent;
  overflow: visible;
}
.player-layout--portrait .player-screen {
  width: min(100%, calc(var(--portrait-height) * 9 / 16));
  aspect-ratio: 9 / 16;
  min-height: 0;
  justify-self: center;
  border-radius: 14px;
  overflow: hidden;
}
.player-layout--portrait .player-side {
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
  max-height: var(--portrait-height);
}
.player-layout--portrait .player-side .episodes { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
.player-layout--portrait .player-side .episodes a { min-height: 44px; display: grid; place-items: center; overflow-wrap: anywhere; }
.player-layout--portrait .playing-title { margin: 0 0 7px; font-size: clamp(1.3rem, 3vw, 1.95rem); overflow-wrap: anywhere; }
.player-layout--portrait .cms-player video { object-fit: contain; }
.player-layout--portrait .sources { margin-block: 12px; }
@media (max-width: 750px) {
  .player-layout--portrait {
    --portrait-height: min(720px, max(380px, calc(100svh - 136px)));
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 12px 0 0;
  }
  .player-layout--portrait .player-side { max-height: none; padding: 16px; }
  .portrait-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .portrait-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.category-grid:empty::before { content: none; }
