/* XLabAPK homepage: shared tokens and base */
:root {
  color-scheme: light;
  --xl-bg: #fff;
  --xl-bg-alt: #f8fafc;
  --xl-text: #1e293b;
  --xl-text-secondary: #64748b;
  --xl-accent: #e11d48;
  --xl-border: #e2e8f0;
  --xl-radius: 12px;
  --xl-radius-sm: 8px;
  --xl-container: 1200px;
  --xl-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --xl-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  background: var(--xl-bg);
  color: var(--xl-text);
  font: 400 1rem/1.55 var(--xl-font-sans);
  -webkit-font-smoothing: antialiased;
}
button, input {
  font: inherit;
}
a {
  color: inherit;
}
.xl-container {
  width: min(calc(100% - 32px), var(--xl-container));
  margin-inline: auto;
  padding-inline: 8px;
}
.xl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.xl-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.xl-menu-open {
  overflow: hidden;
}
/* Header, desktop navigation, search and mobile drawer */
.xl-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--xl-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.xl-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}
.xl-logo {
  flex: 0 0 auto;
  color: var(--xl-accent);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.xl-logo:focus-visible, .xl-desktop-nav a:focus-visible, .xl-menu-item:focus-visible, .xl-view-all:focus-visible {
  outline: 2px solid var(--xl-accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.xl-desktop-nav {
  display: none;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.xl-desktop-nav a {
  color: var(--xl-text-secondary);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
.xl-desktop-nav a:hover {
  color: var(--xl-accent);
}
.xl-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.xl-nav-btn {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--xl-text-secondary);
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.xl-nav-btn:hover, .xl-nav-btn:focus-visible {
  border-color: var(--xl-border);
  background: var(--xl-bg-alt);
  color: var(--xl-accent);
}
.xl-nav-btn:focus-visible, .xl-menu-close:focus-visible, .xl-slider-nav:focus-visible {
  outline: 2px solid var(--xl-accent);
  outline-offset: 2px;
}
.xl-nav-btn[aria-expanded="true"] {
  color: var(--xl-accent);
  background: #fff1f2;
  border-color: #fecdd3;
}
.xl-search-panel {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  max-height: min(90vh, 500px);
  overflow: hidden;
  border: 1px solid var(--xl-border);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: var(--xl-bg);
  box-shadow: 0 12px 28px rgba(15,23,42,.12);
}
.xl-search-panel[hidden] {
  display: none;
}
.xl-search-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--xl-border);
}
@media (min-width: 768px) {
  .xl-search-inner { min-height: 72px; }
}
@media (max-width: 420px) {
  .xl-search-inner { min-height: 60px; }
}
.xl-search-inner .xl-search-label {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.xl-search-back {
  display: none;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--xl-text-secondary);
  cursor: pointer;
}
.xl-search-back:hover, .xl-search-back:focus-visible {
  border-color: var(--xl-border);
  color: var(--xl-accent);
}
.xl-search-back:focus-visible { outline: 2px solid var(--xl-accent); outline-offset: 1px; }
.xl-search-close {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--xl-bg);
  color: var(--xl-text-secondary);
  cursor: pointer;
}
.xl-search-close:hover, .xl-search-close:focus-visible {
  color: var(--xl-accent);
  border-color: var(--xl-accent);
}
.xl-search-label {
  display: block;
  font-size: 0;
}
.xl-search-label input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--xl-bg);
  color: var(--xl-text);
  font-size: 1rem;
}
.xl-search-label input:focus-visible {
  outline: 2px solid var(--xl-accent);
  outline-offset: 0;
  border-color: var(--xl-accent);
}
.xl-search-label input::placeholder { color: var(--xl-text-secondary); opacity: .8; }
.xl-search-open .xl-header-inner { visibility: hidden; }
.xl-search-results {
  max-height: 400px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 10px;
  padding-bottom: 12px;
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}
.xl-search-results::-webkit-scrollbar { width: 6px; }
.xl-search-results::-webkit-scrollbar-thumb { border-radius: 6px; background: #cbd5e1; }
.xl-search-results:empty { display: none; }
.xl-search-results-title {
  margin: 0 0 6px;
  color: var(--xl-text-secondary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.xl-search-result-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.xl-search-result-list > li + li { border-top: 1px solid var(--xl-border); }
.xl-search-result {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 10px;
  color: var(--xl-text);
  text-decoration: none;
}
.xl-search-result:hover, .xl-search-result:focus-visible { background: var(--xl-bg-alt); outline: none; }
.xl-search-result:focus-visible { box-shadow: inset 0 0 0 2px var(--xl-accent); }
.xl-search-result .xl-card-media { flex: 0 0 44px; width: 44px; height: 44px; }
.xl-search-result .xl-card-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.xl-search-result-body { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.xl-search-result-topline { display: flex; min-width: 0; align-items: center; gap: 7px; }
.xl-search-result-name { overflow: hidden; font-size: .9rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.xl-search-result-badges { display: inline-flex; flex: 0 0 auto; gap: 4px; }
.xl-search-result-badges .xl-badge { padding: 2px 5px; font-size: .58rem; }
.xl-search-result-meta { overflow: hidden; color: var(--xl-text-secondary); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.xl-search-empty { padding: 18px 8px 20px; text-align: center; }
.xl-search-empty strong { display: block; color: var(--xl-text); font-size: .95rem; }
.xl-search-empty span { display: block; margin-top: 4px; color: var(--xl-text-secondary); font-size: .82rem; }
@media (max-width: 767px) {
  .xl-search-panel { max-height: 90vh; }
  .xl-search-back { display: grid; }
  .xl-search-results { max-height: min(68vh, calc(90vh - 96px)); }
}
.xl-menu-overlay {
  position: fixed;
  z-index: 70;
  inset: 0;
  visibility: hidden;
  background: rgba(15,23,42,.42);
  opacity: 0;
  transition: opacity .2s ease, visibility .2s ease;
}
.xl-menu-overlay.active {
  visibility: visible;
  opacity: 1;
}
.xl-menu-panel {
  position: fixed;
  z-index: 80;
  inset: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: min(86vw, 360px);
  padding: 76px 22px 28px;
  overflow-y: auto;
  border-left: 1px solid var(--xl-border);
  background: var(--xl-bg);
  box-shadow: -12px 0 32px rgba(15,23,42,.12);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .22s ease, visibility .22s ease;
}
.xl-menu-panel.active {
  transform: translateX(0);
  visibility: visible;
}
.xl-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--xl-border);
  border-radius: 10px;
  background: var(--xl-bg-alt);
  color: var(--xl-text-secondary);
  cursor: pointer;
}
.xl-menu-item {
  padding: 14px 4px;
  border-bottom: 1px solid var(--xl-border);
  color: var(--xl-text);
  font-weight: 600;
  text-decoration: none;
}
.xl-menu-item:hover {
  color: var(--xl-accent);
}
/* Featured slider */
.xl-featured-section {
  padding-top: 20px;
}
.xl-slider {
  position: relative;
  overflow: hidden;
  margin: 0 auto 8px;
  border-radius: 18px;
  background: #111827;
  box-shadow: 0 8px 24px rgba(15,23,42,.16);
  touch-action: pan-y;
}
.xl-slider-track {
  display: flex;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.xl-slider-card {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
}
.xl-slider-link {
  position: relative;
  display: block;
  min-height: 230px;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.xl-slider-picture, .xl-slider-img, .xl-slider-fallback {
  display: block;
  width: 100%;
  height: 100%;
}
.xl-slider-picture {
  position: absolute;
  inset: 0;
}
.xl-slider-img, .xl-slider-fallback {
  position: absolute;
  inset: 0;
}
.xl-slider-img {
  object-fit: cover;
  object-position: center;
}
.xl-slider-fallback {
  background: radial-gradient(circle at 78% 24%, rgba(225,29,72,.52), transparent 32%), linear-gradient(135deg, #1e293b, #0f172a);
}
.xl-slider-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg,rgba(0,0,0,.68) 0%,rgba(0,0,0,.34) 42%,rgba(0,0,0,.04) 76%), linear-gradient(0deg,rgba(0,0,0,.48),transparent 58%);
}
.xl-slider-content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 22px;
  color: #fff;
}
.xl-slider-editors-picks {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(250,204,21,.45);
  border-radius: 999px;
  background: rgba(15,23,42,.78);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 5px 16px rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
}
.xl-slider-editors-picks svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: #facc15;
  stroke: currentColor;
}
.xl-slider-featured-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 10px;
}
.xl-slider-featured-labels .xl-badge {
  max-width: 100%;
  min-height: 21px;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(15,18,24,.72);
  color: rgba(255,255,255,.94);
  font-size: .65rem;
  font-weight: 700;
  line-height: 1;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  backdrop-filter: blur(6px);
}
.xl-slider-app-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.xl-slider-icon {
  display: block;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 15px;
  box-shadow: 0 3px 12px rgba(0,0,0,.28);
}
.xl-slider-app-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.xl-slider-app-icon.xl-icon-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: rgba(15,23,42,.78);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
}
.xl-slider-app-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.xl-slider-title {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,.42);
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.xl-slider-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: .78rem;
  line-height: 1.2;
}
.xl-slider-meta-item {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}
.xl-slider-meta-item > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.xl-slider-meta-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.xl-slider-meta-divider {
  color: rgba(255,255,255,.48);
}
.xl-slider-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(15,23,42,.54);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.xl-slider-nav:hover {
  background: rgba(15,23,42,.82);
}
.xl-slider-nav--prev {
  left: 14px;
}
.xl-slider-nav--next {
  right: 14px;
}
.xl-slider-nav .xl-icon {
  width: 21px;
  height: 21px;
}
.xl-slider-dots {
  position: absolute;
  z-index: 4;
  top: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.xl-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  cursor: pointer;
  transition: width .18s ease, background .18s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.xl-slider-dot.is-active {
  width: 22px;
  background: #fff;
}
.xl-slider-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
/* Sections, APK cards and metadata */
.xl-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--xl-border);
}
.xl-section:last-of-type {
  border-bottom: 0;
}
.xl-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--xl-border);
}
.xl-section-title {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--xl-text);
  font-size: 1.22rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.xl-section-icon {
  display: inline-flex;
  flex: 0 0 21px;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  color: var(--xl-accent);
}
.xl-section-icon .xl-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* XLabAPK - TRENDING NOW TITLE */
.xl-slider-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.xl-view-all {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  color: var(--xl-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.xl-view-all:hover {
  text-decoration: underline;
}
.xl-grid-horizontal, .xl-grid-grid, .xl-grid-list {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 20px 12px;
}
.xl-grid-list {
  grid-template-columns: 1fr;
}
.xl-grid-list .xl-card-sm {
  max-width: 720px;
}
.xl-card {
  color: inherit;
  text-decoration: none;
}
.xl-card[data-homepage-card] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.xl-card-sm.xl-app-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform .16s ease;
}
.xl-card-sm.xl-app-card:hover {
  transform: translateY(-2px);
}
.xl-card-sm.xl-app-card:focus-visible {
  outline: 2px solid var(--xl-accent);
  outline-offset: 4px;
  border-radius: 8px;
}
.xl-card-sm.xl-app-card .xl-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 9px;
}
.xl-card-sm.xl-app-card .xl-card-media img, .xl-card-sm.xl-app-card .xl-card-media > .xl-icon-fallback {
  display: block;
  width: clamp(56px, 6vw, 76px);
  height: clamp(56px, 6vw, 76px);
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 17px;
  object-fit: cover;
  box-shadow: 0 2px 7px rgba(15,23,42,.1);
}
.xl-card-sm.xl-app-card .xl-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
}
.xl-card-sm.xl-app-card .xl-card-title {
  display: -webkit-box;
  width: 100%;
  min-width: 0;
  min-height: 2.5em;
  overflow: hidden;
  color: var(--xl-text);
  font-size: .78rem;
  font-weight: 550;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.xl-card-sm.xl-app-card--enhanced {
  align-items: stretch;
  padding: 13px 11px 11px;
  border: 1px solid var(--xl-border);
  border-radius: var(--xl-radius);
  background: var(--xl-bg);
  box-shadow: 0 2px 8px rgba(15,23,42,.035);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.xl-card-sm.xl-app-card--enhanced:hover {
  border-color: #cbd5e1;
  box-shadow: var(--xl-shadow);
}
.xl-card-sm.xl-app-card--enhanced:focus-visible {
  transform: translateY(-1px);
  border-color: var(--xl-accent);
  box-shadow: 0 0 0 3px rgba(225,29,72,.14), 0 5px 14px rgba(15,23,42,.1);
  outline-offset: 3px;
}
.xl-card-sm.xl-app-card--enhanced:active {
  transform: translateY(0) scale(.99);
  box-shadow: 0 1px 4px rgba(15,23,42,.08);
  transition-duration: .08s;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-topline {
  display: grid;
  grid-template-columns: clamp(48px, 5vw, 62px) minmax(0, 1fr);
  min-height: 66px;
  align-items: start;
  gap: 16px;
  min-width: 0;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-media {
  justify-content: flex-start;
  width: clamp(48px, 5vw, 62px);
  height: clamp(48px, 5vw, 62px);
  margin: 0;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-media img,
.xl-card-sm.xl-app-card--enhanced .xl-card-media > .xl-icon-fallback {
  width: clamp(48px, 5vw, 62px);
  height: clamp(48px, 5vw, 62px);
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 15px;
  background: var(--xl-bg-alt);
  box-shadow: none;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-body {
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-title {
  height: auto;
  min-height: 1.3em;
  align-self: stretch;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  letter-spacing: -.01em;
}
.xl-card-sm.xl-app-card--enhanced .xl-app-rating {
  justify-content: flex-start;
}
.xl-card-developer, .xl-card-meta {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--xl-text-secondary);
  font-size: .74rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-developer,
.xl-card-sm.xl-app-card--enhanced .xl-card-meta {
  height: 1.35em;
}
.xl-card-meta {
  color: #778397;
  font-size: .7rem;
}
.xl-app-rating {
  display: inline-flex;
  min-height: 16px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--xl-text-secondary);
  font-size: .72rem;
  line-height: 1;
}
.xl-app-rating-value {
  font-variant-numeric: tabular-nums;
}
.xl-app-rating-star {
  color: #f59e0b;
  font-size: .78rem;
  line-height: 1;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-badges {
  display: flex;
  min-width: 0;
  max-height: 66px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 5px;
  overflow: hidden;
}

.xl-card-sm.xl-app-card--enhanced .xl-card-badges .xl-badge {
  min-height: 18px;
  padding: 2px 6px;
  border: 1px solid #d6dbe3;
  border-radius: 7px;
  background: #f8fafc;
  color: #5f6877;
  font-size: .58rem;
  font-weight: 700;
  line-height: 1;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-developer {
  display: flex;
  height: auto;
  min-height: 1.35em;
  align-items: center;
  color: var(--xl-accent);
}
.xl-card-sm.xl-app-card--enhanced .xl-card-developer .xl-slider-meta-item {
  width: 100%;
  overflow: hidden;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-developer .xl-slider-meta-item > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-meta {
  display: flex;
  height: auto;
  min-height: 1.35em;
  align-items: center;
  gap: 10px;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-meta-item {
  flex: 0 1 auto;
  width: auto;
  overflow: hidden;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-meta-item > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xl-card-sm.xl-app-card--enhanced .xl-card-meta-item svg {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}
.xl-badge--online {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}
.xl-section--collection .xl-section-header {
  border-bottom-color: #fecdd3;
}
.xl-section--collection .xl-section-icon {
  color: #be123c;
}
.xl-section--collection .xl-card-sm.xl-app-card--enhanced {
  background: linear-gradient(145deg, #fff 55%, #fff7f8);
}
.xl-section--paid .xl-section-header {
  border-bottom-color: #fde68a;
}
.xl-section--paid .xl-grid-horizontal {
  grid-template-columns: 1fr;
  gap: 10px;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  min-height: 84px;
  padding: 10px 12px;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-topline {
  display: flex;
  min-height: 62px;
  width: 62px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-media {
  width: 62px;
  height: 62px;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-media img,
.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-media > .xl-icon-fallback {
  width: 62px;
  height: 62px;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-badges {
  display: none;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-body {
  grid-column: 2;
  min-width: 0;
  width: 100%;
  gap: 3px;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-title {
  min-height: 0;
  font-size: .86rem;
  line-height: 1.25;
}
.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-title-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 2px 6px;
  border: 1px solid #d6dbe3;
  border-radius: 7px;
  background: #f8fafc;
  color: #5f6877;
  font-size: .56rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-developer,
.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-meta {
  min-height: 1.25em;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-meta {
  gap: 6px;
}

@media (min-width: 768px) {
  .xl-section--paid .xl-grid-horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-meta {
  gap: 6px;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-meta-item {
  gap: 3px;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-meta-item svg {
  width: 13px;
  height: 13px;
  flex-basis: 13px;
}

.xl-section--paid .xl-card-sm.xl-app-card--enhanced .xl-card-meta {
  font-size: .68rem;
}
.xl-section--collection .xl-grid-horizontal,
.xl-section--collection .xl-grid-grid,
.xl-section--paid .xl-grid-horizontal,
.xl-section--paid .xl-grid-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}
.xl-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.xl-badge--paid {
  border-color: #fde68a;
  background: #fef3c7;
  color: #92400e;
}
.xl-badge--premium {
  border-color: #c4b5fd;
  background: #ede9fe;
  color: #5b21b6;
}
.xl-badge--mod {
  border-color: #fda4af;
  background: #ffe4e6;
  color: #9f1239;
}
.xl-badge--pro {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1d4ed8;
}
.xl-badge--offline {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}
.xl-badge--original {
  border-color: #e9d5ff;
  background: #f3e8ff;
  color: #7e22ce;
}
.xl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--xl-radius-sm);
  font-size: .8rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.xl-btn--primary {
  background: var(--xl-accent);
  color: #fff;
}
.xl-btn--primary:hover {
  transform: translateY(-1px);
  background: #be123c;
}
.xl-btn--secondary {
  border: 1px solid var(--xl-border);
  background: var(--xl-bg-alt);
  color: var(--xl-text-secondary);
}
.xl-btn--secondary:hover {
  border-color: var(--xl-accent);
  color: var(--xl-accent);
}
/* Footer and mobile bottom navigation */
.xl-footer {
  margin-top: 12px;
  padding: 28px 0;
  border-top: 1px solid var(--xl-border);
  background: var(--xl-bg-alt);
}
.xl-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.xl-footer .xl-logo {
  font-size: 1.25rem;
}
.xl-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.xl-footer-link, .xl-footer-copyright {
  color: var(--xl-text-secondary);
  font-size: .84rem;
}
.xl-footer-link {
  text-decoration: none;
}
.xl-footer-link:hover {
  color: var(--xl-accent);
  text-decoration: underline;
}
.xl-bottom-nav {
  display: none;
}
/* Tablet and desktop */
@media (min-width: 600px) {
  .xl-container {
    width: min(calc(100% - 48px), var(--xl-container));
    padding-inline: 12px;
  }
  .xl-grid-horizontal, .xl-grid-grid {
    grid-template-columns: repeat(6,minmax(0,1fr));
  }
  .xl-section--collection .xl-grid-horizontal,
  .xl-section--collection .xl-grid-grid,
  .xl-section--paid .xl-grid-horizontal,
  .xl-section--paid .xl-grid-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
  }
  .xl-section {
    padding-block: 30px;
  }
}
@media (min-width: 768px) {
  .xl-header-inner {
    min-height: 72px;
  }
  .xl-logo {
    font-size: 1.6rem;
  }
  .xl-desktop-nav {
    display: flex;
  }
  .xl-nav {
    margin-left: 0;
  }
  .xl-nav-btn[data-menu-toggle] {
    display: none;
  }
  .xl-slider-link {
    min-height: 300px;
    aspect-ratio: 16 / 5.7;
  }
  .xl-slider-content {
    max-width: 720px;
    padding: 28px;
  }
  .xl-slider-editors-picks {
    top: 22px;
    left: 22px;
  }
  .xl-slider-nav--prev {
    left: 18px;
  }
  .xl-slider-nav--next {
    right: 18px;
  }
  .xl-section-title {
    font-size: 1.3rem;
  }
  .xl-section--collection .xl-grid-horizontal,
  .xl-section--collection .xl-grid-grid,
  .xl-section--paid .xl-grid-horizontal,
  .xl-section--paid .xl-grid-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 18px;
  }
}
@media (min-width: 1100px) {
  .xl-grid-horizontal, .xl-grid-grid {
    grid-template-columns: repeat(8,minmax(0,1fr));
  }
  .xl-section--collection .xl-grid-horizontal,
  .xl-section--collection .xl-grid-grid,
  .xl-section--paid .xl-grid-horizontal,
  .xl-section--paid .xl-grid-grid {
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 20px;
  }
  .xl-slider-link {
    min-height: 340px;
    aspect-ratio: 16 / 5.5;
  }
}
@media (min-width: 1500px) {
  .xl-section--collection .xl-grid-horizontal,
  .xl-section--collection .xl-grid-grid,
  .xl-section--paid .xl-grid-horizontal,
  .xl-section--paid .xl-grid-grid {
    grid-template-columns: repeat(6,minmax(0,1fr));
  }
  .xl-slider-link {
    min-height: 360px;
  }
}
@media (max-width: 767px) {
  .xl-slider-link {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(252px, 58vw, 320px);
    padding-top: 92px;
    aspect-ratio: auto;
  }
  .xl-slider-content {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    max-width: none;
    padding: 12px clamp(14px, 4vw, 20px) 16px;
  }
  .xl-slider-featured-labels {
    gap: 5px;
    margin-bottom: 9px;
  }
  .xl-slider-app-info {
    gap: 10px;
  }
  .xl-slider-icon {
    flex-basis: clamp(48px, 13vw, 60px);
    width: clamp(48px, 13vw, 60px);
    height: clamp(48px, 13vw, 60px);
    border-radius: 13px;
  }
  .xl-slider-title {
    margin-bottom: 5px;
    font-size: clamp(1.05rem, 4vw, 1.28rem);
    line-height: 1.18;
  }
  .xl-slider-meta {
    gap: 5px;
    font-size: clamp(.68rem, 2.5vw, .76rem);
    line-height: 1.3;
  }
  .xl-slider-meta-item {
    gap: 4px;
  }
  .xl-slider-meta-item svg {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
  .xl-slider-nav {
    top: 56px;
    width: 36px;
    height: 36px;
    transform: none;
  }
  .xl-slider-nav--prev {
    left: 8px;
  }
  .xl-slider-nav--next {
    right: 8px;
  }
  .xl-slider-dots {
    top: 12px;
    right: 12px;
    gap: 6px;
  }
  .xl-slider-dot {
    width: 7px;
    height: 7px;
  }
  .xl-slider-dot.is-active {
    width: 18px;
  }
}
/* Small mobile */
@media (max-width: 420px) {
  .xl-container {
    width: calc(100% - 16px);
    padding-inline: 4px;
  }
  .xl-header-inner {
    min-height: 60px;
    gap: 10px;
  }
  .xl-logo {
    font-size: 1.38rem;
  }
  .xl-nav {
    gap: 4px;
  }
  .xl-nav-btn {
    width: 40px;
    height: 40px;
  }
  .xl-featured-section {
    padding-top: 12px;
  }
  .xl-slider {
    border-radius: 15px;
  }
  .xl-slider-editors-picks {
    top: 11px;
    left: 11px;
    gap: 5px;
    padding: 6px 9px;
    font-size: .68rem;
  }
  .xl-slider-editors-picks svg {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }
  .xl-slider-app-info {
    gap: 9px;
  }
  .xl-section {
    padding-block: 22px;
  }
  .xl-section-header {
    margin-bottom: 14px;
    padding-bottom: 9px;
  }
  .xl-section-title {
    gap: 6px;
    font-size: 1.08rem;
  }
  .xl-section-icon, .xl-section-icon .xl-icon {
    width: 18px;
    height: 18px;
  }
  .xl-grid-horizontal, .xl-grid-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
    column-gap: 8px;
    row-gap: 18px;
  }
  .xl-section--collection .xl-grid-horizontal,
  .xl-section--collection .xl-grid-grid,
  .xl-section--paid .xl-grid-horizontal,
  .xl-section--paid .xl-grid-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px 10px;
  }
  .xl-card-sm.xl-app-card .xl-card-media {
    margin-bottom: 7px;
  }
  .xl-card-sm.xl-app-card .xl-card-media img,
  .xl-card-sm.xl-app-card .xl-card-media > .xl-icon-fallback {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }
  .xl-card-sm.xl-app-card:not(.xl-app-card--enhanced) .xl-card-title {
    font-size: .68rem;
  }
  .xl-bottom-nav {
    position: fixed;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 10px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    min-height: 62px;
    padding: 5px;
    border: 1px solid var(--xl-border);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 30px rgba(0,0,0,.14);
    backdrop-filter: blur(14px);
  }
  .xl-bottom-nav-item {
    display: flex;
    min-width: 0;
    min-height: 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--xl-text-secondary);
    font-size: .63rem;
    font-weight: 650;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .xl-bottom-nav-item.active, .xl-bottom-nav-item:focus-visible {
    color: var(--xl-accent);
  }
  .xl-bottom-nav-item:focus-visible {
    outline: 2px solid var(--xl-accent);
    outline-offset: 1px;
  }
  .xl-bottom-nav-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
  }
  .xl-bottom-nav-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
@media (min-width: 421px) and (max-width: 767px) {
  .xl-bottom-nav {
    position: fixed;
    right: 12px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    min-height: 64px;
    padding: 6px;
    border: 1px solid var(--xl-border);
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 30px rgba(0,0,0,.14);
    backdrop-filter: blur(14px);
  }
  .xl-bottom-nav-item {
    display: flex;
    min-width: 0;
    min-height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px 3px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--xl-text-secondary);
    font-size: .68rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
  }
  .xl-bottom-nav-item.active, .xl-bottom-nav-item:focus-visible {
    color: var(--xl-accent);
  }
  .xl-bottom-nav-item:focus-visible {
    outline: 2px solid var(--xl-accent);
    outline-offset: 1px;
  }
  .xl-bottom-nav-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
  }
  .xl-bottom-nav-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
}


/* Catalog pages */
.xl-catalog-page { padding: 12px 0 48px; }
.xl-catalog-breadcrumb { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--xl-text-secondary); font-size: .82rem; }
.xl-catalog-breadcrumb a { color: inherit; text-decoration: none; }
.xl-catalog-breadcrumb a:hover { color: var(--xl-accent); }
.xl-catalog-main { min-width: 0; }
.xl-catalog-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.xl-catalog-heading-row h1 { margin: 0; color: var(--xl-text); font-size: clamp(1.4rem, 4vw, 1.9rem); line-height: 1.25; }
.xl-catalog-heading-row p { max-width: 680px; margin: 7px 0 0; color: var(--xl-text-secondary); font-size: .9rem; }
.xl-catalog-view { display: flex; flex: 0 0 auto; gap: 3px; padding: 3px; border: 1px solid var(--xl-border); border-radius: var(--xl-radius-sm); }
.xl-catalog-view a { padding: 5px 8px; border-radius: 6px; color: var(--xl-text-secondary); font-size: .78rem; text-decoration: none; }
.xl-catalog-view a.is-active { background: #fff1f2; color: var(--xl-accent); }
.xl-catalog-category-picker { margin: 16px 0 12px; }
.xl-catalog-category-toggle { display: flex; width: max-content; min-height: 40px; align-items: center; gap: 12px; padding: 0 12px; border: 1px solid var(--xl-border); border-radius: var(--xl-radius-sm); color: var(--xl-text); font-size: .84rem; font-weight: 600; cursor: pointer; list-style: none; }
.xl-catalog-category-toggle::-webkit-details-marker { display: none; }
.xl-catalog-category-toggle::after { content: '+'; color: var(--xl-accent); font-size: 1.1rem; line-height: 1; }
.xl-catalog-category-picker[open] > .xl-catalog-category-toggle::after { content: '−'; }
.xl-catalog-category-toggle:focus-visible { outline: 2px solid var(--xl-accent); outline-offset: 2px; }
.xl-catalog-categories { display: flex; gap: 8px; overflow-x: auto; margin: 10px 0 0; padding: 2px 1px 6px; scrollbar-width: thin; }
.xl-catalog-chip { flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--xl-border); border-radius: 999px; color: var(--xl-text-secondary); font-size: .8rem; text-decoration: none; white-space: nowrap; }
.xl-catalog-chip:hover, .xl-catalog-chip.is-active { border-color: #fecdd3; background: #fff1f2; color: var(--xl-accent); }
.xl-catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; color: var(--xl-text-secondary); font-size: .84rem; }
.xl-catalog-sort { display: flex; align-items: center; gap: 7px; }
.xl-catalog-sort select, .xl-catalog-sort button { min-height: 36px; border: 1px solid var(--xl-border); border-radius: var(--xl-radius-sm); background: #fff; color: var(--xl-text); font: inherit; }
.xl-catalog-sort select { max-width: 170px; padding: 0 8px; }
.xl-catalog-sort button { padding: 0 10px; color: var(--xl-accent); cursor: pointer; }
.xl-catalog-results.xl-grid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
.xl-catalog-results.xl-grid-list { grid-template-columns: 1fr; gap: 10px; }
.xl-catalog-results.xl-grid-list .xl-card { display: grid; grid-template-columns: 60px minmax(0,1fr); align-items: center; gap: 12px; max-width: none; min-height: 82px; padding: 10px 12px; border: 1px solid var(--xl-border); border-radius: var(--xl-radius); background: #fff; }
.xl-catalog-results.xl-grid-list .xl-card-topline { min-height: 60px; width: 60px; }
.xl-catalog-results.xl-grid-list .xl-card-media { width: 60px; height: 60px; margin: 0; }
.xl-catalog-results.xl-grid-list .xl-card-media img { width: 60px; height: 60px; }
.xl-catalog-results.xl-grid-list .xl-card-badges { display: none; }
.xl-catalog-empty { margin: 0; padding: 20px 14px; border: 1px solid var(--xl-border); border-radius: var(--xl-radius); color: var(--xl-text-secondary); text-align: center; }
.xl-catalog-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 24px 0 0; }
.xl-catalog-page-number, .xl-catalog-page-step { display: inline-flex; min-width: 38px; min-height: 38px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--xl-border); border-radius: var(--xl-radius-sm); color: var(--xl-text); font-size: .85rem; text-decoration: none; }
.xl-catalog-page-number.is-current { border-color: var(--xl-accent); background: var(--xl-accent); color: #fff; }
.xl-catalog-page-step { color: var(--xl-accent); }
@media (min-width: 600px) {
  .xl-catalog-results.xl-grid-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; }
  .xl-catalog-page { padding-top: 18px; }
}
@media (min-width: 900px) {
  .xl-catalog-results.xl-grid-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
}
@media (max-width: 420px) {
  .xl-catalog-heading-row { flex-wrap: wrap; }
  .xl-catalog-toolbar { flex-wrap: wrap; }
  .xl-catalog-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
}
