.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 10px 0;
    margin: 0 5px;
    overflow: hidden;
}

.game-card {
    background: var(--bg-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: var(--cursor-pointer);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.game-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.game-info {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-filename {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--text-primary);
    line-height: 1.2;
}

.game-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.3;
}

.game-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
}

.game-studio {
    font-size: 0.9rem;
    color: var(--primary-400);
    margin-bottom: 10px;
    font-weight: 500;
}

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

.tag {
    background: var(--primary-400);
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .game-info {
        padding: 15px;
    }

    .game-title {
        font-size: 1.2rem;
    }
}

.list-source {
    display: none;
}