*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink: #01875f;
  --pink-dark: #c2185b;
  --play-green: #01875f;
  --play-green-dark: #056449;
  --text: #202124;
  --muted: #5f6368;
  --border: #e8eaed;
  --bg: #ffffff;
}

html { scroll-behavior: smooth; }

body.ps-page {
  font-family: 'Roboto', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--pink-dark); }

img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; }

.container { width: min(960px, 94vw); margin: 0 auto; }

.ps-topbar {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.ps-topbar-inner { display: flex; align-items: center; justify-content: space-between; }

.ps-play-logo {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--muted); font-weight: 500; font-size: 1.1rem;
}

.ps-play-logo svg { width: 22px; height: 22px; }

.ps-hero { padding: 1.25rem 0 0.5rem; }

.ps-app-header { display: flex; gap: 1.25rem; align-items: flex-start; }

.ps-app-icon {
  width: 80px; height: 80px; border-radius: 20%;
  box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  object-fit: contain; background: #fff; flex-shrink: 0;
}

.ps-app-info h1 { font-size: 1.6rem; font-weight: 500; margin-bottom: 0.2rem; }

.ps-developer { color: var(--pink); font-weight: 500; font-size: 0.95rem; }

.ps-contains { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

.ps-stats {
  display: flex; text-align: center;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: 1.25rem 0; padding: 0.85rem 0;
}

.ps-stat { flex: 1; border-right: 1px solid var(--border); padding: 0 0.5rem; }
.ps-stat:last-child { border-right: none; }
.ps-stat strong { display: block; font-weight: 500; font-size: 0.95rem; }
.ps-stat span { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; }
.ps-stars .star { color: var(--pink); }

.ps-editor-badge { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }

.ps-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; }

.ps-btn-install {
  background: var(--play-green); color: #fff;
  border-radius: 8px; padding: 0.7rem 2.25rem;
  font-size: 0.95rem; font-weight: 500; min-width: 150px;
  transition: background 0.2s;
}

.ps-btn-install:hover:not(:disabled) { background: var(--play-green-dark); }
.ps-btn-install:disabled { opacity: 0.9; cursor: wait; }
.ps-btn-install.loading { background: #5f6368; }

.ps-btn-secondary {
  background: none; color: var(--pink);
  font-size: 0.875rem; font-weight: 500; padding: 0.5rem;
}

.ps-available { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }

.ps-shot {
  flex: 0 0 150px; height: 270px; border-radius: 12px;
  scroll-snap-align: start;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #fff;
  background: linear-gradient(160deg, #1a1a2e, #01875f);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.ps-section { padding: 1.5rem 0; border-top: 1px solid var(--border); }
.ps-section h2 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.75rem; }

.ps-desc { font-size: 0.875rem; line-height: 1.65; color: var(--muted); white-space: pre-line; }

.ps-meta-row {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin-top: 1rem; font-size: 0.8rem; color: var(--muted);
}

.ps-meta-row strong { display: block; color: var(--text); font-weight: 500; }

.ps-safety-item {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 1rem; margin-bottom: 0.75rem;
  font-size: 0.85rem; color: var(--muted);
}

.ps-safety-item strong { display: block; color: var(--text); margin-bottom: 0.25rem; }

.ps-rating-bars { max-width: 300px; margin: 1rem 0; }

.ps-rating-row {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: var(--muted); margin-bottom: 0.3rem;
}

.ps-rating-bar {
  flex: 1; height: 8px; background: var(--border);
  border-radius: 4px; overflow: hidden;
}

.ps-rating-bar span { display: block; height: 100%; background: var(--pink); }

.ps-review { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.ps-review-head { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.5rem; }

.ps-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fce4ec; color: var(--pink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}

.ps-review-meta { font-size: 0.8rem; color: var(--muted); }
.ps-review-stars { color: var(--pink); font-size: 0.75rem; }
.ps-review p { font-size: 0.875rem; color: #3c4043; line-height: 1.55; }

.ps-footer {
  background: #f8f9fa; border-top: 1px solid var(--border);
  padding: 1.5rem 0; text-align: center;
  font-size: 0.75rem; color: var(--muted);
}

.ps-screenshots{
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding:16px 0;
    scrollbar-width:none;
}

.ps-screenshots::-webkit-scrollbar{
    display:none;
}

.ps-shot-img{
    width:220px;
    height:390px;
    object-fit:cover;
    border-radius:12px;
    flex-shrink:0;
    border:1px solid #e0e0e0;
}

@media (min-width: 768px) {
  .ps-app-icon { width: 96px; height: 96px; }
  .ps-app-info h1 { font-size: 2rem; }
   .ps-shot-img{
        width:220px;
        height:360px;
    }
}
