/* ============================================================
   Play Store UI — Complete Theme CSS
   Mirrors Google Play Store 2024 Material You design exactly
   ============================================================ */

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  /* Brand */
  --pst-green:        #01875f;
  --pst-green-dk:     #016b4c;
  --pst-green-lt:     #e6f4f0;
  --pst-green-glow:   rgba(1,135,95,.18);

  /* Surfaces */
  --pst-bg:           #ffffff;
  --pst-surface:      #f8f9fa;
  --pst-surface-2:    #f1f3f4;
  --pst-border:       #e8eaed;
  --pst-border-dk:    #dadce0;

  /* Text */
  --pst-text:         #202124;
  --pst-text-2:       #5f6368;
  --pst-text-3:       #80868b;
  --pst-text-inv:     #ffffff;
  --pst-link:         #1a73e8;

  /* Accents */
  --pst-mod-bg:       #fef3e2;
  --pst-mod-border:   #f9ab60;
  --pst-mod-text:     #e8710a;
  --pst-warn-bg:      #fce8e6;
  --pst-warn-text:    #c5221f;
  --pst-star:         #ffa500;

  /* Header */
  --pst-header-h:     64px;
  --pst-header-bg:    #ffffff;
  --pst-header-shd:   0 1px 0 rgba(0,0,0,.08);

  /* Radii */
  --pst-r-sm:   8px;
  --pst-r-md:  12px;
  --pst-r-lg:  16px;
  --pst-r-xl:  24px;
  --pst-r-full:999px;

  /* Shadows */
  --pst-shd-1:  0 1px 3px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.06);
  --pst-shd-2:  0 4px 16px rgba(0,0,0,.10);
  --pst-shd-3:  0 8px 32px rgba(0,0,0,.12);

  /* Motion */
  --pst-ease:   cubic-bezier(.4,0,.2,1);

  /* Layout */
  --pst-max:    1200px;
  --pst-gap:    24px;

  /* Font */
  --pst-font:   'Google Sans','Roboto',system-ui,sans-serif;
}

/* ── Base reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body.pst-body {
  font-family: var(--pst-font);
  background: var(--pst-bg);
  color: var(--pst-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pst-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: var(--pst-font); cursor: pointer; }

/* ── Layout helpers ─────────────────────────────────────────── */
.pst-container {
  max-width: var(--pst-max);
  margin: 0 auto;
  padding: 0 var(--pst-gap);
}
.pst-page-wrap {
  padding-top: var(--pst-header-h);
  min-height: 100vh;
}

/* ════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════ */
.pst-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--pst-header-bg);
  box-shadow: var(--pst-header-shd);
  transition: background .3s var(--pst-ease), box-shadow .3s;
}

.pst-header-inner {
  display: flex;
  align-items: center;
  height: var(--pst-header-h);
  max-width: var(--pst-max);
  margin: 0 auto;
  padding: 0 16px;
  gap: 16px;
  position: relative;
}

/* Hamburger */
.pst-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 50%;
  transition: background .2s;
  flex-shrink: 0;
}
.pst-hamburger:hover { background: var(--pst-surface); }
.pst-hamburger span { display: block; width: 20px; height: 2px; background: var(--pst-text-2); border-radius: 2px; transition: transform .3s; }

