/*
Theme Name: APK Theme (Modpapa)
Theme URI: 
Author: Naveen
Author URI: 
Description: A modern, responsive WordPress theme for APK and game downloading sites.
Version: 4.2
*/

/* CSS Variables */
:root {
    --bg-base: #0b111e;
    --bg-surface: #11161d;
    --bg-card: #1c232f;
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #2d3748;
    --accent-color: #00aad5;
    --accent-hover: #008eb3;
    --shadow-color: rgba(0,0,0,0.3);
}


/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; width: 100%; }
body { 
    margin: 0; 
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-surface);
    color: var(--text-primary);
    line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Layout container */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--bg-card);
    padding: 15px 0;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}
.site-title {
    margin: 0;
    line-height: 1;
}
.site-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.site-logo-svg {
    flex-shrink: 0;
}
.site-logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
}
.site-logo-text:hover {
    color: #fff;
}
.logo-accent {
    color: var(--accent-color);
}
.site-logo-link:hover .site-logo-svg path {
    fill: #00d2ff;
    stroke: #00d2ff;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.menu-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px;
    transition: transform 0.2s, color 0.2s;
}
.menu-toggle-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.search-toggle-btn {
    background: transparent;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 8px;
    transition: transform 0.2s, color 0.2s;
}
.search-toggle-btn:hover {
    color: #00d2ff;
    transform: scale(1.1);
}

.site-header { position: relative; }
.search-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    padding: 0 15px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}
.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.search-form-overlay {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.search-field-overlay {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 10px 15px;
    outline: none;
}
.search-field-overlay::placeholder { color: var(--text-secondary); }
.search-submit-overlay, .search-close-btn {
    background: transparent;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}
.search-submit-overlay:hover, .search-close-btn:hover {
    transform: scale(1.1);
}
.search-close-btn { color: var(--text-secondary); }
.search-close-btn:hover { color: var(--text-primary); }

/* Menu Drawer Styles */
.menu-drawer-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.menu-drawer-overlay.active { opacity: 1; pointer-events: auto; }

.menu-drawer {
    position: fixed; top: 0; left: -300px; width: 280px; bottom: 0;
    background: var(--bg-card);
    z-index: 1001;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px var(--shadow-color);
    overflow-y: auto;
}
.menu-drawer.active { left: 0; }
.menu-drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px; border-bottom: 1px solid var(--border-color);
}
.drawer-title { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }
.menu-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: transform 0.2s, color 0.2s;
}
.menu-close-btn:hover { color: var(--text-primary); transform: scale(1.1); }

.drawer-menu-list { list-style: none; margin: 0; padding: 10px 0; }
.drawer-menu-list li a {
    display: block; padding: 12px 20px; color: #cbd5e1;
    text-decoration: none; font-size: 1.05rem; font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s, color 0.2s;
}
.drawer-menu-list li a:hover { background: var(--border-color); color: var(--accent-color); }

@media (max-width: 600px) {
    .header-container {
        flex-direction: row; /* keep logo and search button on same line */
        align-items: center;
        justify-content: space-between;
    }
}

/* Category Navigation / Filters */
.category-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: var(--bg-card);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    overflow-x: auto;
}
.category-nav a {
    padding: 8px 16px;
    background: var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s;
    color: var(--text-primary);
}
.category-nav a.active, .category-nav a:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Grid Layout */
.app-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 25px 15px;
}

/* Responsive Grid */
@media (max-width: 1024px) { .app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px 15px; } }
@media (max-width: 600px) { .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 10px; } }

/* App Card Component */
.app-card {
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: none;
    transition: transform 0.2s;
    height: 100%;
}
.app-card:hover {
    transform: translateY(-2px);
}

