/* Supplemental styles: fills the gaps for markup this renderer
   introduces that the extracted Play Store sheet doesn't cover. */

:root {
  --color-primary: #00A173;
  --color-primary-dark: #008B64;
  --color-primary-light: #00B884;
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-bg-tertiary: #f1f3f4;
  --color-text-primary: #1f1f1f;
  --color-text-secondary: #444746;
  --color-text-muted: #5f6368;
  --color-border: rgb(218, 220, 224);
}

html[data-scheme='blue'] { --color-primary: #0B57D0; --color-primary-dark: #0946A8; --color-primary-light: #1A6FD9; }
html[data-scheme='purple'] { --color-primary: #7c3aed; --color-primary-dark: #6d28d9; --color-primary-light: #8b5cf6; }

html.dark {
  --color-bg-primary: #121212;
  --color-bg-secondary: #1e1e1e;
  --color-bg-tertiary: #2d2d2d;
  --color-text-primary: #f8fafc;
  --color-text-secondary: #e2e8f0;
  --color-text-muted: #cbd5e1;
  --color-border: #333;
  --color-primary: #8ab4f8;
  --color-primary-dark: #669df6;
}

html, body {
  margin: 0;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: Roboto, Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.main-container { max-width: 720px; margin: 0 auto; padding-bottom: 84px; }
.container { padding: 0 16px; }
main { display: block; }

/* header ---------------------------------------------------------- */
.mobile-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; gap: 12px;
  background: var(--color-bg-primary);
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid transparent;
}
.google-play-logo { display: flex; align-items: center; gap: 10px; }
.google-play-logo span { font-size: 21px; font-weight: 500; letter-spacing: -.2px; }
.play-icon { display: flex; }
.header-actions { display: flex; align-items: center; gap: 18px; color: var(--color-text-primary); }
.header-icon { cursor: pointer; }

/* app header block ------------------------------------------------ */
.app-info-section { padding-top: 20px; }
.play-market-layout { display: flex; gap: 16px; align-items: flex-start; }
.play-market-icon-wrapper { flex: 0 0 auto; }
.play-market-icon {
  width: 72px; height: 72px; border-radius: 16px; object-fit: cover;
  background: var(--color-bg-tertiary);
}
.play-market-title-block { min-width: 0; }
.app-header { font-size: 24px; line-height: 1.2; font-weight: 500; margin: 0 0 4px; }
.developer-with-badge {
  display: flex; align-items: center; gap: 5px;
  color: var(--color-primary); font-size: 14px; font-weight: 500;
}
.verified-badge { color: var(--color-primary); flex: 0 0 auto; }
.play-market-ads { color: var(--color-text-muted); font-size: 12px; margin-top: 4px; }
.update-badge {
  display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 500;
  color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  padding: 2px 8px; border-radius: 999px;
}

/* stats bar ------------------------------------------------------- */
.stats-bar {
  display: flex; align-items: stretch; justify-content: space-between;
  margin: 22px 0 20px; text-align: center;
}
.stat-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.stat-value {
  font-size: 14px; font-weight: 700; color: var(--color-text-primary);
  display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 20px;
}
.stat-label { font-size: 12px; color: var(--color-text-muted); }
.stat-divider { width: 1px; background: var(--color-border); margin: 4px 0; flex: 0 0 1px; }
.rating-display { display: flex; align-items: center; gap: 4px; }
.rating-star { color: var(--color-text-primary); }
.rating-star.is-empty { opacity: .25; }
.stat-size-icon { display: flex; }
.age-rating-badge {
  border: 1.6px solid var(--color-text-primary); border-radius: 4px;
  padding: 1px 5px; font-size: 12px; font-weight: 700; line-height: 1.3;
}

/* install --------------------------------------------------------- */
.install-buttons-section { margin: 4px 0 26px; }
.install-button {
  position: relative; overflow: hidden;
  width: 100%; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--color-primary); color: #fff;
  font-size: 15px; font-weight: 600; padding: 13px 20px;
  transition: background .2s ease, opacity .2s ease;
  font-family: inherit;
}
.install-button:active { background: var(--color-primary-dark); }
.install-button:disabled { cursor: default; opacity: .85; }
.pm-install-progress {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: rgba(255, 255, 255, .85); transition: width .35s ease;
}
.device-availability {
  display: flex; align-items: center; gap: 9px;
  margin-top: 14px; color: var(--color-text-muted); font-size: 13px;
}
.device-availability__icon { flex: 0 0 auto; }

/* screenshots ----------------------------------------------------- */
.screenshots-container { margin: 4px 0 28px; }
.embla__viewport { overflow: hidden; }
.embla__container {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px;
}
.embla__container::-webkit-scrollbar { display: none; }
.embla__slide { flex: 0 0 auto; scroll-snap-align: start; }
.screenshot-item {
  height: 300px; width: auto; border-radius: 10px; display: block;
  background: var(--color-bg-tertiary);
}

/* collapsible sections -------------------------------------------- */
.app-description { margin-bottom: 28px; }
.app-description__header { display: flex; align-items: center; justify-content: space-between; }
.app-description__title { font-size: 18px; font-weight: 500; margin: 0 0 12px; }
.app-description__text-wrapper { position: relative; max-height: 110px; overflow: hidden; }
.app-description__text-wrapper.is-expanded { max-height: none; }
.app-description__text-wrapper.is-expanded .app-description__fade { display: none; }
.app-description__main-text { font-size: 14px; line-height: 1.6; color: var(--color-text-secondary); }
.app-description__main-text p { margin: 0 0 8px; }
.app-description__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--color-bg-primary));
}
.app-description__show-more {
  margin-top: 8px; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--color-primary); font-size: 14px; font-weight: 600; font-family: inherit;
}
.app-updated-tags { margin: -16px 0 28px; }
.app-updated-on { font-size: 13px; color: var(--color-text-muted); }

