:root {
    
    --primary: #FF5E99;
    --text-color: #000000;
    
    --search-input-background: #ffffff;

    --category-title-color: #333333;
    
}

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

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


.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary);
    height: 50px;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin: 0;
}

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

.header-content p {
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
}

.menu-btn,
.search-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: transparent;
}



.menu-btn:active,
.search-btn:active {
    transform: scale(0.95);
}


.menu-btn svg,
.search-btn svg {
    background: transparent;
    border: none;
    outline: none;
}

.search-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.search-container.active {
    display: block;
}

.search-input {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: var(--search-input-background);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 0 0 15px 15px;
}

.search-back {
    color: #333;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    border-radius: 0;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.search-input input {
    flex: 1;
    background: white;
    border: none;
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    color: #333;
}

.search-input input::placeholder {
    color: #999;
}

.search-button {
    background: var(--primary);
    border: none;
    color: #333;
    padding: 12px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    transition: background 0.3s;
}


.search-results {
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    background: white;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 15px 15px;
    padding: 20px;
}

.search-results.active {
    display: block;
}

.no-results {
    padding: 30px 20px;
    text-align: center;
    color: #666;
}

.no-results h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.no-results p {
    font-size: 14px;
    color: #999;
}

.search-result-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 10px;
}

.search-result-item:last-child {
    margin-bottom: 0;
}


.search-result-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}


.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: 15px;
    flex: 1;
}

.search-result-info h4 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.search-result-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.search-result-item .play-button {
    background: var(--primary);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
}



.categories-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 45%;
    max-width: 250px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.categories-menu.active {
    left: 0;
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.categories-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.close-categories {
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.3s;
    border-bottom: 1px solid #f8f8f8;
}


.category-item.active {
    background: var(--primary);
    color: #333;
}

.category-item.active .category-name {
    color: #333;
    font-weight: bold;
}

.category-item.active .category-count {
    color: #333;
}

.category-name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.category-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}


.main-content {
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background: white;
    min-height: calc(100vh - 60px - 100px); 
}


  .footer {
    background-color: var(--primary);
    padding: 2px 0;
    position: relative;
    width: 100%;
  }
  
  .footer-content {
    text-align: center;
    padding: 0 20px;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    margin-bottom: 2px;
  }
  
  .mt-5 {
    margin-top: 1.25rem;
  }
  
  .footer-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
    line-height: 1.2;
  }
  
  
  .footer-copyright {
    color: var(--text-color);
    font-size: 12px;
    line-height: 1.2;
    margin: 5px 0;
  }
  
  
  @media (max-width: 768px) {
    .footer {
      padding: 2px 0;
    }
    
    
    
  
    .footer-content {
      padding: 0 20px;
    }
  
    .footer-link {
      font-size: 13px;
    }
    
    .footer-links {
      gap: 1px;
      margin-bottom: 2px;
    }
    
    .footer-copyright {
      font-size: 11px;
    }
  }
  
  @media (max-width: 480px) {
    .footer {
      padding: 1px 0;
    }
    
    
    
    
    .footer-links {
      gap: 1px;
      margin-bottom: 1px;
    }
    
    .footer-link {
      font-size: 12px;
    }
    
    .footer-copyright {
      font-size: 10px;
    }
  }



.category-section {
    margin-bottom: 45px;
    margin-left: 10px;
    margin-right: 10px;
    background: white;
    border-radius: 15px;
    padding: 20px 20px 50px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-section:first-child {
    padding-top: 10px;
}

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


.section-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 0;
    cursor: pointer;
    transition: color 0.3s;
}

.section-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: color 0.3s;
}



.homepage-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.homepage-game-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    height: 320px;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--primary);
}


.game-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.homepage-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}



.homepage-game-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.homepage-game-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.3;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 14px;
    color: #ddd;
}

.star.filled {
    color: #ffdd00;
}

.star.empty {
    color: #ddd;
}

