/* APKnic Hub 1.1.0 — independent layout and class namespace. */
:root {
    color-scheme: dark;
    --apk-bg: #102a36;
    --apk-panel: #173744;
    --apk-panel-hover: #204653;
    --apk-surface-deep: #0b222c;
    --apk-header: #102a36f5;
    --apk-footer: #0b222c;
    --apk-line: #385a68;
    --apk-line-soft: #385a6880;
    --apk-line-strong: #7197a6;
    --apk-ink: #f2fbff;
    --apk-text: #d7e9ef;
    --apk-muted: #b3cdd8;
    --apk-quiet: #a9c3ce;
    --apk-accent: #62ddeb;
    --apk-accent-hover: #a2eff6;
    --apk-accent-ink: #07333d;
    --apk-accent-soft: #1c4b56;
    --apk-rating: #ffd294;
    --apk-badge-gold: #ffb28d;
    --apk-badge-gold-ink: #4e2917;
    --apk-danger-bg: #492d32;
    --apk-danger-border: #c38389;
    --apk-danger-ink: #ffccd0;
    --apk-fallback-start: #2d697d;
    --apk-fallback-end: #113343;
    --apk-hero-glow: #21cbe238;
    --apk-hero-shade-start: #07232e30;
    --apk-hero-shade-end: #07232eed;
    --apk-decorative-ink: #62ddeb2b;
    --apk-cover-ink: #62ddeb70;
    --apk-backdrop: #071e28d9;
    --apk-drawer-backdrop: #071e28c4;
    --apk-lightbox: #0b2632f7;
    --apk-lightbox-backdrop: #0b2632;
    --apk-lightbox-control: #d4f7e918;
    --apk-lightbox-control-border: #d4f7e938;
    --apk-lightbox-control-hover: #d4f7e92e;
    --apk-shadow-soft: #092a2533;
    --apk-shadow-medium: #092a2544;
    --apk-shadow-drawer: #092a2566;
    --apk-shadow-dialog: #092a2588;
    --apk-radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--apk-bg); color: var(--apk-ink); font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--apk-accent); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { min-width: 0; background: var(--apk-surface-deep); color: var(--apk-ink); border: 1px solid var(--apk-line-strong); border-radius: 8px; padding: 10px 12px; }
