* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f1f1f;
  background: #fff;
}
/* Header */
.gp-header {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 16px;
  /* Add safe-area padding at top to avoid status bar overlap */
  padding-top: max(12px, env(safe-area-inset-top));
  height: calc(56px + max(12px, env(safe-area-inset-top)));
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: box-shadow 0.2s;
  box-sizing: border-box;
}
.gp-header.scrolled {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.gp-logo-img {
  height: 32px;
  width: auto;
  margin-top: 4px;
}
.gp-main {
  max-width: 720px;
  margin: 0 auto;
  /* Increase top padding to account for taller header */
  padding: calc(72px + max(12px, env(safe-area-inset-top))) 16px 96px;
}

/* Hero */
.app-hero {
  padding: 0 24px;
  margin-top: 60px;
}
.hero-top {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}
.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.app-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.app-title {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 2px 0;
  line-height: 32px;
  color: #202124;
}
.app-dev {
  font-size: 14px;
  font-weight: 500;
  color: #01875f;
  margin-bottom: 2px;
}

/* Stats Row */
.stats-row {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}
.stat-val {
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
}
.stat-sub {
  font-size: 12px;
  color: #5f6368;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sep {
  width: 1px;
  height: 24px;
  background-color: #e8eaed;
  margin: 0 4px;
}
.star-icon {
  width: 12px;
  height: 12px;
}
.age-badge {
  border: 1px solid #5f6368;
  border-radius: 2px;
  font-size: 10px;
  padding: 0 3px;
  line-height: 14px;
  font-weight: 500;
  color: #202124;
  height: 16px;
  display: inline-block;
}
.info-icon {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

/* Actions */
.actions {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 36px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn.primary {
  background-color: #01875f;
  color: #fff;
}
.btn.outline {
  border: 1px solid #dadce0;
  color: #01875f;
  background-color: transparent;
}
.sub-actions {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}
.action-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #01875f;
  text-decoration: none;
}
.action-link img {
  width: 20px;
  height: 20px;
}

.shot-strip { margin-top: 16px; }
.shots-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.shots-row img { width: 100%; height: 300px; object-fit: cover; border-radius: 22px; background: #f5f5f5; }
.shot-captions { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 8px; color: #01875f; font-weight: 600; text-align: center; }

/* Device Alert */
.device-alert {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  color: #5f6368;
  font-size: 14px;
  font-weight: 500;
}
.device-icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  filter: none;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 18px;
  font-weight: 500;
  color: #202124;
  margin: 0;
}
.chev {
  font-size: 24px;
  color: #5f6368;
  font-weight: 300;
  margin-top: -4px;
}
.chev-down {
  font-size: 18px;
  color: #5f6368;
  transform: rotate(270deg);
  margin-right: 4px;
}

/* About */
.about { margin-top: 24px; }
.about-desc {
  font-size: 14px;
  color: #5f6368;
  line-height: 20px;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta-row {
  display: flex;
  gap: 40px;
  margin-bottom: 24px;
}
.meta-item {
  display: flex;
  flex-direction: column;
}
.meta-label {
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 4px;
}
.meta-value {
  font-size: 14px;
  color: #5f6368;
}
.meta-tags {
  margin-bottom: 8px;
}
.pill {
  display: inline-flex;
  height: 32px;
  padding: 0 16px;
  align-items: center;
  border: 1px solid #dadce0;
  border-radius: 16px;
  font-size: 14px;
  color: #5f6368;
  font-weight: 500;
}

/* Safety */
.safety { margin-top: 24px; }
.safety-desc {
  font-size: 14px;
  color: #5f6368;
  line-height: 20px;
  margin-bottom: 24px;
}
.safety-cards {
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 0 16px;
  margin-bottom: 16px;
}
.s-card {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f1f3f4;
}
.s-card:last-of-type {
  border-bottom: none;
}
.s-card .icon {
  width: 24px;
  height: 24px;
  opacity: 0.5;
  margin-top: 2px;
}
.s-text { flex: 1; }
.s-title {
  font-size: 14px;
  color: #202124;
  line-height: 20px;
}
.s-sub {
  font-size: 12px;
  color: #5f6368;
  margin-top: 4px;
}
.safety-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #01875f;
  text-decoration: none;
  margin-top: 8px;
}

/* Ratings */
.ratings { margin-top: 32px; }
.rating-v-desc {
  font-size: 12px;
  color: #5f6368;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rating-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 12px;
}
.big-score {
  font-size: 56px;
  font-weight: 400;
  color: #202124;
  line-height: 1;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
}
.bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bar-row span:first-child {
  font-size: 12px;
  color: #5f6368;
  width: 8px;
  text-align: right;
  font-weight: 500;
}
.bar {
  flex: 1;
  height: 10px;
  background: #e8eaed;
  border-radius: 5px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;;
  background: #01875f;
  border-radius: 5px;
}
.rating-stars-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.rating-stars-row .stars {
  display: flex;
  gap: 2px;
}
.rating-stars-row .stars img {
  width: 14px;
  height: 14px;
  filter: invert(33%) sepia(87%) saturate(1600%) hue-rotate(130deg) brightness(95%) contrast(101%);
}
.rating-stars-row .rating-count {
  font-size: 12px;
  color: #5f6368;
}

/* Reviews */
.reviews {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.review {
  display: flex;
  flex-direction: column;
}
.r-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #5f6368;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
}
.r-name {
  font-size: 14px;
  color: #202124;
  font-weight: 400;
  flex: 1;
}
.r-more {
  color: #5f6368;
  font-size: 18px;
}
.r-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.stars-small {
  display: flex;
  gap: 1px;
}
.stars-small img {
  width: 12px;
  height: 12px;
  filter: invert(33%) sepia(87%) saturate(1600%) hue-rotate(130deg) brightness(95%) contrast(101%);
}
.r-date {
  font-size: 12px;
  color: #5f6368;
}
.r-text {
  font-size: 14px;
  color: #5f6368;
  line-height: 20px;
  margin-bottom: 16px;
}
.r-footer {
  font-size: 12px;
  color: #5f6368;
  font-weight: 500;
}

/* Support */
.support { margin-top: 32px; padding-bottom: 16px; }
.support-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #dadce0;
  font-size: 14px;
  color: #202124;
  font-weight: 500;
}
.support-item .icon {
  width: 24px;
  height: 24px;
  opacity: 0.5;
}
.footer-links {
  display: flex;
  gap: 40px;
  margin-top: 24px;
  margin-bottom: 32px;
}
.link-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.link-group a {
  font-size: 14px;
  color: #5f6368;
  text-decoration: none;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.legal-links a {
  font-size: 12px;
  color: #5f6368;
  text-decoration: none;
}
.store-info {
  font-size: 12px;
  color: #5f6368;
  display: flex;
  align-items: center;
  gap: 4px;
}
.dot { font-weight: 700; }

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid #eee;
  background: #fff;
  height: 56px;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}
.gp-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 16px 96px;
}
.bottom-nav .nav-item { display: grid; place-items: center; color: #666; text-decoration: none; font-weight: 600; grid-template-rows: 1fr auto; padding-top: 6px; }
.bottom-nav .nav-item img { width: 22px; height: 22px; }
.bottom-nav .nav-item.active { color: #01875f; }

@media (max-width: 600px) {
  .app-hero { grid-template-columns: 88px 1fr; }
  .app-icon { width: 88px; height: 88px; border-radius: 18px; }
  .app-title { font-size: 22px; }
}
