:root {
    --primary: #1bbc9b;
    --primary-dark: #16a085;
    --dark: #1d222d;
    --bg: #e6e9ef;
    --card-bg: #ffffff;
    --accent: #f9bd00;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif; }
body { background: var(--bg); color: #4c4c4c; font-size: 13px; -webkit-text-size-adjust: 100%; overflow-x: hidden; margin: 0 !important; padding: 0 !important; }
a { text-decoration: none; color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }

/* HEADER ZERO GAP */
#header { background: #12161f; min-height: 52px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); position: relative; width: 100%; top: 0; left: 0; z-index: 9999; margin: 0 !important; padding: 6px 15px !important; }
#header .container { display: flex; justify-content: space-between; align-items: center; min-height: 48px; max-width: 1200px; margin: auto; padding: 0 !important; }

/* MAIN SITE WRAPPER (EXTRA SPACE REMOVED) */
#main-site { padding-top: 0 !important; margin-top: 0 !important; width: 100%; }
.container { width: 1200px; margin: auto; max-width: 100%; padding: 0 10px; }

/* SUBHEADER SEARCH (COMPACT ZERO EXTRA GAP) */
#subheader.np { 
    background: #ffffff; 
    padding: 6px 12px !important; 
    border-radius: 18px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin: 8px auto 12px auto !important; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.05); 
    width: 100%; 
    max-width: 1200px; 
    border: 1px solid #e2e8f0;
}
.searchBox { width: 100%; position: relative; }
.sb_search[type=text], .sb_search { width: 100%; height: 38px !important; padding: 0 45px 0 16px; border: 1px solid #e2e8f0; background: #fafafa; border-radius: 50px; font-size: 13px; outline: none; box-sizing: border-box; }
.sb_submit { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; background: var(--primary); color: white; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px; }

/* ANIMATED PANNING HERO BANNERS (HOMEPAGE) */
#subheader-hero { padding: 55px 0; background: #1d222d; color: #fff; text-align: center; position: relative; border-bottom: 2px solid var(--primary); overflow: hidden; margin-top: 0 !important; }
#subheader-hero .imgbg { overflow: hidden; position: absolute; width: 100%; top: 0; height: 100%; left: 0; z-index: 1; }
#subheader-hero .imgbg img { 
    position: absolute; 
    width: 200% !important; 
    max-width: none !important; 
    opacity: .35 !important; 
    top: 0; 
    left: 0; 
    height: 100% !important; 
    object-fit: cover !important;
    animation: panBackground 28s ease-in-out infinite alternate !important;
}
@keyframes panBackground {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-45%); }
}

#subheader-hero .subcontainer { width: 730px; max-width: 100%; margin: auto; position: relative; z-index: 2; padding: 0 15px; }
#subheader-hero h1 { font-size: 34px; padding-bottom: 12px; font-weight: 800; line-height: 42px; color: #fff; }
#subheader-hero h2 { font-weight: 300; font-size: 14px; line-height: 24px; color: #fff; }

