* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --play-green: #01875f;
    --play-green-dark: #016e4c;
    --google-blue: #4285f4;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --bg-gray: #f5f5f5;
    --border-color: #dadce0;
}

body {
    font-family: 'Google Sans', 'Roboto', sans-serif;
    background: #fff;
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.play-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-icon {
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
}

.play-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.play-logo {
    width: 40px;
    height: 40px;
    fill: #5f6368;
}

.play-text {
    font-size: 20px;
    font-weight: 500;
    color: #5f6368;
    letter-spacing: -0.5px;
}

.search-icon {
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Main Container */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
}

/* App Hero Section */
.app-hero {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.app-icon-container {
    flex-shrink: 0;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    object-fit: cover;
}

.app-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.app-dev {
    font-size: 14px;
    color: var(--play-green);
    margin-bottom: 8px;
    font-weight: 500;
}

.app-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.rating {
    color: var(--text-primary);
    font-weight: 500;
}

.separator {
    color: var(--border-color);
}

.app-badges {
    margin-top: 4px;
}

.badge {
    display: inline-block;
    background: #e8f0fe;
    color: var(--google-blue);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Install Section */
.install-section {
    margin-bottom: 24px;
}

.btn-install {
    width: 100%;
    padding: 16px;
    background: var(--play-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(1,135,95,0.3);
    transition: all 0.2s;
}

.btn-install:hover {
    background: var(--play-green-dark);
    box-shadow: 0 4px 8px rgba(1,135,95,0.4);
}

.btn-install:active {
    transform: translateY(1px);
}

.install-sub {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Screenshots */
.screenshots-section {
    margin-bottom: 24px;
    overflow: hidden;
}

.screenshots-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.screenshots-scroll::-webkit-scrollbar {
    display: none;
}

.screenshot-card {
    flex-shrink: 0;
    width: 200px;
    height: 355px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.screenshot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    text-align: center;
    padding: 20px;
}

.screenshot-placeholder br {
    display: block;
    margin: 10px 0;
}

/* About Section */
.about-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.about-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.about-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-height: 120px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s;
}

.about-text.expanded {
    max-height: 1000px;
}

.about-text p {
    margin-bottom: 12px;
}

.read-more {
    margin-top: 12px;
    color: var(--play-green);
    font-weight: 700;
    font-size: 14px;
    border: none;
    background: none;
    cursor: pointer;
    text-transform: uppercase;
}

/* Ratings Section */
.ratings-section {
    text-align: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.rating-big {
    font-size: 64px;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1;
}

.rating-stars {
    font-size: 24px;
    color: #ffb300;
    margin: 8px 0;
}

.rating-count {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.rating-bars {
    max-width: 300px;
    margin: 0 auto;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.bar-row span:first-child {
    width: 20px;
    text-align: right;
}

.bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: var(--text-secondary);
    border-radius: 4px;
}

/* Warning Panel */
.warning-panel {
    background: #fff3e0;
    border: 2px solid #ff9800;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    display: none;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.warning-icon {
    font-size: 28px;
}

.warning-header h3 {
    font-size: 18px;
    color: #e65100;
    font-weight: 700;
}

.warning-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.step-num {
    width: 28px;
    height: 28px;
    background: #ff9800;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.step-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    padding-top: 4px;
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: #e8f5e9;
    border-radius: 12px;
    color: #2e7d32;
    font-weight: 500;
    font-size: 14px;
}

.shield-icon {
    font-size: 20px;
}

/* Download Progress */
.download-progress {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.progress-container {
    text-align: center;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--play-green);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}

#progressPercent {
    font-weight: 700;
    color: var(--text-primary);
}

/* Similar Apps */
.similar-apps {
    margin-bottom: 40px;
}

.similar-apps h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.app-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-icon-small {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
}

.app-info-small {
    flex: 1;
}

.app-name-small {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.app-meta-small {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 480px) {
    .app-icon {
        width: 100px;
        height: 100px;
    }
    
    .app-title {
        font-size: 20px;
    }
    
    .screenshot-card {
        width: 160px;
        height: 284px;
    }
}