/* ============================================================
   APKDrop — Uptodown-style CSS
   ============================================================ */

:root {
  --brand: #1B5E20;
  --brand-dark: #134516;
  --bg: #ffffff;
  --bg-2: #f1f5f2;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --border: #e2e8e5;
  --green: #4caf50;
  --green-dark: #388e3c;
  --star: #ffc107;
  --sidebar-bg: #f8faf9;
  --card-bg: #f8faf9;
  --nav-bg: #0b2e0e;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 8px rgba(0,0,0,.06);
  --shadow-hover: 0 6px 20px rgba(0,0,0,.12);
  --ph-bg: #eef2f0;
  --ph-border: #dde5e1;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- Container ---- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ================================================================
   UTILITIES — Tailwind-style helpers
   Scale: 1=4px  2=8px  3=12px  4=16px  5=20px  6=24px
          7=28px  8=32px  9=36px  10=40px  12=48px  14=56px  16=64px
================================================================ */

/* --- Spacing scale (padding) --- */
.p-0  { padding: 0 }         .p-1  { padding: 4px }      .p-2  { padding: 8px }
.p-3  { padding: 12px }      .p-4  { padding: 16px }     .p-5  { padding: 20px }
.p-6  { padding: 24px }      .p-7  { padding: 28px }     .p-8  { padding: 32px }
.p-9  { padding: 36px }      .p-10 { padding: 40px }     .p-12 { padding: 48px }
.p-14 { padding: 56px }      .p-16 { padding: 64px }

.px-0  { padding-left: 0;    padding-right: 0 }
.px-1  { padding-left: 4px;  padding-right: 4px }
.px-2  { padding-left: 8px;  padding-right: 8px }
.px-3  { padding-left: 12px; padding-right: 12px }
.px-4  { padding-left: 16px; padding-right: 16px }
.px-5  { padding-left: 20px; padding-right: 20px }
.px-6  { padding-left: 24px; padding-right: 24px }
.px-8  { padding-left: 32px; padding-right: 32px }
.px-10 { padding-left: 40px; padding-right: 40px }
.px-12 { padding-left: 48px; padding-right: 48px }

.py-0  { padding-top: 0;     padding-bottom: 0 }
.py-1  { padding-top: 4px;   padding-bottom: 4px }
.py-2  { padding-top: 8px;   padding-bottom: 8px }
.py-3  { padding-top: 12px;  padding-bottom: 12px }
.py-4  { padding-top: 16px;  padding-bottom: 16px }
.py-5  { padding-top: 20px;  padding-bottom: 20px }
.py-6  { padding-top: 24px;  padding-bottom: 24px }
.py-7  { padding-top: 28px;  padding-bottom: 28px }
.py-8  { padding-top: 32px;  padding-bottom: 32px }
.py-10 { padding-top: 40px;  padding-bottom: 40px }
.py-12 { padding-top: 48px;  padding-bottom: 48px }
.py-14 { padding-top: 56px;  padding-bottom: 56px }

.pt-0 { padding-top: 0 }    .pt-1 { padding-top: 4px }   .pt-2 { padding-top: 8px }
.pt-3 { padding-top: 12px } .pt-4 { padding-top: 16px }  .pt-5 { padding-top: 20px }
.pt-6 { padding-top: 24px } .pt-8 { padding-top: 32px }  .pt-10{ padding-top: 40px }

.pb-0 { padding-bottom: 0 }    .pb-1 { padding-bottom: 4px }   .pb-2 { padding-bottom: 8px }
.pb-3 { padding-bottom: 12px } .pb-4 { padding-bottom: 16px }  .pb-5 { padding-bottom: 20px }
.pb-6 { padding-bottom: 24px } .pb-8 { padding-bottom: 32px }  .pb-10{ padding-bottom: 40px }

.pl-0 { padding-left: 0 }    .pl-1 { padding-left: 4px }   .pl-2 { padding-left: 8px }
.pl-3 { padding-left: 12px } .pl-4 { padding-left: 16px }  .pl-5 { padding-left: 20px }
.pl-6 { padding-left: 24px } .pl-8 { padding-left: 32px }  .pl-10{ padding-left: 40px }

.pr-0 { padding-right: 0 }    .pr-1 { padding-right: 4px }   .pr-2 { padding-right: 8px }
.pr-3 { padding-right: 12px } .pr-4 { padding-right: 16px }  .pr-5 { padding-right: 20px }
.pr-6 { padding-right: 24px } .pr-8 { padding-right: 32px }  .pr-10{ padding-right: 40px }

/* --- Spacing scale (margin) --- */
.m-0  { margin: 0 }         .m-1  { margin: 4px }      .m-2  { margin: 8px }
.m-3  { margin: 12px }      .m-4  { margin: 16px }     .m-5  { margin: 20px }
.m-6  { margin: 24px }      .m-8  { margin: 32px }     .m-10 { margin: 40px }
.m-auto { margin: auto }

.mx-0    { margin-left: 0;    margin-right: 0 }
.mx-1    { margin-left: 4px;  margin-right: 4px }
.mx-2    { margin-left: 8px;  margin-right: 8px }
.mx-3    { margin-left: 12px; margin-right: 12px }
.mx-4    { margin-left: 16px; margin-right: 16px }
.mx-6    { margin-left: 24px; margin-right: 24px }
.mx-auto { margin-left: auto; margin-right: auto }

.my-0  { margin-top: 0;     margin-bottom: 0 }
.my-1  { margin-top: 4px;   margin-bottom: 4px }
.my-2  { margin-top: 8px;   margin-bottom: 8px }
.my-3  { margin-top: 12px;  margin-bottom: 12px }
.my-4  { margin-top: 16px;  margin-bottom: 16px }
.my-5  { margin-top: 20px;  margin-bottom: 20px }
.my-6  { margin-top: 24px;  margin-bottom: 24px }
.my-8  { margin-top: 32px;  margin-bottom: 32px }
.my-10 { margin-top: 40px;  margin-bottom: 40px }

.mt-0 { margin-top: 0 }    .mt-1 { margin-top: 4px }   .mt-2 { margin-top: 8px }
.mt-3 { margin-top: 12px } .mt-4 { margin-top: 16px }  .mt-5 { margin-top: 20px }
.mt-6 { margin-top: 24px } .mt-8 { margin-top: 32px }  .mt-10{ margin-top: 40px }
.mt-auto { margin-top: auto }

.mb-0 { margin-bottom: 0 }    .mb-1 { margin-bottom: 4px }   .mb-2 { margin-bottom: 8px }
.mb-3 { margin-bottom: 12px } .mb-4 { margin-bottom: 16px }  .mb-5 { margin-bottom: 20px }
.mb-6 { margin-bottom: 24px } .mb-8 { margin-bottom: 32px }  .mb-10{ margin-bottom: 40px }

.ml-0 { margin-left: 0 }    .ml-1 { margin-left: 4px }   .ml-2 { margin-left: 8px }
.ml-3 { margin-left: 12px } .ml-4 { margin-left: 16px }  .ml-auto { margin-left: auto }

.mr-0 { margin-right: 0 }    .mr-1 { margin-right: 4px }   .mr-2 { margin-right: 8px }
.mr-3 { margin-right: 12px } .mr-4 { margin-right: 16px }  .mr-auto { margin-right: auto }

/* --- Gap --- */
.gap-1 { gap: 4px }  .gap-2 { gap: 8px }   .gap-3 { gap: 12px }
.gap-4 { gap: 16px } .gap-5 { gap: 20px }  .gap-6 { gap: 24px }
.gap-8 { gap: 32px } .gap-10 { gap: 40px }

/* --- Display --- */
.block        { display: block }
.inline-block { display: inline-block }
.inline       { display: inline }
.hidden       { display: none }
.flex         { display: flex }
.inline-flex  { display: inline-flex }
.grid         { display: grid }

/* --- Flexbox helpers --- */
.flex-col      { flex-direction: column }
.flex-row      { flex-direction: row }
.flex-wrap     { flex-wrap: wrap }
.flex-nowrap   { flex-wrap: nowrap }
.flex-1        { flex: 1 }
.flex-shrink-0 { flex-shrink: 0 }
.flex-grow     { flex-grow: 1 }
.items-start   { align-items: flex-start }
.items-center  { align-items: center }
.items-end     { align-items: flex-end }
.justify-start   { justify-content: flex-start }
.justify-center  { justify-content: center }
.justify-end     { justify-content: flex-end }
.justify-between { justify-content: space-between }
.justify-around  { justify-content: space-around }
.self-center   { align-self: center }
.self-end      { align-self: flex-end }

/* --- Sizing --- */
.w-full  { width: 100% }
.w-auto  { width: auto }
.h-full  { height: 100% }
.h-auto  { height: auto }
.min-w-0 { min-width: 0 }
.max-w-full { max-width: 100% }

/* --- Typography --- */
.text-xs   { font-size: .72rem }
.text-sm   { font-size: .85rem }
.text-base { font-size: 1rem }
.text-lg   { font-size: 1.1rem }
.text-xl   { font-size: 1.25rem }
.text-2xl  { font-size: 1.5rem }
.text-3xl  { font-size: 1.875rem }

.font-normal   { font-weight: 400 }
.font-medium   { font-weight: 500 }
.font-semibold { font-weight: 600 }
.font-bold     { font-weight: 700 }

.text-left   { text-align: left }
.text-center { text-align: center }
.text-right  { text-align: right }

.uppercase   { text-transform: uppercase }
.lowercase   { text-transform: lowercase }
.capitalize  { text-transform: capitalize }

.truncate    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.leading-tight  { line-height: 1.25 }
.leading-normal { line-height: 1.6 }
.leading-loose  { line-height: 1.9 }
.tracking-wide  { letter-spacing: .05em }
.tracking-wider { letter-spacing: .09em }

/* --- Colors (text) --- */
.text-white   { color: #fff }
.text-brand   { color: var(--brand) }
.text-muted   { color: var(--text-muted) }
.text-current { color: currentColor }

/* --- Border radius --- */
.rounded-sm { border-radius: var(--radius-sm) }
.rounded    { border-radius: var(--radius) }
.rounded-lg { border-radius: 16px }
.rounded-xl { border-radius: 20px }
.rounded-full { border-radius: 9999px }

/* --- Overflow --- */
.overflow-hidden  { overflow: hidden }
.overflow-x-auto  { overflow-x: auto }
.overflow-y-auto  { overflow-y: auto }

/* --- Position --- */
.relative { position: relative }
.absolute { position: absolute }
.sticky   { position: sticky }

/* --- Opacity / visibility --- */
.opacity-0   { opacity: 0 }
.opacity-50  { opacity: .5 }
.opacity-75  { opacity: .75 }
.opacity-100 { opacity: 1 }

/* ================================================================
   HEADER — Uptodown-style
================================================================ */
.site-header {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Main bar ── */
.header-main {
  height: 58px;
}

.header-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 6px;
  transition: background .15s;
}
.header-hamburger:hover { background: rgba(255,255,255,.1); }

.site-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.site-logo:hover { text-decoration: none; opacity: .9; }
.logo-gem { flex-shrink: 0; }

.header-actions {
  gap: 2px;
}

.hdr-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.85);
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.hdr-btn:hover { background: rgba(255,255,255,.1); color: var(--white); text-decoration: none; }

.hdr-btn-flash { color: #e879f9; }
.hdr-btn-flash:hover { color: #f0abfc; }

.hdr-btn-android { border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: 5px 10px; }

.hdr-btn-user {
  background: var(--brand);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  color: var(--white);
}
.hdr-btn-user:hover { background: var(--brand-dark); }

/* ── Announcement bar ── */
.announce-bar {
  background: var(--brand);
  color: var(--white);
  text-align: center;
  font-size: .74rem;
  letter-spacing: .3px;
  line-height: 1.4;
}
.announce-bar strong { font-weight: 700; }

/* ── Scrollable tag nav ── */
.tag-nav {
  background: var(--nav-bg);
  border-top: 1px solid rgba(255,255,255,.07);
}
.tag-nav-scroll {
  scrollbar-width: none;
}
.tag-nav-scroll::-webkit-scrollbar { display: none; }
.tag-nav-link {
  color: rgba(255,255,255,.65);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .6px;
  white-space: nowrap;
  padding: 9px 14px;
  text-decoration: none;
  flex-shrink: 0;
  transition: color .12s;
  border-bottom: 2px solid transparent;
}
.tag-nav-link:hover { color: var(--white); border-bottom-color: var(--brand); text-decoration: none; }

/* ================================================================
   HERO CAROUSEL
================================================================ */
.hero-carousel {
  background: var(--ph-bg);
  overflow: hidden;
  position: relative;
}

.hero-slider-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.hero-track {
  display: grid;
  grid-template-columns: 22fr 56fr 22fr;
  width: 100%;
}

.hero-slide {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hero-slide.side-slide {
  opacity: 0.75;
  transition: opacity .2s;
}
.hero-slide.side-slide:hover { opacity: 0.9; }

.hero-img-ph {
  width: 100%;
  height: 420px;
  background: var(--ph-bg);
}
.center-slide .hero-img-ph {
  height: 420px;
  background: #e3ece6;
}

/* Arrow buttons */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  transition: background .15s, transform .15s;
  color: #333;
  padding-bottom: 2px;
}
.hero-prev { left: 14px; }
.hero-next { right: 14px; }
.hero-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.07);
}

/* Slide badges */
.hero-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  font-size: .68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.badge-editors { background: #f59e0b; color: #fff; }
.badge-update   { background: #10b981; color: #fff; }

@media (max-width: 640px) {
  .hero-track { grid-template-columns: 0 1fr 0; }
  .side-slide  { display: none; }
  .hero-img-ph, .center-slide .hero-img-ph { height: 240px; }
}

/* ================================================================
   SECTIONS
================================================================ */
.section-alt { background: var(--bg-2); }
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-header .section-title { margin-bottom: 0; }
.see-all { font-size: .9rem; color: var(--brand); font-weight: 500; }

/* ================================================================
   CATEGORIES GRID
================================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .categories-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 500px) { .categories-grid { grid-template-columns: repeat(4, 1fr); } }

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow .15s, transform .15s;
  text-decoration: none;
  color: var(--text);
}
.category-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
}
.cat-icon { font-size: 1.8rem; line-height: 1; }
.cat-label { font-size: .8rem; font-weight: 600; text-align: center; color: var(--text); }

/* ================================================================
   APP CARD
================================================================ */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 860px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .app-grid { grid-template-columns: 1fr; } }

.app-grid-sm { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .app-grid-sm { grid-template-columns: repeat(2, 1fr); } }

.app-row-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.app-row-scroll::-webkit-scrollbar { height: 4px; }
.app-row-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.app-row-scroll .app-card { min-width: 200px; flex-shrink: 0; scroll-snap-align: start; }

.app-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  transition: box-shadow .15s, transform .15s;
  text-decoration: none;
  color: var(--text);
}
.app-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  text-decoration: none;
}
.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
}
.app-card-info { flex: 1; min-width: 0; }
.app-card-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.app-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  color: var(--star);
  margin-bottom: 3px;
}
.stars { color: var(--star); letter-spacing: 1px; }
.stars-lg { font-size: 1.2rem; }
.rating-num { color: var(--text-muted); font-size: .78rem; }
.rating-num-lg { font-size: 1rem; font-weight: 600; color: var(--text); }
.app-card-meta {
  display: flex;
  gap: 6px;
  font-size: .75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.app-card-cat {
  background: rgba(27,94,32,.12);
  color: var(--brand);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 500;
}
.app-card-dl::before { content: "↓ "; }

/* ================================================================
   APP PAGE
================================================================ */
.breadcrumb {
  font-size: .82rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--brand); }
