
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 10% 20%, #0a0f1f, #03050b);
    color: #f0f3fa;
    line-height: 1.5;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f1222;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ff4d6d;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b8b;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 1rem;
}

.glass-panel {
    background: rgba(15, 25, 45, 0.55);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.5);
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #ffb3c6, #ff4d6d);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    text-shadow: 0 0 15px rgba(255, 77, 109, 0.3);
}

.hero p {
    font-size: 1.2rem;
    color: #bfc9e6;
    margin-top: 0.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.filter-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.2rem 1.8rem;
    background: rgba(10, 18, 30, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 3rem;
    border: 1px solid rgba(255, 77, 109, 0.3);
}

.search-wrapper {
    flex: 2;
    min-width: 200px;
    position: relative;
}

.search-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff6b8b;
    font-size: 1.2rem;
}

#searchInput {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2.5rem;
    color: white;
    font-family: 'Inter', monospace;
    transition: all 0.2s ease;
}

#searchInput:focus {
    outline: none;
    border-color: #ff4d6d;
    box-shadow: 0 0 12px rgba(255, 77, 109, 0.4);
    background: rgba(0, 0, 0, 0.7);
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    flex: 3;
    justify-content: flex-end;
}

.cat-link {
    background: rgba(20, 30, 55, 0.7);
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    color: #eef3ff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cat-link i {
    font-size: 0.8rem;
}

.cat-link.active {
    background: linear-gradient(95deg, #ff4d6d, #ff8c42);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(255, 77, 109, 0.4);
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

.cat-link:hover:not(.active) {
    background: rgba(255, 77, 109, 0.3);
    transform: translateY(-2px);
    border-color: #ff4d6d;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.result-count {
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(4px);
}

.result-count span {
    font-weight: 700;
    color: #ff8c42;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-bottom: 3rem;
}

.game-card {
    background: rgba(12, 20, 35, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 1.8rem;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 77, 109, 0.4);
    border-color: rgba(255, 77, 109, 0.5);
}

.card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #0a0f1f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .card-image img {
    transform: scale(1.03);
}

.card-content {
    padding: 1.4rem 1.2rem 1.2rem;
    flex: 1;
}

.game-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.game-title a {
    color: #f0f3fa;
    text-decoration: none;
    transition: color 0.2s;
    background: linear-gradient(120deg, #fff, #ffb7c3);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 800;
}

.game-title a:hover {
    color: #ff8c64;
    background: none;
    -webkit-background-clip: unset;
    background: unset;
    color: #ff8c64;
}

.game-category {
    font-size: 0.7rem;
    background: rgba(255, 77, 109, 0.25);
    padding: 0.2rem 0.7rem;
    border-radius: 1rem;
    font-weight: 600;
    color: #ffb3c0;
    letter-spacing: 0.3px;
}

.hot-badge {
    background: #ff4d6d;
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 2rem;
    margin-left: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.game-desc {
    font-size: 0.85rem;
    color: #b9c3e0;
    margin: 0.6rem 0 1rem;
    line-height: 1.4;
}

.game-link {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #ff9f6e;
    margin-top: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: gap 0.2s;
}

.game-link i {
    font-size: 0.8rem;
}

.game-card:hover .game-link {
    gap: 10px;
    color: #ff4d6d;
}

.no-results {
    text-align: center;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 2rem;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    grid-column: 1 / -1;
}

.site-description {
    margin: 1rem 0 2rem 0;
    padding: 2rem 2rem;
    background: rgba(5, 10, 22, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 2rem;
    border-top: 2px solid #ff4d6d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-description h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    background: linear-gradient(120deg, #fff, #ffb7c3);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}

.site-description p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #dbdeef;
}

.site-description strong {
    color: #ff8c64;
}

.footer {
    text-align: center;
    padding: 1.5rem 0 0.8rem;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    color: #9aa2c2;
}

.footer a {
    color: #ff8c64;
    text-decoration: none;
}

.footer a:hover {
    color: #ff4d6d;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: #ff4d6d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(255, 77, 109, 0.4);
    z-index: 999;
    text-decoration: none;
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #ff1f4a;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 77, 109, 0.6);
}

@media (max-width: 760px) {
    .container {
        padding: 1.2rem;
    }

    .filter-section {
        flex-direction: column;
        align-items: stretch;
        border-radius: 1.8rem;
    }

    .category-buttons {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
a {
    text-decoration: none;
}