.rating-number {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    display: none;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.game-play-count {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.homepage-play-button {
    background: var(--primary);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    width: 100%;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}




@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }
    
    .category-section {
        padding: 6px 6px 1px 6px;
        margin-bottom: 20px;
    }
    
    
    .section-title {
        font-size: 16px;
        width: 100%;
        justify-content: space-between;
        cursor: pointer;
    }
    
    .homepage-game-card {
        height: 280px;
    }
    
    .game-image-container {
        height: 180px;
    }
    
    .homepage-game-card-content {
        padding: 12px;
        gap: 6px;
    }
    
    .homepage-game-title {
        font-size: 14px;
        line-height: 1.2;
    }
    
    .star {
        font-size: 12px;
    }
    
    .rating-number {
        font-size: 12px;
    }
    
    .tag {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .game-play-count {
        font-size: 11px;
    }
    
    .homepage-play-button {
        padding: 8px 16px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .category-section {
        padding: 6px 6px 1px 6px;
        margin-bottom: 15px;
    }
    
    .homepage-game-grid {
        gap: 8px;
    }
    
    .homepage-game-card {
        height: 260px;
    }
    
    .game-image-container {
        height: 160px;
    }
    
    .homepage-game-card-content {
        padding: 10px;
        gap: 5px;
    }
    
    .homepage-game-title {
        font-size: 13px;
        line-height: 1.1;
    }
    
    .star {
        font-size: 11px;
    }
    
    .rating-number {
        font-size: 11px;
    }
    
    .tag {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .game-play-count {
        font-size: 10px;
    }
    
    .homepage-play-button {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .section-title {
        font-size: 20px;
        width: 100%;
        justify-content: space-between;
        cursor: pointer;
    }
}






@media (max-width: 768px) {
    .categories-menu {
        width: 60%;
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .categories-menu {
        width: 70%;
        max-width: 200px;
    }
    
    .categories-header {
        padding: 15px;
    }
    
    .category-item {
        padding: 12px 15px;
    }
    
    .category-name {
        font-size: 15px;
    }
    
    .category-count {
        font-size: 13px;
    }
}


@media (max-width: 768px) {
    .search-input {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .search-input input {
        padding: 10px 14px;
        font-size: 15px;
    }
    
    .search-button {
        width: 45px;
        height: 45px;
        padding: 10px 14px;
    }
    
    .search-back {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
}

@media (max-width: 480px) {
    .search-input {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .search-input input {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .search-button {
        width: 40px;
        height: 40px;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .search-back {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    
}


.detail-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0 20px 0; 
}


body.detail-page-body {
    min-height: 100vh;
}

body.detail-page-body .footer {
    position: relative;
    width: 100%;
}

body.detail-page-body .main-content {
    margin-top: 60px; 
    position: relative;
}

body.detail-page-body .detail-page {
    position: relative;
}


.game-detail {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 0;
    margin-bottom: 20px ; 
    padding-bottom: 15px ; 
}

.game-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.game-image {
    position: relative;
    margin: 20px 20px 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 15px;
}

.game-image img {
    width: 80%;
    max-height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

.game-image-fallback {
    display: none;
    width: 100%;
    height: 100%;
    background: #20b2aa;
    color: white;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

.game-info {
    padding: 0 30px 25px 30px;
    text-align: left;
    width: 100%;
}

.game-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-align: left;
}

.game-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    padding-left: 0;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    margin-left: 0;
}

.stat-label {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    min-width: 85px;
    text-align: left;
    flex-shrink: 0;
}

.stat-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    text-align: left;
    flex-shrink: 0;
}

.rating {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 20px;
    color: #ddd;
}

.star.filled {
    color: #FFD700;
}

.game-description {
    padding: 10px 30px 30px 30px;
    border-top: 1px solid #f0f0f0;
}

.description-content {
    display: block;
}

.description-content p {
    margin: 0;
    line-height: 1.6;
}



.game-description h2 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.game-description p {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}


.recommended-games {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 30px;
    border-top: 1px solid #f0f0f0;
}

.recommended-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.recommended-game-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}


.recommended-game-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #f5f5f5;
}

.recommended-game-info {
    padding: 15px;
}

.recommended-game-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommended-game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.recommended-game-downloads {
    font-weight: 500;
}

.recommended-game-category {
    background: #e8f4fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.game-actions {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.play-btn {
    background: var(--primary);
    color: var(--text-color);
    padding: 16px 25px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(255, 136, 255, 0.3);
    border: none;
    cursor: pointer;
}


.play-btn svg {
    width: 18px;
    height: 18px;
}



@media (max-width: 768px) {
    .detail-page {
        padding: 25px 15px 20px 15px; 
    }
    
    
    .game-image {
        margin: 20px 20px 0 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        border-radius: 15px;
    }
    
    .game-image img {
        width: 75%;
        max-height: 200px;
    }
    
    .game-info {
        padding: 0 25px 20px 25px;
        text-align: left;
    }
    
    .game-title {
        font-size: 24px;
        margin: 0 0 18px 0;
        text-align: left;
    }
    
    .game-stats {
        gap: 12px;
        align-items: flex-start;
        padding-left: 0;
    }
    
    .stat-label {
        font-size: 15px;
        min-width: 75px;
        text-align: left;
        flex-shrink: 0;
    }
    
    .star {
        font-size: 18px;
    }
    
    .stat-value {
        font-size: 15px;
        text-align: left;
        flex-shrink: 0;
    }
    
    .game-description {
        padding: 10px 25px 25px 25px;
    }
    
    .game-description h2 {
        font-size: 18px;
        margin: 0 0 12px 0;
    }
    
    .game-description p {
        font-size: 15px;
    }
    
    
    .recommended-games {
        margin-top: 30px;
        margin-bottom: 30px;
        padding: 20px 15px;
    }
    
    .recommended-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .recommended-grid {
        gap: 15px;
        max-width: 100%;
    }
    
    .recommended-game-image {
        height: 100px;
    }
    
    .recommended-game-info {
        padding: 12px;
    }
    
    .recommended-game-name {
        font-size: 14px;
    }
    
    .description-content {
        display: block;
    }
    
    .game-actions {
        padding: 10px;
        gap: 12px;
    }
    
    .play-btn {
        padding: 14px 22px;
        font-size: 15px;
    }
    
}

@media (max-width: 480px) {
    .detail-page {
        padding: 20px 10px 15px 10px; 
    }
    
    .game-image {
        margin: 20px 20px 0 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        border-radius: 15px;
    }
    
    .game-image img {
        width: 70%;
        max-height: 160px;
    }
    
    .game-info {
        padding: 0 20px 15px 20px;
        text-align: left;
    }
    
    .game-title {
        font-size: 22px;
        margin: 0 0 15px 0;
        text-align: left;
    }
    
    .game-stats {
        gap: 10px;
        align-items: flex-start;
        padding-left: 0;
    }
    
    .stat-label {
        font-size: 14px;
        min-width: 65px;
        text-align: left;
        flex-shrink: 0;
    }
    
    .star {
        font-size: 16px;
    }
    
    .stat-value {
        font-size: 14px;
        text-align: left;
        flex-shrink: 0;
    }
    
    .game-description {
        padding: 10px 20px 20px 20px;
    }
    
    .game-description h2 {
        font-size: 16px;
        margin: 0 0 10px 0;
    }
    
    .game-description p {
        font-size: 14px;
    }
    
    
    .recommended-games {
        margin-top: 25px;
        margin-bottom: 25px;
        padding: 15px 10px;
    }
    
    .recommended-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .recommended-grid {
        gap: 12px;
    }
    
    .recommended-game-image {
        height: 90px;
    }
    
    .recommended-game-info {
        padding: 10px;
    }
    
    .recommended-game-name {
        font-size: 13px;
    }
    
    .recommended-game-stats {
        font-size: 11px;
    }
    
    .description-content {
        display: block;
    }
    
    .game-actions {
        padding: 10px;
        gap: 10px;
    }
    
    .play-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    body.detail-page-body .footer {
        position: relative;
        bottom: 0;
    }
}


@media (max-width: 768px) {
    body.detail-page-body {
        min-height: 100vh;
    }
    
    body.detail-page-body .footer {
        position: relative;
        width: 100%;
    }
}


@media (max-width: 480px) {
    body.detail-page-body .footer {
        position: relative;
        bottom: 0;
    }
    
    
    body.detail-page-body .detail-page {
        padding-bottom: 10px;
    }
}


.privacy-content {
    background: white;
    border-radius: 20px;
    padding: 40px 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    line-height: 1.6;
}

.about-page .privacy-content {
    padding: 40px 15px;
}

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

.privacy-section h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.privacy-section h3 {
    color: #555;
    font-size: 18px;
    margin: 20px 0 10px 0;
}

.privacy-section p,
.privacy-section ul {
    color: #666;
    margin-bottom: 15px;
}

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

.privacy-section li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .privacy-content {
        padding: 20px 10px;
    }
    
    .about-page .privacy-content {
        padding: 20px 15px;
    }
    
    .privacy-section h2 {
        font-size: 20px;
    }
}

.terms-content {
    background: white;
    border-radius: 20px;
    padding: 40px 15px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    line-height: 1.6;
}

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

.terms-section h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.terms-section h3 {
    color: #555;
    font-size: 18px;
    margin: 20px 0 10px 0;
}

.terms-section p,
.terms-section ul {
    color: #666;
    margin-bottom: 15px;
}

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

.terms-section li {
    margin-bottom: 8px;
}

.highlight {
    color: var(--primary);
    font-weight: bold;
}

@media (max-width: 768px) {
    .terms-content {
        padding: 20px 15px;
    }
    
    .terms-section h2 {
        font-size: 20px;
    }
}


.category-page-body {
    background: #fff0ff;
    margin: 0;
    padding: 0;
}

.category-page-body .main-content {
    margin-top: 50px;
    padding: 20px;
}

.category-page-body #gamesGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.category-page-body .game-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    height: 320px;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--primary);
}


.category-page-body .game-card .game-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.category-page-body .game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.category-page-body .game-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.category-page-body .game-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.3;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-page-body .game-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-page-body .play-button {
    background: var(--primary);
    color: #333;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    width: 100%;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.category-page-body .search-results {
    position: fixed;
    top: 120px;
    left: 0;
    right: 0;
    background: white;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 15px 15px;
    padding: 20px;
}

.category-page-body .search-results.active {
    display: block;
}

.category-page-body .search-results .game-card {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .category-page-body .main-content {
        padding: 15px;
    }
    
    .category-page-body #gamesGrid {
        gap: 10px;
    }
    
    .category-page-body .game-card {
        height: 280px;
    }
    
    .category-page-body .game-card .game-image-container {
        height: 180px;
    }
    
    .category-page-body .game-card-content {
        padding: 12px;
        gap: 6px;
    }
    
    .category-page-body .game-title {
        font-size: 14px;
        line-height: 1.2;
    }
    
    .category-page-body .play-button {
        padding: 8px 16px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .category-page-body .main-content {
        padding: 10px;
    }
    
    .category-page-body #gamesGrid {
        gap: 8px;
    }
    
    .category-page-body .game-card {
        height: 260px;
    }
    
    .category-page-body .game-card .game-image-container {
        height: 160px;
    }
    
    .category-page-body .game-card-content {
        padding: 10px;
        gap: 5px;
    }
    
    .category-page-body .game-title {
        font-size: 13px;
        line-height: 1.1;
    }
    
    .category-page-body .play-button {
        padding: 6px 12px;
        font-size: 10px;
    }
}

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