/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.de_iv_adv {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
    background-color: #F8F8F8;
    margin: 10px 0 0px;
}


/* 底部广告位 */

.postionFixed {
    width: 100%;
    min-height: 60px;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F8F8F8;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 9999;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-progress {
    width: 80%;
    max-width: 300px;
    margin: 20px auto 0;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: #333;
    width: 0%;
    animation: progress 3s ease-in-out infinite;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.progress-text {
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
}

@keyframes progress {
    0% {
        width: 0%;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }

    50% {
        width: 70%;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
    }

    100% {
        width: 100%;
        box-shadow: 0 0 20px rgba(255, 255, 255, 1);
    }
}

/* ===== HEADER STYLES ===== */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    transition: all 0.3s ease;
}

.logo-section .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: #f0f0f0;
    color: #000;
}

.nav-icon {
    font-size: 1.2rem;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    border: 1px solid #eee;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    padding-left: 25px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Search Section */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 200px;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.search-input:focus {
    outline: none;
    border-color: #333;
    width: 250px;
}

.search-btn {
    position: absolute;
    right: 5px;
    background: #333;
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #000;
}

.search-icon {
    font-size: 1rem;
    color: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background: #333;
    margin: 4px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* ===== HERO BANNER SECTION (gamelynch Minimal Style) ===== */
.hero-banner {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 1px solid #eee;
    min-height: 500px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.minimal-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 1;
    z-index: 1;
}

.minimal-grid::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 20px;
    height: 20px;
    border: 2px solid #000000;
    animation: minimalFloat 8s ease-in-out infinite;
}

.minimal-grid::after {
    content: '○';
    position: absolute;
    top: 70%;
    right: 15%;
    font-size: 2rem;
    opacity: 0.1;
    animation: minimalPulse 4s ease-in-out infinite;
}

@keyframes minimalFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -20px) rotate(90deg);
    }

    50% {
        transform: translate(40px, 0) rotate(180deg);
    }

    75% {
        transform: translate(20px, 20px) rotate(270deg);
    }
}

@keyframes minimalPulse {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.2);
    }
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

.banner-content {
    padding-right: 20px;
    width: 100%;
    box-sizing: border-box;
}

.minimal-title-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.minimal-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 20px;
    font-family: 'Helvetica Neue', sans-serif;
    letter-spacing: -1px;
    line-height: 1.1;
    position: relative;
}

.minimal-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #000000;
}

.minimal-highlight {
    font-weight: 800;
    color: #000000;
    position: relative;
}

.minimal-highlight::before {
    content: '○';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.5;
}

.banner-subtitle {
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 300;
    max-width: 90%;
}

.banner-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 0;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #000000;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: #000000;
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 5px 5px 0 #000000;
}

.btn-secondary {
    background: #ffffff;
    color: #000000;
}

.btn-secondary:hover {
    background: #f8f8f8;
    transform: translateY(-3px);
    box-shadow: 5px 5px 0 #666666;
}

/* Featured Game Card */
.featured-game-card {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.featured-card-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    min-height: 280px;
    background: #ffffff;
    border: 2px solid #000000;
    box-shadow: 8px 8px 0 #000000;
    overflow: hidden;
    transition: all 0.3s ease;
}

.featured-card-container:hover {
    transform: translateY(-2px);
    box-shadow: 10px 10px 0 #000000;
}

.featured-game-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
}

.featured-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    gap: 15px;
}

.featured-placeholder .placeholder-icon {
    font-size: 3rem;
    opacity: 0.7;
}

.featured-placeholder h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.featured-placeholder p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Featured Game Display */
.featured-game-display {
    display: flex;
    height: 100%;
    gap: 20px;
}

.featured-game-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000000;
}

.featured-game-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.featured-game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0;
}

.featured-game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.featured-game-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    line-height: 1.3;
}

.featured-game-category {
    background: #000000;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.featured-game-description {
    color: #666666;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex: 1;
}

.featured-game-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.featured-game-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
}

