* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --play-green: #0f9d58;
  --play-green-hover: #0d8a4d;
  --play-blue: #4285f4;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-tertiary: #80868b;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #dadce0;
  --border-light: #e8eaed;
  --shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
  --shadow-hover: 0 2px 4px 0 rgba(60,64,67,0.2), 0 4px 12px 2px rgba(60,64,67,0.15);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  height: 100%;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.play-header {
  background: var(--bg-white);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.play-logo {
  font-size: 20px;
  font-weight: 700;
  color: #202124;
  letter-spacing: 0;
  flex-shrink: 0;
}

.play-logo-img {
  height: 40px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: #202124;
}

.nav-link.active {
  color: var(--play-green);
  border-bottom-color: var(--play-green);
  font-weight: 500;
}

.play-main {
  padding: 32px 0;
  background: var(--bg-white);
}

.app-header {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.app-info {
  flex: 1;
}

.app-title {
  font-size: 36px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.app-developer {
  color: var(--play-green);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  transition: var(--transition);
}

.app-developer:hover {
  color: var(--play-green-hover);
}

.app-additional-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.app-info-text {
  font-weight: 400;
}

.app-info-separator {
  color: var(--text-secondary);
  font-weight: 400;
}

.app-stats {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 20px;
  min-width: 120px;
}

.stat-item:first-child {
  padding-left: 0;
}

.stat-item:last-child {
  padding-right: 0;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: #e0e0e0;
  margin: 0 8px;
  flex-shrink: 0;
}

.stat-content {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.rating-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.stat-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.star {
  color: #000000;
  font-size: 18px;
  line-height: 1;
  margin-left: 2px;
}

.stat-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.stat-description span {
  display: inline-block;
  margin-right: 4px;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1px solid #5f6368;
  border-radius: 50%;
  font-size: 10px;
  color: #5f6368;
  font-style: normal;
  line-height: 1;
  margin-left: 2px;
}

.age-rating {
  align-items: center;
}

.age-badge-circle {
  width: 48px;
  height: 48px;
  border: 2px solid #ff9800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  background: transparent;
}

.age-number {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
}

.btn-download {
  background: var(--play-green);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
  letter-spacing: 0.01em;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  box-sizing: border-box;
}

.btn-download:hover {
  background: var(--play-green-hover);
  box-shadow: 0 2px 6px 0 rgba(60,64,67,0.3), 0 6px 12px 4px rgba(60,64,67,0.2);
  transform: translateY(-2px);
}

.btn-download:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
  min-height: 48px;
  box-sizing: border-box;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--bg-light);
  border-color: var(--border-light);
  box-shadow: 0 1px 2px 0 rgba(60,64,67,0.1);
}

.btn-icon {
  flex-shrink: 0;
}

.app-icon-wrapper {
  flex-shrink: 0;
}

.app-icon {
  width: 128px;
  height: 128px;
  background: transparent;
  border-radius: 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  overflow: hidden;
}

.app-icon:hover {
  transform: translateY(-2px);
}

.icon-age {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}

.icon-note {
  width: 60px;
  height: 60px;
  position: relative;
  z-index: 1;
}

.icon-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  position: relative;
  z-index: 1;
  box-shadow: none;
  transition: var(--transition);
}

.app-icon:hover .icon-logo {
  box-shadow: none;
}

.app-content {
  margin-top: 0;
}

.description-section {
  margin-bottom: 48px;
}

.description-section h2 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.feature-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 8px 0;
  line-height: 1.6;
}

.reassure {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 24px;
}

.screenshots-section {
  margin-top: 32px;
  margin-bottom: 32px;
}

.screenshots-section.bot-hidden-gallery {
  display: none;
}

.screenshots-section.user-verified {
  display: block;
}

#gallery-placeholder {
  margin-top: 32px;
  margin-bottom: 32px;
}

#gallery-placeholder:empty {
  display: none;
}

.screenshots-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 0 16px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.screenshots-grid::-webkit-scrollbar {
  height: 6px;
}

.screenshots-grid::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 3px;
}

.screenshots-grid::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.screenshots-grid::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.screenshot-item {
  flex-shrink: 0;
  width: 200px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
  transition: var(--transition);
  cursor: pointer;
  background: var(--bg-light);
}

.screenshot-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15), 0 8px 24px rgba(0,0,0,0.1);
}

.screenshot-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--bg-light);
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.screenshot-img.blur-protected,
.icon-logo.blur-protected {
  filter: blur(15px);
  -webkit-filter: blur(15px);
  user-select: none;
  -webkit-user-select: none;
  transition: filter 0.3s ease;
  cursor: pointer;
}

.icon-logo.blur-protected {
  pointer-events: none;
}

.screenshot-img.blur-protected {
  pointer-events: auto;
}

.screenshot-img.user-verified,
.icon-logo.user-verified {
  filter: blur(0);
  -webkit-filter: blur(0);
  pointer-events: auto;
}

.btn-download.bot-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.screenshot-item:hover .screenshot-img {
  transform: scale(1.05);
}

.play-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  margin-top: 48px;
}

.play-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.play-footer small {
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
}

.footer-links a:hover {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header-nav {
    height: 56px;
    gap: 16px;
  }

  .play-logo img {
    height: 32px;
  }

  .app-header {
    flex-direction: row;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    align-items: flex-start;
  }

  .app-icon-wrapper {
    align-self: flex-start;
    order: -1;
    flex-shrink: 0;
    margin-top: 0;
  }

  .app-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .app-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .app-title {
    font-size: 22px;
    margin-bottom: 4px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-weight: 400;
  }

  .app-developer {
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
  }

  .nav-links {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 0;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 0;
  }

  .app-stats {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }

  .stat-item {
    padding: 0 10px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .stat-item:first-child {
    padding-left: 0;
  }

  .stat-item:last-child {
    padding-right: 0;
  }

  .stat-divider {
    height: 36px;
    margin: 0 4px;
  }

  .rating-value,
  .stat-value {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  .stat-description {
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.01em;
  }

  .age-badge-circle {
    width: 36px;
    height: 36px;
    margin-bottom: 4px;
  }

  .age-number {
    font-size: 14px;
  }

  .cta-buttons {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
    align-items: stretch;
  }

  .btn-download {
    width: 100%;
    flex: none;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.01em;
    min-height: 48px;
    border-radius: 20px;
    box-sizing: border-box;
    display: flex;
  }

  .btn-secondary {
    width: 100%;
    flex: none;
    justify-content: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    min-height: 48px;
    box-sizing: border-box;
    display: flex;
    white-space: nowrap;
  }

  .screenshots-section {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .screenshot-item {
    width: 140px;
    border-radius: 10px;
  }
}