.bc-sep { color: var(--text-muted); }

.app-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.app-header-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
}
.app-header-info { flex: 1; }
.app-header-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.app-header-dev { color: var(--brand); font-size: .92rem; margin-bottom: 6px; }
.app-header-meta-row {
  display: flex;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.dot { color: var(--text-muted); }
.app-header-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.dl-count { color: var(--text-muted); font-size: .85rem; }

.app-header-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.app-version-label { font-size: .78rem; color: var(--text-muted); }

/* Download Button */
.btn-download {
  display: inline-block;
  background: var(--green);
  color: var(--white) !important;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none !important;
  text-align: center;
  transition: background .15s, transform .1s;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(76,175,80,.35);
}
.btn-download:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(76,175,80,.45);
  text-decoration: none !important;
}
.btn-download-sidebar {
  width: 100%;
  font-size: .95rem;
  padding: 13px 16px;
}

.btn-secondary {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.btn-secondary:hover { background: var(--brand-dark); text-decoration: none; }

/* Screenshots */
.screenshots-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.screenshots-scroll::-webkit-scrollbar { height: 4px; }
.screenshots-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.screenshot-img {
  height: 220px;
  width: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex-shrink: 0;
  object-fit: cover;
}

/* Two-column layout */
.app-content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 760px) {
  .app-content-layout { grid-template-columns: 1fr; }
  .app-header { flex-direction: column; }
  .app-header-actions { width: 100%; }
  .btn-download { width: 100%; }
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.card:last-child { margin-bottom: 0; }
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg);
}

