* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Google Sans', 'Roboto', sans-serif;
}

body {
    background-color: #fff;
    color: #202124;
    line-height: 1.5;
}

.app-container {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

.app-container.initialized {
    display: block;
}

/* Индикатор загрузки */
.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #fff;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 16px 0;
}

.app-info {
    display: flex;
    gap: 24px;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    object-fit: cover;
}

.app-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-title {
    font-size: 24px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 4px;
}

.app-developer {
    color: #01875F;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.app-category {
    color: #5f6368;
    font-size: 12px;
    margin-bottom: 16px;
}

.app-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.rating, .downloads, .age-rating, .app-size {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
}

.stat-label {
    font-size: 12px;
    color: #5f6368;
}

.stat-divider {
    width: 1px;
    height: 24px;
    background-color: #dadce0;
}

.install-section {
    min-width: 150px;
}



.install-button {
    background: #01875F;
    color: white;
    border: none;
    border-radius: 24px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.25px;
    box-shadow: 0 4px 12px rgba(1, 135, 95, 0.2);
}

.install-button:hover {
    background: #016d4c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(1, 135, 95, 0.3);
}

.install-button:disabled {
    background: #dadce0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.app-content {
    padding: 24px 0;
}

.screenshots-section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 20px;
    color: #616161;
}

.section-arrow {
    background: none;
    border: none;
    font-size: 24px;
    color: #5f6368;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.section-arrow:hover {
    background-color: #f1f3f4;
}

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

.screenshot {
    height: 400px;
    border-radius: 8px;
    object-fit: cover;
}

.reviews-section {
    margin-bottom: 32px;
}

.reviews-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #616161;
}

.rating-summary {
    display: flex;
    gap: 48px;
    margin-bottom: 24px;
    padding: 20px 0;
    border-bottom: 1px solid #dadce0;
}

.overall-rating {
    text-align: center;
    min-width: 120px;
}

.rating-number {
    font-size: 48px;
    font-weight: 400;
    color: #202124;
    line-height: 1;
}

.rating-stars {
    font-size: 20px;
    color: #01875F;
    margin: 8px 0;
    letter-spacing: 2px;
}

.total-reviews {
    font-size: 14px;
    color: #5f6368;
}

.rating-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.star-label {
    font-size: 14px;
    color: #5f6368;
    min-width: 20px;
}

.bar-container {
    flex: 1;
    height: 8px;
    background-color: #f1f3f4;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background-color: #01875F;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bar-percentage {
    font-size: 12px;
    color: #5f6368;
    min-width: 30px;
    text-align: right;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-item {
    padding: 0;
    border: none;
    background-color: transparent;
}

.review-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: flex-start;
    position: relative;
}

.review-menu {
    background: none;
    border: none;
    font-size: 18px;
    color: #5f6368;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background-color 0.2s;
    position: absolute;
    right: 0;
    top: 0;
}

.review-menu:hover {
    background-color: #f1f3f4;
}

.reviewer-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #01875F;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

.reviewer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
}

.review-date {
    font-size: 12px;
    color: #5f6368;
}

.review-rating {
    font-size: 14px;
    color: #01875F;
    letter-spacing: 1px;
}

.review-text {
    font-size: 14px;
    line-height: 1.5;
    color: #202124;
    margin-left: 52px;
}

.review-helpful {
    margin-left: 52px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f3f4;
}

.helpful-count {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 8px;
}