/* Logo */
.pst-header-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pst-logo-link { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.pst-logo-img { height: 32px; width: auto; }
.pst-logo-text {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; color: var(--pst-text);
  letter-spacing: -.3px; white-space: nowrap;
}

/* Desktop primary navigation */
.pst-primary-nav { display: flex; }
.pst-primary-nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pst-primary-nav-list li { position: relative; }
.pst-primary-nav-list a {
  display: block; padding: 8px 14px; border-radius: var(--pst-r-full);
  font-size: 14px; font-weight: 500; color: var(--pst-text-2);
  text-decoration: none; white-space: nowrap; transition: background .2s, color .2s;
}
.pst-primary-nav-list a:hover { background: var(--pst-surface); color: var(--pst-text); }
@media (max-width: 768px) { .pst-primary-nav { display: none; } }

/* Search — hidden by default; opened as a centered overlay via the search icon */
.pst-header-search {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(32,33,36,.5);
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
}
.pst-header-search.pst-search-open { display: flex; }
.pst-search-panel {
  position: relative;
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pst-search-panel .pst-search-form { flex: 1; }
.pst-search-form { display: flex; align-items: center; gap: 10px; background: var(--pst-bg); border: 1.5px solid var(--pst-border); border-radius: var(--pst-r-full); padding: 0 8px 0 20px; height: 48px; transition: border-color .2s, box-shadow .2s; box-shadow: var(--pst-shd-3); }
.pst-search-form:focus-within { border-color: var(--pst-green); box-shadow: 0 0 0 3px var(--pst-green-glow); }
.pst-search-input {
  flex: 1; background: none; border: none; outline: none; box-shadow: none;
  font-size: 15px; font-family: var(--pst-font); color: var(--pst-text);
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.pst-search-input::placeholder { color: var(--pst-text-3); }
.pst-search-input::-webkit-search-decoration,
.pst-search-input::-webkit-search-cancel-button,
.pst-search-input::-webkit-search-results-button,
.pst-search-input::-webkit-search-results-decoration { -webkit-appearance: none; appearance: none; }
.pst-search-btn {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--pst-green); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.pst-search-btn:hover { background: var(--pst-green-dk); }
.pst-search-close {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--pst-bg); border: none; color: var(--pst-text-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--pst-shd-2); transition: background .2s, color .2s;
}
.pst-search-close:hover { background: var(--pst-surface); color: var(--pst-text); }

/* Header actions */
.pst-header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: auto; }
.pst-action-btn { background: none; border: none; padding: 10px; border-radius: 50%; color: var(--pst-text-2); display: flex; align-items: center; transition: background .2s, color .2s; }
.pst-action-btn:hover { background: var(--pst-surface); color: var(--pst-text); }

/* ════════════════════════════════════════════════════════════
   MOBILE SIDEBAR
   ════════════════════════════════════════════════════════════ */
.pst-sidebar-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
}
.pst-sidebar-overlay.open { display: block; }
.pst-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: 300px; z-index: 1200;
  background: var(--pst-bg);
  transform: translateX(-100%);
  transition: transform .3s var(--pst-ease);
  overflow-y: auto; padding-bottom: 40px;
  box-shadow: var(--pst-shd-3);
}
.pst-sidebar.open { transform: translateX(0); }
.pst-sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--pst-border);
}
.pst-sidebar-close { background: none; border: none; font-size: 20px; color: var(--pst-text-2); padding: 4px; border-radius: 50%; transition: background .2s; }
.pst-sidebar-close:hover { background: var(--pst-surface); }
.pst-sidebar-heading { padding: 16px 20px 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--pst-text-3); }
.pst-sidebar-cat-link { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; font-size: 14px; color: var(--pst-text); text-decoration: none; transition: background .15s; }
.pst-sidebar-cat-link:hover { background: var(--pst-surface); text-decoration: none; }
.pst-sidebar-cat-count { font-size: 12px; color: var(--pst-text-3); background: var(--pst-surface-2); padding: 2px 8px; border-radius: var(--pst-r-full); }
.pst-sidebar-nav { list-style: none; padding: 8px 0; }
.pst-sidebar-nav li a { display: block; padding: 12px 20px; font-size: 14px; color: var(--pst-text); text-decoration: none; transition: background .15s; }
.pst-sidebar-nav li a:hover { background: var(--pst-surface); }

/* ════════════════════════════════════════════════════════════
   BREADCRUMB
   ════════════════════════════════════════════════════════════ */
.pst-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 2px 4px; padding: 8px 0 0;
  font-size: 13px; color: var(--pst-text-2);
  max-width: var(--pst-max); margin: 0 auto;
  padding-left: var(--pst-gap); padding-right: var(--pst-gap);
  box-sizing: border-box;
}
.pst-breadcrumb a, .pst-breadcrumb span { overflow-wrap: anywhere; }
.pst-breadcrumb a { color: var(--pst-link); }
.pst-breadcrumb a:hover { text-decoration: underline; }
.pst-bc-sep { color: var(--pst-text-3); font-size: 15px; }

/* ════════════════════════════════════════════════════════════
   APP HERO
   ════════════════════════════════════════════════════════════ */
.pst-app-hero {
  padding: 16px 0 32px;
  border-bottom: 1px solid var(--pst-border);
  margin-bottom: 0;
}

/* 3-col grid: icon | identity | stats */
.pst-hero-grid {
  display: grid;
  grid-template-columns: auto 1fr 320px;
  gap: 28px;
  align-items: flex-start;
}

