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

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

a {
    text-decoration: none;
    color: #018058;
}

header {
    border-bottom: 1px solid #dadce0;
    padding: 0 16px;
    width: 100%;
    overflow-x: hidden;
}

.header-container {
    display: flex;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 0;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: 32px;
}

.google-play-logo {
    width: 40px;
    height: 40px;
    margin-right: 8px;
}

.google-play-text {
    font-size: 18px;
    font-weight: 500;
    color: #5f6368;
}

.main-nav {
    flex: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
}

.main-nav ul::-webkit-scrollbar {
    display: none; 
}

.main-nav li {
    white-space: nowrap;
}

.main-nav a {
    font-size: 14px;
    color: #5f6368;
    padding: 16px 0;
    display: inline-block;
}

.main-nav a.active {
    color: #018058;
    border-bottom: 3px solid #018058;
}

main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px;
}

.app-details-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.app-header {
    display: flex;
    flex-direction: row; 
    padding-bottom: 16px;
    align-items: flex-start;
    padding-right: 0; 
}

.app-icon {
    margin-right: 16px;
    margin-left: 0;
    flex-shrink: 0;
    position: static; 
    order: 1; 
}

.app-icon img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.app-info {
    flex: 1;
    padding-right: 0;
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

h1 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 2px;
    color: #202124;
    text-align: center;
}

.developer-link {
    color: #018058;
    font-size: 14px;
    margin-bottom: 16px;
    display: inline-block;
    text-align: center;
}

.app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 16px;
    justify-content: center;
    width: 100%;
}

.app-meta > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rating-value, .downloads span:first-child {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.reviews-count, .downloads span:last-child, .classification span:last-child {
    font-size: 12px;
    color: #5f6368;
}

.teen-rating {
    background-color: #018058;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin: 0 auto;
}

.install-btn {
    background-color: #018058;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    max-width: none;
    text-align: center;
}

.secondary-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    width: 100%;
}

.share-btn, .wishlist-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: #5f6368;
    font-size: 14px;
    cursor: pointer;
    gap: 4px;
}

.material-icons {
    font-size: 18px;
}

.app-screenshots {
    position: relative;
    margin: 16px 0;
    width: 100%;
}

.screenshot-container {
    width: 100%;
    position: relative;
    margin-bottom: 16px;
}

.screenshot-slider {
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    border-radius: 12px;
    background-color: #f8f9fa;
}

.screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    object-fit: contain;
    border-radius: 12px;
}

.screenshot.active {
    opacity: 1;
    z-index: 2;
}

.thumbnail-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
    max-width: 100%;
}

.thumbnail-row::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    border: 2px solid transparent;
    opacity: 0.7;
}

.thumbnail:hover {
    transform: scale(1.05);
    opacity: 1;
}

.thumbnail.active {
    border-color: #018058;
    opacity: 1;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 12px;
}

.slider-btn {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: background-color 0.2s;
}

.slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.95);
}

.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
}

.app-description, .data-safety, .ratings-reviews, .app-support {
    border-top: 1px solid #dadce0;
    padding-top: 24px;
    margin-top: 8px;
}

h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #202124;
}

.app-description p {
    font-size: 14px;
    margin-bottom: 12px;
    color: #5f6368;
}

.update-info {
    margin-top: 16px;
}

h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #5f6368;
}

.app-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-chip {
    font-size: 13px;
    color: #5f6368;
    background-color: #f1f3f4;
    padding: 4px 8px;
    border-radius: 4px;
}

.data-safety p {
    font-size: 14px;
    margin-bottom: 16px;
    color: #5f6368;
}

.safety-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-start;
}

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

.safety-desc {
    font-size: 14px;
    color: #5f6368;
}

.see-details-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
}

.ratings-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

.verified-text {
    font-size: 12px;
    color: #5f6368;
}

.device-tabs {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 24px;
    background-color: #f8f9fa;
    padding: 8px;
    border-radius: 20px;
}

.device-tab {
    background: none;
    border: none;
    font-size: 14px;
    color: #5f6368;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
}

.device-tab.active {
    background-color: #ffffff;
    color: #202124;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.rating-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    background-color: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
}

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

.rating-large {
    font-size: 42px;
    font-weight: 400;
    color: #202124;
}

.rating-stars {
    color: #018058;
    font-size: 12px;
    margin-bottom: 4px;
}

.reviews-count-small {
    font-size: 12px;
    color: #5f6368;
}

.rating-bars {
    width: 100%;
    padding-left: 16px;
}

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

.star-count {
    font-size: 14px;
    color: #5f6368;
    width: 16px;
}

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

.bar-fill {
    height: 100%;
    background-color: #018058;
}

.review {
    display: flex;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid #dadce0;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-top: 4px;
}

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

.review-content {
    flex: 1;
}

.review-stars {
    color: #018058;
    font-size: 12px;
    margin-bottom: 4px;
}

.review-date {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 8px;
    display: inline-block;
}

.review-text {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #202124;
}

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

.review-helpful-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #5f6368;
}

.helpful-btn {
    background-color: #ffffff;
    border: 1px solid #dadce0;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
}

.see-all-reviews {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
}

.app-support {
    font-size: 14px;
}

.app-support a {
    color: #018058;
}

footer {
    background-color: #f8f9fa;
    padding: 32px 16px;
    margin-top: 24px;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.footer-section h3 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 500;
    color: #202124;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    font-size: 14px;
    color: #5f6368;
    text-decoration: none;
}

.footer-section a:hover {
    color: #018058;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #dadce0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a, .footer-links span {
    font-size: 12px;
    color: #5f6368;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #5f6368;
}

.flag {
    font-size: 16px;
}

@media screen and (max-width: 767px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .logo-container {
        margin-right: 0;
        margin-bottom: 8px;
        width: 100%;
        justify-content: center;
    }
    
    .main-nav {
        width: 100%;
    }
    
    .main-nav ul {
        justify-content: center;
    }
}

@media screen and (min-width: 768px) {
    .header-container {
        padding: 0;
    }
    
    .app-header {
        padding: 24px 0;
    }
    
    .app-info {
        align-items: flex-start;
        text-align: left;
        max-width: 70%;
        padding-right: 0;
    }
    
    h1 {
        font-size: 42px;
        margin-bottom: 8px;
        text-align: left;
    }
    
    .developer-link {
        text-align: left;
    }
    
    .app-meta {
        justify-content: flex-start;
    }
    
    .action-buttons {
        flex-direction: row;
        align-items: center;
        max-width: 400px;
        margin: 0;
    }
    
    .install-btn {
        width: auto;
        padding: 10px 24px;
    }
    
    .secondary-buttons {
        justify-content: flex-start;
    }
    
    .slider-controls {
        display: flex;
    }
    
    .screenshot-slider {
        height: 400px;
    }
    
    .ratings-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .rating-summary {
        display: grid;
        grid-template-columns: 1fr 3fr;
        align-items: center;
    }
    
    .footer-content {
        padding: 0;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-links {
        margin-bottom: 0;
    }
}

@media screen and (min-width: 960px) {
    .app-header {
        position: relative;
        padding-right: 220px;
    }
    
    .app-icon {
        position: absolute;
        right: 16px;
        top: 16px;
        margin-left: 0;
        margin-right: 0;
        order: initial;
    }
    
    .app-icon img {
        width: auto;
        max-width: none;
        height: auto;
        max-height: 220px;
        border-radius: 20px;
        border: none;
    }
    
    .app-info {
        order: initial;
    }
    
    .screenshot-slider {
        height: 500px;
    }
    
    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1200px) {
    .footer-columns {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .screenshot-slider {
        height: 350px;
    }
}