.app-description-short {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Prose (rendered markdown) */
.prose { font-size: .9rem; line-height: 1.7; color: var(--text); }
.prose h1,.prose h2,.prose h3 { font-weight: 700; margin: 1.2em 0 .5em; color: var(--text); }
.prose h2 { font-size: 1.05rem; }
.prose h3 { font-size: .95rem; }
.prose p { margin-bottom: .9em; }
.prose ul,.prose ol { padding-left: 1.4em; margin-bottom: .9em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .3em; }
.prose blockquote { border-left: 3px solid var(--brand); padding-left: 12px; color: var(--text-muted); margin: 1em 0; font-style: italic; }
.prose strong { font-weight: 700; }
.prose a { color: var(--brand); }
.prose code { background: var(--bg-2); padding: 1px 5px; border-radius: 3px; font-size: .85em; }

/* Pros / Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 480px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-cons h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.pros-col h3 { color: var(--green); }
.cons-col h3 { color: #e53935; }
.pro-item, .con-item { font-size: .88rem; margin-bottom: 5px; line-height: 1.4; }
.pro-item { color: #2e7d32; }
.con-item { color: #b71c1c; }

/* App Info Sidebar */
.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: .88rem;
}
.info-list dt { color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.info-list dd { font-weight: 600; color: var(--text); }
.info-list dd a { color: var(--brand); }

.sidebar-download { text-align: center; }
.sidebar-dl-note { font-size: .78rem; color: var(--text-muted); margin-top: 8px; }

/* ================================================================
   APP PAGE — REDESIGNED (Uptodown style)
================================================================ */
.app-page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 760px) {
  .app-page-layout { grid-template-columns: 1fr; }
}

