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

html, body {
  font-family: "Roboto", Arial, sans-serif;
  background: #fff;
  color: #202124;
  min-height: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  min-height: 100vh;
  background: #fff;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-link img {
  width: 2rem;
  height: 2rem;
}

.logo-text {
  color: #1f2937;
  font-weight: 500;
  font-size: 1rem;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.nav a:hover {
  color: #111827;
}

.nav a.active {
  font-weight: 500;
  color: #111827;
  background: #f3f4f6;
  border-radius: 0.25rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  padding: 0.5rem;
  color: #4b5563;
  border-radius: 9999px;
}

.icon-btn:hover {
  background: #f3f4f6;
}

.icon-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: #a855f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
}

.hero {
  background: #fff;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.hero-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.app-icon-wrap {
  flex-shrink: 0;
}

.app-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.developer {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rating-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars {
  display: flex;
}

.star {
  width: 1.25rem;
  height: 1.25rem;
  color: #facc15;
}

.star.gray {
  color: #d1d5db;
}

.star.sm {
  width: 1rem;
  height: 1rem;
}

.rating-num {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
}

.meta-text {
  font-size: 0.875rem;
  color: #4b5563;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  background: #f3f4f6;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #374151;
  font-weight: 500;
}

.install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 120px;
  padding: 0.75rem 1.5rem;
  background: #0f9d58;
  color: #fff;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: background 0.15s;
}

.install-btn:hover {
  background: #0d8a4d;
}

.region-note {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #d97706;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.action-btn:hover {
  color: #111827;
}

.action-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.compat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.compat svg {
  width: 1rem;
  height: 1rem;
  color: #16a34a;
  flex-shrink: 0;
}

.screenshots {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.shots-wrap {
  position: relative;
}

.shots-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.shots-track::-webkit-scrollbar {
  display: none;
}

.shot {
  flex-shrink: 0;
  width: 240px;
  height: 420px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shot-next {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  margin-right: -0.5rem;
  z-index: 10;
}

.shot-next:hover {
  background: #f9fafb;
}

.shot-next svg {
  width: 1.25rem;
  height: 1.25rem;
}

.accordion {
  border-bottom: 1px solid #e5e7eb;
}

.acc-btn {
  width: 100%;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: background 0.15s;
}

.acc-btn:hover {
  background: #f9fafb;
}

.acc-btn h2 {
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
}

.acc-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #6b7280;
  transition: transform 0.2s;
}

.acc-btn.open svg {
  transform: rotate(180deg);
}

.acc-body {
  display: none;
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.acc-body.open {
  display: block;
}

.acc-body p.lead {
  line-height: 1.625;
}

.updated {
  margin-top: 0.75rem;
  color: #6b7280;
}

.tag {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: #f3f4f6;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #4b5563;
}

.safety-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.safety-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.safety-list svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.link-green {
  display: inline-block;
  margin-top: 1rem;
  color: #0f9d58;
  font-weight: 500;
}

.link-green:hover {
  text-decoration: underline;
}

.muted {
  color: #6b7280;
}

.reviews-summary {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rating-block {
  display: flex;
  gap: 1.5rem;
}

.rating-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.big-score {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
}

.rating-left .stars {
  margin-top: 0.25rem;
}

.review-count {
  font-size: 0.875rem;
  color: #4b5563;
  margin-top: 0.25rem;
}

.bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bar-label,
.bar-count {
  font-size: 0.875rem;
  color: #4b5563;
}

.bar-label {
  width: 2rem;
}

.bar-count {
  width: 3rem;
}

.bar-track {
  flex: 1;
  height: 0.5rem;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #0f9d58;
  border-radius: 9999px;
}

.device-tabs {
  display: flex;
  gap: 0.5rem;
}

.tab {
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.tab:hover {
  background: #f3f4f6;
}

.tab.active {
  background: #f3f4f6;
  font-weight: 500;
  color: #111827;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.review-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
}

.review-name {
  font-weight: 500;
  color: #111827;
}

.review-date {
  color: #6b7280;
  font-size: 0.875rem;
}

.review-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.review-text {
  color: #374151;
  margin-bottom: 0.5rem;
}

.helpful {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.helpful button {
  color: #4b5563;
  font-weight: 500;
}

.helpful button:hover {
  color: #111827;
}

.see-all {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.see-all:hover {
  background: #f9fafb;
}

.similar {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.similar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.similar-head h2 {
  font-size: 1.125rem;
  font-weight: 500;
  color: #111827;
}

.see-all-link {
  font-size: 0.875rem;
  color: #0f9d58;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.see-all-link:hover {
  text-decoration: underline;
}

.see-all-link svg {
  width: 1rem;
  height: 1rem;
}

.apps-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.apps-track::-webkit-scrollbar {
  display: none;
}

.app-card {
  flex-shrink: 0;
  width: 140px;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.app-card:hover {
  background: #f9fafb;
  border-color: #e5e7eb;
}

.app-card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.app-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-card-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-card-dev {
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.app-card-rating svg {
  width: 1rem;
  height: 1rem;
  color: #facc15;
}

.app-card-rating span {
  font-size: 0.875rem;
  color: #4b5563;
}

.admin-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.admin-link:hover {
  color: #111827;
}

.footer {
  background: #fff;
  padding: 2rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer h3 {
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.75rem;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.footer ul a:hover {
  color: #111827;
}

.footer-bottom {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.legal a:hover {
  color: #111827;
}

.copy {
  font-size: 0.875rem;
  color: #6b7280;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #323232;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .hero-row {
    flex-direction: row;
  }

  .app-icon {
    width: 7rem;
    height: 7rem;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .install-btn {
    width: auto;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
