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

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #f8fafc;
  line-height: 1.4;
  padding-top: 10px;
}

.back-to-home {
  padding: 10px 24px 0;
  margin-bottom: 10px;
}

.home-button {
  display: inline-block;
  padding: 8px 16px;
  background-color: #334155;
  color: #f8fafc;
  text-decoration: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.home-button:hover {
  background-color: #475569;
  text-decoration: none;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(30,41,59,0.92);
  min-height: 100vh;
  box-shadow: 0 4px 32px rgba(14,165,233,0.10);
  border-radius: 24px;
}

/* Header */
.app-header {
  padding: 32px 24px 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  border-bottom: 1px solid #334155;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

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

.app-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.app-developer {
  color: #0ea5e9;
  font-size: 17px;
  margin-bottom: 8px;
  text-decoration: none;
  font-weight: 500;
}

.app-category {
  color: #94a3b8;
  font-size: 15px;
  margin-bottom: 12px;
}

.app-rating {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.rating-item {
  text-align: center;
}

.rating-number {
  font-size: 17px;
  font-weight: 600;
  color: #38bdf8;
}

.rating-stars {
  color: #fbbf24;
  font-size: 14px;
  margin: 2px 0;
}

.rating-label {
  font-size: 12px;
  color: #94a3b8;
}

.age-rating {
  background: #38bdf8;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(14,165,233,0.10);
}

/* Action Buttons */
.app-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn-install {
  background: linear-gradient(90deg, #38bdf8 0%, #0ea5e9 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(14,165,233,0.12);
  transition: background 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-install:hover {
  background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
  text-decoration: none;
}

.btn-share, .btn-wishlist {
  background: #1e293b;
  border: none;
  border-radius: 20px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 20px;
  color: #38bdf8;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(14,165,233,0.10);
}

.btn-share:hover, .btn-wishlist:hover {
  background: #0ea5e9;
  color: #fff;
}

.install-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: #38bdf8;
}

/* Screenshots */
.screenshots-section {
  padding: 24px;
  border-bottom: 1px solid #334155;
}

.screenshots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.screenshots::-webkit-scrollbar {
  height: 8px;
  background: #1e293b;
  border-radius: 8px;
}
.screenshots::-webkit-scrollbar-thumb {
  background: #38bdf8;
  border-radius: 8px;
  transition: background 0.2s;
}
.screenshots::-webkit-scrollbar-thumb:hover {
  background: #0ea5e9;
}

.screenshot {
  flex-shrink: 0;
  width: 230px;
  /* height убираем, чтобы карточка подстраивалась под фото */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(14,165,233,0.10);
  background: #232526;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.screenshot img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 16px;
  display: block;
  background: #232526;
}

/* Features */
.features-section {
  padding: 24px;
  border-bottom: 1px solid #334155;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: #fff;
}

.feature-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #38bdf8;
}

.feature-content p {
  font-size: 15px;
  color: #94a3b8;
}

/* Description */
.description-section {
  padding: 24px;
  border-bottom: 1px solid #334155;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #38bdf8;
}

.description-text {
  font-size: 17px;
  line-height: 1.5;
  color: #f8fafc;
  margin-bottom: 16px;
}

.description-list {
  list-style: none;
  margin-top: 16px;
}

.description-list li {
  padding: 8px 0;
  font-size: 17px;
  position: relative;
  padding-left: 20px;
  color: #f8fafc;
}

.description-list li:before {
  content: "•";
  color: #38bdf8;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Developer Info */
.developer-section {
  padding: 24px;
  border-bottom: 1px solid #334155;
}

.developer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.developer-name {
  font-size: 17px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.developer-arrow {
  color: #38bdf8;
  font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    margin: 0;
  }

  .app-header {
    padding: 16px;
  }

  .app-icon {
    width: 100px;
    height: 100px;
    border-radius: 18px;
  }

  .app-title {
    font-size: 24px;
  }

  .app-rating {
    flex-wrap: wrap;
    gap: 12px;
  }

  .screenshots-section {
    padding: 12px;
  }

  .screenshot {
    width: 180px;
    height: 320px;
  }

  .features-section,
  .description-section,
  .developer-section {
    padding: 12px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .app-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .app-icon {
    width: 80px;
    height: 80px;
  }

  .app-title {
    font-size: 20px;
  }

  .screenshot {
    width: 140px;
    height: 220px;
  }
}