/* data safety ----------------------------------------------------- */
.app-data-safety { margin-bottom: 30px; }
.app-data-safety__header { display: flex; align-items: center; justify-content: space-between; }
.app-data-safety__title { font-size: 18px; font-weight: 500; margin: 0 0 12px; }
.app-data-safety__arrow { color: var(--color-text-muted); }
.app-data-safety__text { font-size: 13px; line-height: 1.6; color: var(--color-text-secondary); margin: 0 0 18px; }
.app-data-safety__items { display: flex; flex-direction: column; gap: 18px; }
.app-data-safety__item { display: flex; gap: 14px; align-items: flex-start; }
.app-data-safety__icon { color: var(--color-text-muted); flex: 0 0 auto; margin-top: 2px; }
.app-data-safety__item-description { font-size: 13px; color: var(--color-text-primary); }
.app-data-safety__item-details { font-size: 13px; color: var(--color-text-muted); margin-top: 2px; }

/* reviews --------------------------------------------------------- */
.app-reviews { margin-bottom: 30px; }
.reviews-title { font-size: 18px; font-weight: 500; margin: 0 0 10px; }
.reviews-subtitle { font-size: 12px; line-height: 1.5; color: var(--color-text-muted); margin: 0 0 18px; }
.rating-summary { display: flex; gap: 24px; align-items: center; margin-bottom: 26px; }
.rating-left { text-align: center; flex: 0 0 auto; }
.rating-left .rating-number { font-size: 44px; font-weight: 400; line-height: 1; }
.rating-stars { display: flex; gap: 2px; justify-content: center; margin: 6px 0 4px; color: var(--color-primary); }
.rating-count { font-size: 11px; color: var(--color-text-muted); }
.rating-chart { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.rating-row { display: flex; align-items: center; gap: 8px; }
.rating-row__label { font-size: 11px; color: var(--color-text-muted); width: 8px; }
.rating-row__track { flex: 1; height: 8px; border-radius: 999px; background: var(--color-bg-tertiary); overflow: hidden; }
.rating-row__fill { height: 100%; background: var(--color-primary); border-radius: 999px; }

.user-review { margin-bottom: 24px; }
.review-header { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 32px; height: 32px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; flex: 0 0 auto;
}
.reviewer-info { flex: 1; min-width: 0; }
.reviewer-name { font-size: 14px; color: var(--color-text-primary); }
.review-options { color: var(--color-text-muted); flex: 0 0 auto; }
.review-rating { display: flex; align-items: center; gap: 10px; margin: 10px 0 8px; }
.review-stars { display: flex; gap: 1px; color: var(--color-primary); }
.review-stars .rating-star { width: 12px; height: 12px; }
.review-date { font-size: 12px; color: var(--color-text-muted); }
.review-text { font-size: 14px; line-height: 1.55; color: var(--color-text-secondary); margin: 0 0 10px; }
.review-helpful__count { font-size: 12px; color: var(--color-text-muted); }
.review-helpful__ask { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--color-text-muted); }
.review-helpful__btn {
  border: 1px solid var(--color-border); background: none; cursor: pointer;
  border-radius: 999px; padding: 5px 16px; font-size: 13px; font-family: inherit;
  color: var(--color-primary); font-weight: 500;
}
.review-helpful__btn:disabled { opacity: .45; cursor: default; }
.see-all-reviews button {
  border: 1px solid var(--color-border); background: none; cursor: pointer;
  border-radius: 999px; padding: 9px 22px; font-size: 14px; font-weight: 600;
  color: var(--color-primary); font-family: inherit;
}

