/*
Theme Name: APK Hub Games
Theme URI: https://example.com/apk-hub
Author: RJ rakha
Description: Professional game APK download theme for 3 Patti, Teen Patti, Rummy, Ludo and more.
Version: 1.3.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apk-hub
Tags: blog, custom-menu, custom-logo, theme-options
*/

:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --dark: #0c1222;
  --dark-2: #151d32;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --gold: #f59e0b;
  --gold-light: #fef3c7;
  --success: #10b981;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --max: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 4px 30px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  min-height: 72px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
  color: #fff !important;
  text-decoration: none !important;
  z-index: 101;
}
.site-logo:hover { opacity: .92; }
.site-logo .badge {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 4px 14px rgba(245,158,11,.4);
}
.site-logo-text { font-size: 1.05rem; letter-spacing: -.02em; }
.site-logo img.custom-logo { max-height: 44px; width: auto; max-width: 180px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem 1.5rem; align-items: center; }
.main-nav a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  padding: .35rem 0;
}
.main-nav a:hover { color: var(--gold); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .7rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: var(--dark) !important;
  font-weight: 700;
  font-size: .875rem;
  text-decoration: none !important;
  border: none;
  box-shadow: 0 4px 20px rgba(245,158,11,.35);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(245,158,11,.45); color: var(--dark) !important; }
.btn-outline {
  display: inline-flex; align-items: center;
  padding: .7rem 1.35rem;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.35);
  color: #fff !important;
  font-weight: 600;
  font-size: .875rem;
  background: transparent;
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-sm { padding: .55rem 1.1rem; font-size: .8rem; }
.btn-header { white-space: nowrap; }

.nav-toggle-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: .5rem;
  cursor: pointer;
  z-index: 101;
}
.nav-toggle-btn span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--dark) 0%, #1e3a5f 50%, var(--dark-2) 100%);
  color: #fff;
  padding: 4rem 0 5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37,99,235,.25), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(245,158,11,.12), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -.03em;
}
.hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--gold), #fcd34d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: .25rem;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 32em;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 2.5rem; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
}
@media (min-width: 600px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 1rem .75rem;
  backdrop-filter: blur(8px);
}
.hero-stat strong { display: block; font-size: 1.35rem; font-weight: 800; color: var(--gold); }
.hero-stat span { font-size: .75rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .04em; }

/* Category pills */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-top: 2rem;
}
.category-pill {
  padding: .4rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none !important;
}
.category-pill:hover { background: var(--gold); color: var(--dark) !important; border-color: var(--gold); }

/* Sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--surface); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.section-head p { margin: .35rem 0 0; color: var(--muted); font-size: .95rem; }
.link-arrow { font-weight: 700; font-size: .9rem; color: var(--primary) !important; }

/* App cards - professional */
.grid-apps {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) { .grid-apps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-apps { grid-template-columns: repeat(3, 1fr); } }