/* Hero section (no card wrapper, sits on page bg) */
.app-hero {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.app-hero-icon {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid var(--border);
}

.app-hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}

.app-hero-version {
  font-size: .82rem;
  color: var(--text-muted);
}

.app-hero-dev {
  font-size: .9rem;
  font-weight: 500;
  color: var(--brand);
}

/* Category / platform badges */
.app-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: rgba(27,94,32,.1);
  color: var(--brand);
  border: 1px solid rgba(27,94,32,.25);
}
.app-badge-android {
  background: rgba(76,175,80,.12);
  color: #4caf50;
  border-color: rgba(76,175,80,.25);
}

/* Stats bar — 3-column bordered box */
.app-stats-bar {
  display: flex;
  align-items: stretch;
  background: var(--bg-2);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
}
.app-stat-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  text-align: center;
}
.app-stat-sep {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  flex-shrink: 0;
}
.app-stat-primary {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 4px;
}
.app-stat-star { color: var(--star); }
.app-stat-shield { color: var(--brand); }
.app-stat-secondary {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Tagline */
.app-hero-tagline {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

/* Download block — green box with label + size + icon */
.btn-dl-block {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 220px;
  background: var(--green);
  color: var(--white) !important;
  padding: 14px 20px;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: background .15s, transform .1s;
  box-shadow: 0 4px 14px rgba(76,175,80,.35);
}
.btn-dl-block:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  text-decoration: none !important;
}
.btn-dl-label {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}
.btn-dl-sub {
  font-size: .78rem;
  opacity: .85;
  margin-top: 2px;
}
.btn-dl-full {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* App section title (used for description heading) */
.app-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

/* App info — Uptodown style */
.app-info-main-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}
.app-info-group {
  margin-bottom: 28px;
}
.app-info-group-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.app-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 16px;
}
@media (max-width: 600px) {
  .app-info-grid { grid-template-columns: repeat(2, 1fr); }
}
.info-item-v2 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.info-item-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0,0,0,.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}
.info-item-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.info-item-subval {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}
.info-item-subval a { color: var(--brand); }