input::placeholder, textarea::placeholder { color: var(--apk-quiet); opacity: 1; }
input, select, textarea { accent-color: var(--apk-accent); }
select option { background: var(--apk-surface-deep); color: var(--apk-ink); }
textarea { resize: vertical; min-height: 120px; }
:focus-visible { outline: 2px solid var(--apk-accent); outline-offset: 4px; }
::selection { color: var(--apk-accent-ink); background: var(--apk-accent-hover); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
h2 { font-size: 22px; line-height: 1.35; letter-spacing: -.015em; }
h3 { font-size: 17px; line-height: 1.4; }
small { color: var(--apk-muted); font-size: 12px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; flex-shrink: 0; }
.apk-wrap, .apk-reading-wrap { width: min(1184px, calc(100% - 48px)); margin-inline: auto; }
.apk-site-frame { min-height: 100vh; display: flex; flex-direction: column; }
.apk-site-frame > main { flex: 1; }
.apk-screen-reader, .apk-skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.apk-skip-link:focus { position: fixed; z-index: 100; inset: 12px auto auto 12px; padding: 12px; background: var(--apk-accent); color: var(--apk-accent-ink); }
.apk-masthead { border-bottom: 1px solid var(--apk-line); background: var(--apk-header); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); }
.apk-header-bar { min-height: 78px; display: flex; align-items: center; gap: 32px; }
.apk-brand-link { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 24px; font-weight: 800; letter-spacing: -.6px; }
.apk-brand-icon { width: 36px; height: 36px; display: grid; place-items: center; background: var(--apk-accent); color: var(--apk-accent-ink); border-radius: 11px; font-size: 22px; }
.apk-wordmark { width: auto; height: auto; max-width: 200px; max-height: 48px; object-fit: contain; }
.apk-primary-nav { margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.apk-primary-nav a { color: var(--apk-muted); font-size: 14px; font-weight: 650; padding: 26px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.apk-primary-nav a:hover, .apk-primary-nav a[aria-current] { color: var(--apk-accent); border-color: var(--apk-accent); }
.apk-header-tools { display: flex; align-items: center; gap: 10px; }
.apk-language-select { border: 0; font-size: 12px; background: transparent; padding: 6px; color: var(--apk-muted); max-width: 72px; }
.apk-icon-button { display: inline-flex; justify-content: center; align-items: center; width: 38px; height: 38px; background: transparent; border: 1px solid transparent; border-radius: 9px; font-size: 24px; }
.apk-icon-button:hover { background: var(--apk-panel); border-color: var(--apk-line); color: var(--apk-accent); }
.apk-home-view { padding-bottom: 24px; }
.apk-home-hero { display: grid; grid-template-columns: .86fr 1.14fr; gap: 44px; align-items: center; padding-block: 36px 16px; position: relative; }
.apk-home-hero::before { content: ""; position: absolute; width: 65%; height: 90%; top: -25px; left: -10%; pointer-events: none; z-index: -1; background: radial-gradient(ellipse, var(--apk-hero-glow), transparent 65%); }
.apk-hero-solo { grid-template-columns: 1fr; min-height: 300px; }
.apk-hero-solo .apk-hero-copy { max-width: 680px; }
.apk-hero-copy h1 { margin-block: 18px; font-size: clamp(28px, 3.1vw, 40px); }
.apk-hero-copy > p { color: var(--apk-muted); font-size: 15px; max-width: 510px; }
.apk-eyebrow { display: block; color: var(--apk-accent); font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 6px; }
.apk-hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--apk-line); border-radius: 99px; padding: 4px 12px; margin: 0; }
.apk-hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.apk-button-primary, .apk-button-secondary, .apk-download-button, .apk-content-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 10px; padding: 11px 22px; min-height: 44px; font-size: 14px; font-weight: 700; line-height: 1.5; text-align: center; }
.apk-button-primary, .apk-download-button, .apk-content-button-primary { background: var(--apk-accent); color: var(--apk-accent-ink); }
.apk-button-primary:hover, .apk-download-button:hover, .apk-content-button-primary:hover { background: var(--apk-accent-hover); color: var(--apk-accent-ink); }
.apk-button-secondary { background: var(--apk-panel); border-color: var(--apk-line-strong); color: var(--apk-text); }
.apk-button-secondary:hover { background: var(--apk-panel-hover); border-color: var(--apk-accent); color: var(--apk-ink); }
.apk-hero-carousel { min-width: 0; border: 1px solid var(--apk-line); border-radius: 18px; overflow: hidden; background: var(--apk-panel); box-shadow: 0 18px 36px var(--apk-shadow-soft); }
.apk-hero-slide { display: block; aspect-ratio: 1.7; min-height: 320px; position: relative; overflow: hidden; color: var(--apk-ink); }
.apk-hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 15%, var(--apk-hero-shade-start) 35%, var(--apk-hero-shade-end) 100%); }
.apk-hero-image { position: absolute; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.apk-hero-slide:hover .apk-hero-image { transform: scale(1.035); }
.apk-hero-slide:hover { color: var(--apk-ink); }
.apk-hero-slide.apk-no-cover { background: radial-gradient(circle at 76% 20%, var(--apk-fallback-start), transparent 52%), linear-gradient(135deg, var(--apk-fallback-start), var(--apk-fallback-end)); }
.apk-hero-app-icon { width: 108px; height: 108px; object-fit: cover; border-radius: 24px; position: absolute; right: 36px; top: 32px; transform: rotate(8deg); box-shadow: 0 16px 50px var(--apk-shadow-medium); }
.apk-hero-monogram { position: absolute; right: 12%; top: -35px; color: var(--apk-decorative-ink); font-size: 230px; font-weight: 800; }
.apk-hero-caption { display: block; position: absolute; z-index: 1; bottom: 24px; left: 24px; right: 24px; }
.apk-hero-caption h2 { margin-block: 10px 6px; font-size: 23px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.apk-hero-date { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--apk-text); }
.apk-label-badge { display: inline-block; background: var(--apk-accent); color: var(--apk-accent-ink); padding: 3px 8px; border-radius: 5px; text-transform: uppercase; font-size: 10px; letter-spacing: .06em; font-weight: 800; line-height: 1.5; }
.apk-label-badge.apk-violet { background: var(--apk-badge-gold); color: var(--apk-badge-gold-ink); }
.apk-carousel-controls { padding: 4px 12px; display: flex; align-items: center; justify-content: space-between; background: var(--apk-surface-deep); }
.apk-carousel-controls .apk-icon-button { font-size: 17px; width: 32px; height: 28px; }
.apk-carousel-dots { display: flex; gap: 6px; }
.apk-carousel-dots button { width: 24px; height: 24px; background: transparent; border: 0; padding: 10px 0; }
.apk-carousel-dots button::after { content: ""; display: block; height: 3px; background: var(--apk-line-strong); border-radius: 4px; }
.apk-carousel-dots button[aria-pressed=true]::after { background: var(--apk-accent); }
.apk-content-section, .apk-am-section { margin-block: 38px; }
.apk-section-head, .apk-content-section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--apk-line); }
.apk-section-link, .apk-text-action { color: var(--apk-muted); font-size: 13px; font-weight: 650; white-space: nowrap; }
.apk-feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.apk-app-grid, .apk-content-appgrid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.apk-app-card { padding: 18px; background: var(--apk-panel); border: 1px solid var(--apk-line); border-radius: var(--apk-radius); min-width: 0; display: flex; flex-direction: column; transition: background .15s,border-color .15s; }
.apk-app-card:hover { background: var(--apk-panel-hover); border-color: var(--apk-line-strong); }
.apk-app-card-main { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.apk-app-icon { flex: 0 0 auto; width: 60px; height: 60px; display: block; border-radius: 14px; overflow: hidden; background: var(--apk-surface-deep); }
.apk-app-icon img { width: 100%; height: 100%; object-fit: cover; }
.apk-icon-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg,var(--apk-fallback-start),var(--apk-fallback-end)); color: var(--apk-accent-hover); font-size: 26px; font-weight: 800; }
.apk-app-card-copy { flex: 1; min-width: 0; }
.apk-app-card-copy > strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; font-size: 14px; }
.apk-card-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 11px; color: var(--apk-muted); margin-top: 7px; line-height: 1.6; }
.apk-card-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.65; color: var(--apk-muted); margin-top: 6px; }
.apk-card-bottom { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.apk-card-action { background: var(--apk-accent-soft); color: var(--apk-accent); border: 1px solid var(--apk-line-strong); border-radius: 7px; padding: 4px 10px; font-weight: 650; font-size: 11px; white-space: nowrap; }
.apk-card-action:hover { background: var(--apk-accent); color: var(--apk-accent-ink); }
.apk-card-rating { color: var(--apk-rating); font-size: 12px; }
.apk-card-version { font-size: 11px; color: var(--apk-quiet); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apk-card-wide .apk-app-icon { width: 76px; height: 76px; border-radius: 16px; }
.apk-card-wide .apk-card-bottom { padding-left: 90px; }
.apk-card-compact .apk-app-card-main { flex-direction: column; }
.apk-card-compact .apk-app-card-copy { width: 100%; }
.apk-card-compact .apk-app-card-copy > strong { min-height: 39px; }
.apk-rank-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 28px; }
.apk-rank-card { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--apk-line); min-width: 0; }
.apk-rank-number { font-size: 19px; color: var(--apk-quiet); font-weight: 800; }
.apk-rank-card .apk-app-icon { width: 45px; height: 45px; border-radius: 11px; }
.apk-rank-card > span:last-child { min-width: 0; }
.apk-rank-card strong { display: block; font-size: 13px; line-height: 1.4; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.apk-rank-card small { font-size: 11px; }
.apk-filter-tabs { display: flex; gap: 4px; border: 1px solid var(--apk-line); border-radius: 10px; background: var(--apk-panel); padding: 4px; flex-shrink: 0; }
.apk-filter-tabs a { font-size: 12px; padding: 5px 14px; border-radius: 6px; color: var(--apk-muted); }
.apk-filter-tabs a:hover { background: var(--apk-panel-hover); color: var(--apk-ink); }
.apk-filter-tabs a[aria-selected=true] { background: var(--apk-accent); color: var(--apk-accent-ink); font-weight: 700; }
.apk-browse-more { display: block; text-align: center; color: var(--apk-muted); margin-top: 18px; padding: 9px; border: 1px solid var(--apk-line); border-radius: 9px; font-size: 12px; }
.apk-tab-panel + .apk-tab-panel:not([hidden]) { margin-top: 24px; }
.apk-category-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.apk-sidebar-panel { background: var(--apk-panel); border: 1px solid var(--apk-line); border-radius: var(--apk-radius); padding: 22px; }
.apk-sidebar-panel h2 { font-size: 16px; margin-bottom: 15px; }
.apk-category-links { display: flex; flex-direction: column; gap: 2px; }
.apk-category-links a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--apk-line-soft); font-size: 13px; color: var(--apk-muted); }
.apk-category-links a:hover, .apk-category-links a.apk-selected { color: var(--apk-accent); }
.apk-category-links em { font-style: normal; color: var(--apk-quiet); }
.apk-category-more { margin-top: 10px; color: var(--apk-muted); font-size: 12px; }
summary { cursor: pointer; }
.apk-category-grid .apk-category-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
.apk-editorial-grid, .apk-content-newsgrid, .apk-content-topicgrid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.apk-editorial-card { background: var(--apk-panel); border: 1px solid var(--apk-line); border-radius: var(--apk-radius); overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
.apk-editorial-card:hover { border-color: var(--apk-line-strong); color: var(--apk-ink); }
.apk-editorial-visual { aspect-ratio: 1.9; display: block; position: relative; overflow: hidden; background: linear-gradient(130deg,var(--apk-fallback-start),var(--apk-fallback-end)); }
.apk-editorial-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.apk-editorial-card:hover img { transform: scale(1.025); }
.apk-editorial-visual .apk-label-badge { position: absolute; bottom: 12px; left: 16px; }
.apk-cover-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--apk-cover-ink); font-size: 90px; font-weight: 800; }
.apk-editorial-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.apk-editorial-body h3 { margin-bottom: 8px; }
.apk-editorial-body p { font-size: 12px; color: var(--apk-muted); }
.apk-editorial-action { display: flex; align-items: center; justify-content: space-between; color: var(--apk-quiet); font-size: 12px; margin-top: auto; padding-top: 15px; }
.apk-interior-view, .apk-detail-view, main > .apk-reading-wrap { padding-block: 20px 32px; }
.apk-breadcrumb, .apk-content-breadcrumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 20px; color: var(--apk-quiet); font-size: 12px; overflow-wrap: anywhere; }
.apk-content-breadcrumb [aria-current] { color: var(--apk-text); }
.apk-interior-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-block: 12px 28px; }
.apk-interior-heading h1 { margin-bottom: 8px; }
.apk-interior-heading p, .apk-result-count { color: var(--apk-muted); }
.apk-result-count { font-size: 13px; white-space: nowrap; }
.apk-catalog-layout { display: grid; grid-template-columns: minmax(0,1fr) 258px; gap: 24px; align-items: start; }
.apk-catalog-filter { grid-column: 2; grid-row: 1; }
.apk-catalog-results { grid-column: 1; grid-row: 1; min-width: 0; }
.apk-result-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--apk-line); color: var(--apk-muted); font-size: 13px; }
.apk-result-toolbar select { padding: 6px 8px; font-size: 12px; margin-left: 6px; }
.apk-result-toolbar form { flex-shrink: 0; }
.apk-result-toolbar noscript button { background: var(--apk-accent); color: var(--apk-accent-ink); border: 1px solid var(--apk-accent); border-radius: 8px; }
.apk-result-toolbar noscript button:hover { background: var(--apk-accent-hover); border-color: var(--apk-accent-hover); }
.apk-catalog-list { display: flex; flex-direction: column; gap: 14px; }
.apk-catalog-list .apk-card-wide .apk-app-card-copy > strong { font-size: 16px; }
.apk-catalog-list .apk-card-wide .apk-card-bottom { padding-top: 6px; }
.apk-catalog-list.apk-editorial-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.apk-catalog-row { display: flex; align-items: center; gap: 18px; padding: 20px; background: var(--apk-panel); border: 1px solid var(--apk-line); border-radius: var(--apk-radius); }
.apk-catalog-row-copy { flex: 1; min-width: 0; }
.apk-catalog-row-copy strong, .apk-catalog-row-copy small, .apk-catalog-row-summary { display: block; }
.apk-catalog-row-summary { font-size: 13px; color: var(--apk-muted); }
.apk-catalog-row-action { color: var(--apk-accent); font-size: 12px; white-space: nowrap; }
.apk-search-layout { display: grid; grid-template-columns: minmax(0,1fr) 258px; gap: 24px; }
.apk-search-layout > *, .apk-detail-columns > *, .apk-download-layout > *, .apk-versions-layout > * { min-width: 0; }
.apk-search-aside { background: var(--apk-panel); padding: 22px; border: 1px solid var(--apk-line); border-radius: var(--apk-radius); align-self: start; }
.apk-search-aside h2 { font-size: 16px; }
.apk-filter-links { display: grid; gap: 8px; margin-top: 15px; font-size: 13px; color: var(--apk-muted); }
.apk-search { display: flex; align-items: center; gap: 10px; background: var(--apk-surface-deep); border: 1px solid var(--apk-line-strong); border-radius: 12px; padding: 8px 10px; }
.apk-search svg { color: var(--apk-muted); margin-left: 4px; }
.apk-search input { width: 100%; border: 0; background: transparent; padding: 6px; font-size: 14px; }
.apk-search button { background: var(--apk-accent); color: var(--apk-accent-ink); border: 0; border-radius: 7px; padding: 7px 14px; font-weight: 700; font-size: 13px; }
.apk-search button:hover { background: var(--apk-accent-hover); color: var(--apk-accent-ink); }
.apk-search-dialog { width: min(620px, calc(100% - 32px)); margin: 15vh auto; padding: 26px; border-radius: 18px; border: 1px solid var(--apk-line-strong); background: var(--apk-panel); color: var(--apk-ink); box-shadow: 0 30px 120px var(--apk-shadow-dialog); }
.apk-search-dialog::backdrop { background: var(--apk-backdrop); backdrop-filter: blur(5px); }
.apk-search-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; font-size: 12px; color: var(--apk-muted); }
.apk-search-shortcuts a { border: 1px solid var(--apk-line); padding: 5px 12px; border-radius: 6px; }
.apk-search-inline { margin-bottom: 24px; max-width: 720px; }
.apk-pagination { display: flex; align-items: center; justify-content: center; gap: 7px; margin-block: 28px 12px; flex-wrap: wrap; font-size: 13px; }
.apk-pagination a, .apk-pagination span { padding: 7px 13px; min-width: 36px; text-align: center; border: 1px solid var(--apk-line); border-radius: 8px; background: var(--apk-panel); }
.apk-pagination a:hover, .apk-browse-more:hover, .apk-search-shortcuts a:hover { background: var(--apk-panel-hover); border-color: var(--apk-accent); color: var(--apk-ink); }
.apk-pagination .apk-is-current { background: var(--apk-accent); color: var(--apk-accent-ink); border-color: var(--apk-accent); font-weight: 700; }
.apk-panel, .apk-app-hero, .apk-detail-section, .apk-info-panel, .apk-related-panel, .apk-file-main, .apk-file-facts, .apk-version-aside, .apk-release-card, .apk-reading-panel { border: 1px solid var(--apk-line); border-radius: var(--apk-radius); background: var(--apk-panel); padding: 24px; }
.apk-app-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.apk-app-hero-main { display: flex; align-items: center; gap: 24px; min-width: 0; }
.apk-detail-icon, .apk-app-hero-main > .apk-app-icon { width: 100px; height: 100px; border-radius: 22px; }
.apk-app-identity { min-width: 0; }
.apk-app-identity h1 { font-size: clamp(25px,3vw,34px); }
.apk-developer { font-size: 13px; color: var(--apk-muted); }
.apk-app-identity p { font-size: 13px; color: var(--apk-muted); margin-top: 8px; max-width: 640px; }
.apk-hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.apk-hero-tags span { border-radius: 5px; padding: 2px 8px; font-size: 11px; background: var(--apk-accent-soft); color: var(--apk-accent-hover); }
.apk-app-hero-actions { min-width: 190px; display: grid; gap: 9px; flex-shrink: 0; text-align: center; }
.apk-app-hero-actions small { font-size: 11px; }
.apk-detail-tabs, .apk-page-tabs { display: flex; flex-wrap: wrap; gap: 24px; border-bottom: 1px solid var(--apk-line); margin-block: 20px; padding-bottom: 12px; font-size: 13px; color: var(--apk-muted); }
.apk-page-tabs .apk-active { color: var(--apk-accent); }
.apk-detail-columns { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 20px; align-items: start; }
.apk-detail-primary, .apk-detail-sidebar { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
.apk-detail-primary > *, .apk-detail-sidebar > * { min-width: 0; }
.apk-detail-section .apk-section-head { padding: 0; border: 0; margin-bottom: 18px; }
.apk-detail-section h2, .apk-info-panel h2, .apk-related-panel h2, .apk-file-facts h2, .apk-file-main h2, .apk-version-aside h2, .apk-reading-panel > h2 { font-size: 18px; margin-bottom: 16px; }
.apk-screenshot-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; scrollbar-color: var(--apk-line-strong) var(--apk-surface-deep); }
.apk-screenshot-row img { height: 300px; width: auto; max-width: none; border-radius: 10px; object-fit: contain; scroll-snap-align: start; }
.apk-prose { color: var(--apk-text); line-height: 1.85; overflow-wrap: anywhere; }
.apk-prose h2, .apk-prose h3, .apk-prose h4 { color: var(--apk-ink); margin-block: 26px 10px; }
.apk-prose p + p, .apk-prose p + ul, .apk-prose p + ol { margin-top: 16px; }
.apk-prose a { color: var(--apk-accent); text-decoration: underline; text-underline-offset: 3px; }
.apk-prose a:hover { color: var(--apk-accent-hover); }
.apk-prose img, .apk-prose iframe, .apk-prose video { max-width: 100%; border-radius: 10px; }
.apk-prose pre { white-space: pre-wrap; background: var(--apk-surface-deep); padding: 18px; border-radius: 10px; }
.apk-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.apk-prose td, .apk-prose th { padding: 10px; border: 1px solid var(--apk-line); }
.apk-prose blockquote { border-left: 3px solid var(--apk-accent); margin: 20px 0; padding-left: 20px; }
dl { margin: 0; }
dl > div { display: flex; justify-content: space-between; gap: 18px; padding-block: 12px; border-bottom: 1px solid var(--apk-line); font-size: 12px; }
dl > div:last-child { border-bottom: 0; }
dt { color: var(--apk-quiet); flex-shrink: 0; }
dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.apk-catalog-related { display: flex; gap: 10px; align-items: center; padding-block: 12px; }
.apk-catalog-related .apk-app-icon { width: 42px; height: 42px; border-radius: 10px; }
.apk-catalog-related > span:last-child { min-width: 0; }
.apk-catalog-related strong { font-size: 12px; display: block; line-height: 1.4; }
.apk-catalog-related small { display: block; font-size: 11px; margin-top: 4px; }
.apk-version-preview { display: flex; align-items: center; gap: 14px; padding-block: 14px; border-top: 1px solid var(--apk-line); }
.apk-version-preview > span:last-child { margin-left: auto; color: var(--apk-accent); }
.apk-version-preview strong { font-size: 14px; }
.apk-version-preview p { font-size: 12px; color: var(--apk-muted); }
.apk-version-mark, .apk-file-symbol { display: grid; place-items: center; width: 43px; height: 43px; background: var(--apk-accent-soft); color: var(--apk-accent); font-size: 11px; font-weight: 700; border-radius: 10px; flex-shrink: 0; }
.apk-file-symbol { font-size: 24px; }
.apk-content-faq { padding: 15px 0; border-top: 1px solid var(--apk-line); }
.apk-content-faq summary { font-weight: 650; font-size: 14px; }
.apk-content-faq p { margin-top: 12px; color: var(--apk-muted); font-size: 14px; }
.apk-content-reviews-summary { display: flex; align-items: center; gap: 20px; margin-block: 20px; color: var(--apk-rating); }
.apk-content-score { font-size: 46px; font-weight: 750; line-height: 1; }
.apk-content-avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--apk-accent); background: var(--apk-accent-soft); font-weight: 700; flex-shrink: 0; }
.apk-content-comment { padding-block: 18px; border-bottom: 1px solid var(--apk-line); }
.apk-content-comment-head, .apk-content-authorline { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.apk-content-comment-head small, .apk-content-authorline small { display: block; }
.apk-content-comment p { margin-top: 12px; color: var(--apk-muted); }
.apk-content-commentform { margin-top: 24px; display: grid; gap: 14px; }
.apk-content-commentform label { display: grid; gap: 6px; color: var(--apk-muted); font-size: 13px; }
.apk-content-commentform button { justify-self: start; }
.apk-content-help { font-size: 12px; color: var(--apk-quiet); }
.apk-content-message, .apk-content-demo { margin-block: 18px; border: 1px solid var(--apk-line-strong); border-radius: 10px; background: var(--apk-accent-soft); padding: 14px 18px; color: var(--apk-text); }
.apk-content-error { background: var(--apk-danger-bg); border-color: var(--apk-danger-border); color: var(--apk-danger-ink); }
.apk-compact-app-heading, .apk-file-heading { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.apk-compact-icon { width: 76px; height: 76px; border-radius: 18px; }
.apk-compact-app-heading p, .apk-file-heading p { color: var(--apk-muted); font-size: 13px; }
.apk-download-layout, .apk-versions-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 24px; align-items: start; }
.apk-file-facts > a, .apk-version-aside > a { display: block; color: var(--apk-accent); margin-block: 16px; font-size: 13px; }
.apk-file-facts .apk-sidebar-panel, .apk-version-aside .apk-sidebar-panel { border: 0; padding: 16px 0 0; border-top: 1px solid var(--apk-line); border-radius: 0; }
.apk-file-status { display: flex; align-items: center; gap: 14px; margin-block: 22px 14px; }
.apk-file-status h2 { margin: 0; font-size: 17px; }
.apk-file-status p { color: var(--apk-muted); font-size: 12px; }
.apk-catalog-source { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 18px; border-top: 1px solid var(--apk-line); }
.apk-catalog-source small { display: block; }
.apk-file-help { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--apk-line); }
.apk-file-help h2 { margin-bottom: 8px; }
.apk-file-help p { color: var(--apk-muted); font-size: 13px; }
.apk-hash-value { font-family: monospace; overflow-wrap: anywhere; }
.apk-release-card { margin-top: 16px; }
.apk-release-card-top { display: flex; gap: 14px; align-items: center; }
.apk-release-card-top p { color: var(--apk-muted); font-size: 12px; }
.apk-release-badge { margin-left: auto; padding: 3px 9px; background: var(--apk-accent-soft); color: var(--apk-accent); font-size: 11px; border-radius: 6px; }
.apk-release-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-block: 20px 12px; color: var(--apk-muted); font-size: 12px; }
.apk-release-meta strong { display: block; color: var(--apk-ink); font-size: 13px; }
.apk-version-aside p { color: var(--apk-muted); overflow-wrap: anywhere; }
.apk-topic-hero { display: flex; align-items: center; gap: 26px; }
.apk-topic-cover { width: 240px; height: 180px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.apk-topic-hero h1 { margin-block: 12px; font-size: 30px; }
.apk-topic-hero p { color: var(--apk-muted); margin-bottom: 14px; }
.apk-topic-hero + .apk-reading-panel { margin-top: 20px; }
.apk-content-article-header { max-width: 860px; margin: 12px auto 30px; }
.apk-content-article-header h1 { margin-block: 14px; font-size: clamp(30px,4vw,46px); }
.apk-content-article-header > p { color: var(--apk-muted); font-size: 17px; margin-bottom: 22px; }
.apk-content-newslabel { font-size: 12px; color: var(--apk-accent); }
.apk-content-articlevisual { max-width: 900px; margin: 0 auto 24px; }
.apk-content-articlevisual img { width: 100%; max-height: 550px; object-fit: cover; border-radius: var(--apk-radius); }
.apk-reading-wrap > .apk-reading-panel { max-width: 900px; margin: 20px auto; }
.apk-content-download-wrap { max-width: 900px; margin-inline: auto; }
.apk-content-pagehead { margin-block: 20px 28px; }
.apk-content-pagehead p { margin-top: 14px; color: var(--apk-muted); }
.apk-empty, .apk-archive-empty { padding: 36px 20px; color: var(--apk-muted); text-align: center; grid-column: 1/-1; }
.apk-content-empty { max-width: 640px; margin: 30px auto; text-align: center; }
.apk-content-errornumber { font-size: 110px; font-weight: 800; color: var(--apk-accent); line-height: 1.2; }
.apk-content-empty p { margin-block: 16px 24px; color: var(--apk-muted); }
.apk-content-empty .apk-search { margin-top: 24px; text-align: left; }
.apk-site-footer { margin-top: 50px; border-top: 1px solid var(--apk-line); background: var(--apk-footer); }
.apk-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; padding-block: 40px 32px; }
.apk-footer-navigation { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--apk-muted); }
.apk-footer-separator { color: var(--apk-quiet); }
.apk-footer-custom { display: block; line-height: 2; }
.apk-footer-custom a { margin-inline: 7px; }
.apk-footer-copyright { color: var(--apk-quiet); font-size: 12px; }
@media (min-width: 1450px) {
    .apk-wrap, .apk-reading-wrap { width: min(1240px, calc(100% - 64px)); }
    .apk-app-grid, .apk-content-appgrid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 1050px) {
    .apk-header-bar { gap: 20px; }
    .apk-primary-nav { gap: 16px; }
    .apk-wordmark { max-width: 170px; }
    .apk-home-hero { gap: 26px; }
    .apk-hero-slide { min-height: 310px; }
    .apk-hero-copy h1 { font-size: 31px; }
    .apk-app-grid, .apk-content-appgrid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .apk-catalog-layout, .apk-search-layout { grid-template-columns: minmax(0,1fr) 220px; gap: 18px; }
    .apk-detail-columns, .apk-download-layout, .apk-versions-layout { grid-template-columns: minmax(0,1fr) 255px; }
    .apk-app-hero { align-items: flex-start; }
    .apk-app-hero-main { gap: 18px; }
    .apk-detail-icon { width: 80px; height: 80px; }
    .apk-app-hero-actions { min-width: 165px; }
    .apk-rank-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .apk-wrap, .apk-reading-wrap { width: calc(100% - 32px); }
    .apk-header-bar { flex-wrap: wrap; gap: 0; padding-top: 12px; min-height: auto; }
    .apk-brand-link { font-size: 22px; }
    .apk-wordmark { max-width: 174px; max-height: 40px; }
    .apk-header-tools { margin-left: auto; }
    .apk-primary-nav { order: 3; width: 100%; gap: 26px; overflow-x: auto; margin: 10px 0 0; scrollbar-width: none; }
    .apk-primary-nav a { padding: 10px 0 12px; font-size: 13px; }
    .apk-home-hero { grid-template-columns: 1fr; padding-top: 28px; gap: 26px; }
    .apk-hero-copy h1 { font-size: 34px; max-width: 560px; }
    .apk-hero-copy p { font-size: 14px; }
    .apk-hero-actions { margin-top: 20px; }
    .apk-hero-slide { min-height: 0; aspect-ratio: 1.8; }
    .apk-hero-caption h2 { font-size: 22px; }
    .apk-feature-grid { grid-template-columns: 1fr; }
    .apk-editorial-grid, .apk-content-newsgrid, .apk-content-topicgrid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
    .apk-app-grid, .apk-content-appgrid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
    .apk-app-card { padding: 14px; border-radius: 12px; }
    .apk-card-bottom { flex-wrap: wrap; gap: 7px; }
    .apk-card-compact .apk-card-action { width: 100%; text-align: center; }
    .apk-card-wide .apk-card-bottom { flex-wrap: nowrap; }
    .apk-category-grid { grid-template-columns: 1fr; gap: 16px; }
    .apk-catalog-layout, .apk-search-layout, .apk-detail-columns, .apk-download-layout, .apk-versions-layout { display: flex; flex-direction: column; }
    .apk-catalog-results, .apk-catalog-filter, .apk-search-layout > *, .apk-detail-columns > *, .apk-download-layout > *, .apk-versions-layout > * { width: 100%; }
    .apk-catalog-filter { order: 2; }
    .apk-search-aside .apk-filter-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .apk-app-hero { flex-direction: column; padding: 20px; }
    .apk-app-hero-actions { width: 100%; }
    .apk-app-hero-main { align-items: flex-start; }
    .apk-app-hero-main > .apk-app-icon { width: 78px; height: 78px; }
    .apk-app-identity h1 { font-size: 26px; }
    .apk-detail-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .apk-detail-sidebar .apk-sidebar-panel { grid-column: 1/-1; }
    .apk-topic-cover { width: 170px; height: 145px; }
    .apk-topic-hero { gap: 20px; padding: 20px; }
    .apk-topic-hero h1 { font-size: 25px; }
    .apk-screenshot-row img { height: 270px; }
    .apk-reading-panel, .apk-detail-section, .apk-file-main, .apk-file-facts { padding: 20px; }
}
@media (max-width: 480px) {
    .apk-primary-nav { gap: 18px; }
    .apk-primary-nav a { font-size: 12px; }
    .apk-hero-copy h1 { font-size: 32px; }
    .apk-hero-slide { aspect-ratio: 1.35; }
    .apk-hero-caption { left: 18px; right: 18px; bottom: 20px; }
    .apk-hero-caption h2 { font-size: 21px; }
    .apk-content-section, .apk-am-section { margin-block: 30px; }
    h2 { font-size: 21px; }
    .apk-section-head { gap: 10px; }
    .apk-section-link { font-size: 11px; }
    .apk-app-grid, .apk-content-appgrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .apk-card-meta { gap: 2px 6px; font-size: 11px; }
    .apk-card-wide .apk-app-icon { width: 62px; height: 62px; border-radius: 13px; }
    .apk-card-wide .apk-card-bottom { padding-left: 76px; }
    .apk-card-wide .apk-app-card-main { gap: 14px; }
    .apk-rank-grid { grid-template-columns: 1fr; }
    .apk-editorial-grid, .apk-content-newsgrid, .apk-content-topicgrid, .apk-catalog-list.apk-editorial-grid { grid-template-columns: 1fr; }
    .apk-filter-tabs a { padding-inline: 10px; }
    .apk-topic-hero { flex-direction: column; align-items: flex-start; }
    .apk-topic-cover { width: 100%; height: auto; aspect-ratio: 1.9; }
    .apk-detail-sidebar { grid-template-columns: 1fr; }
    .apk-detail-tabs { gap: 16px; font-size: 12px; }
    .apk-app-hero-main { gap: 14px; }
    .apk-app-hero-main > .apk-app-icon { width: 62px; height: 62px; border-radius: 14px; }
    .apk-app-identity h1 { font-size: 23px; }
    .apk-app-identity p { font-size: 12px; }
    .apk-interior-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .apk-result-toolbar { flex-wrap: wrap; }
    .apk-catalog-row { gap: 12px; padding: 16px; flex-wrap: wrap; }
    .apk-catalog-row-action { margin-left: 72px; }
    .apk-catalog-source { flex-direction: column; align-items: stretch; }
    .apk-catalog-source .apk-download-button { width: 100%; }
    .apk-file-heading { gap: 14px; }
    .apk-file-heading h1, .apk-compact-app-heading h1 { font-size: 24px; }
    .apk-compact-icon { width: 60px; height: 60px; border-radius: 12px; }
    .apk-release-card-top { flex-wrap: wrap; }
    .apk-release-badge { margin-left: 57px; }
    .apk-search-dialog { padding: 20px; }
    .apk-search { padding: 6px; gap: 6px; }
    .apk-search button { padding-inline: 10px; }
    .apk-footer-inner { padding-block: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 1.1: catalogue modules, mobile navigation and pointer interactions. */
.apk-icon-arrow { width: 18px; height: 18px; vertical-align: middle; }
.apk-section-link, .apk-text-action, .apk-card-action, .apk-catalog-row-action, .apk-browse-more { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.apk-browse-more { display: flex; }
.apk-card-action .apk-icon-arrow, .apk-breadcrumb .apk-icon-arrow { width: 14px; height: 14px; }
.apk-pagination a { display: inline-flex; align-items: center; justify-content: center; }
.apk-category-links em { display: flex; align-items: center; }
.apk-section-intro { color: var(--apk-muted); font-size: 13px; margin-top: 6px; }
.apk-rank-file { display: block; color: var(--apk-quiet); }
.apk-hero-icon-background { object-fit: contain; padding: 42px; background: var(--apk-surface-deep); }
.apk-hero-track { touch-action: pan-y pinch-zoom; cursor: grab; user-select: none; -webkit-user-select: none; }
.apk-hero-track.apk-is-dragging { cursor: grabbing; }
.apk-hero-track.apk-is-dragging .apk-hero-slide { transform: translateX(var(--apk-swipe-offset, 0)); }
.apk-hero-track img { -webkit-user-drag: none; }
.apk-carousel-controls .apk-icon-button { width: 44px; height: 44px; }
.apk-carousel-dots button { height: 44px; padding: 20px 0; }
.apk-editorial-four, .apk-news-apps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.apk-topic-card .apk-editorial-visual { aspect-ratio: 1.55; }
.apk-topic-card .apk-editorial-body h3 { font-size: 16px; }
.apk-topic-count { color: var(--apk-accent); margin-top: 12px; }
.apk-result-title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.apk-result-title h1 { color: var(--apk-ink); font-size: clamp(24px, 2.4vw, 30px); }
.apk-category-description { color: var(--apk-muted); font-size: 13px; margin-bottom: 20px; }
.apk-collection-heading { padding: 18px 0 28px; }
.apk-collection-heading h1 { margin: 8px 0 12px; }
.apk-collection-heading p { color: var(--apk-muted); max-width: 680px; }
.apk-news-featured { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0 38px; }
.apk-news-featured .apk-story-card:first-child { grid-row: 1 / 3; }
.apk-news-featured .apk-story-card:first-child .apk-editorial-visual { aspect-ratio: 1.85; }
.apk-news-featured .apk-story-card:first-child h3 { font-size: 26px; }
.apk-news-featured .apk-story-card:not(:first-child) { flex-direction: row; }
.apk-news-featured .apk-story-card:not(:first-child) .apk-editorial-visual { width: 38%; flex-shrink: 0; aspect-ratio: auto; }
.apk-news-featured .apk-story-card:not(:first-child) .apk-editorial-body { padding: 16px; }
.apk-news-featured .apk-story-card:not(:first-child) p { display: none; }
.apk-news-featured .apk-story-card:not(:first-child) h3 { font-size: 16px; }
.apk-news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.apk-news-archive, .apk-news-sidebar { min-width: 0; }
.apk-news-sidebar { display: grid; gap: 24px; }
.apk-news-side-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--apk-line); }
.apk-news-side-row:last-child { border: 0; padding-bottom: 0; }
.apk-news-side-row strong { display: block; font-size: 13px; line-height: 1.5; }
.apk-news-side-row small { display: block; margin-top: 5px; font-size: 11px; }
.apk-archive-month { margin: 22px 0 5px; font-size: 13px; color: var(--apk-quiet); }
.apk-news-row { display: flex; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--apk-line); }
.apk-news-row > div { flex: 1; min-width: 0; }
.apk-news-row h3 { margin-bottom: 8px; }
.apk-news-row p { font-size: 12px; color: var(--apk-muted); margin-bottom: 8px; }
.apk-news-row-image { position: relative; width: 160px; aspect-ratio: 1.5; flex: 0 0 auto; background: var(--apk-panel); border-radius: 10px; overflow: hidden; }
.apk-news-row-image img { width: 100%; height: 100%; object-fit: cover; }
.apk-news-row-image .apk-cover-fallback { font-size: 48px; }
.apk-menu-toggle { display: none; }
.apk-mobile-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(340px, 88vw); height: 100%; height: 100dvh; max-height: 100%; max-width: 100%; padding: max(20px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); border: 0; border-left: 1px solid var(--apk-line); background: var(--apk-panel); color: var(--apk-ink); box-shadow: -20px 0 70px var(--apk-shadow-drawer); overflow-y: auto; }
.apk-mobile-drawer[open] { animation: apk-drawer-enter .22s ease-out; }
.apk-mobile-drawer::backdrop { background: var(--apk-drawer-backdrop); }
.apk-drawer-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--apk-line); font-size: 20px; }
.apk-drawer-nav { display: flex; flex-direction: column; gap: 5px; padding-top: 22px; }
.apk-drawer-nav a { display: flex; padding: 14px 12px; border-radius: 9px; font-size: 16px; font-weight: 650; }
.apk-drawer-nav a:hover, .apk-drawer-nav a[aria-current] { background: var(--apk-accent-soft); color: var(--apk-accent); }
@keyframes apk-drawer-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
.apk-screenshot-row > a { display: block; flex: 0 0 auto; cursor: zoom-in; scroll-snap-align: start; border-radius: 10px; }
.apk-image-lightbox { position: fixed; inset: 0; margin: 0; padding: 0; border: 0; width: 100vw; max-width: 100vw; height: 100%; height: 100dvh; max-height: 100%; background: var(--apk-lightbox); color: var(--apk-ink); overflow: hidden; }
.apk-image-lightbox::backdrop { background: var(--apk-lightbox-backdrop); }
.apk-image-lightbox[open] { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; }
.apk-lightbox-stage { grid-column: 2; grid-row: 1; height: calc(100% - 120px); display: flex; align-items: center; justify-content: center; min-width: 0; touch-action: pan-y pinch-zoom; user-select: none; }
.apk-lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; -webkit-user-drag: none; }
.apk-image-lightbox .apk-icon-button { background: var(--apk-lightbox-control); border-color: var(--apk-lightbox-control-border); width: 44px; height: 44px; margin-inline: auto; }
.apk-image-lightbox .apk-icon-button:hover { background: var(--apk-lightbox-control-hover); color: var(--apk-ink); }
.apk-lightbox-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px; z-index: 1; }
.apk-lightbox-counter { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; font-size: 14px; color: var(--apk-text); pointer-events: none; }
@media (max-width: 1050px) {
    .apk-editorial-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .apk-news-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; }
    .apk-news-row-image { width: 125px; }
}
@media (max-width: 900px) {
    .apk-menu-ready .apk-header-bar { flex-wrap: nowrap; min-height: 70px; gap: 12px; padding-block: 10px; }
    .apk-menu-ready .apk-header-bar .apk-primary-nav { display: none; }
    .apk-menu-ready .apk-header-tools { margin-left: auto; gap: 4px; flex-shrink: 0; }
    .apk-menu-ready .apk-menu-toggle { display: inline-flex; }
    .apk-menu-ready .apk-header-tools .apk-icon-button { width: 42px; height: 42px; }
    .apk-news-featured { grid-template-columns: 1.3fr 1fr; }
    .apk-news-featured .apk-story-card:not(:first-child) .apk-editorial-visual { width: 30%; }
}
@media (max-width: 760px) {
    .apk-news-layout { grid-template-columns: minmax(0, 1fr); }
    .apk-news-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .apk-news-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 14px; }
    .apk-news-featured .apk-story-card:first-child { grid-column: 1 / -1; grid-row: auto; }
    .apk-news-featured .apk-story-card:not(:first-child) { flex-direction: column; }
    .apk-news-featured .apk-story-card:not(:first-child) .apk-editorial-visual { width: 100%; aspect-ratio: 1.7; }
    .apk-news-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .apk-section-head:has(.apk-filter-tabs) { flex-wrap: wrap; }
    .apk-section-head .apk-filter-tabs { margin-left: auto; }
    .apk-result-title { gap: 8px 14px; }
}
@media (max-width: 480px) {
    .apk-menu-ready .apk-wordmark { max-width: min(145px, 36vw); }
    .apk-menu-ready .apk-brand-link { font-size: 20px; gap: 7px; min-width: 0; }
    .apk-menu-ready .apk-language-select { max-width: 56px; padding-inline: 2px; }
    .apk-menu-ready .apk-header-bar { gap: 6px; }
    .apk-editorial-four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .apk-editorial-four .apk-editorial-body { padding: 13px; }
    .apk-editorial-four h3 { font-size: 14px; }
    .apk-editorial-four .apk-editorial-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .apk-editorial-four .apk-editorial-visual .apk-label-badge { left: 10px; font-size: 9px; }
    .apk-editorial-four .apk-editorial-action { font-size: 10px; }
    .apk-news-sidebar { grid-template-columns: minmax(0, 1fr); }
    .apk-news-row { gap: 12px; }
    .apk-news-row-image { width: 94px; aspect-ratio: 1; }
    .apk-news-row h3 { font-size: 15px; }
    .apk-news-row p { display: none; }
    .apk-news-row > .apk-icon-arrow { display: none; }
    .apk-news-featured .apk-story-card:first-child h3 { font-size: 23px; }
    .apk-image-lightbox[open] { grid-template-columns: 44px minmax(0, 1fr) 44px; }
    .apk-image-lightbox .apk-lightbox-prev, .apk-image-lightbox .apk-lightbox-next { width: 36px; height: 44px; }
}