.featured-play-btn {
    padding: 12px 24px;
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 #000000;
}

/* ===== GAMES LAYOUT VARIATIONS ===== */

/* Main Games Grid (2-column) */
.games-vertical-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

/* Popular Games Carousel */
.popular-games-carousel {
    position: relative;
    margin-top: 40px;
}

.popular-carousel-container {
    overflow: hidden;
    border-radius: 15px;
}

.popular-vertical-cards {
    display: flex;
    gap: 20px;
    padding: 10px 0 20px 0;
    transition: transform 0.3s ease;
    scroll-behavior: smooth;
}

.popular-vertical-cards::-webkit-scrollbar {
    height: 8px;
}

.popular-vertical-cards::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.popular-vertical-cards::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 4px;
}

.popular-vertical-cards::-webkit-scrollbar-thumb:hover {
    background: #333333;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #333;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #333;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

.popular-games {
    position: relative;
}

/* New Games Masonry/Waterfall */
.new-games-vertical-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

/* Default Vertical Game Card (for main games grid) */
.vertical-game-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 2px solid #000000;
    box-shadow: 4px 4px 0 #000000;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
}

.vertical-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 #000000;
}

/* Popular Games Horizontal Card */
.popular-vertical-cards .vertical-game-card {
    min-width: 240px;
    width: 240px;
    height: 320px;
    flex-shrink: 0;
}

.popular-vertical-cards .vertical-card-image {
    height: 180px;
}

.popular-vertical-cards .vertical-card-content {
    padding: 12px;
}

.popular-vertical-cards .vertical-card-title {
    font-size: 1rem;
    -webkit-line-clamp: 2;
}

.popular-vertical-cards .vertical-card-description {
    font-size: 0.8rem;
    -webkit-line-clamp: 3;
}

.popular-vertical-cards .vertical-card-play-btn {
    padding: 5px 10px;
    font-size: 0.75rem;
}

/* New Games Masonry Card */
.new-games-vertical-cards .vertical-game-card {
    height: auto;
    min-height: 250px;
}

.new-games-vertical-cards .vertical-card-image {
    height: 160px;
}

.new-games-vertical-cards .vertical-card-content {
    padding: 15px;
}

.new-games-vertical-cards .vertical-card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.new-games-vertical-cards .vertical-card-description {
    -webkit-line-clamp: 3;
    margin-bottom: 15px;
}

/* Add special "NEW" badge */
.new-games-vertical-cards .vertical-game-card::before {
    content: '✨ NEW';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000000;
    color: #ffffff;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.vertical-card-image {
    width: 100%;
    height: 160px;
    flex-shrink: 0;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #000000;
}

.vertical-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    width: 100%;
}

.vertical-card-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vertical-card-header {
    margin-bottom: 8px;
}

.vertical-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vertical-card-category {
    background: #000000;
    color: #ffffff;
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

.vertical-card-description {
    color: #666666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0 0 12px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vertical-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.vertical-card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: #666;
}

.vertical-card-play-btn {
    padding: 6px 12px;
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.vertical-card-play-btn:hover {
    transform: translateY(-1px);
    box-shadow: 2px 2px 0 #000000;
}



/* ===== MINIMAL FOOTER ===== */
.minimal-footer {
    position: relative;
    background: #333;
    color: #f8f9fa;
    padding: 80px 0 40px;
    border-top: 1px solid #444;
    overflow: hidden;
}

.minimal-grid-footer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(#444 1px, transparent 1px),
        linear-gradient(90deg, #444 1px, transparent 1px);
    background-size: 15px 15px;
    opacity: 0.1;
}

.minimal-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.minimal-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.minimal-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.minimal-logo-icon {
    font-size: 2rem;
    color: white;
}

.minimal-logo-text {
    font-size: 1.8rem;
    font-weight: 300;
    color: white;
    font-family: 'Helvetica Neue', sans-serif;
}

.minimal-description {
    color: #ccc;
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 300;
}

.minimal-stats {
    display: flex;
    gap: 30px;
}

.minimal-stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 300;
    color: white;
}

.stat-label {
    font-size: 0.8rem;
    color: #ccc;
    font-weight: 300;
}

.minimal-links-section,
.minimal-categories-section,
.minimal-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.minimal-links-title,
.minimal-categories-title,
.minimal-info-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 300;
    margin: 0;
    font-family: 'Helvetica Neue', sans-serif;
}

.minimal-links,
.minimal-category-links,
.minimal-social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.minimal-links a,
.minimal-category-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 300;
}