ul.social { display: flex; gap: 6px; list-style: none; justify-content: center; margin-top: 20px; }
ul.social li a { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; opacity: 0.85; transition: 0.2s; }
ul.social li a:hover { opacity: 1; transform: scale(1.05); }
ul.social li a.facebook { background: #3b5998; }
ul.social li a.twitter { background: #000; }
ul.social li a.instagram { background: #c13584; }
ul.social li a.youtube { background: #b00; }
ul.social li a.pinterest { background: #cb2027; }
ul.social li a.telegram { background: #0088cc; }

/* HOMEPAGE APP GRID */
.sections { padding: 15px 10px; }
.title-section { font-size: 20px; padding-bottom: 8px; margin: 0 10px 15px; border-bottom: 2px solid var(--primary); font-weight: 800; color: #1e293b; text-transform: uppercase; }

.app-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; width: 100%; }
.bav1 { width: 100%; position: relative; cursor: pointer; }
.bav1 a { background: #ffffff; border-radius: 20px; padding: 10px; text-align: center; box-shadow: 2px 2px 2px 0 #e3e3e3; border: 1px solid #e2e8f0; display: flex; flex-direction: column; justify-content: space-between; height: 100%; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.bav1 a:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(27, 188, 155, 0.15); }

/* 1:1 SQUARE BOX RATIO */
.bloque-imagen { width: 100%; aspect-ratio: 1/1 !important; overflow: hidden; border-radius: 18px; background: #f0f0f0; margin-bottom: 8px; position: relative; }
.bloque-imagen img { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 18px; display: block; }

.bav1 .title { font-size: 13px !important; font-weight: 800 !important; color: #111 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; display: block; width: 100%; }
.bav1 .version { color: #a7a7a7; font-size: 11px; display: block; margin-bottom: 3px; }
.stars { color: #f9bd00; font-size: 10px; letter-spacing: 1px; }

.bloque-status { position: absolute; top: 0; left: 0; color: #fff; font-size: 8px; font-weight: 700; padding: 2px 6px; border-radius: 14px 0 8px 0; text-transform: uppercase; z-index: 2; box-shadow: 0 2px 5px rgba(0,0,0,0.15); }
.bloque-status.bs-new { background: #19b934; }
.bloque-status.bs-hot { background: #d22222; animation: hotPulse 2s infinite; }
.bloque-status.bs-ranking { background: #8e44ad; }
.bloque-status.bs-trending { background: #e67e22; }

@keyframes hotPulse {
    0% { opacity: 0.9; }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.9; }
}

/* DETAILS PAGE SPECIFICS */
.header-back-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; background: rgba(255, 255, 255, 0.1);
    border-radius: 50%; color: white !important; transition: background 0.2s;
}
.header-back-btn:hover { background: rgba(255, 255, 255, 0.2); }

.box { background: #fff; border-radius: 20px; padding: 20px; box-shadow: 2px 2px 2px 0 #e3e3e3; margin-bottom: 18px; border: 1px solid #e2e8f0; width: 100%; }
.box-title { font-size: 17px; color: #333; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px solid #e0e0e0; font-weight: 700; position: relative; text-transform: uppercase; }
.box-title::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 40px; height: 3px; background: var(--primary); border-radius: 2px; }
.main-box-title { font-size: 22px; font-weight: 800; color: #1d222d; margin-top: 4px; }
.version-text { font-size: 11px; color: #718096; }

#breadcrumbs, .meta-cats, .post-categories { list-style: none !important; margin: 0 !important; padding: 0 !important; }
#breadcrumbs li, .meta-cats li, .post-categories li { list-style: none !important; margin: 0 !important; padding: 0 !important; display: inline-block; }

.details-main-split { display: grid; grid-template-columns: 140px 1fr; gap: 20px; width: 100%; margin-top: 15px; }
.details-left-side { width: 140px; display: flex; flex-direction: column; gap: 8px; }
.details-left-side .img-wrap { width: 140px; height: 140px; border-radius: 22px; overflow: hidden; background: #f9f9f9; border: 1px solid #eee; }
.details-left-side .img-wrap img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

.buttond { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 20px; color: white !important; font-weight: 700; font-size: 11px; text-transform: uppercase; text-align: center; }
.buttond.downloadAPK { background: #1bbc9b; }
.buttond.t { background: #0084c6; }

.spec-table { background: #f5f6f8; border-radius: 12px; border: 1px solid #e2e8f0; display: flex; flex-direction: column; height: 100%; justify-content: space-between; overflow: hidden; }
.spec-row { padding: 9px 12px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.spec-row:last-child { border-bottom: none; }
.spec-row span.label { font-size: 10px; font-weight: 700; color: #222; text-transform: uppercase; }
.spec-row span.val { font-size: 12px; color: #555; font-weight: 600; }

.cta-container { display: flex; justify-content: center; width: 100%; margin: 18px 0; }
.btn-play-neon { 
    background: linear-gradient(135deg, #1bbc9b, #2ecc71); 
    color: white !important; padding: 15px 45px; border-radius: 50px; 
    font-size: 17px; font-weight: 800; text-transform: uppercase; 
    box-shadow: 0 0 15px rgba(27, 188, 155, 0.4); border: 2px solid #fff; 
    cursor: pointer; animation: neonGlow 1.8s infinite; display: inline-flex; align-items: center; gap: 10px;
}
@keyframes neonGlow {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(27,188,155,0.4); }
    50% { transform: scale(1.04); box-shadow: 0 0 25px rgba(46,204,113,0.8); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(27,188,155,0.4); }
}

.rating-row { display: flex; align-items: center; gap: 8px; margin-top: 15px; font-size: 12px; border-top: 1px solid #eee; padding-top: 12px; }
.rating-row .stars { color: var(--accent); }
.rating-row b { color: var(--primary); font-size: 15px; }

.trust-badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.trust-badge { background: #eefdf7; border: 1px solid #bbf7d0; color: #15803d; padding: 6px 12px; border-radius: 30px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
.pros-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; padding: 12px; }
.cons-box { background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; padding: 12px; }
.pros-box h4 { color: #166534; font-weight: 700; margin-bottom: 8px; font-size: 13px; }
.cons-box h4 { color: #991b1b; font-weight: 700; margin-bottom: 8px; font-size: 13px; }
.pros-cons-list { list-style: none; padding: 0; margin: 0; }
.pros-cons-list li { font-size: 11.5px; color: #444; margin-bottom: 6px; display: flex; align-items: flex-start; gap: 5px; }

#relatedAppsGrid .bav1 a { border: 2px solid #8e44ad !important; border-radius: 18px !important; background: #fffcfd !important; }
#relatedAppsGrid .bav1 a:hover { border-color: var(--primary) !important; box-shadow: 0 6px 15px rgba(142, 68, 173, 0.15) !important; }
#relatedAppsGrid .bav1 .title { font-size: 15px !important; font-weight: 850 !important; color: #1d222d !important; margin-top: 6px; }

.sidebar-block { background: white; border-radius: 20px; padding: 20px; margin-top: 15px; box-shadow: 2px 2px 2px 0 #e3e3e3; border: 1px solid #e2e8f0; }
.sidebar-block h3 { font-size: 13px; font-weight: 700; border-bottom: 1px solid #edf2f7; padding-bottom: 6px; margin-bottom: 10px; text-transform: uppercase; color: #2d3748; }
.sidebar-list { list-style: none; }
.sidebar-list li { padding: 6px 0; border-bottom: 1px solid #f7fafc; font-size: 12px; }
.sidebar-list li a { color: #2d3748; font-weight: 600; }

#footer { background: var(--dark); color: #fff; padding: 25px 0; margin-top: 30px; text-align: center; font-size: 12px; border-top: 2px solid var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: auto; padding: 0 10px; }

@media (max-width: 950px) { 
    .app-grid, .rlat .baps { grid-template-columns: repeat(4, 1fr); } 
}
@media (max-width: 650px) { 
    .app-grid, .rlat .baps { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; } 
    .bav1 { width: 100% !important; padding: 0 !important; }
    .bav1 a { padding: 6px !important; border-radius: 12px !important; }
    .details-main-split { grid-template-columns: 110px 1fr !important; gap: 12px !important; }
    .details-left-side { width: 110px !important; }
    .details-left-side .img-wrap { width: 110px !important; height: 110px !important; border-radius: 18px !important; }
    .pros-cons-grid { grid-template-columns: 1fr !important; }
}