:root {
    --primary-color: #FF9500;
    --primary-color-rgb: 255, 46, 99;
    --text-primary: #000000;
    --text-muted: #999;
}

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

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: 0;
    margin-top: 0;
    background-color: #050a1f;
    background-image: radial-gradient(rgba(var(--primary-color-rgb), 0.5) 2px, transparent 0), radial-gradient(rgba(var(--primary-color-rgb), 0.5) 2px, transparent 0);
    background-position: 0 0, 25px 25px;
    background-size: 50px 50px;
}

body:has(.hot-games-section) {
    padding-top: 0;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    padding: 5px 20px;
    z-index: 998;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-icons {
    display: flex;
    gap: 20px;
}

.header-icon {
    color: var(--primary-color);
    font-size: 18px;
    text-decoration: none;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.header-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.header-icon:active {
    transform: scale(0.95);
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}

.center-logo {
    height: 35px;
    width: auto;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 5px;
    border-radius: 50%;
    background-color: transparent;
    width: 40px;
    height: 40px;
}

.back-button svg {
    width: 36px;
    height: 36px;
}


.hot-games-section {
    max-width: 1200px;
    margin: 30px auto;
    border-radius: 16px;
    border: 2px solid white;
    box-sizing: border-box;
    position: relative;

}


body:has(.search-section.active) .hot-games-section {
    display: none;
}

body:has(.search-section.active) .featured-games-section {
    display: none;
}

body:has(.search-section.active) .category-bar-section {
    display: none;
}

.hot-games-header {
    position: absolute;
    top: -12px;
    left: 30px;
    background: var(--primary-color);
    padding: 8px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.hot-games-container {
    padding: 24px;
    padding-top: 48px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: transparent;
    border-radius: 16px;
}

.hot-games-title {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hot-games-fire-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.hot-games-arrow-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.hot-games-title-main {
    font-size: 14px;
    font-weight: 700;
    color: white;
}
.hot-games-container::-webkit-scrollbar {
    display: none;
}

.featured-games-section {
    max-width: 1200px;
    margin: 0 auto 20px;
}

.featured-games-header {
    margin-bottom: 12px;
}

.featured-games-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.featured-games-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
}

.featured-games-container::-webkit-scrollbar {
    display: none;
}

.featured-game-card {
    flex-shrink: 0;
    width: 265px;
    height: 235px;
    border-radius: 32px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 2px solid white;
}

.featured-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    border-radius: 32px;
}

.featured-game-card img {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.featured-game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    border-radius: 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

.featured-game-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.featured-game-name {
    font-size: 24px;
    font-weight: 900;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.featured-game-category {
    font-size: 12px;
    font-weight: 700;
    color:var(--primary-color)
}

.featured-game-play-btn {
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: 75ms;
    background: linear-gradient(180deg, #ff9f1c, #ff5f00);
    box-shadow: 0 4px 0 #9a3412, 0 0 10px rgba(255, 140, 0, .4), inset 0 2px 4px hsla(0, 0%, 100%, .5);
    border: 2px solid #fed7aa;
    color: white;
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.featured-game-play-btn:hover {
    background: linear-gradient(180deg, #ffb030, #ff7010);
}

.featured-game-play-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #9a3412, 0 0 8px rgba(255, 140, 0, .3), inset 0 2px 4px hsla(0, 0%, 100%, .5);
}

.featured-games-scroll {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-game-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 10px 0;
}

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

.hot-game-card-number {
    color: #f09;
    font-size: 16px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 0, 153, .8), 0 0 20px rgba(255, 0, 153, .4);
}

.hot-game-card-image {
    width: 44px;
    height: 44px;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
    border-radius: 16px;
    flex-shrink: 0;
    border: 1px solid hsla(0, 0%, 100%, .3);
}

.hot-game-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.hot-game-card-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    padding: 0;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-game-card-subtitle {
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hot-game-card-subtitle .star {
    color: transparent;
    -webkit-text-stroke: 2px #ffd700;
    text-stroke: 2px #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

.hot-game-card-subtitle .download-count {
    color: var(--primary-color);
    font-weight: 700;
}

.hot-game-card-play-btn {
    height: 36px;
    width: 58px;
    color: white;
    border: 3px solid #fed7aa;
    border-radius: 16px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: 75ms;
    background: linear-gradient(180deg, #ff9f1c, #ff5f00);
    box-shadow: 0 6px 0 #9a3412, 0 0 15px rgba(255, 140, 0, .4), inset 0 2px 6px hsla(0, 0%, 100%, .5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hot-game-card-play-btn:hover {
    background: linear-gradient(180deg, #ffb030, #ff7010);
}

.hot-game-card-play-btn:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #9a3412, 0 0 10px rgba(255, 140, 0, .3), inset 0 2px 6px hsla(0, 0%, 100%, .5);
}

.hot-game-card-price-bar {
    display: flex;
    align-items: center;
    gap: 2px;
}

.hot-star {
    font-size: 14px;
    line-height: 1;
    color: #ffd700;
}

.hot-star-full {
    color: #ffd700;
}

.hot-star-half {
    color: #ffd700;
    opacity: 0.6;
}

.hot-star-empty {
    color: #ddd;
}


.category-bar-section {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 10px 0;
}

.category-bar-title {
    margin-bottom: 10px;
}

.category-bar-title-text {
    font-size: 20px;
    font-weight: 1000;
    color: var(--primary-color);
}

.category-bar {
    background: transparent;
    max-width: 1200px;
    margin: 0 auto;
}

.category-sidebar .category-bar {
    position: static;
    max-width: none;
    margin: 0;
    width: 100%;
    height: auto;
}

.category-page-main .category-bar,
.category-page-sidebar {
    background: transparent;
    max-width: none;
    margin: 0;
    position: static;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}



.category-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-sidebar .category-scroll-container,
.category-page-sidebar .category-scroll-container {
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.category-scroll-container::-webkit-scrollbar {
    display: none;
}

.category-buttons {
    display: flex;
    align-items: center;
    min-width: fit-content;
}

.category-btn {
    flex-shrink: 0;
    width: 80px;
    min-width: 80px;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-bar .category-btn.active {
    background: transparent;
    box-shadow: none;
}

.category-bar .category-btn.active .category-btn-text {
    color: white;
    border-radius: 12px;
    background-color: var(--primary-color);
    padding: 2px 6px;
}

.category-btn-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(49, 46, 129, 0.5);
    border-radius: 50px;
}

.category-btn-icon img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    display: block;
}

.category-btn-icon svg {
    width: 24px;
    height: 24px;
}

.category-btn-text {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    color: white;
    transition: all 0.2s ease;
}



.main-content {
    padding: 5px 15px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    box-shadow: none;
}


.category-page-main {
    display: block;
    width: 100%;
}


.main-content:has(.game-detail-container),
.main-content:has(#gamesGrid) {
    margin-top: 50px;
}


.main-content:has(.category-section) {
    margin-top: 0;
    padding-top: 0;
}


body:has(.hot-games-section) {
    padding-top: 0;
}


body:has(.hot-games-section) .hot-games-section {
    margin-top: 0;
}

body:has(.hot-games-section) .category-bar {
    margin-top: 0;
}



.footer {
    margin: 30px 15px;
    padding: 20px 15px;
    text-align: center;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 32px;
    max-width: 1200px;
}

.footer-brand {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    text-transform: lowercase;
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
    animation: gradientShift 3s ease infinite;
    position: relative;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.footer-links {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    font-family: sans-serif;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-separator {
    color: #999999;
    margin: 0 4px;
    font-size: 14px;
}


.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 10px;
}

.game-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.game-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 5px;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}

.game-card-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    padding: 10px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 60px;
    border-radius: 0 0 5px 5px;
}

.game-card-title {
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.3;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 0;
    padding-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #60a5fa 0%, #60a5fa 60%, transparent 100%);
}


.category-section .game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: stretch;
    width: 100%;
}


/* 通用游戏卡片样式 - 用于分类页、推荐页等 */
:is(.category-section, .recommended-section, .category-products-grid) .game-card,
.category-section #searchResultsGrid.game-grid .game-card {
    border: 2px solid var(--primary-color);
    padding-bottom: 8px;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.category-products-grid .game-card {
    animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

:is(.category-section, .recommended-section, .category-products-grid) .game-card:hover,
.category-section #searchResultsGrid.game-grid .game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-section .game-card::before {
    display: none;
}

/* 通用游戏卡片图片容器样式 */
:is(.category-section, .recommended-section, .category-products-grid) .game-card-image-wrapper,
.category-section #searchResultsGrid.game-grid .game-card-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    width: 100%;
    aspect-ratio: 1;
}

.category-section .game-card-image-wrapper::before,
.category-section .game-card-image-wrapper::after {
    display: none;
}

:is(.category-section, .recommended-section, .category-products-grid) .game-card img,
.category-section #searchResultsGrid.game-grid .game-card img,
.category-products-grid .game-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

section.recommended-section div.game-card {
    border: 2px solid white;
    padding: 0;
    background: transparent;
    flex-direction: row;
    border-radius: 32px;
    box-shadow: 0 0 25px hsla(0, 0%, 100%, .4), 0 0 35px color-mix(in srgb, var(--primary-color) 50%, transparent), inset 0 0 20px hsla(0, 0%, 100%, .15);
}

section.recommended-section div.game-card div.game-card-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1;
}

section.recommended-section div.game-card img {
    filter: brightness(1) saturate(1);
    border-radius: 12px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid wheat;
}

section.recommended-section div.game-card div.game-card-info,
section.recommended-section div.game-card h3.game-card-name,
section.recommended-section div.game-card button.game-card-play-btn {
    display: none;
}

:is(.category-section, .recommended-section, .category-products-grid) .game-card-title-overlay,
.category-section #searchResultsGrid.game-grid .game-card-title-overlay {
    display: none;
}

/* 通用游戏卡片信息样式 */
:is(.category-section, .recommended-section, .category-products-grid) .game-card-info,
.category-section #searchResultsGrid.game-grid .game-card-info {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-section .game-card-info,
.category-section #searchResultsGrid.game-grid .game-card-info {
    padding: 8px;
}

:is(.category-section, .recommended-section, .category-products-grid) .game-card-name,
.category-section #searchResultsGrid.game-grid .game-card-name {
    font-size: 14px;
    font-weight: 800;
    color: white;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    text-align: center;
    padding: 0 10px;
}

:is(.category-section, .recommended-section, .category-products-grid) .game-card-stats,
.category-section #searchResultsGrid.game-grid .game-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    gap: 10px;
    padding:0 15px;
}

