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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #fff;
    padding-top: 70px;
    padding-bottom: 80px;
    min-height: 100vh;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    padding: 15px 20px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.4);
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 768px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-button {
    font-size: 26px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.back-button:active {
    transform: scale(0.9);
}

.logo {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.share-button {
    font-size: 22px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.share-button:active {
    transform: scale(0.9);
}

/* Content Container */
.content {
    max-width: 768px;
    margin: 0 auto;
    padding-bottom: 30px;
}

/* Game Cover */
.game-cover {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden;
    padding-top: 55px;
}

.game-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
}

.search-container {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.3);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #3a7bd5;
    font-size: 20px;
}

.play-overlay-large {
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button-large {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #00d2ff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.4);
}

.play-button-large img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button-large:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.6);
}

.play-button-large:active {
    transform: scale(1.02);
}

/* Game Info Section */
.game-info-section {
    padding: 25px 20px;
    background: transparent;
}

.game-header {
    margin-bottom: 18px;
}

.game-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.game-category {
    display: inline-block;
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 210, 255, 0.3);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 25px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(0, 210, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.stat-box {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(0, 210, 255, 0.1);
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #00d2ff;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    color: #fff;
    border: none;
    padding: 18px 28px;
    border-radius: 20px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0, 210, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 210, 255, 0.6);
}

.btn-primary:active {
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 2px solid rgba(0, 210, 255, 0.3);
    padding: 18px;
    border-radius: 20px;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(0, 210, 255, 0.2);
    border-color: rgba(0, 210, 255, 0.6);
}

.btn-secondary:active {
    transform: scale(0.95);
}

.btn-secondary.liked {
    color: #00d2ff;
    border-color: #00d2ff;
    background: rgba(0, 210, 255, 0.15);
}

/* Game Description */
.game-description {
    margin: 30px 0;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.description-text {
    font-size: 15px;
    line-height: 1.8;
    color: #ddd;
}

/* How to Play */
.how-to-play {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border-left: 5px solid #00d2ff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.how-to-play-list {
    list-style: none;
    padding: 0;
}

.how-to-play-list li {
    font-size: 15px;
    line-height: 1.8;
    color: #ddd;
    padding: 10px 0;
    padding-left: 35px;
    position: relative;
}

.how-to-play-list li::before {
    content: '▶';
    position: absolute;
    left: 10px;
    color: #00d2ff;
    font-size: 12px;
}

/* Game Details */
.game-details {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(0, 210, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 15px;
    color: #aaa;
    font-weight: 600;
}

.detail-value {
    font-size: 15px;
    color: #fff;
    font-weight: 700;
}

/* Rating Section */
.rating-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1) 0%, rgba(58, 123, 213, 0.1) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(0, 210, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.rating-score {
    text-align: center;
}

.rating-number {
    font-size: 56px;
    font-weight: 900;
    color: #00d2ff;
    line-height: 1;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.rating-stars {
    color: #FFC107;
    font-size: 18px;
    margin: 12px 0;
}

.rating-count {
    font-size: 13px;
    color: #aaa;
    font-weight: 600;
}

.rating-bars {
    flex: 1;
    padding-left: 35px;
}

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

.rating-bar-label {
    font-size: 13px;
    color: #aaa;
    width: 35px;
    font-weight: 600;
}

.rating-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.rating-bar-count {
    font-size: 13px;
    color: #aaa;
    width: 45px;
    text-align: right;
    font-weight: 600;
}

/* Recommended Games */
.recommended-section {
    padding: 25px 20px;
    background: transparent;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.see-all {
    font-size: 15px;
    color: #00d2ff;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.recommended-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(0, 210, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    text-decoration: none;
    color: #fff;
}

.recommended-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 210, 255, 0.4);
    border-color: rgba(0, 210, 255, 0.5);
}

.recommended-image {
    width: 100%;
    height: 110px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    overflow: hidden;
}

.recommended-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recommended-card:hover .recommended-image img{
    transform: scale(1.1);
}

.recommended-title {
    padding: 12px;
    font-size: 13px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

/* Footer About Us */
.footer-about {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 40px 20px 100px 20px;
    border-top: 2px solid rgba(0, 210, 255, 0.2);
}

.footer-about h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #00d2ff;
    text-align: center;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    color: #ccc;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-about a {
    color: #00d2ff;
    font-weight: 600;
    text-decoration: underline;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    box-shadow: 0 -4px 20px rgba(0, 210, 255, 0.4);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 25px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 15px;
}

.nav-item:active {
    transform: scale(0.92);
}

.nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-icon {
    font-size: 26px;
}

.nav-label {
    font-size: 13px;
    font-weight: 600;
}

/* Category Menu Overlay */
.category-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: flex-end;
}

.category-menu-overlay.show {
    display: flex;
}

.category-menu {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    border-radius: 30px 30px 0 0;
    padding: 25px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 3px solid #00d2ff;
}

.category-menu-overlay.show .category-menu {
    transform: translateY(0);
}

.category-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 210, 255, 0.3);
}

.category-menu-title {
    font-size: 20px;
    font-weight: 800;
    color: #00d2ff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.category-menu-close {
    font-size: 32px;
    cursor: pointer;
    color: #ccc;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.category-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.category-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.category-menu-item {
    padding: 20px 18px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border-radius: 12px;
    margin-bottom: 5px;
}

.category-menu-item:last-child {
    border-bottom: none;
}

.category-menu-item:hover {
    background: rgba(0, 210, 255, 0.1);
    padding-left: 25px;
    color: #00d2ff;
}

.category-menu-item:active {
    background: rgba(0, 210, 255, 0.2);
}

/* Desktop Responsive */
@media (min-width: 769px) {
    .header-content,
    .content {
        max-width: 768px;
    }

    .game-cover {
        height: 450px;
    }

    .recommended-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rating-bars {
        padding-left: 25px;
    }

    .rating-number {
        font-size: 44px;
    }
}
