body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    color: #1c1e21;
    line-height: 1.4;
}

.app-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.app-icon-container {
    margin-right: 15px;
}

.app-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.app-info .app-name {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.app-info .app-developer {
    font-size: 14px;
    color: #007bff; /* Theme color */
    margin: 0 0 4px 0;
}

.app-info .app-verified {
    font-size: 12px;
    color: #555;
    display: flex;
    align-items: center;
}

.verified-badge {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.app-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.stat-item {
    padding: 0 10px;
}

.stat-value, .stat-value-rated {
    font-size: 16px;
    font-weight: 500;
}
.stat-value-rated .age-rating {
    border: 1px solid #ccc;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 12px;
}

.stat-label {
    font-size: 12px;
    color: #606770;
}

.install-section {
    margin-bottom: 20px;
    text-align: center;
}

.install-button { /* This now styles the <a> tag */
    display: inline-block; /* Important for <a> tag to behave like a button */
    background-color: #007bff; /* Or your theme color e.g., #DAA520 for gold */
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none; /* Remove underline from link */
    text-align: center;
    min-width: 200px; /* Ensure it has some width */
    transition: background-color 0.2s;
}

.install-button:hover {
    background-color: #0056b3; /* Or your theme hover color e.g., #B8860B */
    text-decoration: none; /* Keep underline off on hover */
}
.install-button.playing {
    background-color: #28a745; /* Green for play */
}
.install-button.playing:hover {
    background-color: #218838;
}
.install-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


.install-progress, .install-countdown {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
}

.app-actions {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}
.action-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    /* You'll need to create/find these SVG icons */
}

.app-screenshots h2,
.app-description h2,
.app-data-safety h2,
.app-ratings-reviews h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer; /* For toggle */
}
.arrow-details {
    font-size: 20px;
    transition: transform 0.2s;
}
.arrow-details.open {
    transform: rotate(90deg);
}


.screenshots-scroller {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px; /* For scrollbar */
    margin-bottom: 20px;
}

.screenshots-scroller img {
    height: 200px; /* Adjust as needed */
    border-radius: 8px;
    border: 1px solid #ddd;
}

.description-content, .data-safety-content, .ratings-summary, .reviews-list {
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
    padding-left: 5px; /* Indent content slightly */
}
.data-safety-content ul {
    list-style: none;
    padding: 0;
}
.data-safety-content li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.data-safety-content li img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}


.overall-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}
.rating-score {
    font-size: 48px;
    font-weight: bold;
    color: #333;
}
.stars-display { /* For star icons */
    color: #ffc107; /* Gold for stars */
    font-size: 16px; /* Adjust star size */
}
.total-reviews {
    font-size: 14px;
    color: #606770;
}
.rating-bars .rating-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-size: 13px;
}
.rating-bar-row span {
    width: 20px;
}
.rating-bar-row .bar {
    flex-grow: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin: 0 5px;
    overflow: hidden;
}
.rating-bar-row .filled-bar {
    height: 100%;
    background-color: #007bff; /* Theme color */
    border-radius: 4px;
}

.review-item {
    border-top: 1px solid #e0e0e0;
    padding: 15px 0;
}
.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.reviewer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}
.reviewer-name {
    font-weight: 500;
}
.review-rating {
    margin-bottom: 5px;
}
.review-text {
    font-size: 14px;
    margin-bottom: 5px;
}
.review-date {
    font-size: 12px;
    color: #606770;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #606770;
}

/* Loading Overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff; /* Theme color */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}