.helpful-question {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.helpful-question span {
    font-size: 12px;
    color: #5f6368;
}

.helpful-buttons {
    display: flex;
    gap: 8px;
}

.helpful-btn {
    background: none;
    border: 1px solid #dadce0;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 12px;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.2s;
}

.helpful-btn:hover {
    background-color: #f8f9fa;
    border-color: #5f6368;
}

.yes-btn:hover {
    color: #01875F;
    border-color: #01875F;
}

.no-btn:hover {
    color: #d93025;
    border-color: #d93025;
}

.all-reviews-link {
    text-align: left;
    margin-top: 24px;
}

.all-reviews {
    color: #01875F;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.all-reviews:hover {
    color: #016d4c;
    text-decoration: underline;
}

.developer-section {
    margin-bottom: 32px;
}

.developer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.developer-link {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    color: #01875F;
    padding: 12px 0;
    transition: color 0.2s;
}

.developer-link:hover {
    color: #016d4c;
}

.link-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    filter: grayscale(100%) brightness(0.7);
    flex-shrink: 0;
}

.link-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.link-title {
    font-size: 14px;
    font-weight: 500;
    color: #01875F;
}

.link-details {
    font-size: 13px;
    color: #5f6368;
    line-height: 1.4;
}

.description-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #616161;
}

.description-section {
    margin-bottom: 32px;
}

.description {
    color: #5f6368;
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        gap: 24px;
    }

    .install-section {
        width: 100%;
    }

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

    .app-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    .screenshot {
        height: 300px;
    }
    
    .rating-summary {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        padding: 16px 0;
    }
    
    .overall-rating {
        min-width: auto;
    }
    
    .rating-bars {
        max-width: 100%;
        margin: 0;
        gap: 12px;
        padding: 0 8px;
    }
    
    .rating-bar {
        gap: 16px;
        align-items: center;
    }
    
    .star-label {
        min-width: 24px;
        font-size: 16px;
        text-align: center;
    }
    
    .bar-container {
        height: 10px;
    }
    
    .bar-percentage {
        min-width: 35px;
        font-size: 13px;
        text-align: right;
    }
    
    .review-item {
        padding: 0;
    }
    
    .review-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .review-text {
        margin-left: 0;
    }
    
    .review-helpful {
        margin-left: 0;
    }
    
    .helpful-question {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .helpful-buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 12px;
    }

    .app-header {
        padding: 12px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .app-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .app-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .app-details {
        align-items: center;
        width: 100%;
    }

    .app-title {
        font-size: 20px;
        text-align: center;
        word-break: break-word;
    }

    .app-developer {
        margin-bottom: 8px;
    }
    
    .app-category {
        margin-bottom: 12px;
    }

    .app-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
        width: 100%;
    }

    .stat-item {
        align-items: center;
        min-width: 80px;
    }

    .stat-divider {
        display: none;
    }

    .install-section {
        width: 100%;
        margin-top: 16px;
    }

    .description-section {
        text-align: center;
    }

    .section-header h2 {
        font-size: 18px;
    }
    
    .description-section h2 {
        font-size: 18px;
    }
    
    .reviews-section h2 {
        font-size: 18px;
    }
    
    .rating-number {
        font-size: 36px;
    }
    
    .rating-stars {
        font-size: 18px;
    }
    
    .rating-summary {
        padding: 12px 0;
        gap: 20px;
    }
    
    .rating-bars {
        gap: 10px;
    }
    
    .rating-bar {
        gap: 12px;
    }
    
    .star-label {
        min-width: 20px;
        font-size: 14px;
    }
    
    .bar-container {
        height: 6px;
    }
    
    .bar-percentage {
        min-width: 30px;
        font-size: 12px;
    }
    
    .review-item {
        padding: 0;
    }
    
    .review-text {
        font-size: 13px;
        margin-left: 0;
    }
    
    .avatar-placeholder {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .helpful-btn {
        padding: 3px 10px;
        font-size: 11px;
    }
    
    .all-reviews {
        font-size: 13px;
    }
    
    .developer-section {
        margin-bottom: 24px;
    }
    
    .developer-links {
        gap: 12px;
    }
    
    .developer-link {
        padding: 10px 0;
    }
    
    .link-icon {
        font-size: 18px;
        width: 20px;
    }
    
    .link-title {
        font-size: 13px;
    }
    
    .link-details {
        font-size: 12px;
    }
}

