
:root {
    --primary: #7bbf3a;
    --primary-hover: #6ca832;
    --orange: #ff9800;
    --star: #f59e0b;
    --dark: #202124;
    --dark-2: #3c4043;
    --gray: #5f6368;
    --gray-2: #80868b;
    --gray-3: #9aa0a6;
    --border: #eaedf0;
    --bg: #f8f9fa;
    --muted: #dadce0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: #fff; color: var(--dark); line-height: 1.5; font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.max-w-gp { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* Sticky Header */
.sticky-header { position: sticky; top: 0; background: #fff; z-index: 100; border-bottom: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.header-row { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo-box { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo-box span { color: #558b2f; }
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: 20px; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--gray); border-radius: 8px; transition: all 0.2s; white-space: nowrap; }
.nav-link svg { width: 18px; height: 18px; fill: currentColor; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: #f1f8e9; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.search-btn { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f1f3f4; color: var(--gray); border: none; cursor: pointer; }

/* Breadcrumb */
.breadcrumb-wrap { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--gray-2); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb-wrap a { color: var(--primary); }
.breadcrumb-wrap .current { color: var(--orange); }

/* Home Section Titles */
.sec-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--dark); }
.sec-title svg { width: 22px; height: 22px; color: var(--orange); }
.sec-more-link { font-size: 13.5px; font-weight: 600; color: var(--primary); }
.sec-more-link:hover { text-decoration: underline; }