/* Rate this App + Rating section */
.rate-section-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}
.rate-subsection-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.rate-app-row { display: flex; align-items: center; gap: 16px; }
.rate-app-icon { border-radius: 14px; object-fit: cover; }
.rate-stars-empty { font-size: 2rem; color: var(--text-muted); letter-spacing: 6px; }
.rate-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-review-app {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 28px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-outline-action {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rating-overview { display: flex; align-items: center; gap: 28px; }
.rating-big-num { font-size: 4.5rem; font-weight: 800; color: var(--text-muted); line-height: 1; }
.rating-bars { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.rating-bar-row { display: flex; align-items: center; gap: 10px; }
.rating-bar-num { font-size: .76rem; color: var(--text-muted); width: 8px; text-align: right; flex-shrink: 0; }
.rating-bar-track { flex: 1; height: 6px; background: rgba(0,0,0,.06); border-radius: 3px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--brand); border-radius: 3px; }
.reviews-count-row { font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; margin-top: 10px; }

/* Users say pills */
.users-say-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.users-say-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(27,94,32,.08);
  border: 1px solid rgba(27,94,32,.2);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: .85rem;
  color: var(--text);
  line-height: 1.4;
}
.pill-check { color: var(--brand); flex-shrink: 0; }
.ai-notice { font-size: .75rem; color: var(--text-muted); }

/* Comments */
.comments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}
@media (max-width: 640px) { .comments-grid { grid-template-columns: 1fr; } }
.review-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
.review-avatar { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--bg-2); flex-shrink: 0; }
.review-username { font-size: .9rem; font-weight: 600; color: var(--brand); margin-bottom: 5px; }
.review-meta { display: flex; align-items: center; gap: 8px; }
.review-stars { color: var(--star); font-size: .85rem; letter-spacing: 1px; }
.review-date { font-size: .75rem; color: var(--text-muted); }
.review-text { font-size: .85rem; color: var(--text); line-height: 1.65; margin-bottom: 10px; }
.review-actions { display: flex; gap: 18px; }
.review-action { font-size: .8rem; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.btn-see-more {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
}

/* Alternative apps sidebar list */
.alt-app-list { display: flex; flex-direction: column; gap: 2px; }
.alt-app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: opacity .15s;
}
.alt-app-row:last-child { border-bottom: none; }
.alt-app-row:hover { opacity: .8; text-decoration: none; }
.alt-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.alt-app-info { flex: 1; min-width: 0; }
.alt-app-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.alt-app-desc {
  font-size: .78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* ================================================================
   APPS LIST PAGE
================================================================ */
.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}
.page-subtitle { color: var(--text-muted); font-size: .9rem; margin-top: 4px; }