:is(.category-section, .recommended-section, .category-products-grid) .game-card-rating,
.category-section #searchResultsGrid.game-grid .game-card-rating {
    font-size: 12px;
    font-weight: 500;
    color: white;
}

:is(.category-section, .recommended-section, .category-products-grid) .game-card-download,
.category-section #searchResultsGrid.game-grid .game-card-download {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

:is(.category-section, .recommended-section, .category-products-grid) .game-card-play-btn,
.category-section #searchResultsGrid.game-grid .game-card-play-btn {
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: 75ms;
    background: linear-gradient(180deg, #ff9f1c, #ff5f00);
    box-shadow: 0 6px 0 #9a3412, 0 0 15px rgba(255, 140, 0, .4), inset 0 2px 6px hsla(0, 0%, 100%, .5);
    border: 2px solid #fed7aa;
    color: white;
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100px;
    margin: 0 auto;
}

:is(.category-section, .recommended-section, .category-products-grid) .game-card-play-btn:hover,
.category-section #searchResultsGrid.game-grid .game-card-play-btn:hover {
    background: linear-gradient(180deg, #ffb030, #ff7010);
}

:is(.category-section, .recommended-section, .category-products-grid) .game-card-play-btn:active,
.category-section #searchResultsGrid.game-grid .game-card-play-btn:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #9a3412, 0 0 10px rgba(255, 140, 0, .3), inset 0 2px 6px hsla(0, 0%, 100%, .5);
}


