* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: #0099cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 10px;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 30px;
}

.header-right {
    display: flex;
    align-items: center;
}

.search-bar {
    display: flex;
    margin-right: 15px;
}

.search-bar input {
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 4px 0 0 4px;
    width: 200px;
}

.search-bar button {
    background-color: #0099cc;
    color: white;
    padding: 6px 10px;
    border-radius: 0 4px 4px 0;
}

.user-actions {
    display: flex;
    align-items: center;
}

.icon-button {
    background-color: transparent;
    color: #666;
    font-size: 16px;
    margin-left: 10px;
    padding: 5px;
}

.user-profile {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 10px;
    padding: 0;
}

.user-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.game-info-header {
    display: flex;
    margin-bottom: 20px;
}

.game-icon {
    width: 170px;
    height: 170px;
    margin-right: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.game-info {
    flex: 1;
}

.game-info h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.game-developer {
    color: #666;
    margin-bottom: 5px;
}

.game-stats {
    display: flex;
}

.stat {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.stat i {
    color: #f8c200;
    margin-right: 5px;
}

.game-notice {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.game-banner {
background-color: #1e3a5f;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
}

.banner-content {
    padding-right: 40px;
}

.banner-content h2 {
    margin-bottom: 10px;
}

.next-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    color: #1e3a5f;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-thumbnails {
    margin-bottom: 20px;
    overflow-x: auto;
}

.thumbnail-row {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
}

.thumbnail {
    flex: 0 0 130px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #222;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-description {
    margin-bottom: 20px;
}

.game-description p {
    margin-bottom: 10px;
}

.game-promo {
    margin-bottom: 20px;
    text-align: center;
}

.game-promo img {
    max-width: 100%;
    border-radius: 8px;
}

.game-extra-info {
    margin-bottom: 20px;
}

.game-extra-info p {
    margin-bottom: 10px;
}

.source, .published {
    font-size: 12px;
    color: #666;
}

.game-details {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.game-details h3 {
    margin-bottom: 15px;
}

.details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.details-column {
    flex: 1;
    min-width: 250px;
}

.detail-item {
    display: flex;
    margin-bottom: 15px;
}

.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: white;
}

.blue { background-color: #4285f4; }
.green { background-color: #34a853; }
.purple { background-color: #a142f4; }
.orange { background-color: #fbbc05; }
.teal { background-color: #00acc1; }
.red { background-color: #ea4335; }
.yellow { background-color: #f4b400; }

.detail-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.detail-value {
    font-weight: bold;
}

.game-promo-small {
    margin-top: 20px;
    text-align: center;
}

.game-promo-small img {
    max-width: 200px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.other-versions {
    margin-bottom: 20px;
}

.version-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.version-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    flex: 1;
    min-width: 200px;
}

.version-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: white;
}

.version-date {
    font-size: 12px;
    color: #666;
}

.rate-game {
    margin-bottom: 20px;
    text-align: center;
}

.rating-stars {
    font-size: 24px;
    color: #f8c200;
    margin-bottom: 10px;
}

.rating-stars i {
    cursor: pointer;
    margin: 0 2px;
}

.rating-stars i:hover {
    transform: scale(1.2);
}

.rate-button {
    background-color: #0099cc;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
}

.game-action-banner {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.play-btn {
    flex: 1;
    background-color: #0099cc;
    color: white;
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
}

.download-btn {
    background-color: #f0f0f0;
    color: #333;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.rating-section {
    margin-bottom: 20px;
}

.rating-info {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.rating-number {
    font-size: 32px;
    font-weight: bold;
    margin-right: 15px;
    min-width: 60px;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
}

.rating-progress {
    height: 100%;
    background-color: #4caf50;
}

.rating-count {
    color: #666;
    min-width: 80px;
}

.comments-section {
    margin-bottom: 30px;
}

.comment {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.comment-author {
    font-weight: bold;
}

.comment-rating {
    color: #f8c200;
    font-size: 12px;
}

.comment-text {
    margin-bottom: 5px;
}

.comment-date {
    font-size: 12px;
    color: #666;
}

/* Center game sections as requested */
.featured-games,
.alternatives,
.discover-games {
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 15px;
    text-align: center;
    justify-content: center;
}

.game-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.game-name {
    padding: 8px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

footer {
    background-color: #1e3a5f;
    color: white;
    padding: 30px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
}

.footer-logo {
    margin-right: 30px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-column h4 {
    margin-bottom: 15px;
    font-size: 14px;
}

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

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #bbd8e8;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.2s;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: #bbd8e8;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .header-right {
        width: 100%;
    }
    
    .search-bar {
        flex: 1;
    }
    
    .search-bar input {
        width: 100%;
    }
    
    .game-info-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .game-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .game-stats {
        justify-content: center;
    }
    
    .details-grid {
        flex-direction: column;
    }
    
    .game-action-banner {
        flex-direction: column;
    }
    
    .rating-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rating-number {
        margin-bottom: 10px;
    }
    
    .rating-bar {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thumbnail {
        flex: 0 0 180px;
    }
    
    .comment-header {
        flex-direction: column;
    }
    
    .comment-rating {
        margin-top: 5px;
    }
}

/* Fixed slider styles */
.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;
    cursor: pointer;
}

.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%;
    justify-content: center;
}

.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;
    flex: 0 0 120px;
}

.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;
}