.cat-tab {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s, color .12s, border-color .12s;
  color: var(--text);
}
.cat-tab:hover { border-color: var(--brand); color: var(--brand); background: #e8f5e9; }
.cat-tab.active { background: var(--brand); color: var(--white); border-color: var(--brand); }

/* ================================================================
   CATEGORY PAGE
================================================================ */
.cat-hero-icon { font-size: 3rem; }

/* ================================================================
   STATIC PAGES
================================================================ */
.page-narrow { max-width: 720px; }
.text-muted { color: var(--text-muted); font-size: .88rem; margin-bottom: 16px; }

/* Contact form */
.contact-form { margin-top: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--card-bg);
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27,94,32,.12);
}
.btn-submit {
  background: var(--brand);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.btn-submit:hover { background: var(--brand-dark); }

/* 404 */
.not-found {
  text-align: center;
  padding: 60px 0;
}
.not-found-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 16px;
}
.not-found h1 { font-size: 1.6rem; margin-bottom: 10px; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ================================================================
   FOOTER
================================================================ */
.site-footer {
  background: var(--nav-bg);
  color: #a8c2ac;
  margin-top: 40px;
  padding: 52px 24px 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Brand col */
.footer-logo {
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.footer-col-brand p {
  color: #9ab89e;
  line-height: 1.65;
  max-width: 360px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #173a1c;
  color: #a8c2ac;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.footer-social-link:hover {
  background: var(--green);
  color: #fff;
}

/* Link columns */
.footer-col-title {
  color: #9ab89e;
}
.footer-col a {
  display: block;
  color: #cfe3d2;
  font-size: .88rem;
  margin-bottom: 10px;
  text-decoration: none;
  transition: color .12s;
}
.footer-col a:hover { color: var(--green); }

/* NEW badge */
.footer-badge {
  display: inline-block;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .04em;
  background: transparent;
  border: 1.5px solid #e53e3e;
  color: #e53e3e;
  border-radius: 20px;
  padding: 1px 5px;
  vertical-align: middle;
  margin-left: 4px;
  line-height: 1.4;
}

/* ================================================================
   UTILITIES / RESPONSIVE
================================================================ */
@media (max-width: 640px) {
  .app-header-title { font-size: 1.2rem; }
  .header-nav { display: none; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ================================================================
   HOME SECTIONS — Uptodown-style
================================================================ */

/* Section header: "Title >" */
.sec-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.sec-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--brand);
  border-radius: 50%;
  color: var(--brand);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.sec-more:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* ── APP STRIP (horizontal mini-cards below hero) ── */
.strip-wrap {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.strip-scroll {
  display: flex;
  overflow-x: auto;
  padding: 14px 16px;
  gap: 6px;
  max-width: 1100px;
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.strip-scroll::-webkit-scrollbar { display: none; }

.strip-card {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 220px;
  padding: 10px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s;
}
.strip-card:hover { border-color: var(--brand); text-decoration: none; }

.strip-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ph-bg);
  flex-shrink: 0;
}
.strip-info { min-width: 0; }
.strip-name {
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.strip-desc {
  font-size: .75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* ── ICON SCROLL (Latest Updates / New Releases) ── */
.ic-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 16px 6px;
  margin: 0 -16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ic-scroll::-webkit-scrollbar { display: none; }

.ic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 108px;
  text-decoration: none;
  color: var(--text);
}
.ic-card:hover .ic-icon { opacity: .85; }

.ic-icon {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: var(--ph-bg);
  border: 1px solid var(--ph-border);
  margin-bottom: 8px;
  transition: opacity .15s;
}
.ic-name {
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.ic-desc {
  font-size: .72rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── BANNER CARD ROW (category sections) ── */
.bc-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 16px 6px;
  margin: 0 -16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bc-scroll::-webkit-scrollbar { display: none; }

.bc-card {
  flex-shrink: 0;
  width: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, transform .15s;
}
.bc-card:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }

.bc-banner {
  width: 100%;
  height: 130px;
  background: var(--ph-bg);
}
.bc-foot {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
}
.bc-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ph-bg);
  border: 1px solid var(--ph-border);
  flex-shrink: 0;
}
.bc-info { min-width: 0; }
.bc-name {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-desc {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

/* ── PROMO BANNERS (2 side by side) ── */
.promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .promo-row { grid-template-columns: 1fr; } }

.promo-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s;
}
.promo-banner:hover { border-color: var(--brand); text-decoration: none; }

.promo-bg {
  width: 100%;
  height: 180px;
  background: var(--ph-bg);
}
.promo-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--card-bg);
}
.promo-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--ph-bg);
  border: 1px solid var(--ph-border);
  flex-shrink: 0;
}
.promo-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.promo-desc {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── TOP DOWNLOADS (numbered ranking) ── */
.tdl-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 16px 6px;
  margin: 0 -16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tdl-scroll::-webkit-scrollbar { display: none; }

.tdl-card {
  flex-shrink: 0;
  width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  position: relative;
}
.tdl-card:hover .tdl-icon { opacity: .85; }

.tdl-num {
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
  opacity: .55;
  user-select: none;
  margin-bottom: -20px;
  align-self: flex-start;
  padding-left: 4px;
}
.tdl-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--ph-bg);
  border: 1px solid var(--ph-border);
  transition: opacity .15s;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}