.apk-lightbox-prev { grid-column: 1; grid-row: 1; }
.apk-lightbox-next { grid-column: 3; grid-row: 1; }

/* Brand wordmarks remain readable with a visible .com suffix. */
.apk-wordmark{max-width:224px;max-height:54px}.apk-site-footer .apk-wordmark{max-width:230px}.apk-hero-eyebrow{letter-spacing:.1em}
@media(max-width:480px){.apk-wordmark{max-width:176px;max-height:44px}}

.apk-hero-copy > .apk-brand-price-note{font-size:12px;line-height:1.6;color:var(--apk-muted);margin-top:16px;max-width:470px}

/* Shared functional constraints; selectors are namespaced in this release. */
    .apk-home-view > *, .apk-hero-copy, .apk-content-section, .apk-tab-panel { min-width: 0; }
    .apk-section-head > div:first-child { min-width: 0; }
    .apk-hero-copy h1, .apk-app-card-copy, .apk-editorial-body h3 { overflow-wrap: anywhere; }
    .apk-hero-slide .apk-hero-caption, .apk-hero-slide:hover .apk-hero-caption { color: #fff; }
    .apk-hero-date { color: #e5e9f1; }
    .apk-icon-button { min-width: 44px; min-height: 44px; }
    .apk-section-link { white-space: normal; }
    @media(max-width:360px) { .apk-header-tools { gap: 0; } .apk-wordmark { max-width: 132px; } }
    
/* APKnic Hub: a compact directory with a persistent category rail. */
:root { --apk-bg:#0b2231; --apk-panel:#123549; --apk-panel-hover:#19465d; --apk-surface-deep:#0b283a; --apk-header:#0a1d2af7; --apk-footer:#071b27; --apk-line:#2d5265; --apk-line-soft:#2d526580; --apk-line-strong:#568498; --apk-ink:#f3fbff; --apk-text:#dcebf2; --apk-muted:#b2ccd9; --apk-quiet:#a3c0d0; --apk-accent:#67dcec; --apk-accent-hover:#a4f1fa; --apk-accent-ink:#07313d; --apk-accent-soft:#164b5c; --apk-badge-gold:#ffad8b; --apk-badge-gold-ink:#421c12; --apk-radius:10px; }
.apk-wrap, .apk-reading-wrap { width:min(1320px,calc(100% - 48px)); }
.apk-header-bar { display:grid; grid-template-columns:220px minmax(0,1fr) auto; column-gap:28px; row-gap:0; min-height:108px; padding-top:16px; }
.apk-masthead-search { max-width:660px; justify-self:stretch; }
.apk-masthead-search .apk-search { padding:5px 8px; border-color:var(--apk-line); }
.apk-masthead-search .apk-search button { padding:6px 16px; }
.apk-header-tools { grid-column:3; grid-row:1; }
.apk-header-tools .apk-search-toggle { display:none; }
.apk-primary-nav { grid-row:2; grid-column:2 / 4; margin:0; align-self:end; gap:30px; }
.apk-primary-nav a { padding:12px 0; font-size:13px; }
.apk-brand-link { align-self:start; padding-top:2px; }
.apk-wordmark { max-width:200px; max-height:48px; }
.apk-directory-front { display:grid; grid-template-columns:220px minmax(0,1fr); gap:28px; padding-top:26px; align-items:start; }
.apk-directory-rail { position:sticky; top:140px; max-height:calc(100vh - 165px); overflow:auto; scrollbar-width:thin; scrollbar-color:var(--apk-line) transparent; display:grid; gap:14px; padding-right:6px; }
.apk-directory-rail .apk-sidebar-panel { padding:16px; border-color:var(--apk-line); background:transparent; }
.apk-directory-rail .apk-sidebar-panel h2 { font-size:13px; margin-bottom:12px; }
.apk-directory-rail .apk-category-links a { font-size:12px; padding-block:7px; }
.apk-directory-jumps { display:grid; background:var(--apk-panel); border:1px solid var(--apk-line); border-radius:10px; padding:8px; }
.apk-directory-jumps a { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px; font-size:12px; color:var(--apk-text); }
.apk-directory-jumps a:hover { background:var(--apk-accent-soft); border-radius:6px; }
.apk-directory-main { min-width:0; }
.apk-directory-intro { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; padding:30px; border:1px solid #386c82; border-radius:12px; background:linear-gradient(120deg,#164458,#0d2e43); margin-bottom:24px; }
.apk-directory-intro .apk-hero-eyebrow { border:0; padding:0; color:#a7ebf5; font-size:10px; }
.apk-directory-intro .apk-hero-copy h1 { max-width:780px; font-size:clamp(28px,3vw,38px); margin:10px 0 12px; }
.apk-directory-intro .apk-hero-copy > p { max-width:750px; font-size:14px; }
.apk-directory-intro .apk-hero-actions { gap:10px; margin-top:18px; }
.apk-directory-intro .apk-hero-actions a { min-height:38px; padding:7px 14px; font-size:12px; border-radius:6px; }
.apk-directory-search { max-width:650px; }
.apk-directory-feature .apk-hero-carousel { border-radius:10px; }
.apk-directory-feature .apk-hero-slide { aspect-ratio:3.4; min-height:220px; }
.apk-directory-feature .apk-hero-caption { left:24px; bottom:20px; max-width:600px; }
.apk-directory-feature .apk-hero-caption h2 { font-size:26px; -webkit-line-clamp:2; }
.apk-directory-feature .apk-carousel-controls { padding:0 16px; }
.apk-content-section { margin-block:32px; }
.apk-section-head { margin-bottom:16px; padding-bottom:14px; align-items:center; }
.apk-section-head h2 { font-size:22px; }
.apk-section-head .apk-eyebrow { font-size:9px; letter-spacing:.15em; }
.apk-app-grid, .apk-content-appgrid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.apk-directory-tile { padding:16px; border-radius:10px; }
.apk-directory-tile .apk-app-card-main, .apk-card-compact .apk-app-card-main { flex-direction:row; gap:12px; }
.apk-directory-tile .apk-app-icon, .apk-card-wide .apk-app-icon { width:54px; height:54px; border-radius:12px; }
.apk-card-compact .apk-app-card-copy > strong { min-height:0; font-size:13px; }
.apk-directory-tile .apk-card-meta { font-size:10px; margin-top:5px; }
.apk-directory-tile .apk-card-bottom, .apk-card-wide .apk-card-bottom { padding:12px 0 0; gap:6px; }
.apk-directory-tile .apk-card-action { font-size:10px; padding:3px 8px; width:auto; }
.apk-directory-tile .apk-card-action .apk-icon-arrow { width:12px; }
.apk-directory-tile .apk-card-version { font-size:10px; max-width:100px; }
.apk-directory-trending .apk-feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.apk-directory-charts .apk-rank-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 22px; }
.apk-directory-charts .apk-rank-number { color:var(--apk-accent); font-size:15px; }
.apk-directory-reading .apk-editorial-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.apk-directory-reading .apk-story-card { flex-direction:row; }
.apk-directory-reading .apk-editorial-visual { width:36%; flex:0 0 36%; aspect-ratio:auto; }
.apk-directory-reading .apk-editorial-body { padding:16px; }
.apk-directory-reading h3 { font-size:15px; }
.apk-directory-topics .apk-editorial-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.apk-directory-topics .apk-editorial-body { padding:16px; }
.apk-directory-topics .apk-editorial-body p { -webkit-line-clamp:2; display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; }
.apk-catalog-layout { grid-template-columns:220px minmax(0,1fr); gap:28px; }
.apk-catalog-filter { grid-column:1; grid-row:1; }
.apk-catalog-results { grid-column:2; grid-row:1; }
.apk-directory-catalog { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.apk-directory-catalog .apk-card-description { -webkit-line-clamp:3; margin-top:8px; font-size:11px; }
.apk-catalog-list .apk-card-wide .apk-app-card-copy > strong { font-size:14px; }
.apk-detail-columns { grid-template-columns:285px minmax(0,1fr); gap:26px; }
.apk-detail-sidebar { grid-column:1; grid-row:1; }
.apk-detail-primary { grid-column:2; grid-row:1; }
.apk-detail-sidebar .apk-app-hero { display:flex; flex-direction:column; padding:22px; gap:22px; border-top:3px solid var(--apk-accent); }
.apk-detail-sidebar .apk-app-hero-main { flex-direction:column; gap:16px; align-items:flex-start; }
.apk-detail-sidebar .apk-app-identity h1 { font-size:25px; }
.apk-detail-sidebar .apk-app-hero-main > .apk-app-icon { width:88px; height:88px; border-radius:20px; }
.apk-detail-sidebar .apk-app-hero-actions { width:100%; min-width:0; }
.apk-detail-sidebar .apk-app-identity p { font-size:12px; }
.apk-detail-sidebar .apk-sidebar-panel, .apk-detail-sidebar .apk-info-panel, .apk-detail-sidebar .apk-related-panel { padding:20px; }
.apk-detail-tabs { margin-top:0; }
.apk-detail-section { padding:26px; }
.apk-screenshot-row img { height:260px; }
.apk-news-featured { grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:auto; gap:16px; }
.apk-news-featured .apk-story-card:first-child { grid-row:auto; }
.apk-news-featured .apk-story-card:not(:first-child) { flex-direction:column; }
.apk-news-featured .apk-story-card:not(:first-child) .apk-editorial-visual, .apk-news-featured .apk-story-card:first-child .apk-editorial-visual { width:100%; aspect-ratio:1.6; }
.apk-news-featured .apk-story-card:first-child h3, .apk-news-featured .apk-story-card h3 { font-size:17px; }
.apk-news-featured .apk-story-card p { display:none; }
.apk-news-layout { grid-template-columns:minmax(0,1fr) 270px; }
.apk-topics-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.apk-topics-grid .apk-editorial-visual { aspect-ratio:2.2; }
.apk-topics-grid .apk-editorial-body { padding:22px; }
.apk-content-article-header { padding:30px; background:var(--apk-panel); border-left:4px solid var(--apk-accent); border-radius:10px; }
.apk-content-article-header h1 { font-size:clamp(28px,3.4vw,40px); }
.apk-reading-wrap > .apk-reading-panel, .apk-content-articlevisual, .apk-content-article-header { max-width:960px; }
.apk-filter-tabs { border-radius:7px; }
.apk-filter-tabs a { border-radius:4px; }
@media(max-width:1100px) {
    .apk-directory-front, .apk-catalog-layout { grid-template-columns:190px minmax(0,1fr); gap:20px; }
    .apk-app-grid, .apk-content-appgrid, .apk-directory-catalog { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .apk-directory-charts .apk-rank-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .apk-directory-reading .apk-story-card { flex-direction:column; }
    .apk-directory-reading .apk-editorial-visual { width:100%; flex-basis:auto; aspect-ratio:2; }
    .apk-news-featured { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:900px) {
    .apk-header-bar, .apk-menu-ready .apk-header-bar { display:flex; min-height:72px; padding-block:12px; }
    .apk-masthead-search { display:none; }
    .apk-header-tools .apk-search-toggle { display:inline-flex; }
    .apk-brand-link { padding:0; align-self:center; }
    .apk-directory-front { display:flex; flex-direction:column; gap:20px; }
    .apk-directory-main { width:100%; }
    .apk-directory-rail { position:static; max-height:none; width:100%; order:2; grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; padding:0; }
    .apk-directory-jumps { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:10px; }
    .apk-directory-intro { padding:24px; }
    .apk-directory-topics .apk-editorial-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
    .apk-wrap, .apk-reading-wrap { width:calc(100% - 32px); }
    .apk-header-bar { flex-wrap:wrap; }
    .apk-catalog-layout, .apk-detail-columns { display:flex; flex-direction:column; }
    .apk-catalog-filter { order:2; }
    .apk-detail-sidebar { display:contents; }
    .apk-detail-primary { order:2; width:100%; }
    .apk-detail-sidebar .apk-app-hero { order:1; width:100%; }
    .apk-detail-sidebar .apk-app-hero-main { flex-direction:row; align-items:flex-start; }
    .apk-detail-sidebar .apk-info-panel { order:3; width:100%; }
    .apk-detail-sidebar .apk-related-panel { order:4; width:100%; }
    .apk-detail-sidebar > .apk-sidebar-panel { order:5; width:100%; }
    .apk-detail-tabs { margin-top:4px; }
    .apk-topics-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .apk-news-layout { grid-template-columns:1fr; }
    .apk-directory-feature .apk-hero-slide { min-height:0; aspect-ratio:2; }
}
@media(max-width:520px) {
    .apk-directory-intro { padding:20px; }
    .apk-directory-intro .apk-hero-copy h1 { font-size:29px; }
    .apk-directory-tile { padding:12px; }
    .apk-directory-tile .apk-app-card-main, .apk-card-compact .apk-app-card-main { gap:9px; flex-direction:column; }
    .apk-directory-tile .apk-app-icon { width:52px; height:52px; }
    .apk-directory-trending .apk-feature-grid { grid-template-columns:1fr; }
    .apk-directory-trending .apk-app-card-main { flex-direction:row; }
    .apk-directory-charts .apk-rank-grid { grid-template-columns:1fr; }
    .apk-directory-reading .apk-editorial-grid { grid-template-columns:1fr; }
    .apk-directory-reading .apk-story-card { flex-direction:row; }
    .apk-directory-reading .apk-editorial-visual { width:32%; flex:0 0 32%; aspect-ratio:auto; }
    .apk-directory-rail { grid-template-columns:1fr; }
    .apk-directory-feature .apk-hero-caption h2 { font-size:22px; }
    .apk-directory-feature .apk-hero-slide { aspect-ratio:1.5; }
    .apk-topics-grid { grid-template-columns:1fr; }
    .apk-detail-sidebar .apk-app-hero-main > .apk-app-icon { width:62px; height:62px; border-radius:14px; }
    .apk-detail-sidebar .apk-app-identity h1 { font-size:24px; }
}
/* Dedicated 404 page: native navigation, responsive and keyboard accessible. */
.apk-notfound { --nf-ink: var(--apk-ink); --nf-muted: var(--apk-muted); --nf-line: var(--apk-line); --nf-accent: var(--apk-accent); --nf-accent-ink: var(--apk-accent-ink); --nf-accent-hover: var(--apk-accent-hover); --nf-accent-soft: var(--apk-accent-soft); --nf-bg: var(--apk-panel); width: min(1120px, calc(100% - 40px)); margin: clamp(28px, 6vw, 72px) auto; color: var(--nf-ink); }
.apk-notfound-hero { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); text-align: left; align-items: center; gap: 24px; padding: clamp(24px, 5vw, 64px); border: 1px solid var(--nf-line); border-radius: 24px; background: var(--nf-bg); }
.apk-notfound-code { color: var(--nf-accent); font-size: clamp(88px, 14vw, 176px); font-weight: 850; line-height: 1; letter-spacing: -.06em; text-align: center; }
.apk-notfound-copy { min-width: 0; }
.apk-notfound h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; letter-spacing: -.025em; color: var(--nf-ink); }
.apk-notfound-copy > p { margin: 16px 0 24px; color: var(--nf-muted); line-height: 1.7; }
.apk-notfound-home { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 12px; background: var(--nf-accent); color: var(--nf-accent-ink); text-decoration: none; font-weight: 700; line-height: 1.4; }
.apk-notfound-home:hover { color: var(--nf-accent-ink); background: var(--nf-accent-hover); text-decoration: none; }
.apk-notfound-home:focus-visible { outline: 3px solid var(--nf-accent); outline-offset: 4px; }
.apk-notfound-home svg { display: block; flex: none; width: 20px; height: 20px; }
.apk-notfound-search { width: 100%; max-width: 520px; margin: 28px 0 0; }
.apk-notfound-search form { margin: 0; max-width: none; width: 100%; }
.apk-notfound-related { margin-top: 40px; }
.apk-notfound-related h2 { margin: 0 0 20px; font-size: 24px; line-height: 1.3; }
.apk-notfound-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) {
    .apk-notfound { width: calc(100% - 28px); margin: 24px auto; }
    .apk-notfound-hero { grid-template-columns: minmax(0, 1fr); text-align: center; padding: 28px 18px; gap: 24px; }
    .apk-notfound-search { margin: 24px auto 0; }
    .apk-notfound-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) { .apk-notfound-grid { grid-template-columns: minmax(0, 1fr); } }
