* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: #fff;
    color: #202124;
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    padding: 0 16px;
}

/* Header Styles */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e8eaed;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.back-button {
    display: none !important;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 64px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.play-logo {
    display: flex;
    align-items: center;
}

.play-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.play-text {
    font-size: 20px;
    font-weight: 400;
    color: #5f6368;
    letter-spacing: 0;
}

.nav-tabs {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: flex-start;
    margin-left: 32px;
}

.nav-tab {
    padding: 8px 16px;
    text-decoration: none;
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color 0.2s;
}

.nav-tab:hover {
    color: #202124;
}

.nav-tab.active {
    color: #34a853;
    border-bottom-color: #34a853;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    transition: background-color 0.2s;
    width: 40px;
    height: 40px;
}

.icon-button:hover {
    background-color: #f1f3f4;
}

.icon-button .material-icons {
    font-size: 24px;
}

.profile-button {
    padding: 0;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    padding: 24px 8px;
    overflow-x: hidden;
}

.left-column {
    min-width: 0;
}

/* App Details Section */
.app-details {
    background-color: #fff;
    margin-bottom: 24px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.app-icon-left {
    flex-shrink: 0;
    order: 1;
}

.app-icon-right {
    flex-shrink: 0;
    order: 2;
}

.app-info-right {
    flex: 1;
    min-width: 0;
    order: 1;
}

.app-info-left {
    flex: 1;
    min-width: 0;
    order: 1;
}

.app-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #202124;
    line-height: 1.2;
}

.app-developer {
    font-size: 16px;
    color: #34a853;
    margin-bottom: 12px;
    font-weight: 400;
}

.app-features {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.feature-badge {
    font-size: 14px;
    color: #5f6368;
}

.feature-dot {
    color: #5f6368;
    font-size: 14px;
}

.app-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid #e8eaed;
    border-bottom: 1px solid #e8eaed;
}

.stat-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.stat-value {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 20px;
    font-weight: 400;
    color: #202124;
    line-height: 1.2;
}

.stat-value .star {
    font-size: 20px;
    color: #fbbc04;
}

.stat-label {
    font-size: 12px;
    color: #5f6368;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
}

.stat-label .info-icon {
    font-size: 14px;
    color: #5f6368;
    cursor: pointer;
    vertical-align: middle;
}

.stats-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stats-divider {
    color: #dadce0;
    font-size: 14px;
}

.info-icon {
    font-size: 16px;
    color: #5f6368;
    cursor: pointer;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rating-number {
    font-size: 20px;
    font-weight: 400;
    color: #202124;
}

.stars-inline {
    display: flex;
    gap: 2px;
}

.reviews-count {
    font-size: 14px;
    color: #5f6368;
}

.downloads-count {
    font-size: 14px;
    color: #5f6368;
}

.content-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-badge {
    background-color: #202124;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.rating-text {
    font-size: 14px;
    color: #5f6368;
}

.app-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.install-button {
    background-color: #1a73e8;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    min-height: 44px;
    min-width: 120px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.install-button:hover:not(.downloading):not(:disabled) {
    background-color: #1557b0;
    box-shadow: none;
    transform: none;
}

@media (max-width: 768px) {
    .install-button {
        background-color: #1a73e8;
        border-radius: 20px;
        width: 100%;
        box-shadow: none;
    }
    
    .install-button:hover:not(.downloading):not(:disabled) {
        background-color: #1557b0;
    }
}

.install-button:active:not(.downloading):not(:disabled) {
    transform: scale(0.98);
}

.install-button:focus {
    outline: 2px solid #34a853;
    outline-offset: 2px;
}

.install-button:disabled {
    cursor: not-allowed;
}

.install-button.installed {
    background-color: #5f6368;
}

.install-button.installed:hover {
    background-color: #4a4d52;
}

.install-button.downloading {
    background-color: #34a853;
    padding: 10px;
}

/* Circular Progress Indicator */
.circular-progress-container {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular-progress {
    width: 44px;
    height: 44px;
    transform: rotate(-90deg);
}

.progress-track {
    stroke: rgba(255, 255, 255, 0.3);
}

.progress-ring {
    stroke: #fff;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.2s linear;
}

.progress-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.share-button {
    background-color: #f1f3f4;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #5f6368;
    transition: all 0.2s ease;
    min-height: 48px;
    min-width: 120px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.share-button:hover {
    background-color: #e8eaed;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.share-button:active {
    transform: translateY(0);
}

.share-button .material-icons {
    font-size: 20px;
}

.share-text {
    font-size: 14px;
    font-weight: 500;
}

.device-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #5f6368;
}

.device-info .material-icons {
    font-size: 18px;
}

.app-icon-right {
    flex-shrink: 0;
}

.app-icon-large {
    width: 192px;
    height: 192px;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    object-fit: cover;
}

/* Screenshots Section */
.screenshots-section {
    background-color: #fff;
    margin-bottom: 24px;
    overflow: hidden;
}

.screenshots-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 16px;
    scrollbar-width: thin;
    scrollbar-color: #dadce0 transparent;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .screenshots-container {
        padding: 8px 0;
    }
}

.screenshots-container:active {
    cursor: grabbing;
}

.screenshots-container::-webkit-scrollbar {
    height: 8px;
}

.screenshots-container::-webkit-scrollbar-track {
    background: transparent;
}

.screenshots-container::-webkit-scrollbar-thumb {
    background-color: #dadce0;
    border-radius: 4px;
}

.screenshot-item {
    flex-shrink: 0;
    width: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

@media (max-width: 768px) {
    .screenshot-item {
        width: 240px;
        border-radius: 16px;
    }
}

.screenshot-item:hover {
    transform: scale(1.02);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section Styles */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 400;
    color: #202124;
    margin: 0;
}

.expand-icon {
    color: #5f6368;
    font-size: 24px;
    cursor: pointer;
}

.section-description {
    color: #5f6368;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Data Safety Section */
.data-safety-section {
    background-color: #fff;
    padding: 24px 0;
    margin-bottom: 24px;
    border-top: 1px solid #e8eaed;
}

.safety-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.safety-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #5f6368;
}

.safety-icon {
    color: #5f6368;
    font-size: 20px;
    flex-shrink: 0;
}

.see-details-link {
    color: #34a853;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.see-details-link:hover {
    text-decoration: underline;
}

/* Rate App Section */
.rate-app-section {
    background-color: #fff;
    padding: 24px 0;
    margin-bottom: 24px;
    border-top: 1px solid #e8eaed;
}

.section-subtitle {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 16px;
}

.device-filter {
    margin-bottom: 16px;
}

.device-filter-btn {
    background-color: #f1f3f4;
    border: 1px solid #dadce0;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.2s;
}

.device-filter-btn:hover {
    background-color: #e8eaed;
}

.device-filter-btn.active {
    background-color: #34a853;
    color: #fff;
    border-color: #34a853;
}

.device-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.rating-stars-input {
    display: flex;
    gap: 4px;
    touch-action: manipulation;
}

.star-input-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}

.star-input-btn:active {
    transform: scale(0.9);
}

.star-input {
    color: #dadce0;
    font-size: 32px;
    cursor: pointer;
    transition: color 0.2s;
    pointer-events: none;
    user-select: none;
}

.star-input-btn:hover .star-input,
.star-input-btn:focus .star-input {
    color: #fbbc04;
}

.star-input-btn:focus {
    outline: 2px solid #34a853;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reviews Section */
.reviews-section {
    background-color: #fff;
    padding: 24px 0;
    margin-bottom: 24px;
    border-top: 1px solid #e8eaed;
}

.rating-summary {
    display: flex;
    gap: 40px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.overall-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.big-rating {
    font-size: 48px;
    font-weight: 400;
    color: #202124;
    line-height: 1;
}

.stars-large {
    display: flex;
    gap: 2px;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-bar span {
    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: #34a853;
    border-radius: 4px;
    transition: width 0.3s;
}

.write-review-btn {
    background-color: #34a853;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background-color 0.2s;
}

.write-review-btn:hover {
    background-color: #2d8f47;
}

.verified-text {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 24px;
}

.verified-icon {
    font-size: 16px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 16px;
}

.review-item {
    padding-bottom: 24px;
    border-bottom: 1px solid #e8eaed;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.reviewer-info {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    flex-shrink: 0;
}

.reviewer-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.reviewer-name {
    font-weight: 500;
    color: #202124;
    font-size: 14px;
    margin-bottom: 2px;
}

.review-date {
    font-size: 12px;
    color: #5f6368;
}

.more-options-btn {
    background: none;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.more-options-btn:hover {
    background-color: #f1f3f4;
}

.more-options-btn .material-icons {
    font-size: 20px;
}

.review-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.star {
    color: #dadce0;
    font-size: 20px;
}

.star.filled {
    color: #fbbc04;
}

.star.small {
    font-size: 16px;
}

.review-text {
    color: #5f6368;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.review-helpful {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.helpful-count {
    font-size: 12px;
    color: #5f6368;
}

.helpful-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.helpful-label {
    font-size: 14px;
    color: #5f6368;
}

.helpful-btn {
    background-color: #fff;
    border: 1px solid #dadce0;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.2s;
}

.helpful-btn:hover {
    background-color: #f8f9fa;
    border-color: #5f6368;
}

.see-all-reviews-link {
    color: #34a853;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin-top: 8px;
}

.see-all-reviews-link:hover {
    text-decoration: underline;
}

/* About Section */
.about-section {
    background-color: #fff;
    padding: 24px 0;
    margin-bottom: 24px;
    border-top: 1px solid #e8eaed;
}

.about-content {
    color: #5f6368;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.about-content p {
    margin-bottom: 12px;
}

.read-more-btn {
    background: none;
    border: none;
    color: #34a853;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-align: left;
    margin-top: 8px;
}

.read-more-btn:hover {
    text-decoration: underline;
}

.update-info {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.update-label {
    color: #5f6368;
}

.update-date {
    color: #202124;
    font-weight: 500;
}

.app-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.category-badge {
    background-color: #f1f3f4;
    color: #5f6368;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.flag-inappropriate {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flag-inappropriate .material-icons {
    font-size: 18px;
    color: #5f6368;
}

.flag-link {
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
}

.flag-link:hover {
    text-decoration: underline;
}

/* Right Column - Similar Apps */
.right-column {
    background-color: #fff;
    padding: 24px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 16px;
}

.similar-apps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.similar-app-item {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.similar-app-item:hover {
    background-color: #f8f9fa;
}

.similar-app-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    flex-shrink: 0;
}

.similar-app-info {
    flex: 1;
    min-width: 0;
}

.similar-app-title {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.similar-app-developer {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.similar-app-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #5f6368;
}

/* Footer */
.footer {
    background-color: #fff;
    border-top: 1px solid #e8eaed;
    margin-top: 40px;
    padding: 32px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 24px;
}

.footer-column-title {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #1a73e8;
}

.footer-bottom {
    border-top: 1px solid #e8eaed;
    padding-top: 16px;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 8px;
}

.footer-bottom-links a {
    color: #5f6368;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #1a73e8;
}

.footer-copyright {
    color: #5f6368;
    font-size: 12px;
}

/* Loading States */
.app-icon-large,
.screenshot-item img,
.similar-app-icon {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.app-icon-large.loaded,
.screenshot-item img.loaded,
.similar-app-icon.loaded {
    opacity: 1;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
    outline: 2px solid #34a853;
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }
    
    .right-column {
        position: static;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 8px;
        height: 56px;
        gap: 12px;
        justify-content: space-between;
    }
    
    .logo-section {
        flex-shrink: 0;
    }
    
    .play-text {
        font-size: 18px;
    }
    
    .play-logo-img {
        width: 20px;
        height: 20px;
    }
    
    .nav-tabs {
        margin-left: 0;
    }
    
    .header-actions {
        gap: 4px;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .icon-button {
        width: 36px;
        height: 36px;
        padding: 6px;
    }
    
    .icon-button .material-icons {
        font-size: 20px;
    }
    
    .profile-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .content-wrapper {
        padding: 16px 0;
    }
    
    .app-actions {
        width: 100vw;
        margin-left: calc(-50vw + 50% - 16px);
        margin-right: calc(-50vw + 50% - 16px);
        padding-left: 16px;
        padding-right: 16px;
        justify-content: center;
        align-items: stretch;
        gap: 12px;
        box-sizing: border-box;
    }
    
    .install-button,
    .share-button {
        width: 100%;
        min-height: 48px;
        padding: 14px 16px;
        font-size: 15px;
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    .screenshot-item {
        width: 160px;
    }
    
    .rating-summary {
        flex-direction: column;
        gap: 24px;
    }
    
    .device-filters {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
}


/* Extra small devices */
@media (max-width: 360px) {
    .app-header {
        padding: 10px 8px;
        gap: 10px;
    }
    
    .app-icon-large {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
    
    .app-title {
        font-size: 17px;
    }
    
    .app-developer {
        font-size: 12px;
    }
    
    .app-stats {
        gap: 4px;
        padding: 8px 8px;
        margin-left: calc(-50vw + 50% - 8px);
        margin-right: calc(-50vw + 50% - 8px);
    }
    
    .stat-value {
        font-size: 14px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .app-actions {
        width: 100vw;
        margin-left: calc(-50vw + 50% - 16px);
        margin-right: calc(-50vw + 50% - 16px);
        padding-left: 16px;
        padding-right: 16px;
        justify-content: center;
        align-items: stretch;
        gap: 12px;
        box-sizing: border-box;
    }
    
    .device-info {
        padding: 8px 8px;
        margin-left: calc(-50vw + 50% - 8px);
        margin-right: calc(-50vw + 50% - 8px);
        font-size: 11px;
    }
    
    .screenshot-item {
        width: 120px;
    }
    
    .play-text {
        font-size: 16px;
    }
    
    .install-button,
    .share-button {
        width: 100%;
        padding: 14px 16px;
        font-size: 14px;
        min-height: 48px;
        border-radius: 8px;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* Bottom Navigation Bar (Mobile) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #e8eaed;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    padding: 8px 4px;
    text-decoration: none;
    color: #5f6368;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    min-height: 56px;
}

.bottom-nav-item .material-icons {
    font-size: 24px;
    transition: color 0.2s;
}

.bottom-nav-label {
    font-size: 11px;
    font-weight: 500;
    transition: color 0.2s;
}

.bottom-nav-item.active {
    color: #34a853;
}

.bottom-nav-item.active .material-icons,
.bottom-nav-item.active .bottom-nav-label {
    color: #34a853;
}

.bottom-nav-item:active {
    background-color: #f8f9fa;
}

/* Show bottom nav on mobile */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 0;
    }
    
    .app-details {
        padding: 0;
    }
    
    .bottom-nav {
        display: flex;
    }
    
    .footer {
        padding-bottom: 80px;
    }
    
    .main-content {
        padding-bottom: 80px;
    }
    
    /* Hide desktop nav tabs on mobile */
    .nav-tabs {
        display: none;
    }
    
    /* Adjust app header for mobile */
    .app-details {
        position: relative;
    }
    
    .app-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 16px 12px 16px;
    }
    
    .app-icon-left {
        order: 1;
        flex-shrink: 0;
        align-self: flex-start;
    }
    
    .app-info-right {
        order: 2;
        flex: 1;
        min-width: 0;
    }
    
    .app-icon-large {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
    
    .app-title {
        font-size: 20px;
        font-weight: 400;
        margin-bottom: 4px;
        line-height: 1.3;
        color: #202124;
    }
    
    .app-developer {
        font-size: 14px;
        margin-bottom: 12px;
        color: #1a73e8;
        font-weight: 400;
    }
    
    .app-features {
        display: none;
    }
    
    .feature-badge {
        display: none;
    }
    
    .app-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 0;
        padding: 12px 16px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-top: none;
        border-bottom: none;
        box-sizing: border-box;
        position: relative;
    }
    
    .stat-column {
        align-items: flex-start;
        text-align: left;
        min-width: 0;
    }
    
    .stat-value {
        font-size: 14px;
        justify-content: flex-start;
        line-height: 1.4;
        font-weight: 400;
    }
    
    .stat-value .star {
        font-size: 14px;
        margin-left: 2px;
    }
    
    .stat-label {
        font-size: 12px;
        justify-content: flex-start;
        word-break: break-word;
        line-height: 1.4;
        color: #5f6368;
        margin-top: 4px;
    }
    
    .rating-badge {
        font-size: 11px;
        padding: 1px 5px;
    }
    
    .app-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
        padding: 0 16px 16px 16px;
        box-sizing: border-box;
        position: relative;
        justify-content: center;
        align-items: stretch;
    }
    
    .share-button {
        display: none;
    }
    
    .install-button {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 15px;
        min-height: 48px;
        border-radius: 20px;
        box-sizing: border-box;
        background-color: #1a73e8;
    }
    
    .install-button.downloading {
        background-color: #1a73e8;
        padding: 12px;
    }
    
    .circular-progress-container {
        width: 40px;
        height: 40px;
    }
    
    .circular-progress {
        width: 40px;
        height: 40px;
    }
    
    .progress-percent {
        font-size: 11px;
    }
    
    .share-button {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 14px 16px;
        min-height: 48px;
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    .device-info {
        display: none;
    }
    
    /* Hide right column on mobile */
    .right-column {
        display: none;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        padding: 0;
        padding-bottom: 20px;
    }
    
    .app-details {
        margin-bottom: 0;
    }
    
    .app-header {
        padding: 16px 8px;
        overflow: visible;
        position: relative;
    }
    
    .app-info-right {
        overflow: visible;
        position: relative;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .app-icon-large {
        width: 72px;
        height: 72px;
    }
    
    .app-title {
        font-size: 18px;
    }
    
    .rating-number {
        font-size: 18px;
    }
    
    .reviews-count,
    .downloads-count {
        font-size: 13px;
    }
}