.minimal-links a:hover,
.minimal-category-links a:hover {
    color: white;
    transform: translateX(5px);
}

.minimal-social-links {
    flex-direction: row;
    gap: 15px;
}

.minimal-social-link {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.minimal-social-link:hover {
    transform: scale(1.2);
    color: #666;
}

.minimal-info-text {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 300;
    margin: 0 0 10px 0;
}

.minimal-contact {
    color: #ccc;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 300;
}

.minimal-footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    position: relative;
    z-index: 2;
}

.minimal-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.minimal-copyright {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 300;
}

.minimal-bottom-links {
    display: flex;
    gap: 20px;
}

.minimal-bottom-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-weight: 300;
}

.minimal-bottom-links a:hover {
    color: white;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    background: #f8f9fa;
}

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

/* ===== SECTION STYLES ===== */
.game-categories {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    font-size: 2rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 20px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #000;
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* ===== CATEGORY TABS ===== */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.category-tab:hover,
.category-tab.active {
    background: #333;
    color: white;
    border-color: #333;
}

.tab-icon {
    font-size: 1rem;
}

/* ===== GAMES GRID ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.game-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid #eee;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

.game-info {
    padding: 20px;
}

.game-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.game-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.game-category {
    background: #333;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffc107;
    font-weight: 500;
}

.play-btn {
    width: 100%;
    background: #333;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

/* ===== LOAD MORE SECTION ===== */
.load-more-section {
    text-align: center;
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== POPULAR GAMES SECTION ===== */
.popular-games {
    padding: 80px 0;
    background: white;
}





/* ===== NEW GAMES SECTION ===== */
.new-games {
    padding: 80px 0;
    background: #f8f9fa;
}



/* ===== STATS SECTION ===== */
.stats-section {
    background: #333;
    padding: 60px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== FOCUS MODE SECTION (gamelynch Unique Feature) ===== */
.focus-mode-section {
    background: #f0f0f0;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.focus-mode-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.05) 0%, transparent 20%);
}

.focus-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.focus-text {
    flex: 1;
}

.focus-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.focus-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.focus-btn {
    background: #333;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.focus-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.focus-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.focus-circle {
    width: 200px;
    height: 200px;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.focus-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    animation: rotate 8s linear infinite;
}

.focus-icon {
    font-size: 4rem;
    color: #333;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* ===== FOCUS MODE MODAL (gamelynch Unique Feature) ===== */
.focus-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.focus-modal-content {
    background: white;
    border-radius: 10px;
    border: 1px solid #ddd;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

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

.focus-modal-header h3 {
    color: #333;
    font-size: 1.5rem;
    margin: 0;
}

.focus-modal-close {
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.focus-modal-close:hover {
    color: #333;
}

.focus-modal-body {
    padding: 30px;
}

.focus-modal-body p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.focus-options {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.focus-option {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.focus-option:last-child {
    margin-bottom: 0;
}

.focus-option input {
    width: 18px;
    height: 18px;
}

.focus-option label {
    color: #333;
    font-size: 1rem;
}

.focus-activate-btn {
    background: #333;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.focus-activate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===== FOOTER ===== */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: white;
    font-family: 'Helvetica Neue', sans-serif;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-block;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
    color: white;
}

.social-link:hover {
    transform: scale(1.2);
    color: #666;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* ===== gamelynch UNIQUE FOOTER STYLES ===== */
.footer-feature {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
}

.footer-feature h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.footer-feature p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
}

.focus-footer-link {
    color: white !important;
}

.focus-footer-link:hover {
    color: #666 !important;
}

.footer-contact {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact p {
    color: #ccc;
    margin: 5px 0;
    font-size: 0.9rem;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .banner-container {
        gap: 40px;
        padding: 0 15px;
    }

    .slide-content {
        padding: 25px;
        gap: 25px;
    }

    .banner-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        display: grid;
        grid-template-columns: 50px 1fr 50px;
        grid-template-rows: auto auto auto;
        align-items: center;
        gap: 10px;
        padding: 0 15px;
        height: 60px;
    }

    .mobile-menu-toggle {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        align-self: center;
    }

    .logo-section {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        align-self: center;
    }

    .mobile-search-toggle {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: center;
    }

    /* ===== MOBILE BANNER OPTIMIZATION ===== */
    .hero-banner {
        padding: 60px 0;
        min-height: auto;
    }

    .banner-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 0 20px;
    }

    .banner-content {
        padding-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .minimal-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .minimal-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .banner-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .banner-buttons {
        justify-content: center;
        width: 100%;
    }

    .banner-buttons .btn {
        flex: 1;
        min-width: 140px;
        max-width: 180px;
        justify-content: center;
    }

    .featured-game-card {
        max-width: 100%;
        padding: 10px;
    }

    .featured-card-container {
        max-width: calc(100% - 20px);
        box-shadow: 4px 4px 0 #000000;
    }

    .featured-card-container:hover {
        box-shadow: 5px 5px 0 #000000;
    }

    .featured-game-content {
        padding: 20px;
    }

    .featured-game-image {
        width: 120px;
        height: 120px;
    }

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

    /* ===== MOBILE FOOTER OPTIMIZATION ===== */
    .minimal-footer {
        padding: 60px 0 30px;
    }

    .minimal-footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .minimal-brand {
        align-items: center;
    }

    .minimal-logo-wrapper {
        justify-content: center;
    }

    .minimal-description {
        text-align: center;
        max-width: 100%;
    }

    .minimal-links-section,
    .minimal-categories-section,
    .minimal-info-section {
        text-align: center;
    }

    .minimal-links,
    .minimal-category-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .minimal-footer-bottom {
        padding-top: 20px;
    }

    .minimal-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .minimal-copyright {
        text-align: center;
        font-size: 0.85rem;
    }

    .minimal-bottom-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    /* Responsive Layout Adjustments */
    .games-vertical-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* ===== POPULAR GAMES MOBILE OPTIMIZATION ===== */
    .popular-games-carousel {
        margin-top: 30px;
        padding: 0 10px;
    }

    .popular-carousel-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #000000 #f1f1f1;
    }

    .popular-vertical-cards {
        gap: 15px;
        padding: 10px 5px 20px 5px;
    }

    .popular-vertical-cards .vertical-game-card {
        min-width: 200px;
        width: 200px;
        height: 280px;
    }

    .popular-vertical-cards .vertical-card-image {
        height: 140px;
    }

    /* Mobile carousel buttons - hide on mobile, use scroll instead */
    .popular-games-carousel .carousel-btn {
        display: none;
    }

    .new-games-vertical-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vertical-game-card {
        height: auto;
        min-height: 200px;
    }

    .vertical-card-image {
        height: 140px;
    }

    .nav-menu {
        display: none;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
    }

    .search-section {
        display: none;
        position: fixed;
        top: 63px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 100px 20px 20px;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        grid-column: 1 / -1;
        grid-row: 3;
        overflow-y: auto;
        height: 100vh;
    }

    .search-section.active {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transform: translateY(0);
    }

    .search-section.active .search-container {
        width: 100%;
        max-width: 400px;
        margin-top: 20px;
    }

    .search-section.active .search-input {
        width: 100%;
        font-size: 1.2rem;
        padding: 12px 50px 12px 20px;
        border-radius: 4px;
    }

    .search-section.active .search-btn {
        width: 40px;
        height: 40px;
        right: 8px;
    }

    .mobile-menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 1000;
        touch-action: manipulation;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mobile-search-toggle {
        display: flex !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #333;
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        transition: all 0.3s ease;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        position: relative;
        z-index: 1000;
        touch-action: manipulation;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mobile-search-toggle {
        position: relative;
    }

    .search-circle {
        width: 16px;
        height: 16px;
        border: 3px solid #333;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.3s ease;
    }

    .search-line {
        width: 8px;
        height: 3px;
        background: #333;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) translate(7px, 7px) rotate(45deg);
        transform-origin: center;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .mobile-search-toggle.active .search-circle {
        transform: translate(-50%, -50%) rotate(45deg);
        border-radius: 2px;
        width: 20px;
        height: 3px;
        border: none;
        background: #333;
    }

    .mobile-search-toggle.active .search-line {
        transform: translate(-50%, -50%) rotate(-45deg);
        width: 20px;
        height: 3px;
    }

    /* Banner styles already defined above in mobile optimization section */

    .featured-carousel {
        margin-top: 20px;
    }

    .slide-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }

    .slide-image img {
        height: 220px;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .slide-meta {
        flex-direction: column;
        gap: 15px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-logo {
        justify-content: center;
        text-decoration: none;
        color: inherit;
    }

    .footer-description {
        text-align: center;
    }

    /* Popular and New Games Responsive */
    .popular-card {
        min-width: 280px;
    }

    .masonry-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .search-input {
        width: 180px;
    }

    .search-input:focus {
        width: 200px;
    }

    /* ===== EXTRA SMALL MOBILE OPTIMIZATION ===== */
    .hero-banner {
        padding: 40px 0;
    }

    .banner-container {
        padding: 0 15px;
        gap: 20px;
    }

    .minimal-title {
        font-size: 1.8rem;
    }

    .banner-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .banner-buttons {
        flex-direction: column;
        width: 100%;
    }

    .banner-buttons .btn {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }

    .featured-game-card {
        padding: 5px;
    }

    .featured-card-container {
        max-width: calc(100% - 10px);
        box-shadow: 3px 3px 0 #000000;
        min-height: 200px;
    }

    .featured-card-container:hover {
        box-shadow: 4px 4px 0 #000000;
    }

    .featured-game-content {
        padding: 15px;
    }

    .featured-game-image {
        width: 100px;
        height: 100px;
    }

    .minimal-footer {
        padding: 40px 0 20px;
    }

    .minimal-footer-content {
        gap: 30px;
    }

    .minimal-copyright {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .minimal-bottom-links a {
        font-size: 0.85rem;
    }

    .slide-content {
        padding: 15px;
    }

    .slide-image img {
        height: 180px;
    }

    .slide-title {
        font-size: 1.5rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* ===== POPULAR GAMES EXTRA SMALL MOBILE ===== */
    .popular-games-carousel {
        padding: 0 5px;
    }

    .popular-vertical-cards {
        gap: 12px;
        padding: 10px 3px 15px 3px;
    }

    .popular-vertical-cards .vertical-game-card {
        min-width: 180px;
        width: 180px;
        height: 260px;
    }

    .popular-vertical-cards .vertical-card-image {
        height: 120px;
    }

    .popular-vertical-cards .vertical-card-content {
        padding: 10px;
    }

    .popular-vertical-cards .vertical-card-title {
        font-size: 0.9rem;
    }

    .popular-vertical-cards .vertical-card-description {
        font-size: 0.75rem;
    }

    /* Mobile Popular and New Games */
    .popular-track {
        gap: 15px;
        padding: 15px 0;
    }

    .popular-card {
        min-width: 250px;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .masonry-image {
        height: 160px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .slider-prev {
        left: 8px;
    }

    .slider-next {
        right: 8px;
    }
}

/* ===== ADDITIONAL ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation Classes */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease forwards;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Prevent body scroll when mobile menu/search is open */
.no-scroll {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.p-5 {
    padding: 3rem;
}

/* ===== GAME CARD VARIATIONS ===== */
.game-card.featured {
    border: 2px solid #333;
    position: relative;
}

.game-card.featured::before {
    content: 'FEATURED';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.game-card.new {
    border: 2px solid #666;
    position: relative;
}

.game-card.new::before {
    content: 'NEW';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #666;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.game-card.popular {
    border: 2px solid #ffc107;
    position: relative;
}

.game-card.popular::before {
    content: 'HOT';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffc107;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: #eee;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 0.8;
    }
}

.skeleton-text {
    height: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    background: #eee;
}

.skeleton-title {
    height: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    width: 70%;
    background: #eee;
}

.skeleton-image {
    height: 200px;
    border-radius: 4px;
    margin-bottom: 1rem;
    background: #eee;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #000;
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
*:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* ===== CAROUSEL SLIDE STYLES ===== */
.slide-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
    padding: 25px;
    height: 100%;
    box-sizing: border-box;
}

.slide-image {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
    border: none;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}

.slide-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.slide-image:hover img {
    transform: scale(1.05);
}

.slide-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    line-height: 1.2;
}

.slide-description {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 300;
}

.slide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 0;
}

.slide-category {
    background: #000000;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: none;
}

.slide-play-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 0;
    box-shadow: 3px 3px 0 #000000;
    transition: all 0.3s ease;
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    font-weight: 600;
    cursor: pointer;
}

.slide-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 #000000;
}

/* ===== MOBILE MENU STYLES ===== */
.nav-menu.active {
    display: flex;
    position: fixed;
    top: 63px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    height: calc(100vh - 63px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #eee;
}

.nav-menu.active .nav-list {
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.nav-menu.active .nav-link {
    justify-content: center;
    width: 100%;
    padding: 15px;
}

/* Mobile dropdown styles */
.nav-menu.active .dropdown {
    width: 100%;
}

.nav-menu.active .dropdown>.nav-link {
    position: relative;
    cursor: pointer;
}

.nav-menu.active .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f8f9fa;
    border-radius: 4px;
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border: 1px solid #eee;
}

.nav-menu.active .dropdown.active .dropdown-menu {
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for mobile dropdown */
.nav-menu.active .dropdown-menu {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.nav-menu.active .dropdown-menu::-webkit-scrollbar {
    width: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-menu.active .dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.nav-menu.active .dropdown-menu::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

.nav-menu.active .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #000;
}

/* Show dropdown scrollbar when scrolling */
.nav-menu.active .dropdown-menu.scrolling::-webkit-scrollbar {
    opacity: 1;
}

/* Custom scrollbar for entire mobile menu */
.nav-menu.active {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.nav-menu.active::-webkit-scrollbar {
    width: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-menu.active::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.nav-menu.active::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.nav-menu.active::-webkit-scrollbar-thumb:hover {
    background: #000;
}

/* Show scrollbar when scrolling */
.nav-menu.active.scrolling::-webkit-scrollbar {
    opacity: 1;
}

.nav-menu.active .dropdown-menu {
    text-align: center;
}

.nav-menu.active .dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu.active .dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    border-radius: 4px;
    margin: 2px auto;
    text-decoration: none;
    text-align: center;
    max-width: 200px;
    transition: all 0.3s ease;
}

.nav-menu.active .dropdown-menu a:hover {
    background: #eee;
    transform: translateX(5px);
}

.nav-menu.active .dropdown-icon {
    margin-right: 8px;
    font-size: 1.1em;
}

.nav-menu.active .dropdown-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== HEADER SCROLL EFFECT ===== */
/* 桌面端保留滚动效果 */
@media (min-width: 769px) {
    .header.scrolled {
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .header.scrolled .nav-container {
        height: 70px;
    }
}

/* 移动端无滚动效果 */
@media (max-width: 768px) {
    .header {
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

/* ===== ERROR MESSAGE STYLES ===== */
.error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff4757;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}