/* additional information ------------------------------------------ */
.app-comp__information { margin-bottom: 28px; }
.app-comp__section-header { font-size: 18px; font-weight: 500; display: block; margin-bottom: 14px; }
.info-items { display: flex; flex-direction: column; gap: 14px; }
.info-items__item { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }
.info-items__title { color: var(--color-text-primary); font-weight: 500; }
.info-items__item > div:last-child { color: var(--color-text-muted); text-align: right; }

/* support --------------------------------------------------------- */
.app-support { margin-bottom: 28px; }
.app-support__title { font-size: 18px; font-weight: 500; margin: 0 0 12px; }
.app-support__header { display: flex; align-items: center; justify-content: space-between; }
.app-support__items { display: flex; flex-direction: column; gap: 14px; }
.app-support__item-label { font-size: 13px; font-weight: 500; }
.app-support__item-value { font-size: 13px; color: var(--color-text-muted); }

/* footer ---------------------------------------------------------- */
.app-footer-links { border-top: 1px solid var(--color-border); padding-top: 22px; margin-bottom: 20px; }
.footer-links-group { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links-section { display: flex; flex-direction: column; gap: 8px; }
.footer-links-section__title { font-size: 13px; font-weight: 500; }
.footer-links-section a, .footer-links-bottom a {
  font-size: 12px; color: var(--color-text-muted); text-decoration: none;
}
.footer-links-bottom { display: flex; gap: 18px; margin-top: 22px; flex-wrap: wrap; }

/* bottom nav ------------------------------------------------------ */
.navbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  max-width: 720px; margin: 0 auto;
  display: flex; justify-content: space-around; align-items: center;
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
  padding: 8px 0 10px;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--color-text-muted); text-decoration: none; cursor: pointer; flex: 1;
}
.nav-item.active { color: var(--color-primary); }
.nav-item.active .nav-icon {
  background: color-mix(in srgb, var(--color-primary) 16%, transparent);
  border-radius: 999px; padding: 3px 18px;
}
.nav-icon { display: flex; padding: 3px 18px; }
.nav-label { font-size: 11px; font-weight: 500; }

/* share ----------------------------------------------------------- */
.share-fab {
  background: none; border: 0; cursor: pointer; padding: 0;
  color: var(--color-text-primary); font-size: 19px; line-height: 1;
}
.share-popup-overlay {
  position: fixed; inset: 0; z-index: 40; display: none;
  align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .45);
}
.share-popup-overlay.is-open { display: flex; }
.share-popup {
  background: var(--color-bg-primary); width: 100%; max-width: 720px;
  border-radius: 18px 18px 0 0; padding: 20px 18px 28px;
}
.share-popup__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.share-popup__app-name { font-size: 17px; font-weight: 500; }
.share-popup__subtitle { font-size: 13px; color: var(--color-text-muted); margin-top: 2px; }
.share-popup__close { background: none; border: 0; font-size: 17px; cursor: pointer; color: var(--color-text-muted); }
.share-popup__copy-btn {
  margin-top: 18px; width: 100%; border: 1px solid var(--color-border);
  background: none; border-radius: 999px; padding: 11px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--color-primary); font-family: inherit;
}

/* iOS instruction sheet ------------------------------------------- */
.ios-sheet {
  position: fixed; inset: 0; z-index: 50; display: none;
  align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .55);
}
.ios-sheet.is-open { display: flex; }
.ios-sheet__inner {
  position: relative; background: var(--color-bg-primary);
  width: 100%; max-width: 720px; border-radius: 18px 18px 0 0; padding: 24px 20px 34px;
}
.ios-sheet__title { font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.ios-sheet__step { display: flex; align-items: center; gap: 12px; font-size: 14px; margin-bottom: 14px; }
.ios-sheet__num {
  width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.ios-sheet__close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: 0; font-size: 17px; cursor: pointer; color: var(--color-text-muted);
}

/* preloader ------------------------------------------------------- */
.custom-preloader {
  position: fixed; inset: 0; z-index: 60; background: var(--color-bg-primary);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .35s ease;
}
.custom-preloader.is-done { opacity: 0; }
.google-play-logo-preloader { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 500; }
.play-icon-preloader svg { width: 34px; height: 34px; }

/* google translate chrome removal --------------------------------- */
.skiptranslate iframe, iframe.skiptranslate { display: none !important; }
body { top: 0 !important; }