/* Icon */
.pst-hero-icon-wrap { flex-shrink: 0; }
.pst-hero-icon {
  width: 160px; height: 160px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--pst-shd-2), 0 0 0 1px rgba(0,0,0,.06);
  display: block;
}
.pst-hero-icon-placeholder {
  width: 160px; height: 160px;
  border-radius: 22px;
  background: linear-gradient(135deg, #34a853, #0f9d58);
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; font-weight: 700; color: #fff;
  box-shadow: var(--pst-shd-2);
}

/* Identity */
.pst-hero-identity { min-width: 0; }
.pst-app-name {
  font-size: 26px; font-weight: 700; color: var(--pst-text);
  letter-spacing: -.4px; line-height: 1.2; margin-bottom: 6px;
  overflow-wrap: break-word; word-break: break-word;
}
.pst-hero-developer { margin-bottom: 10px; }
.pst-developer-link {
  font-size: 14px; font-weight: 500; color: var(--pst-green);
  text-decoration: none; transition: color .2s;
}
.pst-developer-link:hover { color: var(--pst-green-dk); text-decoration: underline; }

/* Badges */
.pst-hero-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

/* Compact Size · Version · Requires Android row */
.pst-hero-meta-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--pst-text-2); margin-bottom: 12px; }
.pst-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--pst-r-full);
  font-size: 12px; font-weight: 500; border: 1.5px solid var(--pst-border);
  color: var(--pst-text-2); background: var(--pst-surface);
  text-decoration: none; transition: background .15s;
}
.pst-badge:hover { background: var(--pst-border); text-decoration: none; }
.pst-badge-mod {
  background: var(--pst-mod-bg); border-color: var(--pst-mod-border);
  color: var(--pst-mod-text); font-weight: 700;
}
.pst-badge-rated { color: var(--pst-text-2); }

/* Rating */
.pst-hero-rating {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.pst-rating-big { font-size: 22px; font-weight: 700; color: var(--pst-text); }
.pst-rating-right { display: flex; flex-direction: column; gap: 2px; }
.pst-rating-votes { font-size: 12px; color: var(--pst-text-3); }
.pst-hero-dot { color: var(--pst-text-3); }
.pst-hero-views { font-size: 13px; color: var(--pst-text-3); }

/* Stars */
.pst-stars { display: inline-flex; gap: 1px; }
.pst-star { font-size: inherit; line-height: 1; }
.pst-star--full  { color: var(--pst-star); }
.pst-star--half  { color: var(--pst-star); opacity: .55; }
.pst-star--empty { color: var(--pst-border-dk); }

/* App Info slot (3rd hero column): Download + Play Online, stacked */
.pst-hero-appinfo { display: flex; flex-direction: column; gap: 10px; }
.pst-hero-dl-btn { width: 100%; }

/* Buttons */
.pst-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 28px;
  background: var(--pst-green); color: var(--pst-text-inv);
  border: none; border-radius: var(--pst-r-full);
  font-family: var(--pst-font); font-size: 15px; font-weight: 600;
  cursor: pointer; box-shadow: 0 2px 8px var(--pst-green-glow);
  transition: background .2s, box-shadow .2s, transform .15s;
  text-decoration: none; white-space: nowrap;
}
.pst-btn-primary:hover { background: var(--pst-green-dk); box-shadow: 0 4px 14px var(--pst-green-glow); transform: translateY(-1px); text-decoration: none; color: #fff; }
.pst-btn-primary:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.pst-btn-inner { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pst-btn-inner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.pst-btn-inner small { font-size: 11px; opacity: .85; flex-shrink: 0; }

.pst-btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; background: transparent;
  color: var(--pst-green); border: 2px solid var(--pst-green);
  border-radius: var(--pst-r-full); font-size: 15px; font-weight: 600;
  transition: background .2s; text-decoration: none; white-space: nowrap;
}
.pst-btn-secondary:hover { background: var(--pst-green-lt); text-decoration: none; }

.pst-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; background: transparent;
  color: var(--pst-text-2); border: 1.5px solid var(--pst-border);
  border-radius: var(--pst-r-full); font-size: 14px; font-weight: 500;
  transition: border-color .2s, color .2s; text-decoration: none; white-space: nowrap;
}
.pst-btn-ghost:hover { border-color: var(--pst-text-2); color: var(--pst-text); text-decoration: none; }

/* Download timer */
.pst-dl-btn { position: relative; overflow: hidden; }
.pst-btn-timer { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.pst-ring-svg { flex-shrink: 0; }
.pst-ring-arc  { transition: stroke-dashoffset .1s linear; }

/* MOD pill */
.pst-mod-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; background: var(--pst-mod-bg);
  border: 1px solid var(--pst-mod-border); border-radius: var(--pst-r-full);
  font-size: 13px; font-weight: 500; color: var(--pst-mod-text);
}

/* ── Stats panel (right col of hero) ── */