.app-card-pro {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
  height: 100%;
}
.app-card-pro:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,.25);
}
.app-card-top { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.app-card-pro .icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.app-card-pro h3 {
  margin: 0 0 .25rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.app-card-pro .meta { font-size: .8rem; color: var(--muted); margin: 0; }
.cat-badge {
  display: inline-block;
  padding: .2rem .55rem;
  background: var(--gold-light);
  color: #b45309;
  font-size: .7rem;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.app-card-pro .cat-badge {
  display: inline-block;
  margin-top: .4rem;
  padding: .2rem .55rem;
  background: var(--gold-light);
  color: #b45309;
  font-size: .7rem;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.app-card-pro .desc {
  font-size: .875rem;
  color: var(--muted);
  margin: 0 0 1rem;
  flex: 1;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.app-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.app-card-meta { font-size: .75rem; color: var(--muted); font-weight: 600; }
.app-card-meta .ver { color: var(--primary); }
.app-card-rating { color: var(--gold); font-weight: 700; font-size: .85rem; }
.btn-download-sm {
  padding: .45rem .9rem;
  border-radius: 8px;
  background: var(--primary);
  color: #fff !important;
  font-size: .75rem;
  font-weight: 700;
}
.app-card-pro:hover .btn-download-sm { background: var(--primary-dark); }

/* Blog cards */
.grid-2 { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-decoration: none !important;
  color: inherit !important;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.blog-card time { font-size: .75rem; color: var(--muted); font-weight: 600; }
.blog-card h3 { margin: .5rem 0 .5rem; font-size: 1.1rem; font-weight: 700; }
.blog-card p { margin: 0; font-size: .9rem; color: var(--muted); }

/* CTA */
.cta-banner {
  background: linear-gradient(135deg, var(--dark), #1e3a5f);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { margin: 0 0 .75rem; font-size: 1.75rem; font-weight: 800; }
.cta-banner p { margin: 0 auto 1.5rem; max-width: 28em; color: rgba(255,255,255,.7); }

/* App detail page */
.page-banner {
  background: linear-gradient(135deg, var(--dark), var(--dark-2));
  color: #fff;
  padding: 2rem 0;
  margin-bottom: 2rem;
}
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.breadcrumb a { color: var(--gold); }
.app-detail-box {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.app-detail-header { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.app-detail-header img { width: 100px; height: 100px; border-radius: 22px; box-shadow: var(--shadow); }
.app-detail-header h1 { margin: 0; font-size: 1.75rem; font-weight: 800; }
.btn-download-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: 14px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 2rem 0; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-box {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  border: 1px solid var(--line);
}
.stat-box .label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.stat-box .val { font-size: 1.1rem; font-weight: 800; margin-top: .35rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.faq details { margin-bottom: .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq summary { padding: 1rem 1.25rem; font-weight: 700; cursor: pointer; background: var(--bg); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { padding: 1rem 1.25rem; margin: 0; color: var(--muted); }
.notice { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-sm); padding: 1.25rem; }
.entry-content { line-height: 1.75; }
.entry-content ul { padding-left: 1.25rem; }

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  margin-top: 4rem;
  padding: 3.5rem 0 0;
}
.footer-top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (min-width: 800px) {
  .footer-top { grid-template-columns: 1.2fr 2fr; }
  .footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.footer-brand p { margin: 1rem 0 0; font-size: .9rem; line-height: 1.7; max-width: 28em; }
.site-footer .site-logo { margin-bottom: 0; }
.site-footer h4 { color: #fff; margin: 0 0 1rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255,255,255,.65); font-size: .9rem; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { padding: 1.5rem 0; text-align: center; font-size: .8rem; color: rgba(255,255,255,.45); }

.pagination { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; }
.pagination a, .pagination span {
  padding: .5rem 1rem;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: .875rem;
}

/* Header search */
.header-search { flex: 1; max-width: 220px; margin: 0 .5rem; }
.header-search input {
  width: 100%;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .85rem;
  font-family: var(--font);
}
.header-search input::placeholder { color: rgba(255,255,255,.5); }
.header-search input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.15); }

/* SEO intro homepage */
.seo-intro { padding-top: 2rem; padding-bottom: 2rem; }
.seo-intro-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.seo-intro-box h2 { margin: 0 0 1rem; font-size: 1.35rem; font-weight: 800; }
.seo-intro-box p { margin: 0 0 1rem; color: var(--muted); line-height: 1.75; }
.seo-keywords {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.seo-keywords li {
  padding: .35rem .75rem;
  background: var(--bg);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--line);
}

/* Install steps */
.install-steps {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.install-steps h3 { margin: 0 0 1rem; font-size: 1.1rem; }
.install-steps ol { margin: 0; padding-left: 1.25rem; color: var(--slate-700, var(--text)); }
.install-steps li { margin-bottom: .5rem; font-weight: 500; }

/* Mobile sticky download */
.mobile-download-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--dark);
  padding: .75rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
  border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-download-bar span { color: #fff; font-weight: 700; font-size: .9rem; }
body.single-apk_app { padding-bottom: 0; }

/* Mobile */
@media (max-width: 900px) {
  .header-search { display: none; }
  .nav-toggle-btn { display: flex; }
  .btn-header { display: none; }
  .mobile-download-bar { display: flex; }
  body.single-apk_app { padding-bottom: 70px; }
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--dark-2);
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,.3);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .main-nav li { width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav a { display: block; padding: 1rem 0; font-size: 1rem; }
}

.seo-content .entry-content { color: var(--muted); font-size: .95rem; }
.seo-content h2 { font-size: 1.35rem; margin-top: 0; }
.seo-content a { font-weight: 600; }

.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}

.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; }
.cta-dark { background: linear-gradient(135deg, var(--dark), #1e3a5f); border-radius: var(--radius); padding: 3rem 2rem; text-align: center; color: #fff; }

/* ========== Play Store app page ========== */
.ps-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}
.ps-layout {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 1024px) {
  .ps-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 2rem;
  }
}
.ps-main { min-width: 0; }
.ps-breadcrumb {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.ps-breadcrumb a { text-decoration: none; font-weight: 600; }

/* Sidebar — Popular / Recommended */
.ps-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 0;
  box-shadow: var(--shadow);
}
@media (min-width: 1024px) {
  .ps-sidebar {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
}
.ps-sidebar-block {
  padding: 0 1rem 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.ps-sidebar-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}
.ps-sidebar-title {
  margin: 0 0 .85rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
}
.ps-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ps-sidebar-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem 0;
  text-decoration: none !important;
  color: inherit !important;
  border-bottom: 1px solid #f1f5f9;
  transition: background .15s;
}
.ps-sidebar-list li:last-child .ps-sidebar-item {
  border-bottom: none;
}
.ps-sidebar-item:hover {
  background: var(--bg);
  margin: 0 -.5rem;
  padding-left: .5rem;
  padding-right: .5rem;
  border-radius: 8px;
}
.ps-sidebar-item img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.ps-sidebar-item-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.ps-sidebar-item-text strong {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ps-sidebar-item-text small {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ps-sidebar-more {
  display: block;
  text-align: right;
  padding: .75rem 1rem 0;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #10b981 !important;
  text-decoration: none !important;
}
.ps-sidebar-more:hover { color: #059669 !important; }

.ps-page { padding: 0; max-width: none; }
.ps-notice { background: #dcfce7; color: #166534; padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 600; }

.ps-header { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.25rem; }
.ps-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow-lg); flex-shrink: 0; }
.ps-header-info h1 { margin: 0 0 .25rem; font-size: 1.65rem; font-weight: 800; line-height: 1.2; }
.ps-dev { margin: 0; color: var(--muted); font-size: .95rem; }

.ps-stats-row {
  display: flex; align-items: center; justify-content: space-around;
  text-align: center; padding: 1rem 0; margin-bottom: 1.25rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ps-stat strong { display: block; font-size: 1rem; font-weight: 800; }
.ps-stat span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ps-stat-divider { width: 1px; height: 36px; background: var(--line); }

.ps-stars { display: inline-flex; gap: 1px; line-height: 1; }
.ps-stars--sm { font-size: .75rem; }
.ps-stars--lg { font-size: 1.25rem; }
.ps-star--full { color: #f59e0b; }
.ps-star--half { color: #f59e0b; opacity: .6; }
.ps-star--empty { color: #cbd5e1; }

.ps-install-btn {
  display: block; width: 100%; text-align: center;
  padding: 1rem 1.5rem; border-radius: 14px;
  background: #10b981; color: #fff !important;
  font-weight: 800; font-size: 1.05rem; text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(16,185,129,.35);
  margin-bottom: 2rem;
}
.ps-install-btn:hover { background: #059669; color: #fff !important; }

.ps-screenshots h2, .ps-ratings-section h2, .ps-info-box h2 { font-size: 1.15rem; font-weight: 800; margin: 0 0 1rem; }
.ps-screenshots-track {
  display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .5rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.ps-screenshots-track img {
  height: 280px; width: auto; border-radius: 14px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  scroll-snap-align: start; flex-shrink: 0;
}

.ps-ratings-section { margin: 2rem 0; }
.ps-ratings-grid { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 600px) { .ps-ratings-grid { grid-template-columns: 140px 1fr; align-items: center; } }
.ps-rating-num { font-size: 3.5rem; font-weight: 800; line-height: 1; display: block; }
.ps-rating-total { font-size: .85rem; color: var(--muted); }
.ps-bar-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; font-size: .75rem; }
.ps-bar { flex: 1; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.ps-bar span { display: block; height: 100%; background: #f59e0b; border-radius: 4px; }

.ps-rate-form {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; margin-top: 1rem;
}
.ps-rate-stars { display: flex; gap: .25rem; margin: .75rem 0; }
.ps-rate-star {
  background: none; border: none; font-size: 2rem; color: #cbd5e1;
  cursor: pointer; padding: 0; line-height: 1;
}
.ps-rate-star.is-active { color: #f59e0b; }
.ps-rate-submit {
  background: var(--primary); color: #fff; border: none;
  padding: .6rem 1.25rem; border-radius: 8px; font-weight: 700; cursor: pointer;
}
.ps-rated-done { color: var(--muted); font-style: italic; }

.ps-info-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0;
}
.ps-meta-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.ps-meta-chips span {
  background: var(--bg); padding: .35rem .75rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: var(--muted);
}
.ps-features { margin: 0; padding-left: 1.25rem; }
.ps-features li { margin-bottom: .35rem; }
.ps-faq details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: .5rem; overflow: hidden; }
.ps-faq summary { padding: 1rem; font-weight: 700; cursor: pointer; background: var(--bg); }
.ps-faq p { padding: 0 1rem 1rem; margin: 0; color: var(--muted); }

.mobile-download-bar strong { display: block; color: #fff; font-size: .85rem; }
.mobile-download-bar .ps-stars { margin-top: 2px; }