.tdl-name {
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.tdl-desc {
  font-size: .7rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── GAMES GRID (3-column large banner cards) ── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 760px) { .game-grid { grid-template-columns: 1fr; } }
@media (max-width: 1000px) and (min-width: 761px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }

.game-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, transform .15s;
  display: block;
}
.game-card:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }

.game-banner {
  width: 100%;
  height: 200px;
  background: var(--ph-bg);
}
.game-foot {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
}
.game-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ph-bg);
  border: 1px solid var(--ph-border);
  flex-shrink: 0;
}
.game-info { min-width: 0; }
.game-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-desc {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

/* ============================================================
   LISTING PAGE (Latest Updates / New Releases / Top Downloads)
   ============================================================ */

.listing-heading {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.listing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.listing-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  border: 2px solid var(--brand);
  color: var(--brand);
  transition: background .15s, color .15s;
}
.listing-tab:hover { background: rgba(27,94,32,.1); }
.listing-tab-active {
  background: var(--brand);
  color: #fff;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 900px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .listing-grid { grid-template-columns: 1fr; } }

.listing-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--card-bg);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s;
}
.listing-card:hover { background: var(--bg-2); }
.listing-card-icon {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
}
.listing-card-info { min-width: 0; }
.listing-card-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.listing-card-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--brand);
  color: #fff;
  transition: opacity .15s;
}
.pagination-num:hover { opacity: .8; }
.pagination-num-active {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

/* ================================================================
   BLOG
================================================================ */
.blog-card-icon-ph { background: var(--bg-2); }
.blog-card-meta {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.blog-post-cover {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 420px;
}