.pst-stats-panel {
  background: var(--pst-surface);
  border: 1px solid var(--pst-border);
  border-radius: var(--pst-r-md);
  overflow: hidden;
}
.pst-stat-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px; border-bottom: 1px solid var(--pst-border);
}
.pst-stat-row:last-child { border-bottom: none; }
.pst-stat-icon { color: var(--pst-text-2); flex-shrink: 0; display: flex; }
.pst-stat-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pst-stat-val { font-size: 14px; font-weight: 600; color: var(--pst-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pst-stat-lbl { font-size: 11px; color: var(--pst-text-3); text-transform: uppercase; letter-spacing: .4px; }

/* Rate panel */
.pst-rate-panel {
  background: var(--pst-surface);
  border: 1px solid var(--pst-border);
  border-radius: var(--pst-r-md);
  padding: 18px;
  text-align: center;
}
.pst-rate-title { font-size: 13px; font-weight: 600; color: var(--pst-text-2); margin-bottom: 12px; }
.pst-rate-stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 8px; }
.pst-rate-star {
  background: none; border: none; font-size: 28px;
  color: var(--pst-border-dk); cursor: pointer;
  transition: color .15s, transform .15s;
  line-height: 1; padding: 2px;
}
.pst-rate-star:hover, .pst-rate-star.hovered, .pst-rate-star.selected { color: var(--pst-star); transform: scale(1.15); }

/* Consolidated Ratings & reviews section (below content) */
.pst-ratings-panel {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  padding: 20px 0;
}
.pst-ratings-summary { display: flex; align-items: center; gap: 12px; }
.pst-ratings-panel .pst-rate-panel { flex: 0 0 auto; min-width: 220px; }.pst-rate-msg { font-size: 12px; color: var(--pst-text-2); min-height: 18px; transition: opacity .3s; }
.pst-rate-msg.success        { color: var(--pst-green); }
.pst-rate-msg.already-voted { color: var(--pst-mod-text); }
.pst-rate-msg.error         { color: var(--pst-warn-text); }

/* ════════════════════════════════════════════════════════════
   SCREENSHOTS CAROUSEL
   ════════════════════════════════════════════════════════════ */
.pst-screenshots-section { padding: 28px 0 0; }
.pst-ss-carousel-wrap { position: relative; }
.pst-ss-carousel {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 4px 0 12px; scroll-padding: 0 8px;
}
.pst-ss-carousel::-webkit-scrollbar { display: none; }
.pst-ss-slide {
  flex-shrink: 0; scroll-snap-align: start;
  border-radius: var(--pst-r-sm);
  overflow: hidden; box-shadow: var(--pst-shd-1);
  transition: transform .2s, box-shadow .2s;
}
.pst-ss-slide:hover { transform: scale(1.02); box-shadow: var(--pst-shd-2); }
.pst-ss-slide img { height: 280px; width: auto; display: block; object-fit: cover; }

.pst-ss-arrow {
  position: absolute; top: 50%; transform: translateY(-60%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--pst-bg); border: 1.5px solid var(--pst-border);
  box-shadow: var(--pst-shd-2); display: flex; align-items: center; justify-content: center;
  color: var(--pst-text); z-index: 2; transition: background .2s, opacity .2s;
}
.pst-ss-arrow:hover { background: var(--pst-surface); }
.pst-ss-arrow.hidden { opacity: 0; pointer-events: none; }
.pst-ss-arrow-l { left: -16px; }
.pst-ss-arrow-r { right: -16px; }

/* ════════════════════════════════════════════════════════════
   CONTENT LAYOUT
   ════════════════════════════════════════════════════════════ */
.pst-content-layout { padding: 28px 0 60px; }
.pst-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: flex-start;
}
.pst-main-col { min-width: 0; }
.pst-aside-col { position: sticky; top: calc(var(--pst-header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }

/* Sections */
.pst-section { margin-bottom: 36px; }
.pst-section-title {
  font-size: 18px; font-weight: 700; color: var(--pst-text);
  margin-bottom: 16px; letter-spacing: -.2px;
}
.pst-section-header-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.pst-section-header-row .pst-section-title { margin-bottom: 0; }
.pst-see-all { font-size: 14px; font-weight: 500; color: var(--pst-green); white-space: nowrap; }
.pst-see-all:hover { text-decoration: underline; }

/* TOC */
.pst-toc { background: var(--pst-surface); border: 1px solid var(--pst-border); border-radius: var(--pst-r-sm); padding: 0; margin-bottom: 16px; overflow: hidden; }
.pst-toc-toggle { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: none; padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--pst-text); cursor: pointer; }
.pst-toc-chevron { transition: transform .3s; margin-left: auto; color: var(--pst-text-2); }
.pst-toc-toggle.open .pst-toc-chevron { transform: rotate(180deg); }
.pst-toc-list { list-style: decimal; padding: 0 16px 14px 32px; display: none; }
.pst-toc-list.visible { display: block; }
.pst-toc-list li { margin-bottom: 6px; padding-left: 4px; }
.pst-toc-list a { font-size: 13px; color: var(--pst-link); text-decoration: none; }
.pst-toc-list a:hover { text-decoration: underline; }

/* Description */
.pst-desc-wrap { position: relative; }
.pst-description {
  font-size: 14px; line-height: 1.8; color: var(--pst-text-2);
  max-height: 260px; overflow: hidden; position: relative;
  transition: max-height .4s var(--pst-ease);
}
.pst-description.expanded { max-height: 10000px; }
.pst-description::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px; background: linear-gradient(transparent, var(--pst-bg));
  pointer-events: none; transition: opacity .3s;
}
.pst-description.expanded::after { opacity: 0; }
.pst-description h1,.pst-description h2 { font-size: 1.1rem; font-weight: 700; color: var(--pst-text); margin: 1.2rem 0 .5rem; }
.pst-description h3,.pst-description h4 { font-size: 1rem; font-weight: 600; color: var(--pst-text); margin: 1rem 0 .4rem; }
.pst-description p { margin-bottom: .8rem; }
.pst-description ul,.pst-description ol { padding-left: 1.4em; margin-bottom: .8rem; }
.pst-description li { margin-bottom: .3rem; }