.no-results {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

.no-results h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}


.home-float-button {
    position: fixed;
    bottom: 300px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 997;
    cursor: pointer;
    text-decoration: none;
    color: white;
    font-size: 24px;
    transition: transform 0.2s ease;
}

.home-float-button:active {
    transform: scale(0.95);
}

.home-float-button-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}


.search-section {
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
}

.search-section.active {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 10px;
    margin-top: 60px;
}

.search-bar {
    display: flex;
    align-items: center;
    border: none;
    padding: 0;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.1);
}

.search-bar input {
    flex: 1;
    border: 2px solid var(--primary-color);
    border-radius: 10px 0 0 10px;
    outline: none;
    font-size: 16px;
    padding: 12px;
    background: transparent;
    color: var(--text-primary);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    border: none;
    border-left: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

.search-btn svg circle,
.search-btn svg path {
    stroke: var(--primary-color);
    fill: none;
}


.game-detail-container {
    min-width: 0;
    overflow: hidden;
}

.game-image-section {
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-icon {
    width: 280px;
    height: 210px;
    border-radius: 28px;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 0 20px hsla(0, 0%, 100%, .3), 0 0 28px color-mix(in srgb, var(--primary-color) 40%, transparent), inset 0 0 16px hsla(0, 0%, 100%, .12);
}

.game-info {
    margin-bottom: 20px;
    padding: 0 10px;
}

.game-title {
    font-size: 25px;
    font-weight: 900;
    margin: 0 0 12px 0;
    color: white;
    line-height: 1.2;
}

.game-tags {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.game-tags span {
    display: inline-block;
    border: 1px solid var(--primary-color);
    background-color: #11293b;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 900;
    text-transform: capitalize;
    letter-spacing: 0;
}


.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    margin: 20px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    gap: 20px;
}

.game-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 0 0 auto;
    min-width: 0;
}

.game-players,
.game-age {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    min-width: 0;
}

.game-players .stat-value,
.game-age .stat-value {
    font-size: 20px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-rating .stat-value {
    font-size: 20px;
    align-items: center;
    justify-content: flex-start;
}

.game-rating .stat-value::after {
    content: '★';
    font-size: 14px;
    color: var(--text-primary);
    display: inline-block;
    margin-left: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.play-button-container {
    text-align: center;
    margin: 20px 0;
}

.play-button {
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: 75ms;
    background: linear-gradient(180deg, #ff9f1c, #ff5f00);
    box-shadow: 0 4px 0 #9a3412, 0 0 12px rgba(255, 140, 0, .3), inset 0 2px 4px hsla(0, 0%, 100%, .5);
    border: 2px solid #fed7aa;
    color: white;
    border-radius: 24px;
    width: 260px;
    height: 60px;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
    gap: 10px;
}

.play-button:hover {
    background: linear-gradient(180deg, #ffb030, #ff7010);
}

.play-button:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #9a3412, 0 0 10px rgba(255, 140, 0, .3), inset 0 2px 6px hsla(0, 0%, 100%, .5);
}


.play-button-image {
    display: none;
}

.game-description-section {
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 20px;
    border: 2px solid white;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 0 25px hsla(0, 0%, 100%, .4), 0 0 35px color-mix(in srgb, var(--primary-color) 50%, transparent), inset 0 0 20px hsla(0, 0%, 100%, .15);
}

.game-description-label {
    position: absolute;
    top: -14px;
    left: 30px;
    background: var(--primary-color);
    padding: 10px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid white;
}

.game-description {
    line-height: 1.8;
    font-size: 16px;
    margin: 0;
    padding: 30px;
    padding-top: 45px;
    color: white;
}

.recommended-section {
    margin-bottom: 30px;
    width: 100%;
}

.recommended-section .section-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommended-section .section-title::after {
    display: none;
}

.recommended-section .section-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

#gamesGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
}

#searchResultsGrid.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    align-items: stretch;
    width: 100%;
}



.recommended-section .game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    align-items: stretch;
    width: 100%;
}




.privacy-content,
.terms-content {
    background: transparent;
    border-radius: 15px;
    padding: 0 10px;
    margin-top: 80px;
    margin-bottom: 40px;
    line-height: 1.6;
    color: white;
}

.privacy-section,
.terms-section {
    margin-bottom: 30px;
    border: 1px solid white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
}

.privacy-section h2,
.terms-section h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.privacy-section h3,
.terms-section h3 {
    font-size: 18px;
    margin: 20px 0 10px 0;
    color: var(--primary-color);
}

.privacy-section p,
.privacy-section ul,
.terms-section p,
.terms-section ul {
    margin-bottom: 15px;
}

.privacy-section ul,
.terms-section ul {
    padding-left: 20px;
}

.privacy-section li,
.terms-section li {
    margin-bottom: 8px;
}
.ads {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .ads > div {
    width: 100%;
    max-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.category-page-main {
    margin-top: 50px;
    padding: 0;
    display: block;
    width: 100%;
}

.category-page-container {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 50px);
    position: relative;
}

.category-sidebar {
    width: 100%;
    background-color: transparent;
    flex-shrink: 0;
    padding: 10px 0;
    position: static;
    top: auto;
    left: auto;
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    overflow: visible;
    z-index: 100;
    border-bottom: 2px solid white;
}

.category-page-sidebar .category-scroll-container,
.category-sidebar .category-scroll-container {
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    height: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    flex: none;
}

.category-page-sidebar .category-buttons,
.category-sidebar .category-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: fit-content;
}

.category-page-sidebar .category-btn,
.category-sidebar .category-btn {
    width: auto;
    min-width: 80px;
    padding: 8px 12px;
    border-radius: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    text-align: center;
    border-left: none;
    border: 1px solid white;
    background: transparent;
    flex-shrink: 0;
    height: auto;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.category-page-sidebar .category-btn:hover {
    background-color: rgba(255, 68, 204, 0.1);
}

.category-page-sidebar .category-btn.active,
.category-sidebar .category-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: none;
    color: white;
}

.category-page-sidebar .category-btn.active .category-btn-text,
.category-sidebar .category-btn.active .category-btn-text {
    color: white;
    font-weight: 500;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    transition: color 0.2s ease;
}


.category-page-sidebar .category-btn-icon,
.category-sidebar .category-btn-icon {
    display: flex;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.category-page-sidebar .category-btn-icon img,
.category-sidebar .category-btn-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.category-page-sidebar .category-btn-text,
.category-sidebar .category-btn-text {
    font-size: 12px;
    text-align: center;
    flex: none;
    color: inherit;
    width: auto;
    color: white;
}

.category-content {
    padding: 15px;
    min-width: 0;
    overflow: hidden;
    background-color: transparent;
    margin-left: 0; 
}

.category-content-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    padding: 0;
    transition: opacity 0.3s ease;
}

.category-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}


