
:root {
    --primary: #7bbf3a;
    --primary-hover: #6aac2f;
    --dark: #202124;
    --dark-2: #3c4043;
    --gray: #5f6368;
    --gray-2: #80868b;
    --gray-3: #9aa0a6;
    --border: #f0f0f0;
    --border-card: #f3f4f6;
    --bg: #f8f9fa;
    --orange: #e8710a;
    --star: #fbbc04;
    --blue: #1a73e8;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: #ffffff;
    color: var(--dark);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.max-w-gp { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

header.sticky {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 40;
    border-bottom: 1px solid #e8eaed;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header-wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand-title { font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 9999px;
    font-weight: 600;
    color: var(--gray);
    font-size: 14px;
    transition: all 0.2s;
}
.nav-menu a:hover, .nav-menu a.active {
    background: var(--bg);
    color: var(--primary);
}

.cat-filter-strip {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 14px 0;
    white-space: nowrap;
}
.cat-filter-strip::-webkit-scrollbar { display: none; }
.cat-filter-item {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border-radius: 9999px;
    border: 1px solid #dadce0;
    background: #ffffff;
    color: var(--gray);
    font-size: 13px;
    font-weight: 600;
}
.cat-filter-item.active, .cat-filter-item:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.scroll-section {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
}
.scroll-section::-webkit-scrollbar { height: 4px; }
.scroll-section::-webkit-scrollbar-thumb { background: #d0d7de; border-radius: 4px; }

.top-app-item {
    flex: 0 0 160px;
    display: block;
}
.top-app-thumb {
    aspect-ratio: 1/1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: var(--bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.top-app-thumb img { width: 100%; height: 100%; object-fit: cover; }
.top-badges {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.badge-tag {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    color: #ffffff;
    background: var(--orange);
}

/* Games Grid - Strict LiteAPKs Card Pattern */
.games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin: 16px 0 35px;
}
.game-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    border-color: #e5e7eb;
}
.app-badge-wrap {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    gap: 4px;
}
.app-badge-wrap .badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 6px;
    color: #ffffff;
    background: var(--orange);
    line-height: 1.3;
}
.game-card .thumb-link {
    display: block;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
    margin-bottom: 8px;
}
.game-card .thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.game-card:hover .thumb-link img {
    transform: scale(1.04);
}
.game-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}
.game-info .title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.game-info .title:hover {
    color: var(--primary);
}
.game-info .meta {
    font-size: 11.5px;
    color: #6b7280;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-info .bottom-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    margin-top: auto;
}
.game-info .star-score {
    color: var(--star);
    font-weight: 700;
    white-space: nowrap;
}
.game-info .feature-text {
    color: var(--gray-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* List Row Cards (Paid for you) */
.list-row-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 16px 0 30px;
}
.list-app-item {
    background: #ffffff;
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}
.list-app-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.list-app-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg);
}
.list-app-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-app-info { flex: 1; min-width: 0; }
.list-app-name { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-app-sub { font-size: 11.5px; color: var(--gray-2); margin-top: 2px; }

/* Detail Hero Area */
.single-hero {
    position: relative;
    background: linear-gradient(135deg, #1f2327 0%, #111416 100%);
    border-radius: 24px;
    padding: 32px;
    color: #ffffff;
    margin: 20px 0 25px;
    overflow: hidden;
}
.hero-bg-blur {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    filter: blur(25px);
}
.hero-main-row {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 28px;
    align-items: center;
}
.app-info-icon {
    width: 128px;
    height: 128px;
    border-radius: 24px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.app-info-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-info-text h1 { font-size: 26px; font-weight: 800; line-height: 1.25; margin-bottom: 8px; }
.app-meta-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.app-meta-badges span {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 9999px;
    background: var(--primary);
    color: #fff;
}
.app-stats-row { display: flex; gap: 28px; margin-top: 18px; }
.app-stat .value { font-size: 18px; font-weight: 800; }
.app-stat .label { font-size: 12px; color: var(--gray-3); text-transform: uppercase; }
.btn-install-apk {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 9999px;
    margin-top: 22px;
    transition: background 0.2s;
}
.btn-install-apk:hover { background: var(--primary-hover); }

/* Quick Facts */
.info-bar-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 24px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-bottom: 25px;
}
.info-bar-item { border-right: 1px solid var(--border); padding: 0 16px; }
.info-bar-item:last-child { border-right: none; }
.info-bar-label { font-size: 11px; font-weight: 700; color: var(--gray-2); text-transform: uppercase; }
.info-bar-value { font-size: 16px; font-weight: 800; color: var(--dark); margin: 2px 0; }
.info-bar-sub { font-size: 11.5px; color: var(--primary); font-weight: 600; }

/* Screenshots Grid */
.screen-grid-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 20px 0 30px;
}
.screen-card-box {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}
.screen-card-box .img-holder { aspect-ratio: 16/9; overflow: hidden; background: #000; }
.screen-card-box .img-holder img { width: 100%; height: 100%; object-fit: cover; }
.screen-card-box .info-holder { padding: 10px 12px; }
.screen-card-box h4 { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.screen-card-box p { font-size: 11px; color: var(--gray); }

/* Content Details */
.detail-article-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 25px;
    line-height: 1.7;
}
.detail-article-card h2 { font-size: 20px; font-weight: 800; margin: 20px 0 10px; }
.detail-article-card h2:first-child { margin-top: 0; }
.detail-article-card p { margin-bottom: 12px; color: var(--dark-2); }
.detail-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.detail-table th, .detail-table td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.detail-table th { background: var(--bg); font-weight: 700; }

/* FAQ */
.faq-group details {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    background: #ffffff;
    overflow: hidden;
}
.faq-group summary {
    padding: 14px 18px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after { content: "+"; font-size: 18px; color: var(--primary); font-weight: 800; }
.faq-group details[open] summary::after { content: "−"; }
.faq-content { padding: 0 18px 14px; color: var(--dark-2); font-size: 13.5px; }

/* Comments */
.comments-wrap {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 25px;
}
.comment-node {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f3f4;
}
.comment-node:last-child { border-bottom: none; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: #e0e0e0; flex-shrink: 0; }
.comment-main { flex: 1; }
.comment-author { font-size: 13.5px; font-weight: 700; }
.comment-device { font-size: 11px; color: var(--gray-2); margin-left: 8px; }
.comment-stars { color: var(--orange); font-size: 12px; margin: 2px 0 4px; }
.comment-msg { font-size: 13px; color: var(--dark-2); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}
.page-btn {
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid #dadce0;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
}
.page-btn.active, .page-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

footer {
    border-top: 1px solid var(--border);
    padding: 40px 0 30px;
    background: #ffffff;
    color: var(--gray);
    font-size: 13px;
    margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 25px; }
.footer-col h4 { font-weight: 700; color: var(--dark); margin-bottom: 12px; font-size: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; color: var(--gray-2); }

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #ffffff;
    border-top: 1px solid var(--border);
    display: none;
    align-items: center;
    justify-content: space-around;
    z-index: 99;
}
.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray);
}
.mobile-bottom-nav a.active { color: var(--primary); }
.mobile-bottom-nav svg { width: 20px; height: 20px; margin-bottom: 2px; }

@media (max-width: 1024px) {
    .games-grid { grid-template-columns: repeat(4, 1fr); }
    .list-row-grid { grid-template-columns: repeat(2, 1fr); }
    .info-bar-box { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .screen-grid-wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 60px; }
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .list-row-grid { grid-template-columns: 1fr; }
    .hero-main-row { flex-direction: column; text-align: center; }
    .app-info-icon { margin: 0 auto; }
    .app-stats-row { justify-content: center; }
    .info-bar-box { grid-template-columns: 1fr; }
    .info-bar-item { border-right: none; border-bottom: 1px solid var(--border); padding: 8px 0; }
    .info-bar-item:last-child { border-bottom: none; }
    .screen-grid-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