.pst-read-more {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 10px; background: none; border: none;
  font-size: 14px; font-weight: 500; color: var(--pst-green);
  font-family: var(--pst-font); padding: 0; cursor: pointer;
}
.pst-read-more:hover { text-decoration: underline; }

/* Warning */
.pst-warning-banner {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px; border-radius: var(--pst-r-sm);
  background: var(--pst-warn-bg); border-left: 3px solid var(--pst-warn-text);
  font-size: 13px; color: var(--pst-warn-text); margin-top: 16px;
}
.pst-warning-banner svg { flex-shrink: 0; margin-top: 1px; }

/* AdSense */
.pst-ad-slot { margin: 20px 0; }
.adsbygoogle { display: block !important; }

/* ── Download table ── */
.pst-download-table {
  border: 1px solid var(--pst-border);
  border-radius: var(--pst-r-md);
  overflow: hidden;
}
.pst-dl-table-head {
  display: grid; grid-template-columns: minmax(0, 1fr) 120px 120px 160px;
  padding: 12px 20px; background: var(--pst-surface);
  font-size: 12px; font-weight: 600; color: var(--pst-text-2);
  text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--pst-border);
}
.pst-dl-table-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 120px 120px 160px;
  padding: 16px 20px; border-bottom: 1px solid var(--pst-border);
  align-items: center; transition: background .15s;
}
.pst-dl-table-row:last-child { border-bottom: none; }
.pst-dl-table-row:hover { background: var(--pst-surface); }
.pst-dl-type { font-size: 14px; font-weight: 600; color: var(--pst-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pst-dl-ver  { font-size: 13px; color: var(--pst-text-2); }
.pst-dl-size { font-size: 13px; color: var(--pst-text-2); }

/* ── Related apps row ── */
.pst-apps-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.pst-apps-row-sidebar { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.pst-app-card-mini {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--pst-border);
  border-radius: var(--pst-r-md); text-decoration: none; color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  background: var(--pst-bg);
  min-width: 0;
}
.pst-app-card-mini:hover {
  border-color: var(--pst-green); box-shadow: 0 4px 16px var(--pst-green-glow);
  transform: translateY(-2px); text-decoration: none;
}
.pst-mini-icon { flex-shrink: 0; width: 52px; height: 52px; }
.pst-mini-icon img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.pst-mini-icon-ph { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg,#34a853,#0f9d58); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 700; }
.pst-mini-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pst-mini-name { font-size: 13px; font-weight: 600; color: var(--pst-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pst-mini-dev  { font-size: 12px; color: var(--pst-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pst-mini-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--pst-text-3); }
.pst-mini-mod  { background: var(--pst-mod-bg); color: var(--pst-mod-text); padding: 1px 6px; border-radius: 4px; font-weight: 600; font-size: 10px; }
.pst-mini-dl   { flex-shrink: 0; color: var(--pst-green); }

/* ── Aside ── */
.pst-aside-card {
  background: var(--pst-surface);
  border: 1px solid var(--pst-border);
  border-radius: var(--pst-r-md);
  padding: 18px 20px;
}
.pst-aside-title { font-size: 13px; font-weight: 600; color: var(--pst-text); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.pst-tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.pst-tag {
  display: inline-block; padding: 5px 12px;
  background: var(--pst-bg); border: 1px solid var(--pst-border);
  border-radius: var(--pst-r-full); font-size: 12px; font-weight: 500;
  color: var(--pst-text-2); text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.pst-tag:hover { background: var(--pst-green-lt); border-color: var(--pst-green); color: var(--pst-green); text-decoration: none; }

.pst-developer-card-link {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.pst-developer-card-link:hover { text-decoration: none; }
.pst-dev-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pst-green), var(--pst-green-dk));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.pst-dev-info { display: flex; flex-direction: column; gap: 2px; }
.pst-dev-name { font-size: 14px; font-weight: 600; color: var(--pst-text); }
.pst-dev-sub  { font-size: 12px; color: var(--pst-green); }

/* ════════════════════════════════════════════════════════════
   ARCHIVE / HOME — APP GRID
   ════════════════════════════════════════════════════════════ */
.pst-archive-wrap { padding: 0 var(--pst-gap) 60px; max-width: var(--pst-max); margin: 0 auto; }
.pst-archive-header { padding: 20px 0 24px; }
.pst-archive-title { font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.pst-archive-title em { font-style: normal; color: var(--pst-green); }
.pst-archive-desc { font-size: 14px; color: var(--pst-text-2); margin-top: 6px; }

/* App card grid */
.pst-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.pst-app-card {
  display: flex; flex-direction: column;
  background: var(--pst-bg);
  border: 1px solid var(--pst-border);
  border-radius: var(--pst-r-md);
  padding: 16px; gap: 10px;
  text-decoration: none; color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  position: relative;
}
.pst-app-card:hover {
  border-color: var(--pst-green);
  box-shadow: 0 4px 20px var(--pst-green-glow);
  transform: translateY(-3px);
  text-decoration: none;
}
.pst-card-icon { position: relative; flex-shrink: 0; }
.pst-card-icon img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.pst-card-icon-placeholder {
  width: 72px; height: 72px; border-radius: 14px;
  background: linear-gradient(135deg, #34a853, #0f9d58);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px; font-weight: 700;
}
.pst-card-mod-dot {
  position: absolute; top: -3px; right: -3px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--pst-mod-text); border: 2px solid var(--pst-bg);
}
.pst-card-body { flex: 1; min-width: 0; }
.pst-card-name {
  font-size: 14px; font-weight: 600; color: var(--pst-text);
  margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pst-card-dev { font-size: 12px; color: var(--pst-text-3); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pst-card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pst-card-rating { display: flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 500; color: var(--pst-text-2); }
.pst-card-ver { font-size: 11px; color: var(--pst-text-3); background: var(--pst-surface); padding: 2px 6px; border-radius: 4px; }
.pst-card-mod-badge { font-size: 10px; font-weight: 700; color: var(--pst-mod-text); background: var(--pst-mod-bg); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--pst-mod-border); }
.pst-card-mod-feat { font-size: 11px; color: var(--pst-mod-text); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pst-card-action { display: flex; justify-content: flex-end; }
.pst-card-install-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--pst-green-lt); color: var(--pst-green);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.pst-app-card:hover .pst-card-install-btn { background: var(--pst-green); color: #fff; }

/* Pagination */
.pst-pagination { display: flex; justify-content: center; margin-top: 40px; }
.pst-pagination .page-numbers { display: flex; gap: 6px; list-style: none; align-items: center; flex-wrap: wrap; }
.pst-pagination .page-numbers li a,
.pst-pagination .page-numbers li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 8px;
  border-radius: var(--pst-r-full);
  font-size: 14px; font-weight: 500;
  border: 1.5px solid var(--pst-border);
  color: var(--pst-text-2);
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.pst-pagination .page-numbers li a:hover { border-color: var(--pst-green); color: var(--pst-green); background: var(--pst-green-lt); }
.pst-pagination .page-numbers li span.current { background: var(--pst-green); border-color: var(--pst-green); color: #fff; }
.pst-pagination .page-numbers li a svg { width: 18px; height: 18px; }

/* Empty state */
.pst-empty-state {
  text-align: center; padding: 80px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.pst-empty-state h2 { font-size: 20px; color: var(--pst-text); }
.pst-empty-state p  { color: var(--pst-text-2); }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.pst-footer {
  background: var(--pst-surface);
  border-top: 1px solid var(--pst-border);
  padding: 48px 0 0;
}
.pst-footer-inner { max-width: var(--pst-max); margin: 0 auto; padding: 0 var(--pst-gap); }
.pst-footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px; margin-bottom: 40px;
}
.pst-footer-col {}
.pst-widget-title { font-size: 14px; font-weight: 700; color: var(--pst-text); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .6px; }
.pst-footer-divider { height: 1px; background: var(--pst-border); margin-bottom: 24px; }
.pst-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 32px; gap: 20px; flex-wrap: wrap;
}
.pst-footer-brand { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--pst-text-2); }
.pst-footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pst-footer-links li a { font-size: 13px; color: var(--pst-text-2); text-decoration: none; transition: color .2s; }
.pst-footer-links li a:hover { color: var(--pst-green); }

.pst-footer-socials { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; }
.pst-footer-social-link {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--pst-surface); color: var(--pst-text-2);
  transition: background .2s, color .2s;
}
.pst-footer-social-link:hover { background: var(--pst-green); color: #fff; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .pst-hero-grid { grid-template-columns: auto 1fr; }
  .pst-hero-appinfo { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; max-width: 420px; }
  .pst-hero-dl-btn { width: auto; flex: 1 1 180px; }
  .pst-rate-panel  { flex: 1 1 200px; }
}

@media (max-width: 960px) {
  .pst-content-grid { grid-template-columns: minmax(0, 1fr); }
  .pst-aside-col { position: static; flex-direction: row; flex-wrap: wrap; }
  .pst-aside-card { flex: 1 1 240px; }
  .pst-footer-widgets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .pst-hamburger { display: flex; }
  .pst-header-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .pst-header-search { padding: 64px 16px 16px; }

  .pst-hero-grid { grid-template-columns: auto 1fr; gap: 16px; }
  .pst-hero-icon,.pst-hero-icon-placeholder { width: 120px; height: 120px; border-radius: 18px; font-size: 48px; }
  .pst-app-name { font-size: 20px; overflow-wrap: break-word; word-break: break-word; }

  .pst-dl-table-head { grid-template-columns: minmax(0, 1fr) auto; }
  .pst-dl-table-head span:nth-child(2),
  .pst-dl-table-head span:nth-child(3) { display: none; }
  .pst-dl-table-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pst-dl-ver,.pst-dl-size { display: none; }

  .pst-ss-arrow-l { left: 0; }
  .pst-ss-arrow-r { right: 0; }
  .pst-ss-slide img { height: 220px; }

  .pst-footer-widgets { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .pst-hero-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pst-hero-identity { text-align: center; }
  .pst-hero-badges,.pst-hero-meta-row,.pst-hero-appinfo { justify-content: center; }
  .pst-ratings-panel { justify-content: center; text-align: center; }
  .pst-app-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pst-btn-primary,.pst-btn-secondary { padding: 10px 20px; font-size: 14px; }
  .pst-apps-row { grid-template-columns: minmax(0, 1fr); }
}

/* ════════════════════════════════════════════════════════════
   HOMEPAGE CAROUSEL ROW ("Recommended for you" style)
   ════════════════════════════════════════════════════════════ */
.pst-carousel-wrap { position: relative; margin-bottom: 48px; }
.pst-carousel-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.pst-carousel-row::-webkit-scrollbar { display: none; }
.pst-carousel-nav {
  position: absolute;
  top: 40px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--pst-bg);
  color: var(--pst-text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--pst-shd-2);
  transition: background .2s, color .2s;
}
.pst-carousel-nav:hover { background: var(--pst-surface); color: var(--pst-text); }
@media (max-width: 650px) {
  .pst-carousel-nav { display: none; }
}

/* ════════════════════════════════════════════════════════════
   HOMEPAGE PROGRESSIVE SUBCATEGORY LOADER
   ════════════════════════════════════════════════════════════ */
.pst-autocat-loader { min-height: 40px; }

.pst-cat-pills-section { margin-top: 48px; }
.pst-cat-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pst-cat-pill {
  display: inline-flex; align-items: center;
  padding: 8px 18px; border-radius: var(--pst-r-full);
  border: 1px solid var(--pst-border); background: var(--pst-surface);
  font-size: 14px; font-weight: 500; color: var(--pst-text-2);
  text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.pst-cat-pill:hover { background: var(--pst-green); border-color: var(--pst-green); color: #fff; }
.pst-cat-loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}
.pst-cat-loading-spinner::after {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--pst-border);
  border-top-color: var(--pst-green);
  animation: pst-spin 0.8s linear infinite;
}
@keyframes pst-spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════
   SIMPLE PAGE TEMPLATE (Privacy Policy, Terms, DMCA, Contact, etc.)
   ════════════════════════════════════════════════════════════ */
.pst-simple-page-content { font-size: 16px; line-height: 1.75; color: var(--pst-text-2); }
.pst-simple-page-content h2 { font-size: 22px; font-weight: 700; color: var(--pst-text); margin: 32px 0 12px; }
.pst-simple-page-content h3 { font-size: 18px; font-weight: 600; color: var(--pst-text); margin: 24px 0 10px; }
.pst-simple-page-content p { margin: 0 0 16px; }
.pst-simple-page-content ul, .pst-simple-page-content ol { margin: 0 0 16px; padding-left: 24px; }
.pst-simple-page-content li { margin-bottom: 8px; }
.pst-simple-page-content a { color: var(--pst-link); text-decoration: underline; }
.pst-simple-page-content strong { color: var(--pst-text); }

/* ════════════════════════════════════════════════════════════
   SCROLLBAR
   ════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--pst-border-dk); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--pst-text-3); }

/* ==========================================================================
   PLAY STORE ARCHIVE STYLES 
   (Robust overrides for Apps, Games, Top Charts, and Search grids)
   ========================================================================== */

/* 1. GLOBAL ARCHIVE LAYOUT & RESETS */
.pst-archive-layout {
    padding: 32px 0;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    color: var(--pst-text-main);
    background: #fff;
}

/* Container fallback */
.pst-archive-layout .pst-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.pst-archive-header { margin-bottom: 24px; }

.pst-section-title {
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 16px 0;
    line-height: 1.2;
    color: var(--pst-text-main);
}

.pst-cat-desc {
    font-size: 14px;
    color: var(--pst-text-muted);
    margin-bottom: 24px;
}

.pst-archive-layout a {
    text-decoration: none !important;
    color: inherit;
}

.pst-archive-layout img {
    margin: 0;
    padding: 0;
    max-width: 100%;
    display: block;
}

.pst-dot {
    margin: 0 4px;
    color: var(--pst-text-muted);
}

/* 2. PILLS (TABS) */
.pst-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.pst-pill {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--pst-border);
    font-size: 14px;
    text-decoration: none;
    color: var(--pst-text-muted);
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.pst-pill:hover { background: var(--pst-bg-pill); }

.pst-pill.active {
    background: var(--pst-bg-pill-active);
    color: var(--pst-color-pill-active);
    border-color: var(--pst-bg-pill-active);
}

/* 3. TOP CHARTS LIST GRID */
.pst-charts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 24px;
}

@media (max-width: 992px) { .pst-charts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .pst-charts-grid { grid-template-columns: minmax(0, 1fr); } }

.pst-chart-item {
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 4px 8px;
    transition: background 0.2s;
    min-width: 0;
}

.pst-chart-item:hover { background: #f8f9fa; }

.pst-chart-rank {
    width: 18px;
    font-size: 14px;
    color: var(--pst-text-muted);
    margin-right: 12px;
    text-align: center;
    flex-shrink: 0;
}

.pst-chart-icon-wrap {
    flex-shrink: 0;
    margin-right: 12px;
}

.pst-chart-icon,
.pst-chart-icon-wrap img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pst-chart-icon.placeholder {
    background: #e8eaed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 500;
    color: var(--pst-text-muted);
}

.pst-chart-info {
    flex: 1;
    min-width: 0;
}

.pst-chart-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--pst-text-main);
}

.pst-chart-meta {
    font-size: 12px;
    color: var(--pst-text-muted);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.pst-chart-rating {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--pst-text-muted);
    gap: 2px;
}

/* 4. APPS GRID (SQUIRCLES) */
.pst-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 32px 16px;
}

@media (max-width: 480px) {
    .pst-apps-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

.pst-app-card {
    display: flex;
    flex-direction: column;
}

.pst-app-squircle-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 12px;
}

.pst-app-squircle, 
.pst-app-squircle-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.pst-app-squircle.placeholder {
    background: #e8eaed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 500;
    color: var(--pst-text-muted);
}

.pst-app-card-title {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 4px 0;
    line-height: 1.3;
    color: var(--pst-text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pst-app-card-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--pst-text-muted);
    gap: 2px;
}

/* 5. GAMES & SEARCH GRID */
.pst-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px 24px;
}

@media (max-width: 650px) {
    .pst-games-grid { grid-template-columns: 1fr; } 
}

.pst-game-card {
    display: flex;
    flex-direction: column;
}

.pst-game-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f1f3f4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pst-cover-img,
.pst-game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pst-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pst-game-card:hover .pst-play-overlay {
    opacity: 1;
}

.pst-game-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pst-game-small-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.pst-game-small-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.pst-game-text {
    flex: 1;
    min-width: 0; 
}

.pst-game-title {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--pst-text-main);
}

.pst-game-dev {
    font-size: 12px;
    color: var(--pst-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pst-game-rating {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--pst-text-muted);
    gap: 2px;
    margin-top: 2px;
}

/* 6. PAGINATION & EXTRAS */
.pst-pagination {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--pst-border);
}

.pst-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pst-pagination .page-numbers {
    padding: 8px 16px;
    border: 1px solid var(--pst-border);
    border-radius: 8px;
    color: var(--pst-text-main);
    text-decoration: none;
    font-weight: 500;
}

.pst-pagination .page-numbers.current {
    background: var(--pst-bg-pill-active);
    color: var(--pst-color-pill-active);
    border-color: var(--pst-bg-pill-active);
}

.pst-no-results {
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
    color: var(--pst-text-muted);
    font-size: 16px;
}

/* ════════════════════════════════════════════════════════════
   FOCUS / ACCESSIBILITY
   ════════════════════════════════════════════════════════════ */
:focus-visible { outline: 2px solid var(--pst-green); outline-offset: 2px; }
.pst-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }