body.app-mode .app-catalog {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 28px
    max(16px, env(safe-area-inset-left, 0px));
  color: #f5f5f6;
  background: #111213;
}
body.app-mode .app-catalog-nav {
  margin: 0 -16px 12px;
}
body.app-mode .app-category-row,
body.app-mode .app-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
body.app-mode .app-category-row::-webkit-scrollbar,
body.app-mode .app-tag-row::-webkit-scrollbar {
  display: none;
}
body.app-mode .app-category-row {
  min-height: 50px;
  padding: 7px 16px;
}
body.app-mode .app-category-chip,
body.app-mode .app-tag-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 240px;
  color: #c4c1c7;
  font-size: 16px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.app-mode .app-category-chip {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #3b1b2a;
  color: #ee97b7;
  line-height: 1.25;
  font-weight: 500;
}
body.app-mode .app-category-chip.active {
  color: #fff;
  background: #f42d73;
}
body.app-mode .app-tag-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
}
body.app-mode .app-tag-row {
  flex: 1;
  min-width: 0;
  gap: 7px;
}
body.app-mode .app-tag-chip {
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 3px;
  background: #2b2c30;
  font-size: 12px;
  color: #b7b8bf;
}
body.app-mode .app-tag-chip.active {
  color: #ff6ba0;
  background: #512237;
}
body.app-mode .app-filter-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 0 0 10px;
  border: 0;
  border-left: 1px solid #29252b;
  border-radius: 0;
  background: #111213;
  color: #d0cbd3;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