/* Card Elements */
.app-card > a {
    width: 100%;
    display: block;
}
.app-card .app-icon {
    width: 85%;
    margin: 0 auto;
    display: block;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 20%;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.app-details {
    width: 100%;
    text-align: center;
}
.app-name {
    margin: 12px 0 4px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}
.app-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* GET Button (Hidden on grids to match Google Play) */
.btn-get {
    display: none !important;
}

/* Single Layout Structure */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}
.single-main { min-width: 0; }
.single-post-container {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Sidebar UI */
.single-sidebar { margin-top: 0; }
.widget-title {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.widget-arrow { color: var(--accent-color); font-size: 1.2rem; }

.sidebar-app-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-list-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.sidebar-list-card:hover {
    background: var(--bg-card-hover);
}
.slc-icon-wrap {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}
.slc-icon {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.slc-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    word-break: break-word;
}
.slc-name {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}
.slc-meta {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

/* Mobile Sidebar Row */
@media (max-width: 992px) {
    .single-layout {
        grid-template-columns: 1fr;
    }
    .single-sidebar {
        width: 100%;
        min-width: 0;
    }
    .sidebar-widget {
        margin-top: 30px;
        min-width: 0;
    }
    .sidebar-app-list {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 15px;
    }
    .sidebar-app-list::-webkit-scrollbar {
        display: none;
    }
    .sidebar-list-card {
        flex-direction: column;
        align-items: flex-start;
        min-width: 95px;
        max-width: 95px;
        padding: 0;
        scroll-snap-align: start;
        background: transparent !important;
    }
    .slc-icon-wrap {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
    .slc-icon {
        border-radius: 20%;
    }
    .slc-name {
        font-size: 0.95rem;
        margin-top: 8px;
    }
    .slc-meta {
        -webkit-line-clamp: 3;
    }
}

.single-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.single-header > div {
    flex: 1;
    min-width: 0;
}
.single-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    box-shadow: 0 4px 10px var(--shadow-color);
    flex-shrink: 0;
}
.single-title { margin: 0 0 5px 0; font-size: 2rem; font-weight: 800; color: var(--text-primary); word-break: break-word; line-height: 1.2; }
.single-developer { margin: 0; color: var(--accent-color); font-weight: 500; font-size: 1.1rem; word-break: break-word; }
.single-tagline { font-size: 1rem; color: var(--text-secondary); font-style: italic; margin-top: 5px; text-align: center; }

.btn-download-large {
    display: block;
    text-align: center;
    background: var(--accent-color);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 20px 0 10px 0;
    box-shadow: 0 4px 6px rgba(39, 174, 96, 0.2);
    transition: background 0.2s, transform 0.1s;
}
.btn-download-large:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* Meta Grid Information */
.meta-table-container { margin-top: 30px; background: var(--bg-card); padding: 20px 25px; border-radius: 12px; border: 1px solid var(--border-color); }
.meta-table-container h3 { margin-top:0; border-bottom:1px solid var(--border-color); padding-bottom:12px; margin-bottom:15px; color:var(--text-primary); font-weight:700; }
.meta-grid { display: flex; flex-direction: column; gap: 0; }
.mg-item { display: flex; justify-content: space-between; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--border-color); gap: 15px; }
.mg-item:last-child { border-bottom: none; padding-bottom: 0; }
.mg-label { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
.mg-label svg { opacity: 0.7; flex-shrink: 0; }
.mg-val { color: var(--text-primary); font-weight: 600; font-size: 0.95rem; text-align: right; overflow-wrap: break-word; word-wrap: break-word; }

@media(min-width: 768px) {
    .meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 50px; }
    .mg-item { border-bottom: 1px solid var(--border-color); padding: 15px 0; }
}
@media (max-width: 480px) {
    .container { padding: 0 8px !important; }
    .single-post-container { padding: 15px !important; }
    .meta-table-container { padding: 12px 10px !important; margin-top: 20px !important; }
    .mg-item { gap: 8px !important; padding: 10px 0 !important; }
    .mg-label, .mg-val { font-size: 0.9rem !important; }
}

/* Gallery Slider */
.gallery-container { margin-top: 30px; }
.gallery-container h3 { color:var(--text-primary); margin-bottom: 15px; }
.gallery-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
}
/* Custom PC Scrollbar for Gallery */
@media (min-width: 993px) {
    .gallery-slider::-webkit-scrollbar { height: 10px; display: block; }
    .gallery-slider::-webkit-scrollbar-track { background: var(--border-color); border-radius: 10px; }
    .gallery-slider::-webkit-scrollbar-thumb { background: var(--accent-color); border-radius: 10px; border: 2px solid var(--border-color); }
    .gallery-slider::-webkit-scrollbar-thumb:hover { background: #2074b6; }
}
.gallery-slider img {
    height: 350px;
    width: auto;
    flex-shrink: 0;
    max-width: none;
    border-radius: 12px;
    object-fit: contain;
    scroll-snap-align: start;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.gallery-slider img:hover { transform: scale(1.02); }

@media (max-width: 768px) {
    .gallery-slider img {
        height: auto !important;
        max-height: 400px !important;
        width: 28vw !important; /* Default smaller width for vertical */
        object-fit: cover;
    }
    .gallery-slider img.horizontal-img {
        width: 85vw !important;
        max-width: none !important;
        object-fit: contain;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(17,22,29,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 8px; box-shadow: 0 5px 25px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: var(--text-primary); font-size: 40px; cursor: pointer; line-height: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: var(--text-primary); font-size: 50px; cursor: pointer; user-select: none; padding: 20px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Table of Contents */
.toc-container {
    background: var(--bg-surface);
    border-left: 4px solid var(--accent-color);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin: 30px 0;
}
.toc-title { margin: 0; font-weight: 700; color: var(--text-primary); font-size: 1.1rem; }
.toc-toggle { color: var(--accent-color); font-size: 0.9rem; font-weight: 600; user-select: none; }
.toc-container ul { margin: 15px 0 0 0; padding-left: 20px; }
.toc-container li { margin-bottom: 8px; }
.toc-container a { color: var(--accent-color); font-weight: 500; }
.toc-container a:hover { text-decoration: underline; }

/* Post Content Links */
.post-content a { color: var(--accent-color); text-decoration: underline; font-weight: 500; transition: color 0.2s; }
.post-content a:hover { color: #2074b6; }

/* Rating Placeholder */
.rating-placeholder {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    text-align: center;
    color: var(--text-secondary);
}

/* --- PHASE 5, 6, & 7 NEW STYLES --- */
.single-header-new {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 25px;
}
.single-icon-new {
    width: 140px !important;
    height: 140px !important;
    min-width: 140px !important;
    min-height: 140px !important;
    border-radius: 24px;
    box-shadow: 0 4px 15px var(--shadow-color);
    flex-shrink: 0 !important;
    object-fit: cover !important;
}
.single-header-text { 
    flex-grow: 1; 
    min-width: 0; 
    word-wrap: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}
.single-title-new { margin: 0 0 5px 0; font-size: 2.2rem; font-weight: 800; color: var(--text-primary); line-height: 1.1; }
.single-version { margin: 0 0 5px 0; font-size: 1.1rem; color: var(--text-secondary); font-weight: 500; }
.single-developer-link a { color: var(--accent-color); font-weight: 600; font-size: 1.1rem; transition: color 0.2s; }
.single-developer-link a:hover { color: #2074b6; text-decoration: underline; }
.single-developer-link { margin-bottom: 15px; }

.single-cat-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--border-color);
    color: #c084fc;
    border: 1px solid #4c1d95;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.single-mod-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-card);
    color: #2dd4bf;
    border: 1px solid #0f766e;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badges-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 5px;
}
@media (max-width: 600px) {
    .badges-row {
        justify-content: center;
    }
}

/* Breadcrumbs */
.app-breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.app-breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.app-breadcrumbs a:hover {
    color: var(--text-primary);
}
.bc-sep {
    color: #475569;
}

.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.info-col {
    flex: 1;
    text-align: center;
    border-right: 1px solid var(--border-color);
}
.info-col:last-child { border-right: none; }
.info-val { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); display:flex; align-items:center; justify-content:center; gap:5px; margin-bottom:2px; }
.info-label { font-size: 0.9rem; color: var(--text-secondary); }

.bold-tagline { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin: 30px 0 20px 0; line-height: 1.3; }

.download-action-area { margin-bottom: 40px; }
.btn-download-latest {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--accent-color);
    color: #fff !important;
    padding: 20px 25px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}
.btn-download-latest:hover { transform: translateY(-2px); background: var(--accent-hover); box-shadow: 0 6px 15px rgba(39, 174, 96, 0.4); }
.btn-text { display: flex; flex-direction: column; }
.btn-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.btn-sub { font-size: 0.95rem; opacity: 0.9; }
.btn-icon { background: rgba(255,255,255,0.2); width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }

.small-tagline { font-size: 0.95rem; color: var(--text-secondary); text-align: center; font-style: italic; margin-top: 10px; }
.btn-jump-older { display: inline-block; padding: 6px 16px; background: var(--border-color); color: var(--text-primary); font-size: 0.9rem; font-weight: 600; border-radius: 20px; transition: background 0.2s; }
.btn-jump-older:hover { background: #475569; }

/* Review System */
.review-system-container {
    background: linear-gradient(145deg, var(--bg-card), #151b24);
    color: var(--text-primary);
    padding: 30px;
    border-radius: 16px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border: 1px solid var(--border-color);
}
.review-top { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.interactive-stars { display: flex; gap: 8px; }
.interactive-stars span {
    font-size: 2.2rem;
    color: #475569;
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
    text-shadow: 0 2px 4px var(--shadow-color);
}
.interactive-stars span:hover { transform: scale(1.1); color: var(--accent-color); }

.review-stats { display: flex; align-items: center; gap: 40px; }
.review-big-score { display: flex; flex-direction: column; align-items: center; min-width: 100px; }
.review-big-score .big-num { font-size: 4.5rem; font-weight: 900; line-height: 1; color: var(--text-primary); margin-bottom: 5px; text-shadow: 0 2px 10px rgba(0,170,213,0.3); }
.review-big-score .big-count { font-size: 0.9rem; color: var(--text-secondary); display:flex; align-items:center; gap:4px; font-weight: 500; }

.review-bars { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; }
.rating-bar-row { display: flex; align-items: center; gap: 12px; }
.bar-num { font-size: 0.95rem; font-weight: 700; width: 15px; text-align: center; color: var(--text-secondary); }
.bar-track { flex-grow: 1; background: var(--bg-surface); height: 8px; border-radius: 5px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,0.5); }
.bar-fill { background: linear-gradient(90deg, var(--accent-color), #00d2ff); height: 100%; border-radius: 5px; transition: width 0.5s ease-out; box-shadow: 0 0 8px rgba(0,210,255,0.4); }

/* Older Versions */
.older-versions-container { margin-top: 40px; }
.older-versions-list { display: flex; flex-direction: column; gap: 10px; }
.older-version-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border-color); transition: transform 0.2s, box-shadow 0.2s; }
.older-version-item:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.ov-info { display: flex; flex-direction: column; }
.ov-num { font-weight: 700; color: var(--text-primary); font-size: 1.1rem; }
.ov-date { color: var(--text-secondary); font-size: 0.9rem; }
.ov-icon { color: var(--accent-color); }

/* Mobile Adjustments for Phase 6 & 7 */
@media (max-width: 768px) {
    .single-header-new { flex-direction: column; align-items: center; text-align: center; gap: 15px; margin-bottom: 15px; }
    .single-icon-new { width: 100px; height: 100px; }
    .single-title-new { font-size: 1.8rem; }
    .info-bar { flex-direction: row; gap: 5px; padding: 15px 0; border: none; justify-content: space-around; margin: 10px 0; }
    .info-col { border-right: 1px solid var(--border-color); padding-bottom: 0; width: auto; flex: 1; }
    .info-col:last-child { border-right: none; }
    .info-val { font-size: 1.1rem; }
    .info-label { font-size: 0.8rem; }
    .review-stats { flex-direction: row; gap: 20px; align-items: center; justify-content: space-between; }
    .review-top { align-items: center; text-align: center; margin-bottom: 30px; }
    .interactive-stars { justify-content: center; }
    .bold-tagline { font-size: 1.2rem; text-align: center; }
}

/* --- PHASE 8: SECURITY DRAWER --- */
.drawer-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17,22,29,0.8);
    z-index: 9998;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s;
}
.drawer-overlay.active { opacity: 1; visibility: visible; }

.security-drawer {
    position: fixed; top: 0; right: -100%; width: 400px; height: 100%;
    background: var(--bg-surface);
    z-index: 9999;
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    transition: right 0.3s ease-in-out;
    display: flex; flex-direction: column;
    padding: 30px;
    overflow-y: auto;
    border-left: 1px solid var(--bg-card);
}
.security-drawer.active { right: 0; }

@media (max-width: 480px) {
    .security-drawer { width: 100%; right: -100%; }
}

.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.drawer-close { font-size: 35px; color: var(--accent-color); cursor: pointer; line-height: 1; transition: transform 0.2s; }
.drawer-close:hover { transform: scale(1.1); color: #2074b6; }

.drawer-app-info { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.drawer-app-icon { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #fff; padding: 2px; }
.drawer-app-text { flex: 1; min-width: 0; }
.drawer-app-name { font-size: 1.2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.drawer-status-box {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px;
    padding: 20px; display: flex; gap: 15px; margin-bottom: 30px; align-items: flex-start;
}
.drawer-status-icon { flex-shrink: 0; margin-top: 2px; }

.drawer-features-list { margin-bottom: 30px; }
.drawer-feature-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.9rem; line-height: 1.4; }
.df-check { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; background: var(--accent-color); color: #fff; border-radius: 4px; font-size: 0.7rem; flex-shrink: 0; margin-top: 2px; font-weight:bold; }

.btn-virustotal {
    display: block; text-align: center; background: var(--accent-color); color: #fff !important; font-weight: 800; padding: 15px; border-radius: 8px; font-size: 1.1rem; transition: transform 0.2s, background 0.2s; text-decoration: none; box-shadow: 0 4px 10px rgba(0, 170, 213, 0.2);
}
.btn-virustotal:hover { background: var(--accent-hover); transform: translateY(-2px); }

.drawer-divider { border: none; border-top: 1px solid var(--border-color); margin: 30px 0; }

.drawer-help-links { display: flex; flex-direction: column; gap: 20px; }
.dh-item { display: flex; align-items: flex-start; gap: 15px; cursor: pointer; }
.dh-item:hover .dh-text strong { text-decoration: underline; color: var(--accent-color); }
.dh-icon { flex-shrink: 0; }
/* --- COMMENTS SECTION --- */
.avatar-styled {
    border-radius: 50%;
    box-shadow: 0 2px 5px var(--shadow-color);
}
.comment-reply-link {
    display: inline-block;
    padding: 4px 12px;
    background: var(--border-color);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: background 0.2s;
    text-decoration: none;
}
.comment-reply-link:hover {
    background: var(--accent-color);
    color: #fff;
}
.comment-form-group {
    margin-bottom: 15px;
}
.comment-form-group input,
.comment-form-group textarea {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.comment-form-group input:focus,
.comment-form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 170, 213, 0.1);
}
.btn-submit-comment {
    background: linear-gradient(90deg, var(--accent-color), #00d2ff);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0, 170, 213, 0.3);
}
.btn-submit-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 170, 213, 0.5);
}
.comment-list .children {
    list-style: none;
    padding-left: 20px;
    margin-top: 20px;
    border-left: 2px solid var(--border-color);
}
.comment-list > li:last-child {
    border-bottom: none !important;
}
/* --- PHASE 9: IS FOR YOU BLOCK --- */
.is-for-you-box {
    margin-top: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
}
.is-for-you-title {
    margin: 0 0 15px 0;
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 700;
}
.is-for-you-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.brand-col {
    text-align: left;
}
.footer-logo {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}
.footer-info {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
}
.is-for-you-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
}
.is-for-you-item:last-child {
    margin-bottom: 0;
}
.ify-check {
    color: var(--text-primary);
    font-weight: bold;
    flex-shrink: 0;
}

/* --- PHASE 10: GOOGLE PLAY BUTTON --- */
.btn-google-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-primary) !important;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 12px 25px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    letter-spacing: 0.5px;
}
.btn-google-play:hover {
    background: var(--bg-card);
    border-color: var(--text-secondary);
}

/* Load More Button */
.btn-load-more {
    background: var(--border-color);
    color: var(--text-primary);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-load-more:hover:not(:disabled) {
    background: var(--accent-color);
    transform: translateY(-2px);
}
.btn-load-more:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* --- UX Features --- */

/* Sticky Mobile Download Bar */
.sticky-download-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(28, 35, 47, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 15px 20px;
    display: none; /* hidden on desktop */
    align-items: center;
    justify-content: space-between;
    z-index: 990;
    box-shadow: 0 -4px 15px var(--shadow-color);
}
.sdb-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.sdb-icon {
    width: 45px !important;
    height: 45px !important;
    border-radius: 10px;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}
.sdb-text {
    flex: 1;
    min-width: 0;
}
.sdb-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.sdb-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-sdb-get {
    background: linear-gradient(90deg, var(--accent-color), #00d2ff);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 170, 213, 0.3);
    margin-left: 15px;
}
@media (max-width: 768px) {
    .sticky-download-bar { 
        display: flex; 
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
    }
    .sticky-download-bar.visible {
        transform: translateY(0);
    }
    body { padding-bottom: 80px; } /* Prevent content from being hidden behind the bar */
}


/* Skeleton Loading Shimmer */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton-shimmer {
    background: var(--bg-card);
    background-image: linear-gradient(to right, var(--bg-card) 0%, var(--border-color) 20%, var(--bg-card) 40%, var(--bg-card) 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    animation: shimmer 1.5s linear infinite forwards;
}

/* Download Processing Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- FOOTER & SOCIALS --- */
.site-footer {
    margin-top: 40px;
    padding: 30px 0;
    background: #151b24;
    text-align: left;
    border-top: 1px solid var(--border-color);
}
.footer-socials {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}
.social-link:hover {
    transform: translateY(-3px);
}
.social-yt:hover { color: #fff; background: #ff0000; border-color: #ff0000; }
.social-x:hover { color: #fff; background: #000; border-color: #333; }
.social-tg:hover { color: #fff; background: #0088cc; border-color: #0088cc; }
.social-wa:hover { color: #fff; background: #25D366; border-color: #25D366; }
.social-fb:hover { color: #fff; background: #1877F2; border-color: #1877F2; }
.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}
/* --- TABLE OF CONTENTS --- */
.toc-container {
    background: rgba(28, 35, 47, 0.7);
    border: 1px solid rgba(0, 170, 213, 0.3);
    border-radius: 12px;
    margin: 20px 0 30px;
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.toc-container:hover {
    border-color: rgba(0, 170, 213, 0.6);
    box-shadow: 0 8px 32px rgba(0, 170, 213, 0.1);
}
.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(21, 27, 36, 0.8);
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.toc-container.active .toc-header {
    border-bottom-color: rgba(0, 170, 213, 0.2);
}
.toc-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.toc-icon {
    color: var(--accent-color);
}
.toc-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.toc-toggle-icon {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}
.toc-container.active .toc-toggle-icon {
    transform: rotate(180deg);
    color: var(--accent-color);
}
.toc-list {
    display: none;
    list-style: none;
    padding: 15px 20px 20px;
    margin: 0;
}
.toc-container.active .toc-list {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}
.toc-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}
.toc-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.5;
    transition: all 0.3s ease;
}
.toc-list li:hover::before {
    opacity: 1;
    transform: scale(1.5);
    box-shadow: 0 0 8px var(--accent-color);
}
.toc-list li:last-child {
    margin-bottom: 0;
}
.toc-list a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: block;
}
.toc-list a:hover {
    color: var(--accent-color);
}
.toc-level-3 {
    margin-left: 20px;
}
.toc-level-3::before {
    background: var(--text-secondary) !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   HOMEPAGE SWIPER SECTIONS
   ========================================= */
.hp-section {
    margin-bottom: 40px;
}
.hp-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding: 0 15px;
    display: flex;
    align-items: center;
}
.hp-section-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.hp-section-title a:hover {
    color: var(--accent-color);
}

/* Category Nav (Top of Homepage) */
.category-nav {
    display: flex;
    gap: 10px;
    padding: 0 15px;
    margin: 20px 0 30px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a {
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}
.category-nav a.active, .category-nav a:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* Swiper Container */
.swiper-container {
    width: 100%;
    overflow: hidden;
}
.swiper-row {
    display: flex;
    gap: 15px;
    padding: 0 15px 15px 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.swiper-row::-webkit-scrollbar { display: none; }

.swiper-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    position: relative;
}
.swiper-card a {
    text-decoration: none;
    display: block;
}

/* Badges */
.app-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 170, 213, 0.9);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 2;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px var(--shadow-color);
}

/* 1. Top Downloads Card */
.card-top-download {
    width: 85vw;
    max-width: 400px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
@media (min-width: 768px) {
    .card-top-download { width: 350px; }
}
.card-top-download .banner-img,
.card-top-download .banner-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.card-top-download .title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 15px 15px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0) 100%);
}
.card-top-download .app-name {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* 2. Category Showcase Card */
.card-showcase {
    width: 80vw;
    max-width: 320px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
@media (min-width: 768px) {
    .card-showcase { width: 300px; }
}
.showcase-banner-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2/1;
}
.showcase-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.showcase-details-wrap {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.showcase-icon {
    width: 54px;
    height: 54px;
    border-radius: 22.5%;
    object-fit: cover;
    box-shadow: 0 4px 10px var(--shadow-color);
    margin-top: -30px; /* Overlap banner */
    border: 3px solid var(--bg-card);
    background: var(--bg-card);
    z-index: 3;
}
.showcase-text {
    flex: 1;
    min-width: 0;
}
.card-showcase .app-name {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-showcase .app-meta {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3. Compact Card (Latest / New) */
.card-compact {
    width: calc(33.333vw - 20px);
    max-width: 120px;
}
@media (min-width: 768px) {
    .card-compact { width: 120px; }
}
.card-compact .app-icon {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 22.5%;
    object-fit: cover;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.card-compact .app-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-compact .app-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================================
   FOOTER REDESIGN (UPTODOWN STYLE)
   ========================================= */
.site-footer {
    background: #111827;
    border-top: 1px solid #1e293b;
    padding: 60px 0 20px;
    margin-top: 60px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
    margin-bottom: 40px;
}

@media (min-width: 500px) and (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .footer-col.brand-col {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1025px) {
    .footer-grid {
        grid-template-columns: 2.5fr 1fr 1fr 1fr 1fr;
        gap: 60px;
    }
}

/* Brand Column */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    margin-left: -4px;
}
.footer-info {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: left;
    max-width: 380px;
}
.footer-socials {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e293b;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}
.social-link:hover {
    transform: translateY(-3px);
}
.social-yt:hover { color: #fff; background: #ff0000; border-color: #ff0000; }
.social-x:hover { color: #fff; background: #000; border-color: #333; }
.social-tg:hover { color: #fff; background: #0088cc; border-color: #0088cc; }
.social-wa:hover { color: #fff; background: #25D366; border-color: #25D366; }
.social-fb:hover { color: #fff; background: #1877F2; border-color: #1877F2; }

/* Menu Columns */
.footer-menu-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
}
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-menu li {
    margin-bottom: 12px;
}
.footer-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-menu a:hover {
    color: var(--accent-color);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 20px;
    text-align: center;
}
@media (max-width: 768px) {
    .site-footer { text-align: center; }
    .footer-socials { justify-content: center; }
    .footer-logo { justify-content: center; }
}
.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =========================================
   PC SWIPER ARROWS
   ========================================= */
.swiper-container {
    position: relative;
    /* ensure arrows can overlap edges slightly */
    padding: 0 10px;
}
.swiper-arrow {
    display: none;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: rgba(30, 41, 59, 0.85);
    border: none;
    transition: all 0.2s;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

#swiper-editors .swiper-arrow {
    top: 50%;
}
.swiper-arrow:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.05);
}
.swiper-prev { left: 0px; }
.swiper-next { right: 0px; }

@media (min-width: 1024px) {
    .swiper-next {
        display: flex;
    }
    .swiper-row {
        /* On PC, ensure scrollbar is completely hidden while preserving custom scroll */
        padding-bottom: 25px; /* give space for drop shadows */
    }
}

/* =========================================
   NUMBERED TOP DOWNLOADS
   ========================================= */
.card-numbered {
    width: 150px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.numbered-icon-wrap {
    position: relative;
    width: 140px;
    height: 130px; /* Big enough for the 8rem text */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    overflow: visible;
}
.numbered-icon-wrap .rank-number {
    position: absolute;
    top: 40%;
    left: 20%;
    transform: translate(-50%, -50%);
    font-size: 7rem;
    font-weight: 900;
    color: rgba(0, 170, 213, 0.9);
    z-index: 0;
    line-height: 1;
    letter-spacing: -5px;
}
.numbered-icon-wrap .app-icon {
    width: 75px;
    height: 75px;
    border-radius: 20%;
    object-fit: cover;
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}
.card-numbered .app-details {
    text-align: center;
    width: 100%;
}
.card-numbered .app-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-numbered .app-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   HORIZONTAL DETAILED CARDS
   ========================================= */
.card-horizontal {
    width: 280px;
    background: #1e293b;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.card-horizontal:hover {
    transform: translateY(-3px);
}
.card-horizontal a {
    display: flex !important;
    align-items: center;
    gap: 15px;
    width: 100%;
    text-decoration: none;
}
.card-horizontal .app-icon {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 10px var(--shadow-color);
}
.card-horizontal .app-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    text-align: left;
}
.card-horizontal .app-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-horizontal .app-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-horizontal .app-stats {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #cbd5e1;
    font-weight: 600;
}
.card-horizontal .stat-rating {
    display: flex;
    align-items: center;
}
.card-horizontal .stat-dot {
    margin: 0 6px;
    color: var(--text-muted);
}

/* Comment Rating UI */
.comment-rating-box {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.comment-interactive-stars {
    display: flex;
    gap: 5px;
    cursor: pointer;
}
.comment-interactive-stars span {
    color: #334155;
    font-size: 1.2rem;
    transition: color 0.2s;
}
.comment-static-stars {
    color: #eab308;
    font-size: 0.9rem;
    margin-left: 10px;
}

.footer-container { max-width: 95%; margin: 0 auto; padding: 0 15px; }
. r e q - u p d a t e - b t n : h o v e r  
   b a c k g r o u n d :   r g b a ( 2 1 4 ,   5 4 ,   5 6 ,   0 . 1 )   ! i m p o r t a n t ;    
 