/* XLabAPK Premium Collection Detail — isolated from collection listings and homepage cards. */
.xl-collections-page--detail {
  width: min(calc(100% - 32px), 1200px);
  padding-top: 18px;
  padding-bottom: 58px;
}
.xl-collections-page--detail .xl-collection-breadcrumb {
  gap: 10px;
  margin-bottom: 18px;
  font-size: .84rem;
}
.xl-collections-page--detail .xl-collection-hero {
  position: relative;
  display: flex;
  min-height: clamp(250px, 29vw, 360px);
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  margin: 0 0 30px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid color-mix(in srgb, var(--xl-accent) 18%, var(--xl-border));
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 82% 12%, rgb(255 255 255 / 20%), transparent 38%),
    linear-gradient(125deg, #30111d 0%, #59162c 46%, #971b43 100%);
  box-shadow: 0 18px 42px rgb(33 15 26 / 14%);
}
.xl-collection-hero__media {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
}
.xl-collection-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.xl-collection-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(13 17 27 / 88%) 0%, rgb(13 17 27 / 62%) 48%, rgb(13 17 27 / 12%) 100%),
    linear-gradient(0deg, rgb(13 17 27 / 40%), transparent 62%);
  content: "";
}
.xl-collection-hero__content {
  width: min(100%, 760px);
  color: #fff;
}
.xl-collection-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: rgb(255 255 255 / 88%);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.xl-collection-hero__eyebrow::before {
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: #fb7185;
  content: "";
}
.xl-collection-hero h1 {
  max-width: 720px;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.55rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
  text-shadow: 0 3px 18px rgb(0 0 0 / 22%);
}
.xl-collection-hero__description {
  max-width: 620px;
  margin: 0;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(.98rem, 1.5vw, 1.16rem);
  line-height: 1.5;
}
.xl-collection-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: rgb(255 255 255 / 84%);
  font-size: .82rem;
  font-weight: 700;
}
.xl-collection-hero__meta span:first-child {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 999px;
  background: rgb(255 255 255 / 12%);
  color: #fff;
  backdrop-filter: blur(8px);
}
.xl-collection-explorer { min-width: 0; }
.xl-collection-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
}
.xl-collection-toolbar__copy h2 {
  margin: 0;
  color: var(--xl-text);
  font-size: clamp(1.22rem, 2.5vw, 1.55rem);
  font-weight: 820;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.xl-collection-toolbar__copy p {
  margin: 5px 0 0;
  color: var(--xl-text-secondary);
  font-size: .84rem;
}
.xl-collection-sort {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: var(--xl-text-secondary);
  font-size: .78rem;
  font-weight: 700;
}
.xl-collection-sort select {
  min-width: 132px;
  min-height: 42px;
  padding: 8px 34px 8px 12px;
  border: 1px solid var(--xl-border);
  border-radius: 12px;
  background: var(--xl-bg);
  color: var(--xl-text);
  font: inherit;
  font-size: .82rem;
  font-weight: 750;
  cursor: pointer;
}
.xl-collection-sort select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--xl-accent) 28%, transparent);
  outline-offset: 2px;
}
.xl-custom-collection-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 22px;
  padding: 2px 0 7px;
  scrollbar-width: thin;
  scrollbar-color: var(--xl-border) transparent;
}
.xl-custom-collection-filters button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--xl-border);
  border-radius: 999px;
  background: var(--xl-bg);
  color: var(--xl-text-secondary);
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.xl-custom-collection-filters button span {
  color: inherit;
  font-size: .74rem;
  font-variant-numeric: tabular-nums;
  opacity: .75;
}
.xl-custom-collection-filters button:hover {
  border-color: color-mix(in srgb, var(--xl-accent) 42%, var(--xl-border));
  color: var(--xl-accent);
}
.xl-custom-collection-filters button.is-active {
  border-color: var(--xl-accent);
  background: var(--xl-accent);
  color: #fff;
  box-shadow: 0 5px 14px rgb(225 29 72 / 18%);
}
.xl-custom-collection-filters button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--xl-accent) 30%, transparent);
  outline-offset: 3px;
}
.xl-collection-app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}
.xl-collection-filter-item {
  min-width: 0;
  min-height: 100%;
}
.xl-collection-filter-item[hidden] { display: none !important; }
.xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 228px;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 15px 14px 13px;
  border: 1px solid var(--xl-border);
  border-radius: 19px;
  background: var(--xl-bg);
  box-shadow: 0 4px 15px rgb(15 23 42 / 4%);
  text-decoration: none;
}
.xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--xl-accent) 35%, var(--xl-border));
  box-shadow: 0 12px 26px rgb(15 23 42 / 9%);
}
.xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-topline {
  position: relative;
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-media {
  display: flex;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-media img,
.xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-media > .xl-icon-fallback {
  display: block;
  width: 82px;
  height: 82px;
  border: 1px solid var(--xl-border);
  border-radius: 19px;
  background: var(--xl-bg-alt);
  object-fit: contain;
  box-shadow: 0 3px 12px rgb(15 23 42 / 6%);
}
.xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-badges {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  max-width: 45%;
  max-height: 68px;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
.xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-body {
  display: flex;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-title {
  display: -webkit-box;
  width: 100%;
  min-height: 2.45em;
  overflow: hidden;
  color: var(--xl-text);
  font-size: .92rem;
  font-weight: 760;
  line-height: 1.24;
  text-align: left;
  overflow-wrap: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-developer,
.xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-meta {
  width: 100%;
  height: auto;
  min-height: 1.35em;
  margin: 0;
  color: var(--xl-text-secondary);
  font-size: .76rem;
  line-height: 1.35;
  text-align: left;
}
.xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  overflow: hidden;
}
.xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-slider-meta-item {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}
.xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-slider-meta-item span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-slider-meta-item svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}
.xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-app-rating {
  min-height: 18px;
  margin-top: auto;
  padding-top: 10px;
  font-size: .78rem;
}
.xl-collection-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 26px 18px;
  border: 1px dashed var(--xl-border);
  border-radius: 16px;
  color: var(--xl-text-secondary);
  text-align: center;
}
.xl-collection-empty[hidden] { display: none !important; }
html[data-theme="dark"] .xl-collection-hero {
  border-color: var(--xl-border);
  box-shadow: 0 18px 42px rgb(0 0 0 / 28%);
}
html[data-theme="dark"] .xl-collection-hero::after {
  background:
    linear-gradient(90deg, rgb(8 10 15 / 91%) 0%, rgb(8 10 15 / 67%) 52%, rgb(8 10 15 / 24%) 100%),
    linear-gradient(0deg, rgb(8 10 15 / 45%), transparent 62%);
}
html[data-theme="dark"] .xl-collection-sort select {
  border-color: var(--xl-border);
  background: var(--xl-surface);
  color: var(--xl-text);
}
html[data-theme="dark"] .xl-custom-collection-filters button {
  border-color: var(--xl-border);
  background: var(--xl-surface);
  color: var(--xl-text-secondary);
}
html[data-theme="dark"] .xl-custom-collection-filters button.is-active {
  border-color: var(--xl-accent);
  background: var(--xl-accent);
  color: #fff;
}
html[data-theme="dark"] .xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced {
  border-color: var(--xl-border);
  background: var(--xl-surface);
  box-shadow: 0 4px 16px rgb(0 0 0 / 16%);
}
html[data-theme="dark"] .xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced:hover {
  border-color: color-mix(in srgb, var(--xl-accent) 52%, var(--xl-border));
  box-shadow: 0 12px 26px rgb(0 0 0 / 26%);
}
@media (min-width: 768px) and (max-width: 1099px) {
  .xl-collection-app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
  .xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced { min-height: 220px; }
}
@media (max-width: 767px) {
  .xl-collections-page--detail { width: calc(100% - 24px); padding-top: 14px; padding-bottom: 38px; }
  .xl-collections-page--detail .xl-collection-breadcrumb { margin-bottom: 14px; font-size: .78rem; }
  .xl-collections-page--detail .xl-collection-hero {
    min-height: 238px;
    margin-bottom: 25px;
    padding: 21px 19px;
    border-radius: 20px;
  }
  .xl-collection-hero::after {
    background:
      linear-gradient(90deg, rgb(10 13 20 / 80%) 0%, rgb(10 13 20 / 48%) 75%, rgb(10 13 20 / 22%) 100%),
      linear-gradient(0deg, rgb(10 13 20 / 56%), transparent 72%);
  }
  .xl-collection-hero__eyebrow { margin-bottom: 10px; font-size: .64rem; letter-spacing: .12em; }
  .xl-collection-hero h1 { max-width: 100%; font-size: clamp(1.85rem, 8vw, 2.45rem); }
  .xl-collection-hero__description { max-width: 96%; font-size: .94rem; }
  .xl-collection-hero__meta { gap: 8px; margin-top: 15px; font-size: .74rem; }
  .xl-collection-toolbar { align-items: flex-start; gap: 12px; margin-bottom: 15px; }
  .xl-collection-toolbar__copy h2 { font-size: 1.18rem; }
  .xl-collection-toolbar__copy p { font-size: .76rem; }
  .xl-collection-sort { flex-direction: column; align-items: flex-end; gap: 4px; font-size: .7rem; }
  .xl-collection-sort select { min-width: 116px; min-height: 40px; padding: 7px 26px 7px 10px; font-size: .76rem; }
  .xl-custom-collection-filters { gap: 7px; margin-bottom: 17px; padding-bottom: 6px; }
  .xl-custom-collection-filters button { min-height: 39px; padding: 7px 12px; font-size: .8rem; }
  .xl-collection-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced { min-height: 218px; padding: 12px 11px 11px; border-radius: 16px; }
  .xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-topline { min-height: 78px; margin-bottom: 10px; }
  .xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-media,
  .xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-media img,
  .xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-media > .xl-icon-fallback { width: 70px; height: 70px; }
  .xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-media { flex-basis: 70px; }
  .xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-title { font-size: .83rem; }
  .xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-developer,
  .xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-meta { font-size: .69rem; }
}
@media (max-width: 390px) {
  .xl-collection-hero__description { font-size: .9rem; }
  .xl-collection-app-grid { gap: 10px 8px; }
  .xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced { min-height: 210px; padding: 10px; }
  .xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-media,
  .xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-media img,
  .xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-media > .xl-icon-fallback { width: 64px; height: 64px; }
  .xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced .xl-card-media { flex-basis: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .xl-custom-collection-filters button,
  .xl-collection-app-grid .xl-card-sm.xl-app-card--enhanced { transition: none; }
}