/* Featured Track Slider */
.featured-track { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.featured-card { flex-shrink: 0; width: 310px; scroll-snap-align: start; border-radius: 16px; overflow: hidden; background: #f8fafc; border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.03); position: relative; transition: transform 0.2s; }
.featured-card:hover { transform: translateY(-3px); }
.featured-aspect { width: 100%; aspect-ratio: 16/9; overflow: hidden; position: relative; }
.featured-aspect img { width: 100%; height: 100%; object-fit: cover; }
.featured-bottom { padding: 12px 14px; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.95); backdrop-filter: blur(4px); }
.featured-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.featured-name { font-size: 14px; font-weight: 700; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-cat { font-size: 12px; font-weight: 600; color: var(--primary); margin-top: 2px; }

/* Grid Cards (Match exact LiteAPKs Home/List) */
.app-icon-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.app-icon-card { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; }
.app-icon-card:hover .app-icon-thumb img { transform: scale(1.05); }
.app-icon-thumb { width: 92px; height: 92px; border-radius: 20px; overflow: hidden; background: #f1f3f4; box-shadow: 0 4px 10px rgba(0,0,0,0.04); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.app-icon-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.app-icon-name { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.35; height: 35px; width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-icon-rating { font-size: 11.5px; color: var(--gray); display: flex; align-items: center; gap: 3px; margin-top: 4px; }
.app-icon-rating svg { width: 12px; height: 12px; fill: var(--star); }

/* List Archive View Grid (archive-main) */
.archive-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.game-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; position: relative; box-shadow: 0 2px 8px rgba(0,0,0,0.03); transition: all 0.2s; }
.game-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,0.08); }
.game-badge-pos { position: absolute; top: 10px; left: 10px; z-index: 2; }
.badge-pill { font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 6px; text-transform: uppercase; background: var(--orange); color: #fff; }
.badge-pill.green { background: var(--primary); }
.game-thumb-box { padding: 16px 16px 8px; display: flex; justify-content: center; }
.game-thumb-box img { width: 88px; height: 88px; border-radius: 18px; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.game-card-info { padding: 0 14px 14px; text-align: left; }
.game-card-title { font-size: 13.5px; font-weight: 700; color: var(--dark); line-height: 1.3; height: 36px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-card-ver { font-size: 11.5px; color: var(--gray-2); margin-top: 4px; }
.game-card-score-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.game-card-star { color: var(--star); font-size: 12px; font-weight: 700; }
.game-card-mod-tag { font-size: 11px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }

/* Filter Pill Strip */
.filter-strip { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 20px; }
.filter-pill { display: inline-flex; align-items: center; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; border: 1px solid var(--muted); background: #fff; color: var(--gray); white-space: nowrap; transition: all 0.2s; }
.filter-pill:hover, .filter-pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Detail Page Hero Banner (single-hero) */
.single-hero-wrapper { background: linear-gradient(180deg, #182026 0%, #101418 100%); color: #fff; padding: 36px 0 44px; position: relative; overflow: hidden; }
.single-hero-wrapper::before { content: ""; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(123, 191, 58, 0.15) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-flex-row { display: flex; gap: 24px; align-items: flex-start; }
.hero-app-icon { width: 104px; height: 104px; border-radius: 22px; object-fit: cover; border: 2px solid rgba(255,255,255,0.15); box-shadow: 0 8px 24px rgba(0,0,0,0.3); flex-shrink: 0; }
.hero-text-col { flex: 1; min-width: 0; }
.hero-h1 { font-size: 24px; font-weight: 800; line-height: 1.3; color: #fff; margin-bottom: 6px; }
.hero-dev { font-size: 13.5px; color: #90a4ae; margin-bottom: 10px; }
.hero-dev a { color: var(--primary); font-weight: 600; }
.hero-badge-tag { display: inline-block; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; margin-bottom: 10px; }
.hero-sub-text { font-size: 12.5px; color: #ffb74d; font-style: italic; margin-bottom: 18px; }
.app-stats-row { display: flex; gap: 28px; align-items: center; margin-bottom: 22px; }
.app-stat-unit { text-align: left; }
.app-stat-val { font-size: 16px; font-weight: 800; color: #eceff1; display: flex; align-items: center; gap: 3px; }
.app-stat-lbl { font-size: 11px; color: #78909c; text-transform: uppercase; }

.app-cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-install { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 700; padding: 12px 38px; border-radius: 28px; box-shadow: 0 4px 16px rgba(123, 191, 58, 0.4); transition: all 0.2s; }
.btn-install:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-action-outline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #b0bec5; padding: 10px 18px; border-radius: 20px; background: rgba(255,255,255,0.08); border: none; cursor: pointer; }

/* Detail Recommendation Box (promo-geo) */
.promo-geo-box { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; margin-top: -24px; position: relative; z-index: 10; box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.promo-geo-head { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.promo-geo-head svg { fill: var(--orange); width: 18px; height: 18px; }
.promo-geo-sub { font-size: 12.5px; color: var(--gray-2); margin-bottom: 16px; }
.promo-geo-track { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.promo-geo-card { text-align: center; }
.promo-geo-card img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; margin: 0 auto 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.promo-geo-name { font-size: 11.5px; font-weight: 600; color: var(--dark-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.promo-geo-rate { font-size: 11px; color: var(--gray); display: flex; align-items: center; justify-content: center; gap: 2px; }

/* Info Bar Horizontal Specs */
.info-bar-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin: 24px 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; text-align: center; }
.info-bar-label { font-size: 11px; font-weight: 700; color: var(--gray-2); text-transform: uppercase; margin-bottom: 4px; }
.info-bar-value { font-size: 14px; font-weight: 700; color: var(--dark); }
.info-bar-sub { font-size: 11.5px; color: var(--primary); font-weight: 500; }

/* Detail Sections */
.detail-card-sec { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 24px; }
.detail-sec-head { font-size: 16px; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.detail-sec-head svg { width: 18px; height: 18px; color: var(--primary); }

/* Screenshots Grid (4 precise items) */
.screenshot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.screen-item { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #000; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.screen-media { width: 100%; aspect-ratio: 16/9; position: relative; overflow: hidden; }
.screen-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.screen-item:hover .screen-media img { transform: scale(1.04); }
.screen-info { padding: 10px 12px; background: #fff; border-top: 1px solid var(--border); }
.screen-title { font-size: 12.5px; font-weight: 700; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen-cn { font-size: 11px; color: var(--gray-2); margin-top: 2px; }

/* Content Typography */
.entry-content { font-size: 14px; line-height: 1.8; color: #374151; }
.entry-content p { margin-bottom: 14px; }
.entry-content h3, .entry-content h4 { font-size: 16px; font-weight: 700; color: var(--dark); margin: 20px 0 10px; }
.entry-content ul { padding-left: 20px; margin-bottom: 14px; }
.entry-content li { margin-bottom: 6px; }

/* FAQ Accordion */
.faq-accordion { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary { padding: 14px 18px; font-size: 14px; font-weight: 700; color: var(--dark); background: #fafafa; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "▼"; font-size: 10px; color: var(--gray-2); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { padding: 16px 18px; font-size: 13.5px; line-height: 1.7; color: var(--dark-2); background: #fff; }

/* Data Safety Box */
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 12px; }
.safety-unit { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: #f8f9fa; border-radius: 10px; }
.safety-unit svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.safety-unit p { font-size: 12.5px; font-weight: 600; color: var(--dark-2); margin: 0; }

/* Reviews List */
.review-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.review-row:last-child { border-bottom: none; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #eaedf0; }
.review-user-name { font-size: 13.5px; font-weight: 700; color: var(--dark); }
.review-meta { font-size: 11.5px; color: var(--gray-2); margin-left: 8px; }
.review-stars { color: var(--star); font-size: 12px; margin: 3px 0 6px; }
.review-text { font-size: 13px; color: #4b5563; line-height: 1.6; }

/* Pagination */
.archive-pagination { display: flex; justify-content: center; gap: 6px; margin: 32px 0 10px; }
.page-numbers { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--dark-2); padding: 0 12px; }
.page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 28px; margin-top: 40px; background: #fff; font-size: 13px; color: var(--gray); }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand h4 { font-size: 18px; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.footer-brand p { line-height: 1.8; max-width: 440px; }
.footer-col h5 { font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; font-size: 12px; color: var(--gray-2); }

@media (max-width: 1080px) {
    .app-icon-grid, .archive-grid { grid-template-columns: repeat(4, 1fr); }
    .promo-geo-track { grid-template-columns: repeat(4, 1fr); }
    .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
    .info-bar-box { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .app-icon-grid, .archive-grid { grid-template-columns: repeat(3, 1fr); }
    .promo-geo-track { grid-template-columns: repeat(4, 1fr); }
    .screenshot-grid { grid-template-columns: 1fr; }
    .hero-flex-row { flex-direction: column; align-items: center; text-align: center; }
    .app-stats-row { justify-content: center; }
    .app-cta-row { justify-content: center; width: 100%; }
    .btn-install { width: 100%; }
    .safety-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
    .app-icon-grid, .archive-grid { grid-template-columns: repeat(3, 1fr); }
    .promo-geo-track { grid-template-columns: repeat(3, 1fr); }
    .info-bar-box { grid-template-columns: repeat(2, 1fr); }
}
