* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

body {
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
}

.logo {
    color: #000;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.search-container {
    position: relative;
    width: 300px;
    flex-shrink: 0;
}

.search-container input {
    width: 100%;
    height: 36px;
    padding: 8px 72px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    color: #333;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-container input:focus {
    border-color: #0078d7;
    box-shadow: 0 0 5px rgba(0, 120, 215, 0.3);
}

.search-container button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #666;
    font-size: 13px;
    cursor: pointer;
}

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

nav a {
    color: #333;
    font-size: 14px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

nav a:hover {
    color: #0078d7;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
}

.ad-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 8px 0 7px;
    padding: 20px;
    background: #ccc;
    text-align: center;
}

.ad-label {
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
}

main {
    padding: 20px 0;
}

.section-heading {
    margin: 0 0 10px;
    color: #333;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.game-multi-list,
.game-cards-list,
.game-names-list {
    display: grid;
    gap: 15px;
    width: 100%;
}

.game-multi-list {
    grid-template-columns: repeat(3, 1fr) !important;
}

.game-cards-list {
    grid-template-columns: repeat(3, 1fr) !important;
    margin-bottom: 20px;
}

.game-names-list {
    grid-template-columns: repeat(4, 1fr) !important;
    margin-bottom: 20px;
}

.game-multi-item,
.game-cards-item,
.game-names-item {
    min-width: 0;
}

.game-multi-item a,
.game-cards-link,
.game-names-item a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-multi-item a:hover,
.game-cards-link:hover,
.game-names-item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.game-multi-item img,
.game-cards-item img,
.game-names-item img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #eee;
    transition: transform 0.5s ease;
}

.game-multi-item a:hover img,
.game-cards-link:hover img,
.game-names-item a:hover img {
    transform: scale(1.05);
}

.game-cards-link {
    display: grid;
    grid-template-columns: 110px 1fr;
    min-height: 112px;
}

.game-cards-item img {
    height: 100%;
}

.game-cards-desc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 15px;
}

.game-cards-desc-name,
.game-names-name {
    color: #333;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
}

.game-cards-desc-likes {
    margin-top: 8px;
    color: #666;
    font-size: 12px;
}

.game-names-name {
    padding: 12px 14px 14px;
    font-size: 14px !important;
}

footer {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    background: #fff;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: #666;
    font-size: 14px;
}

.footer-content a:hover {
    color: #0078d7;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo {
        margin-bottom: 2px;
    }

    .search-container {
        width: 100%;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        top: 17px;
        right: 15px;
    }

    nav {
        width: 100%;
    }

    nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 10px;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    nav ul.active {
        display: block;
    }

    nav li {
        border-bottom: 1px solid #f0f0f0;
        text-align: center;
    }

    nav li:last-child {
        border-bottom: 0;
    }

    nav a {
        display: block;
        padding: 12px 20px;
    }

    .game-multi-list,
    .game-cards-list {
        grid-template-columns: 1fr !important;
    }

    .game-names-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .game-multi-list,
    .game-cards-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
