/*
Theme Name: RightAPKS
Description: Custom theme for the RightAPKS APK/MOD catalog. Native PHP templates, no page builder.
Author: RightAPKS
Version: 1.0.0
*/

:root {
  --bg:       #080a14;
  --surf:     #0d0f1c;
  --surf2:    #121527;
  --b1:       #1a1d30;
  --b2:       #262a48;

  --accent:   #4361ee;
  --accent2:  #6e8bff;
  --accentG:  linear-gradient(135deg, #2c46c9 0%, #4361ee 55%, #6e8bff 100%);
  --mint:     #2ee6a8;
  --mint-dim: rgba(46,230,168,.12);

  --text:     #e7e6f7;
  --muted:    #5f6284;
  --muted2:   #8285a8;

  --c-apk:    #1ef0b8;
  --c-apks:   #fc3971;
  --c-xapk:   #e68e63;
  --c-req:    #eec314;
  --c-other:  #d7e9df;
  --c-alt:    #b146f9;
  --c-obb:    #38bdf8;
  --c-mod:    #fc0437;
  --gold:     #eec314;

  --owner-g:  linear-gradient(135deg, #eab308 0%, #fbbf24 55%, #fde68a 100%);
  --admin-g:  linear-gradient(135deg, #0e7490 0%, #22d3ee 55%, #cffafe 100%);

  --disp:     'Syne', sans-serif;
  --body:     'Rubik', sans-serif;
  --mono:     'JetBrains Mono', monospace;

  --radius:   14px;
  --radius-sm:8px;
  --shadow:   0 4px 24px rgba(0,0,0,.5);
  --shadow-lg:0 14px 50px rgba(0,0,0,.65);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: var(--body);
  font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display:block; max-width:100%; }
.page-content h1, .page-content h2, .page-content h3 { margin-top:2rem; margin-bottom:.75rem; }
.page-content h1:first-child, .page-content h2:first-child, .page-content h3:first-child { margin-top:0; }
.page-content p { margin-bottom:1rem; color:var(--muted2); }
.page-content ul, .page-content ol { margin-bottom:1rem; padding-left:1.4rem; color:var(--muted2); }
.page-content .video-placeholder { aspect-ratio:16/9; max-width:640px; border:1px dashed var(--b2); border-radius:12px; display:flex; align-items:center; justify-content:center; color:var(--muted2); font-size:13px; background:var(--surf); margin-bottom:2rem; text-align:center; padding:1rem; }
.page-content h2.tutorial-heading { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem; }
.similar-pill.pill-lg { font-size:13px; padding:5px 13px; }
button { cursor:pointer; border:none; font-family: var(--body); background:none; }
::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background: var(--b2); border-radius:2px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

.ic { width:1em; height:1em; fill:none; stroke:currentColor; stroke-width:2.1; stroke-linecap:round; stroke-linejoin:round; display:inline-block; vertical-align:middle; flex-shrink:0; }
.ic-sm { font-size:13px; }
.ic-md { font-size:20px; }
.ic-lg { font-size:26px; }
.ic-xl { font-size:40px; }

[data-module].is-off { display:none !important; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ NAVBAR */
.navbar { position: sticky; top: 0; z-index: 200; background: rgba(8,10,20,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--b1); }
.nav-inner { display:flex; align-items:center; gap:1rem; padding: .85rem 1.5rem; max-width:1180px; margin:0 auto; }
.logo { display:flex; align-items:center; gap:.55rem; flex-shrink:0; }
.logo-icon {
  width:32px; height:32px; border-radius:9px; background: var(--accentG);
  display:flex; align-items:center; justify-content:center; color:#fff;
  box-shadow: 0 0 0 1px rgba(67,97,238,.35), 0 4px 14px rgba(67,97,238,.35);
}
.logo-text { font-family: var(--disp); font-size:18px; font-weight:800; letter-spacing:-.04em; color:#fff; }
.logo-text span { color: var(--accent2); }

.search-wrap { flex:1; max-width:440px; margin:0 1.5rem; position:relative; }
.search-icon { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--muted); pointer-events:none; }
.search-input {
  width:100%; background: var(--surf); border:1px solid var(--b1); border-radius:10px;
  padding:9px 14px 9px 36px; font-family:var(--body); font-size:14px; color:var(--text); outline:none;
  transition: border-color .2s, box-shadow .2s;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(67,97,238,.16); }

.nav-links { display:flex; align-items:center; gap:.25rem; margin-left:auto; flex-shrink:0; }
.nav-link { padding:7px 12px; font-size:13.5px; font-weight:500; color:var(--muted2); border-radius:var(--radius-sm); transition: color .15s, background .15s; white-space:nowrap; }
.nav-link:hover { color: var(--text); background: var(--surf); }
.nav-link.active { color: var(--text); }

.nav-cta {
  display:flex; align-items:center; gap:6px; padding:7px 15px;
  background: var(--accentG); color:#fff; font-size:13.5px; font-weight:600;
  border-radius: var(--radius-sm); box-shadow: 0 2px 12px rgba(67,97,238,.4);
  transition: transform .15s, box-shadow .15s, filter .15s;
  white-space:nowrap; position: relative; overflow: hidden;
}
.nav-cta::before { content:''; position:absolute; top:0; left:-60%; width:40%; height:100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(67,97,238,.5); filter: brightness(1.08); }
.nav-cta:hover::before { animation: shine .9s ease; }
.nav-cta:active { transform: scale(.97); }
@keyframes shine { from { left:-60%; } to { left:130%; } }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ HERO */
.hero { padding: 2.75rem 0 2.25rem; position:relative; overflow:hidden; }
.hero::before {
  content:''; position:absolute; top:-220px; left:50%; transform:translateX(-50%);
  width:750px; height:480px; background: radial-gradient(ellipse, rgba(67,97,238,.16) 0%, transparent 70%); pointer-events:none;
}
.hero::after {
  content:''; position:absolute; top:20px; right:-140px; width:380px; height:380px;
  background: radial-gradient(ellipse, rgba(46,230,168,.08) 0%, transparent 70%); pointer-events:none;
}
.hero-inner { display:grid; grid-template-columns:1fr 1fr; gap:3.5rem; align-items:center; position:relative; z-index:1; }
.hero-inner.no-visual { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; text-align: left; }
@media(max-width:760px){ .hero-inner { grid-template-columns:1fr; } .hero-visual { display:none; } }

.hero-badge { display:inline-flex; align-items:center; gap:6px; background: rgba(67,97,238,.1); border:1px solid rgba(67,97,238,.28); border-radius:20px; padding:4px 12px; font-size:12px; font-family:var(--mono); color:var(--accent2); letter-spacing:.06em; margin-bottom:1rem; }
.hero-badge-dot { width:6px; height:6px; border-radius:50%; background:var(--accent2); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.5;transform:scale(.7);} }

.hero-title { font-family: var(--disp); font-size: clamp(30px,4.6vw,46px); font-weight:800; line-height:1.06; letter-spacing:-.04em; margin-bottom:.9rem; }
/* Solid-color fallback FIRST -- if the gradient-clip effect below hiccups
   during a webfont swap/repaint (seen in Brave on hard refresh, not
   Chrome/Firefox: transparent text briefly has no gradient painted behind
   it yet, reading as invisible/black), this keeps the text visibly blue
   instead of vanishing. */
.hero-title .hl { color: var(--accent2); }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero-title .hl {
    background: linear-gradient(120deg, var(--accent2) 0%, #9fc0ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}
.hero-sub { font-size:15px; color:var(--muted2); line-height:1.7; max-width:420px; margin-bottom:1.5rem; }
.hero-actions { display:flex; gap:.75rem; flex-wrap:wrap; }

.btn-primary {
  display:inline-flex; align-items:center; gap:7px; padding:11px 22px;
  background: var(--accentG); color:#fff; font-size:14px; font-weight:600;
  border-radius: var(--radius-sm); box-shadow: 0 4px 18px rgba(67,97,238,.42);
  transition: transform .15s, box-shadow .15s, filter .15s; position:relative; overflow:hidden;
}
.btn-primary::before { content:''; position:absolute; top:0; left:-60%; width:40%; height:100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(67,97,238,.52); filter: brightness(1.08); }
.btn-primary:hover::before { animation: shine .9s ease; }
.btn-primary:active { transform: scale(.97); }

.btn-ghost { display:inline-flex; align-items:center; gap:7px; padding:11px 22px; background:transparent; border:1px solid var(--b2); color:var(--muted2); font-size:14px; font-weight:500; border-radius:var(--radius-sm); transition: border-color .15s, color .15s, background .15s; }
.btn-ghost:hover { border-color:var(--muted); color:var(--text); background:var(--surf); }

.hero-stats { display:flex; gap:1.75rem; margin-top:1.5rem; padding-top:1.5rem; border-top:1px solid var(--b1); }
.h-stat-n { font-family:var(--disp); font-size:22px; font-weight:800; letter-spacing:-.04em; color:var(--text); line-height:1; }
.h-stat-n span { color: var(--accent2); }
.h-stat-l { font-size:12px; color:var(--muted); margin-top:3px; }

.hero-visual { position:relative; display:flex; justify-content:center; align-items:center; }
.float-card { background: var(--surf); border:1px solid var(--b1); border-radius:20px; padding:1.5rem; width:100%; max-width:320px; box-shadow: var(--shadow-lg); position:relative; }
.float-card-badge { position:absolute; top:-10px; right:16px; display:flex; align-items:center; gap:4px; background: var(--mint); color:#04140e; font-size:11px; font-family:var(--mono); font-weight:600; letter-spacing:.05em; padding:3px 10px; border-radius:20px; }
.fcard-top { display:flex; align-items:center; gap:.9rem; margin-bottom:1rem; }
.fcard-icon { width:52px; height:52px; border-radius:14px; background: linear-gradient(135deg, #1c2450, #2c46c9); display:flex; align-items:center; justify-content:center; color:#fff; flex-shrink:0; overflow:hidden; }
.fcard-icon img { width:100%; height:100%; object-fit:cover; }
.fcard-name { font-weight:700; font-size:15px; letter-spacing:-.02em; }
.fcard-dev { font-size:12px; color:var(--muted); margin-top:2px; }
.fcard-bar-wrap { margin-bottom:1rem; }
.fcard-bar-lbl { display:flex; justify-content:space-between; font-size:12px; color:var(--muted); margin-bottom:5px; }
.fcard-bar { height:4px; background:var(--b2); border-radius:2px; overflow:hidden; }
.fcard-bar-fill { height:100%; border-radius:2px; background: var(--accentG); width:0%; transition: width 1.4s cubic-bezier(.2,.7,.3,1); }
.fcard-row { display:flex; gap:.5rem; margin-top:1rem; flex-wrap:wrap; }
.fcard-tag { background: rgba(67,97,238,.1); border:1px solid rgba(67,97,238,.22); color:var(--accent2); padding:3px 10px; border-radius:6px; font-size:11.5px; font-family:var(--mono); }
.mini-badge { position:absolute; background:var(--surf); border:1px solid var(--b1); border-radius:12px; padding:.55rem .85rem; display:flex; align-items:center; gap:.5rem; font-size:12.5px; font-weight:500; box-shadow: var(--shadow); white-space:nowrap; color: var(--accent2); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ CATEGORY PILLS BAR */
.cats-bar { border-top:1px solid var(--b1); border-bottom:1px solid var(--b1); background:var(--surf); }
.cats-inner { display:flex; gap:.4rem; padding:.75rem 1.5rem; overflow-x:auto; -ms-overflow-style:none; scrollbar-width:none; max-width:1180px; margin:0 auto; }
.cats-inner::-webkit-scrollbar { display:none; }
.cat-pill { display:inline-flex; align-items:center; gap:5px; padding:6px 14px; background:transparent; border:1px solid var(--b2); border-radius:20px; font-size:13px; color:var(--muted2); font-family:var(--body); white-space:nowrap; transition: border-color .15s, color .15s, background .15s; }
.cat-pill:hover, .cat-pill.active { border-color:var(--accent); color:var(--accent2); background: rgba(67,97,238,.08); }
.cat-pill.active { font-weight:600; }
.cat-count { background:var(--b1); border-radius:20px; padding:1px 7px; font-size:11px; font-family:var(--mono); color:var(--muted); }
.cat-pill.active .cat-count { background: rgba(67,97,238,.16); color:var(--accent2); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ INFO STRIP */
.info-strip { background: var(--surf); border-top:1px solid var(--b1); border-bottom:1px solid var(--b1); padding: 2.5rem 0; }
.info-strip-inner { display:grid; grid-template-columns: repeat(4,1fr); gap:1px; }
@media(max-width:680px){ .info-strip-inner { grid-template-columns: repeat(2,1fr); } }
.info-item { padding:1.25rem 2rem; border-right:1px solid var(--b1); }
.info-item:last-child { border-right:none; }
.info-n { font-family:var(--disp); font-size:30px; font-weight:800; letter-spacing:-.04em; color:var(--text); line-height:1; margin-bottom:.35rem; }
.info-n span { color: var(--accent2); }
.info-l { font-size:13px; color:var(--muted); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SECTION HEAD */
.releases-block { padding: 1.9rem 0; }
.releases-block:first-of-type { padding-top: 2.5rem; }
.sec-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:1.1rem; gap:1rem; flex-wrap:wrap; }
.sec-label-small { font-family:var(--mono); font-size:10.5px; color:var(--accent2); text-transform:uppercase; letter-spacing:.1em; margin-bottom:.3rem; }
.sec-title { font-family:var(--disp); font-size:21px; font-weight:800; letter-spacing:-.03em; }
.see-all { display:inline-flex; align-items:center; gap:4px; font-size:13px; color:var(--muted2); border:1px solid var(--b2); border-radius:var(--radius-sm); padding:6px 12px; transition: color .15s, border-color .15s; flex-shrink:0; }
.see-all:hover { color:var(--text); border-color:var(--muted); }
.see-all .ic { transition: transform .2s; }
.see-all:hover .ic { transform: translateX(3px); }
.empty-state { color:var(--muted); font-size:13.5px; padding:1.5rem 0; }

/* Apps archive (/app/, both the ?show=<key> "View All" pages and the
   default full-catalog view) -- no hero above it, so this owns its own top
   padding instead of leaning on .releases-block:first-of-type. */
.archive-wrap { padding: 2.5rem 0 3rem; }
.archive-head { margin-bottom: 1.1rem; }
.archive-pagination { margin-top: 2rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ APP CARDS */
.apps-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap:1rem; }
.app-card { background: var(--surf); border:1px solid var(--b1); border-radius: var(--radius); overflow:hidden; display:flex; flex-direction:column; transition: border-color .2s, box-shadow .2s, transform .2s; }
.app-card:hover { border-color: var(--b2); box-shadow: 0 8px 32px rgba(0,0,0,.55); transform: translateY(-2px); }
.app-card-img { aspect-ratio: 16/9; background: var(--b1); position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center; color: var(--muted2); }
.app-card-img img { width:100%; height:100%; object-fit:cover; }
.app-card-img-bg { position:absolute; inset:0; background: linear-gradient(135deg, var(--b1) 0%, var(--surf2) 100%); }
.app-card-ver { position:absolute; bottom:8px; left:8px; background: rgba(8,10,20,.78); backdrop-filter: blur(6px); border:1px solid var(--b1); border-radius:6px; padding:2px 8px; font-size:11px; font-family:var(--mono); color:var(--muted2); }
.app-card-new { position:absolute; top:8px; right:8px; background: var(--accentG); border-radius:6px; padding:2px 8px; font-size:11px; font-family:var(--mono); color:#fff; font-weight:600; }

.app-card-body { padding:.95rem 1rem; flex:1; display:flex; flex-direction:column; }
.app-card-top { display:flex; align-items:flex-start; gap:.65rem; margin-bottom:.65rem; }
.app-icon { width:40px; height:40px; border-radius:10px; background:var(--b2); display:flex; align-items:center; justify-content:center; color: var(--accent2); flex-shrink:0; border:1px solid var(--b1); overflow:hidden; }
.app-icon img { width:100%; height:100%; object-fit:cover; }
.app-name { font-size:14px; font-weight:600; letter-spacing:-.02em; line-height:1.3; }
.app-dev { font-size:12px; color:var(--muted); margin-top:2px; }
.app-meta { display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top:.65rem; border-top:1px solid var(--b1); }
.app-stars { display:flex; align-items:center; gap:3px; font-size:12px; color:var(--muted2); }
.star { color:var(--gold); font-size:11px; }
.app-size { font-size:11px; font-family:var(--mono); color:var(--muted); }

.app-card-footer { padding: 0 1rem 1rem; }
.dl-badges { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:8px; }
.dl-badge { display:inline-flex; align-items:center; gap:4px; padding:3px 8px; border-radius:6px; font-size:10px; font-family:var(--mono); font-weight:600; letter-spacing:.02em; }
.dl-badge-new { background: var(--accentG); color:#fff; }
.dl-badge-mod { background: rgba(110,139,255,.14); border:1px solid rgba(110,139,255,.4); color: var(--accent2); }
.dl-badge-xapk { background: rgba(230,142,99,.14); border:1px solid rgba(230,142,99,.4); color: var(--c-xapk); }
.dl-badge-apks { background: rgba(252,57,113,.14); border:1px solid rgba(252,57,113,.4); color: var(--c-apks); }
.dl-badge-req { background: rgba(238,195,20,.14); border:1px solid rgba(238,195,20,.4); color: var(--c-req); }
.dl-badge-other { background: rgba(215,233,223,.1); border:1px solid rgba(215,233,223,.3); color: var(--c-other); }

.btn-download { width:100%; display:flex; align-items:center; justify-content:center; gap:8px; padding:9px 0; border-radius: var(--radius-sm); font-size:13px; font-weight:600; letter-spacing:-.01em; transition: background .15s, border-color .15s, transform .12s, box-shadow .15s; position: relative; overflow: hidden; }
.btn-download:active { transform: scale(.98); }
.btn-download::before { content:''; position:absolute; top:0; left:-70%; width:40%; height:100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-20deg); pointer-events:none; }
.btn-download:hover::before { animation: shine .8s ease; }

.btn-download.type-apk   { background: rgba(30,240,184,.1); border:1px solid rgba(30,240,184,.32);  color: var(--c-apk); }
.btn-download.type-apk:hover   { background: rgba(30,240,184,.18); box-shadow:0 4px 16px rgba(30,240,184,.22); }
.btn-download.type-apks  { background: rgba(252,57,113,.1); border:1px solid rgba(252,57,113,.32);  color: var(--c-apks); }
.btn-download.type-apks:hover  { background: rgba(252,57,113,.18); box-shadow:0 4px 16px rgba(252,57,113,.22); }
.btn-download.type-xapk  { background: rgba(230,142,99,.1); border:1px solid rgba(230,142,99,.32);  color: var(--c-xapk); }
.btn-download.type-xapk:hover  { background: rgba(230,142,99,.18); box-shadow:0 4px 16px rgba(230,142,99,.22); }
.btn-download.type-other { background: rgba(215,233,223,.08); border:1px solid rgba(215,233,223,.26); color: var(--c-other); }
.btn-download.type-other:hover { background: rgba(215,233,223,.14); box-shadow:0 4px 16px rgba(215,233,223,.14); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ FOOTER */
footer { background: var(--surf); border-top:1px solid var(--b1); padding: 3rem 0 2rem; }
.footer-grid { display:grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap:2rem; margin-bottom:2.5rem; }
@media(max-width:700px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:460px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { font-size:13.5px; color:var(--muted); margin-top:.75rem; line-height:1.7; max-width:240px; }
.footer-col-title { font-size:12px; font-family:var(--mono); text-transform:uppercase; letter-spacing:.1em; color:var(--muted); margin-bottom:.85rem; }
.footer-links { display:flex; flex-direction:column; gap:.5rem; }
.footer-links a { font-size:13.5px; color:var(--muted2); transition: color .15s; }
.footer-links a:hover { color:var(--text); }
.footer-bottom { border-top:1px solid var(--b1); padding-top:1.5rem; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.5rem; font-size:12.5px; color:var(--muted); }
.footer-legal-links { display:flex; justify-content:center; gap:1.5rem; font-size:12.5px; margin-bottom:1.1rem; max-width:1180px; margin-left:auto; margin-right:auto; padding:0 1.5rem; }
.footer-legal-links a { color:var(--muted2); transition:color .15s; }
.footer-legal-links a:hover { color:var(--text); }

@media(max-width:900px){ .search-wrap { max-width:260px; } .nav-links .nav-link { display:none; } }
@media(max-width:640px){ .search-wrap { display:none; } .apps-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); } }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ POST PAGE (single-app.php) */
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.breadcrumb { padding: 1.1rem 0 0; font-size:12.5px; color:var(--muted); }
.breadcrumb a:hover { color:var(--accent2); }

.post-hero { padding: 1.2rem 0 1.5rem; display:flex; gap:1.25rem; align-items:flex-start; border-bottom:1px solid var(--b1); }
.post-icon-wrap { flex-shrink:0; cursor:zoom-in; position:relative; }
.post-icon { width:84px; height:84px; border-radius:20px; background: linear-gradient(135deg, #1c2450, #2c46c9); display:flex; align-items:center; justify-content:center; color:#fff; border:1px solid var(--b1); transition: transform .15s; overflow:hidden; }
.post-icon img { width:100%; height:100%; object-fit:cover; }
.post-icon-wrap:hover .post-icon { transform: scale(1.04); }
.post-icon-hint { position:absolute; bottom:-6px; right:-6px; width:22px; height:22px; border-radius:50%; background:var(--surf); border:1px solid var(--b1); display:flex; align-items:center; justify-content:center; color:var(--muted2); }
.post-head-text { flex:1; min-width:0; }
.post-title { font-family:var(--disp); font-size: clamp(22px,3.4vw,30px); font-weight:800; letter-spacing:-.03em; line-height:1.1; }
.post-dev { font-size:13.5px; color:var(--muted); margin-top:4px; }
.post-meta-row { display:flex; align-items:center; gap:1.1rem; flex-wrap:wrap; margin-top:.9rem; }
.post-meta-item { display:flex; align-items:center; gap:5px; font-size:13px; color:var(--muted2); }
.post-meta-item strong { color:var(--text); font-weight:700; }

/* Mirrors page only ("Download Options") -- badges that sit under the
   title once instead of repeating above every mirror button below, plus
   version/Android/size as plain info chips (the Post page uses stars +
   .post-meta-row instead, different context). */
.top-badges-row { display:flex; gap:6px; flex-wrap:wrap; margin-top:.85rem; }
.meta-chip-row { display:flex; gap:8px; flex-wrap:wrap; margin-top:.85rem; }
.meta-chip { display:inline-flex; align-items:center; gap:5px; background:var(--surf); border:1px solid var(--b1); border-radius:8px; padding:5px 10px; font-size:12px; font-family:var(--mono); color:var(--muted2); }
.mirror-list { display:flex; flex-direction:column; gap:1.25rem; }
.mirror-option-label { font-family:var(--disp); font-size:14px; font-weight:700; letter-spacing:-.01em; margin-bottom:.5rem; color:var(--muted2); }
.post-meta-item .star { color:var(--gold); }
.post-badge-editor { display:inline-flex; align-items:center; gap:5px; background: var(--mint-dim); border:1px solid rgba(46,230,168,.32); color:var(--mint); padding:4px 11px; border-radius:20px; font-size:12px; font-family:var(--mono); font-weight:600; }
.post-badge-required { display:inline-flex; align-items:center; gap:5px; background: rgba(238,195,20,.1); border:1px solid rgba(238,195,20,.32); color:var(--c-req); padding:4px 11px; border-radius:20px; font-size:12px; font-family:var(--mono); font-weight:600; }

.icon-lightbox { position:fixed; inset:0; background:rgba(4,5,10,.86); backdrop-filter: blur(6px); display:flex; align-items:center; justify-content:center; z-index:500; opacity:0; pointer-events:none; transition: opacity .2s; }
.icon-lightbox.open { opacity:1; pointer-events:auto; }
.icon-lightbox-inner { width:220px; height:220px; border-radius:40px; background: linear-gradient(135deg, #1c2450, #2c46c9); display:flex; align-items:center; justify-content:center; color:#fff; box-shadow: var(--shadow-lg); transform: scale(.92); transition: transform .2s; overflow:hidden; }
.icon-lightbox.open .icon-lightbox-inner { transform: scale(1); }
.icon-lightbox-inner img { width:100%; height:100%; object-fit:cover; }

.carousel-wrap { padding: 1.5rem 0 0; position:relative; }
.carousel-track { display:flex; gap:.75rem; overflow-x:auto; scroll-snap-type:x mandatory; -ms-overflow-style:none; scrollbar-width:none; padding-bottom:4px; }
.carousel-track::-webkit-scrollbar { display:none; }
.carousel-slide { flex:0 0 auto; width:240px; aspect-ratio:16/9; border-radius:12px; background:var(--b1); border:1px solid var(--b1); scroll-snap-align:start; display:flex; align-items:center; justify-content:center; color:var(--muted2); overflow:hidden; position:relative; }
.carousel-slide img { width:100%; height:100%; object-fit:cover; }
.carousel-nav { display:flex; justify-content:flex-end; gap:.4rem; margin-top:.6rem; }
.carousel-btn { width:30px; height:30px; border-radius:8px; background:var(--surf); border:1px solid var(--b1); color:var(--muted2); display:flex; align-items:center; justify-content:center; transition: color .15s, border-color .15s; }
.carousel-btn:hover { color:var(--text); border-color:var(--b2); }

.post-section { padding: 1.9rem 0; border-bottom:1px solid var(--b1); }
.post-section:last-of-type { border-bottom:none; }
.post-section-title { font-family:var(--disp); font-size:18px; font-weight:800; letter-spacing:-.02em; margin-bottom:.85rem; }
.post-about-text { font-size:14px; color:var(--muted2); line-height:1.75; max-width:680px; }
.tag-row { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1rem; }
.tag-chip { display:inline-flex; align-items:center; padding:5px 12px; border:1px solid var(--b2); border-radius:20px; font-size:12px; color:var(--muted2); }

.mod-info-card { background: rgba(67,97,238,.06); border:1px solid rgba(67,97,238,.26); border-radius: var(--radius); padding:1rem 1.15rem; display:flex; gap:.75rem; }
.mod-info-icon { width:34px; height:34px; border-radius:9px; background: var(--accentG); display:flex; align-items:center; justify-content:center; color:#fff; flex-shrink:0; }
.mod-info-title { font-size:13.5px; font-weight:700; color:var(--text); margin-bottom:3px; }
.mod-info-text { font-size:13px; color:var(--muted2); line-height:1.65; }

.update-info-card { background: var(--mint-dim); border:1px solid rgba(46,230,168,.26); border-radius: var(--radius); padding:1rem 1.15rem; display:flex; gap:.75rem; }
.update-info-icon { width:34px; height:34px; border-radius:9px; background: var(--mint); color:#04140e; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.update-info-title { font-size:13.5px; font-weight:700; color:var(--text); margin-bottom:3px; }
.update-info-text { font-size:13px; color:var(--muted2); line-height:1.65; }

.safety-card { background:var(--surf); border:1px solid var(--b1); border-radius:var(--radius); padding:1.1rem 1.25rem; }
.safety-head { display:flex; align-items:center; gap:9px; margin-bottom:.7rem; }
.safety-head .ic { color:var(--mint); }
.safety-head strong { font-size:14px; font-weight:700; }
.safety-desc { font-size:13px; color:var(--muted2); line-height:1.7; margin-bottom:.85rem; }
.safety-list { display:flex; flex-direction:column; gap:7px; }
.safety-list li { display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--muted2); list-style:none; }
.safety-list .ic { color:var(--mint); flex-shrink:0; }

.legal-notice-card { margin-top:.75rem; background:var(--surf); border:1px solid var(--b1); border-radius:var(--radius-sm); padding:.7rem .9rem; display:flex; gap:8px; align-items:flex-start; }
.legal-notice-card .ic { color:var(--muted2); flex-shrink:0; margin-top:2px; }
.legal-notice-text { font-size:11.5px; color:var(--muted); line-height:1.65; }
.legal-notice-text strong { color:var(--muted2); }

.download-zone { padding: 1.9rem 0; border-bottom:1px solid var(--b1); }
.dl-name-label { font-family:var(--disp); font-size:14px; font-weight:700; margin-bottom:.5rem; }
.dl-name-label .dl-name-sub { font-size:11px; color:var(--muted); font-weight:400; margin-left:4px; }
.required-app-block { margin-top:1.25rem; }

.installer-notice { display:inline-flex; align-items:flex-start; gap:8px; border-radius:20px; padding:9px 16px; font-size:12.5px; color:var(--muted2); line-height:1.6; max-width:560px; margin-top:.9rem; }
.installer-notice + .dl-name-label { margin-top:1rem; }
.installer-notice .ic { margin-top:2px; flex-shrink:0; }
.installer-notice.tone-xapk { background: rgba(230,142,99,.08); border:1px solid rgba(230,142,99,.28); }
.installer-notice.tone-xapk .ic { color: var(--c-xapk); }
.installer-notice.tone-xapk a { color: var(--c-xapk); font-weight:600; border-bottom: 1px dashed rgba(230,142,99,.5); }
.installer-notice.tone-apks { background: rgba(252,57,113,.08); border:1px solid rgba(252,57,113,.28); }
.installer-notice.tone-apks .ic { color: var(--c-apks); }
.installer-notice.tone-apks a { color: var(--c-apks); font-weight:600; border-bottom: 1px dashed rgba(252,57,113,.5); }
.installer-notice.tone-other { background: rgba(215,233,223,.06); border:1px solid rgba(215,233,223,.22); }
.installer-notice.tone-other .ic { color: var(--c-other); }
/* Interstitial only -- "clicking this will show an ad" notice, honest copy
   for a not-yet-wired direct-link script (see memory: real ad integration
   is deferred, this is just the textual heads-up). Reuses .installer-
   notice's shape/pill but its own tone (xapk's orange, repurposed). */
.installer-notice.tone-ad { background: rgba(230,142,99,.08); border:1px solid rgba(230,142,99,.28); }
.installer-notice.tone-ad .ic { color: var(--c-xapk); }
.installer-notice a:hover { border-bottom-style: solid; }

/* Interstitial countdown -> reveal flow. */
.interstitial-card { text-align:center; padding:2.4rem 1.5rem 2.6rem; }
.interstitial-text { font-size:13.5px; color:var(--muted2); max-width:480px; margin:0 auto 1.8rem; line-height:1.75; }
.interstitial-text b { color:var(--text); }
.interstitial-wait.is-off { display:none; }
.interstitial-ready.is-off { display:none; }
.countdown-wrap { position:relative; width:148px; height:148px; margin:0 auto 1rem; }
.countdown-wrap svg { transform: rotate(-90deg); width:100%; height:100%; }
.countdown-track { fill:none; stroke:var(--b2); stroke-width:6; }
.countdown-progress { fill:none; stroke:url(#countdownGrad); stroke-width:6; stroke-linecap:round; transition: stroke-dashoffset 1s linear; }
.countdown-number { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family:var(--body); font-size:42px; font-weight:900; color:var(--text); font-variant-numeric: tabular-nums; }
.countdown-label { font-size:13px; color:var(--muted); margin-bottom:1.3rem; }
.countdown-help { font-size:12.5px; color:var(--muted); }
.countdown-help a { color:var(--accent2); font-weight:600; border-bottom:1px dashed rgba(110,139,255,.5); }
.countdown-help a:hover { border-bottom-style:solid; }
.ad-notice-wrap { display:flex; justify-content:center; margin-bottom:1.5rem; }

.btn-download.type-req { background: rgba(238,195,20,.1); border:1px solid rgba(238,195,20,.32); color: var(--c-req); }
.btn-download.type-req:hover { background: rgba(238,195,20,.18); box-shadow:0 4px 16px rgba(238,195,20,.22); }
.btn-download.type-alt { background: rgba(177,70,249,.1); border:1px solid rgba(177,70,249,.32); color: var(--c-alt); }
.btn-download.type-alt:hover { background: rgba(177,70,249,.18); box-shadow:0 4px 16px rgba(177,70,249,.22); }
.btn-download.type-obb { background: rgba(56,189,248,.1); border:1px solid rgba(56,189,248,.32); color: var(--c-obb); }
.btn-download.type-obb:hover { background: rgba(56,189,248,.18); box-shadow:0 4px 16px rgba(56,189,248,.22); }
.btn-download.type-mod { background: rgba(252,4,55,.1); border:1px solid rgba(252,4,55,.32); color: var(--c-mod); }
.btn-download.type-mod:hover { background: rgba(252,4,55,.18); box-shadow:0 4px 16px rgba(252,4,55,.22); }
/* The spacious 14px/20px + 14.5px button style belongs only to the 3
   "own page" download buttons (Post's main+required-app button inside
   .container-narrow, each Mirrors Option inside .mirror-list, the
   Interstitial final button inside .interstitial-ready) -- it used to be
   a bare unscoped .btn-download rule, which also silently inflated the
   compact card button (.app-card, home/archive grids, 13px/9px 0 in the
   base rule above) past its own card width, wrapping "Download APK" onto
   2 mismatched-looking lines on narrow mobile cards. Found 2026-08-25
   testing on a real phone (desktop cards are wide enough that the same
   leak never wrapped there, so it went unnoticed until now). Same lesson
   as the max-width leak found earlier the same day: scope it, don't
   leave it global. */
.container-narrow .btn-download,
.mirror-list .btn-download,
.interstitial-ready .btn-download { padding:14px 20px; font-size:14.5px; }
.container-narrow .btn-download { max-width:420px; }
.interstitial-ready .btn-download { max-width:380px; margin:0 auto; }
.btn-download .dl-name { font-weight:700; }
.btn-download .dl-sub { font-weight:400; opacity:.75; font-size:12px; margin-left:4px; }

/* "Does it work?" build vote (vote_widget_enabled field) -- quick yes/no
   for people who don't want to leave a comment. Both faces start with a
   muted tint of their own color; clicking (.active) deepens the tint and
   adds a soft glow, same color pair as the comment Like/Dislike buttons
   (--mint / --c-apks) for consistency across the two vote systems. The bar
   fill is always green (share of positive votes) -- the unfilled track
   stays a neutral gray even when negative votes dominate, never red, so a
   badly-received build reads as "less green," not as a scary warning. */
.vote-widget { display:flex; align-items:center; gap:.9rem; margin-top:1.1rem; flex-wrap:wrap; }
.vote-widget-label { font-family:var(--disp); font-size:14px; font-weight:700; flex-shrink:0; }
.vote-widget-faces { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.vote-face { width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; transition: transform .12s, box-shadow .2s, background .2s, color .2s; }
.vote-face:hover { transform: translateY(-1px); }
.vote-face.sad { background: rgba(252,57,113,.14); color: var(--c-apks); }
.vote-face.sad.active { background: rgba(252,57,113,.36); box-shadow: 0 0 14px rgba(252,57,113,.5); }
.vote-face.happy { background: rgba(46,230,168,.14); color: var(--mint); }
.vote-face.happy.active { background: rgba(46,230,168,.36); box-shadow: 0 0 14px rgba(46,230,168,.5); }
/* User-supplied reference art (assets/img/face-*.png), not a hand-drawn
   icon -- two earlier hand-coded SVG attempts (thin stroke, then a filled
   crescent that turned out sub-pixel thin at this size) both missed the
   reference's actual shape. Painted via mask-image so `background-color:
   currentColor` still drives the sad/happy/active colors above -- same
   color system as every other icon in the theme, just a raster shape
   instead of an SVG symbol underneath. */
.vote-face-icon { width:24px; height:24px; background-color: currentColor; -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat; -webkit-mask-position:center; mask-position:center; -webkit-mask-size:contain; mask-size:contain; }
.vote-face.sad .vote-face-icon { -webkit-mask-image:url(assets/img/face-sad.png); mask-image:url(assets/img/face-sad.png); }
.vote-face.happy .vote-face-icon { -webkit-mask-image:url(assets/img/face-happy.png); mask-image:url(assets/img/face-happy.png); }
.vote-widget-bar-wrap { display:flex; align-items:center; gap:.7rem; flex:1; min-width:160px; }
.vote-widget-bar-track { flex:1; height:6px; border-radius:3px; background:var(--b2); overflow:hidden; }
.vote-widget-bar-fill { height:100%; background:var(--mint); border-radius:3px; transition: width .3s ease; }
.vote-widget-count { font-size:12.5px; color:var(--muted); white-space:nowrap; }
.vote-widget-count-num { color:var(--muted2); font-weight:600; }

.comments-section { padding: 1.9rem 0 2.5rem; }
.comment-form { background:var(--surf); border:1px solid var(--b1); border-radius:var(--radius); padding:1.1rem; margin-bottom:1.5rem; }
.comment-form-row { display:flex; gap:.6rem; margin-bottom:.6rem; flex-wrap:wrap; }
.comment-field { flex:1; min-width:140px; background:var(--surf2); border:1px solid var(--b1); border-radius:8px; padding:8px 12px; font-family:var(--body); font-size:13px; color:var(--text); outline:none; transition: border-color .2s; }
.comment-field::placeholder { color:var(--muted); }
.comment-field:focus { border-color:var(--accent); }
.comment-textarea { width:100%; background:var(--surf2); border:1px solid var(--b1); border-radius:8px; padding:10px 12px; font-family:var(--body); font-size:13.5px; color:var(--text); outline:none; resize:vertical; min-height:70px; transition: border-color .35s ease; }
.comment-textarea:focus { border-color:var(--accent); }
.comment-textarea.shake { animation: shake .32s; border-color: var(--c-apks); }
.comment-toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px); background: rgba(252,57,113,.14); border:1px solid rgba(252,57,113,.4); color:var(--c-apks); padding:10px 22px; border-radius:20px; font-size:13px; font-weight:600; z-index:600; opacity:0; pointer-events:none; transition: opacity .25s, transform .25s; }
.comment-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.comment-toast.tone-white { background: rgba(231,230,247,.12); border-color: rgba(231,230,247,.32); color: var(--text); }
@keyframes shake { 0%,100%{transform:translateX(0);} 20%{transform:translateX(-5px);} 40%{transform:translateX(5px);} 60%{transform:translateX(-4px);} 80%{transform:translateX(4px);} }
.comment-form-foot { display:flex; align-items:center; justify-content:space-between; margin-top:.6rem; }
.comment-charcount { font-size:11.5px; color:var(--muted); font-family:var(--mono); }
.comment-charcount.limit { color:var(--c-apks); }
.btn-post-comment { padding:8px 18px; background: var(--accentG); color:#fff; font-size:13px; font-weight:600; border-radius:var(--radius-sm); transition: transform .12s, filter .12s; }
.btn-post-comment:hover { transform: translateY(-1px); filter:brightness(1.08); }

.comment-list { display:flex; flex-direction:column; gap:1rem; list-style:none; }
.comment-card { display:flex; flex-direction:column; }
.comment-row { display:flex; gap:.75rem; }
.comment-avatar { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:var(--disp); font-weight:800; font-size:14px; color:#fff; flex-shrink:0; overflow:hidden; position:relative; z-index:1; }
.comment-avatar img { width:100%; height:100%; object-fit:cover; }
.comment-body { flex:1; min-width:0; }
.comment-name-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.comment-name { font-size:13.5px; font-weight:700; }
.comment-role-badge { display:inline-flex; align-items:center; padding:2px 9px; border-radius:20px; font-size:10px; font-weight:800; letter-spacing:.02em; }
.comment-role-badge.role-owner { background: var(--owner-g); color:#2b2103; }
.comment-role-badge.role-admin { background: var(--admin-g); color:#022c33; }
.comment-date { font-size:11.5px; color:var(--muted); }
.comment-text { font-size:13.5px; color:var(--muted2); line-height:1.65; margin-top:3px; white-space:pre-wrap; }

.comment-actions { display:flex; align-items:center; gap:6px; margin-top:.55rem; flex-wrap:wrap; }
.vote-group { display:flex; align-items:center; }
.comment-vote { display:inline-flex; align-items:center; gap:5px; font-size:12px; color:var(--muted); padding:4px 7px; border-radius:6px; transition: color .15s, background .15s; }
.comment-vote:hover { color:var(--muted2); background:var(--surf2); }
.comment-vote.active { color:var(--mint); }
.comment-vote.dislike .ic { transform: scaleY(-1); }
.comment-vote.dislike.active { color:var(--c-apks); }
.comment-reply-wrap { display:inline-flex; }
.comment-reply-wrap .comment-reply-link { display:inline-flex; align-items:center; gap:5px; font-size:12px; color:var(--muted); padding:4px 7px; border-radius:6px; transition: color .15s, background .15s; }
.comment-reply-wrap .comment-reply-link:hover { color:var(--accent2); background:var(--surf2); }
.comment-pin-icon { color:var(--c-req); flex-shrink:0; }
.mod-actions { display:flex; align-items:center; gap:4px; margin-left:auto; }
.mod-btn { display:inline-flex; align-items:center; gap:4px; font-size:11px; color:var(--muted); padding:4px 7px; border-radius:6px; border:1px dashed var(--b2); transition: color .15s, border-color .15s; }
.mod-btn:hover { color:var(--text); border-color:var(--muted); }
.mod-btn.delete-btn:hover { color:var(--c-apks); border-color:var(--c-apks); }

#respond { margin:1rem 0; }
#cancel-comment-reply-link { display:inline-block; margin-top:.5rem; font-size:12px; color:var(--muted); }
#cancel-comment-reply-link:hover { color:var(--text); }
#reply-title { display:none; }

/* Reply connector line -- each reply draws its OWN complete L-curve
   (border-left + border-bottom + rounded corner), reaching from its
   "anchor" (the parent avatar for the first reply in a thread, the
   previous sibling's avatar for every reply after that) to its own
   avatar's left-center. --connector-top/--connector-height come from real
   getBoundingClientRect() measurements in layoutReplyConnectors()
   (single-app.js) -- comment text/actions height varies per comment, so
   pure CSS can't know the reach without measuring. A small dot (::after)
   caps the top of each curve to visually bridge the occasional sub-pixel
   gap at that join, instead of a single continuous spine element spanning
   the whole thread -- that version could end up computing a leftover tall
   height when a thread collapsed back to zero after being expanded,
   rendering as a stray line reaching far down the page (real bug, found
   2026-08-16). Per-item connectors don't have that failure mode. */
.comment-list .children { list-style:none; margin-top:1rem; padding-left:38px; display:flex; flex-direction:column; gap:1rem; }
.comment-list .children > .comment-card { position:relative; }
.comment-list .children > .comment-card::before {
	content:'';
	position:absolute;
	left:-20px;
	top: var(--connector-top, -64px);
	width:20px;
	height: var(--connector-height, 82px);
	border-left:2px solid var(--b1);
	border-bottom:2px solid var(--b1);
	border-bottom-left-radius:12px;
}
.comment-list .children > .comment-card::after {
	content:'';
	position:absolute;
	left:-23px;
	top: calc(var(--connector-top, -64px) - 3px);
	width:6px;
	height:6px;
	border-radius:50%;
	background:var(--b1);
}
.comment-extra.is-off { display:none; }
.btn-more-replies { display:inline-flex; align-items:center; margin-top:-.5rem; margin-bottom:.85rem; font-size:12px; font-weight:600; color:var(--accent2); padding:4px 7px; border-radius:6px; transition: color .15s, background .15s; }
.btn-more-replies:hover { background:var(--surf2); }
.no-comments { font-size:13.5px; color:var(--muted); }
.btn-more-comments { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; margin-top:1rem; padding:10px 0; border:1px solid var(--b2); border-radius:var(--radius-sm); font-size:13px; font-weight:600; color:var(--text); background:transparent; transition: border-color .15s, background .15s; }
.btn-more-comments:hover { border-color:var(--muted2); background:var(--surf); }

/* Real (server-side) pagination boundary -- a page's worth of root comment
   threads, native WP paginate_comments_links() underneath. Starts hidden
   (see single-app.php/.js) until every comment already loaded on the
   current page has been revealed via .btn-more-comments, so visitors see
   what's here before being offered more pages. */
.comment-pagination { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:6px; margin-top:1.1rem; }
.comment-pagination.is-off { display:none; }
.comment-pagination .page-numbers { display:inline-flex; align-items:center; justify-content:center; min-width:34px; height:34px; padding:0 10px; border-radius:9px; font-size:13px; font-weight:600; color:var(--muted2); background:var(--surf); border:1px solid var(--b1); transition: border-color .15s, background .15s, color .15s; }
.comment-pagination a.page-numbers:hover { border-color:var(--muted2); color:var(--text); }
.comment-pagination .page-numbers.current { background:var(--accentG); border-color:transparent; color:#fff; }
.comment-pagination .page-numbers.dots { border:none; background:transparent; color:var(--muted); min-width:auto; padding:0 2px; }
.comment-pagination .page-numbers.prev, .comment-pagination .page-numbers.next { color:var(--accent2); }

.similar-list { display:grid; grid-template-columns: 1fr 1fr; gap:.75rem; }
@media(max-width:560px){ .similar-list { grid-template-columns: 1fr; } }
.similar-item { display:flex; align-items:center; gap:.85rem; background:var(--surf); border:1px solid var(--b1); border-radius:12px; padding:.75rem .85rem; transition: border-color .2s, box-shadow .2s, transform .15s; }
.similar-item:hover { border-color:var(--b2); box-shadow:0 8px 24px rgba(0,0,0,.5); transform: translateY(-2px); }
.similar-icon { width:56px; height:56px; border-radius:14px; background:var(--b2); display:flex; align-items:center; justify-content:center; color:var(--accent2); flex-shrink:0; overflow:hidden; }
.similar-icon img { width:100%; height:100%; object-fit:cover; }
.similar-info { flex:1; min-width:0; }
.similar-name { font-size:13.5px; font-weight:700; letter-spacing:-.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.similar-meta { font-size:11.5px; color:var(--muted); margin-top:2px; }
.similar-pills { display:flex; gap:5px; margin-top:.4rem; }
.similar-pill { flex-shrink:0; font-size:9.5px; font-family:var(--mono); font-weight:700; padding:3px 8px; border-radius:20px; letter-spacing:.02em; }
.similar-pill.type-apk  { background: rgba(30,240,184,.12); border:1px solid rgba(30,240,184,.32); color: var(--c-apk); }
.similar-pill.type-xapk { background: rgba(230,142,99,.12); border:1px solid rgba(230,142,99,.32); color: var(--c-xapk); }
.similar-pill.type-apks { background: rgba(252,57,113,.12); border:1px solid rgba(252,57,113,.32); color: var(--c-apks); }
.similar-pill.type-obb  { background: rgba(56,189,248,.12); border:1px solid rgba(56,189,248,.32); color: var(--c-obb); }
.similar-pill.tag-mod   { background:transparent; border:1px solid var(--b2); color:var(--muted2); }