body.app-mode .app-filter-button .icon {
  width: 16px;
  height: 16px;
}
body.app-mode .app-filter-button.active {
  color: #fa3978;
}
body.app-mode .app-filter-count {
  font-size: 11px;
}
body.app-mode .app-featured {
  position: relative;
  aspect-ratio: 2.45 / 1;
  overflow: hidden;
  border-radius: 10px;
  background: #211a23;
  margin: 0 0 17px;
}
body.app-mode .app-featured-link {
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
}
body.app-mode .app-featured-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.app-mode .app-featured-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, #08050ba8 100%);
}
body.app-mode .app-featured-copy {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 23px;
}
body.app-mode .app-featured-copy small {
  font-size: 10px;
  color: #f3e9ef;
}
body.app-mode .app-featured-copy h2 {
  margin: 4px 0 0;
  font-size: clamp(17px, 3vw, 25px);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.app-mode .app-featured-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
}
body.app-mode .app-featured-dots button {
  position: relative;
  width: 28px;
  height: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
body.app-mode .app-featured-dots button::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 8px;
  background: #ffffff79;
}
body.app-mode .app-featured-dots button.active::before {
  background: #fa3978;
  width: 13px;
  left: 7px;
}
body.app-mode .app-catalog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 13px;
}
body.app-mode .app-catalog[data-catalog-kind="explore"] .app-catalog-heading {
  display: none;
}
body.app-mode .app-catalog-heading > div {
  min-width: 0;
}
body.app-mode .app-catalog-heading h1 {
  margin: 0;
  color: #eeecf0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
body.app-mode .app-catalog-heading p {
  margin: 5px 0 0;
  color: #817b88;
  font-size: 12px;
  overflow-wrap: anywhere;
}
body.app-mode .app-catalog-count {
  flex: 0 0 auto;
  font-size: 12px;
  color: #827b89;
}
body.app-mode .app-poster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px 8px;
}
body.app-mode .app-video-card {
  min-width: 0;
}
body.app-mode .app-video-poster {
  position: relative;
  display: block;
  aspect-ratio: 0.69;
  border-radius: 7px;
  overflow: hidden;
  background: #211d25;
  color: #fff;
  isolation: isolate;
}
body.app-mode .app-video-poster::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, #0009);
  pointer-events: none;
  z-index: 0;
}
body.app-mode .app-video-poster > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
body.app-mode .app-poster-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #877e90;
}
body.app-mode .app-status-badge,
body.app-mode .app-access-badge {
  position: absolute;
  top: 5px;
  z-index: 1;
  max-width: calc(60% - 8px);
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.app-mode .app-status-badge {
  left: 5px;
  color: #fff;
  background: #25222bd6;
}
body.app-mode .app-status-badge[data-tone="new"] {
  background: #25a663;
}
body.app-mode .app-status-badge[data-tone="serial"] {
  background: #db4b56;
}
body.app-mode .app-status-badge[data-tone="complete"] {
  background: #ed347b;
}
body.app-mode .app-access-badge {
  right: 5px;
  color: #ffc65d;
  background: #19131ee8;
}
body.app-mode .app-access-badge[data-access="free"] {
  color: #fff;
  background: #28ad69;
}
body.app-mode .app-access-badge[data-access="coin"] {
  color: #34270e;
  background: #edb84c;
}
body.app-mode .app-access-badge[data-access="vip"],
body.app-mode .app-access-badge[data-access="vip_or_coin"],
body.app-mode .app-access-badge[data-access="vip_and_coin"] {
  background: #7f57d6;
  color: #fff;
}
body.app-mode .app-access-badge[data-access="mixed"] {
  font-size: 9px;
}
body.app-mode .app-video-heat {
  position: absolute;
  left: 6px;
  bottom: 7px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: #f2edf4;
}
body.app-mode .app-video-heat .icon {
  width: 11px;
  height: 11px;
}
body.app-mode .app-card-rank {
  position: absolute;
  bottom: 5px;
  right: 7px;
  z-index: 1;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  font-style: italic;
  text-shadow: 0 2px 6px #000;
}
body.app-mode .app-video-title {
  margin: 7px 0 5px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}
body.app-mode .app-video-title a {
  display: block;
  color: #f0edf2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
body.app-mode .app-video-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow: hidden;
  min-height: 17px;
}
body.app-mode .app-video-tags > span {
  min-width: 0;
  flex: 0 1 auto;
  padding: 2px 4px;
  border-radius: 3px;
  color: #aaa1b1;
  background: #1b171f;
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.app-mode .app-catalog-empty .empty {
  padding: 44px 12px;
  border: 0;
  background: transparent;
}
body.app-mode .app-catalog-empty .empty h2 {
  font-size: 17px;
}
body.app-mode .app-catalog-empty .empty p {
  color: #948b9b;
  font-size: 13px;
}
body.app-mode .app-catalog .pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
  font-size: 11px;
  color: #aaa0b2;
}
body.app-mode .app-catalog .pagination .button,
body.app-mode .app-catalog-empty .button {
  min-height: 40px;
  padding: 9px 12px;
  border-color: #3d2431;
  background: #21131c;
  color: #fa6b9c;
  font-size: 12px;
}
body.app-mode .app-filter-dialog {
  width: min(520px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  color: #eeebf2;
  background: #17131c;
  border: 1px solid #332735;
  border-radius: 18px;
  overflow: auto;
}
body.app-mode .app-filter-dialog::backdrop,
body.app-mode .app-filter-backdrop {
  background: #000b;
  backdrop-filter: blur(4px);
}
body.app-mode .app-filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  padding: 14px;
}
body.app-mode .app-filter-dialog[data-fallback="open"] {
  position: relative;
  display: block;
}
body.app-mode .app-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid #2c232f;
}
body.app-mode .app-filter-header h2 {
  margin: 0;
  font-size: 18px;
}
body.app-mode .app-filter-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #c9bdce;
  font-size: 27px;
  cursor: pointer;
}
body.app-mode .app-filter-dialog form {
  padding: 18px;
}
body.app-mode .app-filter-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 12px;
}
body.app-mode .app-filter-fields label {
  display: grid;
  min-width: 0;
  gap: 8px;
  margin: 0;
  color: #afa3b7;
  font-size: 13px;
}
body.app-mode .app-filter-fields select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 9px;
  background: #241b29;
  border: 1px solid #3a2b40;
  border-radius: 8px;
  color: #e8e0ec;
  font: inherit;
  font-size: 14px;
}
body.app-mode .app-filter-fields select:disabled {
  opacity: 0.6;
}
body.app-mode .app-filter-note {
  font-size: 12px;
  color: #93869d;
  margin: 15px 0 0;
}
body.app-mode .app-filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
body.app-mode .app-filter-actions button {
  flex: 1;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #3a293d;
  border-radius: 8px;
  color: #c9bacf;
  background: #261b2b;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
body.app-mode .app-filter-actions .app-filter-apply {
  background: #f52e73;
  border-color: #f52e73;
  color: #fff;
}
body.app-mode .app-catalog a:focus-visible,
body.app-mode .app-catalog button:focus-visible,
body.app-mode .app-filter-dialog button:focus-visible,
body.app-mode .app-filter-dialog select:focus-visible {
  outline: 2px solid #ff6499;
  outline-offset: 2px;
}
@media (max-width: 620px) {
  body.app-mode .app-filter-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    max-height: 85dvh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  body.app-mode .app-filter-backdrop {
    padding: 0;
  }
}
